configure revision 1.1.1.11 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXft 2.3.8.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
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.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export 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).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${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 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
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
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if 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
114 fi
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.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $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'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/lib/libXft/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='libXft'
624 PACKAGE_TARNAME='libXft'
625 PACKAGE_VERSION='2.3.8'
626 PACKAGE_STRING='libXft 2.3.8'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXft/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 FONTCONFIG_LIBS
668 FONTCONFIG_CFLAGS
669 FREETYPE_LIBS
670 FREETYPE_CFLAGS
671 XRENDER_LIBS
672 XRENDER_CFLAGS
673 XFT_LT_VERSION
674 MAN_SUBSTS
675 XORG_MAN_PAGE
676 ADMIN_MAN_DIR
677 DRIVER_MAN_DIR
678 MISC_MAN_DIR
679 FILE_MAN_DIR
680 LIB_MAN_DIR
681 APP_MAN_DIR
682 ADMIN_MAN_SUFFIX
683 DRIVER_MAN_SUFFIX
684 MISC_MAN_SUFFIX
685 FILE_MAN_SUFFIX
686 LIB_MAN_SUFFIX
687 APP_MAN_SUFFIX
688 INSTALL_CMD
689 PKG_CONFIG_LIBDIR
690 PKG_CONFIG_PATH
691 PKG_CONFIG
692 CHANGELOG_CMD
693 STRICT_CFLAGS
694 CWARNFLAGS
695 BASE_CFLAGS
696 LT_SYS_LIBRARY_PATH
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 MANIFEST_TOOL
703 RANLIB
704 ac_ct_AR
705 AR
706 DLLTOOL
707 OBJDUMP
708 FILECMD
709 LN_S
710 NM
711 ac_ct_DUMPBIN
712 DUMPBIN
713 LD
714 FGREP
715 EGREP
716 GREP
717 SED
718 am__fastdepCC_FALSE
719 am__fastdepCC_TRUE
720 CCDEPMODE
721 am__nodep
722 AMDEPBACKSLASH
723 AMDEP_FALSE
724 AMDEP_TRUE
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 LIBTOOL
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 CSCOPE
748 ETAGS
749 CTAGS
750 am__untar
751 am__tar
752 AMTAR
753 am__leading_dot
754 SET_MAKE
755 AWK
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 runstatedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL
812 am__quote'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_silent_rules
817 enable_shared
818 enable_static
819 with_pic
820 enable_fast_install
821 with_aix_soname
822 enable_dependency_tracking
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 enable_selective_werror
827 enable_strict_compilation
828 '
829 ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 CC
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
837 LT_SYS_LIBRARY_PATH
838 PKG_CONFIG
839 PKG_CONFIG_PATH
840 PKG_CONFIG_LIBDIR
841 XRENDER_CFLAGS
842 XRENDER_LIBS
843 FREETYPE_CFLAGS
844 FREETYPE_LIBS
845 FONTCONFIG_CFLAGS
846 FONTCONFIG_LIBS'
847
848
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
870
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 runstatedir='${localstatedir}/run'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
897
898 ac_prev=
899 ac_dashdash=
900 for ac_option
901 do
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
905 ac_prev=
906 continue
907 fi
908
909 case $ac_option in
910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 *=) ac_optarg= ;;
912 *) ac_optarg=yes ;;
913 esac
914
915 case $ac_dashdash$ac_option in
916 --)
917 ac_dashdash=yes ;;
918
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
923
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
928
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
935
936 --config-cache | -C)
937 cache_file=config.cache ;;
938
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
943
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
950
951 -disable-* | --disable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: \`$ac_useropt'"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
966
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
971
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
976
977 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: \`$ac_useropt'"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=\$ac_optarg ;;
992
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1000 exec_prefix=$ac_optarg ;;
1001
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1005
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
1012
1013 -host | --host | --hos | --ho)
1014 ac_prev=host_alias ;;
1015 -host=* | --host=* | --hos=* | --ho=*)
1016 host_alias=$ac_optarg ;;
1017
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1023
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1029 includedir=$ac_optarg ;;
1030
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1035
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039 libdir=$ac_optarg ;;
1040
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1046 libexecdir=$ac_optarg ;;
1047
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1052
1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
1054 | --localstate | --localstat | --localsta | --localst | --locals)
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058 localstatedir=$ac_optarg ;;
1059
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1064
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1068
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1071 no_create=yes ;;
1072
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1076
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084 oldincludedir=$ac_optarg ;;
1085
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089 prefix=$ac_optarg ;;
1090
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096 program_prefix=$ac_optarg ;;
1097
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103 program_suffix=$ac_optarg ;;
1104
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 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1120 program_transform_name=$ac_optarg ;;
1121
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1126
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1131
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1135
1136 -runstatedir | --runstatedir | --runstatedi | --runstated \
1137 | --runstate | --runstat | --runsta | --runst | --runs \
1138 | --run | --ru | --r)
1139 ac_prev=runstatedir ;;
1140 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1141 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1142 | --run=* | --ru=* | --r=*)
1143 runstatedir=$ac_optarg ;;
1144
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1150
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1161
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1166
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1171
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1178
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1183
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1186
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1189
1190 -with-* | --with-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: \`$ac_useropt'"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=\$ac_optarg ;;
1205
1206 -without-* | --without-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: \`$ac_useropt'"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=no ;;
1221
1222 --x)
1223 # Obsolete; use --with-x.
1224 with_x=yes ;;
1225
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1232
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1239
1240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241 Try \`$0 --help' for more information"
1242 ;;
1243
1244 *=*)
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250 esac
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1253
1254 *)
1255 # FIXME: should be removed in autoconf 3.0.
1256 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260 ;;
1261
1262 esac
1263 done
1264
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 as_fn_error $? "missing argument to $ac_option"
1268 fi
1269
1270 if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1272 no) ;;
1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 esac
1276 fi
1277
1278 # Check all directory arguments for consistency.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir runstatedir
1283 do
1284 eval ac_val=\$$ac_var
1285 # Remove trailing slashes.
1286 case $ac_val in
1287 */ )
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\$ac_val;;
1290 esac
1291 # Be sure to have absolute directory names.
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297 done
1298
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1302 build=$build_alias
1303 host=$host_alias
1304 target=$target_alias
1305
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1312 fi
1313 fi
1314
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318 test "$silent" = yes && exec 6>/dev/null
1319
1320
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error $? "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error $? "pwd does not report name of working directory"
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 printf "%s\n" X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1359 fi
1360 else
1361 ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1374 fi
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures libXft 2.3.8 to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking ...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libXft]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of libXft 2.3.8:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470 Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-silent-rules less verbose build output (undo: "make V=1")
1475 --disable-silent-rules verbose build output (undo: "make V=0")
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --disable-selective-werror
1486 Turn off selective compiler errors. (default:
1487 enabled)
1488 --enable-strict-compilation
1489 Enable all warnings from compiler and make them
1490 errors (default: disabled)
1491
1492 Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1496 both]
1497 --with-aix-soname=aix|svr4|both
1498 shared library versioning (aka "SONAME") variant to
1499 provide on AIX, [default=aix].
1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1501 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1502 compiler's sysroot if not specified).
1503
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 LT_SYS_LIBRARY_PATH
1513 User-defined run-time library search path.
1514 PKG_CONFIG path to pkg-config utility
1515 PKG_CONFIG_PATH
1516 directories to add to pkg-config's search path
1517 PKG_CONFIG_LIBDIR
1518 path overriding pkg-config's built-in search path
1519 XRENDER_CFLAGS
1520 C compiler flags for XRENDER, overriding pkg-config
1521 XRENDER_LIBS
1522 linker flags for XRENDER, overriding pkg-config
1523 FREETYPE_CFLAGS
1524 C compiler flags for FREETYPE, overriding pkg-config
1525 FREETYPE_LIBS
1526 linker flags for FREETYPE, overriding pkg-config
1527 FONTCONFIG_CFLAGS
1528 C compiler flags for FONTCONFIG, overriding pkg-config
1529 FONTCONFIG_LIBS
1530 linker flags for FONTCONFIG, overriding pkg-config
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>.
1536 _ACEOF
1537 ac_status=$?
1538 fi
1539
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for configure.gnu first; this name is used for a wrapper for
1582 # Metaconfig's "Configure" on case-insensitive file systems.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 libXft configure 2.3.8
1600 generated by GNU Autoconf 2.71
1601
1602 Copyright (C) 2021 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest.beam
1620 if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 printf "%s\n" "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext
1639 then :
1640 ac_retval=0
1641 else $as_nop
1642 printf "%s\n" "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_compile
1651
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_link ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 printf "%s\n" "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 test -x conftest$ac_exeext
1680 }
1681 then :
1682 ac_retval=0
1683 else $as_nop
1684 printf "%s\n" "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_link
1698
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 printf %s "checking for $2... " >&6; }
1708 if eval test \${$3+y}
1709 then :
1710 printf %s "(cached) " >&6
1711 else $as_nop
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 $4
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"
1718 then :
1719 eval "$3=yes"
1720 else $as_nop
1721 eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1724 fi
1725 eval ac_res=\$$3
1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 printf "%s\n" "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_compile
1731
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 printf %s "checking for $2... " >&6; }
1740 if eval test \${$3+y}
1741 then :
1742 printf %s "(cached) " >&6
1743 else $as_nop
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748 #define $2 innocuous_$2
1749
1750 /* System header to define __stub macros and hopefully few prototypes,
1751 which can conflict with char $2 (void); below. */
1752
1753 #include <limits.h>
1754 #undef $2
1755
1756 /* Override any GCC internal prototype to avoid an error.
1757 Use char because int might match the return type of a GCC
1758 builtin and then its argument prototype would still apply. */
1759 #ifdef __cplusplus
1760 extern "C"
1761 #endif
1762 char $2 (void);
1763 /* The GNU C library defines this for functions which it implements
1764 to always fail with ENOSYS. Some functions are actually named
1765 something starting with __ and the normal name is an alias. */
1766 #if defined __stub_$2 || defined __stub___$2
1767 choke me
1768 #endif
1769
1770 int
1771 main (void)
1772 {
1773 return $2 ();
1774 ;
1775 return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_link "$LINENO"
1779 then :
1780 eval "$3=yes"
1781 else $as_nop
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1785 conftest$ac_exeext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 printf "%s\n" "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_func
1793
1794 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1795 # ------------------------------------------------------------------
1796 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1797 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1798 ac_fn_check_decl ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 as_decl_name=`echo $2|sed 's/ *(.*//'`
1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1803 printf %s "checking whether $as_decl_name is declared... " >&6; }
1804 if eval test \${$3+y}
1805 then :
1806 printf %s "(cached) " >&6
1807 else $as_nop
1808 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1809 eval ac_save_FLAGS=\$$6
1810 as_fn_append $6 " $5"
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 $4
1814 int
1815 main (void)
1816 {
1817 #ifndef $as_decl_name
1818 #ifdef __cplusplus
1819 (void) $as_decl_use;
1820 #else
1821 (void) $as_decl_name;
1822 #endif
1823 #endif
1824
1825 ;
1826 return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_compile "$LINENO"
1830 then :
1831 eval "$3=yes"
1832 else $as_nop
1833 eval "$3=no"
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1836 eval $6=\$ac_save_FLAGS
1837
1838 fi
1839 eval ac_res=\$$3
1840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 printf "%s\n" "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_check_decl
1845 ac_configure_args_raw=
1846 for ac_arg
1847 do
1848 case $ac_arg in
1849 *\'*)
1850 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1851 esac
1852 as_fn_append ac_configure_args_raw " '$ac_arg'"
1853 done
1854
1855 case $ac_configure_args_raw in
1856 *$as_nl*)
1857 ac_safe_unquote= ;;
1858 *)
1859 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1860 ac_unsafe_a="$ac_unsafe_z#~"
1861 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1862 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1863 esac
1864
1865 cat >config.log <<_ACEOF
1866 This file contains any messages produced by compilers while
1867 running configure, to aid debugging if configure makes a mistake.
1868
1869 It was created by libXft $as_me 2.3.8, which was
1870 generated by GNU Autoconf 2.71. Invocation command line was
1871
1872 $ $0$ac_configure_args_raw
1873
1874 _ACEOF
1875 exec 5>>config.log
1876 {
1877 cat <<_ASUNAME
1878 ## --------- ##
1879 ## Platform. ##
1880 ## --------- ##
1881
1882 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1883 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1884 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1885 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1886 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1887
1888 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1889 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1890
1891 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1892 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1893 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1894 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1895 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1896 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1897 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1898
1899 _ASUNAME
1900
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904 IFS=$as_save_IFS
1905 case $as_dir in #(((
1906 '') as_dir=./ ;;
1907 */) ;;
1908 *) as_dir=$as_dir/ ;;
1909 esac
1910 printf "%s\n" "PATH: $as_dir"
1911 done
1912 IFS=$as_save_IFS
1913
1914 } >&5
1915
1916 cat >&5 <<_ACEOF
1917
1918
1919 ## ----------- ##
1920 ## Core tests. ##
1921 ## ----------- ##
1922
1923 _ACEOF
1924
1925
1926 # Keep a trace of the command line.
1927 # Strip out --no-create and --no-recursion so they do not pile up.
1928 # Strip out --silent because we don't want to record it for future runs.
1929 # Also quote any args containing shell meta-characters.
1930 # Make two passes to allow for proper duplicate-argument suppression.
1931 ac_configure_args=
1932 ac_configure_args0=
1933 ac_configure_args1=
1934 ac_must_keep_next=false
1935 for ac_pass in 1 2
1936 do
1937 for ac_arg
1938 do
1939 case $ac_arg in
1940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1942 | -silent | --silent | --silen | --sile | --sil)
1943 continue ;;
1944 *\'*)
1945 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1946 esac
1947 case $ac_pass in
1948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1949 2)
1950 as_fn_append ac_configure_args1 " '$ac_arg'"
1951 if test $ac_must_keep_next = true; then
1952 ac_must_keep_next=false # Got value, back to normal.
1953 else
1954 case $ac_arg in
1955 *=* | --config-cache | -C | -disable-* | --disable-* \
1956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1958 | -with-* | --with-* | -without-* | --without-* | --x)
1959 case "$ac_configure_args0 " in
1960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1961 esac
1962 ;;
1963 -* ) ac_must_keep_next=true ;;
1964 esac
1965 fi
1966 as_fn_append ac_configure_args " '$ac_arg'"
1967 ;;
1968 esac
1969 done
1970 done
1971 { ac_configure_args0=; unset ac_configure_args0;}
1972 { ac_configure_args1=; unset ac_configure_args1;}
1973
1974 # When interrupted or exit'd, cleanup temporary files, and complete
1975 # config.log. We remove comments because anyway the quotes in there
1976 # would cause problems or look ugly.
1977 # WARNING: Use '\'' to represent an apostrophe within the trap.
1978 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1979 trap 'exit_status=$?
1980 # Sanitize IFS.
1981 IFS=" "" $as_nl"
1982 # Save into config.log some information that might help in debugging.
1983 {
1984 echo
1985
1986 printf "%s\n" "## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##"
1989 echo
1990 # The following way of writing the cache mishandles newlines in values,
1991 (
1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in #(
1995 *${as_nl}*)
1996 case $ac_var in #(
1997 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999 esac
2000 case $ac_var in #(
2001 _ | IFS | as_nl) ;; #(
2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003 *) { eval $ac_var=; unset $ac_var;} ;;
2004 esac ;;
2005 esac
2006 done
2007 (set) 2>&1 |
2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009 *${as_nl}ac_space=\ *)
2010 sed -n \
2011 "s/'\''/'\''\\\\'\'''\''/g;
2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013 ;; #(
2014 *)
2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016 ;;
2017 esac |
2018 sort
2019 )
2020 echo
2021
2022 printf "%s\n" "## ----------------- ##
2023 ## Output variables. ##
2024 ## ----------------- ##"
2025 echo
2026 for ac_var in $ac_subst_vars
2027 do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 printf "%s\n" "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2035
2036 if test -n "$ac_subst_files"; then
2037 printf "%s\n" "## ------------------- ##
2038 ## File substitutions. ##
2039 ## ------------------- ##"
2040 echo
2041 for ac_var in $ac_subst_files
2042 do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 printf "%s\n" "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2050 fi
2051
2052 if test -s confdefs.h; then
2053 printf "%s\n" "## ----------- ##
2054 ## confdefs.h. ##
2055 ## ----------- ##"
2056 echo
2057 cat confdefs.h
2058 echo
2059 fi
2060 test "$ac_signal" != 0 &&
2061 printf "%s\n" "$as_me: caught signal $ac_signal"
2062 printf "%s\n" "$as_me: exit $exit_status"
2063 } >&5
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066 exit $exit_status
2067 ' 0
2068 for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 done
2071 ac_signal=0
2072
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2075
2076 printf "%s\n" "/* confdefs.h */" > confdefs.h
2077
2078 # Predefined preprocessor variables.
2079
2080 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2081
2082 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2083
2084 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2085
2086 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2087
2088 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2089
2090 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2091
2092
2093 # Let the site file select an alternate cache file if it wants to.
2094 # Prefer an explicitly selected file to automatically selected ones.
2095 if test -n "$CONFIG_SITE"; then
2096 ac_site_files="$CONFIG_SITE"
2097 elif test "x$prefix" != xNONE; then
2098 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2099 else
2100 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2101 fi
2102
2103 for ac_site_file in $ac_site_files
2104 do
2105 case $ac_site_file in #(
2106 */*) :
2107 ;; #(
2108 *) :
2109 ac_site_file=./$ac_site_file ;;
2110 esac
2111 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2113 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2114 sed 's/^/| /' "$ac_site_file" >&5
2115 . "$ac_site_file" \
2116 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2118 as_fn_error $? "failed to load site script $ac_site_file
2119 See \`config.log' for more details" "$LINENO" 5; }
2120 fi
2121 done
2122
2123 if test -r "$cache_file"; then
2124 # Some versions of bash will fail to source /dev/null (special files
2125 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2126 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2128 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2129 case $cache_file in
2130 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2131 *) . "./$cache_file";;
2132 esac
2133 fi
2134 else
2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2136 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2137 >$cache_file
2138 fi
2139
2140 # Test code for whether the C compiler supports C89 (global declarations)
2141 ac_c_conftest_c89_globals='
2142 /* Does the compiler advertise C89 conformance?
2143 Do not test the value of __STDC__, because some compilers set it to 0
2144 while being otherwise adequately conformant. */
2145 #if !defined __STDC__
2146 # error "Compiler does not advertise C89 conformance"
2147 #endif
2148
2149 #include <stddef.h>
2150 #include <stdarg.h>
2151 struct stat;
2152 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2153 struct buf { int x; };
2154 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2155 static char *e (char **p, int i)
2156 {
2157 return p[i];
2158 }
2159 static char *f (char * (*g) (char **, int), char **p, ...)
2160 {
2161 char *s;
2162 va_list v;
2163 va_start (v,p);
2164 s = g (p, va_arg (v,int));
2165 va_end (v);
2166 return s;
2167 }
2168
2169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2170 function prototypes and stuff, but not \xHH hex character constants.
2171 These do not provoke an error unfortunately, instead are silently treated
2172 as an "x". The following induces an error, until -std is added to get
2173 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2174 array size at least. It is necessary to write \x00 == 0 to get something
2175 that is true only with -std. */
2176 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2177
2178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2179 inside strings and character constants. */
2180 #define FOO(x) '\''x'\''
2181 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2182
2183 int test (int i, double x);
2184 struct s1 {int (*f) (int a);};
2185 struct s2 {int (*f) (double a);};
2186 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2187 int, int);'
2188
2189 # Test code for whether the C compiler supports C89 (body of main).
2190 ac_c_conftest_c89_main='
2191 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2192 '
2193
2194 # Test code for whether the C compiler supports C99 (global declarations)
2195 ac_c_conftest_c99_globals='
2196 // Does the compiler advertise C99 conformance?
2197 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2198 # error "Compiler does not advertise C99 conformance"
2199 #endif
2200
2201 #include <stdbool.h>
2202 extern int puts (const char *);
2203 extern int printf (const char *, ...);
2204 extern int dprintf (int, const char *, ...);
2205 extern void *malloc (size_t);
2206 extern void free (void *);
2207
2208 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2209 // dprintf is used instead of fprintf to avoid needing to declare
2210 // FILE and stderr.
2211 #define debug(...) dprintf (2, __VA_ARGS__)
2212 #define showlist(...) puts (#__VA_ARGS__)
2213 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2214 static void
2215 test_varargs_macros (void)
2216 {
2217 int x = 1234;
2218 int y = 5678;
2219 debug ("Flag");
2220 debug ("X = %d\n", x);
2221 showlist (The first, second, and third items.);
2222 report (x>y, "x is %d but y is %d", x, y);
2223 }
2224
2225 // Check long long types.
2226 #define BIG64 18446744073709551615ull
2227 #define BIG32 4294967295ul
2228 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2229 #if !BIG_OK
2230 #error "your preprocessor is broken"
2231 #endif
2232 #if BIG_OK
2233 #else
2234 #error "your preprocessor is broken"
2235 #endif
2236 static long long int bignum = -9223372036854775807LL;
2237 static unsigned long long int ubignum = BIG64;
2238
2239 struct incomplete_array
2240 {
2241 int datasize;
2242 double data[];
2243 };
2244
2245 struct named_init {
2246 int number;
2247 const wchar_t *name;
2248 double average;
2249 };
2250
2251 typedef const char *ccp;
2252
2253 static inline int
2254 test_restrict (ccp restrict text)
2255 {
2256 // See if C++-style comments work.
2257 // Iterate through items via the restricted pointer.
2258 // Also check for declarations in for loops.
2259 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2260 continue;
2261 return 0;
2262 }
2263
2264 // Check varargs and va_copy.
2265 static bool
2266 test_varargs (const char *format, ...)
2267 {
2268 va_list args;
2269 va_start (args, format);
2270 va_list args_copy;
2271 va_copy (args_copy, args);
2272
2273 const char *str = "";
2274 int number = 0;
2275 float fnumber = 0;
2276
2277 while (*format)
2278 {
2279 switch (*format++)
2280 {
2281 case '\''s'\'': // string
2282 str = va_arg (args_copy, const char *);
2283 break;
2284 case '\''d'\'': // int
2285 number = va_arg (args_copy, int);
2286 break;
2287 case '\''f'\'': // float
2288 fnumber = va_arg (args_copy, double);
2289 break;
2290 default:
2291 break;
2292 }
2293 }
2294 va_end (args_copy);
2295 va_end (args);
2296
2297 return *str && number && fnumber;
2298 }
2299 '
2300
2301 # Test code for whether the C compiler supports C99 (body of main).
2302 ac_c_conftest_c99_main='
2303 // Check bool.
2304 _Bool success = false;
2305 success |= (argc != 0);
2306
2307 // Check restrict.
2308 if (test_restrict ("String literal") == 0)
2309 success = true;
2310 char *restrict newvar = "Another string";
2311
2312 // Check varargs.
2313 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2314 test_varargs_macros ();
2315
2316 // Check flexible array members.
2317 struct incomplete_array *ia =
2318 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2319 ia->datasize = 10;
2320 for (int i = 0; i < ia->datasize; ++i)
2321 ia->data[i] = i * 1.234;
2322
2323 // Check named initializers.
2324 struct named_init ni = {
2325 .number = 34,
2326 .name = L"Test wide string",
2327 .average = 543.34343,
2328 };
2329
2330 ni.number = 58;
2331
2332 int dynamic_array[ni.number];
2333 dynamic_array[0] = argv[0][0];
2334 dynamic_array[ni.number - 1] = 543;
2335
2336 // work around unused variable warnings
2337 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2338 || dynamic_array[ni.number - 1] != 543);
2339 '
2340
2341 # Test code for whether the C compiler supports C11 (global declarations)
2342 ac_c_conftest_c11_globals='
2343 // Does the compiler advertise C11 conformance?
2344 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2345 # error "Compiler does not advertise C11 conformance"
2346 #endif
2347
2348 // Check _Alignas.
2349 char _Alignas (double) aligned_as_double;
2350 char _Alignas (0) no_special_alignment;
2351 extern char aligned_as_int;
2352 char _Alignas (0) _Alignas (int) aligned_as_int;
2353
2354 // Check _Alignof.
2355 enum
2356 {
2357 int_alignment = _Alignof (int),
2358 int_array_alignment = _Alignof (int[100]),
2359 char_alignment = _Alignof (char)
2360 };
2361 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2362
2363 // Check _Noreturn.
2364 int _Noreturn does_not_return (void) { for (;;) continue; }
2365
2366 // Check _Static_assert.
2367 struct test_static_assert
2368 {
2369 int x;
2370 _Static_assert (sizeof (int) <= sizeof (long int),
2371 "_Static_assert does not work in struct");
2372 long int y;
2373 };
2374
2375 // Check UTF-8 literals.
2376 #define u8 syntax error!
2377 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2378
2379 // Check duplicate typedefs.
2380 typedef long *long_ptr;
2381 typedef long int *long_ptr;
2382 typedef long_ptr long_ptr;
2383
2384 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2385 struct anonymous
2386 {
2387 union {
2388 struct { int i; int j; };
2389 struct { int k; long int l; } w;
2390 };
2391 int m;
2392 } v1;
2393 '
2394
2395 # Test code for whether the C compiler supports C11 (body of main).
2396 ac_c_conftest_c11_main='
2397 _Static_assert ((offsetof (struct anonymous, i)
2398 == offsetof (struct anonymous, w.k)),
2399 "Anonymous union alignment botch");
2400 v1.i = 2;
2401 v1.w.k = 5;
2402 ok |= v1.i != 5;
2403 '
2404
2405 # Test code for whether the C compiler supports C11 (complete).
2406 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2407 ${ac_c_conftest_c99_globals}
2408 ${ac_c_conftest_c11_globals}
2409
2410 int
2411 main (int argc, char **argv)
2412 {
2413 int ok = 0;
2414 ${ac_c_conftest_c89_main}
2415 ${ac_c_conftest_c99_main}
2416 ${ac_c_conftest_c11_main}
2417 return ok;
2418 }
2419 "
2420
2421 # Test code for whether the C compiler supports C99 (complete).
2422 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2423 ${ac_c_conftest_c99_globals}
2424
2425 int
2426 main (int argc, char **argv)
2427 {
2428 int ok = 0;
2429 ${ac_c_conftest_c89_main}
2430 ${ac_c_conftest_c99_main}
2431 return ok;
2432 }
2433 "
2434
2435 # Test code for whether the C compiler supports C89 (complete).
2436 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2437
2438 int
2439 main (int argc, char **argv)
2440 {
2441 int ok = 0;
2442 ${ac_c_conftest_c89_main}
2443 return ok;
2444 }
2445 "
2446
2447 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2448 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2449 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2450 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2451 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2452 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2453 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2454 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2455 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2456
2457 # Auxiliary files required by this configure script.
2458 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2459
2460 # Locations in which to look for auxiliary files.
2461 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2462
2463 # Search for a directory containing all of the required auxiliary files,
2464 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2465 # If we don't find one directory that contains all the files we need,
2466 # we report the set of missing files from the *first* directory in
2467 # $ac_aux_dir_candidates and give up.
2468 ac_missing_aux_files=""
2469 ac_first_candidate=:
2470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 as_found=false
2473 for as_dir in $ac_aux_dir_candidates
2474 do
2475 IFS=$as_save_IFS
2476 case $as_dir in #(((
2477 '') as_dir=./ ;;
2478 */) ;;
2479 *) as_dir=$as_dir/ ;;
2480 esac
2481 as_found=:
2482
2483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2484 ac_aux_dir_found=yes
2485 ac_install_sh=
2486 for ac_aux in $ac_aux_files
2487 do
2488 # As a special case, if "install-sh" is required, that requirement
2489 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2490 # and $ac_install_sh is set appropriately for whichever one is found.
2491 if test x"$ac_aux" = x"install-sh"
2492 then
2493 if test -f "${as_dir}install-sh"; then
2494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2495 ac_install_sh="${as_dir}install-sh -c"
2496 elif test -f "${as_dir}install.sh"; then
2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2498 ac_install_sh="${as_dir}install.sh -c"
2499 elif test -f "${as_dir}shtool"; then
2500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2501 ac_install_sh="${as_dir}shtool install -c"
2502 else
2503 ac_aux_dir_found=no
2504 if $ac_first_candidate; then
2505 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2506 else
2507 break
2508 fi
2509 fi
2510 else
2511 if test -f "${as_dir}${ac_aux}"; then
2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2513 else
2514 ac_aux_dir_found=no
2515 if $ac_first_candidate; then
2516 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2517 else
2518 break
2519 fi
2520 fi
2521 fi
2522 done
2523 if test "$ac_aux_dir_found" = yes; then
2524 ac_aux_dir="$as_dir"
2525 break
2526 fi
2527 ac_first_candidate=false
2528
2529 as_found=false
2530 done
2531 IFS=$as_save_IFS
2532 if $as_found
2533 then :
2534
2535 else $as_nop
2536 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2537 fi
2538
2539
2540 # These three variables are undocumented and unsupported,
2541 # and are intended to be withdrawn in a future Autoconf release.
2542 # They can cause serious problems if a builder's source tree is in a directory
2543 # whose full name contains unusual characters.
2544 if test -f "${ac_aux_dir}config.guess"; then
2545 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2546 fi
2547 if test -f "${ac_aux_dir}config.sub"; then
2548 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2549 fi
2550 if test -f "$ac_aux_dir/configure"; then
2551 ac_configure="$SHELL ${ac_aux_dir}configure"
2552 fi
2553
2554 # Check that the precious variables saved in the cache have kept the same
2555 # value.
2556 ac_cache_corrupted=false
2557 for ac_var in $ac_precious_vars; do
2558 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2559 eval ac_new_set=\$ac_env_${ac_var}_set
2560 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2561 eval ac_new_val=\$ac_env_${ac_var}_value
2562 case $ac_old_set,$ac_new_set in
2563 set,)
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2565 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2566 ac_cache_corrupted=: ;;
2567 ,set)
2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2569 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2570 ac_cache_corrupted=: ;;
2571 ,);;
2572 *)
2573 if test "x$ac_old_val" != "x$ac_new_val"; then
2574 # differences in whitespace do not lead to failure.
2575 ac_old_val_w=`echo x $ac_old_val`
2576 ac_new_val_w=`echo x $ac_new_val`
2577 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2579 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2580 ac_cache_corrupted=:
2581 else
2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2583 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2584 eval $ac_var=\$ac_old_val
2585 fi
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2587 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2589 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2590 fi;;
2591 esac
2592 # Pass precious variables to config.status.
2593 if test "$ac_new_set" = set; then
2594 case $ac_new_val in
2595 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2596 *) ac_arg=$ac_var=$ac_new_val ;;
2597 esac
2598 case " $ac_configure_args " in
2599 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2600 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2601 esac
2602 fi
2603 done
2604 if $ac_cache_corrupted; then
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2608 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2609 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2610 and start over" "$LINENO" 5
2611 fi
2612 ## -------------------- ##
2613 ## Main body of script. ##
2614 ## -------------------- ##
2615
2616 ac_ext=c
2617 ac_cpp='$CPP $CPPFLAGS'
2618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621
2622
2623
2624 ac_config_headers="$ac_config_headers config.h"
2625
2626
2627
2628 # Initialize Automake
2629 am__api_version='1.16'
2630
2631
2632
2633 # Find a good install program. We prefer a C program (faster),
2634 # so one script is as good as another. But avoid the broken or
2635 # incompatible versions:
2636 # SysV /etc/install, /usr/sbin/install
2637 # SunOS /usr/etc/install
2638 # IRIX /sbin/install
2639 # AIX /bin/install
2640 # AmigaOS /C/install, which installs bootblocks on floppy discs
2641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644 # OS/2's system install, which has a completely different semantic
2645 # ./install, which can be erroneously created by make from ./install.sh.
2646 # Reject install programs that cannot install multiple files.
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2648 printf %s "checking for a BSD-compatible install... " >&6; }
2649 if test -z "$INSTALL"; then
2650 if test ${ac_cv_path_install+y}
2651 then :
2652 printf %s "(cached) " >&6
2653 else $as_nop
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 case $as_dir in #(((
2659 '') as_dir=./ ;;
2660 */) ;;
2661 *) as_dir=$as_dir/ ;;
2662 esac
2663 # Account for fact that we put trailing slashes in our PATH walk.
2664 case $as_dir in #((
2665 ./ | /[cC]/* | \
2666 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2667 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2668 /usr/ucb/* ) ;;
2669 *)
2670 # OSF1 and SCO ODT 3.0 have their own names for install.
2671 # Don't use installbsd from OSF since it installs stuff as root
2672 # by default.
2673 for ac_prog in ginstall scoinst install; do
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2676 if test $ac_prog = install &&
2677 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2678 # AIX install. It has an incompatible calling convention.
2679 :
2680 elif test $ac_prog = install &&
2681 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682 # program-specific install script used by HP pwplus--don't use.
2683 :
2684 else
2685 rm -rf conftest.one conftest.two conftest.dir
2686 echo one > conftest.one
2687 echo two > conftest.two
2688 mkdir conftest.dir
2689 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2690 test -s conftest.one && test -s conftest.two &&
2691 test -s conftest.dir/conftest.one &&
2692 test -s conftest.dir/conftest.two
2693 then
2694 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2695 break 3
2696 fi
2697 fi
2698 fi
2699 done
2700 done
2701 ;;
2702 esac
2703
2704 done
2705 IFS=$as_save_IFS
2706
2707 rm -rf conftest.one conftest.two conftest.dir
2708
2709 fi
2710 if test ${ac_cv_path_install+y}; then
2711 INSTALL=$ac_cv_path_install
2712 else
2713 # As a last resort, use the slow shell script. Don't cache a
2714 # value for INSTALL within a source directory, because that will
2715 # break other packages using the cache if that directory is
2716 # removed, or if the value is a relative name.
2717 INSTALL=$ac_install_sh
2718 fi
2719 fi
2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2721 printf "%s\n" "$INSTALL" >&6; }
2722
2723 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2724 # It thinks the first close brace ends the variable substitution.
2725 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2726
2727 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2728
2729 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2730
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2732 printf %s "checking whether build environment is sane... " >&6; }
2733 # Reject unsafe characters in $srcdir or the absolute working directory
2734 # name. Accept space and tab only in the latter.
2735 am_lf='
2736 '
2737 case `pwd` in
2738 *[\\\"\#\$\&\'\`$am_lf]*)
2739 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2740 esac
2741 case $srcdir in
2742 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2743 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2744 esac
2745
2746 # Do 'set' in a subshell so we don't clobber the current shell's
2747 # arguments. Must try -L first in case configure is actually a
2748 # symlink; some systems play weird games with the mod time of symlinks
2749 # (eg FreeBSD returns the mod time of the symlink's containing
2750 # directory).
2751 if (
2752 am_has_slept=no
2753 for am_try in 1 2; do
2754 echo "timestamp, slept: $am_has_slept" > conftest.file
2755 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2756 if test "$*" = "X"; then
2757 # -L didn't work.
2758 set X `ls -t "$srcdir/configure" conftest.file`
2759 fi
2760 if test "$*" != "X $srcdir/configure conftest.file" \
2761 && test "$*" != "X conftest.file $srcdir/configure"; then
2762
2763 # If neither matched, then we have a broken ls. This can happen
2764 # if, for instance, CONFIG_SHELL is bash and it inherits a
2765 # broken ls alias from the environment. This has actually
2766 # happened. Such a system could not be considered "sane".
2767 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2768 alias in your environment" "$LINENO" 5
2769 fi
2770 if test "$2" = conftest.file || test $am_try -eq 2; then
2771 break
2772 fi
2773 # Just in case.
2774 sleep 1
2775 am_has_slept=yes
2776 done
2777 test "$2" = conftest.file
2778 )
2779 then
2780 # Ok.
2781 :
2782 else
2783 as_fn_error $? "newly created file is older than distributed files!
2784 Check your system clock" "$LINENO" 5
2785 fi
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2787 printf "%s\n" "yes" >&6; }
2788 # If we didn't sleep, we still need to ensure time stamps of config.status and
2789 # generated files are strictly newer.
2790 am_sleep_pid=
2791 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2792 ( sleep 1 ) &
2793 am_sleep_pid=$!
2794 fi
2795
2796 rm -f conftest.file
2797
2798 test "$program_prefix" != NONE &&
2799 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2800 # Use a double $ so make ignores it.
2801 test "$program_suffix" != NONE &&
2802 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2803 # Double any \ or $.
2804 # By default was `s,x,x', remove it if useless.
2805 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2806 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2807
2808
2809 # Expand $ac_aux_dir to an absolute path.
2810 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2811
2812
2813 if test x"${MISSING+set}" != xset; then
2814 MISSING="\${SHELL} '$am_aux_dir/missing'"
2815 fi
2816 # Use eval to expand $SHELL
2817 if eval "$MISSING --is-lightweight"; then
2818 am_missing_run="$MISSING "
2819 else
2820 am_missing_run=
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2822 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2823 fi
2824
2825 if test x"${install_sh+set}" != xset; then
2826 case $am_aux_dir in
2827 *\ * | *\ *)
2828 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2829 *)
2830 install_sh="\${SHELL} $am_aux_dir/install-sh"
2831 esac
2832 fi
2833
2834 # Installed binaries are usually stripped using 'strip' when the user
2835 # run "make install-strip". However 'strip' might not be the right
2836 # tool to use in cross-compilation environments, therefore Automake
2837 # will honor the 'STRIP' environment variable to overrule this program.
2838 if test "$cross_compiling" != no; then
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2841 set dummy ${ac_tool_prefix}strip; ac_word=$2
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 printf %s "checking for $ac_word... " >&6; }
2844 if test ${ac_cv_prog_STRIP+y}
2845 then :
2846 printf %s "(cached) " >&6
2847 else $as_nop
2848 if test -n "$STRIP"; then
2849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 case $as_dir in #(((
2856 '') as_dir=./ ;;
2857 */) ;;
2858 *) as_dir=$as_dir/ ;;
2859 esac
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 STRIP=$ac_cv_prog_STRIP
2873 if test -n "$STRIP"; then
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2875 printf "%s\n" "$STRIP" >&6; }
2876 else
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 printf "%s\n" "no" >&6; }
2879 fi
2880
2881
2882 fi
2883 if test -z "$ac_cv_prog_STRIP"; then
2884 ac_ct_STRIP=$STRIP
2885 # Extract the first word of "strip", so it can be a program name with args.
2886 set dummy strip; ac_word=$2
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 printf %s "checking for $ac_word... " >&6; }
2889 if test ${ac_cv_prog_ac_ct_STRIP+y}
2890 then :
2891 printf %s "(cached) " >&6
2892 else $as_nop
2893 if test -n "$ac_ct_STRIP"; then
2894 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 case $as_dir in #(((
2901 '') as_dir=./ ;;
2902 */) ;;
2903 *) as_dir=$as_dir/ ;;
2904 esac
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_ac_ct_STRIP="strip"
2908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2909 break 2
2910 fi
2911 done
2912 done
2913 IFS=$as_save_IFS
2914
2915 fi
2916 fi
2917 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2918 if test -n "$ac_ct_STRIP"; then
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2920 printf "%s\n" "$ac_ct_STRIP" >&6; }
2921 else
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 printf "%s\n" "no" >&6; }
2924 fi
2925
2926 if test "x$ac_ct_STRIP" = x; then
2927 STRIP=":"
2928 else
2929 case $cross_compiling:$ac_tool_warned in
2930 yes:)
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933 ac_tool_warned=yes ;;
2934 esac
2935 STRIP=$ac_ct_STRIP
2936 fi
2937 else
2938 STRIP="$ac_cv_prog_STRIP"
2939 fi
2940
2941 fi
2942 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2943
2944
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2946 printf %s "checking for a race-free mkdir -p... " >&6; }
2947 if test -z "$MKDIR_P"; then
2948 if test ${ac_cv_path_mkdir+y}
2949 then :
2950 printf %s "(cached) " >&6
2951 else $as_nop
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2954 do
2955 IFS=$as_save_IFS
2956 case $as_dir in #(((
2957 '') as_dir=./ ;;
2958 */) ;;
2959 *) as_dir=$as_dir/ ;;
2960 esac
2961 for ac_prog in mkdir gmkdir; do
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2964 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2965 'mkdir ('*'coreutils) '* | \
2966 'BusyBox '* | \
2967 'mkdir (fileutils) '4.1*)
2968 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2969 break 3;;
2970 esac
2971 done
2972 done
2973 done
2974 IFS=$as_save_IFS
2975
2976 fi
2977
2978 test -d ./--version && rmdir ./--version
2979 if test ${ac_cv_path_mkdir+y}; then
2980 MKDIR_P="$ac_cv_path_mkdir -p"
2981 else
2982 # As a last resort, use the slow shell script. Don't cache a
2983 # value for MKDIR_P within a source directory, because that will
2984 # break other packages using the cache if that directory is
2985 # removed, or if the value is a relative name.
2986 MKDIR_P="$ac_install_sh -d"
2987 fi
2988 fi
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2990 printf "%s\n" "$MKDIR_P" >&6; }
2991
2992 for ac_prog in gawk mawk nawk awk
2993 do
2994 # Extract the first word of "$ac_prog", so it can be a program name with args.
2995 set dummy $ac_prog; ac_word=$2
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 printf %s "checking for $ac_word... " >&6; }
2998 if test ${ac_cv_prog_AWK+y}
2999 then :
3000 printf %s "(cached) " >&6
3001 else $as_nop
3002 if test -n "$AWK"; then
3003 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008 IFS=$as_save_IFS
3009 case $as_dir in #(((
3010 '') as_dir=./ ;;
3011 */) ;;
3012 *) as_dir=$as_dir/ ;;
3013 esac
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_AWK="$ac_prog"
3017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3018 break 2
3019 fi
3020 done
3021 done
3022 IFS=$as_save_IFS
3023
3024 fi
3025 fi
3026 AWK=$ac_cv_prog_AWK
3027 if test -n "$AWK"; then
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3029 printf "%s\n" "$AWK" >&6; }
3030 else
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 printf "%s\n" "no" >&6; }
3033 fi
3034
3035
3036 test -n "$AWK" && break
3037 done
3038
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3040 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3041 set x ${MAKE-make}
3042 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3043 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3044 then :
3045 printf %s "(cached) " >&6
3046 else $as_nop
3047 cat >conftest.make <<\_ACEOF
3048 SHELL = /bin/sh
3049 all:
3050 @echo '@@@%%%=$(MAKE)=@@@%%%'
3051 _ACEOF
3052 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3053 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3054 *@@@%%%=?*=@@@%%%*)
3055 eval ac_cv_prog_make_${ac_make}_set=yes;;
3056 *)
3057 eval ac_cv_prog_make_${ac_make}_set=no;;
3058 esac
3059 rm -f conftest.make
3060 fi
3061 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 printf "%s\n" "yes" >&6; }
3064 SET_MAKE=
3065 else
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 printf "%s\n" "no" >&6; }
3068 SET_MAKE="MAKE=${MAKE-make}"
3069 fi
3070
3071 rm -rf .tst 2>/dev/null
3072 mkdir .tst 2>/dev/null
3073 if test -d .tst; then
3074 am__leading_dot=.
3075 else
3076 am__leading_dot=_
3077 fi
3078 rmdir .tst 2>/dev/null
3079
3080 # Check whether --enable-silent-rules was given.
3081 if test ${enable_silent_rules+y}
3082 then :
3083 enableval=$enable_silent_rules;
3084 fi
3085
3086 case $enable_silent_rules in # (((
3087 yes) AM_DEFAULT_VERBOSITY=0;;
3088 no) AM_DEFAULT_VERBOSITY=1;;
3089 *) AM_DEFAULT_VERBOSITY=1;;
3090 esac
3091 am_make=${MAKE-make}
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3093 printf %s "checking whether $am_make supports nested variables... " >&6; }
3094 if test ${am_cv_make_support_nested_variables+y}
3095 then :
3096 printf %s "(cached) " >&6
3097 else $as_nop
3098 if printf "%s\n" 'TRUE=$(BAR$(V))
3099 BAR0=false
3100 BAR1=true
3101 V=1
3102 am__doit:
3103 @$(TRUE)
3104 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3105 am_cv_make_support_nested_variables=yes
3106 else
3107 am_cv_make_support_nested_variables=no
3108 fi
3109 fi
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3111 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3112 if test $am_cv_make_support_nested_variables = yes; then
3113 AM_V='$(V)'
3114 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3115 else
3116 AM_V=$AM_DEFAULT_VERBOSITY
3117 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3118 fi
3119 AM_BACKSLASH='\'
3120
3121 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3122 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3123 # is not polluted with repeated "-I."
3124 am__isrc=' -I$(srcdir)'
3125 # test to see if srcdir already configured
3126 if test -f $srcdir/config.status; then
3127 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3128 fi
3129 fi
3130
3131 # test whether we have cygpath
3132 if test -z "$CYGPATH_W"; then
3133 if (cygpath --version) >/dev/null 2>/dev/null; then
3134 CYGPATH_W='cygpath -w'
3135 else
3136 CYGPATH_W=echo
3137 fi
3138 fi
3139
3140
3141 # Define the identity of the package.
3142 PACKAGE='libXft'
3143 VERSION='2.3.8'
3144
3145
3146 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3147
3148
3149 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3150
3151 # Some tools Automake needs.
3152
3153 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3154
3155
3156 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3157
3158
3159 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3160
3161
3162 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3163
3164
3165 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3166
3167 # For better backward compatibility. To be removed once Automake 1.9.x
3168 # dies out for good. For more background, see:
3169 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3170 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3171 mkdir_p='$(MKDIR_P)'
3172
3173 # We need awk for the "check" target (and possibly the TAP driver). The
3174 # system "awk" is bad on some platforms.
3175 # Always define AMTAR for backward compatibility. Yes, it's still used
3176 # in the wild :-( We should find a proper way to deprecate it ...
3177 AMTAR='$${TAR-tar}'
3178
3179
3180 # We'll loop over all known methods to create a tar archive until one works.
3181 _am_tools='gnutar pax cpio none'
3182
3183 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3184
3185
3186
3187
3188
3189 # Variables for tags utilities; see am/tags.am
3190 if test -z "$CTAGS"; then
3191 CTAGS=ctags
3192 fi
3193
3194 if test -z "$ETAGS"; then
3195 ETAGS=etags
3196 fi
3197
3198 if test -z "$CSCOPE"; then
3199 CSCOPE=cscope
3200 fi
3201
3202
3203
3204 # POSIX will say in a future version that running "rm -f" with no argument
3205 # is OK; and we want to be able to make that assumption in our Makefile
3206 # recipes. So use an aggressive probe to check that the usage we want is
3207 # actually supported "in the wild" to an acceptable degree.
3208 # See automake bug#10828.
3209 # To make any issue more visible, cause the running configure to be aborted
3210 # by default if the 'rm' program in use doesn't match our expectations; the
3211 # user can still override this though.
3212 if rm -f && rm -fr && rm -rf; then : OK; else
3213 cat >&2 <<'END'
3214 Oops!
3215
3216 Your 'rm' program seems unable to run without file operands specified
3217 on the command line, even when the '-f' option is present. This is contrary
3218 to the behaviour of most rm programs out there, and not conforming with
3219 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3220
3221 Please tell bug-automake@gnu.org about your system, including the value
3222 of your $PATH and any error possibly output before this message. This
3223 can help us improve future automake versions.
3224
3225 END
3226 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3227 echo 'Configuration will proceed anyway, since you have set the' >&2
3228 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3229 echo >&2
3230 else
3231 cat >&2 <<'END'
3232 Aborting the configuration process, to ensure you take notice of the issue.
3233
3234 You can download and install GNU coreutils to get an 'rm' implementation
3235 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3236
3237 If you want to complete the configuration process using your problematic
3238 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3239 to "yes", and re-run configure.
3240
3241 END
3242 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3243 fi
3244 fi
3245
3246
3247 # Initialize libtool
3248 case `pwd` in
3249 *\ * | *\ *)
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3251 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3252 esac
3253
3254
3255
3256 macro_version='2.4.7'
3257 macro_revision='2.4.7'
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272 ltmain=$ac_aux_dir/ltmain.sh
3273
3274
3275
3276 # Make sure we can run config.sub.
3277 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3278 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3279
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3281 printf %s "checking build system type... " >&6; }
3282 if test ${ac_cv_build+y}
3283 then :
3284 printf %s "(cached) " >&6
3285 else $as_nop
3286 ac_build_alias=$build_alias
3287 test "x$ac_build_alias" = x &&
3288 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3289 test "x$ac_build_alias" = x &&
3290 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3291 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3292 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3293
3294 fi
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3296 printf "%s\n" "$ac_cv_build" >&6; }
3297 case $ac_cv_build in
3298 *-*-*) ;;
3299 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3300 esac
3301 build=$ac_cv_build
3302 ac_save_IFS=$IFS; IFS='-'
3303 set x $ac_cv_build
3304 shift
3305 build_cpu=$1
3306 build_vendor=$2
3307 shift; shift
3308 # Remember, the first character of IFS is used to create $*,
3309 # except with old shells:
3310 build_os=$*
3311 IFS=$ac_save_IFS
3312 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3313
3314
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3316 printf %s "checking host system type... " >&6; }
3317 if test ${ac_cv_host+y}
3318 then :
3319 printf %s "(cached) " >&6
3320 else $as_nop
3321 if test "x$host_alias" = x; then
3322 ac_cv_host=$ac_cv_build
3323 else
3324 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3325 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3326 fi
3327
3328 fi
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3330 printf "%s\n" "$ac_cv_host" >&6; }
3331 case $ac_cv_host in
3332 *-*-*) ;;
3333 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3334 esac
3335 host=$ac_cv_host
3336 ac_save_IFS=$IFS; IFS='-'
3337 set x $ac_cv_host
3338 shift
3339 host_cpu=$1
3340 host_vendor=$2
3341 shift; shift
3342 # Remember, the first character of IFS is used to create $*,
3343 # except with old shells:
3344 host_os=$*
3345 IFS=$ac_save_IFS
3346 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3347
3348
3349 # Backslashify metacharacters that are still active within
3350 # double-quoted strings.
3351 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3352
3353 # Same as above, but do not quote variable references.
3354 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3355
3356 # Sed substitution to delay expansion of an escaped shell variable in a
3357 # double_quote_subst'ed string.
3358 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3359
3360 # Sed substitution to delay expansion of an escaped single quote.
3361 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3362
3363 # Sed substitution to avoid accidental globbing in evaled expressions
3364 no_glob_subst='s/\*/\\\*/g'
3365
3366 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3367 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3368 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3369
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3371 printf %s "checking how to print strings... " >&6; }
3372 # Test print first, because it will be a builtin if present.
3373 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3374 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3375 ECHO='print -r --'
3376 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3377 ECHO='printf %s\n'
3378 else
3379 # Use this function as a fallback that always works.
3380 func_fallback_echo ()
3381 {
3382 eval 'cat <<_LTECHO_EOF
3383 $1
3384 _LTECHO_EOF'
3385 }
3386 ECHO='func_fallback_echo'
3387 fi
3388
3389 # func_echo_all arg...
3390 # Invoke $ECHO with all args, space-separated.
3391 func_echo_all ()
3392 {
3393 $ECHO ""
3394 }
3395
3396 case $ECHO in
3397 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3398 printf "%s\n" "printf" >&6; } ;;
3399 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3400 printf "%s\n" "print -r" >&6; } ;;
3401 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3402 printf "%s\n" "cat" >&6; } ;;
3403 esac
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427 DEPDIR="${am__leading_dot}deps"
3428
3429 ac_config_commands="$ac_config_commands depfiles"
3430
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3432 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3433 cat > confinc.mk << 'END'
3434 am__doit:
3435 @echo this is the am__doit target >confinc.out
3436 .PHONY: am__doit
3437 END
3438 am__include="#"
3439 am__quote=
3440 # BSD make does it like this.
3441 echo '.include "confinc.mk" # ignored' > confmf.BSD
3442 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3443 echo 'include confinc.mk # ignored' > confmf.GNU
3444 _am_result=no
3445 for s in GNU BSD; do
3446 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3447 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }
3451 case $?:`cat confinc.out 2>/dev/null` in #(
3452 '0:this is the am__doit target') :
3453 case $s in #(
3454 BSD) :
3455 am__include='.include' am__quote='"' ;; #(
3456 *) :
3457 am__include='include' am__quote='' ;;
3458 esac ;; #(
3459 *) :
3460 ;;
3461 esac
3462 if test "$am__include" != "#"; then
3463 _am_result="yes ($s style)"
3464 break
3465 fi
3466 done
3467 rm -f confinc.* confmf.*
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3469 printf "%s\n" "${_am_result}" >&6; }
3470
3471 # Check whether --enable-dependency-tracking was given.
3472 if test ${enable_dependency_tracking+y}
3473 then :
3474 enableval=$enable_dependency_tracking;
3475 fi
3476
3477 if test "x$enable_dependency_tracking" != xno; then
3478 am_depcomp="$ac_aux_dir/depcomp"
3479 AMDEPBACKSLASH='\'
3480 am__nodep='_no'
3481 fi
3482 if test "x$enable_dependency_tracking" != xno; then
3483 AMDEP_TRUE=
3484 AMDEP_FALSE='#'
3485 else
3486 AMDEP_TRUE='#'
3487 AMDEP_FALSE=
3488 fi
3489
3490
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3498 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 printf %s "checking for $ac_word... " >&6; }
3501 if test ${ac_cv_prog_CC+y}
3502 then :
3503 printf %s "(cached) " >&6
3504 else $as_nop
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511 IFS=$as_save_IFS
3512 case $as_dir in #(((
3513 '') as_dir=./ ;;
3514 */) ;;
3515 *) as_dir=$as_dir/ ;;
3516 esac
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523 done
3524 done
3525 IFS=$as_save_IFS
3526
3527 fi
3528 fi
3529 CC=$ac_cv_prog_CC
3530 if test -n "$CC"; then
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532 printf "%s\n" "$CC" >&6; }
3533 else
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 printf "%s\n" "no" >&6; }
3536 fi
3537
3538
3539 fi
3540 if test -z "$ac_cv_prog_CC"; then
3541 ac_ct_CC=$CC
3542 # Extract the first word of "gcc", so it can be a program name with args.
3543 set dummy gcc; ac_word=$2
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 printf %s "checking for $ac_word... " >&6; }
3546 if test ${ac_cv_prog_ac_ct_CC+y}
3547 then :
3548 printf %s "(cached) " >&6
3549 else $as_nop
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 case $as_dir in #(((
3558 '') as_dir=./ ;;
3559 */) ;;
3560 *) as_dir=$as_dir/ ;;
3561 esac
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_ac_ct_CC="gcc"
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 printf "%s\n" "$ac_ct_CC" >&6; }
3578 else
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 printf "%s\n" "no" >&6; }
3581 fi
3582
3583 if test "x$ac_ct_CC" = x; then
3584 CC=""
3585 else
3586 case $cross_compiling:$ac_tool_warned in
3587 yes:)
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590 ac_tool_warned=yes ;;
3591 esac
3592 CC=$ac_ct_CC
3593 fi
3594 else
3595 CC="$ac_cv_prog_CC"
3596 fi
3597
3598 if test -z "$CC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3601 set dummy ${ac_tool_prefix}cc; ac_word=$2
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 printf %s "checking for $ac_word... " >&6; }
3604 if test ${ac_cv_prog_CC+y}
3605 then :
3606 printf %s "(cached) " >&6
3607 else $as_nop
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 case $as_dir in #(((
3616 '') as_dir=./ ;;
3617 */) ;;
3618 *) as_dir=$as_dir/ ;;
3619 esac
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3622 ac_cv_prog_CC="${ac_tool_prefix}cc"
3623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3624 break 2
3625 fi
3626 done
3627 done
3628 IFS=$as_save_IFS
3629
3630 fi
3631 fi
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 printf "%s\n" "$CC" >&6; }
3636 else
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 printf "%s\n" "no" >&6; }
3639 fi
3640
3641
3642 fi
3643 fi
3644 if test -z "$CC"; then
3645 # Extract the first word of "cc", so it can be a program name with args.
3646 set dummy cc; ac_word=$2
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 printf %s "checking for $ac_word... " >&6; }
3649 if test ${ac_cv_prog_CC+y}
3650 then :
3651 printf %s "(cached) " >&6
3652 else $as_nop
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 ac_prog_rejected=no
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660 IFS=$as_save_IFS
3661 case $as_dir in #(((
3662 '') as_dir=./ ;;
3663 */) ;;
3664 *) as_dir=$as_dir/ ;;
3665 esac
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3668 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3669 ac_prog_rejected=yes
3670 continue
3671 fi
3672 ac_cv_prog_CC="cc"
3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676 done
3677 done
3678 IFS=$as_save_IFS
3679
3680 if test $ac_prog_rejected = yes; then
3681 # We found a bogon in the path, so make sure we never use it.
3682 set dummy $ac_cv_prog_CC
3683 shift
3684 if test $# != 0; then
3685 # We chose a different compiler from the bogus one.
3686 # However, it has the same basename, so the bogon will be chosen
3687 # first if we set CC to just the basename; use the full file name.
3688 shift
3689 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3690 fi
3691 fi
3692 fi
3693 fi
3694 CC=$ac_cv_prog_CC
3695 if test -n "$CC"; then
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697 printf "%s\n" "$CC" >&6; }
3698 else
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 printf "%s\n" "no" >&6; }
3701 fi
3702
3703
3704 fi
3705 if test -z "$CC"; then
3706 if test -n "$ac_tool_prefix"; then
3707 for ac_prog in cl.exe
3708 do
3709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 printf %s "checking for $ac_word... " >&6; }
3713 if test ${ac_cv_prog_CC+y}
3714 then :
3715 printf %s "(cached) " >&6
3716 else $as_nop
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC="$CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723 IFS=$as_save_IFS
3724 case $as_dir in #(((
3725 '') as_dir=./ ;;
3726 */) ;;
3727 *) as_dir=$as_dir/ ;;
3728 esac
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3731 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3733 break 2
3734 fi
3735 done
3736 done
3737 IFS=$as_save_IFS
3738
3739 fi
3740 fi
3741 CC=$ac_cv_prog_CC
3742 if test -n "$CC"; then
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744 printf "%s\n" "$CC" >&6; }
3745 else
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 printf "%s\n" "no" >&6; }
3748 fi
3749
3750
3751 test -n "$CC" && break
3752 done
3753 fi
3754 if test -z "$CC"; then
3755 ac_ct_CC=$CC
3756 for ac_prog in cl.exe
3757 do
3758 # Extract the first word of "$ac_prog", so it can be a program name with args.
3759 set dummy $ac_prog; ac_word=$2
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 printf %s "checking for $ac_word... " >&6; }
3762 if test ${ac_cv_prog_ac_ct_CC+y}
3763 then :
3764 printf %s "(cached) " >&6
3765 else $as_nop
3766 if test -n "$ac_ct_CC"; then
3767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772 IFS=$as_save_IFS
3773 case $as_dir in #(((
3774 '') as_dir=./ ;;
3775 */) ;;
3776 *) as_dir=$as_dir/ ;;
3777 esac
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_ac_ct_CC="$ac_prog"
3781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3782 break 2
3783 fi
3784 done
3785 done
3786 IFS=$as_save_IFS
3787
3788 fi
3789 fi
3790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3791 if test -n "$ac_ct_CC"; then
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3793 printf "%s\n" "$ac_ct_CC" >&6; }
3794 else
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 printf "%s\n" "no" >&6; }
3797 fi
3798
3799
3800 test -n "$ac_ct_CC" && break
3801 done
3802
3803 if test "x$ac_ct_CC" = x; then
3804 CC=""
3805 else
3806 case $cross_compiling:$ac_tool_warned in
3807 yes:)
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3809 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3810 ac_tool_warned=yes ;;
3811 esac
3812 CC=$ac_ct_CC
3813 fi
3814 fi
3815
3816 fi
3817 if test -z "$CC"; then
3818 if test -n "$ac_tool_prefix"; then
3819 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3820 set dummy ${ac_tool_prefix}clang; ac_word=$2
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 printf %s "checking for $ac_word... " >&6; }
3823 if test ${ac_cv_prog_CC+y}
3824 then :
3825 printf %s "(cached) " >&6
3826 else $as_nop
3827 if test -n "$CC"; then
3828 ac_cv_prog_CC="$CC" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833 IFS=$as_save_IFS
3834 case $as_dir in #(((
3835 '') as_dir=./ ;;
3836 */) ;;
3837 *) as_dir=$as_dir/ ;;
3838 esac
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3841 ac_cv_prog_CC="${ac_tool_prefix}clang"
3842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3843 break 2
3844 fi
3845 done
3846 done
3847 IFS=$as_save_IFS
3848
3849 fi
3850 fi
3851 CC=$ac_cv_prog_CC
3852 if test -n "$CC"; then
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854 printf "%s\n" "$CC" >&6; }
3855 else
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 printf "%s\n" "no" >&6; }
3858 fi
3859
3860
3861 fi
3862 if test -z "$ac_cv_prog_CC"; then
3863 ac_ct_CC=$CC
3864 # Extract the first word of "clang", so it can be a program name with args.
3865 set dummy clang; ac_word=$2
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 printf %s "checking for $ac_word... " >&6; }
3868 if test ${ac_cv_prog_ac_ct_CC+y}
3869 then :
3870 printf %s "(cached) " >&6
3871 else $as_nop
3872 if test -n "$ac_ct_CC"; then
3873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 case $as_dir in #(((
3880 '') as_dir=./ ;;
3881 */) ;;
3882 *) as_dir=$as_dir/ ;;
3883 esac
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_ac_ct_CC="clang"
3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890 done
3891 done
3892 IFS=$as_save_IFS
3893
3894 fi
3895 fi
3896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3897 if test -n "$ac_ct_CC"; then
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3899 printf "%s\n" "$ac_ct_CC" >&6; }
3900 else
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 printf "%s\n" "no" >&6; }
3903 fi
3904
3905 if test "x$ac_ct_CC" = x; then
3906 CC=""
3907 else
3908 case $cross_compiling:$ac_tool_warned in
3909 yes:)
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3911 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3912 ac_tool_warned=yes ;;
3913 esac
3914 CC=$ac_ct_CC
3915 fi
3916 else
3917 CC="$ac_cv_prog_CC"
3918 fi
3919
3920 fi
3921
3922
3923 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $? "no acceptable C compiler found in \$PATH
3926 See \`config.log' for more details" "$LINENO" 5; }
3927
3928 # Provide some information about the compiler.
3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3930 set X $ac_compile
3931 ac_compiler=$2
3932 for ac_option in --version -v -V -qversion -version; do
3933 { { ac_try="$ac_compiler $ac_option >&5"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 printf "%s\n" "$ac_try_echo"; } >&5
3940 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3941 ac_status=$?
3942 if test -s conftest.err; then
3943 sed '10a\
3944 ... rest of stderr output deleted ...
3945 10q' conftest.err >conftest.er1
3946 cat conftest.er1 >&5
3947 fi
3948 rm -f conftest.er1 conftest.err
3949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 done
3952
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955
3956 int
3957 main (void)
3958 {
3959
3960 ;
3961 return 0;
3962 }
3963 _ACEOF
3964 ac_clean_files_save=$ac_clean_files
3965 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3966 # Try to create an executable without -o first, disregard a.out.
3967 # It will help us diagnose broken compilers, and finding out an intuition
3968 # of exeext.
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3970 printf %s "checking whether the C compiler works... " >&6; }
3971 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3972
3973 # The possible output files:
3974 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3975
3976 ac_rmfiles=
3977 for ac_file in $ac_files
3978 do
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3982 esac
3983 done
3984 rm -f $ac_rmfiles
3985
3986 if { { ac_try="$ac_link_default"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 printf "%s\n" "$ac_try_echo"; } >&5
3993 (eval "$ac_link_default") 2>&5
3994 ac_status=$?
3995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }
3997 then :
3998 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3999 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4000 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4001 # so that the user can short-circuit this test for compilers unknown to
4002 # Autoconf.
4003 for ac_file in $ac_files ''
4004 do
4005 test -f "$ac_file" || continue
4006 case $ac_file in
4007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4008 ;;
4009 [ab].out )
4010 # We found the default executable, but exeext='' is most
4011 # certainly right.
4012 break;;
4013 *.* )
4014 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4015 then :; else
4016 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4017 fi
4018 # We set ac_cv_exeext here because the later test for it is not
4019 # safe: cross compilers may not add the suffix if given an `-o'
4020 # argument, so we may need to know it at that point already.
4021 # Even if this section looks crufty: it has the advantage of
4022 # actually working.
4023 break;;
4024 * )
4025 break;;
4026 esac
4027 done
4028 test "$ac_cv_exeext" = no && ac_cv_exeext=
4029
4030 else $as_nop
4031 ac_file=''
4032 fi
4033 if test -z "$ac_file"
4034 then :
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 printf "%s\n" "no" >&6; }
4037 printf "%s\n" "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4042 as_fn_error 77 "C compiler cannot create executables
4043 See \`config.log' for more details" "$LINENO" 5; }
4044 else $as_nop
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4046 printf "%s\n" "yes" >&6; }
4047 fi
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4049 printf %s "checking for C compiler default output file name... " >&6; }
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4051 printf "%s\n" "$ac_file" >&6; }
4052 ac_exeext=$ac_cv_exeext
4053
4054 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4055 ac_clean_files=$ac_clean_files_save
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4057 printf %s "checking for suffix of executables... " >&6; }
4058 if { { ac_try="$ac_link"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064 printf "%s\n" "$ac_try_echo"; } >&5
4065 (eval "$ac_link") 2>&5
4066 ac_status=$?
4067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068 test $ac_status = 0; }
4069 then :
4070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4071 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4072 # work properly (i.e., refer to `conftest.exe'), while it won't with
4073 # `rm'.
4074 for ac_file in conftest.exe conftest conftest.*; do
4075 test -f "$ac_file" || continue
4076 case $ac_file in
4077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4079 break;;
4080 * ) break;;
4081 esac
4082 done
4083 else $as_nop
4084 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4086 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4087 See \`config.log' for more details" "$LINENO" 5; }
4088 fi
4089 rm -f conftest conftest$ac_cv_exeext
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4091 printf "%s\n" "$ac_cv_exeext" >&6; }
4092
4093 rm -f conftest.$ac_ext
4094 EXEEXT=$ac_cv_exeext
4095 ac_exeext=$EXEEXT
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098 #include <stdio.h>
4099 int
4100 main (void)
4101 {
4102 FILE *f = fopen ("conftest.out", "w");
4103 return ferror (f) || fclose (f) != 0;
4104
4105 ;
4106 return 0;
4107 }
4108 _ACEOF
4109 ac_clean_files="$ac_clean_files conftest.out"
4110 # Check that the compiler produces executables we can run. If not, either
4111 # the compiler is broken, or we cross compile.
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4113 printf %s "checking whether we are cross compiling... " >&6; }
4114 if test "$cross_compiling" != yes; then
4115 { { ac_try="$ac_link"
4116 case "(($ac_try" in
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4119 esac
4120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 printf "%s\n" "$ac_try_echo"; } >&5
4122 (eval "$ac_link") 2>&5
4123 ac_status=$?
4124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125 test $ac_status = 0; }
4126 if { ac_try='./conftest$ac_cv_exeext'
4127 { { case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130 esac
4131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132 printf "%s\n" "$ac_try_echo"; } >&5
4133 (eval "$ac_try") 2>&5
4134 ac_status=$?
4135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136 test $ac_status = 0; }; }; then
4137 cross_compiling=no
4138 else
4139 if test "$cross_compiling" = maybe; then
4140 cross_compiling=yes
4141 else
4142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4143 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4144 as_fn_error 77 "cannot run C compiled programs.
4145 If you meant to cross compile, use \`--host'.
4146 See \`config.log' for more details" "$LINENO" 5; }
4147 fi
4148 fi
4149 fi
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4151 printf "%s\n" "$cross_compiling" >&6; }
4152
4153 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4154 ac_clean_files=$ac_clean_files_save
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4156 printf %s "checking for suffix of object files... " >&6; }
4157 if test ${ac_cv_objext+y}
4158 then :
4159 printf %s "(cached) " >&6
4160 else $as_nop
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163
4164 int
4165 main (void)
4166 {
4167
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.o conftest.obj
4173 if { { ac_try="$ac_compile"
4174 case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177 esac
4178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179 printf "%s\n" "$ac_try_echo"; } >&5
4180 (eval "$ac_compile") 2>&5
4181 ac_status=$?
4182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183 test $ac_status = 0; }
4184 then :
4185 for ac_file in conftest.o conftest.obj conftest.*; do
4186 test -f "$ac_file" || continue;
4187 case $ac_file in
4188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4190 break;;
4191 esac
4192 done
4193 else $as_nop
4194 printf "%s\n" "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4199 as_fn_error $? "cannot compute suffix of object files: cannot compile
4200 See \`config.log' for more details" "$LINENO" 5; }
4201 fi
4202 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4203 fi
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4205 printf "%s\n" "$ac_cv_objext" >&6; }
4206 OBJEXT=$ac_cv_objext
4207 ac_objext=$OBJEXT
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4209 printf %s "checking whether the compiler supports GNU C... " >&6; }
4210 if test ${ac_cv_c_compiler_gnu+y}
4211 then :
4212 printf %s "(cached) " >&6
4213 else $as_nop
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216
4217 int
4218 main (void)
4219 {
4220 #ifndef __GNUC__
4221 choke me
4222 #endif
4223
4224 ;
4225 return 0;
4226 }
4227 _ACEOF
4228 if ac_fn_c_try_compile "$LINENO"
4229 then :
4230 ac_compiler_gnu=yes
4231 else $as_nop
4232 ac_compiler_gnu=no
4233 fi
4234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4236
4237 fi
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4239 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242 if test $ac_compiler_gnu = yes; then
4243 GCC=yes
4244 else
4245 GCC=
4246 fi
4247 ac_test_CFLAGS=${CFLAGS+y}
4248 ac_save_CFLAGS=$CFLAGS
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4250 printf %s "checking whether $CC accepts -g... " >&6; }
4251 if test ${ac_cv_prog_cc_g+y}
4252 then :
4253 printf %s "(cached) " >&6
4254 else $as_nop
4255 ac_save_c_werror_flag=$ac_c_werror_flag
4256 ac_c_werror_flag=yes
4257 ac_cv_prog_cc_g=no
4258 CFLAGS="-g"
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261
4262 int
4263 main (void)
4264 {
4265
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 if ac_fn_c_try_compile "$LINENO"
4271 then :
4272 ac_cv_prog_cc_g=yes
4273 else $as_nop
4274 CFLAGS=""
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277
4278 int
4279 main (void)
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"
4287 then :
4288
4289 else $as_nop
4290 ac_c_werror_flag=$ac_save_c_werror_flag
4291 CFLAGS="-g"
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294
4295 int
4296 main (void)
4297 {
4298
4299 ;
4300 return 0;
4301 }
4302 _ACEOF
4303 if ac_fn_c_try_compile "$LINENO"
4304 then :
4305 ac_cv_prog_cc_g=yes
4306 fi
4307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4308 fi
4309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4312 ac_c_werror_flag=$ac_save_c_werror_flag
4313 fi
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4315 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4316 if test $ac_test_CFLAGS; then
4317 CFLAGS=$ac_save_CFLAGS
4318 elif test $ac_cv_prog_cc_g = yes; then
4319 if test "$GCC" = yes; then
4320 CFLAGS="-g -O2"
4321 else
4322 CFLAGS="-g"
4323 fi
4324 else
4325 if test "$GCC" = yes; then
4326 CFLAGS="-O2"
4327 else
4328 CFLAGS=
4329 fi
4330 fi
4331 ac_prog_cc_stdc=no
4332 if test x$ac_prog_cc_stdc = xno
4333 then :
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4335 printf %s "checking for $CC option to enable C11 features... " >&6; }
4336 if test ${ac_cv_prog_cc_c11+y}
4337 then :
4338 printf %s "(cached) " >&6
4339 else $as_nop
4340 ac_cv_prog_cc_c11=no
4341 ac_save_CC=$CC
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 $ac_c_conftest_c11_program
4345 _ACEOF
4346 for ac_arg in '' -std=gnu11
4347 do
4348 CC="$ac_save_CC $ac_arg"
4349 if ac_fn_c_try_compile "$LINENO"
4350 then :
4351 ac_cv_prog_cc_c11=$ac_arg
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext conftest.beam
4354 test "x$ac_cv_prog_cc_c11" != "xno" && break
4355 done
4356 rm -f conftest.$ac_ext
4357 CC=$ac_save_CC
4358 fi
4359
4360 if test "x$ac_cv_prog_cc_c11" = xno
4361 then :
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4363 printf "%s\n" "unsupported" >&6; }
4364 else $as_nop
4365 if test "x$ac_cv_prog_cc_c11" = x
4366 then :
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4368 printf "%s\n" "none needed" >&6; }
4369 else $as_nop
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4371 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4372 CC="$CC $ac_cv_prog_cc_c11"
4373 fi
4374 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4375 ac_prog_cc_stdc=c11
4376 fi
4377 fi
4378 if test x$ac_prog_cc_stdc = xno
4379 then :
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4381 printf %s "checking for $CC option to enable C99 features... " >&6; }
4382 if test ${ac_cv_prog_cc_c99+y}
4383 then :
4384 printf %s "(cached) " >&6
4385 else $as_nop
4386 ac_cv_prog_cc_c99=no
4387 ac_save_CC=$CC
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390 $ac_c_conftest_c99_program
4391 _ACEOF
4392 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4393 do
4394 CC="$ac_save_CC $ac_arg"
4395 if ac_fn_c_try_compile "$LINENO"
4396 then :
4397 ac_cv_prog_cc_c99=$ac_arg
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext conftest.beam
4400 test "x$ac_cv_prog_cc_c99" != "xno" && break
4401 done
4402 rm -f conftest.$ac_ext
4403 CC=$ac_save_CC
4404 fi
4405
4406 if test "x$ac_cv_prog_cc_c99" = xno
4407 then :
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4409 printf "%s\n" "unsupported" >&6; }
4410 else $as_nop
4411 if test "x$ac_cv_prog_cc_c99" = x
4412 then :
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4414 printf "%s\n" "none needed" >&6; }
4415 else $as_nop
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4417 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4418 CC="$CC $ac_cv_prog_cc_c99"
4419 fi
4420 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4421 ac_prog_cc_stdc=c99
4422 fi
4423 fi
4424 if test x$ac_prog_cc_stdc = xno
4425 then :
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4427 printf %s "checking for $CC option to enable C89 features... " >&6; }
4428 if test ${ac_cv_prog_cc_c89+y}
4429 then :
4430 printf %s "(cached) " >&6
4431 else $as_nop
4432 ac_cv_prog_cc_c89=no
4433 ac_save_CC=$CC
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4436 $ac_c_conftest_c89_program
4437 _ACEOF
4438 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4439 do
4440 CC="$ac_save_CC $ac_arg"
4441 if ac_fn_c_try_compile "$LINENO"
4442 then :
4443 ac_cv_prog_cc_c89=$ac_arg
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.beam
4446 test "x$ac_cv_prog_cc_c89" != "xno" && break
4447 done
4448 rm -f conftest.$ac_ext
4449 CC=$ac_save_CC
4450 fi
4451
4452 if test "x$ac_cv_prog_cc_c89" = xno
4453 then :
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4455 printf "%s\n" "unsupported" >&6; }
4456 else $as_nop
4457 if test "x$ac_cv_prog_cc_c89" = x
4458 then :
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4460 printf "%s\n" "none needed" >&6; }
4461 else $as_nop
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4463 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4464 CC="$CC $ac_cv_prog_cc_c89"
4465 fi
4466 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4467 ac_prog_cc_stdc=c89
4468 fi
4469 fi
4470
4471 ac_ext=c
4472 ac_cpp='$CPP $CPPFLAGS'
4473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4476
4477
4478 ac_ext=c
4479 ac_cpp='$CPP $CPPFLAGS'
4480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4484 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4485 if test ${am_cv_prog_cc_c_o+y}
4486 then :
4487 printf %s "(cached) " >&6
4488 else $as_nop
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491
4492 int
4493 main (void)
4494 {
4495
4496 ;
4497 return 0;
4498 }
4499 _ACEOF
4500 # Make sure it works both with $CC and with simple cc.
4501 # Following AC_PROG_CC_C_O, we do the test twice because some
4502 # compilers refuse to overwrite an existing .o file with -o,
4503 # though they will create one.
4504 am_cv_prog_cc_c_o=yes
4505 for am_i in 1 2; do
4506 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4507 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } \
4511 && test -f conftest2.$ac_objext; then
4512 : OK
4513 else
4514 am_cv_prog_cc_c_o=no
4515 break
4516 fi
4517 done
4518 rm -f core conftest*
4519 unset am_i
4520 fi
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4522 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4523 if test "$am_cv_prog_cc_c_o" != yes; then
4524 # Losing compiler, so override with the script.
4525 # FIXME: It is wrong to rewrite CC.
4526 # But if we don't then we get into trouble of one sort or another.
4527 # A longer-term fix would be to have automake use am__CC in this case,
4528 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4529 CC="$am_aux_dir/compile $CC"
4530 fi
4531 ac_ext=c
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537
4538 depcc="$CC" am_compiler_list=
4539
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4541 printf %s "checking dependency style of $depcc... " >&6; }
4542 if test ${am_cv_CC_dependencies_compiler_type+y}
4543 then :
4544 printf %s "(cached) " >&6
4545 else $as_nop
4546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4547 # We make a subdir and do the tests there. Otherwise we can end up
4548 # making bogus files that we don't know about and never remove. For
4549 # instance it was reported that on HP-UX the gcc test will end up
4550 # making a dummy file named 'D' -- because '-MD' means "put the output
4551 # in D".
4552 rm -rf conftest.dir
4553 mkdir conftest.dir
4554 # Copy depcomp to subdir because otherwise we won't find it if we're
4555 # using a relative directory.
4556 cp "$am_depcomp" conftest.dir
4557 cd conftest.dir
4558 # We will build objects and dependencies in a subdirectory because
4559 # it helps to detect inapplicable dependency modes. For instance
4560 # both Tru64's cc and ICC support -MD to output dependencies as a
4561 # side effect of compilation, but ICC will put the dependencies in
4562 # the current directory while Tru64 will put them in the object
4563 # directory.
4564 mkdir sub
4565
4566 am_cv_CC_dependencies_compiler_type=none
4567 if test "$am_compiler_list" = ""; then
4568 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4569 fi
4570 am__universal=false
4571 case " $depcc " in #(
4572 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4573 esac
4574
4575 for depmode in $am_compiler_list; do
4576 # Setup a source with many dependencies, because some compilers
4577 # like to wrap large dependency lists on column 80 (with \), and
4578 # we should not choose a depcomp mode which is confused by this.
4579 #
4580 # We need to recreate these files for each test, as the compiler may
4581 # overwrite some of them when testing with obscure command lines.
4582 # This happens at least with the AIX C compiler.
4583 : > sub/conftest.c
4584 for i in 1 2 3 4 5 6; do
4585 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4586 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4587 # Solaris 10 /bin/sh.
4588 echo '/* dummy */' > sub/conftst$i.h
4589 done
4590 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4591
4592 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4593 # mode. It turns out that the SunPro C++ compiler does not properly
4594 # handle '-M -o', and we need to detect this. Also, some Intel
4595 # versions had trouble with output in subdirs.
4596 am__obj=sub/conftest.${OBJEXT-o}
4597 am__minus_obj="-o $am__obj"
4598 case $depmode in
4599 gcc)
4600 # This depmode causes a compiler race in universal mode.
4601 test "$am__universal" = false || continue
4602 ;;
4603 nosideeffect)
4604 # After this tag, mechanisms are not by side-effect, so they'll
4605 # only be used when explicitly requested.
4606 if test "x$enable_dependency_tracking" = xyes; then
4607 continue
4608 else
4609 break
4610 fi
4611 ;;
4612 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4613 # This compiler won't grok '-c -o', but also, the minuso test has
4614 # not run yet. These depmodes are late enough in the game, and
4615 # so weak that their functioning should not be impacted.
4616 am__obj=conftest.${OBJEXT-o}
4617 am__minus_obj=
4618 ;;
4619 none) break ;;
4620 esac
4621 if depmode=$depmode \
4622 source=sub/conftest.c object=$am__obj \
4623 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4624 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4625 >/dev/null 2>conftest.err &&
4626 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4627 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4628 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4629 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4630 # icc doesn't choke on unknown options, it will just issue warnings
4631 # or remarks (even with -Werror). So we grep stderr for any message
4632 # that says an option was ignored or not supported.
4633 # When given -MP, icc 7.0 and 7.1 complain thusly:
4634 # icc: Command line warning: ignoring option '-M'; no argument required
4635 # The diagnosis changed in icc 8.0:
4636 # icc: Command line remark: option '-MP' not supported
4637 if (grep 'ignoring option' conftest.err ||
4638 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4639 am_cv_CC_dependencies_compiler_type=$depmode
4640 break
4641 fi
4642 fi
4643 done
4644
4645 cd ..
4646 rm -rf conftest.dir
4647 else
4648 am_cv_CC_dependencies_compiler_type=none
4649 fi
4650
4651 fi
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4653 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4654 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4655
4656 if
4657 test "x$enable_dependency_tracking" != xno \
4658 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4659 am__fastdepCC_TRUE=
4660 am__fastdepCC_FALSE='#'
4661 else
4662 am__fastdepCC_TRUE='#'
4663 am__fastdepCC_FALSE=
4664 fi
4665
4666
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4668 printf %s "checking for a sed that does not truncate output... " >&6; }
4669 if test ${ac_cv_path_SED+y}
4670 then :
4671 printf %s "(cached) " >&6
4672 else $as_nop
4673 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4674 for ac_i in 1 2 3 4 5 6 7; do
4675 ac_script="$ac_script$as_nl$ac_script"
4676 done
4677 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4678 { ac_script=; unset ac_script;}
4679 if test -z "$SED"; then
4680 ac_path_SED_found=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685 IFS=$as_save_IFS
4686 case $as_dir in #(((
4687 '') as_dir=./ ;;
4688 */) ;;
4689 *) as_dir=$as_dir/ ;;
4690 esac
4691 for ac_prog in sed gsed
4692 do
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4695 as_fn_executable_p "$ac_path_SED" || continue
4696 # Check for GNU ac_path_SED and select it if it is found.
4697 # Check for GNU $ac_path_SED
4698 case `"$ac_path_SED" --version 2>&1` in
4699 *GNU*)
4700 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4701 *)
4702 ac_count=0
4703 printf %s 0123456789 >"conftest.in"
4704 while :
4705 do
4706 cat "conftest.in" "conftest.in" >"conftest.tmp"
4707 mv "conftest.tmp" "conftest.in"
4708 cp "conftest.in" "conftest.nl"
4709 printf "%s\n" '' >> "conftest.nl"
4710 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4712 as_fn_arith $ac_count + 1 && ac_count=$as_val
4713 if test $ac_count -gt ${ac_path_SED_max-0}; then
4714 # Best one so far, save it but keep looking for a better one
4715 ac_cv_path_SED="$ac_path_SED"
4716 ac_path_SED_max=$ac_count
4717 fi
4718 # 10*(2^10) chars as input seems more than enough
4719 test $ac_count -gt 10 && break
4720 done
4721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4722 esac
4723
4724 $ac_path_SED_found && break 3
4725 done
4726 done
4727 done
4728 IFS=$as_save_IFS
4729 if test -z "$ac_cv_path_SED"; then
4730 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4731 fi
4732 else
4733 ac_cv_path_SED=$SED
4734 fi
4735
4736 fi
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4738 printf "%s\n" "$ac_cv_path_SED" >&6; }
4739 SED="$ac_cv_path_SED"
4740 rm -f conftest.sed
4741
4742 test -z "$SED" && SED=sed
4743 Xsed="$SED -e 1s/^X//"
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4756 printf %s "checking for grep that handles long lines and -e... " >&6; }
4757 if test ${ac_cv_path_GREP+y}
4758 then :
4759 printf %s "(cached) " >&6
4760 else $as_nop
4761 if test -z "$GREP"; then
4762 ac_path_GREP_found=false
4763 # Loop through the user's path and test for each of PROGNAME-LIST
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4766 do
4767 IFS=$as_save_IFS
4768 case $as_dir in #(((
4769 '') as_dir=./ ;;
4770 */) ;;
4771 *) as_dir=$as_dir/ ;;
4772 esac
4773 for ac_prog in grep ggrep
4774 do
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4777 as_fn_executable_p "$ac_path_GREP" || continue
4778 # Check for GNU ac_path_GREP and select it if it is found.
4779 # Check for GNU $ac_path_GREP
4780 case `"$ac_path_GREP" --version 2>&1` in
4781 *GNU*)
4782 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4783 *)
4784 ac_count=0
4785 printf %s 0123456789 >"conftest.in"
4786 while :
4787 do
4788 cat "conftest.in" "conftest.in" >"conftest.tmp"
4789 mv "conftest.tmp" "conftest.in"
4790 cp "conftest.in" "conftest.nl"
4791 printf "%s\n" 'GREP' >> "conftest.nl"
4792 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4794 as_fn_arith $ac_count + 1 && ac_count=$as_val
4795 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4796 # Best one so far, save it but keep looking for a better one
4797 ac_cv_path_GREP="$ac_path_GREP"
4798 ac_path_GREP_max=$ac_count
4799 fi
4800 # 10*(2^10) chars as input seems more than enough
4801 test $ac_count -gt 10 && break
4802 done
4803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4804 esac
4805
4806 $ac_path_GREP_found && break 3
4807 done
4808 done
4809 done
4810 IFS=$as_save_IFS
4811 if test -z "$ac_cv_path_GREP"; then
4812 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4813 fi
4814 else
4815 ac_cv_path_GREP=$GREP
4816 fi
4817
4818 fi
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4820 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4821 GREP="$ac_cv_path_GREP"
4822
4823
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4825 printf %s "checking for egrep... " >&6; }
4826 if test ${ac_cv_path_EGREP+y}
4827 then :
4828 printf %s "(cached) " >&6
4829 else $as_nop
4830 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4831 then ac_cv_path_EGREP="$GREP -E"
4832 else
4833 if test -z "$EGREP"; then
4834 ac_path_EGREP_found=false
4835 # Loop through the user's path and test for each of PROGNAME-LIST
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4838 do
4839 IFS=$as_save_IFS
4840 case $as_dir in #(((
4841 '') as_dir=./ ;;
4842 */) ;;
4843 *) as_dir=$as_dir/ ;;
4844 esac
4845 for ac_prog in egrep
4846 do
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4849 as_fn_executable_p "$ac_path_EGREP" || continue
4850 # Check for GNU ac_path_EGREP and select it if it is found.
4851 # Check for GNU $ac_path_EGREP
4852 case `"$ac_path_EGREP" --version 2>&1` in
4853 *GNU*)
4854 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4855 *)
4856 ac_count=0
4857 printf %s 0123456789 >"conftest.in"
4858 while :
4859 do
4860 cat "conftest.in" "conftest.in" >"conftest.tmp"
4861 mv "conftest.tmp" "conftest.in"
4862 cp "conftest.in" "conftest.nl"
4863 printf "%s\n" 'EGREP' >> "conftest.nl"
4864 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4866 as_fn_arith $ac_count + 1 && ac_count=$as_val
4867 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4868 # Best one so far, save it but keep looking for a better one
4869 ac_cv_path_EGREP="$ac_path_EGREP"
4870 ac_path_EGREP_max=$ac_count
4871 fi
4872 # 10*(2^10) chars as input seems more than enough
4873 test $ac_count -gt 10 && break
4874 done
4875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4876 esac
4877
4878 $ac_path_EGREP_found && break 3
4879 done
4880 done
4881 done
4882 IFS=$as_save_IFS
4883 if test -z "$ac_cv_path_EGREP"; then
4884 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4885 fi
4886 else
4887 ac_cv_path_EGREP=$EGREP
4888 fi
4889
4890 fi
4891 fi
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4893 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4894 EGREP="$ac_cv_path_EGREP"
4895
4896
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4898 printf %s "checking for fgrep... " >&6; }
4899 if test ${ac_cv_path_FGREP+y}
4900 then :
4901 printf %s "(cached) " >&6
4902 else $as_nop
4903 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4904 then ac_cv_path_FGREP="$GREP -F"
4905 else
4906 if test -z "$FGREP"; then
4907 ac_path_FGREP_found=false
4908 # Loop through the user's path and test for each of PROGNAME-LIST
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4911 do
4912 IFS=$as_save_IFS
4913 case $as_dir in #(((
4914 '') as_dir=./ ;;
4915 */) ;;
4916 *) as_dir=$as_dir/ ;;
4917 esac
4918 for ac_prog in fgrep
4919 do
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4922 as_fn_executable_p "$ac_path_FGREP" || continue
4923 # Check for GNU ac_path_FGREP and select it if it is found.
4924 # Check for GNU $ac_path_FGREP
4925 case `"$ac_path_FGREP" --version 2>&1` in
4926 *GNU*)
4927 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4928 *)
4929 ac_count=0
4930 printf %s 0123456789 >"conftest.in"
4931 while :
4932 do
4933 cat "conftest.in" "conftest.in" >"conftest.tmp"
4934 mv "conftest.tmp" "conftest.in"
4935 cp "conftest.in" "conftest.nl"
4936 printf "%s\n" 'FGREP' >> "conftest.nl"
4937 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4939 as_fn_arith $ac_count + 1 && ac_count=$as_val
4940 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4941 # Best one so far, save it but keep looking for a better one
4942 ac_cv_path_FGREP="$ac_path_FGREP"
4943 ac_path_FGREP_max=$ac_count
4944 fi
4945 # 10*(2^10) chars as input seems more than enough
4946 test $ac_count -gt 10 && break
4947 done
4948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4949 esac
4950
4951 $ac_path_FGREP_found && break 3
4952 done
4953 done
4954 done
4955 IFS=$as_save_IFS
4956 if test -z "$ac_cv_path_FGREP"; then
4957 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4958 fi
4959 else
4960 ac_cv_path_FGREP=$FGREP
4961 fi
4962
4963 fi
4964 fi
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4966 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4967 FGREP="$ac_cv_path_FGREP"
4968
4969
4970 test -z "$GREP" && GREP=grep
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990 # Check whether --with-gnu-ld was given.
4991 if test ${with_gnu_ld+y}
4992 then :
4993 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4994 else $as_nop
4995 with_gnu_ld=no
4996 fi
4997
4998 ac_prog=ld
4999 if test yes = "$GCC"; then
5000 # Check if gcc -print-prog-name=ld gives a path.
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5002 printf %s "checking for ld used by $CC... " >&6; }
5003 case $host in
5004 *-*-mingw*)
5005 # gcc leaves a trailing carriage return, which upsets mingw
5006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5007 *)
5008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5009 esac
5010 case $ac_prog in
5011 # Accept absolute paths.
5012 [\\/]* | ?:[\\/]*)
5013 re_direlt='/[^/][^/]*/\.\./'
5014 # Canonicalize the pathname of ld
5015 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5016 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5017 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5018 done
5019 test -z "$LD" && LD=$ac_prog
5020 ;;
5021 "")
5022 # If it fails, then pretend we aren't using GCC.
5023 ac_prog=ld
5024 ;;
5025 *)
5026 # If it is relative, then search for the first ld in PATH.
5027 with_gnu_ld=unknown
5028 ;;
5029 esac
5030 elif test yes = "$with_gnu_ld"; then
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5032 printf %s "checking for GNU ld... " >&6; }
5033 else
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5035 printf %s "checking for non-GNU ld... " >&6; }
5036 fi
5037 if test ${lt_cv_path_LD+y}
5038 then :
5039 printf %s "(cached) " >&6
5040 else $as_nop
5041 if test -z "$LD"; then
5042 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5043 for ac_dir in $PATH; do
5044 IFS=$lt_save_ifs
5045 test -z "$ac_dir" && ac_dir=.
5046 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5047 lt_cv_path_LD=$ac_dir/$ac_prog
5048 # Check to see if the program is GNU ld. I'd rather use --version,
5049 # but apparently some variants of GNU ld only accept -v.
5050 # Break only if it was the GNU/non-GNU ld that we prefer.
5051 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5052 *GNU* | *'with BFD'*)
5053 test no != "$with_gnu_ld" && break
5054 ;;
5055 *)
5056 test yes != "$with_gnu_ld" && break
5057 ;;
5058 esac
5059 fi
5060 done
5061 IFS=$lt_save_ifs
5062 else
5063 lt_cv_path_LD=$LD # Let the user override the test with a path.
5064 fi
5065 fi
5066
5067 LD=$lt_cv_path_LD
5068 if test -n "$LD"; then
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5070 printf "%s\n" "$LD" >&6; }
5071 else
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 printf "%s\n" "no" >&6; }
5074 fi
5075 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5077 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5078 if test ${lt_cv_prog_gnu_ld+y}
5079 then :
5080 printf %s "(cached) " >&6
5081 else $as_nop
5082 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5083 case `$LD -v 2>&1 </dev/null` in
5084 *GNU* | *'with BFD'*)
5085 lt_cv_prog_gnu_ld=yes
5086 ;;
5087 *)
5088 lt_cv_prog_gnu_ld=no
5089 ;;
5090 esac
5091 fi
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5093 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5094 with_gnu_ld=$lt_cv_prog_gnu_ld
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5105 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5106 if test ${lt_cv_path_NM+y}
5107 then :
5108 printf %s "(cached) " >&6
5109 else $as_nop
5110 if test -n "$NM"; then
5111 # Let the user override the test.
5112 lt_cv_path_NM=$NM
5113 else
5114 lt_nm_to_check=${ac_tool_prefix}nm
5115 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5116 lt_nm_to_check="$lt_nm_to_check nm"
5117 fi
5118 for lt_tmp_nm in $lt_nm_to_check; do
5119 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5120 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5121 IFS=$lt_save_ifs
5122 test -z "$ac_dir" && ac_dir=.
5123 tmp_nm=$ac_dir/$lt_tmp_nm
5124 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5125 # Check to see if the nm accepts a BSD-compat flag.
5126 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5127 # nm: unknown option "B" ignored
5128 # Tru64's nm complains that /dev/null is an invalid object file
5129 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5130 case $build_os in
5131 mingw*) lt_bad_file=conftest.nm/nofile ;;
5132 *) lt_bad_file=/dev/null ;;
5133 esac
5134 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5135 *$lt_bad_file* | *'Invalid file or object type'*)
5136 lt_cv_path_NM="$tmp_nm -B"
5137 break 2
5138 ;;
5139 *)
5140 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5141 */dev/null*)
5142 lt_cv_path_NM="$tmp_nm -p"
5143 break 2
5144 ;;
5145 *)
5146 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5147 continue # so that we can try to find one that supports BSD flags
5148 ;;
5149 esac
5150 ;;
5151 esac
5152 fi
5153 done
5154 IFS=$lt_save_ifs
5155 done
5156 : ${lt_cv_path_NM=no}
5157 fi
5158 fi
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5160 printf "%s\n" "$lt_cv_path_NM" >&6; }
5161 if test no != "$lt_cv_path_NM"; then
5162 NM=$lt_cv_path_NM
5163 else
5164 # Didn't find any BSD compatible name lister, look for dumpbin.
5165 if test -n "$DUMPBIN"; then :
5166 # Let the user override the test.
5167 else
5168 if test -n "$ac_tool_prefix"; then
5169 for ac_prog in dumpbin "link -dump"
5170 do
5171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 printf %s "checking for $ac_word... " >&6; }
5175 if test ${ac_cv_prog_DUMPBIN+y}
5176 then :
5177 printf %s "(cached) " >&6
5178 else $as_nop
5179 if test -n "$DUMPBIN"; then
5180 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 case $as_dir in #(((
5187 '') as_dir=./ ;;
5188 */) ;;
5189 *) as_dir=$as_dir/ ;;
5190 esac
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5193 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197 done
5198 done
5199 IFS=$as_save_IFS
5200
5201 fi
5202 fi
5203 DUMPBIN=$ac_cv_prog_DUMPBIN
5204 if test -n "$DUMPBIN"; then
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5206 printf "%s\n" "$DUMPBIN" >&6; }
5207 else
5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 printf "%s\n" "no" >&6; }
5210 fi
5211
5212
5213 test -n "$DUMPBIN" && break
5214 done
5215 fi
5216 if test -z "$DUMPBIN"; then
5217 ac_ct_DUMPBIN=$DUMPBIN
5218 for ac_prog in dumpbin "link -dump"
5219 do
5220 # Extract the first word of "$ac_prog", so it can be a program name with args.
5221 set dummy $ac_prog; ac_word=$2
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 printf %s "checking for $ac_word... " >&6; }
5224 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5225 then :
5226 printf %s "(cached) " >&6
5227 else $as_nop
5228 if test -n "$ac_ct_DUMPBIN"; then
5229 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234 IFS=$as_save_IFS
5235 case $as_dir in #(((
5236 '') as_dir=./ ;;
5237 */) ;;
5238 *) as_dir=$as_dir/ ;;
5239 esac
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246 done
5247 done
5248 IFS=$as_save_IFS
5249
5250 fi
5251 fi
5252 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5253 if test -n "$ac_ct_DUMPBIN"; then
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5255 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5256 else
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 printf "%s\n" "no" >&6; }
5259 fi
5260
5261
5262 test -n "$ac_ct_DUMPBIN" && break
5263 done
5264
5265 if test "x$ac_ct_DUMPBIN" = x; then
5266 DUMPBIN=":"
5267 else
5268 case $cross_compiling:$ac_tool_warned in
5269 yes:)
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272 ac_tool_warned=yes ;;
5273 esac
5274 DUMPBIN=$ac_ct_DUMPBIN
5275 fi
5276 fi
5277
5278 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5279 *COFF*)
5280 DUMPBIN="$DUMPBIN -symbols -headers"
5281 ;;
5282 *)
5283 DUMPBIN=:
5284 ;;
5285 esac
5286 fi
5287
5288 if test : != "$DUMPBIN"; then
5289 NM=$DUMPBIN
5290 fi
5291 fi
5292 test -z "$NM" && NM=nm
5293
5294
5295
5296
5297
5298
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5300 printf %s "checking the name lister ($NM) interface... " >&6; }
5301 if test ${lt_cv_nm_interface+y}
5302 then :
5303 printf %s "(cached) " >&6
5304 else $as_nop
5305 lt_cv_nm_interface="BSD nm"
5306 echo "int some_variable = 0;" > conftest.$ac_ext
5307 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5308 (eval "$ac_compile" 2>conftest.err)
5309 cat conftest.err >&5
5310 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5311 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5312 cat conftest.err >&5
5313 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5314 cat conftest.out >&5
5315 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5316 lt_cv_nm_interface="MS dumpbin"
5317 fi
5318 rm -f conftest*
5319 fi
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5321 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5322
5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5324 printf %s "checking whether ln -s works... " >&6; }
5325 LN_S=$as_ln_s
5326 if test "$LN_S" = "ln -s"; then
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5328 printf "%s\n" "yes" >&6; }
5329 else
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5331 printf "%s\n" "no, using $LN_S" >&6; }
5332 fi
5333
5334 # find the maximum length of command line arguments
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5336 printf %s "checking the maximum length of command line arguments... " >&6; }
5337 if test ${lt_cv_sys_max_cmd_len+y}
5338 then :
5339 printf %s "(cached) " >&6
5340 else $as_nop
5341 i=0
5342 teststring=ABCD
5343
5344 case $build_os in
5345 msdosdjgpp*)
5346 # On DJGPP, this test can blow up pretty badly due to problems in libc
5347 # (any single argument exceeding 2000 bytes causes a buffer overrun
5348 # during glob expansion). Even if it were fixed, the result of this
5349 # check would be larger than it should be.
5350 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5351 ;;
5352
5353 gnu*)
5354 # Under GNU Hurd, this test is not required because there is
5355 # no limit to the length of command line arguments.
5356 # Libtool will interpret -1 as no limit whatsoever
5357 lt_cv_sys_max_cmd_len=-1;
5358 ;;
5359
5360 cygwin* | mingw* | cegcc*)
5361 # On Win9x/ME, this test blows up -- it succeeds, but takes
5362 # about 5 minutes as the teststring grows exponentially.
5363 # Worse, since 9x/ME are not pre-emptively multitasking,
5364 # you end up with a "frozen" computer, even though with patience
5365 # the test eventually succeeds (with a max line length of 256k).
5366 # Instead, let's just punt: use the minimum linelength reported by
5367 # all of the supported platforms: 8192 (on NT/2K/XP).
5368 lt_cv_sys_max_cmd_len=8192;
5369 ;;
5370
5371 mint*)
5372 # On MiNT this can take a long time and run out of memory.
5373 lt_cv_sys_max_cmd_len=8192;
5374 ;;
5375
5376 mint*)
5377 # On MiNT this can take a long time and run out of memory.
5378 lt_cv_sys_max_cmd_len=8192;
5379 ;;
5380
5381 amigaos*)
5382 # On AmigaOS with pdksh, this test takes hours, literally.
5383 # So we just punt and use a minimum line length of 8192.
5384 lt_cv_sys_max_cmd_len=8192;
5385 ;;
5386
5387 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5388 # This has been around since 386BSD, at least. Likely further.
5389 if test -x /sbin/sysctl; then
5390 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5391 elif test -x /usr/sbin/sysctl; then
5392 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5393 else
5394 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5395 fi
5396 # And add a safety zone
5397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5399 ;;
5400
5401 interix*)
5402 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5403 lt_cv_sys_max_cmd_len=196608
5404 ;;
5405
5406 os2*)
5407 # The test takes a long time on OS/2.
5408 lt_cv_sys_max_cmd_len=8192
5409 ;;
5410
5411 osf*)
5412 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5413 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5414 # nice to cause kernel panics so lets avoid the loop below.
5415 # First set a reasonable default.
5416 lt_cv_sys_max_cmd_len=16384
5417 #
5418 if test -x /sbin/sysconfig; then
5419 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5420 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5421 esac
5422 fi
5423 ;;
5424 sco3.2v5*)
5425 lt_cv_sys_max_cmd_len=102400
5426 ;;
5427 sysv5* | sco5v6* | sysv4.2uw2*)
5428 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5429 if test -n "$kargmax"; then
5430 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5431 else
5432 lt_cv_sys_max_cmd_len=32768
5433 fi
5434 ;;
5435 *)
5436 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5437 if test -n "$lt_cv_sys_max_cmd_len" && \
5438 test undefined != "$lt_cv_sys_max_cmd_len"; then
5439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5441 else
5442 # Make teststring a little bigger before we do anything with it.
5443 # a 1K string should be a reasonable start.
5444 for i in 1 2 3 4 5 6 7 8; do
5445 teststring=$teststring$teststring
5446 done
5447 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5448 # If test is not a shell built-in, we'll probably end up computing a
5449 # maximum length that is only half of the actual maximum length, but
5450 # we can't tell.
5451 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5452 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5453 test 17 != "$i" # 1/2 MB should be enough
5454 do
5455 i=`expr $i + 1`
5456 teststring=$teststring$teststring
5457 done
5458 # Only check the string length outside the loop.
5459 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5460 teststring=
5461 # Add a significant safety factor because C++ compilers can tack on
5462 # massive amounts of additional arguments before passing them to the
5463 # linker. It appears as though 1/2 is a usable value.
5464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5465 fi
5466 ;;
5467 esac
5468
5469 fi
5470
5471 if test -n "$lt_cv_sys_max_cmd_len"; then
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5473 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5474 else
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5476 printf "%s\n" "none" >&6; }
5477 fi
5478 max_cmd_len=$lt_cv_sys_max_cmd_len
5479
5480
5481
5482
5483
5484
5485 : ${CP="cp -f"}
5486 : ${MV="mv -f"}
5487 : ${RM="rm -f"}
5488
5489 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5490 lt_unset=unset
5491 else
5492 lt_unset=false
5493 fi
5494
5495
5496
5497
5498
5499 # test EBCDIC or ASCII
5500 case `echo X|tr X '\101'` in
5501 A) # ASCII based system
5502 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5503 lt_SP2NL='tr \040 \012'
5504 lt_NL2SP='tr \015\012 \040\040'
5505 ;;
5506 *) # EBCDIC based system
5507 lt_SP2NL='tr \100 \n'
5508 lt_NL2SP='tr \r\n \100\100'
5509 ;;
5510 esac
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5521 printf %s "checking how to convert $build file names to $host format... " >&6; }
5522 if test ${lt_cv_to_host_file_cmd+y}
5523 then :
5524 printf %s "(cached) " >&6
5525 else $as_nop
5526 case $host in
5527 *-*-mingw* )
5528 case $build in
5529 *-*-mingw* ) # actually msys
5530 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5531 ;;
5532 *-*-cygwin* )
5533 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5534 ;;
5535 * ) # otherwise, assume *nix
5536 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5537 ;;
5538 esac
5539 ;;
5540 *-*-cygwin* )
5541 case $build in
5542 *-*-mingw* ) # actually msys
5543 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5544 ;;
5545 *-*-cygwin* )
5546 lt_cv_to_host_file_cmd=func_convert_file_noop
5547 ;;
5548 * ) # otherwise, assume *nix
5549 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5550 ;;
5551 esac
5552 ;;
5553 * ) # unhandled hosts (and "normal" native builds)
5554 lt_cv_to_host_file_cmd=func_convert_file_noop
5555 ;;
5556 esac
5557
5558 fi
5559
5560 to_host_file_cmd=$lt_cv_to_host_file_cmd
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5562 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5563
5564
5565
5566
5567
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5569 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5570 if test ${lt_cv_to_tool_file_cmd+y}
5571 then :
5572 printf %s "(cached) " >&6
5573 else $as_nop
5574 #assume ordinary cross tools, or native build.
5575 lt_cv_to_tool_file_cmd=func_convert_file_noop
5576 case $host in
5577 *-*-mingw* )
5578 case $build in
5579 *-*-mingw* ) # actually msys
5580 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5581 ;;
5582 esac
5583 ;;
5584 esac
5585
5586 fi
5587
5588 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5590 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5591
5592
5593
5594
5595
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5597 printf %s "checking for $LD option to reload object files... " >&6; }
5598 if test ${lt_cv_ld_reload_flag+y}
5599 then :
5600 printf %s "(cached) " >&6
5601 else $as_nop
5602 lt_cv_ld_reload_flag='-r'
5603 fi
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5605 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5606 reload_flag=$lt_cv_ld_reload_flag
5607 case $reload_flag in
5608 "" | " "*) ;;
5609 *) reload_flag=" $reload_flag" ;;
5610 esac
5611 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5612 case $host_os in
5613 cygwin* | mingw* | pw32* | cegcc*)
5614 if test yes != "$GCC"; then
5615 reload_cmds=false
5616 fi
5617 ;;
5618 darwin*)
5619 if test yes = "$GCC"; then
5620 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5621 else
5622 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5623 fi
5624 ;;
5625 esac
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635 if test -n "$ac_tool_prefix"; then
5636 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5637 set dummy ${ac_tool_prefix}file; ac_word=$2
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 printf %s "checking for $ac_word... " >&6; }
5640 if test ${ac_cv_prog_FILECMD+y}
5641 then :
5642 printf %s "(cached) " >&6
5643 else $as_nop
5644 if test -n "$FILECMD"; then
5645 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650 IFS=$as_save_IFS
5651 case $as_dir in #(((
5652 '') as_dir=./ ;;
5653 */) ;;
5654 *) as_dir=$as_dir/ ;;
5655 esac
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5660 break 2
5661 fi
5662 done
5663 done
5664 IFS=$as_save_IFS
5665
5666 fi
5667 fi
5668 FILECMD=$ac_cv_prog_FILECMD
5669 if test -n "$FILECMD"; then
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5671 printf "%s\n" "$FILECMD" >&6; }
5672 else
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 printf "%s\n" "no" >&6; }
5675 fi
5676
5677
5678 fi
5679 if test -z "$ac_cv_prog_FILECMD"; then
5680 ac_ct_FILECMD=$FILECMD
5681 # Extract the first word of "file", so it can be a program name with args.
5682 set dummy file; ac_word=$2
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 printf %s "checking for $ac_word... " >&6; }
5685 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5686 then :
5687 printf %s "(cached) " >&6
5688 else $as_nop
5689 if test -n "$ac_ct_FILECMD"; then
5690 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695 IFS=$as_save_IFS
5696 case $as_dir in #(((
5697 '') as_dir=./ ;;
5698 */) ;;
5699 *) as_dir=$as_dir/ ;;
5700 esac
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_ac_ct_FILECMD="file"
5704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707 done
5708 done
5709 IFS=$as_save_IFS
5710
5711 fi
5712 fi
5713 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5714 if test -n "$ac_ct_FILECMD"; then
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5716 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5717 else
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 printf "%s\n" "no" >&6; }
5720 fi
5721
5722 if test "x$ac_ct_FILECMD" = x; then
5723 FILECMD=":"
5724 else
5725 case $cross_compiling:$ac_tool_warned in
5726 yes:)
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5728 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5729 ac_tool_warned=yes ;;
5730 esac
5731 FILECMD=$ac_ct_FILECMD
5732 fi
5733 else
5734 FILECMD="$ac_cv_prog_FILECMD"
5735 fi
5736
5737
5738
5739
5740
5741
5742
5743 if test -n "$ac_tool_prefix"; then
5744 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5745 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747 printf %s "checking for $ac_word... " >&6; }
5748 if test ${ac_cv_prog_OBJDUMP+y}
5749 then :
5750 printf %s "(cached) " >&6
5751 else $as_nop
5752 if test -n "$OBJDUMP"; then
5753 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758 IFS=$as_save_IFS
5759 case $as_dir in #(((
5760 '') as_dir=./ ;;
5761 */) ;;
5762 *) as_dir=$as_dir/ ;;
5763 esac
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5766 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5768 break 2
5769 fi
5770 done
5771 done
5772 IFS=$as_save_IFS
5773
5774 fi
5775 fi
5776 OBJDUMP=$ac_cv_prog_OBJDUMP
5777 if test -n "$OBJDUMP"; then
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5779 printf "%s\n" "$OBJDUMP" >&6; }
5780 else
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 printf "%s\n" "no" >&6; }
5783 fi
5784
5785
5786 fi
5787 if test -z "$ac_cv_prog_OBJDUMP"; then
5788 ac_ct_OBJDUMP=$OBJDUMP
5789 # Extract the first word of "objdump", so it can be a program name with args.
5790 set dummy objdump; ac_word=$2
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 printf %s "checking for $ac_word... " >&6; }
5793 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5794 then :
5795 printf %s "(cached) " >&6
5796 else $as_nop
5797 if test -n "$ac_ct_OBJDUMP"; then
5798 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803 IFS=$as_save_IFS
5804 case $as_dir in #(((
5805 '') as_dir=./ ;;
5806 */) ;;
5807 *) as_dir=$as_dir/ ;;
5808 esac
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5822 if test -n "$ac_ct_OBJDUMP"; then
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5824 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5825 else
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 printf "%s\n" "no" >&6; }
5828 fi
5829
5830 if test "x$ac_ct_OBJDUMP" = x; then
5831 OBJDUMP="false"
5832 else
5833 case $cross_compiling:$ac_tool_warned in
5834 yes:)
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837 ac_tool_warned=yes ;;
5838 esac
5839 OBJDUMP=$ac_ct_OBJDUMP
5840 fi
5841 else
5842 OBJDUMP="$ac_cv_prog_OBJDUMP"
5843 fi
5844
5845 test -z "$OBJDUMP" && OBJDUMP=objdump
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5856 printf %s "checking how to recognize dependent libraries... " >&6; }
5857 if test ${lt_cv_deplibs_check_method+y}
5858 then :
5859 printf %s "(cached) " >&6
5860 else $as_nop
5861 lt_cv_file_magic_cmd='$MAGIC_CMD'
5862 lt_cv_file_magic_test_file=
5863 lt_cv_deplibs_check_method='unknown'
5864 # Need to set the preceding variable on all platforms that support
5865 # interlibrary dependencies.
5866 # 'none' -- dependencies not supported.
5867 # 'unknown' -- same as none, but documents that we really don't know.
5868 # 'pass_all' -- all dependencies passed with no checks.
5869 # 'test_compile' -- check by making test program.
5870 # 'file_magic [[regex]]' -- check by looking for files in library path
5871 # that responds to the $file_magic_cmd with a given extended regex.
5872 # If you have 'file' or equivalent on your system and you're not sure
5873 # whether 'pass_all' will *always* work, you probably want this one.
5874
5875 case $host_os in
5876 aix[4-9]*)
5877 lt_cv_deplibs_check_method=pass_all
5878 ;;
5879
5880 beos*)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883
5884 bsdi[45]*)
5885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5886 lt_cv_file_magic_cmd='$FILECMD -L'
5887 lt_cv_file_magic_test_file=/shlib/libc.so
5888 ;;
5889
5890 cygwin*)
5891 # func_win32_libid is a shell function defined in ltmain.sh
5892 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5893 lt_cv_file_magic_cmd='func_win32_libid'
5894 ;;
5895
5896 mingw* | pw32*)
5897 # Base MSYS/MinGW do not provide the 'file' command needed by
5898 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5899 # unless we find 'file', for example because we are cross-compiling.
5900 if ( file / ) >/dev/null 2>&1; then
5901 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5902 lt_cv_file_magic_cmd='func_win32_libid'
5903 else
5904 # Keep this pattern in sync with the one in func_win32_libid.
5905 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5906 lt_cv_file_magic_cmd='$OBJDUMP -f'
5907 fi
5908 ;;
5909
5910 cegcc*)
5911 # use the weaker test based on 'objdump'. See mingw*.
5912 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5913 lt_cv_file_magic_cmd='$OBJDUMP -f'
5914 ;;
5915
5916 darwin* | rhapsody*)
5917 lt_cv_deplibs_check_method=pass_all
5918 ;;
5919
5920 freebsd* | dragonfly* | midnightbsd*)
5921 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5922 case $host_cpu in
5923 i*86 )
5924 # Not sure whether the presence of OpenBSD here was a mistake.
5925 # Let's accept both of them until this is cleared up.
5926 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5927 lt_cv_file_magic_cmd=$FILECMD
5928 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5929 ;;
5930 esac
5931 else
5932 lt_cv_deplibs_check_method=pass_all
5933 fi
5934 ;;
5935
5936 haiku*)
5937 lt_cv_deplibs_check_method=pass_all
5938 ;;
5939
5940 hpux10.20* | hpux11*)
5941 lt_cv_file_magic_cmd=$FILECMD
5942 case $host_cpu in
5943 ia64*)
5944 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5945 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5946 ;;
5947 hppa*64*)
5948 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]'
5949 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5950 ;;
5951 *)
5952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5953 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5954 ;;
5955 esac
5956 ;;
5957
5958 interix[3-9]*)
5959 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5961 ;;
5962
5963 irix5* | irix6* | nonstopux*)
5964 case $LD in
5965 *-32|*"-32 ") libmagic=32-bit;;
5966 *-n32|*"-n32 ") libmagic=N32;;
5967 *-64|*"-64 ") libmagic=64-bit;;
5968 *) libmagic=never-match;;
5969 esac
5970 lt_cv_deplibs_check_method=pass_all
5971 ;;
5972
5973 # This must be glibc/ELF.
5974 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5975 lt_cv_deplibs_check_method=pass_all
5976 ;;
5977
5978 netbsd*)
5979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5981 else
5982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5983 fi
5984 ;;
5985
5986 newos6*)
5987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5988 lt_cv_file_magic_cmd=$FILECMD
5989 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5990 ;;
5991
5992 *nto* | *qnx*)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995
5996 openbsd* | bitrig*)
5997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5999 else
6000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6001 fi
6002 ;;
6003
6004 osf3* | osf4* | osf5*)
6005 lt_cv_deplibs_check_method=pass_all
6006 ;;
6007
6008 rdos*)
6009 lt_cv_deplibs_check_method=pass_all
6010 ;;
6011
6012 solaris*)
6013 lt_cv_deplibs_check_method=pass_all
6014 ;;
6015
6016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019
6020 sysv4 | sysv4.3*)
6021 case $host_vendor in
6022 motorola)
6023 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]'
6024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6025 ;;
6026 ncr)
6027 lt_cv_deplibs_check_method=pass_all
6028 ;;
6029 sequent)
6030 lt_cv_file_magic_cmd='/bin/file'
6031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6032 ;;
6033 sni)
6034 lt_cv_file_magic_cmd='/bin/file'
6035 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6036 lt_cv_file_magic_test_file=/lib/libc.so
6037 ;;
6038 siemens)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041 pc)
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
6044 esac
6045 ;;
6046
6047 tpf*)
6048 lt_cv_deplibs_check_method=pass_all
6049 ;;
6050 os2*)
6051 lt_cv_deplibs_check_method=pass_all
6052 ;;
6053 esac
6054
6055 fi
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6057 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6058
6059 file_magic_glob=
6060 want_nocaseglob=no
6061 if test "$build" = "$host"; then
6062 case $host_os in
6063 mingw* | pw32*)
6064 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6065 want_nocaseglob=yes
6066 else
6067 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6068 fi
6069 ;;
6070 esac
6071 fi
6072
6073 file_magic_cmd=$lt_cv_file_magic_cmd
6074 deplibs_check_method=$lt_cv_deplibs_check_method
6075 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 printf %s "checking for $ac_word... " >&6; }
6103 if test ${ac_cv_prog_DLLTOOL+y}
6104 then :
6105 printf %s "(cached) " >&6
6106 else $as_nop
6107 if test -n "$DLLTOOL"; then
6108 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113 IFS=$as_save_IFS
6114 case $as_dir in #(((
6115 '') as_dir=./ ;;
6116 */) ;;
6117 *) as_dir=$as_dir/ ;;
6118 esac
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 DLLTOOL=$ac_cv_prog_DLLTOOL
6132 if test -n "$DLLTOOL"; then
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6134 printf "%s\n" "$DLLTOOL" >&6; }
6135 else
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 printf "%s\n" "no" >&6; }
6138 fi
6139
6140
6141 fi
6142 if test -z "$ac_cv_prog_DLLTOOL"; then
6143 ac_ct_DLLTOOL=$DLLTOOL
6144 # Extract the first word of "dlltool", so it can be a program name with args.
6145 set dummy dlltool; ac_word=$2
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 printf %s "checking for $ac_word... " >&6; }
6148 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6149 then :
6150 printf %s "(cached) " >&6
6151 else $as_nop
6152 if test -n "$ac_ct_DLLTOOL"; then
6153 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158 IFS=$as_save_IFS
6159 case $as_dir in #(((
6160 '') as_dir=./ ;;
6161 */) ;;
6162 *) as_dir=$as_dir/ ;;
6163 esac
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6166 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170 done
6171 done
6172 IFS=$as_save_IFS
6173
6174 fi
6175 fi
6176 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6177 if test -n "$ac_ct_DLLTOOL"; then
6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6179 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6180 else
6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 printf "%s\n" "no" >&6; }
6183 fi
6184
6185 if test "x$ac_ct_DLLTOOL" = x; then
6186 DLLTOOL="false"
6187 else
6188 case $cross_compiling:$ac_tool_warned in
6189 yes:)
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6191 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192 ac_tool_warned=yes ;;
6193 esac
6194 DLLTOOL=$ac_ct_DLLTOOL
6195 fi
6196 else
6197 DLLTOOL="$ac_cv_prog_DLLTOOL"
6198 fi
6199
6200 test -z "$DLLTOOL" && DLLTOOL=dlltool
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6212 printf %s "checking how to associate runtime and link libraries... " >&6; }
6213 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6214 then :
6215 printf %s "(cached) " >&6
6216 else $as_nop
6217 lt_cv_sharedlib_from_linklib_cmd='unknown'
6218
6219 case $host_os in
6220 cygwin* | mingw* | pw32* | cegcc*)
6221 # two different shell functions defined in ltmain.sh;
6222 # decide which one to use based on capabilities of $DLLTOOL
6223 case `$DLLTOOL --help 2>&1` in
6224 *--identify-strict*)
6225 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6226 ;;
6227 *)
6228 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6229 ;;
6230 esac
6231 ;;
6232 *)
6233 # fallback: assume linklib IS sharedlib
6234 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6235 ;;
6236 esac
6237
6238 fi
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6240 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6241 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6242 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6243
6244
6245
6246
6247
6248
6249
6250
6251 if test -n "$ac_tool_prefix"; then
6252 for ac_prog in ar
6253 do
6254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 printf %s "checking for $ac_word... " >&6; }
6258 if test ${ac_cv_prog_AR+y}
6259 then :
6260 printf %s "(cached) " >&6
6261 else $as_nop
6262 if test -n "$AR"; then
6263 ac_cv_prog_AR="$AR" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268 IFS=$as_save_IFS
6269 case $as_dir in #(((
6270 '') as_dir=./ ;;
6271 */) ;;
6272 *) as_dir=$as_dir/ ;;
6273 esac
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6276 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284 fi
6285 fi
6286 AR=$ac_cv_prog_AR
6287 if test -n "$AR"; then
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6289 printf "%s\n" "$AR" >&6; }
6290 else
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 printf "%s\n" "no" >&6; }
6293 fi
6294
6295
6296 test -n "$AR" && break
6297 done
6298 fi
6299 if test -z "$AR"; then
6300 ac_ct_AR=$AR
6301 for ac_prog in ar
6302 do
6303 # Extract the first word of "$ac_prog", so it can be a program name with args.
6304 set dummy $ac_prog; ac_word=$2
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 printf %s "checking for $ac_word... " >&6; }
6307 if test ${ac_cv_prog_ac_ct_AR+y}
6308 then :
6309 printf %s "(cached) " >&6
6310 else $as_nop
6311 if test -n "$ac_ct_AR"; then
6312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317 IFS=$as_save_IFS
6318 case $as_dir in #(((
6319 '') as_dir=./ ;;
6320 */) ;;
6321 *) as_dir=$as_dir/ ;;
6322 esac
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_ac_ct_AR="$ac_prog"
6326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6327 break 2
6328 fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333 fi
6334 fi
6335 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6336 if test -n "$ac_ct_AR"; then
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6338 printf "%s\n" "$ac_ct_AR" >&6; }
6339 else
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 printf "%s\n" "no" >&6; }
6342 fi
6343
6344
6345 test -n "$ac_ct_AR" && break
6346 done
6347
6348 if test "x$ac_ct_AR" = x; then
6349 AR="false"
6350 else
6351 case $cross_compiling:$ac_tool_warned in
6352 yes:)
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6354 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355 ac_tool_warned=yes ;;
6356 esac
6357 AR=$ac_ct_AR
6358 fi
6359 fi
6360
6361 : ${AR=ar}
6362
6363
6364
6365
6366
6367
6368 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6369 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6370 # higher priority because thats what people were doing historically (setting
6371 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6372 # variable obsoleted/removed.
6373
6374 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6375 lt_ar_flags=$AR_FLAGS
6376
6377
6378
6379
6380
6381
6382 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6383 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6384
6385
6386
6387
6388
6389
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6391 printf %s "checking for archiver @FILE support... " >&6; }
6392 if test ${lt_cv_ar_at_file+y}
6393 then :
6394 printf %s "(cached) " >&6
6395 else $as_nop
6396 lt_cv_ar_at_file=no
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399
6400 int
6401 main (void)
6402 {
6403
6404 ;
6405 return 0;
6406 }
6407 _ACEOF
6408 if ac_fn_c_try_compile "$LINENO"
6409 then :
6410 echo conftest.$ac_objext > conftest.lst
6411 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6413 (eval $lt_ar_try) 2>&5
6414 ac_status=$?
6415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416 test $ac_status = 0; }
6417 if test 0 -eq "$ac_status"; then
6418 # Ensure the archiver fails upon bogus file names.
6419 rm -f conftest.$ac_objext libconftest.a
6420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6421 (eval $lt_ar_try) 2>&5
6422 ac_status=$?
6423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424 test $ac_status = 0; }
6425 if test 0 -ne "$ac_status"; then
6426 lt_cv_ar_at_file=@
6427 fi
6428 fi
6429 rm -f conftest.* libconftest.a
6430
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6433
6434 fi
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6436 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6437
6438 if test no = "$lt_cv_ar_at_file"; then
6439 archiver_list_spec=
6440 else
6441 archiver_list_spec=$lt_cv_ar_at_file
6442 fi
6443
6444
6445
6446
6447
6448
6449
6450 if test -n "$ac_tool_prefix"; then
6451 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6452 set dummy ${ac_tool_prefix}strip; ac_word=$2
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 printf %s "checking for $ac_word... " >&6; }
6455 if test ${ac_cv_prog_STRIP+y}
6456 then :
6457 printf %s "(cached) " >&6
6458 else $as_nop
6459 if test -n "$STRIP"; then
6460 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465 IFS=$as_save_IFS
6466 case $as_dir in #(((
6467 '') as_dir=./ ;;
6468 */) ;;
6469 *) as_dir=$as_dir/ ;;
6470 esac
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 STRIP=$ac_cv_prog_STRIP
6484 if test -n "$STRIP"; then
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6486 printf "%s\n" "$STRIP" >&6; }
6487 else
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 printf "%s\n" "no" >&6; }
6490 fi
6491
6492
6493 fi
6494 if test -z "$ac_cv_prog_STRIP"; then
6495 ac_ct_STRIP=$STRIP
6496 # Extract the first word of "strip", so it can be a program name with args.
6497 set dummy strip; ac_word=$2
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 printf %s "checking for $ac_word... " >&6; }
6500 if test ${ac_cv_prog_ac_ct_STRIP+y}
6501 then :
6502 printf %s "(cached) " >&6
6503 else $as_nop
6504 if test -n "$ac_ct_STRIP"; then
6505 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510 IFS=$as_save_IFS
6511 case $as_dir in #(((
6512 '') as_dir=./ ;;
6513 */) ;;
6514 *) as_dir=$as_dir/ ;;
6515 esac
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_ac_ct_STRIP="strip"
6519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526 fi
6527 fi
6528 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6529 if test -n "$ac_ct_STRIP"; then
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6531 printf "%s\n" "$ac_ct_STRIP" >&6; }
6532 else
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 printf "%s\n" "no" >&6; }
6535 fi
6536
6537 if test "x$ac_ct_STRIP" = x; then
6538 STRIP=":"
6539 else
6540 case $cross_compiling:$ac_tool_warned in
6541 yes:)
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6543 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6544 ac_tool_warned=yes ;;
6545 esac
6546 STRIP=$ac_ct_STRIP
6547 fi
6548 else
6549 STRIP="$ac_cv_prog_STRIP"
6550 fi
6551
6552 test -z "$STRIP" && STRIP=:
6553
6554
6555
6556
6557
6558
6559 if test -n "$ac_tool_prefix"; then
6560 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6561 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563 printf %s "checking for $ac_word... " >&6; }
6564 if test ${ac_cv_prog_RANLIB+y}
6565 then :
6566 printf %s "(cached) " >&6
6567 else $as_nop
6568 if test -n "$RANLIB"; then
6569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574 IFS=$as_save_IFS
6575 case $as_dir in #(((
6576 '') as_dir=./ ;;
6577 */) ;;
6578 *) as_dir=$as_dir/ ;;
6579 esac
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6582 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 RANLIB=$ac_cv_prog_RANLIB
6593 if test -n "$RANLIB"; then
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6595 printf "%s\n" "$RANLIB" >&6; }
6596 else
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 printf "%s\n" "no" >&6; }
6599 fi
6600
6601
6602 fi
6603 if test -z "$ac_cv_prog_RANLIB"; then
6604 ac_ct_RANLIB=$RANLIB
6605 # Extract the first word of "ranlib", so it can be a program name with args.
6606 set dummy ranlib; ac_word=$2
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 printf %s "checking for $ac_word... " >&6; }
6609 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6610 then :
6611 printf %s "(cached) " >&6
6612 else $as_nop
6613 if test -n "$ac_ct_RANLIB"; then
6614 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6615 else
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619 IFS=$as_save_IFS
6620 case $as_dir in #(((
6621 '') as_dir=./ ;;
6622 */) ;;
6623 *) as_dir=$as_dir/ ;;
6624 esac
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6627 ac_cv_prog_ac_ct_RANLIB="ranlib"
6628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6629 break 2
6630 fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6638 if test -n "$ac_ct_RANLIB"; then
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6640 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6641 else
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 printf "%s\n" "no" >&6; }
6644 fi
6645
6646 if test "x$ac_ct_RANLIB" = x; then
6647 RANLIB=":"
6648 else
6649 case $cross_compiling:$ac_tool_warned in
6650 yes:)
6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6652 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6653 ac_tool_warned=yes ;;
6654 esac
6655 RANLIB=$ac_ct_RANLIB
6656 fi
6657 else
6658 RANLIB="$ac_cv_prog_RANLIB"
6659 fi
6660
6661 test -z "$RANLIB" && RANLIB=:
6662
6663
6664
6665
6666
6667
6668 # Determine commands to create old-style static archives.
6669 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6670 old_postinstall_cmds='chmod 644 $oldlib'
6671 old_postuninstall_cmds=
6672
6673 if test -n "$RANLIB"; then
6674 case $host_os in
6675 bitrig* | openbsd*)
6676 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6677 ;;
6678 *)
6679 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6680 ;;
6681 esac
6682 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6683 fi
6684
6685 case $host_os in
6686 darwin*)
6687 lock_old_archive_extraction=yes ;;
6688 *)
6689 lock_old_archive_extraction=no ;;
6690 esac
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730 # If no C compiler was specified, use CC.
6731 LTCC=${LTCC-"$CC"}
6732
6733 # If no C compiler flags were specified, use CFLAGS.
6734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6735
6736 # Allow CC to be a program name with arguments.
6737 compiler=$CC
6738
6739
6740 # Check for command to grab the raw symbol name followed by C symbol from nm.
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6742 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6743 if test ${lt_cv_sys_global_symbol_pipe+y}
6744 then :
6745 printf %s "(cached) " >&6
6746 else $as_nop
6747
6748 # These are sane defaults that work on at least a few old systems.
6749 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6750
6751 # Character class describing NM global symbol codes.
6752 symcode='[BCDEGRST]'
6753
6754 # Regexp to match symbols that can be accessed directly from C.
6755 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6756
6757 # Define system-specific variables.
6758 case $host_os in
6759 aix*)
6760 symcode='[BCDT]'
6761 ;;
6762 cygwin* | mingw* | pw32* | cegcc*)
6763 symcode='[ABCDGISTW]'
6764 ;;
6765 hpux*)
6766 if test ia64 = "$host_cpu"; then
6767 symcode='[ABCDEGRST]'
6768 fi
6769 ;;
6770 irix* | nonstopux*)
6771 symcode='[BCDEGRST]'
6772 ;;
6773 osf*)
6774 symcode='[BCDEGQRST]'
6775 ;;
6776 solaris*)
6777 symcode='[BDRT]'
6778 ;;
6779 sco3.2v5*)
6780 symcode='[DT]'
6781 ;;
6782 sysv4.2uw2*)
6783 symcode='[DT]'
6784 ;;
6785 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6786 symcode='[ABDT]'
6787 ;;
6788 sysv4)
6789 symcode='[DFNSTU]'
6790 ;;
6791 esac
6792
6793 # If we're using GNU nm, then use its standard symbol codes.
6794 case `$NM -V 2>&1` in
6795 *GNU* | *'with BFD'*)
6796 symcode='[ABCDGIRSTW]' ;;
6797 esac
6798
6799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6800 # Gets list of data symbols to import.
6801 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6802 # Adjust the below global symbol transforms to fixup imported variables.
6803 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6804 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6805 lt_c_name_lib_hook="\
6806 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6807 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6808 else
6809 # Disable hooks by default.
6810 lt_cv_sys_global_symbol_to_import=
6811 lt_cdecl_hook=
6812 lt_c_name_hook=
6813 lt_c_name_lib_hook=
6814 fi
6815
6816 # Transform an extracted symbol line into a proper C declaration.
6817 # Some systems (esp. on ia64) link data and code symbols differently,
6818 # so use this general approach.
6819 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6820 $lt_cdecl_hook\
6821 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6822 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6823
6824 # Transform an extracted symbol line into symbol name and symbol address
6825 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6826 $lt_c_name_hook\
6827 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6828 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6829
6830 # Transform an extracted symbol line into symbol name with lib prefix and
6831 # symbol address.
6832 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6833 $lt_c_name_lib_hook\
6834 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6835 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6836 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6837
6838 # Handle CRLF in mingw tool chain
6839 opt_cr=
6840 case $build_os in
6841 mingw*)
6842 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6843 ;;
6844 esac
6845
6846 # Try without a prefix underscore, then with it.
6847 for ac_symprfx in "" "_"; do
6848
6849 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6850 symxfrm="\\1 $ac_symprfx\\2 \\2"
6851
6852 # Write the raw and C identifiers.
6853 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6854 # Fake it for dumpbin and say T for any non-static function,
6855 # D for any global variable and I for any imported variable.
6856 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6857 # which start with @ or ?.
6858 lt_cv_sys_global_symbol_pipe="$AWK '"\
6859 " {last_section=section; section=\$ 3};"\
6860 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6861 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6862 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6863 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6864 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6865 " \$ 0!~/External *\|/{next};"\
6866 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6867 " {if(hide[section]) next};"\
6868 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6869 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6870 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6871 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6872 " ' prfx=^$ac_symprfx"
6873 else
6874 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6875 fi
6876 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6877
6878 # Check to see that the pipe works correctly.
6879 pipe_works=no
6880
6881 rm -f conftest*
6882 cat > conftest.$ac_ext <<_LT_EOF
6883 #ifdef __cplusplus
6884 extern "C" {
6885 #endif
6886 char nm_test_var;
6887 void nm_test_func(void);
6888 void nm_test_func(void){}
6889 #ifdef __cplusplus
6890 }
6891 #endif
6892 int main(){nm_test_var='a';nm_test_func();return(0);}
6893 _LT_EOF
6894
6895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6896 (eval $ac_compile) 2>&5
6897 ac_status=$?
6898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6899 test $ac_status = 0; }; then
6900 # Now try to grab the symbols.
6901 nlist=conftest.nm
6902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6903 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6904 ac_status=$?
6905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6906 test $ac_status = 0; } && test -s "$nlist"; then
6907 # Try sorting and uniquifying the output.
6908 if sort "$nlist" | uniq > "$nlist"T; then
6909 mv -f "$nlist"T "$nlist"
6910 else
6911 rm -f "$nlist"T
6912 fi
6913
6914 # Make sure that we snagged all the symbols we need.
6915 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6916 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6917 cat <<_LT_EOF > conftest.$ac_ext
6918 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6919 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6920 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6921 relocations are performed -- see ld's documentation on pseudo-relocs. */
6922 # define LT_DLSYM_CONST
6923 #elif defined __osf__
6924 /* This system does not cope well with relocations in const data. */
6925 # define LT_DLSYM_CONST
6926 #else
6927 # define LT_DLSYM_CONST const
6928 #endif
6929
6930 #ifdef __cplusplus
6931 extern "C" {
6932 #endif
6933
6934 _LT_EOF
6935 # Now generate the symbol file.
6936 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6937
6938 cat <<_LT_EOF >> conftest.$ac_ext
6939
6940 /* The mapping between symbol names and symbols. */
6941 LT_DLSYM_CONST struct {
6942 const char *name;
6943 void *address;
6944 }
6945 lt__PROGRAM__LTX_preloaded_symbols[] =
6946 {
6947 { "@PROGRAM@", (void *) 0 },
6948 _LT_EOF
6949 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6950 cat <<\_LT_EOF >> conftest.$ac_ext
6951 {0, (void *) 0}
6952 };
6953
6954 /* This works around a problem in FreeBSD linker */
6955 #ifdef FREEBSD_WORKAROUND
6956 static const void *lt_preloaded_setup() {
6957 return lt__PROGRAM__LTX_preloaded_symbols;
6958 }
6959 #endif
6960
6961 #ifdef __cplusplus
6962 }
6963 #endif
6964 _LT_EOF
6965 # Now try linking the two files.
6966 mv conftest.$ac_objext conftstm.$ac_objext
6967 lt_globsym_save_LIBS=$LIBS
6968 lt_globsym_save_CFLAGS=$CFLAGS
6969 LIBS=conftstm.$ac_objext
6970 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6972 (eval $ac_link) 2>&5
6973 ac_status=$?
6974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6975 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6976 pipe_works=yes
6977 fi
6978 LIBS=$lt_globsym_save_LIBS
6979 CFLAGS=$lt_globsym_save_CFLAGS
6980 else
6981 echo "cannot find nm_test_func in $nlist" >&5
6982 fi
6983 else
6984 echo "cannot find nm_test_var in $nlist" >&5
6985 fi
6986 else
6987 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6988 fi
6989 else
6990 echo "$progname: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 fi
6993 rm -rf conftest* conftst*
6994
6995 # Do not use the global_symbol_pipe unless it works.
6996 if test yes = "$pipe_works"; then
6997 break
6998 else
6999 lt_cv_sys_global_symbol_pipe=
7000 fi
7001 done
7002
7003 fi
7004
7005 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7006 lt_cv_sys_global_symbol_to_cdecl=
7007 fi
7008 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7010 printf "%s\n" "failed" >&6; }
7011 else
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7013 printf "%s\n" "ok" >&6; }
7014 fi
7015
7016 # Response file support.
7017 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7018 nm_file_list_spec='@'
7019 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7020 nm_file_list_spec='@'
7021 fi
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7060 printf %s "checking for sysroot... " >&6; }
7061
7062 # Check whether --with-sysroot was given.
7063 if test ${with_sysroot+y}
7064 then :
7065 withval=$with_sysroot;
7066 else $as_nop
7067 with_sysroot=no
7068 fi
7069
7070
7071 lt_sysroot=
7072 case $with_sysroot in #(
7073 yes)
7074 if test yes = "$GCC"; then
7075 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7076 fi
7077 ;; #(
7078 /*)
7079 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7080 ;; #(
7081 no|'')
7082 ;; #(
7083 *)
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7085 printf "%s\n" "$with_sysroot" >&6; }
7086 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7087 ;;
7088 esac
7089
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7091 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7092
7093
7094
7095
7096
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7098 printf %s "checking for a working dd... " >&6; }
7099 if test ${ac_cv_path_lt_DD+y}
7100 then :
7101 printf %s "(cached) " >&6
7102 else $as_nop
7103 printf 0123456789abcdef0123456789abcdef >conftest.i
7104 cat conftest.i conftest.i >conftest2.i
7105 : ${lt_DD:=$DD}
7106 if test -z "$lt_DD"; then
7107 ac_path_lt_DD_found=false
7108 # Loop through the user's path and test for each of PROGNAME-LIST
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112 IFS=$as_save_IFS
7113 case $as_dir in #(((
7114 '') as_dir=./ ;;
7115 */) ;;
7116 *) as_dir=$as_dir/ ;;
7117 esac
7118 for ac_prog in dd
7119 do
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7122 as_fn_executable_p "$ac_path_lt_DD" || continue
7123 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7124 cmp -s conftest.i conftest.out \
7125 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7126 fi
7127 $ac_path_lt_DD_found && break 3
7128 done
7129 done
7130 done
7131 IFS=$as_save_IFS
7132 if test -z "$ac_cv_path_lt_DD"; then
7133 :
7134 fi
7135 else
7136 ac_cv_path_lt_DD=$lt_DD
7137 fi
7138
7139 rm -f conftest.i conftest2.i conftest.out
7140 fi
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7142 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7143
7144
7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7146 printf %s "checking how to truncate binary pipes... " >&6; }
7147 if test ${lt_cv_truncate_bin+y}
7148 then :
7149 printf %s "(cached) " >&6
7150 else $as_nop
7151 printf 0123456789abcdef0123456789abcdef >conftest.i
7152 cat conftest.i conftest.i >conftest2.i
7153 lt_cv_truncate_bin=
7154 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7155 cmp -s conftest.i conftest.out \
7156 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7157 fi
7158 rm -f conftest.i conftest2.i conftest.out
7159 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7160 fi
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7162 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7163
7164
7165
7166
7167
7168
7169
7170 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7171 func_cc_basename ()
7172 {
7173 for cc_temp in $*""; do
7174 case $cc_temp in
7175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7177 \-*) ;;
7178 *) break;;
7179 esac
7180 done
7181 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7182 }
7183
7184 # Check whether --enable-libtool-lock was given.
7185 if test ${enable_libtool_lock+y}
7186 then :
7187 enableval=$enable_libtool_lock;
7188 fi
7189
7190 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7191
7192 # Some flags need to be propagated to the compiler or linker for good
7193 # libtool support.
7194 case $host in
7195 ia64-*-hpux*)
7196 # Find out what ABI is being produced by ac_compile, and set mode
7197 # options accordingly.
7198 echo 'int i;' > conftest.$ac_ext
7199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7200 (eval $ac_compile) 2>&5
7201 ac_status=$?
7202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203 test $ac_status = 0; }; then
7204 case `$FILECMD conftest.$ac_objext` in
7205 *ELF-32*)
7206 HPUX_IA64_MODE=32
7207 ;;
7208 *ELF-64*)
7209 HPUX_IA64_MODE=64
7210 ;;
7211 esac
7212 fi
7213 rm -rf conftest*
7214 ;;
7215 *-*-irix6*)
7216 # Find out what ABI is being produced by ac_compile, and set linker
7217 # options accordingly.
7218 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7220 (eval $ac_compile) 2>&5
7221 ac_status=$?
7222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223 test $ac_status = 0; }; then
7224 if test yes = "$lt_cv_prog_gnu_ld"; then
7225 case `$FILECMD conftest.$ac_objext` in
7226 *32-bit*)
7227 LD="${LD-ld} -melf32bsmip"
7228 ;;
7229 *N32*)
7230 LD="${LD-ld} -melf32bmipn32"
7231 ;;
7232 *64-bit*)
7233 LD="${LD-ld} -melf64bmip"
7234 ;;
7235 esac
7236 else
7237 case `$FILECMD conftest.$ac_objext` in
7238 *32-bit*)
7239 LD="${LD-ld} -32"
7240 ;;
7241 *N32*)
7242 LD="${LD-ld} -n32"
7243 ;;
7244 *64-bit*)
7245 LD="${LD-ld} -64"
7246 ;;
7247 esac
7248 fi
7249 fi
7250 rm -rf conftest*
7251 ;;
7252
7253 mips64*-*linux*)
7254 # Find out what ABI is being produced by ac_compile, and set linker
7255 # options accordingly.
7256 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7258 (eval $ac_compile) 2>&5
7259 ac_status=$?
7260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261 test $ac_status = 0; }; then
7262 emul=elf
7263 case `$FILECMD conftest.$ac_objext` in
7264 *32-bit*)
7265 emul="${emul}32"
7266 ;;
7267 *64-bit*)
7268 emul="${emul}64"
7269 ;;
7270 esac
7271 case `$FILECMD conftest.$ac_objext` in
7272 *MSB*)
7273 emul="${emul}btsmip"
7274 ;;
7275 *LSB*)
7276 emul="${emul}ltsmip"
7277 ;;
7278 esac
7279 case `$FILECMD conftest.$ac_objext` in
7280 *N32*)
7281 emul="${emul}n32"
7282 ;;
7283 esac
7284 LD="${LD-ld} -m $emul"
7285 fi
7286 rm -rf conftest*
7287 ;;
7288
7289 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7290 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7291 # Find out what ABI is being produced by ac_compile, and set linker
7292 # options accordingly. Note that the listed cases only cover the
7293 # situations where additional linker options are needed (such as when
7294 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7295 # vice versa); the common cases where no linker options are needed do
7296 # not appear in the list.
7297 echo 'int i;' > conftest.$ac_ext
7298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7299 (eval $ac_compile) 2>&5
7300 ac_status=$?
7301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302 test $ac_status = 0; }; then
7303 case `$FILECMD conftest.o` in
7304 *32-bit*)
7305 case $host in
7306 x86_64-*kfreebsd*-gnu)
7307 LD="${LD-ld} -m elf_i386_fbsd"
7308 ;;
7309 x86_64-*linux*)
7310 case `$FILECMD conftest.o` in
7311 *x86-64*)
7312 LD="${LD-ld} -m elf32_x86_64"
7313 ;;
7314 *)
7315 LD="${LD-ld} -m elf_i386"
7316 ;;
7317 esac
7318 ;;
7319 powerpc64le-*linux*)
7320 LD="${LD-ld} -m elf32lppclinux"
7321 ;;
7322 powerpc64-*linux*)
7323 LD="${LD-ld} -m elf32ppclinux"
7324 ;;
7325 s390x-*linux*)
7326 LD="${LD-ld} -m elf_s390"
7327 ;;
7328 sparc64-*linux*)
7329 LD="${LD-ld} -m elf32_sparc"
7330 ;;
7331 esac
7332 ;;
7333 *64-bit*)
7334 case $host in
7335 x86_64-*kfreebsd*-gnu)
7336 LD="${LD-ld} -m elf_x86_64_fbsd"
7337 ;;
7338 x86_64-*linux*)
7339 LD="${LD-ld} -m elf_x86_64"
7340 ;;
7341 powerpcle-*linux*|powerpc64le-*linux*)
7342 LD="${LD-ld} -m elf64lppc"
7343 ;;
7344 powerpc-*linux*|powerpc64-*linux*)
7345 LD="${LD-ld} -m elf64ppc"
7346 ;;
7347 s390*-*linux*|s390*-*tpf*)
7348 LD="${LD-ld} -m elf64_s390"
7349 ;;
7350 sparc*-*linux*)
7351 LD="${LD-ld} -m elf64_sparc"
7352 ;;
7353 esac
7354 ;;
7355 esac
7356 fi
7357 rm -rf conftest*
7358 ;;
7359
7360 *-*-sco3.2v5*)
7361 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7362 SAVE_CFLAGS=$CFLAGS
7363 CFLAGS="$CFLAGS -belf"
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7365 printf %s "checking whether the C compiler needs -belf... " >&6; }
7366 if test ${lt_cv_cc_needs_belf+y}
7367 then :
7368 printf %s "(cached) " >&6
7369 else $as_nop
7370 ac_ext=c
7371 ac_cpp='$CPP $CPPFLAGS'
7372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7378
7379 int
7380 main (void)
7381 {
7382
7383 ;
7384 return 0;
7385 }
7386 _ACEOF
7387 if ac_fn_c_try_link "$LINENO"
7388 then :
7389 lt_cv_cc_needs_belf=yes
7390 else $as_nop
7391 lt_cv_cc_needs_belf=no
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7394 conftest$ac_exeext conftest.$ac_ext
7395 ac_ext=c
7396 ac_cpp='$CPP $CPPFLAGS'
7397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7400
7401 fi
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7403 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7404 if test yes != "$lt_cv_cc_needs_belf"; then
7405 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7406 CFLAGS=$SAVE_CFLAGS
7407 fi
7408 ;;
7409 *-*solaris*)
7410 # Find out what ABI is being produced by ac_compile, and set linker
7411 # options accordingly.
7412 echo 'int i;' > conftest.$ac_ext
7413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7414 (eval $ac_compile) 2>&5
7415 ac_status=$?
7416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7417 test $ac_status = 0; }; then
7418 case `$FILECMD conftest.o` in
7419 *64-bit*)
7420 case $lt_cv_prog_gnu_ld in
7421 yes*)
7422 case $host in
7423 i?86-*-solaris*|x86_64-*-solaris*)
7424 LD="${LD-ld} -m elf_x86_64"
7425 ;;
7426 sparc*-*-solaris*)
7427 LD="${LD-ld} -m elf64_sparc"
7428 ;;
7429 esac
7430 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7431 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7432 LD=${LD-ld}_sol2
7433 fi
7434 ;;
7435 *)
7436 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7437 LD="${LD-ld} -64"
7438 fi
7439 ;;
7440 esac
7441 ;;
7442 esac
7443 fi
7444 rm -rf conftest*
7445 ;;
7446 esac
7447
7448 need_locks=$enable_libtool_lock
7449
7450 if test -n "$ac_tool_prefix"; then
7451 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7452 set dummy ${ac_tool_prefix}mt; ac_word=$2
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 printf %s "checking for $ac_word... " >&6; }
7455 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7456 then :
7457 printf %s "(cached) " >&6
7458 else $as_nop
7459 if test -n "$MANIFEST_TOOL"; then
7460 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465 IFS=$as_save_IFS
7466 case $as_dir in #(((
7467 '') as_dir=./ ;;
7468 */) ;;
7469 *) as_dir=$as_dir/ ;;
7470 esac
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7473 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7484 if test -n "$MANIFEST_TOOL"; then
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7486 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7487 else
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 printf "%s\n" "no" >&6; }
7490 fi
7491
7492
7493 fi
7494 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7495 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7496 # Extract the first word of "mt", so it can be a program name with args.
7497 set dummy mt; ac_word=$2
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 printf %s "checking for $ac_word... " >&6; }
7500 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7501 then :
7502 printf %s "(cached) " >&6
7503 else $as_nop
7504 if test -n "$ac_ct_MANIFEST_TOOL"; then
7505 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7506 else
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510 IFS=$as_save_IFS
7511 case $as_dir in #(((
7512 '') as_dir=./ ;;
7513 */) ;;
7514 *) as_dir=$as_dir/ ;;
7515 esac
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526 fi
7527 fi
7528 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7529 if test -n "$ac_ct_MANIFEST_TOOL"; then
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7531 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7532 else
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 printf "%s\n" "no" >&6; }
7535 fi
7536
7537 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7538 MANIFEST_TOOL=":"
7539 else
7540 case $cross_compiling:$ac_tool_warned in
7541 yes:)
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7543 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544 ac_tool_warned=yes ;;
7545 esac
7546 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7547 fi
7548 else
7549 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7550 fi
7551
7552 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7554 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7555 if test ${lt_cv_path_mainfest_tool+y}
7556 then :
7557 printf %s "(cached) " >&6
7558 else $as_nop
7559 lt_cv_path_mainfest_tool=no
7560 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7561 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7562 cat conftest.err >&5
7563 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7564 lt_cv_path_mainfest_tool=yes
7565 fi
7566 rm -f conftest*
7567 fi
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7569 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7570 if test yes != "$lt_cv_path_mainfest_tool"; then
7571 MANIFEST_TOOL=:
7572 fi
7573
7574
7575
7576
7577
7578
7579 case $host_os in
7580 rhapsody* | darwin*)
7581 if test -n "$ac_tool_prefix"; then
7582 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7583 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 printf %s "checking for $ac_word... " >&6; }
7586 if test ${ac_cv_prog_DSYMUTIL+y}
7587 then :
7588 printf %s "(cached) " >&6
7589 else $as_nop
7590 if test -n "$DSYMUTIL"; then
7591 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596 IFS=$as_save_IFS
7597 case $as_dir in #(((
7598 '') as_dir=./ ;;
7599 */) ;;
7600 *) as_dir=$as_dir/ ;;
7601 esac
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612 fi
7613 fi
7614 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7615 if test -n "$DSYMUTIL"; then
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7617 printf "%s\n" "$DSYMUTIL" >&6; }
7618 else
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 printf "%s\n" "no" >&6; }
7621 fi
7622
7623
7624 fi
7625 if test -z "$ac_cv_prog_DSYMUTIL"; then
7626 ac_ct_DSYMUTIL=$DSYMUTIL
7627 # Extract the first word of "dsymutil", so it can be a program name with args.
7628 set dummy dsymutil; ac_word=$2
7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 printf %s "checking for $ac_word... " >&6; }
7631 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7632 then :
7633 printf %s "(cached) " >&6
7634 else $as_nop
7635 if test -n "$ac_ct_DSYMUTIL"; then
7636 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641 IFS=$as_save_IFS
7642 case $as_dir in #(((
7643 '') as_dir=./ ;;
7644 */) ;;
7645 *) as_dir=$as_dir/ ;;
7646 esac
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7649 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7651 break 2
7652 fi
7653 done
7654 done
7655 IFS=$as_save_IFS
7656
7657 fi
7658 fi
7659 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7660 if test -n "$ac_ct_DSYMUTIL"; then
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7662 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7663 else
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 printf "%s\n" "no" >&6; }
7666 fi
7667
7668 if test "x$ac_ct_DSYMUTIL" = x; then
7669 DSYMUTIL=":"
7670 else
7671 case $cross_compiling:$ac_tool_warned in
7672 yes:)
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7675 ac_tool_warned=yes ;;
7676 esac
7677 DSYMUTIL=$ac_ct_DSYMUTIL
7678 fi
7679 else
7680 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7681 fi
7682
7683 if test -n "$ac_tool_prefix"; then
7684 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7685 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 printf %s "checking for $ac_word... " >&6; }
7688 if test ${ac_cv_prog_NMEDIT+y}
7689 then :
7690 printf %s "(cached) " >&6
7691 else $as_nop
7692 if test -n "$NMEDIT"; then
7693 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698 IFS=$as_save_IFS
7699 case $as_dir in #(((
7700 '') as_dir=./ ;;
7701 */) ;;
7702 *) as_dir=$as_dir/ ;;
7703 esac
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7706 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710 done
7711 done
7712 IFS=$as_save_IFS
7713
7714 fi
7715 fi
7716 NMEDIT=$ac_cv_prog_NMEDIT
7717 if test -n "$NMEDIT"; then
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7719 printf "%s\n" "$NMEDIT" >&6; }
7720 else
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722 printf "%s\n" "no" >&6; }
7723 fi
7724
7725
7726 fi
7727 if test -z "$ac_cv_prog_NMEDIT"; then
7728 ac_ct_NMEDIT=$NMEDIT
7729 # Extract the first word of "nmedit", so it can be a program name with args.
7730 set dummy nmedit; ac_word=$2
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 printf %s "checking for $ac_word... " >&6; }
7733 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7734 then :
7735 printf %s "(cached) " >&6
7736 else $as_nop
7737 if test -n "$ac_ct_NMEDIT"; then
7738 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743 IFS=$as_save_IFS
7744 case $as_dir in #(((
7745 '') as_dir=./ ;;
7746 */) ;;
7747 *) as_dir=$as_dir/ ;;
7748 esac
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755 done
7756 done
7757 IFS=$as_save_IFS
7758
7759 fi
7760 fi
7761 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7762 if test -n "$ac_ct_NMEDIT"; then
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7764 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7765 else
7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 printf "%s\n" "no" >&6; }
7768 fi
7769
7770 if test "x$ac_ct_NMEDIT" = x; then
7771 NMEDIT=":"
7772 else
7773 case $cross_compiling:$ac_tool_warned in
7774 yes:)
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777 ac_tool_warned=yes ;;
7778 esac
7779 NMEDIT=$ac_ct_NMEDIT
7780 fi
7781 else
7782 NMEDIT="$ac_cv_prog_NMEDIT"
7783 fi
7784
7785 if test -n "$ac_tool_prefix"; then
7786 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7787 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 printf %s "checking for $ac_word... " >&6; }
7790 if test ${ac_cv_prog_LIPO+y}
7791 then :
7792 printf %s "(cached) " >&6
7793 else $as_nop
7794 if test -n "$LIPO"; then
7795 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800 IFS=$as_save_IFS
7801 case $as_dir in #(((
7802 '') as_dir=./ ;;
7803 */) ;;
7804 *) as_dir=$as_dir/ ;;
7805 esac
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7810 break 2
7811 fi
7812 done
7813 done
7814 IFS=$as_save_IFS
7815
7816 fi
7817 fi
7818 LIPO=$ac_cv_prog_LIPO
7819 if test -n "$LIPO"; then
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7821 printf "%s\n" "$LIPO" >&6; }
7822 else
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 printf "%s\n" "no" >&6; }
7825 fi
7826
7827
7828 fi
7829 if test -z "$ac_cv_prog_LIPO"; then
7830 ac_ct_LIPO=$LIPO
7831 # Extract the first word of "lipo", so it can be a program name with args.
7832 set dummy lipo; ac_word=$2
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 printf %s "checking for $ac_word... " >&6; }
7835 if test ${ac_cv_prog_ac_ct_LIPO+y}
7836 then :
7837 printf %s "(cached) " >&6
7838 else $as_nop
7839 if test -n "$ac_ct_LIPO"; then
7840 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845 IFS=$as_save_IFS
7846 case $as_dir in #(((
7847 '') as_dir=./ ;;
7848 */) ;;
7849 *) as_dir=$as_dir/ ;;
7850 esac
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7853 ac_cv_prog_ac_ct_LIPO="lipo"
7854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7855 break 2
7856 fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7864 if test -n "$ac_ct_LIPO"; then
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7866 printf "%s\n" "$ac_ct_LIPO" >&6; }
7867 else
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 printf "%s\n" "no" >&6; }
7870 fi
7871
7872 if test "x$ac_ct_LIPO" = x; then
7873 LIPO=":"
7874 else
7875 case $cross_compiling:$ac_tool_warned in
7876 yes:)
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned=yes ;;
7880 esac
7881 LIPO=$ac_ct_LIPO
7882 fi
7883 else
7884 LIPO="$ac_cv_prog_LIPO"
7885 fi
7886
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}otool; ac_word=$2
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 printf %s "checking for $ac_word... " >&6; }
7892 if test ${ac_cv_prog_OTOOL+y}
7893 then :
7894 printf %s "(cached) " >&6
7895 else $as_nop
7896 if test -n "$OTOOL"; then
7897 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902 IFS=$as_save_IFS
7903 case $as_dir in #(((
7904 '') as_dir=./ ;;
7905 */) ;;
7906 *) as_dir=$as_dir/ ;;
7907 esac
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914 done
7915 done
7916 IFS=$as_save_IFS
7917
7918 fi
7919 fi
7920 OTOOL=$ac_cv_prog_OTOOL
7921 if test -n "$OTOOL"; then
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7923 printf "%s\n" "$OTOOL" >&6; }
7924 else
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 printf "%s\n" "no" >&6; }
7927 fi
7928
7929
7930 fi
7931 if test -z "$ac_cv_prog_OTOOL"; then
7932 ac_ct_OTOOL=$OTOOL
7933 # Extract the first word of "otool", so it can be a program name with args.
7934 set dummy otool; ac_word=$2
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 printf %s "checking for $ac_word... " >&6; }
7937 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7938 then :
7939 printf %s "(cached) " >&6
7940 else $as_nop
7941 if test -n "$ac_ct_OTOOL"; then
7942 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947 IFS=$as_save_IFS
7948 case $as_dir in #(((
7949 '') as_dir=./ ;;
7950 */) ;;
7951 *) as_dir=$as_dir/ ;;
7952 esac
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7955 ac_cv_prog_ac_ct_OTOOL="otool"
7956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7957 break 2
7958 fi
7959 done
7960 done
7961 IFS=$as_save_IFS
7962
7963 fi
7964 fi
7965 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7966 if test -n "$ac_ct_OTOOL"; then
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7968 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7969 else
7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 printf "%s\n" "no" >&6; }
7972 fi
7973
7974 if test "x$ac_ct_OTOOL" = x; then
7975 OTOOL=":"
7976 else
7977 case $cross_compiling:$ac_tool_warned in
7978 yes:)
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981 ac_tool_warned=yes ;;
7982 esac
7983 OTOOL=$ac_ct_OTOOL
7984 fi
7985 else
7986 OTOOL="$ac_cv_prog_OTOOL"
7987 fi
7988
7989 if test -n "$ac_tool_prefix"; then
7990 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7991 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 printf %s "checking for $ac_word... " >&6; }
7994 if test ${ac_cv_prog_OTOOL64+y}
7995 then :
7996 printf %s "(cached) " >&6
7997 else $as_nop
7998 if test -n "$OTOOL64"; then
7999 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004 IFS=$as_save_IFS
8005 case $as_dir in #(((
8006 '') as_dir=./ ;;
8007 */) ;;
8008 *) as_dir=$as_dir/ ;;
8009 esac
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8014 break 2
8015 fi
8016 done
8017 done
8018 IFS=$as_save_IFS
8019
8020 fi
8021 fi
8022 OTOOL64=$ac_cv_prog_OTOOL64
8023 if test -n "$OTOOL64"; then
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8025 printf "%s\n" "$OTOOL64" >&6; }
8026 else
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 printf "%s\n" "no" >&6; }
8029 fi
8030
8031
8032 fi
8033 if test -z "$ac_cv_prog_OTOOL64"; then
8034 ac_ct_OTOOL64=$OTOOL64
8035 # Extract the first word of "otool64", so it can be a program name with args.
8036 set dummy otool64; ac_word=$2
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 printf %s "checking for $ac_word... " >&6; }
8039 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8040 then :
8041 printf %s "(cached) " >&6
8042 else $as_nop
8043 if test -n "$ac_ct_OTOOL64"; then
8044 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049 IFS=$as_save_IFS
8050 case $as_dir in #(((
8051 '') as_dir=./ ;;
8052 */) ;;
8053 *) as_dir=$as_dir/ ;;
8054 esac
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8057 ac_cv_prog_ac_ct_OTOOL64="otool64"
8058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8059 break 2
8060 fi
8061 done
8062 done
8063 IFS=$as_save_IFS
8064
8065 fi
8066 fi
8067 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8068 if test -n "$ac_ct_OTOOL64"; then
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8070 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8071 else
8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 printf "%s\n" "no" >&6; }
8074 fi
8075
8076 if test "x$ac_ct_OTOOL64" = x; then
8077 OTOOL64=":"
8078 else
8079 case $cross_compiling:$ac_tool_warned in
8080 yes:)
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8082 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8083 ac_tool_warned=yes ;;
8084 esac
8085 OTOOL64=$ac_ct_OTOOL64
8086 fi
8087 else
8088 OTOOL64="$ac_cv_prog_OTOOL64"
8089 fi
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8118 printf %s "checking for -single_module linker flag... " >&6; }
8119 if test ${lt_cv_apple_cc_single_mod+y}
8120 then :
8121 printf %s "(cached) " >&6
8122 else $as_nop
8123 lt_cv_apple_cc_single_mod=no
8124 if test -z "$LT_MULTI_MODULE"; then
8125 # By default we will add the -single_module flag. You can override
8126 # by either setting the environment variable LT_MULTI_MODULE
8127 # non-empty at configure time, or by adding -multi_module to the
8128 # link flags.
8129 rm -rf libconftest.dylib*
8130 echo "int foo(void){return 1;}" > conftest.c
8131 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8132 -dynamiclib -Wl,-single_module conftest.c" >&5
8133 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8134 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8135 _lt_result=$?
8136 # If there is a non-empty error log, and "single_module"
8137 # appears in it, assume the flag caused a linker warning
8138 if test -s conftest.err && $GREP single_module conftest.err; then
8139 cat conftest.err >&5
8140 # Otherwise, if the output was created with a 0 exit code from
8141 # the compiler, it worked.
8142 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8143 lt_cv_apple_cc_single_mod=yes
8144 else
8145 cat conftest.err >&5
8146 fi
8147 rm -rf libconftest.dylib*
8148 rm -f conftest.*
8149 fi
8150 fi
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8152 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8153
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8155 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8156 if test ${lt_cv_ld_exported_symbols_list+y}
8157 then :
8158 printf %s "(cached) " >&6
8159 else $as_nop
8160 lt_cv_ld_exported_symbols_list=no
8161 save_LDFLAGS=$LDFLAGS
8162 echo "_main" > conftest.sym
8163 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166
8167 int
8168 main (void)
8169 {
8170
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_link "$LINENO"
8176 then :
8177 lt_cv_ld_exported_symbols_list=yes
8178 else $as_nop
8179 lt_cv_ld_exported_symbols_list=no
8180 fi
8181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8182 conftest$ac_exeext conftest.$ac_ext
8183 LDFLAGS=$save_LDFLAGS
8184
8185 fi
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8187 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8188
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8190 printf %s "checking for -force_load linker flag... " >&6; }
8191 if test ${lt_cv_ld_force_load+y}
8192 then :
8193 printf %s "(cached) " >&6
8194 else $as_nop
8195 lt_cv_ld_force_load=no
8196 cat > conftest.c << _LT_EOF
8197 int forced_loaded() { return 2;}
8198 _LT_EOF
8199 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8200 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8201 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8202 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8203 echo "$RANLIB libconftest.a" >&5
8204 $RANLIB libconftest.a 2>&5
8205 cat > conftest.c << _LT_EOF
8206 int main() { return 0;}
8207 _LT_EOF
8208 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8209 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8210 _lt_result=$?
8211 if test -s conftest.err && $GREP force_load conftest.err; then
8212 cat conftest.err >&5
8213 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8214 lt_cv_ld_force_load=yes
8215 else
8216 cat conftest.err >&5
8217 fi
8218 rm -f conftest.err libconftest.a conftest conftest.c
8219 rm -rf conftest.dSYM
8220
8221 fi
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8223 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8224 case $host_os in
8225 rhapsody* | darwin1.[012])
8226 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8227 darwin1.*)
8228 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8229 darwin*)
8230 case $MACOSX_DEPLOYMENT_TARGET,$host in
8231 10.[012],*|,*powerpc*-darwin[5-8]*)
8232 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8233 *)
8234 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8235 esac
8236 ;;
8237 esac
8238 if test yes = "$lt_cv_apple_cc_single_mod"; then
8239 _lt_dar_single_mod='$single_module'
8240 fi
8241 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8242 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8243 else
8244 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8245 fi
8246 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8247 _lt_dsymutil='~$DSYMUTIL $lib || :'
8248 else
8249 _lt_dsymutil=
8250 fi
8251 ;;
8252 esac
8253
8254 # func_munge_path_list VARIABLE PATH
8255 # -----------------------------------
8256 # VARIABLE is name of variable containing _space_ separated list of
8257 # directories to be munged by the contents of PATH, which is string
8258 # having a format:
8259 # "DIR[:DIR]:"
8260 # string "DIR[ DIR]" will be prepended to VARIABLE
8261 # ":DIR[:DIR]"
8262 # string "DIR[ DIR]" will be appended to VARIABLE
8263 # "DIRP[:DIRP]::[DIRA:]DIRA"
8264 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8265 # "DIRA[ DIRA]" will be appended to VARIABLE
8266 # "DIR[:DIR]"
8267 # VARIABLE will be replaced by "DIR[ DIR]"
8268 func_munge_path_list ()
8269 {
8270 case x$2 in
8271 x)
8272 ;;
8273 *:)
8274 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8275 ;;
8276 x:*)
8277 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8278 ;;
8279 *::*)
8280 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8281 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8282 ;;
8283 *)
8284 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8285 ;;
8286 esac
8287 }
8288
8289 ac_header= ac_cache=
8290 for ac_item in $ac_header_c_list
8291 do
8292 if test $ac_cache; then
8293 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8294 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8295 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8296 fi
8297 ac_header= ac_cache=
8298 elif test $ac_header; then
8299 ac_cache=$ac_item
8300 else
8301 ac_header=$ac_item
8302 fi
8303 done
8304
8305
8306
8307
8308
8309
8310
8311
8312 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8313 then :
8314
8315 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8316
8317 fi
8318 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8319 "
8320 if test "x$ac_cv_header_dlfcn_h" = xyes
8321 then :
8322 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8323
8324 fi
8325
8326
8327
8328
8329
8330 # Set options
8331
8332
8333
8334 enable_dlopen=no
8335
8336
8337 enable_win32_dll=no
8338
8339
8340 # Check whether --enable-shared was given.
8341 if test ${enable_shared+y}
8342 then :
8343 enableval=$enable_shared; p=${PACKAGE-default}
8344 case $enableval in
8345 yes) enable_shared=yes ;;
8346 no) enable_shared=no ;;
8347 *)
8348 enable_shared=no
8349 # Look at the argument we got. We use all the common list separators.
8350 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8351 for pkg in $enableval; do
8352 IFS=$lt_save_ifs
8353 if test "X$pkg" = "X$p"; then
8354 enable_shared=yes
8355 fi
8356 done
8357 IFS=$lt_save_ifs
8358 ;;
8359 esac
8360 else $as_nop
8361 enable_shared=yes
8362 fi
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372 # Check whether --enable-static was given.
8373 if test ${enable_static+y}
8374 then :
8375 enableval=$enable_static; p=${PACKAGE-default}
8376 case $enableval in
8377 yes) enable_static=yes ;;
8378 no) enable_static=no ;;
8379 *)
8380 enable_static=no
8381 # Look at the argument we got. We use all the common list separators.
8382 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8383 for pkg in $enableval; do
8384 IFS=$lt_save_ifs
8385 if test "X$pkg" = "X$p"; then
8386 enable_static=yes
8387 fi
8388 done
8389 IFS=$lt_save_ifs
8390 ;;
8391 esac
8392 else $as_nop
8393 enable_static=yes
8394 fi
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405 # Check whether --with-pic was given.
8406 if test ${with_pic+y}
8407 then :
8408 withval=$with_pic; lt_p=${PACKAGE-default}
8409 case $withval in
8410 yes|no) pic_mode=$withval ;;
8411 *)
8412 pic_mode=default
8413 # Look at the argument we got. We use all the common list separators.
8414 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8415 for lt_pkg in $withval; do
8416 IFS=$lt_save_ifs
8417 if test "X$lt_pkg" = "X$lt_p"; then
8418 pic_mode=yes
8419 fi
8420 done
8421 IFS=$lt_save_ifs
8422 ;;
8423 esac
8424 else $as_nop
8425 pic_mode=default
8426 fi
8427
8428
8429
8430
8431
8432
8433
8434
8435 # Check whether --enable-fast-install was given.
8436 if test ${enable_fast_install+y}
8437 then :
8438 enableval=$enable_fast_install; p=${PACKAGE-default}
8439 case $enableval in
8440 yes) enable_fast_install=yes ;;
8441 no) enable_fast_install=no ;;
8442 *)
8443 enable_fast_install=no
8444 # Look at the argument we got. We use all the common list separators.
8445 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8446 for pkg in $enableval; do
8447 IFS=$lt_save_ifs
8448 if test "X$pkg" = "X$p"; then
8449 enable_fast_install=yes
8450 fi
8451 done
8452 IFS=$lt_save_ifs
8453 ;;
8454 esac
8455 else $as_nop
8456 enable_fast_install=yes
8457 fi
8458
8459
8460
8461
8462
8463
8464
8465
8466 shared_archive_member_spec=
8467 case $host,$enable_shared in
8468 power*-*-aix[5-9]*,yes)
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8470 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8471
8472 # Check whether --with-aix-soname was given.
8473 if test ${with_aix_soname+y}
8474 then :
8475 withval=$with_aix_soname; case $withval in
8476 aix|svr4|both)
8477 ;;
8478 *)
8479 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8480 ;;
8481 esac
8482 lt_cv_with_aix_soname=$with_aix_soname
8483 else $as_nop
8484 if test ${lt_cv_with_aix_soname+y}
8485 then :
8486 printf %s "(cached) " >&6
8487 else $as_nop
8488 lt_cv_with_aix_soname=aix
8489 fi
8490
8491 with_aix_soname=$lt_cv_with_aix_soname
8492 fi
8493
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8495 printf "%s\n" "$with_aix_soname" >&6; }
8496 if test aix != "$with_aix_soname"; then
8497 # For the AIX way of multilib, we name the shared archive member
8498 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8499 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8500 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8501 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8502 if test 64 = "${OBJECT_MODE-32}"; then
8503 shared_archive_member_spec=shr_64
8504 else
8505 shared_archive_member_spec=shr
8506 fi
8507 fi
8508 ;;
8509 *)
8510 with_aix_soname=aix
8511 ;;
8512 esac
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523 # This can be used to rebuild libtool when needed
8524 LIBTOOL_DEPS=$ltmain
8525
8526 # Always use our own libtool.
8527 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558 test -z "$LN_S" && LN_S="ln -s"
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573 if test -n "${ZSH_VERSION+set}"; then
8574 setopt NO_GLOB_SUBST
8575 fi
8576
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8578 printf %s "checking for objdir... " >&6; }
8579 if test ${lt_cv_objdir+y}
8580 then :
8581 printf %s "(cached) " >&6
8582 else $as_nop
8583 rm -f .libs 2>/dev/null
8584 mkdir .libs 2>/dev/null
8585 if test -d .libs; then
8586 lt_cv_objdir=.libs
8587 else
8588 # MS-DOS does not allow filenames that begin with a dot.
8589 lt_cv_objdir=_libs
8590 fi
8591 rmdir .libs 2>/dev/null
8592 fi
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8594 printf "%s\n" "$lt_cv_objdir" >&6; }
8595 objdir=$lt_cv_objdir
8596
8597
8598
8599
8600
8601 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8602
8603
8604
8605
8606 case $host_os in
8607 aix3*)
8608 # AIX sometimes has problems with the GCC collect2 program. For some
8609 # reason, if we set the COLLECT_NAMES environment variable, the problems
8610 # vanish in a puff of smoke.
8611 if test set != "${COLLECT_NAMES+set}"; then
8612 COLLECT_NAMES=
8613 export COLLECT_NAMES
8614 fi
8615 ;;
8616 esac
8617
8618 # Global variables:
8619 ofile=libtool
8620 can_build_shared=yes
8621
8622 # All known linkers require a '.a' archive for static linking (except MSVC and
8623 # ICC, which need '.lib').
8624 libext=a
8625
8626 with_gnu_ld=$lt_cv_prog_gnu_ld
8627
8628 old_CC=$CC
8629 old_CFLAGS=$CFLAGS
8630
8631 # Set sane defaults for various variables
8632 test -z "$CC" && CC=cc
8633 test -z "$LTCC" && LTCC=$CC
8634 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8635 test -z "$LD" && LD=ld
8636 test -z "$ac_objext" && ac_objext=o
8637
8638 func_cc_basename $compiler
8639 cc_basename=$func_cc_basename_result
8640
8641
8642 # Only perform the check for file, if the check method requires it
8643 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8644 case $deplibs_check_method in
8645 file_magic*)
8646 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8648 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8649 if test ${lt_cv_path_MAGIC_CMD+y}
8650 then :
8651 printf %s "(cached) " >&6
8652 else $as_nop
8653 case $MAGIC_CMD in
8654 [\\/*] | ?:[\\/]*)
8655 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8656 ;;
8657 *)
8658 lt_save_MAGIC_CMD=$MAGIC_CMD
8659 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8661 for ac_dir in $ac_dummy; do
8662 IFS=$lt_save_ifs
8663 test -z "$ac_dir" && ac_dir=.
8664 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8665 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8666 if test -n "$file_magic_test_file"; then
8667 case $deplibs_check_method in
8668 "file_magic "*)
8669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8670 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8672 $EGREP "$file_magic_regex" > /dev/null; then
8673 :
8674 else
8675 cat <<_LT_EOF 1>&2
8676
8677 *** Warning: the command libtool uses to detect shared libraries,
8678 *** $file_magic_cmd, produces output that libtool cannot recognize.
8679 *** The result is that libtool may fail to recognize shared libraries
8680 *** as such. This will affect the creation of libtool libraries that
8681 *** depend on shared libraries, but programs linked with such libtool
8682 *** libraries will work regardless of this problem. Nevertheless, you
8683 *** may want to report the problem to your system manager and/or to
8684 *** bug-libtool@gnu.org
8685
8686 _LT_EOF
8687 fi ;;
8688 esac
8689 fi
8690 break
8691 fi
8692 done
8693 IFS=$lt_save_ifs
8694 MAGIC_CMD=$lt_save_MAGIC_CMD
8695 ;;
8696 esac
8697 fi
8698
8699 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8700 if test -n "$MAGIC_CMD"; then
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8702 printf "%s\n" "$MAGIC_CMD" >&6; }
8703 else
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 printf "%s\n" "no" >&6; }
8706 fi
8707
8708
8709
8710
8711
8712 if test -z "$lt_cv_path_MAGIC_CMD"; then
8713 if test -n "$ac_tool_prefix"; then
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8715 printf %s "checking for file... " >&6; }
8716 if test ${lt_cv_path_MAGIC_CMD+y}
8717 then :
8718 printf %s "(cached) " >&6
8719 else $as_nop
8720 case $MAGIC_CMD in
8721 [\\/*] | ?:[\\/]*)
8722 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8723 ;;
8724 *)
8725 lt_save_MAGIC_CMD=$MAGIC_CMD
8726 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8727 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8728 for ac_dir in $ac_dummy; do
8729 IFS=$lt_save_ifs
8730 test -z "$ac_dir" && ac_dir=.
8731 if test -f "$ac_dir/file"; then
8732 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8733 if test -n "$file_magic_test_file"; then
8734 case $deplibs_check_method in
8735 "file_magic "*)
8736 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8737 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8738 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8739 $EGREP "$file_magic_regex" > /dev/null; then
8740 :
8741 else
8742 cat <<_LT_EOF 1>&2
8743
8744 *** Warning: the command libtool uses to detect shared libraries,
8745 *** $file_magic_cmd, produces output that libtool cannot recognize.
8746 *** The result is that libtool may fail to recognize shared libraries
8747 *** as such. This will affect the creation of libtool libraries that
8748 *** depend on shared libraries, but programs linked with such libtool
8749 *** libraries will work regardless of this problem. Nevertheless, you
8750 *** may want to report the problem to your system manager and/or to
8751 *** bug-libtool@gnu.org
8752
8753 _LT_EOF
8754 fi ;;
8755 esac
8756 fi
8757 break
8758 fi
8759 done
8760 IFS=$lt_save_ifs
8761 MAGIC_CMD=$lt_save_MAGIC_CMD
8762 ;;
8763 esac
8764 fi
8765
8766 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8767 if test -n "$MAGIC_CMD"; then
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8769 printf "%s\n" "$MAGIC_CMD" >&6; }
8770 else
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 printf "%s\n" "no" >&6; }
8773 fi
8774
8775
8776 else
8777 MAGIC_CMD=:
8778 fi
8779 fi
8780
8781 fi
8782 ;;
8783 esac
8784
8785 # Use C for the default configuration in the libtool script
8786
8787 lt_save_CC=$CC
8788 ac_ext=c
8789 ac_cpp='$CPP $CPPFLAGS'
8790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8793
8794
8795 # Source file extension for C test sources.
8796 ac_ext=c
8797
8798 # Object file extension for compiled C test sources.
8799 objext=o
8800 objext=$objext
8801
8802 # Code to be used in simple compile tests
8803 lt_simple_compile_test_code="int some_variable = 0;"
8804
8805 # Code to be used in simple link tests
8806 lt_simple_link_test_code='int main(){return(0);}'
8807
8808
8809
8810
8811
8812
8813
8814 # If no C compiler was specified, use CC.
8815 LTCC=${LTCC-"$CC"}
8816
8817 # If no C compiler flags were specified, use CFLAGS.
8818 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8819
8820 # Allow CC to be a program name with arguments.
8821 compiler=$CC
8822
8823 # Save the default compiler, since it gets overwritten when the other
8824 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8825 compiler_DEFAULT=$CC
8826
8827 # save warnings/boilerplate of simple test code
8828 ac_outfile=conftest.$ac_objext
8829 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8830 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8831 _lt_compiler_boilerplate=`cat conftest.err`
8832 $RM conftest*
8833
8834 ac_outfile=conftest.$ac_objext
8835 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8836 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8837 _lt_linker_boilerplate=`cat conftest.err`
8838 $RM -r conftest*
8839
8840
8841 ## CAVEAT EMPTOR:
8842 ## There is no encapsulation within the following macros, do not change
8843 ## the running order or otherwise move them around unless you know exactly
8844 ## what you are doing...
8845 if test -n "$compiler"; then
8846
8847 lt_prog_compiler_no_builtin_flag=
8848
8849 if test yes = "$GCC"; then
8850 case $cc_basename in
8851 nvcc*)
8852 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8853 *)
8854 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8855 esac
8856
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8858 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8859 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8860 then :
8861 printf %s "(cached) " >&6
8862 else $as_nop
8863 lt_cv_prog_compiler_rtti_exceptions=no
8864 ac_outfile=conftest.$ac_objext
8865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8866 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8867 # Insert the option either (1) after the last *FLAGS variable, or
8868 # (2) before a word containing "conftest.", or (3) at the end.
8869 # Note that $ac_compile itself does not contain backslashes and begins
8870 # with a dollar sign (not a hyphen), so the echo should work correctly.
8871 # The option is referenced via a variable to avoid confusing sed.
8872 lt_compile=`echo "$ac_compile" | $SED \
8873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8875 -e 's:$: $lt_compiler_flag:'`
8876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8877 (eval "$lt_compile" 2>conftest.err)
8878 ac_status=$?
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 if (exit $ac_status) && test -s "$ac_outfile"; then
8882 # The compiler can only warn and ignore the option if not recognized
8883 # So say no if there are warnings other than the usual output.
8884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8887 lt_cv_prog_compiler_rtti_exceptions=yes
8888 fi
8889 fi
8890 $RM conftest*
8891
8892 fi
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8894 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8895
8896 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8897 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8898 else
8899 :
8900 fi
8901
8902 fi
8903
8904
8905
8906
8907
8908
8909 lt_prog_compiler_wl=
8910 lt_prog_compiler_pic=
8911 lt_prog_compiler_static=
8912
8913
8914 if test yes = "$GCC"; then
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_static='-static'
8917
8918 case $host_os in
8919 aix*)
8920 # All AIX code is PIC.
8921 if test ia64 = "$host_cpu"; then
8922 # AIX 5 now supports IA64 processor
8923 lt_prog_compiler_static='-Bstatic'
8924 fi
8925 lt_prog_compiler_pic='-fPIC'
8926 ;;
8927
8928 amigaos*)
8929 case $host_cpu in
8930 powerpc)
8931 # see comment about AmigaOS4 .so support
8932 lt_prog_compiler_pic='-fPIC'
8933 ;;
8934 m68k)
8935 # FIXME: we need at least 68020 code to build shared libraries, but
8936 # adding the '-m68020' flag to GCC prevents building anything better,
8937 # like '-m68040'.
8938 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8939 ;;
8940 esac
8941 ;;
8942
8943 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8944 # PIC is the default for these OSes.
8945 ;;
8946
8947 mingw* | cygwin* | pw32* | os2* | cegcc*)
8948 # This hack is so that the source file can tell whether it is being
8949 # built for inclusion in a dll (and should export symbols for example).
8950 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8951 # (--disable-auto-import) libraries
8952 lt_prog_compiler_pic='-DDLL_EXPORT'
8953 case $host_os in
8954 os2*)
8955 lt_prog_compiler_static='$wl-static'
8956 ;;
8957 esac
8958 ;;
8959
8960 darwin* | rhapsody*)
8961 # PIC is the default on this platform
8962 # Common symbols not allowed in MH_DYLIB files
8963 lt_prog_compiler_pic='-fno-common'
8964 ;;
8965
8966 haiku*)
8967 # PIC is the default for Haiku.
8968 # The "-static" flag exists, but is broken.
8969 lt_prog_compiler_static=
8970 ;;
8971
8972 hpux*)
8973 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8974 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8975 # sets the default TLS model and affects inlining.
8976 case $host_cpu in
8977 hppa*64*)
8978 # +Z the default
8979 ;;
8980 *)
8981 lt_prog_compiler_pic='-fPIC'
8982 ;;
8983 esac
8984 ;;
8985
8986 interix[3-9]*)
8987 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8988 # Instead, we relocate shared libraries at runtime.
8989 ;;
8990
8991 msdosdjgpp*)
8992 # Just because we use GCC doesn't mean we suddenly get shared libraries
8993 # on systems that don't support them.
8994 lt_prog_compiler_can_build_shared=no
8995 enable_shared=no
8996 ;;
8997
8998 *nto* | *qnx*)
8999 # QNX uses GNU C++, but need to define -shared option too, otherwise
9000 # it will coredump.
9001 lt_prog_compiler_pic='-fPIC -shared'
9002 ;;
9003
9004 sysv4*MP*)
9005 if test -d /usr/nec; then
9006 lt_prog_compiler_pic=-Kconform_pic
9007 fi
9008 ;;
9009
9010 *)
9011 lt_prog_compiler_pic='-fPIC'
9012 ;;
9013 esac
9014
9015 case $cc_basename in
9016 nvcc*) # Cuda Compiler Driver 2.2
9017 lt_prog_compiler_wl='-Xlinker '
9018 if test -n "$lt_prog_compiler_pic"; then
9019 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9020 fi
9021 ;;
9022 esac
9023 else
9024 # PORTME Check for flag to pass linker flags through the system compiler.
9025 case $host_os in
9026 aix*)
9027 lt_prog_compiler_wl='-Wl,'
9028 if test ia64 = "$host_cpu"; then
9029 # AIX 5 now supports IA64 processor
9030 lt_prog_compiler_static='-Bstatic'
9031 else
9032 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9033 fi
9034 ;;
9035
9036 darwin* | rhapsody*)
9037 # PIC is the default on this platform
9038 # Common symbols not allowed in MH_DYLIB files
9039 lt_prog_compiler_pic='-fno-common'
9040 case $cc_basename in
9041 nagfor*)
9042 # NAG Fortran compiler
9043 lt_prog_compiler_wl='-Wl,-Wl,,'
9044 lt_prog_compiler_pic='-PIC'
9045 lt_prog_compiler_static='-Bstatic'
9046 ;;
9047 esac
9048 ;;
9049
9050 mingw* | cygwin* | pw32* | os2* | cegcc*)
9051 # This hack is so that the source file can tell whether it is being
9052 # built for inclusion in a dll (and should export symbols for example).
9053 lt_prog_compiler_pic='-DDLL_EXPORT'
9054 case $host_os in
9055 os2*)
9056 lt_prog_compiler_static='$wl-static'
9057 ;;
9058 esac
9059 ;;
9060
9061 hpux9* | hpux10* | hpux11*)
9062 lt_prog_compiler_wl='-Wl,'
9063 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9064 # not for PA HP-UX.
9065 case $host_cpu in
9066 hppa*64*|ia64*)
9067 # +Z the default
9068 ;;
9069 *)
9070 lt_prog_compiler_pic='+Z'
9071 ;;
9072 esac
9073 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9074 lt_prog_compiler_static='$wl-a ${wl}archive'
9075 ;;
9076
9077 irix5* | irix6* | nonstopux*)
9078 lt_prog_compiler_wl='-Wl,'
9079 # PIC (with -KPIC) is the default.
9080 lt_prog_compiler_static='-non_shared'
9081 ;;
9082
9083 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9084 case $cc_basename in
9085 # old Intel for x86_64, which still supported -KPIC.
9086 ecc*)
9087 lt_prog_compiler_wl='-Wl,'
9088 lt_prog_compiler_pic='-KPIC'
9089 lt_prog_compiler_static='-static'
9090 ;;
9091 # icc used to be incompatible with GCC.
9092 # ICC 10 doesn't accept -KPIC any more.
9093 icc* | ifort*)
9094 lt_prog_compiler_wl='-Wl,'
9095 lt_prog_compiler_pic='-fPIC'
9096 lt_prog_compiler_static='-static'
9097 ;;
9098 # Lahey Fortran 8.1.
9099 lf95*)
9100 lt_prog_compiler_wl='-Wl,'
9101 lt_prog_compiler_pic='--shared'
9102 lt_prog_compiler_static='--static'
9103 ;;
9104 nagfor*)
9105 # NAG Fortran compiler
9106 lt_prog_compiler_wl='-Wl,-Wl,,'
9107 lt_prog_compiler_pic='-PIC'
9108 lt_prog_compiler_static='-Bstatic'
9109 ;;
9110 tcc*)
9111 # Fabrice Bellard et al's Tiny C Compiler
9112 lt_prog_compiler_wl='-Wl,'
9113 lt_prog_compiler_pic='-fPIC'
9114 lt_prog_compiler_static='-static'
9115 ;;
9116 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9117 # Portland Group compilers (*not* the Pentium gcc compiler,
9118 # which looks to be a dead project)
9119 lt_prog_compiler_wl='-Wl,'
9120 lt_prog_compiler_pic='-fpic'
9121 lt_prog_compiler_static='-Bstatic'
9122 ;;
9123 ccc*)
9124 lt_prog_compiler_wl='-Wl,'
9125 # All Alpha code is PIC.
9126 lt_prog_compiler_static='-non_shared'
9127 ;;
9128 xl* | bgxl* | bgf* | mpixl*)
9129 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9130 lt_prog_compiler_wl='-Wl,'
9131 lt_prog_compiler_pic='-qpic'
9132 lt_prog_compiler_static='-qstaticlink'
9133 ;;
9134 *)
9135 case `$CC -V 2>&1 | $SED 5q` in
9136 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9137 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9138 lt_prog_compiler_pic='-KPIC'
9139 lt_prog_compiler_static='-Bstatic'
9140 lt_prog_compiler_wl=''
9141 ;;
9142 *Sun\ F* | *Sun*Fortran*)
9143 lt_prog_compiler_pic='-KPIC'
9144 lt_prog_compiler_static='-Bstatic'
9145 lt_prog_compiler_wl='-Qoption ld '
9146 ;;
9147 *Sun\ C*)
9148 # Sun C 5.9
9149 lt_prog_compiler_pic='-KPIC'
9150 lt_prog_compiler_static='-Bstatic'
9151 lt_prog_compiler_wl='-Wl,'
9152 ;;
9153 *Intel*\ [CF]*Compiler*)
9154 lt_prog_compiler_wl='-Wl,'
9155 lt_prog_compiler_pic='-fPIC'
9156 lt_prog_compiler_static='-static'
9157 ;;
9158 *Portland\ Group*)
9159 lt_prog_compiler_wl='-Wl,'
9160 lt_prog_compiler_pic='-fpic'
9161 lt_prog_compiler_static='-Bstatic'
9162 ;;
9163 esac
9164 ;;
9165 esac
9166 ;;
9167
9168 newsos6)
9169 lt_prog_compiler_pic='-KPIC'
9170 lt_prog_compiler_static='-Bstatic'
9171 ;;
9172
9173 *nto* | *qnx*)
9174 # QNX uses GNU C++, but need to define -shared option too, otherwise
9175 # it will coredump.
9176 lt_prog_compiler_pic='-fPIC -shared'
9177 ;;
9178
9179 osf3* | osf4* | osf5*)
9180 lt_prog_compiler_wl='-Wl,'
9181 # All OSF/1 code is PIC.
9182 lt_prog_compiler_static='-non_shared'
9183 ;;
9184
9185 rdos*)
9186 lt_prog_compiler_static='-non_shared'
9187 ;;
9188
9189 solaris*)
9190 lt_prog_compiler_pic='-KPIC'
9191 lt_prog_compiler_static='-Bstatic'
9192 case $cc_basename in
9193 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9194 lt_prog_compiler_wl='-Qoption ld ';;
9195 *)
9196 lt_prog_compiler_wl='-Wl,';;
9197 esac
9198 ;;
9199
9200 sunos4*)
9201 lt_prog_compiler_wl='-Qoption ld '
9202 lt_prog_compiler_pic='-PIC'
9203 lt_prog_compiler_static='-Bstatic'
9204 ;;
9205
9206 sysv4 | sysv4.2uw2* | sysv4.3*)
9207 lt_prog_compiler_wl='-Wl,'
9208 lt_prog_compiler_pic='-KPIC'
9209 lt_prog_compiler_static='-Bstatic'
9210 ;;
9211
9212 sysv4*MP*)
9213 if test -d /usr/nec; then
9214 lt_prog_compiler_pic='-Kconform_pic'
9215 lt_prog_compiler_static='-Bstatic'
9216 fi
9217 ;;
9218
9219 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9220 lt_prog_compiler_wl='-Wl,'
9221 lt_prog_compiler_pic='-KPIC'
9222 lt_prog_compiler_static='-Bstatic'
9223 ;;
9224
9225 unicos*)
9226 lt_prog_compiler_wl='-Wl,'
9227 lt_prog_compiler_can_build_shared=no
9228 ;;
9229
9230 uts4*)
9231 lt_prog_compiler_pic='-pic'
9232 lt_prog_compiler_static='-Bstatic'
9233 ;;
9234
9235 *)
9236 lt_prog_compiler_can_build_shared=no
9237 ;;
9238 esac
9239 fi
9240
9241 case $host_os in
9242 # For platforms that do not support PIC, -DPIC is meaningless:
9243 *djgpp*)
9244 lt_prog_compiler_pic=
9245 ;;
9246 *)
9247 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9248 ;;
9249 esac
9250
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9252 printf %s "checking for $compiler option to produce PIC... " >&6; }
9253 if test ${lt_cv_prog_compiler_pic+y}
9254 then :
9255 printf %s "(cached) " >&6
9256 else $as_nop
9257 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9258 fi
9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9260 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9261 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9262
9263 #
9264 # Check to make sure the PIC flag actually works.
9265 #
9266 if test -n "$lt_prog_compiler_pic"; then
9267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9268 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9269 if test ${lt_cv_prog_compiler_pic_works+y}
9270 then :
9271 printf %s "(cached) " >&6
9272 else $as_nop
9273 lt_cv_prog_compiler_pic_works=no
9274 ac_outfile=conftest.$ac_objext
9275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9276 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9277 # Insert the option either (1) after the last *FLAGS variable, or
9278 # (2) before a word containing "conftest.", or (3) at the end.
9279 # Note that $ac_compile itself does not contain backslashes and begins
9280 # with a dollar sign (not a hyphen), so the echo should work correctly.
9281 # The option is referenced via a variable to avoid confusing sed.
9282 lt_compile=`echo "$ac_compile" | $SED \
9283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9285 -e 's:$: $lt_compiler_flag:'`
9286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9287 (eval "$lt_compile" 2>conftest.err)
9288 ac_status=$?
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 if (exit $ac_status) && test -s "$ac_outfile"; then
9292 # The compiler can only warn and ignore the option if not recognized
9293 # So say no if there are warnings other than the usual output.
9294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9297 lt_cv_prog_compiler_pic_works=yes
9298 fi
9299 fi
9300 $RM conftest*
9301
9302 fi
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9304 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9305
9306 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9307 case $lt_prog_compiler_pic in
9308 "" | " "*) ;;
9309 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9310 esac
9311 else
9312 lt_prog_compiler_pic=
9313 lt_prog_compiler_can_build_shared=no
9314 fi
9315
9316 fi
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328 #
9329 # Check to make sure the static flag actually works.
9330 #
9331 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9333 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9334 if test ${lt_cv_prog_compiler_static_works+y}
9335 then :
9336 printf %s "(cached) " >&6
9337 else $as_nop
9338 lt_cv_prog_compiler_static_works=no
9339 save_LDFLAGS=$LDFLAGS
9340 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9341 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9343 # The linker can only warn and ignore the option if not recognized
9344 # So say no if there are warnings
9345 if test -s conftest.err; then
9346 # Append any errors to the config.log.
9347 cat conftest.err 1>&5
9348 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9350 if diff conftest.exp conftest.er2 >/dev/null; then
9351 lt_cv_prog_compiler_static_works=yes
9352 fi
9353 else
9354 lt_cv_prog_compiler_static_works=yes
9355 fi
9356 fi
9357 $RM -r conftest*
9358 LDFLAGS=$save_LDFLAGS
9359
9360 fi
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9362 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9363
9364 if test yes = "$lt_cv_prog_compiler_static_works"; then
9365 :
9366 else
9367 lt_prog_compiler_static=
9368 fi
9369
9370
9371
9372
9373
9374
9375
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9377 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9378 if test ${lt_cv_prog_compiler_c_o+y}
9379 then :
9380 printf %s "(cached) " >&6
9381 else $as_nop
9382 lt_cv_prog_compiler_c_o=no
9383 $RM -r conftest 2>/dev/null
9384 mkdir conftest
9385 cd conftest
9386 mkdir out
9387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9388
9389 lt_compiler_flag="-o out/conftest2.$ac_objext"
9390 # Insert the option either (1) after the last *FLAGS variable, or
9391 # (2) before a word containing "conftest.", or (3) at the end.
9392 # Note that $ac_compile itself does not contain backslashes and begins
9393 # with a dollar sign (not a hyphen), so the echo should work correctly.
9394 lt_compile=`echo "$ac_compile" | $SED \
9395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9397 -e 's:$: $lt_compiler_flag:'`
9398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9399 (eval "$lt_compile" 2>out/conftest.err)
9400 ac_status=$?
9401 cat out/conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9404 then
9405 # The compiler can only warn and ignore the option if not recognized
9406 # So say no if there are warnings
9407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9408 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9409 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9410 lt_cv_prog_compiler_c_o=yes
9411 fi
9412 fi
9413 chmod u+w . 2>&5
9414 $RM conftest*
9415 # SGI C++ compiler will create directory out/ii_files/ for
9416 # template instantiation
9417 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9418 $RM out/* && rmdir out
9419 cd ..
9420 $RM -r conftest
9421 $RM conftest*
9422
9423 fi
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9425 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9426
9427
9428
9429
9430
9431
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9433 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9434 if test ${lt_cv_prog_compiler_c_o+y}
9435 then :
9436 printf %s "(cached) " >&6
9437 else $as_nop
9438 lt_cv_prog_compiler_c_o=no
9439 $RM -r conftest 2>/dev/null
9440 mkdir conftest
9441 cd conftest
9442 mkdir out
9443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9444
9445 lt_compiler_flag="-o out/conftest2.$ac_objext"
9446 # Insert the option either (1) after the last *FLAGS variable, or
9447 # (2) before a word containing "conftest.", or (3) at the end.
9448 # Note that $ac_compile itself does not contain backslashes and begins
9449 # with a dollar sign (not a hyphen), so the echo should work correctly.
9450 lt_compile=`echo "$ac_compile" | $SED \
9451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9453 -e 's:$: $lt_compiler_flag:'`
9454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9455 (eval "$lt_compile" 2>out/conftest.err)
9456 ac_status=$?
9457 cat out/conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9460 then
9461 # The compiler can only warn and ignore the option if not recognized
9462 # So say no if there are warnings
9463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9466 lt_cv_prog_compiler_c_o=yes
9467 fi
9468 fi
9469 chmod u+w . 2>&5
9470 $RM conftest*
9471 # SGI C++ compiler will create directory out/ii_files/ for
9472 # template instantiation
9473 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9474 $RM out/* && rmdir out
9475 cd ..
9476 $RM -r conftest
9477 $RM conftest*
9478
9479 fi
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9481 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9482
9483
9484
9485
9486 hard_links=nottested
9487 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9488 # do not overwrite the value of need_locks provided by the user
9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9490 printf %s "checking if we can lock with hard links... " >&6; }
9491 hard_links=yes
9492 $RM conftest*
9493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9494 touch conftest.a
9495 ln conftest.a conftest.b 2>&5 || hard_links=no
9496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9498 printf "%s\n" "$hard_links" >&6; }
9499 if test no = "$hard_links"; then
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9501 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9502 need_locks=warn
9503 fi
9504 else
9505 need_locks=no
9506 fi
9507
9508
9509
9510
9511
9512
9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9514 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9515
9516 runpath_var=
9517 allow_undefined_flag=
9518 always_export_symbols=no
9519 archive_cmds=
9520 archive_expsym_cmds=
9521 compiler_needs_object=no
9522 enable_shared_with_static_runtimes=no
9523 export_dynamic_flag_spec=
9524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9525 hardcode_automatic=no
9526 hardcode_direct=no
9527 hardcode_direct_absolute=no
9528 hardcode_libdir_flag_spec=
9529 hardcode_libdir_separator=
9530 hardcode_minus_L=no
9531 hardcode_shlibpath_var=unsupported
9532 inherit_rpath=no
9533 link_all_deplibs=unknown
9534 module_cmds=
9535 module_expsym_cmds=
9536 old_archive_from_new_cmds=
9537 old_archive_from_expsyms_cmds=
9538 thread_safe_flag_spec=
9539 whole_archive_flag_spec=
9540 # include_expsyms should be a list of space-separated symbols to be *always*
9541 # included in the symbol list
9542 include_expsyms=
9543 # exclude_expsyms can be an extended regexp of symbols to exclude
9544 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9545 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9546 # as well as any symbol that contains 'd'.
9547 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9548 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9549 # platforms (ab)use it in PIC code, but their linkers get confused if
9550 # the symbol is explicitly referenced. Since portable code cannot
9551 # rely on this symbol name, it's probably fine to never include it in
9552 # preloaded symbol tables.
9553 # Exclude shared library initialization/finalization symbols.
9554 extract_expsyms_cmds=
9555
9556 case $host_os in
9557 cygwin* | mingw* | pw32* | cegcc*)
9558 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9559 # When not using gcc, we currently assume that we are using
9560 # Microsoft Visual C++ or Intel C++ Compiler.
9561 if test yes != "$GCC"; then
9562 with_gnu_ld=no
9563 fi
9564 ;;
9565 interix*)
9566 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9567 with_gnu_ld=yes
9568 ;;
9569 openbsd* | bitrig*)
9570 with_gnu_ld=no
9571 ;;
9572 esac
9573
9574 ld_shlibs=yes
9575
9576 # On some targets, GNU ld is compatible enough with the native linker
9577 # that we're better off using the native interface for both.
9578 lt_use_gnu_ld_interface=no
9579 if test yes = "$with_gnu_ld"; then
9580 case $host_os in
9581 aix*)
9582 # The AIX port of GNU ld has always aspired to compatibility
9583 # with the native linker. However, as the warning in the GNU ld
9584 # block says, versions before 2.19.5* couldn't really create working
9585 # shared libraries, regardless of the interface used.
9586 case `$LD -v 2>&1` in
9587 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9588 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9589 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9590 *)
9591 lt_use_gnu_ld_interface=yes
9592 ;;
9593 esac
9594 ;;
9595 *)
9596 lt_use_gnu_ld_interface=yes
9597 ;;
9598 esac
9599 fi
9600
9601 if test yes = "$lt_use_gnu_ld_interface"; then
9602 # If archive_cmds runs LD, not CC, wlarc should be empty
9603 wlarc='$wl'
9604
9605 # Set some defaults for GNU ld with shared library support. These
9606 # are reset later if shared libraries are not supported. Putting them
9607 # here allows them to be overridden if necessary.
9608 runpath_var=LD_RUN_PATH
9609 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9610 export_dynamic_flag_spec='$wl--export-dynamic'
9611 # ancient GNU ld didn't support --whole-archive et. al.
9612 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9613 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9614 else
9615 whole_archive_flag_spec=
9616 fi
9617 supports_anon_versioning=no
9618 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9619 *GNU\ gold*) supports_anon_versioning=yes ;;
9620 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9621 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9622 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9623 *\ 2.11.*) ;; # other 2.11 versions
9624 *) supports_anon_versioning=yes ;;
9625 esac
9626
9627 # See if GNU ld supports shared libraries.
9628 case $host_os in
9629 aix[3-9]*)
9630 # On AIX/PPC, the GNU linker is very broken
9631 if test ia64 != "$host_cpu"; then
9632 ld_shlibs=no
9633 cat <<_LT_EOF 1>&2
9634
9635 *** Warning: the GNU linker, at least up to release 2.19, is reported
9636 *** to be unable to reliably create shared libraries on AIX.
9637 *** Therefore, libtool is disabling shared libraries support. If you
9638 *** really care for shared libraries, you may want to install binutils
9639 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9640 *** You will then need to restart the configuration process.
9641
9642 _LT_EOF
9643 fi
9644 ;;
9645
9646 amigaos*)
9647 case $host_cpu in
9648 powerpc)
9649 # see comment about AmigaOS4 .so support
9650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9651 archive_expsym_cmds=''
9652 ;;
9653 m68k)
9654 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)'
9655 hardcode_libdir_flag_spec='-L$libdir'
9656 hardcode_minus_L=yes
9657 ;;
9658 esac
9659 ;;
9660
9661 beos*)
9662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9663 allow_undefined_flag=unsupported
9664 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9665 # support --undefined. This deserves some investigation. FIXME
9666 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9667 else
9668 ld_shlibs=no
9669 fi
9670 ;;
9671
9672 cygwin* | mingw* | pw32* | cegcc*)
9673 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9674 # as there is no search path for DLLs.
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 export_dynamic_flag_spec='$wl--export-all-symbols'
9677 allow_undefined_flag=unsupported
9678 always_export_symbols=no
9679 enable_shared_with_static_runtimes=yes
9680 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'
9681 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9682
9683 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9685 # If the export-symbols file already is a .def file, use it as
9686 # is; otherwise, prepend EXPORTS...
9687 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9688 cp $export_symbols $output_objdir/$soname.def;
9689 else
9690 echo EXPORTS > $output_objdir/$soname.def;
9691 cat $export_symbols >> $output_objdir/$soname.def;
9692 fi~
9693 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9694 else
9695 ld_shlibs=no
9696 fi
9697 ;;
9698
9699 haiku*)
9700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9701 link_all_deplibs=yes
9702 ;;
9703
9704 os2*)
9705 hardcode_libdir_flag_spec='-L$libdir'
9706 hardcode_minus_L=yes
9707 allow_undefined_flag=unsupported
9708 shrext_cmds=.dll
9709 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9710 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9711 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9712 $ECHO EXPORTS >> $output_objdir/$libname.def~
9713 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9714 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9715 emximp -o $lib $output_objdir/$libname.def'
9716 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9717 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9718 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9719 $ECHO EXPORTS >> $output_objdir/$libname.def~
9720 prefix_cmds="$SED"~
9721 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9722 prefix_cmds="$prefix_cmds -e 1d";
9723 fi~
9724 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9725 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9726 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9727 emximp -o $lib $output_objdir/$libname.def'
9728 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9729 enable_shared_with_static_runtimes=yes
9730 file_list_spec='@'
9731 ;;
9732
9733 interix[3-9]*)
9734 hardcode_direct=no
9735 hardcode_shlibpath_var=no
9736 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9737 export_dynamic_flag_spec='$wl-E'
9738 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9739 # Instead, shared libraries are loaded at an image base (0x10000000 by
9740 # default) and relocated if they conflict, which is a slow very memory
9741 # consuming and fragmenting process. To avoid this, we pick a random,
9742 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9743 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9744 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9745 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'
9746 ;;
9747
9748 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9749 tmp_diet=no
9750 if test linux-dietlibc = "$host_os"; then
9751 case $cc_basename in
9752 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9753 esac
9754 fi
9755 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9756 && test no = "$tmp_diet"
9757 then
9758 tmp_addflag=' $pic_flag'
9759 tmp_sharedflag='-shared'
9760 case $cc_basename,$host_cpu in
9761 pgcc*) # Portland Group C compiler
9762 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'
9763 tmp_addflag=' $pic_flag'
9764 ;;
9765 pgf77* | pgf90* | pgf95* | pgfortran*)
9766 # Portland Group f77 and f90 compilers
9767 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'
9768 tmp_addflag=' $pic_flag -Mnomain' ;;
9769 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9770 tmp_addflag=' -i_dynamic' ;;
9771 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9772 tmp_addflag=' -i_dynamic -nofor_main' ;;
9773 ifc* | ifort*) # Intel Fortran compiler
9774 tmp_addflag=' -nofor_main' ;;
9775 lf95*) # Lahey Fortran 8.1
9776 whole_archive_flag_spec=
9777 tmp_sharedflag='--shared' ;;
9778 nagfor*) # NAGFOR 5.3
9779 tmp_sharedflag='-Wl,-shared' ;;
9780 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9781 tmp_sharedflag='-qmkshrobj'
9782 tmp_addflag= ;;
9783 nvcc*) # Cuda Compiler Driver 2.2
9784 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'
9785 compiler_needs_object=yes
9786 ;;
9787 esac
9788 case `$CC -V 2>&1 | $SED 5q` in
9789 *Sun\ C*) # Sun C 5.9
9790 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'
9791 compiler_needs_object=yes
9792 tmp_sharedflag='-G' ;;
9793 *Sun\ F*) # Sun Fortran 8.3
9794 tmp_sharedflag='-G' ;;
9795 esac
9796 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9797
9798 if test yes = "$supports_anon_versioning"; then
9799 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9800 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9801 echo "local: *; };" >> $output_objdir/$libname.ver~
9802 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9803 fi
9804
9805 case $cc_basename in
9806 tcc*)
9807 export_dynamic_flag_spec='-rdynamic'
9808 ;;
9809 xlf* | bgf* | bgxlf* | mpixlf*)
9810 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9811 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9812 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9813 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9814 if test yes = "$supports_anon_versioning"; then
9815 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9816 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9817 echo "local: *; };" >> $output_objdir/$libname.ver~
9818 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9819 fi
9820 ;;
9821 esac
9822 else
9823 ld_shlibs=no
9824 fi
9825 ;;
9826
9827 netbsd*)
9828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9829 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9830 wlarc=
9831 else
9832 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9833 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9834 fi
9835 ;;
9836
9837 solaris*)
9838 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9839 ld_shlibs=no
9840 cat <<_LT_EOF 1>&2
9841
9842 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9843 *** create shared libraries on Solaris systems. Therefore, libtool
9844 *** is disabling shared libraries support. We urge you to upgrade GNU
9845 *** binutils to release 2.9.1 or newer. Another option is to modify
9846 *** your PATH or compiler configuration so that the native linker is
9847 *** used, and then restart.
9848
9849 _LT_EOF
9850 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9851 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9852 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9853 else
9854 ld_shlibs=no
9855 fi
9856 ;;
9857
9858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9859 case `$LD -v 2>&1` in
9860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9861 ld_shlibs=no
9862 cat <<_LT_EOF 1>&2
9863
9864 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9865 *** reliably create shared libraries on SCO systems. Therefore, libtool
9866 *** is disabling shared libraries support. We urge you to upgrade GNU
9867 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9868 *** your PATH or compiler configuration so that the native linker is
9869 *** used, and then restart.
9870
9871 _LT_EOF
9872 ;;
9873 *)
9874 # For security reasons, it is highly recommended that you always
9875 # use absolute paths for naming shared libraries, and exclude the
9876 # DT_RUNPATH tag from executables and libraries. But doing so
9877 # requires that you compile everything twice, which is a pain.
9878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9879 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9882 else
9883 ld_shlibs=no
9884 fi
9885 ;;
9886 esac
9887 ;;
9888
9889 sunos4*)
9890 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9891 wlarc=
9892 hardcode_direct=yes
9893 hardcode_shlibpath_var=no
9894 ;;
9895
9896 *)
9897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9898 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9899 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9900 else
9901 ld_shlibs=no
9902 fi
9903 ;;
9904 esac
9905
9906 if test no = "$ld_shlibs"; then
9907 runpath_var=
9908 hardcode_libdir_flag_spec=
9909 export_dynamic_flag_spec=
9910 whole_archive_flag_spec=
9911 fi
9912 else
9913 # PORTME fill in a description of your system's linker (not GNU ld)
9914 case $host_os in
9915 aix3*)
9916 allow_undefined_flag=unsupported
9917 always_export_symbols=yes
9918 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'
9919 # Note: this linker hardcodes the directories in LIBPATH if there
9920 # are no directories specified by -L.
9921 hardcode_minus_L=yes
9922 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9923 # Neither direct hardcoding nor static linking is supported with a
9924 # broken collect2.
9925 hardcode_direct=unsupported
9926 fi
9927 ;;
9928
9929 aix[4-9]*)
9930 if test ia64 = "$host_cpu"; then
9931 # On IA64, the linker does run time linking by default, so we don't
9932 # have to do anything special.
9933 aix_use_runtimelinking=no
9934 exp_sym_flag='-Bexport'
9935 no_entry_flag=
9936 else
9937 # If we're using GNU nm, then we don't want the "-C" option.
9938 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9939 # Without the "-l" option, or with the "-B" option, AIX nm treats
9940 # weak defined symbols like other global defined symbols, whereas
9941 # GNU nm marks them as "W".
9942 # While the 'weak' keyword is ignored in the Export File, we need
9943 # it in the Import File for the 'aix-soname' feature, so we have
9944 # to replace the "-B" option with "-P" for AIX nm.
9945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9946 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'
9947 else
9948 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'
9949 fi
9950 aix_use_runtimelinking=no
9951
9952 # Test if we are trying to use run time linking or normal
9953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9954 # have runtime linking enabled, and use it for executables.
9955 # For shared libraries, we enable/disable runtime linking
9956 # depending on the kind of the shared library created -
9957 # when "with_aix_soname,aix_use_runtimelinking" is:
9958 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9959 # "aix,yes" lib.so shared, rtl:yes, for executables
9960 # lib.a static archive
9961 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9962 # lib.a(lib.so.V) shared, rtl:no, for executables
9963 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9964 # lib.a(lib.so.V) shared, rtl:no
9965 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9966 # lib.a static archive
9967 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9968 for ld_flag in $LDFLAGS; do
9969 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9970 aix_use_runtimelinking=yes
9971 break
9972 fi
9973 done
9974 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9975 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9976 # so we don't have lib.a shared libs to link our executables.
9977 # We have to force runtime linking in this case.
9978 aix_use_runtimelinking=yes
9979 LDFLAGS="$LDFLAGS -Wl,-brtl"
9980 fi
9981 ;;
9982 esac
9983
9984 exp_sym_flag='-bexport'
9985 no_entry_flag='-bnoentry'
9986 fi
9987
9988 # When large executables or shared objects are built, AIX ld can
9989 # have problems creating the table of contents. If linking a library
9990 # or program results in "error TOC overflow" add -mminimal-toc to
9991 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9992 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9993
9994 archive_cmds=''
9995 hardcode_direct=yes
9996 hardcode_direct_absolute=yes
9997 hardcode_libdir_separator=':'
9998 link_all_deplibs=yes
9999 file_list_spec='$wl-f,'
10000 case $with_aix_soname,$aix_use_runtimelinking in
10001 aix,*) ;; # traditional, no import file
10002 svr4,* | *,yes) # use import file
10003 # The Import File defines what to hardcode.
10004 hardcode_direct=no
10005 hardcode_direct_absolute=no
10006 ;;
10007 esac
10008
10009 if test yes = "$GCC"; then
10010 case $host_os in aix4.[012]|aix4.[012].*)
10011 # We only want to do this on AIX 4.2 and lower, the check
10012 # below for broken collect2 doesn't work under 4.3+
10013 collect2name=`$CC -print-prog-name=collect2`
10014 if test -f "$collect2name" &&
10015 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10016 then
10017 # We have reworked collect2
10018 :
10019 else
10020 # We have old collect2
10021 hardcode_direct=unsupported
10022 # It fails to find uninstalled libraries when the uninstalled
10023 # path is not listed in the libpath. Setting hardcode_minus_L
10024 # to unsupported forces relinking
10025 hardcode_minus_L=yes
10026 hardcode_libdir_flag_spec='-L$libdir'
10027 hardcode_libdir_separator=
10028 fi
10029 ;;
10030 esac
10031 shared_flag='-shared'
10032 if test yes = "$aix_use_runtimelinking"; then
10033 shared_flag="$shared_flag "'$wl-G'
10034 fi
10035 # Need to ensure runtime linking is disabled for the traditional
10036 # shared library, or the linker may eventually find shared libraries
10037 # /with/ Import File - we do not want to mix them.
10038 shared_flag_aix='-shared'
10039 shared_flag_svr4='-shared $wl-G'
10040 else
10041 # not using gcc
10042 if test ia64 = "$host_cpu"; then
10043 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10044 # chokes on -Wl,-G. The following line is correct:
10045 shared_flag='-G'
10046 else
10047 if test yes = "$aix_use_runtimelinking"; then
10048 shared_flag='$wl-G'
10049 else
10050 shared_flag='$wl-bM:SRE'
10051 fi
10052 shared_flag_aix='$wl-bM:SRE'
10053 shared_flag_svr4='$wl-G'
10054 fi
10055 fi
10056
10057 export_dynamic_flag_spec='$wl-bexpall'
10058 # It seems that -bexpall does not export symbols beginning with
10059 # underscore (_), so it is better to generate a list of symbols to export.
10060 always_export_symbols=yes
10061 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10062 # Warning - without using the other runtime loading flags (-brtl),
10063 # -berok will link without error, but may produce a broken library.
10064 allow_undefined_flag='-berok'
10065 # Determine the default libpath from the value encoded in an
10066 # empty executable.
10067 if test set = "${lt_cv_aix_libpath+set}"; then
10068 aix_libpath=$lt_cv_aix_libpath
10069 else
10070 if test ${lt_cv_aix_libpath_+y}
10071 then :
10072 printf %s "(cached) " >&6
10073 else $as_nop
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10076
10077 int
10078 main (void)
10079 {
10080
10081 ;
10082 return 0;
10083 }
10084 _ACEOF
10085 if ac_fn_c_try_link "$LINENO"
10086 then :
10087
10088 lt_aix_libpath_sed='
10089 /Import File Strings/,/^$/ {
10090 /^0/ {
10091 s/^0 *\([^ ]*\) *$/\1/
10092 p
10093 }
10094 }'
10095 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10096 # Check for a 64-bit object if we didn't find anything.
10097 if test -z "$lt_cv_aix_libpath_"; then
10098 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10099 fi
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10102 conftest$ac_exeext conftest.$ac_ext
10103 if test -z "$lt_cv_aix_libpath_"; then
10104 lt_cv_aix_libpath_=/usr/lib:/lib
10105 fi
10106
10107 fi
10108
10109 aix_libpath=$lt_cv_aix_libpath_
10110 fi
10111
10112 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10113 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
10114 else
10115 if test ia64 = "$host_cpu"; then
10116 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10117 allow_undefined_flag="-z nodefs"
10118 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"
10119 else
10120 # Determine the default libpath from the value encoded in an
10121 # empty executable.
10122 if test set = "${lt_cv_aix_libpath+set}"; then
10123 aix_libpath=$lt_cv_aix_libpath
10124 else
10125 if test ${lt_cv_aix_libpath_+y}
10126 then :
10127 printf %s "(cached) " >&6
10128 else $as_nop
10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10131
10132 int
10133 main (void)
10134 {
10135
10136 ;
10137 return 0;
10138 }
10139 _ACEOF
10140 if ac_fn_c_try_link "$LINENO"
10141 then :
10142
10143 lt_aix_libpath_sed='
10144 /Import File Strings/,/^$/ {
10145 /^0/ {
10146 s/^0 *\([^ ]*\) *$/\1/
10147 p
10148 }
10149 }'
10150 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10151 # Check for a 64-bit object if we didn't find anything.
10152 if test -z "$lt_cv_aix_libpath_"; then
10153 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10154 fi
10155 fi
10156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10157 conftest$ac_exeext conftest.$ac_ext
10158 if test -z "$lt_cv_aix_libpath_"; then
10159 lt_cv_aix_libpath_=/usr/lib:/lib
10160 fi
10161
10162 fi
10163
10164 aix_libpath=$lt_cv_aix_libpath_
10165 fi
10166
10167 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10168 # Warning - without using the other run time loading flags,
10169 # -berok will link without error, but may produce a broken library.
10170 no_undefined_flag=' $wl-bernotok'
10171 allow_undefined_flag=' $wl-berok'
10172 if test yes = "$with_gnu_ld"; then
10173 # We only use this code for GNU lds that support --whole-archive.
10174 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10175 else
10176 # Exported symbols can be pulled into shared objects from archives
10177 whole_archive_flag_spec='$convenience'
10178 fi
10179 archive_cmds_need_lc=yes
10180 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10181 # -brtl affects multiple linker settings, -berok does not and is overridden later
10182 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10183 if test svr4 != "$with_aix_soname"; then
10184 # This is similar to how AIX traditionally builds its shared libraries.
10185 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'
10186 fi
10187 if test aix != "$with_aix_soname"; then
10188 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'
10189 else
10190 # used by -dlpreopen to get the symbols
10191 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10192 fi
10193 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10194 fi
10195 fi
10196 ;;
10197
10198 amigaos*)
10199 case $host_cpu in
10200 powerpc)
10201 # see comment about AmigaOS4 .so support
10202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10203 archive_expsym_cmds=''
10204 ;;
10205 m68k)
10206 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)'
10207 hardcode_libdir_flag_spec='-L$libdir'
10208 hardcode_minus_L=yes
10209 ;;
10210 esac
10211 ;;
10212
10213 bsdi[45]*)
10214 export_dynamic_flag_spec=-rdynamic
10215 ;;
10216
10217 cygwin* | mingw* | pw32* | cegcc*)
10218 # When not using gcc, we currently assume that we are using
10219 # Microsoft Visual C++ or Intel C++ Compiler.
10220 # hardcode_libdir_flag_spec is actually meaningless, as there is
10221 # no search path for DLLs.
10222 case $cc_basename in
10223 cl* | icl*)
10224 # Native MSVC or ICC
10225 hardcode_libdir_flag_spec=' '
10226 allow_undefined_flag=unsupported
10227 always_export_symbols=yes
10228 file_list_spec='@'
10229 # Tell ltmain to make .lib files, not .a files.
10230 libext=lib
10231 # Tell ltmain to make .dll files, not .so files.
10232 shrext_cmds=.dll
10233 # FIXME: Setting linknames here is a bad hack.
10234 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10235 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10236 cp "$export_symbols" "$output_objdir/$soname.def";
10237 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10238 else
10239 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10240 fi~
10241 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10242 linknames='
10243 # The linker will not automatically build a static lib if we build a DLL.
10244 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10245 enable_shared_with_static_runtimes=yes
10246 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10247 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10248 # Don't use ranlib
10249 old_postinstall_cmds='chmod 644 $oldlib'
10250 postlink_cmds='lt_outputfile="@OUTPUT@"~
10251 lt_tool_outputfile="@TOOL_OUTPUT@"~
10252 case $lt_outputfile in
10253 *.exe|*.EXE) ;;
10254 *)
10255 lt_outputfile=$lt_outputfile.exe
10256 lt_tool_outputfile=$lt_tool_outputfile.exe
10257 ;;
10258 esac~
10259 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10260 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10261 $RM "$lt_outputfile.manifest";
10262 fi'
10263 ;;
10264 *)
10265 # Assume MSVC and ICC wrapper
10266 hardcode_libdir_flag_spec=' '
10267 allow_undefined_flag=unsupported
10268 # Tell ltmain to make .lib files, not .a files.
10269 libext=lib
10270 # Tell ltmain to make .dll files, not .so files.
10271 shrext_cmds=.dll
10272 # FIXME: Setting linknames here is a bad hack.
10273 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10274 # The linker will automatically build a .lib file if we build a DLL.
10275 old_archive_from_new_cmds='true'
10276 # FIXME: Should let the user specify the lib program.
10277 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10278 enable_shared_with_static_runtimes=yes
10279 ;;
10280 esac
10281 ;;
10282
10283 darwin* | rhapsody*)
10284
10285
10286 archive_cmds_need_lc=no
10287 hardcode_direct=no
10288 hardcode_automatic=yes
10289 hardcode_shlibpath_var=unsupported
10290 if test yes = "$lt_cv_ld_force_load"; then
10291 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\"`'
10292
10293 else
10294 whole_archive_flag_spec=''
10295 fi
10296 link_all_deplibs=yes
10297 allow_undefined_flag=$_lt_dar_allow_undefined
10298 case $cc_basename in
10299 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10300 *) _lt_dar_can_shared=$GCC ;;
10301 esac
10302 if test yes = "$_lt_dar_can_shared"; then
10303 output_verbose_link_cmd=func_echo_all
10304 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10305 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10306 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"
10307 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"
10308
10309 else
10310 ld_shlibs=no
10311 fi
10312
10313 ;;
10314
10315 dgux*)
10316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10317 hardcode_libdir_flag_spec='-L$libdir'
10318 hardcode_shlibpath_var=no
10319 ;;
10320
10321 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10322 # support. Future versions do this automatically, but an explicit c++rt0.o
10323 # does not break anything, and helps significantly (at the cost of a little
10324 # extra space).
10325 freebsd2.2*)
10326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10327 hardcode_libdir_flag_spec='-R$libdir'
10328 hardcode_direct=yes
10329 hardcode_shlibpath_var=no
10330 ;;
10331
10332 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10333 freebsd2.*)
10334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10335 hardcode_direct=yes
10336 hardcode_minus_L=yes
10337 hardcode_shlibpath_var=no
10338 ;;
10339
10340 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10341 freebsd* | dragonfly* | midnightbsd*)
10342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10343 hardcode_libdir_flag_spec='-R$libdir'
10344 hardcode_direct=yes
10345 hardcode_shlibpath_var=no
10346 ;;
10347
10348 hpux9*)
10349 if test yes = "$GCC"; then
10350 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'
10351 else
10352 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'
10353 fi
10354 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10355 hardcode_libdir_separator=:
10356 hardcode_direct=yes
10357
10358 # hardcode_minus_L: Not really in the search PATH,
10359 # but as the default location of the library.
10360 hardcode_minus_L=yes
10361 export_dynamic_flag_spec='$wl-E'
10362 ;;
10363
10364 hpux10*)
10365 if test yes,no = "$GCC,$with_gnu_ld"; then
10366 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10367 else
10368 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10369 fi
10370 if test no = "$with_gnu_ld"; then
10371 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10372 hardcode_libdir_separator=:
10373 hardcode_direct=yes
10374 hardcode_direct_absolute=yes
10375 export_dynamic_flag_spec='$wl-E'
10376 # hardcode_minus_L: Not really in the search PATH,
10377 # but as the default location of the library.
10378 hardcode_minus_L=yes
10379 fi
10380 ;;
10381
10382 hpux11*)
10383 if test yes,no = "$GCC,$with_gnu_ld"; then
10384 case $host_cpu in
10385 hppa*64*)
10386 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 ;;
10388 ia64*)
10389 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10390 ;;
10391 *)
10392 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10393 ;;
10394 esac
10395 else
10396 case $host_cpu in
10397 hppa*64*)
10398 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 ;;
10400 ia64*)
10401 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10402 ;;
10403 *)
10404
10405 # Older versions of the 11.00 compiler do not understand -b yet
10406 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10408 printf %s "checking if $CC understands -b... " >&6; }
10409 if test ${lt_cv_prog_compiler__b+y}
10410 then :
10411 printf %s "(cached) " >&6
10412 else $as_nop
10413 lt_cv_prog_compiler__b=no
10414 save_LDFLAGS=$LDFLAGS
10415 LDFLAGS="$LDFLAGS -b"
10416 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10417 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10418 # The linker can only warn and ignore the option if not recognized
10419 # So say no if there are warnings
10420 if test -s conftest.err; then
10421 # Append any errors to the config.log.
10422 cat conftest.err 1>&5
10423 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10425 if diff conftest.exp conftest.er2 >/dev/null; then
10426 lt_cv_prog_compiler__b=yes
10427 fi
10428 else
10429 lt_cv_prog_compiler__b=yes
10430 fi
10431 fi
10432 $RM -r conftest*
10433 LDFLAGS=$save_LDFLAGS
10434
10435 fi
10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10437 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10438
10439 if test yes = "$lt_cv_prog_compiler__b"; then
10440 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10441 else
10442 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10443 fi
10444
10445 ;;
10446 esac
10447 fi
10448 if test no = "$with_gnu_ld"; then
10449 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10450 hardcode_libdir_separator=:
10451
10452 case $host_cpu in
10453 hppa*64*|ia64*)
10454 hardcode_direct=no
10455 hardcode_shlibpath_var=no
10456 ;;
10457 *)
10458 hardcode_direct=yes
10459 hardcode_direct_absolute=yes
10460 export_dynamic_flag_spec='$wl-E'
10461
10462 # hardcode_minus_L: Not really in the search PATH,
10463 # but as the default location of the library.
10464 hardcode_minus_L=yes
10465 ;;
10466 esac
10467 fi
10468 ;;
10469
10470 irix5* | irix6* | nonstopux*)
10471 if test yes = "$GCC"; then
10472 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'
10473 # Try to use the -exported_symbol ld option, if it does not
10474 # work, assume that -exports_file does not work either and
10475 # implicitly export all symbols.
10476 # This should be the same for all languages, so no per-tag cache variable.
10477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10478 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10479 if test ${lt_cv_irix_exported_symbol+y}
10480 then :
10481 printf %s "(cached) " >&6
10482 else $as_nop
10483 save_LDFLAGS=$LDFLAGS
10484 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487 int foo (void) { return 0; }
10488 _ACEOF
10489 if ac_fn_c_try_link "$LINENO"
10490 then :
10491 lt_cv_irix_exported_symbol=yes
10492 else $as_nop
10493 lt_cv_irix_exported_symbol=no
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LDFLAGS=$save_LDFLAGS
10498 fi
10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10500 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10501 if test yes = "$lt_cv_irix_exported_symbol"; then
10502 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'
10503 fi
10504 else
10505 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'
10506 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'
10507 fi
10508 archive_cmds_need_lc='no'
10509 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10510 hardcode_libdir_separator=:
10511 inherit_rpath=yes
10512 link_all_deplibs=yes
10513 ;;
10514
10515 linux*)
10516 case $cc_basename in
10517 tcc*)
10518 # Fabrice Bellard et al's Tiny C Compiler
10519 ld_shlibs=yes
10520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10521 ;;
10522 esac
10523 ;;
10524
10525 netbsd*)
10526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10528 else
10529 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10530 fi
10531 hardcode_libdir_flag_spec='-R$libdir'
10532 hardcode_direct=yes
10533 hardcode_shlibpath_var=no
10534 ;;
10535
10536 newsos6)
10537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538 hardcode_direct=yes
10539 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10540 hardcode_libdir_separator=:
10541 hardcode_shlibpath_var=no
10542 ;;
10543
10544 *nto* | *qnx*)
10545 ;;
10546
10547 openbsd* | bitrig*)
10548 if test -f /usr/libexec/ld.so; then
10549 hardcode_direct=yes
10550 hardcode_shlibpath_var=no
10551 hardcode_direct_absolute=yes
10552 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10553 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10554 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10555 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10556 export_dynamic_flag_spec='$wl-E'
10557 else
10558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10559 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10560 fi
10561 else
10562 ld_shlibs=no
10563 fi
10564 ;;
10565
10566 os2*)
10567 hardcode_libdir_flag_spec='-L$libdir'
10568 hardcode_minus_L=yes
10569 allow_undefined_flag=unsupported
10570 shrext_cmds=.dll
10571 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10572 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10573 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10574 $ECHO EXPORTS >> $output_objdir/$libname.def~
10575 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10576 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10577 emximp -o $lib $output_objdir/$libname.def'
10578 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10579 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10580 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10581 $ECHO EXPORTS >> $output_objdir/$libname.def~
10582 prefix_cmds="$SED"~
10583 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10584 prefix_cmds="$prefix_cmds -e 1d";
10585 fi~
10586 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10587 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10588 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10589 emximp -o $lib $output_objdir/$libname.def'
10590 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10591 enable_shared_with_static_runtimes=yes
10592 file_list_spec='@'
10593 ;;
10594
10595 osf3*)
10596 if test yes = "$GCC"; then
10597 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10598 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'
10599 else
10600 allow_undefined_flag=' -expect_unresolved \*'
10601 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'
10602 fi
10603 archive_cmds_need_lc='no'
10604 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10605 hardcode_libdir_separator=:
10606 ;;
10607
10608 osf4* | osf5*) # as osf3* with the addition of -msym flag
10609 if test yes = "$GCC"; then
10610 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10611 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'
10612 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10613 else
10614 allow_undefined_flag=' -expect_unresolved \*'
10615 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'
10616 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~
10617 $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'
10618
10619 # Both c and cxx compiler support -rpath directly
10620 hardcode_libdir_flag_spec='-rpath $libdir'
10621 fi
10622 archive_cmds_need_lc='no'
10623 hardcode_libdir_separator=:
10624 ;;
10625
10626 solaris*)
10627 no_undefined_flag=' -z defs'
10628 if test yes = "$GCC"; then
10629 wlarc='$wl'
10630 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10631 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10632 $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'
10633 else
10634 case `$CC -V 2>&1` in
10635 *"Compilers 5.0"*)
10636 wlarc=''
10637 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10639 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10640 ;;
10641 *)
10642 wlarc='$wl'
10643 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10645 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10646 ;;
10647 esac
10648 fi
10649 hardcode_libdir_flag_spec='-R$libdir'
10650 hardcode_shlibpath_var=no
10651 case $host_os in
10652 solaris2.[0-5] | solaris2.[0-5].*) ;;
10653 *)
10654 # The compiler driver will combine and reorder linker options,
10655 # but understands '-z linker_flag'. GCC discards it without '$wl',
10656 # but is careful enough not to reorder.
10657 # Supported since Solaris 2.6 (maybe 2.5.1?)
10658 if test yes = "$GCC"; then
10659 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10660 else
10661 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10662 fi
10663 ;;
10664 esac
10665 link_all_deplibs=yes
10666 ;;
10667
10668 sunos4*)
10669 if test sequent = "$host_vendor"; then
10670 # Use $CC to link under sequent, because it throws in some extra .o
10671 # files that make .init and .fini sections work.
10672 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10673 else
10674 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10675 fi
10676 hardcode_libdir_flag_spec='-L$libdir'
10677 hardcode_direct=yes
10678 hardcode_minus_L=yes
10679 hardcode_shlibpath_var=no
10680 ;;
10681
10682 sysv4)
10683 case $host_vendor in
10684 sni)
10685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10686 hardcode_direct=yes # is this really true???
10687 ;;
10688 siemens)
10689 ## LD is ld it makes a PLAMLIB
10690 ## CC just makes a GrossModule.
10691 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10692 reload_cmds='$CC -r -o $output$reload_objs'
10693 hardcode_direct=no
10694 ;;
10695 motorola)
10696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10697 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10698 ;;
10699 esac
10700 runpath_var='LD_RUN_PATH'
10701 hardcode_shlibpath_var=no
10702 ;;
10703
10704 sysv4.3*)
10705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10706 hardcode_shlibpath_var=no
10707 export_dynamic_flag_spec='-Bexport'
10708 ;;
10709
10710 sysv4*MP*)
10711 if test -d /usr/nec; then
10712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10713 hardcode_shlibpath_var=no
10714 runpath_var=LD_RUN_PATH
10715 hardcode_runpath_var=yes
10716 ld_shlibs=yes
10717 fi
10718 ;;
10719
10720 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10721 no_undefined_flag='$wl-z,text'
10722 archive_cmds_need_lc=no
10723 hardcode_shlibpath_var=no
10724 runpath_var='LD_RUN_PATH'
10725
10726 if test yes = "$GCC"; then
10727 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10728 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10729 else
10730 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 fi
10733 ;;
10734
10735 sysv5* | sco3.2v5* | sco5v6*)
10736 # Note: We CANNOT use -z defs as we might desire, because we do not
10737 # link with -lc, and that would cause any symbols used from libc to
10738 # always be unresolved, which means just about no library would
10739 # ever link correctly. If we're not using GNU ld we use -z text
10740 # though, which does catch some bad symbols but isn't as heavy-handed
10741 # as -z defs.
10742 no_undefined_flag='$wl-z,text'
10743 allow_undefined_flag='$wl-z,nodefs'
10744 archive_cmds_need_lc=no
10745 hardcode_shlibpath_var=no
10746 hardcode_libdir_flag_spec='$wl-R,$libdir'
10747 hardcode_libdir_separator=':'
10748 link_all_deplibs=yes
10749 export_dynamic_flag_spec='$wl-Bexport'
10750 runpath_var='LD_RUN_PATH'
10751
10752 if test yes = "$GCC"; then
10753 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755 else
10756 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10757 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10758 fi
10759 ;;
10760
10761 uts4*)
10762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10763 hardcode_libdir_flag_spec='-L$libdir'
10764 hardcode_shlibpath_var=no
10765 ;;
10766
10767 *)
10768 ld_shlibs=no
10769 ;;
10770 esac
10771
10772 if test sni = "$host_vendor"; then
10773 case $host in
10774 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10775 export_dynamic_flag_spec='$wl-Blargedynsym'
10776 ;;
10777 esac
10778 fi
10779 fi
10780
10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10782 printf "%s\n" "$ld_shlibs" >&6; }
10783 test no = "$ld_shlibs" && can_build_shared=no
10784
10785 with_gnu_ld=$with_gnu_ld
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801 #
10802 # Do we need to explicitly link libc?
10803 #
10804 case "x$archive_cmds_need_lc" in
10805 x|xyes)
10806 # Assume -lc should be added
10807 archive_cmds_need_lc=yes
10808
10809 if test yes,yes = "$GCC,$enable_shared"; then
10810 case $archive_cmds in
10811 *'~'*)
10812 # FIXME: we may have to deal with multi-command sequences.
10813 ;;
10814 '$CC '*)
10815 # Test whether the compiler implicitly links with -lc since on some
10816 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10817 # to ld, don't add -lc before -lgcc.
10818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10819 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10820 if test ${lt_cv_archive_cmds_need_lc+y}
10821 then :
10822 printf %s "(cached) " >&6
10823 else $as_nop
10824 $RM conftest*
10825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10826
10827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10828 (eval $ac_compile) 2>&5
10829 ac_status=$?
10830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10831 test $ac_status = 0; } 2>conftest.err; then
10832 soname=conftest
10833 lib=conftest
10834 libobjs=conftest.$ac_objext
10835 deplibs=
10836 wl=$lt_prog_compiler_wl
10837 pic_flag=$lt_prog_compiler_pic
10838 compiler_flags=-v
10839 linker_flags=-v
10840 verstring=
10841 output_objdir=.
10842 libname=conftest
10843 lt_save_allow_undefined_flag=$allow_undefined_flag
10844 allow_undefined_flag=
10845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10846 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10847 ac_status=$?
10848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10849 test $ac_status = 0; }
10850 then
10851 lt_cv_archive_cmds_need_lc=no
10852 else
10853 lt_cv_archive_cmds_need_lc=yes
10854 fi
10855 allow_undefined_flag=$lt_save_allow_undefined_flag
10856 else
10857 cat conftest.err 1>&5
10858 fi
10859 $RM conftest*
10860
10861 fi
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10863 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10864 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10865 ;;
10866 esac
10867 fi
10868 ;;
10869 esac
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11023 printf %s "checking dynamic linker characteristics... " >&6; }
11024
11025 if test yes = "$GCC"; then
11026 case $host_os in
11027 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11028 *) lt_awk_arg='/^libraries:/' ;;
11029 esac
11030 case $host_os in
11031 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11032 *) lt_sed_strip_eq='s|=/|/|g' ;;
11033 esac
11034 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11035 case $lt_search_path_spec in
11036 *\;*)
11037 # if the path contains ";" then we assume it to be the separator
11038 # otherwise default to the standard path separator (i.e. ":") - it is
11039 # assumed that no part of a normal pathname contains ";" but that should
11040 # okay in the real world where ";" in dirpaths is itself problematic.
11041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11042 ;;
11043 *)
11044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11045 ;;
11046 esac
11047 # Ok, now we have the path, separated by spaces, we can step through it
11048 # and add multilib dir if necessary...
11049 lt_tmp_lt_search_path_spec=
11050 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11051 # ...but if some path component already ends with the multilib dir we assume
11052 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11053 case "$lt_multi_os_dir; $lt_search_path_spec " in
11054 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11055 lt_multi_os_dir=
11056 ;;
11057 esac
11058 for lt_sys_path in $lt_search_path_spec; do
11059 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11061 elif test -n "$lt_multi_os_dir"; then
11062 test -d "$lt_sys_path" && \
11063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11064 fi
11065 done
11066 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11067 BEGIN {RS = " "; FS = "/|\n";} {
11068 lt_foo = "";
11069 lt_count = 0;
11070 for (lt_i = NF; lt_i > 0; lt_i--) {
11071 if ($lt_i != "" && $lt_i != ".") {
11072 if ($lt_i == "..") {
11073 lt_count++;
11074 } else {
11075 if (lt_count == 0) {
11076 lt_foo = "/" $lt_i lt_foo;
11077 } else {
11078 lt_count--;
11079 }
11080 }
11081 }
11082 }
11083 if (lt_foo != "") { lt_freq[lt_foo]++; }
11084 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11085 }'`
11086 # AWK program above erroneously prepends '/' to C:/dos/paths
11087 # for these hosts.
11088 case $host_os in
11089 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11090 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11091 esac
11092 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11093 else
11094 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11095 fi
11096 library_names_spec=
11097 libname_spec='lib$name'
11098 soname_spec=
11099 shrext_cmds=.so
11100 postinstall_cmds=
11101 postuninstall_cmds=
11102 finish_cmds=
11103 finish_eval=
11104 shlibpath_var=
11105 shlibpath_overrides_runpath=unknown
11106 version_type=none
11107 dynamic_linker="$host_os ld.so"
11108 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11109 need_lib_prefix=unknown
11110 hardcode_into_libs=no
11111
11112 # when you set need_version to no, make sure it does not cause -set_version
11113 # flags to be left without arguments
11114 need_version=unknown
11115
11116
11117
11118 case $host_os in
11119 aix3*)
11120 version_type=linux # correct to gnu/linux during the next big refactor
11121 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11122 shlibpath_var=LIBPATH
11123
11124 # AIX 3 has no versioning support, so we append a major version to the name.
11125 soname_spec='$libname$release$shared_ext$major'
11126 ;;
11127
11128 aix[4-9]*)
11129 version_type=linux # correct to gnu/linux during the next big refactor
11130 need_lib_prefix=no
11131 need_version=no
11132 hardcode_into_libs=yes
11133 if test ia64 = "$host_cpu"; then
11134 # AIX 5 supports IA64
11135 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 else
11138 # With GCC up to 2.95.x, collect2 would create an import file
11139 # for dependence libraries. The import file would start with
11140 # the line '#! .'. This would cause the generated library to
11141 # depend on '.', always an invalid library. This was fixed in
11142 # development snapshots of GCC prior to 3.0.
11143 case $host_os in
11144 aix4 | aix4.[01] | aix4.[01].*)
11145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11146 echo ' yes '
11147 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11148 :
11149 else
11150 can_build_shared=no
11151 fi
11152 ;;
11153 esac
11154 # Using Import Files as archive members, it is possible to support
11155 # filename-based versioning of shared library archives on AIX. While
11156 # this would work for both with and without runtime linking, it will
11157 # prevent static linking of such archives. So we do filename-based
11158 # shared library versioning with .so extension only, which is used
11159 # when both runtime linking and shared linking is enabled.
11160 # Unfortunately, runtime linking may impact performance, so we do
11161 # not want this to be the default eventually. Also, we use the
11162 # versioned .so libs for executables only if there is the -brtl
11163 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11164 # To allow for filename-based versioning support, we need to create
11165 # libNAME.so.V as an archive file, containing:
11166 # *) an Import File, referring to the versioned filename of the
11167 # archive as well as the shared archive member, telling the
11168 # bitwidth (32 or 64) of that shared object, and providing the
11169 # list of exported symbols of that shared object, eventually
11170 # decorated with the 'weak' keyword
11171 # *) the shared object with the F_LOADONLY flag set, to really avoid
11172 # it being seen by the linker.
11173 # At run time we better use the real file rather than another symlink,
11174 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11175
11176 case $with_aix_soname,$aix_use_runtimelinking in
11177 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11178 # soname into executable. Probably we can add versioning support to
11179 # collect2, so additional links can be useful in future.
11180 aix,yes) # traditional libtool
11181 dynamic_linker='AIX unversionable lib.so'
11182 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11183 # instead of lib<name>.a to let people know that these are not
11184 # typical AIX shared libraries.
11185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11186 ;;
11187 aix,no) # traditional AIX only
11188 dynamic_linker='AIX lib.a(lib.so.V)'
11189 # We preserve .a as extension for shared libraries through AIX4.2
11190 # and later when we are not doing run time linking.
11191 library_names_spec='$libname$release.a $libname.a'
11192 soname_spec='$libname$release$shared_ext$major'
11193 ;;
11194 svr4,*) # full svr4 only
11195 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11196 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11197 # We do not specify a path in Import Files, so LIBPATH fires.
11198 shlibpath_overrides_runpath=yes
11199 ;;
11200 *,yes) # both, prefer svr4
11201 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11202 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11203 # unpreferred sharedlib libNAME.a needs extra handling
11204 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"'
11205 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"'
11206 # We do not specify a path in Import Files, so LIBPATH fires.
11207 shlibpath_overrides_runpath=yes
11208 ;;
11209 *,no) # both, prefer aix
11210 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11211 library_names_spec='$libname$release.a $libname.a'
11212 soname_spec='$libname$release$shared_ext$major'
11213 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11214 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)'
11215 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"'
11216 ;;
11217 esac
11218 shlibpath_var=LIBPATH
11219 fi
11220 ;;
11221
11222 amigaos*)
11223 case $host_cpu in
11224 powerpc)
11225 # Since July 2007 AmigaOS4 officially supports .so libraries.
11226 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11228 ;;
11229 m68k)
11230 library_names_spec='$libname.ixlibrary $libname.a'
11231 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11232 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'
11233 ;;
11234 esac
11235 ;;
11236
11237 beos*)
11238 library_names_spec='$libname$shared_ext'
11239 dynamic_linker="$host_os ld.so"
11240 shlibpath_var=LIBRARY_PATH
11241 ;;
11242
11243 bsdi[45]*)
11244 version_type=linux # correct to gnu/linux during the next big refactor
11245 need_version=no
11246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11247 soname_spec='$libname$release$shared_ext$major'
11248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11252 # the default ld.so.conf also contains /usr/contrib/lib and
11253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11254 # libtool to hard-code these into programs
11255 ;;
11256
11257 cygwin* | mingw* | pw32* | cegcc*)
11258 version_type=windows
11259 shrext_cmds=.dll
11260 need_version=no
11261 need_lib_prefix=no
11262
11263 case $GCC,$cc_basename in
11264 yes,*)
11265 # gcc
11266 library_names_spec='$libname.dll.a'
11267 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11268 postinstall_cmds='base_file=`basename \$file`~
11269 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11270 dldir=$destdir/`dirname \$dlpath`~
11271 test -d \$dldir || mkdir -p \$dldir~
11272 $install_prog $dir/$dlname \$dldir/$dlname~
11273 chmod a+x \$dldir/$dlname~
11274 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11275 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11276 fi'
11277 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11278 dlpath=$dir/\$dldll~
11279 $RM \$dlpath'
11280 shlibpath_overrides_runpath=yes
11281
11282 case $host_os in
11283 cygwin*)
11284 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11285 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11286
11287 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11288 ;;
11289 mingw* | cegcc*)
11290 # MinGW DLLs use traditional 'lib' prefix
11291 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11292 ;;
11293 pw32*)
11294 # pw32 DLLs use 'pw' prefix rather than 'lib'
11295 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11296 ;;
11297 esac
11298 dynamic_linker='Win32 ld.exe'
11299 ;;
11300
11301 *,cl* | *,icl*)
11302 # Native MSVC or ICC
11303 libname_spec='$name'
11304 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11305 library_names_spec='$libname.dll.lib'
11306
11307 case $build_os in
11308 mingw*)
11309 sys_lib_search_path_spec=
11310 lt_save_ifs=$IFS
11311 IFS=';'
11312 for lt_path in $LIB
11313 do
11314 IFS=$lt_save_ifs
11315 # Let DOS variable expansion print the short 8.3 style file name.
11316 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11317 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11318 done
11319 IFS=$lt_save_ifs
11320 # Convert to MSYS style.
11321 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11322 ;;
11323 cygwin*)
11324 # Convert to unix form, then to dos form, then back to unix form
11325 # but this time dos style (no spaces!) so that the unix form looks
11326 # like /cygdrive/c/PROGRA~1:/cygdr...
11327 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11328 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11329 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11330 ;;
11331 *)
11332 sys_lib_search_path_spec=$LIB
11333 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11334 # It is most probably a Windows format PATH.
11335 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11336 else
11337 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11338 fi
11339 # FIXME: find the short name or the path components, as spaces are
11340 # common. (e.g. "Program Files" -> "PROGRA~1")
11341 ;;
11342 esac
11343
11344 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11345 postinstall_cmds='base_file=`basename \$file`~
11346 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11347 dldir=$destdir/`dirname \$dlpath`~
11348 test -d \$dldir || mkdir -p \$dldir~
11349 $install_prog $dir/$dlname \$dldir/$dlname'
11350 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11351 dlpath=$dir/\$dldll~
11352 $RM \$dlpath'
11353 shlibpath_overrides_runpath=yes
11354 dynamic_linker='Win32 link.exe'
11355 ;;
11356
11357 *)
11358 # Assume MSVC and ICC wrapper
11359 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11360 dynamic_linker='Win32 ld.exe'
11361 ;;
11362 esac
11363 # FIXME: first we should search . and the directory the executable is in
11364 shlibpath_var=PATH
11365 ;;
11366
11367 darwin* | rhapsody*)
11368 dynamic_linker="$host_os dyld"
11369 version_type=darwin
11370 need_lib_prefix=no
11371 need_version=no
11372 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11373 soname_spec='$libname$release$major$shared_ext'
11374 shlibpath_overrides_runpath=yes
11375 shlibpath_var=DYLD_LIBRARY_PATH
11376 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11377
11378 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11379 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11380 ;;
11381
11382 dgux*)
11383 version_type=linux # correct to gnu/linux during the next big refactor
11384 need_lib_prefix=no
11385 need_version=no
11386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11387 soname_spec='$libname$release$shared_ext$major'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 ;;
11390
11391 freebsd* | dragonfly* | midnightbsd*)
11392 # DragonFly does not have aout. When/if they implement a new
11393 # versioning mechanism, adjust this.
11394 if test -x /usr/bin/objformat; then
11395 objformat=`/usr/bin/objformat`
11396 else
11397 case $host_os in
11398 freebsd[23].*) objformat=aout ;;
11399 *) objformat=elf ;;
11400 esac
11401 fi
11402 # Handle Gentoo/FreeBSD as it was Linux
11403 case $host_vendor in
11404 gentoo)
11405 version_type=linux ;;
11406 *)
11407 version_type=freebsd-$objformat ;;
11408 esac
11409
11410 case $version_type in
11411 freebsd-elf*)
11412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11413 soname_spec='$libname$release$shared_ext$major'
11414 need_version=no
11415 need_lib_prefix=no
11416 ;;
11417 freebsd-*)
11418 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11419 need_version=yes
11420 ;;
11421 linux)
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 need_lib_prefix=no
11425 need_version=no
11426 ;;
11427 esac
11428 shlibpath_var=LD_LIBRARY_PATH
11429 case $host_os in
11430 freebsd2.*)
11431 shlibpath_overrides_runpath=yes
11432 ;;
11433 freebsd3.[01]* | freebsdelf3.[01]*)
11434 shlibpath_overrides_runpath=yes
11435 hardcode_into_libs=yes
11436 ;;
11437 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11438 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11439 shlibpath_overrides_runpath=no
11440 hardcode_into_libs=yes
11441 ;;
11442 *) # from 4.6 on, and DragonFly
11443 shlibpath_overrides_runpath=yes
11444 hardcode_into_libs=yes
11445 ;;
11446 esac
11447 ;;
11448
11449 haiku*)
11450 version_type=linux # correct to gnu/linux during the next big refactor
11451 need_lib_prefix=no
11452 need_version=no
11453 dynamic_linker="$host_os runtime_loader"
11454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11455 soname_spec='$libname$release$shared_ext$major'
11456 shlibpath_var=LIBRARY_PATH
11457 shlibpath_overrides_runpath=no
11458 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11459 hardcode_into_libs=yes
11460 ;;
11461
11462 hpux9* | hpux10* | hpux11*)
11463 # Give a soname corresponding to the major version so that dld.sl refuses to
11464 # link against other versions.
11465 version_type=sunos
11466 need_lib_prefix=no
11467 need_version=no
11468 case $host_cpu in
11469 ia64*)
11470 shrext_cmds='.so'
11471 hardcode_into_libs=yes
11472 dynamic_linker="$host_os dld.so"
11473 shlibpath_var=LD_LIBRARY_PATH
11474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476 soname_spec='$libname$release$shared_ext$major'
11477 if test 32 = "$HPUX_IA64_MODE"; then
11478 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11479 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11480 else
11481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11482 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11483 fi
11484 ;;
11485 hppa*64*)
11486 shrext_cmds='.sl'
11487 hardcode_into_libs=yes
11488 dynamic_linker="$host_os dld.sl"
11489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11492 soname_spec='$libname$release$shared_ext$major'
11493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11495 ;;
11496 *)
11497 shrext_cmds='.sl'
11498 dynamic_linker="$host_os dld.sl"
11499 shlibpath_var=SHLIB_PATH
11500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11502 soname_spec='$libname$release$shared_ext$major'
11503 ;;
11504 esac
11505 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11506 postinstall_cmds='chmod 555 $lib'
11507 # or fails outright, so override atomically:
11508 install_override_mode=555
11509 ;;
11510
11511 interix[3-9]*)
11512 version_type=linux # correct to gnu/linux during the next big refactor
11513 need_lib_prefix=no
11514 need_version=no
11515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11516 soname_spec='$libname$release$shared_ext$major'
11517 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=no
11520 hardcode_into_libs=yes
11521 ;;
11522
11523 irix5* | irix6* | nonstopux*)
11524 case $host_os in
11525 nonstopux*) version_type=nonstopux ;;
11526 *)
11527 if test yes = "$lt_cv_prog_gnu_ld"; then
11528 version_type=linux # correct to gnu/linux during the next big refactor
11529 else
11530 version_type=irix
11531 fi ;;
11532 esac
11533 need_lib_prefix=no
11534 need_version=no
11535 soname_spec='$libname$release$shared_ext$major'
11536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11537 case $host_os in
11538 irix5* | nonstopux*)
11539 libsuff= shlibsuff=
11540 ;;
11541 *)
11542 case $LD in # libtool.m4 will add one of these switches to LD
11543 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11544 libsuff= shlibsuff= libmagic=32-bit;;
11545 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11546 libsuff=32 shlibsuff=N32 libmagic=N32;;
11547 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11548 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11549 *) libsuff= shlibsuff= libmagic=never-match;;
11550 esac
11551 ;;
11552 esac
11553 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11554 shlibpath_overrides_runpath=no
11555 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11556 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11557 hardcode_into_libs=yes
11558 ;;
11559
11560 # No shared lib support for Linux oldld, aout, or coff.
11561 linux*oldld* | linux*aout* | linux*coff*)
11562 dynamic_linker=no
11563 ;;
11564
11565 linux*android*)
11566 version_type=none # Android doesn't support versioned libraries.
11567 need_lib_prefix=no
11568 need_version=no
11569 library_names_spec='$libname$release$shared_ext'
11570 soname_spec='$libname$release$shared_ext'
11571 finish_cmds=
11572 shlibpath_var=LD_LIBRARY_PATH
11573 shlibpath_overrides_runpath=yes
11574
11575 # This implies no fast_install, which is unacceptable.
11576 # Some rework will be needed to allow for fast_install
11577 # before this can be enabled.
11578 hardcode_into_libs=yes
11579
11580 dynamic_linker='Android linker'
11581 # Don't embed -rpath directories since the linker doesn't support them.
11582 hardcode_libdir_flag_spec='-L$libdir'
11583 ;;
11584
11585 # This must be glibc/ELF.
11586 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11587 version_type=linux # correct to gnu/linux during the next big refactor
11588 need_lib_prefix=no
11589 need_version=no
11590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11591 soname_spec='$libname$release$shared_ext$major'
11592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 shlibpath_overrides_runpath=no
11595
11596 # Some binutils ld are patched to set DT_RUNPATH
11597 if test ${lt_cv_shlibpath_overrides_runpath+y}
11598 then :
11599 printf %s "(cached) " >&6
11600 else $as_nop
11601 lt_cv_shlibpath_overrides_runpath=no
11602 save_LDFLAGS=$LDFLAGS
11603 save_libdir=$libdir
11604 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11605 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608
11609 int
11610 main (void)
11611 {
11612
11613 ;
11614 return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_link "$LINENO"
11618 then :
11619 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11620 then :
11621 lt_cv_shlibpath_overrides_runpath=yes
11622 fi
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LDFLAGS=$save_LDFLAGS
11627 libdir=$save_libdir
11628
11629 fi
11630
11631 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11632
11633 # This implies no fast_install, which is unacceptable.
11634 # Some rework will be needed to allow for fast_install
11635 # before this can be enabled.
11636 hardcode_into_libs=yes
11637
11638 # Ideally, we could use ldconfig to report *all* directores which are
11639 # searched for libraries, however this is still not possible. Aside from not
11640 # being certain /sbin/ldconfig is available, command
11641 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11642 # even though it is searched at run-time. Try to do the best guess by
11643 # appending ld.so.conf contents (and includes) to the search path.
11644 if test -f /etc/ld.so.conf; then
11645 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' ' '`
11646 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11647 fi
11648
11649 # We used to test for /lib/ld.so.1 and disable shared libraries on
11650 # powerpc, because MkLinux only supported shared libraries with the
11651 # GNU dynamic linker. Since this was broken with cross compilers,
11652 # most powerpc-linux boxes support dynamic linking these days and
11653 # people can always --disable-shared, the test was removed, and we
11654 # assume the GNU/Linux dynamic linker is in use.
11655 dynamic_linker='GNU/Linux ld.so'
11656 ;;
11657
11658 netbsd*)
11659 version_type=sunos
11660 need_lib_prefix=no
11661 need_version=no
11662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11663 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11665 dynamic_linker='NetBSD (a.out) ld.so'
11666 else
11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11668 soname_spec='$libname$release$shared_ext$major'
11669 dynamic_linker='NetBSD ld.elf_so'
11670 fi
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=yes
11673 hardcode_into_libs=yes
11674 ;;
11675
11676 newsos6)
11677 version_type=linux # correct to gnu/linux during the next big refactor
11678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11679 shlibpath_var=LD_LIBRARY_PATH
11680 shlibpath_overrides_runpath=yes
11681 ;;
11682
11683 *nto* | *qnx*)
11684 version_type=qnx
11685 need_lib_prefix=no
11686 need_version=no
11687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11688 soname_spec='$libname$release$shared_ext$major'
11689 shlibpath_var=LD_LIBRARY_PATH
11690 shlibpath_overrides_runpath=no
11691 hardcode_into_libs=yes
11692 dynamic_linker='ldqnx.so'
11693 ;;
11694
11695 openbsd* | bitrig*)
11696 version_type=sunos
11697 sys_lib_dlsearch_path_spec=/usr/lib
11698 need_lib_prefix=no
11699 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11700 need_version=no
11701 else
11702 need_version=yes
11703 fi
11704 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath=yes
11708 ;;
11709
11710 os2*)
11711 libname_spec='$name'
11712 version_type=windows
11713 shrext_cmds=.dll
11714 need_version=no
11715 need_lib_prefix=no
11716 # OS/2 can only load a DLL with a base name of 8 characters or less.
11717 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11718 v=$($ECHO $release$versuffix | tr -d .-);
11719 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11720 $ECHO $n$v`$shared_ext'
11721 library_names_spec='${libname}_dll.$libext'
11722 dynamic_linker='OS/2 ld.exe'
11723 shlibpath_var=BEGINLIBPATH
11724 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11726 postinstall_cmds='base_file=`basename \$file`~
11727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11728 dldir=$destdir/`dirname \$dlpath`~
11729 test -d \$dldir || mkdir -p \$dldir~
11730 $install_prog $dir/$dlname \$dldir/$dlname~
11731 chmod a+x \$dldir/$dlname~
11732 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11733 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11734 fi'
11735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11736 dlpath=$dir/\$dldll~
11737 $RM \$dlpath'
11738 ;;
11739
11740 osf3* | osf4* | osf5*)
11741 version_type=osf
11742 need_lib_prefix=no
11743 need_version=no
11744 soname_spec='$libname$release$shared_ext$major'
11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11746 shlibpath_var=LD_LIBRARY_PATH
11747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11749 ;;
11750
11751 rdos*)
11752 dynamic_linker=no
11753 ;;
11754
11755 solaris*)
11756 version_type=linux # correct to gnu/linux during the next big refactor
11757 need_lib_prefix=no
11758 need_version=no
11759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11760 soname_spec='$libname$release$shared_ext$major'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=yes
11763 hardcode_into_libs=yes
11764 # ldd complains unless libraries are executable
11765 postinstall_cmds='chmod +x $lib'
11766 ;;
11767
11768 sunos4*)
11769 version_type=sunos
11770 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11771 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 shlibpath_overrides_runpath=yes
11774 if test yes = "$with_gnu_ld"; then
11775 need_lib_prefix=no
11776 fi
11777 need_version=yes
11778 ;;
11779
11780 sysv4 | sysv4.3*)
11781 version_type=linux # correct to gnu/linux during the next big refactor
11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783 soname_spec='$libname$release$shared_ext$major'
11784 shlibpath_var=LD_LIBRARY_PATH
11785 case $host_vendor in
11786 sni)
11787 shlibpath_overrides_runpath=no
11788 need_lib_prefix=no
11789 runpath_var=LD_RUN_PATH
11790 ;;
11791 siemens)
11792 need_lib_prefix=no
11793 ;;
11794 motorola)
11795 need_lib_prefix=no
11796 need_version=no
11797 shlibpath_overrides_runpath=no
11798 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11799 ;;
11800 esac
11801 ;;
11802
11803 sysv4*MP*)
11804 if test -d /usr/nec; then
11805 version_type=linux # correct to gnu/linux during the next big refactor
11806 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11807 soname_spec='$libname$shared_ext.$major'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 fi
11810 ;;
11811
11812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11813 version_type=sco
11814 need_lib_prefix=no
11815 need_version=no
11816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11817 soname_spec='$libname$release$shared_ext$major'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 shlibpath_overrides_runpath=yes
11820 hardcode_into_libs=yes
11821 if test yes = "$with_gnu_ld"; then
11822 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11823 else
11824 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11825 case $host_os in
11826 sco3.2v5*)
11827 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11828 ;;
11829 esac
11830 fi
11831 sys_lib_dlsearch_path_spec='/usr/lib'
11832 ;;
11833
11834 tpf*)
11835 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11836 version_type=linux # correct to gnu/linux during the next big refactor
11837 need_lib_prefix=no
11838 need_version=no
11839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11840 shlibpath_var=LD_LIBRARY_PATH
11841 shlibpath_overrides_runpath=no
11842 hardcode_into_libs=yes
11843 ;;
11844
11845 uts4*)
11846 version_type=linux # correct to gnu/linux during the next big refactor
11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11848 soname_spec='$libname$release$shared_ext$major'
11849 shlibpath_var=LD_LIBRARY_PATH
11850 ;;
11851
11852 *)
11853 dynamic_linker=no
11854 ;;
11855 esac
11856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11857 printf "%s\n" "$dynamic_linker" >&6; }
11858 test no = "$dynamic_linker" && can_build_shared=no
11859
11860 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11861 if test yes = "$GCC"; then
11862 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11863 fi
11864
11865 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11866 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11867 fi
11868
11869 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11870 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11871 fi
11872
11873 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11874 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11875
11876 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11877 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11878
11879 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11880 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11979 printf %s "checking how to hardcode library paths into programs... " >&6; }
11980 hardcode_action=
11981 if test -n "$hardcode_libdir_flag_spec" ||
11982 test -n "$runpath_var" ||
11983 test yes = "$hardcode_automatic"; then
11984
11985 # We can hardcode non-existent directories.
11986 if test no != "$hardcode_direct" &&
11987 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11988 # have to relink, otherwise we might link with an installed library
11989 # when we should be linking with a yet-to-be-installed one
11990 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11991 test no != "$hardcode_minus_L"; then
11992 # Linking always hardcodes the temporary library directory.
11993 hardcode_action=relink
11994 else
11995 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11996 hardcode_action=immediate
11997 fi
11998 else
11999 # We cannot hardcode anything, or else we can only hardcode existing
12000 # directories.
12001 hardcode_action=unsupported
12002 fi
12003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12004 printf "%s\n" "$hardcode_action" >&6; }
12005
12006 if test relink = "$hardcode_action" ||
12007 test yes = "$inherit_rpath"; then
12008 # Fast installation is not supported
12009 enable_fast_install=no
12010 elif test yes = "$shlibpath_overrides_runpath" ||
12011 test no = "$enable_shared"; then
12012 # Fast installation is not necessary
12013 enable_fast_install=needless
12014 fi
12015
12016
12017
12018
12019
12020
12021 if test yes != "$enable_dlopen"; then
12022 enable_dlopen=unknown
12023 enable_dlopen_self=unknown
12024 enable_dlopen_self_static=unknown
12025 else
12026 lt_cv_dlopen=no
12027 lt_cv_dlopen_libs=
12028
12029 case $host_os in
12030 beos*)
12031 lt_cv_dlopen=load_add_on
12032 lt_cv_dlopen_libs=
12033 lt_cv_dlopen_self=yes
12034 ;;
12035
12036 mingw* | pw32* | cegcc*)
12037 lt_cv_dlopen=LoadLibrary
12038 lt_cv_dlopen_libs=
12039 ;;
12040
12041 cygwin*)
12042 lt_cv_dlopen=dlopen
12043 lt_cv_dlopen_libs=
12044 ;;
12045
12046 darwin*)
12047 # if libdl is installed we need to link against it
12048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12049 printf %s "checking for dlopen in -ldl... " >&6; }
12050 if test ${ac_cv_lib_dl_dlopen+y}
12051 then :
12052 printf %s "(cached) " >&6
12053 else $as_nop
12054 ac_check_lib_save_LIBS=$LIBS
12055 LIBS="-ldl $LIBS"
12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12058
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply.
12062 The 'extern "C"' is for builds by C++ compilers;
12063 although this is not generally supported in C code supporting it here
12064 has little cost and some practical benefit (sr 110532). */
12065 #ifdef __cplusplus
12066 extern "C"
12067 #endif
12068 char dlopen (void);
12069 int
12070 main (void)
12071 {
12072 return dlopen ();
12073 ;
12074 return 0;
12075 }
12076 _ACEOF
12077 if ac_fn_c_try_link "$LINENO"
12078 then :
12079 ac_cv_lib_dl_dlopen=yes
12080 else $as_nop
12081 ac_cv_lib_dl_dlopen=no
12082 fi
12083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12086 fi
12087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12088 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12089 if test "x$ac_cv_lib_dl_dlopen" = xyes
12090 then :
12091 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12092 else $as_nop
12093
12094 lt_cv_dlopen=dyld
12095 lt_cv_dlopen_libs=
12096 lt_cv_dlopen_self=yes
12097
12098 fi
12099
12100 ;;
12101
12102 tpf*)
12103 # Don't try to run any link tests for TPF. We know it's impossible
12104 # because TPF is a cross-compiler, and we know how we open DSOs.
12105 lt_cv_dlopen=dlopen
12106 lt_cv_dlopen_libs=
12107 lt_cv_dlopen_self=no
12108 ;;
12109
12110 *)
12111 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12112 if test "x$ac_cv_func_shl_load" = xyes
12113 then :
12114 lt_cv_dlopen=shl_load
12115 else $as_nop
12116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12117 printf %s "checking for shl_load in -ldld... " >&6; }
12118 if test ${ac_cv_lib_dld_shl_load+y}
12119 then :
12120 printf %s "(cached) " >&6
12121 else $as_nop
12122 ac_check_lib_save_LIBS=$LIBS
12123 LIBS="-ldld $LIBS"
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126
12127 /* Override any GCC internal prototype to avoid an error.
12128 Use char because int might match the return type of a GCC
12129 builtin and then its argument prototype would still apply.
12130 The 'extern "C"' is for builds by C++ compilers;
12131 although this is not generally supported in C code supporting it here
12132 has little cost and some practical benefit (sr 110532). */
12133 #ifdef __cplusplus
12134 extern "C"
12135 #endif
12136 char shl_load (void);
12137 int
12138 main (void)
12139 {
12140 return shl_load ();
12141 ;
12142 return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_link "$LINENO"
12146 then :
12147 ac_cv_lib_dld_shl_load=yes
12148 else $as_nop
12149 ac_cv_lib_dld_shl_load=no
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12152 conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12154 fi
12155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12156 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12157 if test "x$ac_cv_lib_dld_shl_load" = xyes
12158 then :
12159 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12160 else $as_nop
12161 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12162 if test "x$ac_cv_func_dlopen" = xyes
12163 then :
12164 lt_cv_dlopen=dlopen
12165 else $as_nop
12166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12167 printf %s "checking for dlopen in -ldl... " >&6; }
12168 if test ${ac_cv_lib_dl_dlopen+y}
12169 then :
12170 printf %s "(cached) " >&6
12171 else $as_nop
12172 ac_check_lib_save_LIBS=$LIBS
12173 LIBS="-ldl $LIBS"
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply.
12180 The 'extern "C"' is for builds by C++ compilers;
12181 although this is not generally supported in C code supporting it here
12182 has little cost and some practical benefit (sr 110532). */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char dlopen (void);
12187 int
12188 main (void)
12189 {
12190 return dlopen ();
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_link "$LINENO"
12196 then :
12197 ac_cv_lib_dl_dlopen=yes
12198 else $as_nop
12199 ac_cv_lib_dl_dlopen=no
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12204 fi
12205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12206 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12207 if test "x$ac_cv_lib_dl_dlopen" = xyes
12208 then :
12209 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12210 else $as_nop
12211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12212 printf %s "checking for dlopen in -lsvld... " >&6; }
12213 if test ${ac_cv_lib_svld_dlopen+y}
12214 then :
12215 printf %s "(cached) " >&6
12216 else $as_nop
12217 ac_check_lib_save_LIBS=$LIBS
12218 LIBS="-lsvld $LIBS"
12219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220 /* end confdefs.h. */
12221
12222 /* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply.
12225 The 'extern "C"' is for builds by C++ compilers;
12226 although this is not generally supported in C code supporting it here
12227 has little cost and some practical benefit (sr 110532). */
12228 #ifdef __cplusplus
12229 extern "C"
12230 #endif
12231 char dlopen (void);
12232 int
12233 main (void)
12234 {
12235 return dlopen ();
12236 ;
12237 return 0;
12238 }
12239 _ACEOF
12240 if ac_fn_c_try_link "$LINENO"
12241 then :
12242 ac_cv_lib_svld_dlopen=yes
12243 else $as_nop
12244 ac_cv_lib_svld_dlopen=no
12245 fi
12246 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12251 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12252 if test "x$ac_cv_lib_svld_dlopen" = xyes
12253 then :
12254 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12255 else $as_nop
12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12257 printf %s "checking for dld_link in -ldld... " >&6; }
12258 if test ${ac_cv_lib_dld_dld_link+y}
12259 then :
12260 printf %s "(cached) " >&6
12261 else $as_nop
12262 ac_check_lib_save_LIBS=$LIBS
12263 LIBS="-ldld $LIBS"
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12266
12267 /* Override any GCC internal prototype to avoid an error.
12268 Use char because int might match the return type of a GCC
12269 builtin and then its argument prototype would still apply.
12270 The 'extern "C"' is for builds by C++ compilers;
12271 although this is not generally supported in C code supporting it here
12272 has little cost and some practical benefit (sr 110532). */
12273 #ifdef __cplusplus
12274 extern "C"
12275 #endif
12276 char dld_link (void);
12277 int
12278 main (void)
12279 {
12280 return dld_link ();
12281 ;
12282 return 0;
12283 }
12284 _ACEOF
12285 if ac_fn_c_try_link "$LINENO"
12286 then :
12287 ac_cv_lib_dld_dld_link=yes
12288 else $as_nop
12289 ac_cv_lib_dld_dld_link=no
12290 fi
12291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12294 fi
12295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12296 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12297 if test "x$ac_cv_lib_dld_dld_link" = xyes
12298 then :
12299 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12300 fi
12301
12302
12303 fi
12304
12305
12306 fi
12307
12308
12309 fi
12310
12311
12312 fi
12313
12314
12315 fi
12316
12317 ;;
12318 esac
12319
12320 if test no = "$lt_cv_dlopen"; then
12321 enable_dlopen=no
12322 else
12323 enable_dlopen=yes
12324 fi
12325
12326 case $lt_cv_dlopen in
12327 dlopen)
12328 save_CPPFLAGS=$CPPFLAGS
12329 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12330
12331 save_LDFLAGS=$LDFLAGS
12332 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12333
12334 save_LIBS=$LIBS
12335 LIBS="$lt_cv_dlopen_libs $LIBS"
12336
12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12338 printf %s "checking whether a program can dlopen itself... " >&6; }
12339 if test ${lt_cv_dlopen_self+y}
12340 then :
12341 printf %s "(cached) " >&6
12342 else $as_nop
12343 if test yes = "$cross_compiling"; then :
12344 lt_cv_dlopen_self=cross
12345 else
12346 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12347 lt_status=$lt_dlunknown
12348 cat > conftest.$ac_ext <<_LT_EOF
12349 #line $LINENO "configure"
12350 #include "confdefs.h"
12351
12352 #if HAVE_DLFCN_H
12353 #include <dlfcn.h>
12354 #endif
12355
12356 #include <stdio.h>
12357
12358 #ifdef RTLD_GLOBAL
12359 # define LT_DLGLOBAL RTLD_GLOBAL
12360 #else
12361 # ifdef DL_GLOBAL
12362 # define LT_DLGLOBAL DL_GLOBAL
12363 # else
12364 # define LT_DLGLOBAL 0
12365 # endif
12366 #endif
12367
12368 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12369 find out it does not work in some platform. */
12370 #ifndef LT_DLLAZY_OR_NOW
12371 # ifdef RTLD_LAZY
12372 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12373 # else
12374 # ifdef DL_LAZY
12375 # define LT_DLLAZY_OR_NOW DL_LAZY
12376 # else
12377 # ifdef RTLD_NOW
12378 # define LT_DLLAZY_OR_NOW RTLD_NOW
12379 # else
12380 # ifdef DL_NOW
12381 # define LT_DLLAZY_OR_NOW DL_NOW
12382 # else
12383 # define LT_DLLAZY_OR_NOW 0
12384 # endif
12385 # endif
12386 # endif
12387 # endif
12388 #endif
12389
12390 /* When -fvisibility=hidden is used, assume the code has been annotated
12391 correspondingly for the symbols needed. */
12392 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12393 int fnord () __attribute__((visibility("default")));
12394 #endif
12395
12396 int fnord () { return 42; }
12397 int main ()
12398 {
12399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12400 int status = $lt_dlunknown;
12401
12402 if (self)
12403 {
12404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12405 else
12406 {
12407 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12408 else puts (dlerror ());
12409 }
12410 /* dlclose (self); */
12411 }
12412 else
12413 puts (dlerror ());
12414
12415 return status;
12416 }
12417 _LT_EOF
12418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12419 (eval $ac_link) 2>&5
12420 ac_status=$?
12421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12422 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12423 (./conftest; exit; ) >&5 2>/dev/null
12424 lt_status=$?
12425 case x$lt_status in
12426 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12427 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12428 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12429 esac
12430 else :
12431 # compilation failed
12432 lt_cv_dlopen_self=no
12433 fi
12434 fi
12435 rm -fr conftest*
12436
12437
12438 fi
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12440 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12441
12442 if test yes = "$lt_cv_dlopen_self"; then
12443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12445 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12446 if test ${lt_cv_dlopen_self_static+y}
12447 then :
12448 printf %s "(cached) " >&6
12449 else $as_nop
12450 if test yes = "$cross_compiling"; then :
12451 lt_cv_dlopen_self_static=cross
12452 else
12453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12454 lt_status=$lt_dlunknown
12455 cat > conftest.$ac_ext <<_LT_EOF
12456 #line $LINENO "configure"
12457 #include "confdefs.h"
12458
12459 #if HAVE_DLFCN_H
12460 #include <dlfcn.h>
12461 #endif
12462
12463 #include <stdio.h>
12464
12465 #ifdef RTLD_GLOBAL
12466 # define LT_DLGLOBAL RTLD_GLOBAL
12467 #else
12468 # ifdef DL_GLOBAL
12469 # define LT_DLGLOBAL DL_GLOBAL
12470 # else
12471 # define LT_DLGLOBAL 0
12472 # endif
12473 #endif
12474
12475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12476 find out it does not work in some platform. */
12477 #ifndef LT_DLLAZY_OR_NOW
12478 # ifdef RTLD_LAZY
12479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12480 # else
12481 # ifdef DL_LAZY
12482 # define LT_DLLAZY_OR_NOW DL_LAZY
12483 # else
12484 # ifdef RTLD_NOW
12485 # define LT_DLLAZY_OR_NOW RTLD_NOW
12486 # else
12487 # ifdef DL_NOW
12488 # define LT_DLLAZY_OR_NOW DL_NOW
12489 # else
12490 # define LT_DLLAZY_OR_NOW 0
12491 # endif
12492 # endif
12493 # endif
12494 # endif
12495 #endif
12496
12497 /* When -fvisibility=hidden is used, assume the code has been annotated
12498 correspondingly for the symbols needed. */
12499 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12500 int fnord () __attribute__((visibility("default")));
12501 #endif
12502
12503 int fnord () { return 42; }
12504 int main ()
12505 {
12506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12507 int status = $lt_dlunknown;
12508
12509 if (self)
12510 {
12511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12512 else
12513 {
12514 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12515 else puts (dlerror ());
12516 }
12517 /* dlclose (self); */
12518 }
12519 else
12520 puts (dlerror ());
12521
12522 return status;
12523 }
12524 _LT_EOF
12525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12526 (eval $ac_link) 2>&5
12527 ac_status=$?
12528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12529 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12530 (./conftest; exit; ) >&5 2>/dev/null
12531 lt_status=$?
12532 case x$lt_status in
12533 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12534 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12535 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12536 esac
12537 else :
12538 # compilation failed
12539 lt_cv_dlopen_self_static=no
12540 fi
12541 fi
12542 rm -fr conftest*
12543
12544
12545 fi
12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12547 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12548 fi
12549
12550 CPPFLAGS=$save_CPPFLAGS
12551 LDFLAGS=$save_LDFLAGS
12552 LIBS=$save_LIBS
12553 ;;
12554 esac
12555
12556 case $lt_cv_dlopen_self in
12557 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12558 *) enable_dlopen_self=unknown ;;
12559 esac
12560
12561 case $lt_cv_dlopen_self_static in
12562 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12563 *) enable_dlopen_self_static=unknown ;;
12564 esac
12565 fi
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583 striplib=
12584 old_striplib=
12585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12586 printf %s "checking whether stripping libraries is possible... " >&6; }
12587 if test -z "$STRIP"; then
12588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 printf "%s\n" "no" >&6; }
12590 else
12591 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12592 old_striplib="$STRIP --strip-debug"
12593 striplib="$STRIP --strip-unneeded"
12594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12595 printf "%s\n" "yes" >&6; }
12596 else
12597 case $host_os in
12598 darwin*)
12599 # FIXME - insert some real tests, host_os isn't really good enough
12600 striplib="$STRIP -x"
12601 old_striplib="$STRIP -S"
12602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12603 printf "%s\n" "yes" >&6; }
12604 ;;
12605 freebsd*)
12606 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12607 old_striplib="$STRIP --strip-debug"
12608 striplib="$STRIP --strip-unneeded"
12609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12610 printf "%s\n" "yes" >&6; }
12611 else
12612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 printf "%s\n" "no" >&6; }
12614 fi
12615 ;;
12616 *)
12617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 printf "%s\n" "no" >&6; }
12619 ;;
12620 esac
12621 fi
12622 fi
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635 # Report what library types will actually be built
12636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12637 printf %s "checking if libtool supports shared libraries... " >&6; }
12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12639 printf "%s\n" "$can_build_shared" >&6; }
12640
12641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12642 printf %s "checking whether to build shared libraries... " >&6; }
12643 test no = "$can_build_shared" && enable_shared=no
12644
12645 # On AIX, shared libraries and static libraries use the same namespace, and
12646 # are all built from PIC.
12647 case $host_os in
12648 aix3*)
12649 test yes = "$enable_shared" && enable_static=no
12650 if test -n "$RANLIB"; then
12651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12652 postinstall_cmds='$RANLIB $lib'
12653 fi
12654 ;;
12655
12656 aix[4-9]*)
12657 if test ia64 != "$host_cpu"; then
12658 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12659 yes,aix,yes) ;; # shared object as lib.so file only
12660 yes,svr4,*) ;; # shared object as lib.so archive member only
12661 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12662 esac
12663 fi
12664 ;;
12665 esac
12666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12667 printf "%s\n" "$enable_shared" >&6; }
12668
12669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12670 printf %s "checking whether to build static libraries... " >&6; }
12671 # Make sure either enable_shared or enable_static is yes.
12672 test yes = "$enable_shared" || enable_static=yes
12673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12674 printf "%s\n" "$enable_static" >&6; }
12675
12676
12677
12678
12679 fi
12680 ac_ext=c
12681 ac_cpp='$CPP $CPPFLAGS'
12682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12685
12686 CC=$lt_save_CC
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702 ac_config_commands="$ac_config_commands libtool"
12703
12704
12705
12706
12707 # Only expand once:
12708
12709
12710
12711 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12724 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12725 if test ${ac_cv_c_undeclared_builtin_options+y}
12726 then :
12727 printf %s "(cached) " >&6
12728 else $as_nop
12729 ac_save_CFLAGS=$CFLAGS
12730 ac_cv_c_undeclared_builtin_options='cannot detect'
12731 for ac_arg in '' -fno-builtin; do
12732 CFLAGS="$ac_save_CFLAGS $ac_arg"
12733 # This test program should *not* compile successfully.
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735 /* end confdefs.h. */
12736
12737 int
12738 main (void)
12739 {
12740 (void) strchr;
12741 ;
12742 return 0;
12743 }
12744 _ACEOF
12745 if ac_fn_c_try_compile "$LINENO"
12746 then :
12747
12748 else $as_nop
12749 # This test program should compile successfully.
12750 # No library function is consistently available on
12751 # freestanding implementations, so test against a dummy
12752 # declaration. Include always-available headers on the
12753 # off chance that they somehow elicit warnings.
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12756 #include <float.h>
12757 #include <limits.h>
12758 #include <stdarg.h>
12759 #include <stddef.h>
12760 extern void ac_decl (int, char *);
12761
12762 int
12763 main (void)
12764 {
12765 (void) ac_decl (0, (char *) 0);
12766 (void) ac_decl;
12767
12768 ;
12769 return 0;
12770 }
12771 _ACEOF
12772 if ac_fn_c_try_compile "$LINENO"
12773 then :
12774 if test x"$ac_arg" = x
12775 then :
12776 ac_cv_c_undeclared_builtin_options='none needed'
12777 else $as_nop
12778 ac_cv_c_undeclared_builtin_options=$ac_arg
12779 fi
12780 break
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12783 fi
12784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12785 done
12786 CFLAGS=$ac_save_CFLAGS
12787
12788 fi
12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12790 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12791 case $ac_cv_c_undeclared_builtin_options in #(
12792 'cannot detect') :
12793 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12794 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12795 as_fn_error $? "cannot make $CC report undeclared builtins
12796 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12797 'none needed') :
12798 ac_c_undeclared_builtin_options='' ;; #(
12799 *) :
12800 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12801 esac
12802
12803
12804
12805
12806
12807 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12808 if test "x$ac_cv_have_decl___clang__" = xyes
12809 then :
12810 CLANGCC="yes"
12811 else $as_nop
12812 CLANGCC="no"
12813 fi
12814 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12815 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12816 then :
12817 INTELCC="yes"
12818 else $as_nop
12819 INTELCC="no"
12820 fi
12821 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12822 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12823 then :
12824 SUNCC="yes"
12825 else $as_nop
12826 SUNCC="no"
12827 fi
12828
12829
12830
12831
12832
12833
12834
12835
12836 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12837 if test -n "$ac_tool_prefix"; then
12838 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12839 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841 printf %s "checking for $ac_word... " >&6; }
12842 if test ${ac_cv_path_PKG_CONFIG+y}
12843 then :
12844 printf %s "(cached) " >&6
12845 else $as_nop
12846 case $PKG_CONFIG in
12847 [\\/]* | ?:[\\/]*)
12848 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12849 ;;
12850 *)
12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12853 do
12854 IFS=$as_save_IFS
12855 case $as_dir in #(((
12856 '') as_dir=./ ;;
12857 */) ;;
12858 *) as_dir=$as_dir/ ;;
12859 esac
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12862 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12864 break 2
12865 fi
12866 done
12867 done
12868 IFS=$as_save_IFS
12869
12870 ;;
12871 esac
12872 fi
12873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12874 if test -n "$PKG_CONFIG"; then
12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12876 printf "%s\n" "$PKG_CONFIG" >&6; }
12877 else
12878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 printf "%s\n" "no" >&6; }
12880 fi
12881
12882
12883 fi
12884 if test -z "$ac_cv_path_PKG_CONFIG"; then
12885 ac_pt_PKG_CONFIG=$PKG_CONFIG
12886 # Extract the first word of "pkg-config", so it can be a program name with args.
12887 set dummy pkg-config; ac_word=$2
12888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889 printf %s "checking for $ac_word... " >&6; }
12890 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12891 then :
12892 printf %s "(cached) " >&6
12893 else $as_nop
12894 case $ac_pt_PKG_CONFIG in
12895 [\\/]* | ?:[\\/]*)
12896 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12897 ;;
12898 *)
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12901 do
12902 IFS=$as_save_IFS
12903 case $as_dir in #(((
12904 '') as_dir=./ ;;
12905 */) ;;
12906 *) as_dir=$as_dir/ ;;
12907 esac
12908 for ac_exec_ext in '' $ac_executable_extensions; do
12909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12910 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12912 break 2
12913 fi
12914 done
12915 done
12916 IFS=$as_save_IFS
12917
12918 ;;
12919 esac
12920 fi
12921 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12922 if test -n "$ac_pt_PKG_CONFIG"; then
12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12924 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12925 else
12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 printf "%s\n" "no" >&6; }
12928 fi
12929
12930 if test "x$ac_pt_PKG_CONFIG" = x; then
12931 PKG_CONFIG=""
12932 else
12933 case $cross_compiling:$ac_tool_warned in
12934 yes:)
12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12936 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12937 ac_tool_warned=yes ;;
12938 esac
12939 PKG_CONFIG=$ac_pt_PKG_CONFIG
12940 fi
12941 else
12942 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12943 fi
12944
12945 fi
12946 if test -n "$PKG_CONFIG"; then
12947 _pkg_min_version=0.9.0
12948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12949 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12950 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12952 printf "%s\n" "yes" >&6; }
12953 else
12954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955 printf "%s\n" "no" >&6; }
12956 PKG_CONFIG=""
12957 fi
12958 fi
12959
12960
12961
12962
12963
12964 # Check whether --enable-selective-werror was given.
12965 if test ${enable_selective_werror+y}
12966 then :
12967 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12968 else $as_nop
12969 SELECTIVE_WERROR=yes
12970 fi
12971
12972
12973
12974
12975
12976 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12977 if test "x$SUNCC" = "xyes"; then
12978 BASE_CFLAGS="-v"
12979 else
12980 BASE_CFLAGS=""
12981 fi
12982
12983 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997 xorg_testset_save_CFLAGS="$CFLAGS"
12998
12999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13002 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13003 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13004 then :
13005 printf %s "(cached) " >&6
13006 else $as_nop
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13009 int i;
13010 _ACEOF
13011 if ac_fn_c_try_compile "$LINENO"
13012 then :
13013 xorg_cv_cc_flag_unknown_warning_option=yes
13014 else $as_nop
13015 xorg_cv_cc_flag_unknown_warning_option=no
13016 fi
13017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13018 fi
13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13020 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13022 CFLAGS="$xorg_testset_save_CFLAGS"
13023 fi
13024
13025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13028 fi
13029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13031 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13032 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13033 then :
13034 printf %s "(cached) " >&6
13035 else $as_nop
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13038 int i;
13039 _ACEOF
13040 if ac_fn_c_try_compile "$LINENO"
13041 then :
13042 xorg_cv_cc_flag_unused_command_line_argument=yes
13043 else $as_nop
13044 xorg_cv_cc_flag_unused_command_line_argument=no
13045 fi
13046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13047 fi
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13049 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13051 CFLAGS="$xorg_testset_save_CFLAGS"
13052 fi
13053
13054 found="no"
13055
13056 if test $found = "no" ; then
13057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13059 fi
13060
13061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13063 fi
13064
13065 CFLAGS="$CFLAGS -Wall"
13066
13067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13068 printf %s "checking if $CC supports -Wall... " >&6; }
13069 cacheid=xorg_cv_cc_flag__Wall
13070 if eval test \${$cacheid+y}
13071 then :
13072 printf %s "(cached) " >&6
13073 else $as_nop
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076 int i;
13077 int
13078 main (void)
13079 {
13080
13081 ;
13082 return 0;
13083 }
13084 _ACEOF
13085 if ac_fn_c_try_link "$LINENO"
13086 then :
13087 eval $cacheid=yes
13088 else $as_nop
13089 eval $cacheid=no
13090 fi
13091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13092 conftest$ac_exeext conftest.$ac_ext
13093 fi
13094
13095
13096 CFLAGS="$xorg_testset_save_CFLAGS"
13097
13098 eval supported=\$$cacheid
13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13100 printf "%s\n" "$supported" >&6; }
13101 if test "$supported" = "yes" ; then
13102 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13103 found="yes"
13104 fi
13105 fi
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121 xorg_testset_save_CFLAGS="$CFLAGS"
13122
13123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13126 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13127 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13128 then :
13129 printf %s "(cached) " >&6
13130 else $as_nop
13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13133 int i;
13134 _ACEOF
13135 if ac_fn_c_try_compile "$LINENO"
13136 then :
13137 xorg_cv_cc_flag_unknown_warning_option=yes
13138 else $as_nop
13139 xorg_cv_cc_flag_unknown_warning_option=no
13140 fi
13141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13142 fi
13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13144 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13146 CFLAGS="$xorg_testset_save_CFLAGS"
13147 fi
13148
13149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13152 fi
13153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13155 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13156 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13157 then :
13158 printf %s "(cached) " >&6
13159 else $as_nop
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13162 int i;
13163 _ACEOF
13164 if ac_fn_c_try_compile "$LINENO"
13165 then :
13166 xorg_cv_cc_flag_unused_command_line_argument=yes
13167 else $as_nop
13168 xorg_cv_cc_flag_unused_command_line_argument=no
13169 fi
13170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13171 fi
13172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13173 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13175 CFLAGS="$xorg_testset_save_CFLAGS"
13176 fi
13177
13178 found="no"
13179
13180 if test $found = "no" ; then
13181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13183 fi
13184
13185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13187 fi
13188
13189 CFLAGS="$CFLAGS -Wpointer-arith"
13190
13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13192 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13193 cacheid=xorg_cv_cc_flag__Wpointer_arith
13194 if eval test \${$cacheid+y}
13195 then :
13196 printf %s "(cached) " >&6
13197 else $as_nop
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13200 int i;
13201 int
13202 main (void)
13203 {
13204
13205 ;
13206 return 0;
13207 }
13208 _ACEOF
13209 if ac_fn_c_try_link "$LINENO"
13210 then :
13211 eval $cacheid=yes
13212 else $as_nop
13213 eval $cacheid=no
13214 fi
13215 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13216 conftest$ac_exeext conftest.$ac_ext
13217 fi
13218
13219
13220 CFLAGS="$xorg_testset_save_CFLAGS"
13221
13222 eval supported=\$$cacheid
13223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13224 printf "%s\n" "$supported" >&6; }
13225 if test "$supported" = "yes" ; then
13226 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13227 found="yes"
13228 fi
13229 fi
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245 xorg_testset_save_CFLAGS="$CFLAGS"
13246
13247 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13250 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13251 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13252 then :
13253 printf %s "(cached) " >&6
13254 else $as_nop
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257 int i;
13258 _ACEOF
13259 if ac_fn_c_try_compile "$LINENO"
13260 then :
13261 xorg_cv_cc_flag_unknown_warning_option=yes
13262 else $as_nop
13263 xorg_cv_cc_flag_unknown_warning_option=no
13264 fi
13265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13266 fi
13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13268 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13270 CFLAGS="$xorg_testset_save_CFLAGS"
13271 fi
13272
13273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13276 fi
13277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13279 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13280 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13281 then :
13282 printf %s "(cached) " >&6
13283 else $as_nop
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13286 int i;
13287 _ACEOF
13288 if ac_fn_c_try_compile "$LINENO"
13289 then :
13290 xorg_cv_cc_flag_unused_command_line_argument=yes
13291 else $as_nop
13292 xorg_cv_cc_flag_unused_command_line_argument=no
13293 fi
13294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13295 fi
13296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13297 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13299 CFLAGS="$xorg_testset_save_CFLAGS"
13300 fi
13301
13302 found="no"
13303
13304 if test $found = "no" ; then
13305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13307 fi
13308
13309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13311 fi
13312
13313 CFLAGS="$CFLAGS -Wmissing-declarations"
13314
13315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13316 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13317 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13318 if eval test \${$cacheid+y}
13319 then :
13320 printf %s "(cached) " >&6
13321 else $as_nop
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13324 int i;
13325 int
13326 main (void)
13327 {
13328
13329 ;
13330 return 0;
13331 }
13332 _ACEOF
13333 if ac_fn_c_try_link "$LINENO"
13334 then :
13335 eval $cacheid=yes
13336 else $as_nop
13337 eval $cacheid=no
13338 fi
13339 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13340 conftest$ac_exeext conftest.$ac_ext
13341 fi
13342
13343
13344 CFLAGS="$xorg_testset_save_CFLAGS"
13345
13346 eval supported=\$$cacheid
13347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13348 printf "%s\n" "$supported" >&6; }
13349 if test "$supported" = "yes" ; then
13350 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13351 found="yes"
13352 fi
13353 fi
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369 xorg_testset_save_CFLAGS="$CFLAGS"
13370
13371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13374 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13375 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13376 then :
13377 printf %s "(cached) " >&6
13378 else $as_nop
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 int i;
13382 _ACEOF
13383 if ac_fn_c_try_compile "$LINENO"
13384 then :
13385 xorg_cv_cc_flag_unknown_warning_option=yes
13386 else $as_nop
13387 xorg_cv_cc_flag_unknown_warning_option=no
13388 fi
13389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13390 fi
13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13392 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13394 CFLAGS="$xorg_testset_save_CFLAGS"
13395 fi
13396
13397 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13400 fi
13401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13403 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13404 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13405 then :
13406 printf %s "(cached) " >&6
13407 else $as_nop
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 int i;
13411 _ACEOF
13412 if ac_fn_c_try_compile "$LINENO"
13413 then :
13414 xorg_cv_cc_flag_unused_command_line_argument=yes
13415 else $as_nop
13416 xorg_cv_cc_flag_unused_command_line_argument=no
13417 fi
13418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13419 fi
13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13421 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13423 CFLAGS="$xorg_testset_save_CFLAGS"
13424 fi
13425
13426 found="no"
13427
13428 if test $found = "no" ; then
13429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13431 fi
13432
13433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13435 fi
13436
13437 CFLAGS="$CFLAGS -Wformat=2"
13438
13439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13440 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13441 cacheid=xorg_cv_cc_flag__Wformat_2
13442 if eval test \${$cacheid+y}
13443 then :
13444 printf %s "(cached) " >&6
13445 else $as_nop
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 int i;
13449 int
13450 main (void)
13451 {
13452
13453 ;
13454 return 0;
13455 }
13456 _ACEOF
13457 if ac_fn_c_try_link "$LINENO"
13458 then :
13459 eval $cacheid=yes
13460 else $as_nop
13461 eval $cacheid=no
13462 fi
13463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13464 conftest$ac_exeext conftest.$ac_ext
13465 fi
13466
13467
13468 CFLAGS="$xorg_testset_save_CFLAGS"
13469
13470 eval supported=\$$cacheid
13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13472 printf "%s\n" "$supported" >&6; }
13473 if test "$supported" = "yes" ; then
13474 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13475 found="yes"
13476 fi
13477 fi
13478
13479 if test $found = "no" ; then
13480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13482 fi
13483
13484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13486 fi
13487
13488 CFLAGS="$CFLAGS -Wformat"
13489
13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13491 printf %s "checking if $CC supports -Wformat... " >&6; }
13492 cacheid=xorg_cv_cc_flag__Wformat
13493 if eval test \${$cacheid+y}
13494 then :
13495 printf %s "(cached) " >&6
13496 else $as_nop
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 int i;
13500 int
13501 main (void)
13502 {
13503
13504 ;
13505 return 0;
13506 }
13507 _ACEOF
13508 if ac_fn_c_try_link "$LINENO"
13509 then :
13510 eval $cacheid=yes
13511 else $as_nop
13512 eval $cacheid=no
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13515 conftest$ac_exeext conftest.$ac_ext
13516 fi
13517
13518
13519 CFLAGS="$xorg_testset_save_CFLAGS"
13520
13521 eval supported=\$$cacheid
13522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13523 printf "%s\n" "$supported" >&6; }
13524 if test "$supported" = "yes" ; then
13525 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13526 found="yes"
13527 fi
13528 fi
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546 xorg_testset_save_CFLAGS="$CFLAGS"
13547
13548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13551 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13552 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13553 then :
13554 printf %s "(cached) " >&6
13555 else $as_nop
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13558 int i;
13559 _ACEOF
13560 if ac_fn_c_try_compile "$LINENO"
13561 then :
13562 xorg_cv_cc_flag_unknown_warning_option=yes
13563 else $as_nop
13564 xorg_cv_cc_flag_unknown_warning_option=no
13565 fi
13566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13567 fi
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13569 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13571 CFLAGS="$xorg_testset_save_CFLAGS"
13572 fi
13573
13574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13577 fi
13578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13580 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13581 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13582 then :
13583 printf %s "(cached) " >&6
13584 else $as_nop
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587 int i;
13588 _ACEOF
13589 if ac_fn_c_try_compile "$LINENO"
13590 then :
13591 xorg_cv_cc_flag_unused_command_line_argument=yes
13592 else $as_nop
13593 xorg_cv_cc_flag_unused_command_line_argument=no
13594 fi
13595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13596 fi
13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13598 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13600 CFLAGS="$xorg_testset_save_CFLAGS"
13601 fi
13602
13603 found="no"
13604
13605 if test $found = "no" ; then
13606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13608 fi
13609
13610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13612 fi
13613
13614 CFLAGS="$CFLAGS -Wstrict-prototypes"
13615
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13617 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13618 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13619 if eval test \${$cacheid+y}
13620 then :
13621 printf %s "(cached) " >&6
13622 else $as_nop
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13625 int i;
13626 int
13627 main (void)
13628 {
13629
13630 ;
13631 return 0;
13632 }
13633 _ACEOF
13634 if ac_fn_c_try_link "$LINENO"
13635 then :
13636 eval $cacheid=yes
13637 else $as_nop
13638 eval $cacheid=no
13639 fi
13640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13641 conftest$ac_exeext conftest.$ac_ext
13642 fi
13643
13644
13645 CFLAGS="$xorg_testset_save_CFLAGS"
13646
13647 eval supported=\$$cacheid
13648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13649 printf "%s\n" "$supported" >&6; }
13650 if test "$supported" = "yes" ; then
13651 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13652 found="yes"
13653 fi
13654 fi
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670 xorg_testset_save_CFLAGS="$CFLAGS"
13671
13672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13675 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13676 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13677 then :
13678 printf %s "(cached) " >&6
13679 else $as_nop
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 int i;
13683 _ACEOF
13684 if ac_fn_c_try_compile "$LINENO"
13685 then :
13686 xorg_cv_cc_flag_unknown_warning_option=yes
13687 else $as_nop
13688 xorg_cv_cc_flag_unknown_warning_option=no
13689 fi
13690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13691 fi
13692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13693 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13695 CFLAGS="$xorg_testset_save_CFLAGS"
13696 fi
13697
13698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13701 fi
13702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13704 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13705 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13706 then :
13707 printf %s "(cached) " >&6
13708 else $as_nop
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711 int i;
13712 _ACEOF
13713 if ac_fn_c_try_compile "$LINENO"
13714 then :
13715 xorg_cv_cc_flag_unused_command_line_argument=yes
13716 else $as_nop
13717 xorg_cv_cc_flag_unused_command_line_argument=no
13718 fi
13719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13720 fi
13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13722 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13724 CFLAGS="$xorg_testset_save_CFLAGS"
13725 fi
13726
13727 found="no"
13728
13729 if test $found = "no" ; then
13730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13732 fi
13733
13734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13736 fi
13737
13738 CFLAGS="$CFLAGS -Wmissing-prototypes"
13739
13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13741 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13742 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13743 if eval test \${$cacheid+y}
13744 then :
13745 printf %s "(cached) " >&6
13746 else $as_nop
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 int i;
13750 int
13751 main (void)
13752 {
13753
13754 ;
13755 return 0;
13756 }
13757 _ACEOF
13758 if ac_fn_c_try_link "$LINENO"
13759 then :
13760 eval $cacheid=yes
13761 else $as_nop
13762 eval $cacheid=no
13763 fi
13764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13765 conftest$ac_exeext conftest.$ac_ext
13766 fi
13767
13768
13769 CFLAGS="$xorg_testset_save_CFLAGS"
13770
13771 eval supported=\$$cacheid
13772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13773 printf "%s\n" "$supported" >&6; }
13774 if test "$supported" = "yes" ; then
13775 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13776 found="yes"
13777 fi
13778 fi
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794 xorg_testset_save_CFLAGS="$CFLAGS"
13795
13796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13799 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13800 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13801 then :
13802 printf %s "(cached) " >&6
13803 else $as_nop
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13806 int i;
13807 _ACEOF
13808 if ac_fn_c_try_compile "$LINENO"
13809 then :
13810 xorg_cv_cc_flag_unknown_warning_option=yes
13811 else $as_nop
13812 xorg_cv_cc_flag_unknown_warning_option=no
13813 fi
13814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13815 fi
13816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13817 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13819 CFLAGS="$xorg_testset_save_CFLAGS"
13820 fi
13821
13822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13825 fi
13826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13828 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13829 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13830 then :
13831 printf %s "(cached) " >&6
13832 else $as_nop
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13835 int i;
13836 _ACEOF
13837 if ac_fn_c_try_compile "$LINENO"
13838 then :
13839 xorg_cv_cc_flag_unused_command_line_argument=yes
13840 else $as_nop
13841 xorg_cv_cc_flag_unused_command_line_argument=no
13842 fi
13843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13844 fi
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13846 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13848 CFLAGS="$xorg_testset_save_CFLAGS"
13849 fi
13850
13851 found="no"
13852
13853 if test $found = "no" ; then
13854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13856 fi
13857
13858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13860 fi
13861
13862 CFLAGS="$CFLAGS -Wnested-externs"
13863
13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13865 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13866 cacheid=xorg_cv_cc_flag__Wnested_externs
13867 if eval test \${$cacheid+y}
13868 then :
13869 printf %s "(cached) " >&6
13870 else $as_nop
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 int i;
13874 int
13875 main (void)
13876 {
13877
13878 ;
13879 return 0;
13880 }
13881 _ACEOF
13882 if ac_fn_c_try_link "$LINENO"
13883 then :
13884 eval $cacheid=yes
13885 else $as_nop
13886 eval $cacheid=no
13887 fi
13888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13889 conftest$ac_exeext conftest.$ac_ext
13890 fi
13891
13892
13893 CFLAGS="$xorg_testset_save_CFLAGS"
13894
13895 eval supported=\$$cacheid
13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13897 printf "%s\n" "$supported" >&6; }
13898 if test "$supported" = "yes" ; then
13899 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13900 found="yes"
13901 fi
13902 fi
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918 xorg_testset_save_CFLAGS="$CFLAGS"
13919
13920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13923 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13924 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13925 then :
13926 printf %s "(cached) " >&6
13927 else $as_nop
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930 int i;
13931 _ACEOF
13932 if ac_fn_c_try_compile "$LINENO"
13933 then :
13934 xorg_cv_cc_flag_unknown_warning_option=yes
13935 else $as_nop
13936 xorg_cv_cc_flag_unknown_warning_option=no
13937 fi
13938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13939 fi
13940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13941 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13943 CFLAGS="$xorg_testset_save_CFLAGS"
13944 fi
13945
13946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13949 fi
13950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13952 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13953 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13954 then :
13955 printf %s "(cached) " >&6
13956 else $as_nop
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959 int i;
13960 _ACEOF
13961 if ac_fn_c_try_compile "$LINENO"
13962 then :
13963 xorg_cv_cc_flag_unused_command_line_argument=yes
13964 else $as_nop
13965 xorg_cv_cc_flag_unused_command_line_argument=no
13966 fi
13967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13968 fi
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13970 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13972 CFLAGS="$xorg_testset_save_CFLAGS"
13973 fi
13974
13975 found="no"
13976
13977 if test $found = "no" ; then
13978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13980 fi
13981
13982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13984 fi
13985
13986 CFLAGS="$CFLAGS -Wbad-function-cast"
13987
13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13989 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13990 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13991 if eval test \${$cacheid+y}
13992 then :
13993 printf %s "(cached) " >&6
13994 else $as_nop
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13997 int i;
13998 int
13999 main (void)
14000 {
14001
14002 ;
14003 return 0;
14004 }
14005 _ACEOF
14006 if ac_fn_c_try_link "$LINENO"
14007 then :
14008 eval $cacheid=yes
14009 else $as_nop
14010 eval $cacheid=no
14011 fi
14012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14013 conftest$ac_exeext conftest.$ac_ext
14014 fi
14015
14016
14017 CFLAGS="$xorg_testset_save_CFLAGS"
14018
14019 eval supported=\$$cacheid
14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14021 printf "%s\n" "$supported" >&6; }
14022 if test "$supported" = "yes" ; then
14023 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14024 found="yes"
14025 fi
14026 fi
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042 xorg_testset_save_CFLAGS="$CFLAGS"
14043
14044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14047 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14048 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14049 then :
14050 printf %s "(cached) " >&6
14051 else $as_nop
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h. */
14054 int i;
14055 _ACEOF
14056 if ac_fn_c_try_compile "$LINENO"
14057 then :
14058 xorg_cv_cc_flag_unknown_warning_option=yes
14059 else $as_nop
14060 xorg_cv_cc_flag_unknown_warning_option=no
14061 fi
14062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14063 fi
14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14065 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14067 CFLAGS="$xorg_testset_save_CFLAGS"
14068 fi
14069
14070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14073 fi
14074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14076 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14077 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14078 then :
14079 printf %s "(cached) " >&6
14080 else $as_nop
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14083 int i;
14084 _ACEOF
14085 if ac_fn_c_try_compile "$LINENO"
14086 then :
14087 xorg_cv_cc_flag_unused_command_line_argument=yes
14088 else $as_nop
14089 xorg_cv_cc_flag_unused_command_line_argument=no
14090 fi
14091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14092 fi
14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14094 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14096 CFLAGS="$xorg_testset_save_CFLAGS"
14097 fi
14098
14099 found="no"
14100
14101 if test $found = "no" ; then
14102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14104 fi
14105
14106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14108 fi
14109
14110 CFLAGS="$CFLAGS -Wold-style-definition"
14111
14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14113 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14114 cacheid=xorg_cv_cc_flag__Wold_style_definition
14115 if eval test \${$cacheid+y}
14116 then :
14117 printf %s "(cached) " >&6
14118 else $as_nop
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121 int i;
14122 int
14123 main (void)
14124 {
14125
14126 ;
14127 return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_link "$LINENO"
14131 then :
14132 eval $cacheid=yes
14133 else $as_nop
14134 eval $cacheid=no
14135 fi
14136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14137 conftest$ac_exeext conftest.$ac_ext
14138 fi
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
14145 printf "%s\n" "$supported" >&6; }
14146 if test "$supported" = "yes" ; then
14147 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14148 found="yes"
14149 fi
14150 fi
14151
14152 if test $found = "no" ; then
14153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14155 fi
14156
14157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14159 fi
14160
14161 CFLAGS="$CFLAGS -fd"
14162
14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14164 printf %s "checking if $CC supports -fd... " >&6; }
14165 cacheid=xorg_cv_cc_flag__fd
14166 if eval test \${$cacheid+y}
14167 then :
14168 printf %s "(cached) " >&6
14169 else $as_nop
14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h. */
14172 int i;
14173 int
14174 main (void)
14175 {
14176
14177 ;
14178 return 0;
14179 }
14180 _ACEOF
14181 if ac_fn_c_try_link "$LINENO"
14182 then :
14183 eval $cacheid=yes
14184 else $as_nop
14185 eval $cacheid=no
14186 fi
14187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14188 conftest$ac_exeext conftest.$ac_ext
14189 fi
14190
14191
14192 CFLAGS="$xorg_testset_save_CFLAGS"
14193
14194 eval supported=\$$cacheid
14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14196 printf "%s\n" "$supported" >&6; }
14197 if test "$supported" = "yes" ; then
14198 BASE_CFLAGS="$BASE_CFLAGS -fd"
14199 found="yes"
14200 fi
14201 fi
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217 xorg_testset_save_CFLAGS="$CFLAGS"
14218
14219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14222 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14223 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14224 then :
14225 printf %s "(cached) " >&6
14226 else $as_nop
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 int i;
14230 _ACEOF
14231 if ac_fn_c_try_compile "$LINENO"
14232 then :
14233 xorg_cv_cc_flag_unknown_warning_option=yes
14234 else $as_nop
14235 xorg_cv_cc_flag_unknown_warning_option=no
14236 fi
14237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14238 fi
14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14240 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14242 CFLAGS="$xorg_testset_save_CFLAGS"
14243 fi
14244
14245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14248 fi
14249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14251 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14252 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14253 then :
14254 printf %s "(cached) " >&6
14255 else $as_nop
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h. */
14258 int i;
14259 _ACEOF
14260 if ac_fn_c_try_compile "$LINENO"
14261 then :
14262 xorg_cv_cc_flag_unused_command_line_argument=yes
14263 else $as_nop
14264 xorg_cv_cc_flag_unused_command_line_argument=no
14265 fi
14266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14267 fi
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14269 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14271 CFLAGS="$xorg_testset_save_CFLAGS"
14272 fi
14273
14274 found="no"
14275
14276 if test $found = "no" ; then
14277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14279 fi
14280
14281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14283 fi
14284
14285 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14286
14287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14288 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14289 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14290 if eval test \${$cacheid+y}
14291 then :
14292 printf %s "(cached) " >&6
14293 else $as_nop
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14296 int i;
14297 int
14298 main (void)
14299 {
14300
14301 ;
14302 return 0;
14303 }
14304 _ACEOF
14305 if ac_fn_c_try_link "$LINENO"
14306 then :
14307 eval $cacheid=yes
14308 else $as_nop
14309 eval $cacheid=no
14310 fi
14311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14312 conftest$ac_exeext conftest.$ac_ext
14313 fi
14314
14315
14316 CFLAGS="$xorg_testset_save_CFLAGS"
14317
14318 eval supported=\$$cacheid
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14320 printf "%s\n" "$supported" >&6; }
14321 if test "$supported" = "yes" ; then
14322 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14323 found="yes"
14324 fi
14325 fi
14326
14327
14328
14329
14330
14331 # This chunk adds additional warnings that could catch undesired effects.
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345 xorg_testset_save_CFLAGS="$CFLAGS"
14346
14347 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14350 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14351 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14352 then :
14353 printf %s "(cached) " >&6
14354 else $as_nop
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14357 int i;
14358 _ACEOF
14359 if ac_fn_c_try_compile "$LINENO"
14360 then :
14361 xorg_cv_cc_flag_unknown_warning_option=yes
14362 else $as_nop
14363 xorg_cv_cc_flag_unknown_warning_option=no
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14366 fi
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14368 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14370 CFLAGS="$xorg_testset_save_CFLAGS"
14371 fi
14372
14373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14376 fi
14377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14379 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14380 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14381 then :
14382 printf %s "(cached) " >&6
14383 else $as_nop
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14386 int i;
14387 _ACEOF
14388 if ac_fn_c_try_compile "$LINENO"
14389 then :
14390 xorg_cv_cc_flag_unused_command_line_argument=yes
14391 else $as_nop
14392 xorg_cv_cc_flag_unused_command_line_argument=no
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14395 fi
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14397 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14399 CFLAGS="$xorg_testset_save_CFLAGS"
14400 fi
14401
14402 found="no"
14403
14404 if test $found = "no" ; then
14405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14407 fi
14408
14409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14411 fi
14412
14413 CFLAGS="$CFLAGS -Wunused"
14414
14415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14416 printf %s "checking if $CC supports -Wunused... " >&6; }
14417 cacheid=xorg_cv_cc_flag__Wunused
14418 if eval test \${$cacheid+y}
14419 then :
14420 printf %s "(cached) " >&6
14421 else $as_nop
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424 int i;
14425 int
14426 main (void)
14427 {
14428
14429 ;
14430 return 0;
14431 }
14432 _ACEOF
14433 if ac_fn_c_try_link "$LINENO"
14434 then :
14435 eval $cacheid=yes
14436 else $as_nop
14437 eval $cacheid=no
14438 fi
14439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14440 conftest$ac_exeext conftest.$ac_ext
14441 fi
14442
14443
14444 CFLAGS="$xorg_testset_save_CFLAGS"
14445
14446 eval supported=\$$cacheid
14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14448 printf "%s\n" "$supported" >&6; }
14449 if test "$supported" = "yes" ; then
14450 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14451 found="yes"
14452 fi
14453 fi
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469 xorg_testset_save_CFLAGS="$CFLAGS"
14470
14471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14474 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14475 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14476 then :
14477 printf %s "(cached) " >&6
14478 else $as_nop
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481 int i;
14482 _ACEOF
14483 if ac_fn_c_try_compile "$LINENO"
14484 then :
14485 xorg_cv_cc_flag_unknown_warning_option=yes
14486 else $as_nop
14487 xorg_cv_cc_flag_unknown_warning_option=no
14488 fi
14489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14490 fi
14491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14492 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14494 CFLAGS="$xorg_testset_save_CFLAGS"
14495 fi
14496
14497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14500 fi
14501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14503 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14504 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14505 then :
14506 printf %s "(cached) " >&6
14507 else $as_nop
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510 int i;
14511 _ACEOF
14512 if ac_fn_c_try_compile "$LINENO"
14513 then :
14514 xorg_cv_cc_flag_unused_command_line_argument=yes
14515 else $as_nop
14516 xorg_cv_cc_flag_unused_command_line_argument=no
14517 fi
14518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14519 fi
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14521 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14523 CFLAGS="$xorg_testset_save_CFLAGS"
14524 fi
14525
14526 found="no"
14527
14528 if test $found = "no" ; then
14529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14531 fi
14532
14533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14535 fi
14536
14537 CFLAGS="$CFLAGS -Wuninitialized"
14538
14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14540 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14541 cacheid=xorg_cv_cc_flag__Wuninitialized
14542 if eval test \${$cacheid+y}
14543 then :
14544 printf %s "(cached) " >&6
14545 else $as_nop
14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h. */
14548 int i;
14549 int
14550 main (void)
14551 {
14552
14553 ;
14554 return 0;
14555 }
14556 _ACEOF
14557 if ac_fn_c_try_link "$LINENO"
14558 then :
14559 eval $cacheid=yes
14560 else $as_nop
14561 eval $cacheid=no
14562 fi
14563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14564 conftest$ac_exeext conftest.$ac_ext
14565 fi
14566
14567
14568 CFLAGS="$xorg_testset_save_CFLAGS"
14569
14570 eval supported=\$$cacheid
14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14572 printf "%s\n" "$supported" >&6; }
14573 if test "$supported" = "yes" ; then
14574 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14575 found="yes"
14576 fi
14577 fi
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593 xorg_testset_save_CFLAGS="$CFLAGS"
14594
14595 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14598 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14599 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14600 then :
14601 printf %s "(cached) " >&6
14602 else $as_nop
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14605 int i;
14606 _ACEOF
14607 if ac_fn_c_try_compile "$LINENO"
14608 then :
14609 xorg_cv_cc_flag_unknown_warning_option=yes
14610 else $as_nop
14611 xorg_cv_cc_flag_unknown_warning_option=no
14612 fi
14613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14614 fi
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14616 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14618 CFLAGS="$xorg_testset_save_CFLAGS"
14619 fi
14620
14621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14624 fi
14625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14627 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14628 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14629 then :
14630 printf %s "(cached) " >&6
14631 else $as_nop
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634 int i;
14635 _ACEOF
14636 if ac_fn_c_try_compile "$LINENO"
14637 then :
14638 xorg_cv_cc_flag_unused_command_line_argument=yes
14639 else $as_nop
14640 xorg_cv_cc_flag_unused_command_line_argument=no
14641 fi
14642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14643 fi
14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14645 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14647 CFLAGS="$xorg_testset_save_CFLAGS"
14648 fi
14649
14650 found="no"
14651
14652 if test $found = "no" ; then
14653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14655 fi
14656
14657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14659 fi
14660
14661 CFLAGS="$CFLAGS -Wshadow"
14662
14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14664 printf %s "checking if $CC supports -Wshadow... " >&6; }
14665 cacheid=xorg_cv_cc_flag__Wshadow
14666 if eval test \${$cacheid+y}
14667 then :
14668 printf %s "(cached) " >&6
14669 else $as_nop
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672 int i;
14673 int
14674 main (void)
14675 {
14676
14677 ;
14678 return 0;
14679 }
14680 _ACEOF
14681 if ac_fn_c_try_link "$LINENO"
14682 then :
14683 eval $cacheid=yes
14684 else $as_nop
14685 eval $cacheid=no
14686 fi
14687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14688 conftest$ac_exeext conftest.$ac_ext
14689 fi
14690
14691
14692 CFLAGS="$xorg_testset_save_CFLAGS"
14693
14694 eval supported=\$$cacheid
14695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14696 printf "%s\n" "$supported" >&6; }
14697 if test "$supported" = "yes" ; then
14698 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14699 found="yes"
14700 fi
14701 fi
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717 xorg_testset_save_CFLAGS="$CFLAGS"
14718
14719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14722 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14723 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14724 then :
14725 printf %s "(cached) " >&6
14726 else $as_nop
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729 int i;
14730 _ACEOF
14731 if ac_fn_c_try_compile "$LINENO"
14732 then :
14733 xorg_cv_cc_flag_unknown_warning_option=yes
14734 else $as_nop
14735 xorg_cv_cc_flag_unknown_warning_option=no
14736 fi
14737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14738 fi
14739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14740 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14742 CFLAGS="$xorg_testset_save_CFLAGS"
14743 fi
14744
14745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14748 fi
14749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14751 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14752 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14753 then :
14754 printf %s "(cached) " >&6
14755 else $as_nop
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14758 int i;
14759 _ACEOF
14760 if ac_fn_c_try_compile "$LINENO"
14761 then :
14762 xorg_cv_cc_flag_unused_command_line_argument=yes
14763 else $as_nop
14764 xorg_cv_cc_flag_unused_command_line_argument=no
14765 fi
14766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14767 fi
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14769 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14771 CFLAGS="$xorg_testset_save_CFLAGS"
14772 fi
14773
14774 found="no"
14775
14776 if test $found = "no" ; then
14777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14779 fi
14780
14781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14783 fi
14784
14785 CFLAGS="$CFLAGS -Wmissing-noreturn"
14786
14787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14788 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14789 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14790 if eval test \${$cacheid+y}
14791 then :
14792 printf %s "(cached) " >&6
14793 else $as_nop
14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h. */
14796 int i;
14797 int
14798 main (void)
14799 {
14800
14801 ;
14802 return 0;
14803 }
14804 _ACEOF
14805 if ac_fn_c_try_link "$LINENO"
14806 then :
14807 eval $cacheid=yes
14808 else $as_nop
14809 eval $cacheid=no
14810 fi
14811 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14812 conftest$ac_exeext conftest.$ac_ext
14813 fi
14814
14815
14816 CFLAGS="$xorg_testset_save_CFLAGS"
14817
14818 eval supported=\$$cacheid
14819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14820 printf "%s\n" "$supported" >&6; }
14821 if test "$supported" = "yes" ; then
14822 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14823 found="yes"
14824 fi
14825 fi
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841 xorg_testset_save_CFLAGS="$CFLAGS"
14842
14843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14846 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14847 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14848 then :
14849 printf %s "(cached) " >&6
14850 else $as_nop
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853 int i;
14854 _ACEOF
14855 if ac_fn_c_try_compile "$LINENO"
14856 then :
14857 xorg_cv_cc_flag_unknown_warning_option=yes
14858 else $as_nop
14859 xorg_cv_cc_flag_unknown_warning_option=no
14860 fi
14861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14862 fi
14863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14864 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14866 CFLAGS="$xorg_testset_save_CFLAGS"
14867 fi
14868
14869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14872 fi
14873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14875 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14876 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14877 then :
14878 printf %s "(cached) " >&6
14879 else $as_nop
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14882 int i;
14883 _ACEOF
14884 if ac_fn_c_try_compile "$LINENO"
14885 then :
14886 xorg_cv_cc_flag_unused_command_line_argument=yes
14887 else $as_nop
14888 xorg_cv_cc_flag_unused_command_line_argument=no
14889 fi
14890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14891 fi
14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14893 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14895 CFLAGS="$xorg_testset_save_CFLAGS"
14896 fi
14897
14898 found="no"
14899
14900 if test $found = "no" ; then
14901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14903 fi
14904
14905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14907 fi
14908
14909 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14910
14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14912 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14913 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14914 if eval test \${$cacheid+y}
14915 then :
14916 printf %s "(cached) " >&6
14917 else $as_nop
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14920 int i;
14921 int
14922 main (void)
14923 {
14924
14925 ;
14926 return 0;
14927 }
14928 _ACEOF
14929 if ac_fn_c_try_link "$LINENO"
14930 then :
14931 eval $cacheid=yes
14932 else $as_nop
14933 eval $cacheid=no
14934 fi
14935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14936 conftest$ac_exeext conftest.$ac_ext
14937 fi
14938
14939
14940 CFLAGS="$xorg_testset_save_CFLAGS"
14941
14942 eval supported=\$$cacheid
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14944 printf "%s\n" "$supported" >&6; }
14945 if test "$supported" = "yes" ; then
14946 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14947 found="yes"
14948 fi
14949 fi
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965 xorg_testset_save_CFLAGS="$CFLAGS"
14966
14967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14970 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14971 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14972 then :
14973 printf %s "(cached) " >&6
14974 else $as_nop
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977 int i;
14978 _ACEOF
14979 if ac_fn_c_try_compile "$LINENO"
14980 then :
14981 xorg_cv_cc_flag_unknown_warning_option=yes
14982 else $as_nop
14983 xorg_cv_cc_flag_unknown_warning_option=no
14984 fi
14985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14986 fi
14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14988 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14990 CFLAGS="$xorg_testset_save_CFLAGS"
14991 fi
14992
14993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14996 fi
14997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14999 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15000 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15001 then :
15002 printf %s "(cached) " >&6
15003 else $as_nop
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005 /* end confdefs.h. */
15006 int i;
15007 _ACEOF
15008 if ac_fn_c_try_compile "$LINENO"
15009 then :
15010 xorg_cv_cc_flag_unused_command_line_argument=yes
15011 else $as_nop
15012 xorg_cv_cc_flag_unused_command_line_argument=no
15013 fi
15014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15015 fi
15016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15017 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15019 CFLAGS="$xorg_testset_save_CFLAGS"
15020 fi
15021
15022 found="no"
15023
15024 if test $found = "no" ; then
15025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15027 fi
15028
15029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15031 fi
15032
15033 CFLAGS="$CFLAGS -Wredundant-decls"
15034
15035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15036 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15037 cacheid=xorg_cv_cc_flag__Wredundant_decls
15038 if eval test \${$cacheid+y}
15039 then :
15040 printf %s "(cached) " >&6
15041 else $as_nop
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15044 int i;
15045 int
15046 main (void)
15047 {
15048
15049 ;
15050 return 0;
15051 }
15052 _ACEOF
15053 if ac_fn_c_try_link "$LINENO"
15054 then :
15055 eval $cacheid=yes
15056 else $as_nop
15057 eval $cacheid=no
15058 fi
15059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15060 conftest$ac_exeext conftest.$ac_ext
15061 fi
15062
15063
15064 CFLAGS="$xorg_testset_save_CFLAGS"
15065
15066 eval supported=\$$cacheid
15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15068 printf "%s\n" "$supported" >&6; }
15069 if test "$supported" = "yes" ; then
15070 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15071 found="yes"
15072 fi
15073 fi
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089 xorg_testset_save_CFLAGS="$CFLAGS"
15090
15091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15094 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15095 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15096 then :
15097 printf %s "(cached) " >&6
15098 else $as_nop
15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100 /* end confdefs.h. */
15101 int i;
15102 _ACEOF
15103 if ac_fn_c_try_compile "$LINENO"
15104 then :
15105 xorg_cv_cc_flag_unknown_warning_option=yes
15106 else $as_nop
15107 xorg_cv_cc_flag_unknown_warning_option=no
15108 fi
15109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15110 fi
15111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15112 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15114 CFLAGS="$xorg_testset_save_CFLAGS"
15115 fi
15116
15117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15120 fi
15121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15123 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15124 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15125 then :
15126 printf %s "(cached) " >&6
15127 else $as_nop
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130 int i;
15131 _ACEOF
15132 if ac_fn_c_try_compile "$LINENO"
15133 then :
15134 xorg_cv_cc_flag_unused_command_line_argument=yes
15135 else $as_nop
15136 xorg_cv_cc_flag_unused_command_line_argument=no
15137 fi
15138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15139 fi
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15141 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15143 CFLAGS="$xorg_testset_save_CFLAGS"
15144 fi
15145
15146 found="no"
15147
15148 if test $found = "no" ; then
15149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15151 fi
15152
15153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15155 fi
15156
15157 CFLAGS="$CFLAGS -Wlogical-op"
15158
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15160 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15161 cacheid=xorg_cv_cc_flag__Wlogical_op
15162 if eval test \${$cacheid+y}
15163 then :
15164 printf %s "(cached) " >&6
15165 else $as_nop
15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15168 int i;
15169 int
15170 main (void)
15171 {
15172
15173 ;
15174 return 0;
15175 }
15176 _ACEOF
15177 if ac_fn_c_try_link "$LINENO"
15178 then :
15179 eval $cacheid=yes
15180 else $as_nop
15181 eval $cacheid=no
15182 fi
15183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15184 conftest$ac_exeext conftest.$ac_ext
15185 fi
15186
15187
15188 CFLAGS="$xorg_testset_save_CFLAGS"
15189
15190 eval supported=\$$cacheid
15191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15192 printf "%s\n" "$supported" >&6; }
15193 if test "$supported" = "yes" ; then
15194 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15195 found="yes"
15196 fi
15197 fi
15198
15199
15200
15201 # These are currently disabled because they are noisy. They will be enabled
15202 # in the future once the codebase is sufficiently modernized to silence
15203 # them. For now, I don't want them to drown out the other warnings.
15204 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15205 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15206 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15207
15208 # Turn some warnings into errors, so we don't accidentally get successful builds
15209 # when there are problems that should be fixed.
15210
15211 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225 xorg_testset_save_CFLAGS="$CFLAGS"
15226
15227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15230 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15231 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15232 then :
15233 printf %s "(cached) " >&6
15234 else $as_nop
15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15237 int i;
15238 _ACEOF
15239 if ac_fn_c_try_compile "$LINENO"
15240 then :
15241 xorg_cv_cc_flag_unknown_warning_option=yes
15242 else $as_nop
15243 xorg_cv_cc_flag_unknown_warning_option=no
15244 fi
15245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15246 fi
15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15248 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15250 CFLAGS="$xorg_testset_save_CFLAGS"
15251 fi
15252
15253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15256 fi
15257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15259 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15260 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15261 then :
15262 printf %s "(cached) " >&6
15263 else $as_nop
15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h. */
15266 int i;
15267 _ACEOF
15268 if ac_fn_c_try_compile "$LINENO"
15269 then :
15270 xorg_cv_cc_flag_unused_command_line_argument=yes
15271 else $as_nop
15272 xorg_cv_cc_flag_unused_command_line_argument=no
15273 fi
15274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15275 fi
15276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15277 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15279 CFLAGS="$xorg_testset_save_CFLAGS"
15280 fi
15281
15282 found="no"
15283
15284 if test $found = "no" ; then
15285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15287 fi
15288
15289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15291 fi
15292
15293 CFLAGS="$CFLAGS -Werror=implicit"
15294
15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15296 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15297 cacheid=xorg_cv_cc_flag__Werror_implicit
15298 if eval test \${$cacheid+y}
15299 then :
15300 printf %s "(cached) " >&6
15301 else $as_nop
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15304 int i;
15305 int
15306 main (void)
15307 {
15308
15309 ;
15310 return 0;
15311 }
15312 _ACEOF
15313 if ac_fn_c_try_link "$LINENO"
15314 then :
15315 eval $cacheid=yes
15316 else $as_nop
15317 eval $cacheid=no
15318 fi
15319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15320 conftest$ac_exeext conftest.$ac_ext
15321 fi
15322
15323
15324 CFLAGS="$xorg_testset_save_CFLAGS"
15325
15326 eval supported=\$$cacheid
15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15328 printf "%s\n" "$supported" >&6; }
15329 if test "$supported" = "yes" ; then
15330 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15331 found="yes"
15332 fi
15333 fi
15334
15335 if test $found = "no" ; then
15336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15338 fi
15339
15340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15342 fi
15343
15344 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15345
15346 { 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
15347 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15348 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15349 if eval test \${$cacheid+y}
15350 then :
15351 printf %s "(cached) " >&6
15352 else $as_nop
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15355 int i;
15356 int
15357 main (void)
15358 {
15359
15360 ;
15361 return 0;
15362 }
15363 _ACEOF
15364 if ac_fn_c_try_link "$LINENO"
15365 then :
15366 eval $cacheid=yes
15367 else $as_nop
15368 eval $cacheid=no
15369 fi
15370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15371 conftest$ac_exeext conftest.$ac_ext
15372 fi
15373
15374
15375 CFLAGS="$xorg_testset_save_CFLAGS"
15376
15377 eval supported=\$$cacheid
15378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15379 printf "%s\n" "$supported" >&6; }
15380 if test "$supported" = "yes" ; then
15381 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15382 found="yes"
15383 fi
15384 fi
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400 xorg_testset_save_CFLAGS="$CFLAGS"
15401
15402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15405 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15406 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15407 then :
15408 printf %s "(cached) " >&6
15409 else $as_nop
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15412 int i;
15413 _ACEOF
15414 if ac_fn_c_try_compile "$LINENO"
15415 then :
15416 xorg_cv_cc_flag_unknown_warning_option=yes
15417 else $as_nop
15418 xorg_cv_cc_flag_unknown_warning_option=no
15419 fi
15420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15421 fi
15422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15423 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15425 CFLAGS="$xorg_testset_save_CFLAGS"
15426 fi
15427
15428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15431 fi
15432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15434 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15435 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15436 then :
15437 printf %s "(cached) " >&6
15438 else $as_nop
15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h. */
15441 int i;
15442 _ACEOF
15443 if ac_fn_c_try_compile "$LINENO"
15444 then :
15445 xorg_cv_cc_flag_unused_command_line_argument=yes
15446 else $as_nop
15447 xorg_cv_cc_flag_unused_command_line_argument=no
15448 fi
15449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15450 fi
15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15452 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15454 CFLAGS="$xorg_testset_save_CFLAGS"
15455 fi
15456
15457 found="no"
15458
15459 if test $found = "no" ; then
15460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15462 fi
15463
15464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15466 fi
15467
15468 CFLAGS="$CFLAGS -Werror=nonnull"
15469
15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15471 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15472 cacheid=xorg_cv_cc_flag__Werror_nonnull
15473 if eval test \${$cacheid+y}
15474 then :
15475 printf %s "(cached) " >&6
15476 else $as_nop
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15479 int i;
15480 int
15481 main (void)
15482 {
15483
15484 ;
15485 return 0;
15486 }
15487 _ACEOF
15488 if ac_fn_c_try_link "$LINENO"
15489 then :
15490 eval $cacheid=yes
15491 else $as_nop
15492 eval $cacheid=no
15493 fi
15494 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15495 conftest$ac_exeext conftest.$ac_ext
15496 fi
15497
15498
15499 CFLAGS="$xorg_testset_save_CFLAGS"
15500
15501 eval supported=\$$cacheid
15502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15503 printf "%s\n" "$supported" >&6; }
15504 if test "$supported" = "yes" ; then
15505 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15506 found="yes"
15507 fi
15508 fi
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524 xorg_testset_save_CFLAGS="$CFLAGS"
15525
15526 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15529 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15530 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15531 then :
15532 printf %s "(cached) " >&6
15533 else $as_nop
15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535 /* end confdefs.h. */
15536 int i;
15537 _ACEOF
15538 if ac_fn_c_try_compile "$LINENO"
15539 then :
15540 xorg_cv_cc_flag_unknown_warning_option=yes
15541 else $as_nop
15542 xorg_cv_cc_flag_unknown_warning_option=no
15543 fi
15544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15545 fi
15546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15547 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15549 CFLAGS="$xorg_testset_save_CFLAGS"
15550 fi
15551
15552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15555 fi
15556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15558 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15559 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15560 then :
15561 printf %s "(cached) " >&6
15562 else $as_nop
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 int i;
15566 _ACEOF
15567 if ac_fn_c_try_compile "$LINENO"
15568 then :
15569 xorg_cv_cc_flag_unused_command_line_argument=yes
15570 else $as_nop
15571 xorg_cv_cc_flag_unused_command_line_argument=no
15572 fi
15573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15574 fi
15575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15576 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15578 CFLAGS="$xorg_testset_save_CFLAGS"
15579 fi
15580
15581 found="no"
15582
15583 if test $found = "no" ; then
15584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15586 fi
15587
15588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15590 fi
15591
15592 CFLAGS="$CFLAGS -Werror=init-self"
15593
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15595 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15596 cacheid=xorg_cv_cc_flag__Werror_init_self
15597 if eval test \${$cacheid+y}
15598 then :
15599 printf %s "(cached) " >&6
15600 else $as_nop
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603 int i;
15604 int
15605 main (void)
15606 {
15607
15608 ;
15609 return 0;
15610 }
15611 _ACEOF
15612 if ac_fn_c_try_link "$LINENO"
15613 then :
15614 eval $cacheid=yes
15615 else $as_nop
15616 eval $cacheid=no
15617 fi
15618 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15619 conftest$ac_exeext conftest.$ac_ext
15620 fi
15621
15622
15623 CFLAGS="$xorg_testset_save_CFLAGS"
15624
15625 eval supported=\$$cacheid
15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15627 printf "%s\n" "$supported" >&6; }
15628 if test "$supported" = "yes" ; then
15629 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15630 found="yes"
15631 fi
15632 fi
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648 xorg_testset_save_CFLAGS="$CFLAGS"
15649
15650 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15653 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15654 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15655 then :
15656 printf %s "(cached) " >&6
15657 else $as_nop
15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h. */
15660 int i;
15661 _ACEOF
15662 if ac_fn_c_try_compile "$LINENO"
15663 then :
15664 xorg_cv_cc_flag_unknown_warning_option=yes
15665 else $as_nop
15666 xorg_cv_cc_flag_unknown_warning_option=no
15667 fi
15668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15669 fi
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15671 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15673 CFLAGS="$xorg_testset_save_CFLAGS"
15674 fi
15675
15676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15679 fi
15680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15682 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15683 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15684 then :
15685 printf %s "(cached) " >&6
15686 else $as_nop
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15689 int i;
15690 _ACEOF
15691 if ac_fn_c_try_compile "$LINENO"
15692 then :
15693 xorg_cv_cc_flag_unused_command_line_argument=yes
15694 else $as_nop
15695 xorg_cv_cc_flag_unused_command_line_argument=no
15696 fi
15697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15698 fi
15699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15700 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15702 CFLAGS="$xorg_testset_save_CFLAGS"
15703 fi
15704
15705 found="no"
15706
15707 if test $found = "no" ; then
15708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15710 fi
15711
15712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15714 fi
15715
15716 CFLAGS="$CFLAGS -Werror=main"
15717
15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15719 printf %s "checking if $CC supports -Werror=main... " >&6; }
15720 cacheid=xorg_cv_cc_flag__Werror_main
15721 if eval test \${$cacheid+y}
15722 then :
15723 printf %s "(cached) " >&6
15724 else $as_nop
15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h. */
15727 int i;
15728 int
15729 main (void)
15730 {
15731
15732 ;
15733 return 0;
15734 }
15735 _ACEOF
15736 if ac_fn_c_try_link "$LINENO"
15737 then :
15738 eval $cacheid=yes
15739 else $as_nop
15740 eval $cacheid=no
15741 fi
15742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15743 conftest$ac_exeext conftest.$ac_ext
15744 fi
15745
15746
15747 CFLAGS="$xorg_testset_save_CFLAGS"
15748
15749 eval supported=\$$cacheid
15750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15751 printf "%s\n" "$supported" >&6; }
15752 if test "$supported" = "yes" ; then
15753 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15754 found="yes"
15755 fi
15756 fi
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772 xorg_testset_save_CFLAGS="$CFLAGS"
15773
15774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15777 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15778 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15779 then :
15780 printf %s "(cached) " >&6
15781 else $as_nop
15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783 /* end confdefs.h. */
15784 int i;
15785 _ACEOF
15786 if ac_fn_c_try_compile "$LINENO"
15787 then :
15788 xorg_cv_cc_flag_unknown_warning_option=yes
15789 else $as_nop
15790 xorg_cv_cc_flag_unknown_warning_option=no
15791 fi
15792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15793 fi
15794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15795 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15797 CFLAGS="$xorg_testset_save_CFLAGS"
15798 fi
15799
15800 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15803 fi
15804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15806 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15807 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15808 then :
15809 printf %s "(cached) " >&6
15810 else $as_nop
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813 int i;
15814 _ACEOF
15815 if ac_fn_c_try_compile "$LINENO"
15816 then :
15817 xorg_cv_cc_flag_unused_command_line_argument=yes
15818 else $as_nop
15819 xorg_cv_cc_flag_unused_command_line_argument=no
15820 fi
15821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15822 fi
15823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15824 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15826 CFLAGS="$xorg_testset_save_CFLAGS"
15827 fi
15828
15829 found="no"
15830
15831 if test $found = "no" ; then
15832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15834 fi
15835
15836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15838 fi
15839
15840 CFLAGS="$CFLAGS -Werror=missing-braces"
15841
15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15843 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15844 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15845 if eval test \${$cacheid+y}
15846 then :
15847 printf %s "(cached) " >&6
15848 else $as_nop
15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15851 int i;
15852 int
15853 main (void)
15854 {
15855
15856 ;
15857 return 0;
15858 }
15859 _ACEOF
15860 if ac_fn_c_try_link "$LINENO"
15861 then :
15862 eval $cacheid=yes
15863 else $as_nop
15864 eval $cacheid=no
15865 fi
15866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15867 conftest$ac_exeext conftest.$ac_ext
15868 fi
15869
15870
15871 CFLAGS="$xorg_testset_save_CFLAGS"
15872
15873 eval supported=\$$cacheid
15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15875 printf "%s\n" "$supported" >&6; }
15876 if test "$supported" = "yes" ; then
15877 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15878 found="yes"
15879 fi
15880 fi
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896 xorg_testset_save_CFLAGS="$CFLAGS"
15897
15898 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15901 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15902 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15903 then :
15904 printf %s "(cached) " >&6
15905 else $as_nop
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h. */
15908 int i;
15909 _ACEOF
15910 if ac_fn_c_try_compile "$LINENO"
15911 then :
15912 xorg_cv_cc_flag_unknown_warning_option=yes
15913 else $as_nop
15914 xorg_cv_cc_flag_unknown_warning_option=no
15915 fi
15916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15917 fi
15918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15919 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15921 CFLAGS="$xorg_testset_save_CFLAGS"
15922 fi
15923
15924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15927 fi
15928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15930 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15931 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15932 then :
15933 printf %s "(cached) " >&6
15934 else $as_nop
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15937 int i;
15938 _ACEOF
15939 if ac_fn_c_try_compile "$LINENO"
15940 then :
15941 xorg_cv_cc_flag_unused_command_line_argument=yes
15942 else $as_nop
15943 xorg_cv_cc_flag_unused_command_line_argument=no
15944 fi
15945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15946 fi
15947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15948 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15950 CFLAGS="$xorg_testset_save_CFLAGS"
15951 fi
15952
15953 found="no"
15954
15955 if test $found = "no" ; then
15956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15958 fi
15959
15960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15962 fi
15963
15964 CFLAGS="$CFLAGS -Werror=sequence-point"
15965
15966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15967 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15968 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15969 if eval test \${$cacheid+y}
15970 then :
15971 printf %s "(cached) " >&6
15972 else $as_nop
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15975 int i;
15976 int
15977 main (void)
15978 {
15979
15980 ;
15981 return 0;
15982 }
15983 _ACEOF
15984 if ac_fn_c_try_link "$LINENO"
15985 then :
15986 eval $cacheid=yes
15987 else $as_nop
15988 eval $cacheid=no
15989 fi
15990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15991 conftest$ac_exeext conftest.$ac_ext
15992 fi
15993
15994
15995 CFLAGS="$xorg_testset_save_CFLAGS"
15996
15997 eval supported=\$$cacheid
15998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15999 printf "%s\n" "$supported" >&6; }
16000 if test "$supported" = "yes" ; then
16001 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16002 found="yes"
16003 fi
16004 fi
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020 xorg_testset_save_CFLAGS="$CFLAGS"
16021
16022 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16025 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16026 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16027 then :
16028 printf %s "(cached) " >&6
16029 else $as_nop
16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16032 int i;
16033 _ACEOF
16034 if ac_fn_c_try_compile "$LINENO"
16035 then :
16036 xorg_cv_cc_flag_unknown_warning_option=yes
16037 else $as_nop
16038 xorg_cv_cc_flag_unknown_warning_option=no
16039 fi
16040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16041 fi
16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16043 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16045 CFLAGS="$xorg_testset_save_CFLAGS"
16046 fi
16047
16048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16051 fi
16052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16054 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16055 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16056 then :
16057 printf %s "(cached) " >&6
16058 else $as_nop
16059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h. */
16061 int i;
16062 _ACEOF
16063 if ac_fn_c_try_compile "$LINENO"
16064 then :
16065 xorg_cv_cc_flag_unused_command_line_argument=yes
16066 else $as_nop
16067 xorg_cv_cc_flag_unused_command_line_argument=no
16068 fi
16069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16070 fi
16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16072 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16074 CFLAGS="$xorg_testset_save_CFLAGS"
16075 fi
16076
16077 found="no"
16078
16079 if test $found = "no" ; then
16080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16082 fi
16083
16084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16086 fi
16087
16088 CFLAGS="$CFLAGS -Werror=return-type"
16089
16090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16091 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16092 cacheid=xorg_cv_cc_flag__Werror_return_type
16093 if eval test \${$cacheid+y}
16094 then :
16095 printf %s "(cached) " >&6
16096 else $as_nop
16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098 /* end confdefs.h. */
16099 int i;
16100 int
16101 main (void)
16102 {
16103
16104 ;
16105 return 0;
16106 }
16107 _ACEOF
16108 if ac_fn_c_try_link "$LINENO"
16109 then :
16110 eval $cacheid=yes
16111 else $as_nop
16112 eval $cacheid=no
16113 fi
16114 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16115 conftest$ac_exeext conftest.$ac_ext
16116 fi
16117
16118
16119 CFLAGS="$xorg_testset_save_CFLAGS"
16120
16121 eval supported=\$$cacheid
16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16123 printf "%s\n" "$supported" >&6; }
16124 if test "$supported" = "yes" ; then
16125 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16126 found="yes"
16127 fi
16128 fi
16129
16130 if test $found = "no" ; then
16131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16133 fi
16134
16135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16137 fi
16138
16139 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16140
16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16142 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16143 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16144 if eval test \${$cacheid+y}
16145 then :
16146 printf %s "(cached) " >&6
16147 else $as_nop
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h. */
16150 int i;
16151 int
16152 main (void)
16153 {
16154
16155 ;
16156 return 0;
16157 }
16158 _ACEOF
16159 if ac_fn_c_try_link "$LINENO"
16160 then :
16161 eval $cacheid=yes
16162 else $as_nop
16163 eval $cacheid=no
16164 fi
16165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16166 conftest$ac_exeext conftest.$ac_ext
16167 fi
16168
16169
16170 CFLAGS="$xorg_testset_save_CFLAGS"
16171
16172 eval supported=\$$cacheid
16173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16174 printf "%s\n" "$supported" >&6; }
16175 if test "$supported" = "yes" ; then
16176 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16177 found="yes"
16178 fi
16179 fi
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195 xorg_testset_save_CFLAGS="$CFLAGS"
16196
16197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16200 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16201 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16202 then :
16203 printf %s "(cached) " >&6
16204 else $as_nop
16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16207 int i;
16208 _ACEOF
16209 if ac_fn_c_try_compile "$LINENO"
16210 then :
16211 xorg_cv_cc_flag_unknown_warning_option=yes
16212 else $as_nop
16213 xorg_cv_cc_flag_unknown_warning_option=no
16214 fi
16215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16216 fi
16217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16218 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16220 CFLAGS="$xorg_testset_save_CFLAGS"
16221 fi
16222
16223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16226 fi
16227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16229 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16230 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16231 then :
16232 printf %s "(cached) " >&6
16233 else $as_nop
16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235 /* end confdefs.h. */
16236 int i;
16237 _ACEOF
16238 if ac_fn_c_try_compile "$LINENO"
16239 then :
16240 xorg_cv_cc_flag_unused_command_line_argument=yes
16241 else $as_nop
16242 xorg_cv_cc_flag_unused_command_line_argument=no
16243 fi
16244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16245 fi
16246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16247 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16249 CFLAGS="$xorg_testset_save_CFLAGS"
16250 fi
16251
16252 found="no"
16253
16254 if test $found = "no" ; then
16255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16257 fi
16258
16259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16261 fi
16262
16263 CFLAGS="$CFLAGS -Werror=trigraphs"
16264
16265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16266 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16267 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16268 if eval test \${$cacheid+y}
16269 then :
16270 printf %s "(cached) " >&6
16271 else $as_nop
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16274 int i;
16275 int
16276 main (void)
16277 {
16278
16279 ;
16280 return 0;
16281 }
16282 _ACEOF
16283 if ac_fn_c_try_link "$LINENO"
16284 then :
16285 eval $cacheid=yes
16286 else $as_nop
16287 eval $cacheid=no
16288 fi
16289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16290 conftest$ac_exeext conftest.$ac_ext
16291 fi
16292
16293
16294 CFLAGS="$xorg_testset_save_CFLAGS"
16295
16296 eval supported=\$$cacheid
16297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16298 printf "%s\n" "$supported" >&6; }
16299 if test "$supported" = "yes" ; then
16300 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16301 found="yes"
16302 fi
16303 fi
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319 xorg_testset_save_CFLAGS="$CFLAGS"
16320
16321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16324 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16325 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16326 then :
16327 printf %s "(cached) " >&6
16328 else $as_nop
16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h. */
16331 int i;
16332 _ACEOF
16333 if ac_fn_c_try_compile "$LINENO"
16334 then :
16335 xorg_cv_cc_flag_unknown_warning_option=yes
16336 else $as_nop
16337 xorg_cv_cc_flag_unknown_warning_option=no
16338 fi
16339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16340 fi
16341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16342 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16344 CFLAGS="$xorg_testset_save_CFLAGS"
16345 fi
16346
16347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16350 fi
16351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16353 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16354 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16355 then :
16356 printf %s "(cached) " >&6
16357 else $as_nop
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16360 int i;
16361 _ACEOF
16362 if ac_fn_c_try_compile "$LINENO"
16363 then :
16364 xorg_cv_cc_flag_unused_command_line_argument=yes
16365 else $as_nop
16366 xorg_cv_cc_flag_unused_command_line_argument=no
16367 fi
16368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16369 fi
16370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16371 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16373 CFLAGS="$xorg_testset_save_CFLAGS"
16374 fi
16375
16376 found="no"
16377
16378 if test $found = "no" ; then
16379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16381 fi
16382
16383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16385 fi
16386
16387 CFLAGS="$CFLAGS -Werror=array-bounds"
16388
16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16390 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16391 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16392 if eval test \${$cacheid+y}
16393 then :
16394 printf %s "(cached) " >&6
16395 else $as_nop
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398 int i;
16399 int
16400 main (void)
16401 {
16402
16403 ;
16404 return 0;
16405 }
16406 _ACEOF
16407 if ac_fn_c_try_link "$LINENO"
16408 then :
16409 eval $cacheid=yes
16410 else $as_nop
16411 eval $cacheid=no
16412 fi
16413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16414 conftest$ac_exeext conftest.$ac_ext
16415 fi
16416
16417
16418 CFLAGS="$xorg_testset_save_CFLAGS"
16419
16420 eval supported=\$$cacheid
16421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16422 printf "%s\n" "$supported" >&6; }
16423 if test "$supported" = "yes" ; then
16424 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16425 found="yes"
16426 fi
16427 fi
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443 xorg_testset_save_CFLAGS="$CFLAGS"
16444
16445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16448 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16449 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16450 then :
16451 printf %s "(cached) " >&6
16452 else $as_nop
16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16455 int i;
16456 _ACEOF
16457 if ac_fn_c_try_compile "$LINENO"
16458 then :
16459 xorg_cv_cc_flag_unknown_warning_option=yes
16460 else $as_nop
16461 xorg_cv_cc_flag_unknown_warning_option=no
16462 fi
16463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16464 fi
16465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16466 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16468 CFLAGS="$xorg_testset_save_CFLAGS"
16469 fi
16470
16471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16474 fi
16475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16477 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16478 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16479 then :
16480 printf %s "(cached) " >&6
16481 else $as_nop
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16484 int i;
16485 _ACEOF
16486 if ac_fn_c_try_compile "$LINENO"
16487 then :
16488 xorg_cv_cc_flag_unused_command_line_argument=yes
16489 else $as_nop
16490 xorg_cv_cc_flag_unused_command_line_argument=no
16491 fi
16492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16493 fi
16494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16495 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16497 CFLAGS="$xorg_testset_save_CFLAGS"
16498 fi
16499
16500 found="no"
16501
16502 if test $found = "no" ; then
16503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16505 fi
16506
16507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16509 fi
16510
16511 CFLAGS="$CFLAGS -Werror=write-strings"
16512
16513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16514 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16515 cacheid=xorg_cv_cc_flag__Werror_write_strings
16516 if eval test \${$cacheid+y}
16517 then :
16518 printf %s "(cached) " >&6
16519 else $as_nop
16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16522 int i;
16523 int
16524 main (void)
16525 {
16526
16527 ;
16528 return 0;
16529 }
16530 _ACEOF
16531 if ac_fn_c_try_link "$LINENO"
16532 then :
16533 eval $cacheid=yes
16534 else $as_nop
16535 eval $cacheid=no
16536 fi
16537 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16538 conftest$ac_exeext conftest.$ac_ext
16539 fi
16540
16541
16542 CFLAGS="$xorg_testset_save_CFLAGS"
16543
16544 eval supported=\$$cacheid
16545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16546 printf "%s\n" "$supported" >&6; }
16547 if test "$supported" = "yes" ; then
16548 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16549 found="yes"
16550 fi
16551 fi
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567 xorg_testset_save_CFLAGS="$CFLAGS"
16568
16569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16572 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16573 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16574 then :
16575 printf %s "(cached) " >&6
16576 else $as_nop
16577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578 /* end confdefs.h. */
16579 int i;
16580 _ACEOF
16581 if ac_fn_c_try_compile "$LINENO"
16582 then :
16583 xorg_cv_cc_flag_unknown_warning_option=yes
16584 else $as_nop
16585 xorg_cv_cc_flag_unknown_warning_option=no
16586 fi
16587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16588 fi
16589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16590 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16592 CFLAGS="$xorg_testset_save_CFLAGS"
16593 fi
16594
16595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16598 fi
16599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16601 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16602 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16603 then :
16604 printf %s "(cached) " >&6
16605 else $as_nop
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16608 int i;
16609 _ACEOF
16610 if ac_fn_c_try_compile "$LINENO"
16611 then :
16612 xorg_cv_cc_flag_unused_command_line_argument=yes
16613 else $as_nop
16614 xorg_cv_cc_flag_unused_command_line_argument=no
16615 fi
16616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16617 fi
16618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16619 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16621 CFLAGS="$xorg_testset_save_CFLAGS"
16622 fi
16623
16624 found="no"
16625
16626 if test $found = "no" ; then
16627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16629 fi
16630
16631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16633 fi
16634
16635 CFLAGS="$CFLAGS -Werror=address"
16636
16637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16638 printf %s "checking if $CC supports -Werror=address... " >&6; }
16639 cacheid=xorg_cv_cc_flag__Werror_address
16640 if eval test \${$cacheid+y}
16641 then :
16642 printf %s "(cached) " >&6
16643 else $as_nop
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16646 int i;
16647 int
16648 main (void)
16649 {
16650
16651 ;
16652 return 0;
16653 }
16654 _ACEOF
16655 if ac_fn_c_try_link "$LINENO"
16656 then :
16657 eval $cacheid=yes
16658 else $as_nop
16659 eval $cacheid=no
16660 fi
16661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16662 conftest$ac_exeext conftest.$ac_ext
16663 fi
16664
16665
16666 CFLAGS="$xorg_testset_save_CFLAGS"
16667
16668 eval supported=\$$cacheid
16669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16670 printf "%s\n" "$supported" >&6; }
16671 if test "$supported" = "yes" ; then
16672 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16673 found="yes"
16674 fi
16675 fi
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691 xorg_testset_save_CFLAGS="$CFLAGS"
16692
16693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16696 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16697 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16698 then :
16699 printf %s "(cached) " >&6
16700 else $as_nop
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16703 int i;
16704 _ACEOF
16705 if ac_fn_c_try_compile "$LINENO"
16706 then :
16707 xorg_cv_cc_flag_unknown_warning_option=yes
16708 else $as_nop
16709 xorg_cv_cc_flag_unknown_warning_option=no
16710 fi
16711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16712 fi
16713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16714 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16716 CFLAGS="$xorg_testset_save_CFLAGS"
16717 fi
16718
16719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16722 fi
16723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16725 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16726 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16727 then :
16728 printf %s "(cached) " >&6
16729 else $as_nop
16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h. */
16732 int i;
16733 _ACEOF
16734 if ac_fn_c_try_compile "$LINENO"
16735 then :
16736 xorg_cv_cc_flag_unused_command_line_argument=yes
16737 else $as_nop
16738 xorg_cv_cc_flag_unused_command_line_argument=no
16739 fi
16740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16741 fi
16742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16743 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16745 CFLAGS="$xorg_testset_save_CFLAGS"
16746 fi
16747
16748 found="no"
16749
16750 if test $found = "no" ; then
16751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16753 fi
16754
16755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16757 fi
16758
16759 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16760
16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16762 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16763 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16764 if eval test \${$cacheid+y}
16765 then :
16766 printf %s "(cached) " >&6
16767 else $as_nop
16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16770 int i;
16771 int
16772 main (void)
16773 {
16774
16775 ;
16776 return 0;
16777 }
16778 _ACEOF
16779 if ac_fn_c_try_link "$LINENO"
16780 then :
16781 eval $cacheid=yes
16782 else $as_nop
16783 eval $cacheid=no
16784 fi
16785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16786 conftest$ac_exeext conftest.$ac_ext
16787 fi
16788
16789
16790 CFLAGS="$xorg_testset_save_CFLAGS"
16791
16792 eval supported=\$$cacheid
16793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16794 printf "%s\n" "$supported" >&6; }
16795 if test "$supported" = "yes" ; then
16796 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16797 found="yes"
16798 fi
16799 fi
16800
16801 if test $found = "no" ; then
16802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16804 fi
16805
16806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16808 fi
16809
16810 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16811
16812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16813 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16814 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16815 if eval test \${$cacheid+y}
16816 then :
16817 printf %s "(cached) " >&6
16818 else $as_nop
16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h. */
16821 int i;
16822 int
16823 main (void)
16824 {
16825
16826 ;
16827 return 0;
16828 }
16829 _ACEOF
16830 if ac_fn_c_try_link "$LINENO"
16831 then :
16832 eval $cacheid=yes
16833 else $as_nop
16834 eval $cacheid=no
16835 fi
16836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16837 conftest$ac_exeext conftest.$ac_ext
16838 fi
16839
16840
16841 CFLAGS="$xorg_testset_save_CFLAGS"
16842
16843 eval supported=\$$cacheid
16844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16845 printf "%s\n" "$supported" >&6; }
16846 if test "$supported" = "yes" ; then
16847 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16848 found="yes"
16849 fi
16850 fi
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866 xorg_testset_save_CFLAGS="$CFLAGS"
16867
16868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16871 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16872 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16873 then :
16874 printf %s "(cached) " >&6
16875 else $as_nop
16876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877 /* end confdefs.h. */
16878 int i;
16879 _ACEOF
16880 if ac_fn_c_try_compile "$LINENO"
16881 then :
16882 xorg_cv_cc_flag_unknown_warning_option=yes
16883 else $as_nop
16884 xorg_cv_cc_flag_unknown_warning_option=no
16885 fi
16886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16887 fi
16888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16889 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16891 CFLAGS="$xorg_testset_save_CFLAGS"
16892 fi
16893
16894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16897 fi
16898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16900 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16901 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16902 then :
16903 printf %s "(cached) " >&6
16904 else $as_nop
16905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906 /* end confdefs.h. */
16907 int i;
16908 _ACEOF
16909 if ac_fn_c_try_compile "$LINENO"
16910 then :
16911 xorg_cv_cc_flag_unused_command_line_argument=yes
16912 else $as_nop
16913 xorg_cv_cc_flag_unused_command_line_argument=no
16914 fi
16915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16916 fi
16917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16918 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16920 CFLAGS="$xorg_testset_save_CFLAGS"
16921 fi
16922
16923 found="no"
16924
16925 if test $found = "no" ; then
16926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16928 fi
16929
16930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16932 fi
16933
16934 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16935
16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16937 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16938 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16939 if eval test \${$cacheid+y}
16940 then :
16941 printf %s "(cached) " >&6
16942 else $as_nop
16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944 /* end confdefs.h. */
16945 int i;
16946 int
16947 main (void)
16948 {
16949
16950 ;
16951 return 0;
16952 }
16953 _ACEOF
16954 if ac_fn_c_try_link "$LINENO"
16955 then :
16956 eval $cacheid=yes
16957 else $as_nop
16958 eval $cacheid=no
16959 fi
16960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16961 conftest$ac_exeext conftest.$ac_ext
16962 fi
16963
16964
16965 CFLAGS="$xorg_testset_save_CFLAGS"
16966
16967 eval supported=\$$cacheid
16968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16969 printf "%s\n" "$supported" >&6; }
16970 if test "$supported" = "yes" ; then
16971 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16972 found="yes"
16973 fi
16974 fi
16975
16976 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16977 else
16978 { 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
16979 printf "%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;}
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993 xorg_testset_save_CFLAGS="$CFLAGS"
16994
16995 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16998 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16999 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17000 then :
17001 printf %s "(cached) " >&6
17002 else $as_nop
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17005 int i;
17006 _ACEOF
17007 if ac_fn_c_try_compile "$LINENO"
17008 then :
17009 xorg_cv_cc_flag_unknown_warning_option=yes
17010 else $as_nop
17011 xorg_cv_cc_flag_unknown_warning_option=no
17012 fi
17013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17014 fi
17015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17016 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17018 CFLAGS="$xorg_testset_save_CFLAGS"
17019 fi
17020
17021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17024 fi
17025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17027 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17028 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17029 then :
17030 printf %s "(cached) " >&6
17031 else $as_nop
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034 int i;
17035 _ACEOF
17036 if ac_fn_c_try_compile "$LINENO"
17037 then :
17038 xorg_cv_cc_flag_unused_command_line_argument=yes
17039 else $as_nop
17040 xorg_cv_cc_flag_unused_command_line_argument=no
17041 fi
17042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17043 fi
17044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17045 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17047 CFLAGS="$xorg_testset_save_CFLAGS"
17048 fi
17049
17050 found="no"
17051
17052 if test $found = "no" ; then
17053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17055 fi
17056
17057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17059 fi
17060
17061 CFLAGS="$CFLAGS -Wimplicit"
17062
17063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17064 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17065 cacheid=xorg_cv_cc_flag__Wimplicit
17066 if eval test \${$cacheid+y}
17067 then :
17068 printf %s "(cached) " >&6
17069 else $as_nop
17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071 /* end confdefs.h. */
17072 int i;
17073 int
17074 main (void)
17075 {
17076
17077 ;
17078 return 0;
17079 }
17080 _ACEOF
17081 if ac_fn_c_try_link "$LINENO"
17082 then :
17083 eval $cacheid=yes
17084 else $as_nop
17085 eval $cacheid=no
17086 fi
17087 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17088 conftest$ac_exeext conftest.$ac_ext
17089 fi
17090
17091
17092 CFLAGS="$xorg_testset_save_CFLAGS"
17093
17094 eval supported=\$$cacheid
17095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17096 printf "%s\n" "$supported" >&6; }
17097 if test "$supported" = "yes" ; then
17098 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17099 found="yes"
17100 fi
17101 fi
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117 xorg_testset_save_CFLAGS="$CFLAGS"
17118
17119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17122 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17123 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17124 then :
17125 printf %s "(cached) " >&6
17126 else $as_nop
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17129 int i;
17130 _ACEOF
17131 if ac_fn_c_try_compile "$LINENO"
17132 then :
17133 xorg_cv_cc_flag_unknown_warning_option=yes
17134 else $as_nop
17135 xorg_cv_cc_flag_unknown_warning_option=no
17136 fi
17137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17138 fi
17139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17140 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17142 CFLAGS="$xorg_testset_save_CFLAGS"
17143 fi
17144
17145 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17148 fi
17149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17151 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17152 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17153 then :
17154 printf %s "(cached) " >&6
17155 else $as_nop
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h. */
17158 int i;
17159 _ACEOF
17160 if ac_fn_c_try_compile "$LINENO"
17161 then :
17162 xorg_cv_cc_flag_unused_command_line_argument=yes
17163 else $as_nop
17164 xorg_cv_cc_flag_unused_command_line_argument=no
17165 fi
17166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17167 fi
17168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17169 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17171 CFLAGS="$xorg_testset_save_CFLAGS"
17172 fi
17173
17174 found="no"
17175
17176 if test $found = "no" ; then
17177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17179 fi
17180
17181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17183 fi
17184
17185 CFLAGS="$CFLAGS -Wnonnull"
17186
17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17188 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17189 cacheid=xorg_cv_cc_flag__Wnonnull
17190 if eval test \${$cacheid+y}
17191 then :
17192 printf %s "(cached) " >&6
17193 else $as_nop
17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h. */
17196 int i;
17197 int
17198 main (void)
17199 {
17200
17201 ;
17202 return 0;
17203 }
17204 _ACEOF
17205 if ac_fn_c_try_link "$LINENO"
17206 then :
17207 eval $cacheid=yes
17208 else $as_nop
17209 eval $cacheid=no
17210 fi
17211 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17212 conftest$ac_exeext conftest.$ac_ext
17213 fi
17214
17215
17216 CFLAGS="$xorg_testset_save_CFLAGS"
17217
17218 eval supported=\$$cacheid
17219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17220 printf "%s\n" "$supported" >&6; }
17221 if test "$supported" = "yes" ; then
17222 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17223 found="yes"
17224 fi
17225 fi
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241 xorg_testset_save_CFLAGS="$CFLAGS"
17242
17243 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17246 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17247 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17248 then :
17249 printf %s "(cached) " >&6
17250 else $as_nop
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17253 int i;
17254 _ACEOF
17255 if ac_fn_c_try_compile "$LINENO"
17256 then :
17257 xorg_cv_cc_flag_unknown_warning_option=yes
17258 else $as_nop
17259 xorg_cv_cc_flag_unknown_warning_option=no
17260 fi
17261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17262 fi
17263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17266 CFLAGS="$xorg_testset_save_CFLAGS"
17267 fi
17268
17269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17272 fi
17273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17277 then :
17278 printf %s "(cached) " >&6
17279 else $as_nop
17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17282 int i;
17283 _ACEOF
17284 if ac_fn_c_try_compile "$LINENO"
17285 then :
17286 xorg_cv_cc_flag_unused_command_line_argument=yes
17287 else $as_nop
17288 xorg_cv_cc_flag_unused_command_line_argument=no
17289 fi
17290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17291 fi
17292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17293 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17295 CFLAGS="$xorg_testset_save_CFLAGS"
17296 fi
17297
17298 found="no"
17299
17300 if test $found = "no" ; then
17301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17303 fi
17304
17305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17307 fi
17308
17309 CFLAGS="$CFLAGS -Winit-self"
17310
17311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17312 printf %s "checking if $CC supports -Winit-self... " >&6; }
17313 cacheid=xorg_cv_cc_flag__Winit_self
17314 if eval test \${$cacheid+y}
17315 then :
17316 printf %s "(cached) " >&6
17317 else $as_nop
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320 int i;
17321 int
17322 main (void)
17323 {
17324
17325 ;
17326 return 0;
17327 }
17328 _ACEOF
17329 if ac_fn_c_try_link "$LINENO"
17330 then :
17331 eval $cacheid=yes
17332 else $as_nop
17333 eval $cacheid=no
17334 fi
17335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17336 conftest$ac_exeext conftest.$ac_ext
17337 fi
17338
17339
17340 CFLAGS="$xorg_testset_save_CFLAGS"
17341
17342 eval supported=\$$cacheid
17343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17344 printf "%s\n" "$supported" >&6; }
17345 if test "$supported" = "yes" ; then
17346 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17347 found="yes"
17348 fi
17349 fi
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365 xorg_testset_save_CFLAGS="$CFLAGS"
17366
17367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17370 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17371 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17372 then :
17373 printf %s "(cached) " >&6
17374 else $as_nop
17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h. */
17377 int i;
17378 _ACEOF
17379 if ac_fn_c_try_compile "$LINENO"
17380 then :
17381 xorg_cv_cc_flag_unknown_warning_option=yes
17382 else $as_nop
17383 xorg_cv_cc_flag_unknown_warning_option=no
17384 fi
17385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17386 fi
17387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17388 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17390 CFLAGS="$xorg_testset_save_CFLAGS"
17391 fi
17392
17393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17396 fi
17397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17399 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17400 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17401 then :
17402 printf %s "(cached) " >&6
17403 else $as_nop
17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405 /* end confdefs.h. */
17406 int i;
17407 _ACEOF
17408 if ac_fn_c_try_compile "$LINENO"
17409 then :
17410 xorg_cv_cc_flag_unused_command_line_argument=yes
17411 else $as_nop
17412 xorg_cv_cc_flag_unused_command_line_argument=no
17413 fi
17414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17415 fi
17416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17417 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17419 CFLAGS="$xorg_testset_save_CFLAGS"
17420 fi
17421
17422 found="no"
17423
17424 if test $found = "no" ; then
17425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17427 fi
17428
17429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17431 fi
17432
17433 CFLAGS="$CFLAGS -Wmain"
17434
17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17436 printf %s "checking if $CC supports -Wmain... " >&6; }
17437 cacheid=xorg_cv_cc_flag__Wmain
17438 if eval test \${$cacheid+y}
17439 then :
17440 printf %s "(cached) " >&6
17441 else $as_nop
17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h. */
17444 int i;
17445 int
17446 main (void)
17447 {
17448
17449 ;
17450 return 0;
17451 }
17452 _ACEOF
17453 if ac_fn_c_try_link "$LINENO"
17454 then :
17455 eval $cacheid=yes
17456 else $as_nop
17457 eval $cacheid=no
17458 fi
17459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17460 conftest$ac_exeext conftest.$ac_ext
17461 fi
17462
17463
17464 CFLAGS="$xorg_testset_save_CFLAGS"
17465
17466 eval supported=\$$cacheid
17467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17468 printf "%s\n" "$supported" >&6; }
17469 if test "$supported" = "yes" ; then
17470 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17471 found="yes"
17472 fi
17473 fi
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489 xorg_testset_save_CFLAGS="$CFLAGS"
17490
17491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17494 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17495 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17496 then :
17497 printf %s "(cached) " >&6
17498 else $as_nop
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500 /* end confdefs.h. */
17501 int i;
17502 _ACEOF
17503 if ac_fn_c_try_compile "$LINENO"
17504 then :
17505 xorg_cv_cc_flag_unknown_warning_option=yes
17506 else $as_nop
17507 xorg_cv_cc_flag_unknown_warning_option=no
17508 fi
17509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17510 fi
17511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17512 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17514 CFLAGS="$xorg_testset_save_CFLAGS"
17515 fi
17516
17517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17520 fi
17521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17523 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17524 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17525 then :
17526 printf %s "(cached) " >&6
17527 else $as_nop
17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529 /* end confdefs.h. */
17530 int i;
17531 _ACEOF
17532 if ac_fn_c_try_compile "$LINENO"
17533 then :
17534 xorg_cv_cc_flag_unused_command_line_argument=yes
17535 else $as_nop
17536 xorg_cv_cc_flag_unused_command_line_argument=no
17537 fi
17538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17539 fi
17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17541 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17543 CFLAGS="$xorg_testset_save_CFLAGS"
17544 fi
17545
17546 found="no"
17547
17548 if test $found = "no" ; then
17549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17551 fi
17552
17553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17555 fi
17556
17557 CFLAGS="$CFLAGS -Wmissing-braces"
17558
17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17560 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17561 cacheid=xorg_cv_cc_flag__Wmissing_braces
17562 if eval test \${$cacheid+y}
17563 then :
17564 printf %s "(cached) " >&6
17565 else $as_nop
17566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17567 /* end confdefs.h. */
17568 int i;
17569 int
17570 main (void)
17571 {
17572
17573 ;
17574 return 0;
17575 }
17576 _ACEOF
17577 if ac_fn_c_try_link "$LINENO"
17578 then :
17579 eval $cacheid=yes
17580 else $as_nop
17581 eval $cacheid=no
17582 fi
17583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17584 conftest$ac_exeext conftest.$ac_ext
17585 fi
17586
17587
17588 CFLAGS="$xorg_testset_save_CFLAGS"
17589
17590 eval supported=\$$cacheid
17591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17592 printf "%s\n" "$supported" >&6; }
17593 if test "$supported" = "yes" ; then
17594 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17595 found="yes"
17596 fi
17597 fi
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613 xorg_testset_save_CFLAGS="$CFLAGS"
17614
17615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17618 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17619 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17620 then :
17621 printf %s "(cached) " >&6
17622 else $as_nop
17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17625 int i;
17626 _ACEOF
17627 if ac_fn_c_try_compile "$LINENO"
17628 then :
17629 xorg_cv_cc_flag_unknown_warning_option=yes
17630 else $as_nop
17631 xorg_cv_cc_flag_unknown_warning_option=no
17632 fi
17633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17634 fi
17635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17638 CFLAGS="$xorg_testset_save_CFLAGS"
17639 fi
17640
17641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17644 fi
17645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17649 then :
17650 printf %s "(cached) " >&6
17651 else $as_nop
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17654 int i;
17655 _ACEOF
17656 if ac_fn_c_try_compile "$LINENO"
17657 then :
17658 xorg_cv_cc_flag_unused_command_line_argument=yes
17659 else $as_nop
17660 xorg_cv_cc_flag_unused_command_line_argument=no
17661 fi
17662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17663 fi
17664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17665 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17667 CFLAGS="$xorg_testset_save_CFLAGS"
17668 fi
17669
17670 found="no"
17671
17672 if test $found = "no" ; then
17673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17675 fi
17676
17677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17679 fi
17680
17681 CFLAGS="$CFLAGS -Wsequence-point"
17682
17683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17684 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17685 cacheid=xorg_cv_cc_flag__Wsequence_point
17686 if eval test \${$cacheid+y}
17687 then :
17688 printf %s "(cached) " >&6
17689 else $as_nop
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17692 int i;
17693 int
17694 main (void)
17695 {
17696
17697 ;
17698 return 0;
17699 }
17700 _ACEOF
17701 if ac_fn_c_try_link "$LINENO"
17702 then :
17703 eval $cacheid=yes
17704 else $as_nop
17705 eval $cacheid=no
17706 fi
17707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17708 conftest$ac_exeext conftest.$ac_ext
17709 fi
17710
17711
17712 CFLAGS="$xorg_testset_save_CFLAGS"
17713
17714 eval supported=\$$cacheid
17715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17716 printf "%s\n" "$supported" >&6; }
17717 if test "$supported" = "yes" ; then
17718 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17719 found="yes"
17720 fi
17721 fi
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737 xorg_testset_save_CFLAGS="$CFLAGS"
17738
17739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17742 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17743 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17744 then :
17745 printf %s "(cached) " >&6
17746 else $as_nop
17747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17748 /* end confdefs.h. */
17749 int i;
17750 _ACEOF
17751 if ac_fn_c_try_compile "$LINENO"
17752 then :
17753 xorg_cv_cc_flag_unknown_warning_option=yes
17754 else $as_nop
17755 xorg_cv_cc_flag_unknown_warning_option=no
17756 fi
17757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17758 fi
17759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17760 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17762 CFLAGS="$xorg_testset_save_CFLAGS"
17763 fi
17764
17765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17768 fi
17769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17771 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17772 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17773 then :
17774 printf %s "(cached) " >&6
17775 else $as_nop
17776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777 /* end confdefs.h. */
17778 int i;
17779 _ACEOF
17780 if ac_fn_c_try_compile "$LINENO"
17781 then :
17782 xorg_cv_cc_flag_unused_command_line_argument=yes
17783 else $as_nop
17784 xorg_cv_cc_flag_unused_command_line_argument=no
17785 fi
17786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17787 fi
17788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17789 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17791 CFLAGS="$xorg_testset_save_CFLAGS"
17792 fi
17793
17794 found="no"
17795
17796 if test $found = "no" ; then
17797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17799 fi
17800
17801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17803 fi
17804
17805 CFLAGS="$CFLAGS -Wreturn-type"
17806
17807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17808 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17809 cacheid=xorg_cv_cc_flag__Wreturn_type
17810 if eval test \${$cacheid+y}
17811 then :
17812 printf %s "(cached) " >&6
17813 else $as_nop
17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815 /* end confdefs.h. */
17816 int i;
17817 int
17818 main (void)
17819 {
17820
17821 ;
17822 return 0;
17823 }
17824 _ACEOF
17825 if ac_fn_c_try_link "$LINENO"
17826 then :
17827 eval $cacheid=yes
17828 else $as_nop
17829 eval $cacheid=no
17830 fi
17831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17832 conftest$ac_exeext conftest.$ac_ext
17833 fi
17834
17835
17836 CFLAGS="$xorg_testset_save_CFLAGS"
17837
17838 eval supported=\$$cacheid
17839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17840 printf "%s\n" "$supported" >&6; }
17841 if test "$supported" = "yes" ; then
17842 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17843 found="yes"
17844 fi
17845 fi
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861 xorg_testset_save_CFLAGS="$CFLAGS"
17862
17863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17866 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17867 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17868 then :
17869 printf %s "(cached) " >&6
17870 else $as_nop
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17873 int i;
17874 _ACEOF
17875 if ac_fn_c_try_compile "$LINENO"
17876 then :
17877 xorg_cv_cc_flag_unknown_warning_option=yes
17878 else $as_nop
17879 xorg_cv_cc_flag_unknown_warning_option=no
17880 fi
17881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17882 fi
17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17884 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17886 CFLAGS="$xorg_testset_save_CFLAGS"
17887 fi
17888
17889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17892 fi
17893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17895 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17896 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17897 then :
17898 printf %s "(cached) " >&6
17899 else $as_nop
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17902 int i;
17903 _ACEOF
17904 if ac_fn_c_try_compile "$LINENO"
17905 then :
17906 xorg_cv_cc_flag_unused_command_line_argument=yes
17907 else $as_nop
17908 xorg_cv_cc_flag_unused_command_line_argument=no
17909 fi
17910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17911 fi
17912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17913 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17915 CFLAGS="$xorg_testset_save_CFLAGS"
17916 fi
17917
17918 found="no"
17919
17920 if test $found = "no" ; then
17921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17923 fi
17924
17925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17927 fi
17928
17929 CFLAGS="$CFLAGS -Wtrigraphs"
17930
17931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17932 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17933 cacheid=xorg_cv_cc_flag__Wtrigraphs
17934 if eval test \${$cacheid+y}
17935 then :
17936 printf %s "(cached) " >&6
17937 else $as_nop
17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17940 int i;
17941 int
17942 main (void)
17943 {
17944
17945 ;
17946 return 0;
17947 }
17948 _ACEOF
17949 if ac_fn_c_try_link "$LINENO"
17950 then :
17951 eval $cacheid=yes
17952 else $as_nop
17953 eval $cacheid=no
17954 fi
17955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17956 conftest$ac_exeext conftest.$ac_ext
17957 fi
17958
17959
17960 CFLAGS="$xorg_testset_save_CFLAGS"
17961
17962 eval supported=\$$cacheid
17963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17964 printf "%s\n" "$supported" >&6; }
17965 if test "$supported" = "yes" ; then
17966 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17967 found="yes"
17968 fi
17969 fi
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985 xorg_testset_save_CFLAGS="$CFLAGS"
17986
17987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17991 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17992 then :
17993 printf %s "(cached) " >&6
17994 else $as_nop
17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
17997 int i;
17998 _ACEOF
17999 if ac_fn_c_try_compile "$LINENO"
18000 then :
18001 xorg_cv_cc_flag_unknown_warning_option=yes
18002 else $as_nop
18003 xorg_cv_cc_flag_unknown_warning_option=no
18004 fi
18005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18006 fi
18007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18008 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18010 CFLAGS="$xorg_testset_save_CFLAGS"
18011 fi
18012
18013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18016 fi
18017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18019 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18020 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18021 then :
18022 printf %s "(cached) " >&6
18023 else $as_nop
18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18026 int i;
18027 _ACEOF
18028 if ac_fn_c_try_compile "$LINENO"
18029 then :
18030 xorg_cv_cc_flag_unused_command_line_argument=yes
18031 else $as_nop
18032 xorg_cv_cc_flag_unused_command_line_argument=no
18033 fi
18034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18035 fi
18036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18037 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18039 CFLAGS="$xorg_testset_save_CFLAGS"
18040 fi
18041
18042 found="no"
18043
18044 if test $found = "no" ; then
18045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18047 fi
18048
18049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18051 fi
18052
18053 CFLAGS="$CFLAGS -Warray-bounds"
18054
18055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18056 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18057 cacheid=xorg_cv_cc_flag__Warray_bounds
18058 if eval test \${$cacheid+y}
18059 then :
18060 printf %s "(cached) " >&6
18061 else $as_nop
18062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063 /* end confdefs.h. */
18064 int i;
18065 int
18066 main (void)
18067 {
18068
18069 ;
18070 return 0;
18071 }
18072 _ACEOF
18073 if ac_fn_c_try_link "$LINENO"
18074 then :
18075 eval $cacheid=yes
18076 else $as_nop
18077 eval $cacheid=no
18078 fi
18079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18080 conftest$ac_exeext conftest.$ac_ext
18081 fi
18082
18083
18084 CFLAGS="$xorg_testset_save_CFLAGS"
18085
18086 eval supported=\$$cacheid
18087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18088 printf "%s\n" "$supported" >&6; }
18089 if test "$supported" = "yes" ; then
18090 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18091 found="yes"
18092 fi
18093 fi
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109 xorg_testset_save_CFLAGS="$CFLAGS"
18110
18111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18115 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18116 then :
18117 printf %s "(cached) " >&6
18118 else $as_nop
18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18121 int i;
18122 _ACEOF
18123 if ac_fn_c_try_compile "$LINENO"
18124 then :
18125 xorg_cv_cc_flag_unknown_warning_option=yes
18126 else $as_nop
18127 xorg_cv_cc_flag_unknown_warning_option=no
18128 fi
18129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18130 fi
18131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18132 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18134 CFLAGS="$xorg_testset_save_CFLAGS"
18135 fi
18136
18137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18140 fi
18141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18143 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18144 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18145 then :
18146 printf %s "(cached) " >&6
18147 else $as_nop
18148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149 /* end confdefs.h. */
18150 int i;
18151 _ACEOF
18152 if ac_fn_c_try_compile "$LINENO"
18153 then :
18154 xorg_cv_cc_flag_unused_command_line_argument=yes
18155 else $as_nop
18156 xorg_cv_cc_flag_unused_command_line_argument=no
18157 fi
18158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18159 fi
18160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18161 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18163 CFLAGS="$xorg_testset_save_CFLAGS"
18164 fi
18165
18166 found="no"
18167
18168 if test $found = "no" ; then
18169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18171 fi
18172
18173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18175 fi
18176
18177 CFLAGS="$CFLAGS -Wwrite-strings"
18178
18179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18180 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18181 cacheid=xorg_cv_cc_flag__Wwrite_strings
18182 if eval test \${$cacheid+y}
18183 then :
18184 printf %s "(cached) " >&6
18185 else $as_nop
18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187 /* end confdefs.h. */
18188 int i;
18189 int
18190 main (void)
18191 {
18192
18193 ;
18194 return 0;
18195 }
18196 _ACEOF
18197 if ac_fn_c_try_link "$LINENO"
18198 then :
18199 eval $cacheid=yes
18200 else $as_nop
18201 eval $cacheid=no
18202 fi
18203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18204 conftest$ac_exeext conftest.$ac_ext
18205 fi
18206
18207
18208 CFLAGS="$xorg_testset_save_CFLAGS"
18209
18210 eval supported=\$$cacheid
18211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18212 printf "%s\n" "$supported" >&6; }
18213 if test "$supported" = "yes" ; then
18214 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18215 found="yes"
18216 fi
18217 fi
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233 xorg_testset_save_CFLAGS="$CFLAGS"
18234
18235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18239 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18240 then :
18241 printf %s "(cached) " >&6
18242 else $as_nop
18243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244 /* end confdefs.h. */
18245 int i;
18246 _ACEOF
18247 if ac_fn_c_try_compile "$LINENO"
18248 then :
18249 xorg_cv_cc_flag_unknown_warning_option=yes
18250 else $as_nop
18251 xorg_cv_cc_flag_unknown_warning_option=no
18252 fi
18253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18254 fi
18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18258 CFLAGS="$xorg_testset_save_CFLAGS"
18259 fi
18260
18261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18264 fi
18265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18269 then :
18270 printf %s "(cached) " >&6
18271 else $as_nop
18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274 int i;
18275 _ACEOF
18276 if ac_fn_c_try_compile "$LINENO"
18277 then :
18278 xorg_cv_cc_flag_unused_command_line_argument=yes
18279 else $as_nop
18280 xorg_cv_cc_flag_unused_command_line_argument=no
18281 fi
18282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18283 fi
18284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18285 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18287 CFLAGS="$xorg_testset_save_CFLAGS"
18288 fi
18289
18290 found="no"
18291
18292 if test $found = "no" ; then
18293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18295 fi
18296
18297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18299 fi
18300
18301 CFLAGS="$CFLAGS -Waddress"
18302
18303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18304 printf %s "checking if $CC supports -Waddress... " >&6; }
18305 cacheid=xorg_cv_cc_flag__Waddress
18306 if eval test \${$cacheid+y}
18307 then :
18308 printf %s "(cached) " >&6
18309 else $as_nop
18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311 /* end confdefs.h. */
18312 int i;
18313 int
18314 main (void)
18315 {
18316
18317 ;
18318 return 0;
18319 }
18320 _ACEOF
18321 if ac_fn_c_try_link "$LINENO"
18322 then :
18323 eval $cacheid=yes
18324 else $as_nop
18325 eval $cacheid=no
18326 fi
18327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18328 conftest$ac_exeext conftest.$ac_ext
18329 fi
18330
18331
18332 CFLAGS="$xorg_testset_save_CFLAGS"
18333
18334 eval supported=\$$cacheid
18335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18336 printf "%s\n" "$supported" >&6; }
18337 if test "$supported" = "yes" ; then
18338 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18339 found="yes"
18340 fi
18341 fi
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357 xorg_testset_save_CFLAGS="$CFLAGS"
18358
18359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18362 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18363 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18364 then :
18365 printf %s "(cached) " >&6
18366 else $as_nop
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18369 int i;
18370 _ACEOF
18371 if ac_fn_c_try_compile "$LINENO"
18372 then :
18373 xorg_cv_cc_flag_unknown_warning_option=yes
18374 else $as_nop
18375 xorg_cv_cc_flag_unknown_warning_option=no
18376 fi
18377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18378 fi
18379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18380 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18382 CFLAGS="$xorg_testset_save_CFLAGS"
18383 fi
18384
18385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18388 fi
18389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18391 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18392 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18393 then :
18394 printf %s "(cached) " >&6
18395 else $as_nop
18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18398 int i;
18399 _ACEOF
18400 if ac_fn_c_try_compile "$LINENO"
18401 then :
18402 xorg_cv_cc_flag_unused_command_line_argument=yes
18403 else $as_nop
18404 xorg_cv_cc_flag_unused_command_line_argument=no
18405 fi
18406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18407 fi
18408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18409 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18411 CFLAGS="$xorg_testset_save_CFLAGS"
18412 fi
18413
18414 found="no"
18415
18416 if test $found = "no" ; then
18417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18419 fi
18420
18421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18423 fi
18424
18425 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18426
18427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18428 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18429 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18430 if eval test \${$cacheid+y}
18431 then :
18432 printf %s "(cached) " >&6
18433 else $as_nop
18434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435 /* end confdefs.h. */
18436 int i;
18437 int
18438 main (void)
18439 {
18440
18441 ;
18442 return 0;
18443 }
18444 _ACEOF
18445 if ac_fn_c_try_link "$LINENO"
18446 then :
18447 eval $cacheid=yes
18448 else $as_nop
18449 eval $cacheid=no
18450 fi
18451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18452 conftest$ac_exeext conftest.$ac_ext
18453 fi
18454
18455
18456 CFLAGS="$xorg_testset_save_CFLAGS"
18457
18458 eval supported=\$$cacheid
18459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18460 printf "%s\n" "$supported" >&6; }
18461 if test "$supported" = "yes" ; then
18462 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18463 found="yes"
18464 fi
18465 fi
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481 xorg_testset_save_CFLAGS="$CFLAGS"
18482
18483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18486 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18487 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18488 then :
18489 printf %s "(cached) " >&6
18490 else $as_nop
18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h. */
18493 int i;
18494 _ACEOF
18495 if ac_fn_c_try_compile "$LINENO"
18496 then :
18497 xorg_cv_cc_flag_unknown_warning_option=yes
18498 else $as_nop
18499 xorg_cv_cc_flag_unknown_warning_option=no
18500 fi
18501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18502 fi
18503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18504 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18506 CFLAGS="$xorg_testset_save_CFLAGS"
18507 fi
18508
18509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18512 fi
18513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18515 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18516 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18517 then :
18518 printf %s "(cached) " >&6
18519 else $as_nop
18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18522 int i;
18523 _ACEOF
18524 if ac_fn_c_try_compile "$LINENO"
18525 then :
18526 xorg_cv_cc_flag_unused_command_line_argument=yes
18527 else $as_nop
18528 xorg_cv_cc_flag_unused_command_line_argument=no
18529 fi
18530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18531 fi
18532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18533 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18535 CFLAGS="$xorg_testset_save_CFLAGS"
18536 fi
18537
18538 found="no"
18539
18540 if test $found = "no" ; then
18541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18543 fi
18544
18545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18547 fi
18548
18549 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18550
18551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18552 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18553 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18554 if eval test \${$cacheid+y}
18555 then :
18556 printf %s "(cached) " >&6
18557 else $as_nop
18558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559 /* end confdefs.h. */
18560 int i;
18561 int
18562 main (void)
18563 {
18564
18565 ;
18566 return 0;
18567 }
18568 _ACEOF
18569 if ac_fn_c_try_link "$LINENO"
18570 then :
18571 eval $cacheid=yes
18572 else $as_nop
18573 eval $cacheid=no
18574 fi
18575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18576 conftest$ac_exeext conftest.$ac_ext
18577 fi
18578
18579
18580 CFLAGS="$xorg_testset_save_CFLAGS"
18581
18582 eval supported=\$$cacheid
18583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18584 printf "%s\n" "$supported" >&6; }
18585 if test "$supported" = "yes" ; then
18586 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18587 found="yes"
18588 fi
18589 fi
18590
18591
18592 fi
18593
18594
18595
18596
18597
18598
18599
18600 CWARNFLAGS="$BASE_CFLAGS"
18601 if test "x$GCC" = xyes ; then
18602 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18603 fi
18604
18605
18606
18607
18608
18609
18610
18611
18612 # Check whether --enable-strict-compilation was given.
18613 if test ${enable_strict_compilation+y}
18614 then :
18615 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18616 else $as_nop
18617 STRICT_COMPILE=no
18618 fi
18619
18620
18621
18622
18623
18624
18625 STRICT_CFLAGS=""
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639 xorg_testset_save_CFLAGS="$CFLAGS"
18640
18641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18644 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18645 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18646 then :
18647 printf %s "(cached) " >&6
18648 else $as_nop
18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650 /* end confdefs.h. */
18651 int i;
18652 _ACEOF
18653 if ac_fn_c_try_compile "$LINENO"
18654 then :
18655 xorg_cv_cc_flag_unknown_warning_option=yes
18656 else $as_nop
18657 xorg_cv_cc_flag_unknown_warning_option=no
18658 fi
18659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18660 fi
18661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18662 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18664 CFLAGS="$xorg_testset_save_CFLAGS"
18665 fi
18666
18667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18670 fi
18671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18673 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18674 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18675 then :
18676 printf %s "(cached) " >&6
18677 else $as_nop
18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18680 int i;
18681 _ACEOF
18682 if ac_fn_c_try_compile "$LINENO"
18683 then :
18684 xorg_cv_cc_flag_unused_command_line_argument=yes
18685 else $as_nop
18686 xorg_cv_cc_flag_unused_command_line_argument=no
18687 fi
18688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18689 fi
18690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18691 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18693 CFLAGS="$xorg_testset_save_CFLAGS"
18694 fi
18695
18696 found="no"
18697
18698 if test $found = "no" ; then
18699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18701 fi
18702
18703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18705 fi
18706
18707 CFLAGS="$CFLAGS -pedantic"
18708
18709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18710 printf %s "checking if $CC supports -pedantic... " >&6; }
18711 cacheid=xorg_cv_cc_flag__pedantic
18712 if eval test \${$cacheid+y}
18713 then :
18714 printf %s "(cached) " >&6
18715 else $as_nop
18716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717 /* end confdefs.h. */
18718 int i;
18719 int
18720 main (void)
18721 {
18722
18723 ;
18724 return 0;
18725 }
18726 _ACEOF
18727 if ac_fn_c_try_link "$LINENO"
18728 then :
18729 eval $cacheid=yes
18730 else $as_nop
18731 eval $cacheid=no
18732 fi
18733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18734 conftest$ac_exeext conftest.$ac_ext
18735 fi
18736
18737
18738 CFLAGS="$xorg_testset_save_CFLAGS"
18739
18740 eval supported=\$$cacheid
18741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18742 printf "%s\n" "$supported" >&6; }
18743 if test "$supported" = "yes" ; then
18744 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18745 found="yes"
18746 fi
18747 fi
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763 xorg_testset_save_CFLAGS="$CFLAGS"
18764
18765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18768 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18769 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18770 then :
18771 printf %s "(cached) " >&6
18772 else $as_nop
18773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774 /* end confdefs.h. */
18775 int i;
18776 _ACEOF
18777 if ac_fn_c_try_compile "$LINENO"
18778 then :
18779 xorg_cv_cc_flag_unknown_warning_option=yes
18780 else $as_nop
18781 xorg_cv_cc_flag_unknown_warning_option=no
18782 fi
18783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18784 fi
18785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18786 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18788 CFLAGS="$xorg_testset_save_CFLAGS"
18789 fi
18790
18791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18794 fi
18795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18797 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18798 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18799 then :
18800 printf %s "(cached) " >&6
18801 else $as_nop
18802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803 /* end confdefs.h. */
18804 int i;
18805 _ACEOF
18806 if ac_fn_c_try_compile "$LINENO"
18807 then :
18808 xorg_cv_cc_flag_unused_command_line_argument=yes
18809 else $as_nop
18810 xorg_cv_cc_flag_unused_command_line_argument=no
18811 fi
18812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18813 fi
18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18815 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18817 CFLAGS="$xorg_testset_save_CFLAGS"
18818 fi
18819
18820 found="no"
18821
18822 if test $found = "no" ; then
18823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18825 fi
18826
18827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18829 fi
18830
18831 CFLAGS="$CFLAGS -Werror"
18832
18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18834 printf %s "checking if $CC supports -Werror... " >&6; }
18835 cacheid=xorg_cv_cc_flag__Werror
18836 if eval test \${$cacheid+y}
18837 then :
18838 printf %s "(cached) " >&6
18839 else $as_nop
18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841 /* end confdefs.h. */
18842 int i;
18843 int
18844 main (void)
18845 {
18846
18847 ;
18848 return 0;
18849 }
18850 _ACEOF
18851 if ac_fn_c_try_link "$LINENO"
18852 then :
18853 eval $cacheid=yes
18854 else $as_nop
18855 eval $cacheid=no
18856 fi
18857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18858 conftest$ac_exeext conftest.$ac_ext
18859 fi
18860
18861
18862 CFLAGS="$xorg_testset_save_CFLAGS"
18863
18864 eval supported=\$$cacheid
18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18866 printf "%s\n" "$supported" >&6; }
18867 if test "$supported" = "yes" ; then
18868 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18869 found="yes"
18870 fi
18871 fi
18872
18873 if test $found = "no" ; then
18874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18876 fi
18877
18878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18880 fi
18881
18882 CFLAGS="$CFLAGS -errwarn"
18883
18884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18885 printf %s "checking if $CC supports -errwarn... " >&6; }
18886 cacheid=xorg_cv_cc_flag__errwarn
18887 if eval test \${$cacheid+y}
18888 then :
18889 printf %s "(cached) " >&6
18890 else $as_nop
18891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892 /* end confdefs.h. */
18893 int i;
18894 int
18895 main (void)
18896 {
18897
18898 ;
18899 return 0;
18900 }
18901 _ACEOF
18902 if ac_fn_c_try_link "$LINENO"
18903 then :
18904 eval $cacheid=yes
18905 else $as_nop
18906 eval $cacheid=no
18907 fi
18908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18909 conftest$ac_exeext conftest.$ac_ext
18910 fi
18911
18912
18913 CFLAGS="$xorg_testset_save_CFLAGS"
18914
18915 eval supported=\$$cacheid
18916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18917 printf "%s\n" "$supported" >&6; }
18918 if test "$supported" = "yes" ; then
18919 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18920 found="yes"
18921 fi
18922 fi
18923
18924
18925
18926 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18927 # activate it with -Werror, so we add it here explicitly.
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941 xorg_testset_save_CFLAGS="$CFLAGS"
18942
18943 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18946 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18947 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18948 then :
18949 printf %s "(cached) " >&6
18950 else $as_nop
18951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952 /* end confdefs.h. */
18953 int i;
18954 _ACEOF
18955 if ac_fn_c_try_compile "$LINENO"
18956 then :
18957 xorg_cv_cc_flag_unknown_warning_option=yes
18958 else $as_nop
18959 xorg_cv_cc_flag_unknown_warning_option=no
18960 fi
18961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18962 fi
18963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18964 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18966 CFLAGS="$xorg_testset_save_CFLAGS"
18967 fi
18968
18969 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18972 fi
18973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18975 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18976 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18977 then :
18978 printf %s "(cached) " >&6
18979 else $as_nop
18980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18981 /* end confdefs.h. */
18982 int i;
18983 _ACEOF
18984 if ac_fn_c_try_compile "$LINENO"
18985 then :
18986 xorg_cv_cc_flag_unused_command_line_argument=yes
18987 else $as_nop
18988 xorg_cv_cc_flag_unused_command_line_argument=no
18989 fi
18990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18991 fi
18992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18993 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18995 CFLAGS="$xorg_testset_save_CFLAGS"
18996 fi
18997
18998 found="no"
18999
19000 if test $found = "no" ; then
19001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19003 fi
19004
19005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19007 fi
19008
19009 CFLAGS="$CFLAGS -Werror=attributes"
19010
19011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19012 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19013 cacheid=xorg_cv_cc_flag__Werror_attributes
19014 if eval test \${$cacheid+y}
19015 then :
19016 printf %s "(cached) " >&6
19017 else $as_nop
19018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19019 /* end confdefs.h. */
19020 int i;
19021 int
19022 main (void)
19023 {
19024
19025 ;
19026 return 0;
19027 }
19028 _ACEOF
19029 if ac_fn_c_try_link "$LINENO"
19030 then :
19031 eval $cacheid=yes
19032 else $as_nop
19033 eval $cacheid=no
19034 fi
19035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19036 conftest$ac_exeext conftest.$ac_ext
19037 fi
19038
19039
19040 CFLAGS="$xorg_testset_save_CFLAGS"
19041
19042 eval supported=\$$cacheid
19043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19044 printf "%s\n" "$supported" >&6; }
19045 if test "$supported" = "yes" ; then
19046 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19047 found="yes"
19048 fi
19049 fi
19050
19051
19052
19053 if test "x$STRICT_COMPILE" = "xyes"; then
19054 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19055 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19056 fi
19057
19058
19059
19060
19061
19062
19063
19064
19065 cat >>confdefs.h <<_ACEOF
19066 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19067 _ACEOF
19068
19069 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19070 if test "x$PVM" = "x"; then
19071 PVM="0"
19072 fi
19073
19074 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19075
19076 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19077 if test "x$PVP" = "x"; then
19078 PVP="0"
19079 fi
19080
19081 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19082
19083
19084
19085 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19086 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19087 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19088 touch \$(top_srcdir)/ChangeLog; \
19089 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19090
19091
19092
19093
19094 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19095 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19096 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19097 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19098 touch \$(top_srcdir)/INSTALL; \
19099 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19100
19101
19102
19103
19104
19105
19106 case $host_os in
19107 solaris*)
19108 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19109 # check for a man page file found in later versions that use
19110 # traditional section numbers instead
19111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19112 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19113 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19114 then :
19115 printf %s "(cached) " >&6
19116 else $as_nop
19117 test "$cross_compiling" = yes &&
19118 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19119 if test -r "/usr/share/man/man7/attributes.7"; then
19120 ac_cv_file__usr_share_man_man7_attributes_7=yes
19121 else
19122 ac_cv_file__usr_share_man_man7_attributes_7=no
19123 fi
19124 fi
19125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19126 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19127 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19128 then :
19129 SYSV_MAN_SECTIONS=false
19130 else $as_nop
19131 SYSV_MAN_SECTIONS=true
19132 fi
19133
19134 ;;
19135 *) SYSV_MAN_SECTIONS=false ;;
19136 esac
19137
19138 if test x$APP_MAN_SUFFIX = x ; then
19139 APP_MAN_SUFFIX=1
19140 fi
19141 if test x$APP_MAN_DIR = x ; then
19142 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19143 fi
19144
19145 if test x$LIB_MAN_SUFFIX = x ; then
19146 LIB_MAN_SUFFIX=3
19147 fi
19148 if test x$LIB_MAN_DIR = x ; then
19149 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19150 fi
19151
19152 if test x$FILE_MAN_SUFFIX = x ; then
19153 case $SYSV_MAN_SECTIONS in
19154 true) FILE_MAN_SUFFIX=4 ;;
19155 *) FILE_MAN_SUFFIX=5 ;;
19156 esac
19157 fi
19158 if test x$FILE_MAN_DIR = x ; then
19159 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19160 fi
19161
19162 if test x$MISC_MAN_SUFFIX = x ; then
19163 case $SYSV_MAN_SECTIONS in
19164 true) MISC_MAN_SUFFIX=5 ;;
19165 *) MISC_MAN_SUFFIX=7 ;;
19166 esac
19167 fi
19168 if test x$MISC_MAN_DIR = x ; then
19169 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19170 fi
19171
19172 if test x$DRIVER_MAN_SUFFIX = x ; then
19173 case $SYSV_MAN_SECTIONS in
19174 true) DRIVER_MAN_SUFFIX=7 ;;
19175 *) DRIVER_MAN_SUFFIX=4 ;;
19176 esac
19177 fi
19178 if test x$DRIVER_MAN_DIR = x ; then
19179 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19180 fi
19181
19182 if test x$ADMIN_MAN_SUFFIX = x ; then
19183 case $SYSV_MAN_SECTIONS in
19184 true) ADMIN_MAN_SUFFIX=1m ;;
19185 *) ADMIN_MAN_SUFFIX=8 ;;
19186 esac
19187 fi
19188 if test x$ADMIN_MAN_DIR = x ; then
19189 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19190 fi
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206 XORG_MAN_PAGE="X Version 11"
19207
19208 MAN_SUBSTS="\
19209 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19210 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19211 -e 's|__xservername__|Xorg|g' \
19212 -e 's|__xconfigfile__|xorg.conf|g' \
19213 -e 's|__projectroot__|\$(prefix)|g' \
19214 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19215 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19216 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19217 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19218 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19219 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19220 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19221
19222
19223
19224 # Check whether --enable-silent-rules was given.
19225 if test ${enable_silent_rules+y}
19226 then :
19227 enableval=$enable_silent_rules;
19228 fi
19229
19230 case $enable_silent_rules in # (((
19231 yes) AM_DEFAULT_VERBOSITY=0;;
19232 no) AM_DEFAULT_VERBOSITY=1;;
19233 *) AM_DEFAULT_VERBOSITY=0;;
19234 esac
19235 am_make=${MAKE-make}
19236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19237 printf %s "checking whether $am_make supports nested variables... " >&6; }
19238 if test ${am_cv_make_support_nested_variables+y}
19239 then :
19240 printf %s "(cached) " >&6
19241 else $as_nop
19242 if printf "%s\n" 'TRUE=$(BAR$(V))
19243 BAR0=false
19244 BAR1=true
19245 V=1
19246 am__doit:
19247 @$(TRUE)
19248 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19249 am_cv_make_support_nested_variables=yes
19250 else
19251 am_cv_make_support_nested_variables=no
19252 fi
19253 fi
19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19255 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19256 if test $am_cv_make_support_nested_variables = yes; then
19257 AM_V='$(V)'
19258 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19259 else
19260 AM_V=$AM_DEFAULT_VERBOSITY
19261 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19262 fi
19263 AM_BACKSLASH='\'
19264
19265
19266
19267
19268 # Set library version for Xft.h from package version set in AC_INIT
19269 # copied from PACKAGE_VERSION_* settings in XORG_VERSION
19270 ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h"
19271
19272
19273 cat >>confdefs.h <<_ACEOF
19274 #define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19275 _ACEOF
19276
19277
19278 cat >>confdefs.h <<_ACEOF
19279 #define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19280 _ACEOF
19281
19282
19283 cat >>confdefs.h <<_ACEOF
19284 #define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19285 _ACEOF
19286
19287
19288 XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'`
19289
19290
19291 #
19292 # Check for Xrender
19293 #
19294
19295 pkg_failed=no
19296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
19297 printf %s "checking for XRENDER... " >&6; }
19298
19299 if test -n "$XRENDER_CFLAGS"; then
19300 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
19301 elif test -n "$PKG_CONFIG"; then
19302 if test -n "$PKG_CONFIG" && \
19303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
19304 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
19305 ac_status=$?
19306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19307 test $ac_status = 0; }; then
19308 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11" 2>/dev/null`
19309 test "x$?" != "x0" && pkg_failed=yes
19310 else
19311 pkg_failed=yes
19312 fi
19313 else
19314 pkg_failed=untried
19315 fi
19316 if test -n "$XRENDER_LIBS"; then
19317 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
19318 elif test -n "$PKG_CONFIG"; then
19319 if test -n "$PKG_CONFIG" && \
19320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
19321 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
19322 ac_status=$?
19323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19324 test $ac_status = 0; }; then
19325 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11" 2>/dev/null`
19326 test "x$?" != "x0" && pkg_failed=yes
19327 else
19328 pkg_failed=yes
19329 fi
19330 else
19331 pkg_failed=untried
19332 fi
19333
19334
19335
19336 if test $pkg_failed = yes; then
19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19338 printf "%s\n" "no" >&6; }
19339
19340 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19341 _pkg_short_errors_supported=yes
19342 else
19343 _pkg_short_errors_supported=no
19344 fi
19345 if test $_pkg_short_errors_supported = yes; then
19346 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
19347 else
19348 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
19349 fi
19350 # Put the nasty error message in config.log where it belongs
19351 echo "$XRENDER_PKG_ERRORS" >&5
19352
19353 as_fn_error $? "Package requirements (xrender >= 0.8.2 x11) were not met:
19354
19355 $XRENDER_PKG_ERRORS
19356
19357 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19358 installed software in a non-standard prefix.
19359
19360 Alternatively, you may set the environment variables XRENDER_CFLAGS
19361 and XRENDER_LIBS to avoid the need to call pkg-config.
19362 See the pkg-config man page for more details." "$LINENO" 5
19363 elif test $pkg_failed = untried; then
19364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19365 printf "%s\n" "no" >&6; }
19366 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19367 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19368 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19369 is in your PATH or set the PKG_CONFIG environment variable to the full
19370 path to pkg-config.
19371
19372 Alternatively, you may set the environment variables XRENDER_CFLAGS
19373 and XRENDER_LIBS to avoid the need to call pkg-config.
19374 See the pkg-config man page for more details.
19375
19376 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19377 See \`config.log' for more details" "$LINENO" 5; }
19378 else
19379 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
19380 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19382 printf "%s\n" "yes" >&6; }
19383
19384 fi
19385
19386 # Check freetype configuration
19387
19388 pkg_failed=no
19389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
19390 printf %s "checking for FREETYPE... " >&6; }
19391
19392 if test -n "$FREETYPE_CFLAGS"; then
19393 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
19394 elif test -n "$PKG_CONFIG"; then
19395 if test -n "$PKG_CONFIG" && \
19396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
19397 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
19398 ac_status=$?
19399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19400 test $ac_status = 0; }; then
19401 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null`
19402 test "x$?" != "x0" && pkg_failed=yes
19403 else
19404 pkg_failed=yes
19405 fi
19406 else
19407 pkg_failed=untried
19408 fi
19409 if test -n "$FREETYPE_LIBS"; then
19410 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
19411 elif test -n "$PKG_CONFIG"; then
19412 if test -n "$PKG_CONFIG" && \
19413 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
19414 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
19415 ac_status=$?
19416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19417 test $ac_status = 0; }; then
19418 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null`
19419 test "x$?" != "x0" && pkg_failed=yes
19420 else
19421 pkg_failed=yes
19422 fi
19423 else
19424 pkg_failed=untried
19425 fi
19426
19427
19428
19429 if test $pkg_failed = yes; then
19430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431 printf "%s\n" "no" >&6; }
19432
19433 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19434 _pkg_short_errors_supported=yes
19435 else
19436 _pkg_short_errors_supported=no
19437 fi
19438 if test $_pkg_short_errors_supported = yes; then
19439 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
19440 else
19441 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
19442 fi
19443 # Put the nasty error message in config.log where it belongs
19444 echo "$FREETYPE_PKG_ERRORS" >&5
19445
19446 as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met:
19447
19448 $FREETYPE_PKG_ERRORS
19449
19450 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19451 installed software in a non-standard prefix.
19452
19453 Alternatively, you may set the environment variables FREETYPE_CFLAGS
19454 and FREETYPE_LIBS to avoid the need to call pkg-config.
19455 See the pkg-config man page for more details." "$LINENO" 5
19456 elif test $pkg_failed = untried; then
19457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19458 printf "%s\n" "no" >&6; }
19459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19460 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19461 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19462 is in your PATH or set the PKG_CONFIG environment variable to the full
19463 path to pkg-config.
19464
19465 Alternatively, you may set the environment variables FREETYPE_CFLAGS
19466 and FREETYPE_LIBS to avoid the need to call pkg-config.
19467 See the pkg-config man page for more details.
19468
19469 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19470 See \`config.log' for more details" "$LINENO" 5; }
19471 else
19472 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
19473 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19475 printf "%s\n" "yes" >&6; }
19476
19477 fi
19478
19479 # Check fontconfig configuration
19480
19481 pkg_failed=no
19482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
19483 printf %s "checking for FONTCONFIG... " >&6; }
19484
19485 if test -n "$FONTCONFIG_CFLAGS"; then
19486 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
19487 elif test -n "$PKG_CONFIG"; then
19488 if test -n "$PKG_CONFIG" && \
19489 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
19490 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
19491 ac_status=$?
19492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19493 test $ac_status = 0; }; then
19494 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null`
19495 test "x$?" != "x0" && pkg_failed=yes
19496 else
19497 pkg_failed=yes
19498 fi
19499 else
19500 pkg_failed=untried
19501 fi
19502 if test -n "$FONTCONFIG_LIBS"; then
19503 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
19504 elif test -n "$PKG_CONFIG"; then
19505 if test -n "$PKG_CONFIG" && \
19506 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
19507 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
19508 ac_status=$?
19509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19510 test $ac_status = 0; }; then
19511 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null`
19512 test "x$?" != "x0" && pkg_failed=yes
19513 else
19514 pkg_failed=yes
19515 fi
19516 else
19517 pkg_failed=untried
19518 fi
19519
19520
19521
19522 if test $pkg_failed = yes; then
19523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19524 printf "%s\n" "no" >&6; }
19525
19526 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19527 _pkg_short_errors_supported=yes
19528 else
19529 _pkg_short_errors_supported=no
19530 fi
19531 if test $_pkg_short_errors_supported = yes; then
19532 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
19533 else
19534 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
19535 fi
19536 # Put the nasty error message in config.log where it belongs
19537 echo "$FONTCONFIG_PKG_ERRORS" >&5
19538
19539 as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met:
19540
19541 $FONTCONFIG_PKG_ERRORS
19542
19543 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19544 installed software in a non-standard prefix.
19545
19546 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
19547 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
19548 See the pkg-config man page for more details." "$LINENO" 5
19549 elif test $pkg_failed = untried; then
19550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19551 printf "%s\n" "no" >&6; }
19552 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19553 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19554 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19555 is in your PATH or set the PKG_CONFIG environment variable to the full
19556 path to pkg-config.
19557
19558 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
19559 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
19560 See the pkg-config man page for more details.
19561
19562 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19563 See \`config.log' for more details" "$LINENO" 5; }
19564 else
19565 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
19566 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
19567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19568 printf "%s\n" "yes" >&6; }
19569
19570 fi
19571
19572
19573
19574
19575
19576
19577
19578
19579 if test "$VERSION" = "" ; then
19580 VERSION=$PACKAGE_VERSION;
19581 fi
19582
19583 ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile"
19584
19585 cat >confcache <<\_ACEOF
19586 # This file is a shell script that caches the results of configure
19587 # tests run on this system so they can be shared between configure
19588 # scripts and configure runs, see configure's option --config-cache.
19589 # It is not useful on other systems. If it contains results you don't
19590 # want to keep, you may remove or edit it.
19591 #
19592 # config.status only pays attention to the cache file if you give it
19593 # the --recheck option to rerun configure.
19594 #
19595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19597 # following values.
19598
19599 _ACEOF
19600
19601 # The following way of writing the cache mishandles newlines in values,
19602 # but we know of no workaround that is simple, portable, and efficient.
19603 # So, we kill variables containing newlines.
19604 # Ultrix sh set writes to stderr and can't be redirected directly,
19605 # and sets the high bit in the cache file unless we assign to the vars.
19606 (
19607 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19608 eval ac_val=\$$ac_var
19609 case $ac_val in #(
19610 *${as_nl}*)
19611 case $ac_var in #(
19612 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19613 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19614 esac
19615 case $ac_var in #(
19616 _ | IFS | as_nl) ;; #(
19617 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19618 *) { eval $ac_var=; unset $ac_var;} ;;
19619 esac ;;
19620 esac
19621 done
19622
19623 (set) 2>&1 |
19624 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19625 *${as_nl}ac_space=\ *)
19626 # `set' does not quote correctly, so add quotes: double-quote
19627 # substitution turns \\\\ into \\, and sed turns \\ into \.
19628 sed -n \
19629 "s/'/'\\\\''/g;
19630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19631 ;; #(
19632 *)
19633 # `set' quotes correctly as required by POSIX, so do not add quotes.
19634 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19635 ;;
19636 esac |
19637 sort
19638 ) |
19639 sed '
19640 /^ac_cv_env_/b end
19641 t clear
19642 :clear
19643 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19644 t end
19645 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19646 :end' >>confcache
19647 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19648 if test -w "$cache_file"; then
19649 if test "x$cache_file" != "x/dev/null"; then
19650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19651 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19652 if test ! -f "$cache_file" || test -h "$cache_file"; then
19653 cat confcache >"$cache_file"
19654 else
19655 case $cache_file in #(
19656 */* | ?:*)
19657 mv -f confcache "$cache_file"$$ &&
19658 mv -f "$cache_file"$$ "$cache_file" ;; #(
19659 *)
19660 mv -f confcache "$cache_file" ;;
19661 esac
19662 fi
19663 fi
19664 else
19665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19666 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19667 fi
19668 fi
19669 rm -f confcache
19670
19671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19672 # Let make expand exec_prefix.
19673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19674
19675 DEFS=-DHAVE_CONFIG_H
19676
19677 ac_libobjs=
19678 ac_ltlibobjs=
19679 U=
19680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19681 # 1. Remove the extension, and $U if already installed.
19682 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19683 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19684 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19685 # will be set to the directory where LIBOBJS objects are built.
19686 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19687 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19688 done
19689 LIBOBJS=$ac_libobjs
19690
19691 LTLIBOBJS=$ac_ltlibobjs
19692
19693
19694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19695 printf %s "checking that generated files are newer than configure... " >&6; }
19696 if test -n "$am_sleep_pid"; then
19697 # Hide warnings about reused PIDs.
19698 wait $am_sleep_pid 2>/dev/null
19699 fi
19700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19701 printf "%s\n" "done" >&6; }
19702 if test -n "$EXEEXT"; then
19703 am__EXEEXT_TRUE=
19704 am__EXEEXT_FALSE='#'
19705 else
19706 am__EXEEXT_TRUE='#'
19707 am__EXEEXT_FALSE=
19708 fi
19709
19710 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19711 as_fn_error $? "conditional \"AMDEP\" was never defined.
19712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19713 fi
19714 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19715 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19717 fi
19718
19719 : "${CONFIG_STATUS=./config.status}"
19720 ac_write_fail=0
19721 ac_clean_files_save=$ac_clean_files
19722 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19724 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19725 as_write_fail=0
19726 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19727 #! $SHELL
19728 # Generated by $as_me.
19729 # Run this file to recreate the current configuration.
19730 # Compiler output produced by configure, useful for debugging
19731 # configure, is in config.log if it exists.
19732
19733 debug=false
19734 ac_cs_recheck=false
19735 ac_cs_silent=false
19736
19737 SHELL=\${CONFIG_SHELL-$SHELL}
19738 export SHELL
19739 _ASEOF
19740 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19741 ## -------------------- ##
19742 ## M4sh Initialization. ##
19743 ## -------------------- ##
19744
19745 # Be more Bourne compatible
19746 DUALCASE=1; export DUALCASE # for MKS sh
19747 as_nop=:
19748 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19749 then :
19750 emulate sh
19751 NULLCMD=:
19752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19753 # is contrary to our usage. Disable this feature.
19754 alias -g '${1+"$@"}'='"$@"'
19755 setopt NO_GLOB_SUBST
19756 else $as_nop
19757 case `(set -o) 2>/dev/null` in #(
19758 *posix*) :
19759 set -o posix ;; #(
19760 *) :
19761 ;;
19762 esac
19763 fi
19764
19765
19766
19767 # Reset variables that may have inherited troublesome values from
19768 # the environment.
19769
19770 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19771 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19772 # side effect of setting IFS to empty, thus disabling word splitting.)
19773 # Quoting is to prevent editors from complaining about space-tab.
19774 as_nl='
19775 '
19776 export as_nl
19777 IFS=" "" $as_nl"
19778
19779 PS1='$ '
19780 PS2='> '
19781 PS4='+ '
19782
19783 # Ensure predictable behavior from utilities with locale-dependent output.
19784 LC_ALL=C
19785 export LC_ALL
19786 LANGUAGE=C
19787 export LANGUAGE
19788
19789 # We cannot yet rely on "unset" to work, but we need these variables
19790 # to be unset--not just set to an empty or harmless value--now, to
19791 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19792 # also avoids known problems related to "unset" and subshell syntax
19793 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19794 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19795 do eval test \${$as_var+y} \
19796 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19797 done
19798
19799 # Ensure that fds 0, 1, and 2 are open.
19800 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19801 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19802 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19803
19804 # The user is always right.
19805 if ${PATH_SEPARATOR+false} :; then
19806 PATH_SEPARATOR=:
19807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19809 PATH_SEPARATOR=';'
19810 }
19811 fi
19812
19813
19814 # Find who we are. Look in the path if we contain no directory separator.
19815 as_myself=
19816 case $0 in #((
19817 *[\\/]* ) as_myself=$0 ;;
19818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19819 for as_dir in $PATH
19820 do
19821 IFS=$as_save_IFS
19822 case $as_dir in #(((
19823 '') as_dir=./ ;;
19824 */) ;;
19825 *) as_dir=$as_dir/ ;;
19826 esac
19827 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19828 done
19829 IFS=$as_save_IFS
19830
19831 ;;
19832 esac
19833 # We did not find ourselves, most probably we were run as `sh COMMAND'
19834 # in which case we are not to be found in the path.
19835 if test "x$as_myself" = x; then
19836 as_myself=$0
19837 fi
19838 if test ! -f "$as_myself"; then
19839 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19840 exit 1
19841 fi
19842
19843
19844
19845 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19846 # ----------------------------------------
19847 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19848 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19849 # script with STATUS, using 1 if that was 0.
19850 as_fn_error ()
19851 {
19852 as_status=$1; test $as_status -eq 0 && as_status=1
19853 if test "$4"; then
19854 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19856 fi
19857 printf "%s\n" "$as_me: error: $2" >&2
19858 as_fn_exit $as_status
19859 } # as_fn_error
19860
19861
19862
19863 # as_fn_set_status STATUS
19864 # -----------------------
19865 # Set $? to STATUS, without forking.
19866 as_fn_set_status ()
19867 {
19868 return $1
19869 } # as_fn_set_status
19870
19871 # as_fn_exit STATUS
19872 # -----------------
19873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19874 as_fn_exit ()
19875 {
19876 set +e
19877 as_fn_set_status $1
19878 exit $1
19879 } # as_fn_exit
19880
19881 # as_fn_unset VAR
19882 # ---------------
19883 # Portably unset VAR.
19884 as_fn_unset ()
19885 {
19886 { eval $1=; unset $1;}
19887 }
19888 as_unset=as_fn_unset
19889
19890 # as_fn_append VAR VALUE
19891 # ----------------------
19892 # Append the text in VALUE to the end of the definition contained in VAR. Take
19893 # advantage of any shell optimizations that allow amortized linear growth over
19894 # repeated appends, instead of the typical quadratic growth present in naive
19895 # implementations.
19896 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19897 then :
19898 eval 'as_fn_append ()
19899 {
19900 eval $1+=\$2
19901 }'
19902 else $as_nop
19903 as_fn_append ()
19904 {
19905 eval $1=\$$1\$2
19906 }
19907 fi # as_fn_append
19908
19909 # as_fn_arith ARG...
19910 # ------------------
19911 # Perform arithmetic evaluation on the ARGs, and store the result in the
19912 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19913 # must be portable across $(()) and expr.
19914 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19915 then :
19916 eval 'as_fn_arith ()
19917 {
19918 as_val=$(( $* ))
19919 }'
19920 else $as_nop
19921 as_fn_arith ()
19922 {
19923 as_val=`expr "$@" || test $? -eq 1`
19924 }
19925 fi # as_fn_arith
19926
19927
19928 if expr a : '\(a\)' >/dev/null 2>&1 &&
19929 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19930 as_expr=expr
19931 else
19932 as_expr=false
19933 fi
19934
19935 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19936 as_basename=basename
19937 else
19938 as_basename=false
19939 fi
19940
19941 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19942 as_dirname=dirname
19943 else
19944 as_dirname=false
19945 fi
19946
19947 as_me=`$as_basename -- "$0" ||
19948 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19949 X"$0" : 'X\(//\)$' \| \
19950 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19951 printf "%s\n" X/"$0" |
19952 sed '/^.*\/\([^/][^/]*\)\/*$/{
19953 s//\1/
19954 q
19955 }
19956 /^X\/\(\/\/\)$/{
19957 s//\1/
19958 q
19959 }
19960 /^X\/\(\/\).*/{
19961 s//\1/
19962 q
19963 }
19964 s/.*/./; q'`
19965
19966 # Avoid depending upon Character Ranges.
19967 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19968 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19969 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19970 as_cr_digits='0123456789'
19971 as_cr_alnum=$as_cr_Letters$as_cr_digits
19972
19973
19974 # Determine whether it's possible to make 'echo' print without a newline.
19975 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19976 # for compatibility with existing Makefiles.
19977 ECHO_C= ECHO_N= ECHO_T=
19978 case `echo -n x` in #(((((
19979 -n*)
19980 case `echo 'xy\c'` in
19981 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19982 xy) ECHO_C='\c';;
19983 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19984 ECHO_T=' ';;
19985 esac;;
19986 *)
19987 ECHO_N='-n';;
19988 esac
19989
19990 # For backward compatibility with old third-party macros, we provide
19991 # the shell variables $as_echo and $as_echo_n. New code should use
19992 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19993 as_echo='printf %s\n'
19994 as_echo_n='printf %s'
19995
19996 rm -f conf$$ conf$$.exe conf$$.file
19997 if test -d conf$$.dir; then
19998 rm -f conf$$.dir/conf$$.file
19999 else
20000 rm -f conf$$.dir
20001 mkdir conf$$.dir 2>/dev/null
20002 fi
20003 if (echo >conf$$.file) 2>/dev/null; then
20004 if ln -s conf$$.file conf$$ 2>/dev/null; then
20005 as_ln_s='ln -s'
20006 # ... but there are two gotchas:
20007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20009 # In both cases, we have to default to `cp -pR'.
20010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20011 as_ln_s='cp -pR'
20012 elif ln conf$$.file conf$$ 2>/dev/null; then
20013 as_ln_s=ln
20014 else
20015 as_ln_s='cp -pR'
20016 fi
20017 else
20018 as_ln_s='cp -pR'
20019 fi
20020 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20021 rmdir conf$$.dir 2>/dev/null
20022
20023
20024 # as_fn_mkdir_p
20025 # -------------
20026 # Create "$as_dir" as a directory, including parents if necessary.
20027 as_fn_mkdir_p ()
20028 {
20029
20030 case $as_dir in #(
20031 -*) as_dir=./$as_dir;;
20032 esac
20033 test -d "$as_dir" || eval $as_mkdir_p || {
20034 as_dirs=
20035 while :; do
20036 case $as_dir in #(
20037 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20038 *) as_qdir=$as_dir;;
20039 esac
20040 as_dirs="'$as_qdir' $as_dirs"
20041 as_dir=`$as_dirname -- "$as_dir" ||
20042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20043 X"$as_dir" : 'X\(//\)[^/]' \| \
20044 X"$as_dir" : 'X\(//\)$' \| \
20045 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20046 printf "%s\n" X"$as_dir" |
20047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20048 s//\1/
20049 q
20050 }
20051 /^X\(\/\/\)[^/].*/{
20052 s//\1/
20053 q
20054 }
20055 /^X\(\/\/\)$/{
20056 s//\1/
20057 q
20058 }
20059 /^X\(\/\).*/{
20060 s//\1/
20061 q
20062 }
20063 s/.*/./; q'`
20064 test -d "$as_dir" && break
20065 done
20066 test -z "$as_dirs" || eval "mkdir $as_dirs"
20067 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20068
20069
20070 } # as_fn_mkdir_p
20071 if mkdir -p . 2>/dev/null; then
20072 as_mkdir_p='mkdir -p "$as_dir"'
20073 else
20074 test -d ./-p && rmdir ./-p
20075 as_mkdir_p=false
20076 fi
20077
20078
20079 # as_fn_executable_p FILE
20080 # -----------------------
20081 # Test if FILE is an executable regular file.
20082 as_fn_executable_p ()
20083 {
20084 test -f "$1" && test -x "$1"
20085 } # as_fn_executable_p
20086 as_test_x='test -x'
20087 as_executable_p=as_fn_executable_p
20088
20089 # Sed expression to map a string onto a valid CPP name.
20090 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20091
20092 # Sed expression to map a string onto a valid variable name.
20093 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20094
20095
20096 exec 6>&1
20097 ## ----------------------------------- ##
20098 ## Main body of $CONFIG_STATUS script. ##
20099 ## ----------------------------------- ##
20100 _ASEOF
20101 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20102
20103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20104 # Save the log message, to keep $0 and so on meaningful, and to
20105 # report actual input values of CONFIG_FILES etc. instead of their
20106 # values after options handling.
20107 ac_log="
20108 This file was extended by libXft $as_me 2.3.8, which was
20109 generated by GNU Autoconf 2.71. Invocation command line was
20110
20111 CONFIG_FILES = $CONFIG_FILES
20112 CONFIG_HEADERS = $CONFIG_HEADERS
20113 CONFIG_LINKS = $CONFIG_LINKS
20114 CONFIG_COMMANDS = $CONFIG_COMMANDS
20115 $ $0 $@
20116
20117 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20118 "
20119
20120 _ACEOF
20121
20122 case $ac_config_files in *"
20123 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20124 esac
20125
20126 case $ac_config_headers in *"
20127 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20128 esac
20129
20130
20131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20132 # Files that config.status was made for.
20133 config_files="$ac_config_files"
20134 config_headers="$ac_config_headers"
20135 config_commands="$ac_config_commands"
20136
20137 _ACEOF
20138
20139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20140 ac_cs_usage="\
20141 \`$as_me' instantiates files and other configuration actions
20142 from templates according to the current configuration. Unless the files
20143 and actions are specified as TAGs, all are instantiated by default.
20144
20145 Usage: $0 [OPTION]... [TAG]...
20146
20147 -h, --help print this help, then exit
20148 -V, --version print version number and configuration settings, then exit
20149 --config print configuration, then exit
20150 -q, --quiet, --silent
20151 do not print progress messages
20152 -d, --debug don't remove temporary files
20153 --recheck update $as_me by reconfiguring in the same conditions
20154 --file=FILE[:TEMPLATE]
20155 instantiate the configuration file FILE
20156 --header=FILE[:TEMPLATE]
20157 instantiate the configuration header FILE
20158
20159 Configuration files:
20160 $config_files
20161
20162 Configuration headers:
20163 $config_headers
20164
20165 Configuration commands:
20166 $config_commands
20167
20168 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>."
20169
20170 _ACEOF
20171 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20172 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20174 ac_cs_config='$ac_cs_config_escaped'
20175 ac_cs_version="\\
20176 libXft config.status 2.3.8
20177 configured by $0, generated by GNU Autoconf 2.71,
20178 with options \\"\$ac_cs_config\\"
20179
20180 Copyright (C) 2021 Free Software Foundation, Inc.
20181 This config.status script is free software; the Free Software Foundation
20182 gives unlimited permission to copy, distribute and modify it."
20183
20184 ac_pwd='$ac_pwd'
20185 srcdir='$srcdir'
20186 INSTALL='$INSTALL'
20187 MKDIR_P='$MKDIR_P'
20188 AWK='$AWK'
20189 test -n "\$AWK" || AWK=awk
20190 _ACEOF
20191
20192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20193 # The default lists apply if the user does not specify any file.
20194 ac_need_defaults=:
20195 while test $# != 0
20196 do
20197 case $1 in
20198 --*=?*)
20199 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20200 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20201 ac_shift=:
20202 ;;
20203 --*=)
20204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20205 ac_optarg=
20206 ac_shift=:
20207 ;;
20208 *)
20209 ac_option=$1
20210 ac_optarg=$2
20211 ac_shift=shift
20212 ;;
20213 esac
20214
20215 case $ac_option in
20216 # Handling of the options.
20217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20218 ac_cs_recheck=: ;;
20219 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20220 printf "%s\n" "$ac_cs_version"; exit ;;
20221 --config | --confi | --conf | --con | --co | --c )
20222 printf "%s\n" "$ac_cs_config"; exit ;;
20223 --debug | --debu | --deb | --de | --d | -d )
20224 debug=: ;;
20225 --file | --fil | --fi | --f )
20226 $ac_shift
20227 case $ac_optarg in
20228 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20229 '') as_fn_error $? "missing file argument" ;;
20230 esac
20231 as_fn_append CONFIG_FILES " '$ac_optarg'"
20232 ac_need_defaults=false;;
20233 --header | --heade | --head | --hea )
20234 $ac_shift
20235 case $ac_optarg in
20236 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20237 esac
20238 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20239 ac_need_defaults=false;;
20240 --he | --h)
20241 # Conflict between --help and --header
20242 as_fn_error $? "ambiguous option: \`$1'
20243 Try \`$0 --help' for more information.";;
20244 --help | --hel | -h )
20245 printf "%s\n" "$ac_cs_usage"; exit ;;
20246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20248 ac_cs_silent=: ;;
20249
20250 # This is an error.
20251 -*) as_fn_error $? "unrecognized option: \`$1'
20252 Try \`$0 --help' for more information." ;;
20253
20254 *) as_fn_append ac_config_targets " $1"
20255 ac_need_defaults=false ;;
20256
20257 esac
20258 shift
20259 done
20260
20261 ac_configure_extra_args=
20262
20263 if $ac_cs_silent; then
20264 exec 6>/dev/null
20265 ac_configure_extra_args="$ac_configure_extra_args --silent"
20266 fi
20267
20268 _ACEOF
20269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20270 if \$ac_cs_recheck; then
20271 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20272 shift
20273 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20274 CONFIG_SHELL='$SHELL'
20275 export CONFIG_SHELL
20276 exec "\$@"
20277 fi
20278
20279 _ACEOF
20280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20281 exec 5>>config.log
20282 {
20283 echo
20284 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20285 ## Running $as_me. ##
20286 _ASBOX
20287 printf "%s\n" "$ac_log"
20288 } >&5
20289
20290 _ACEOF
20291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20292 #
20293 # INIT-COMMANDS
20294 #
20295 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20296
20297
20298 # The HP-UX ksh and POSIX shell print the target directory to stdout
20299 # if CDPATH is set.
20300 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20301
20302 sed_quote_subst='$sed_quote_subst'
20303 double_quote_subst='$double_quote_subst'
20304 delay_variable_subst='$delay_variable_subst'
20305 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20306 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20307 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20308 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20309 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20310 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20311 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20312 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20313 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20314 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20315 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20316 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20317 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20318 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20319 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20320 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20321 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20322 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20323 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20324 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20325 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20326 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20327 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20328 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20329 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20330 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20331 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20332 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20333 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20334 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20335 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20336 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20337 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20338 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20339 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20340 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20341 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20342 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20343 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20344 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20345 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20346 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20347 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20348 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20349 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20350 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20351 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20352 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20353 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20354 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20355 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20356 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20357 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20358 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20359 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20360 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20361 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20362 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20363 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20364 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20365 lt_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"`'
20366 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20367 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20368 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20369 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20370 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20371 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20372 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20373 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20374 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20375 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20376 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20377 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20378 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20379 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20380 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20381 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20382 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20383 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20384 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20385 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20386 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20387 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20388 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20389 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20390 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20391 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20392 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20393 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20394 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20395 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20396 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20397 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20398 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20399 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20400 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20401 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20402 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20403 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20404 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20405 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20406 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20407 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20408 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20409 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20410 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20411 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20412 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20413 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20414 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20415 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20416 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20417 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20418 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20419 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20420 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20421 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20422 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20423 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20424 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20425 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20426 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20427 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20428 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20429 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20430 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20431 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20432 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20433 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20434 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20435 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20436 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20437 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20438 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20439 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20440 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20441 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20442
20443 LTCC='$LTCC'
20444 LTCFLAGS='$LTCFLAGS'
20445 compiler='$compiler_DEFAULT'
20446
20447 # A function that is used when there is no print builtin or printf.
20448 func_fallback_echo ()
20449 {
20450 eval 'cat <<_LTECHO_EOF
20451 \$1
20452 _LTECHO_EOF'
20453 }
20454
20455 # Quote evaled strings.
20456 for var in SHELL \
20457 ECHO \
20458 PATH_SEPARATOR \
20459 SED \
20460 GREP \
20461 EGREP \
20462 FGREP \
20463 LD \
20464 NM \
20465 LN_S \
20466 lt_SP2NL \
20467 lt_NL2SP \
20468 reload_flag \
20469 FILECMD \
20470 OBJDUMP \
20471 deplibs_check_method \
20472 file_magic_cmd \
20473 file_magic_glob \
20474 want_nocaseglob \
20475 DLLTOOL \
20476 sharedlib_from_linklib_cmd \
20477 AR \
20478 archiver_list_spec \
20479 STRIP \
20480 RANLIB \
20481 CC \
20482 CFLAGS \
20483 compiler \
20484 lt_cv_sys_global_symbol_pipe \
20485 lt_cv_sys_global_symbol_to_cdecl \
20486 lt_cv_sys_global_symbol_to_import \
20487 lt_cv_sys_global_symbol_to_c_name_address \
20488 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20489 lt_cv_nm_interface \
20490 nm_file_list_spec \
20491 lt_cv_truncate_bin \
20492 lt_prog_compiler_no_builtin_flag \
20493 lt_prog_compiler_pic \
20494 lt_prog_compiler_wl \
20495 lt_prog_compiler_static \
20496 lt_cv_prog_compiler_c_o \
20497 need_locks \
20498 MANIFEST_TOOL \
20499 DSYMUTIL \
20500 NMEDIT \
20501 LIPO \
20502 OTOOL \
20503 OTOOL64 \
20504 shrext_cmds \
20505 export_dynamic_flag_spec \
20506 whole_archive_flag_spec \
20507 compiler_needs_object \
20508 with_gnu_ld \
20509 allow_undefined_flag \
20510 no_undefined_flag \
20511 hardcode_libdir_flag_spec \
20512 hardcode_libdir_separator \
20513 exclude_expsyms \
20514 include_expsyms \
20515 file_list_spec \
20516 variables_saved_for_relink \
20517 libname_spec \
20518 library_names_spec \
20519 soname_spec \
20520 install_override_mode \
20521 finish_eval \
20522 old_striplib \
20523 striplib; do
20524 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20525 *[\\\\\\\`\\"\\\$]*)
20526 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20527 ;;
20528 *)
20529 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20530 ;;
20531 esac
20532 done
20533
20534 # Double-quote double-evaled strings.
20535 for var in reload_cmds \
20536 old_postinstall_cmds \
20537 old_postuninstall_cmds \
20538 old_archive_cmds \
20539 extract_expsyms_cmds \
20540 old_archive_from_new_cmds \
20541 old_archive_from_expsyms_cmds \
20542 archive_cmds \
20543 archive_expsym_cmds \
20544 module_cmds \
20545 module_expsym_cmds \
20546 export_symbols_cmds \
20547 prelink_cmds \
20548 postlink_cmds \
20549 postinstall_cmds \
20550 postuninstall_cmds \
20551 finish_cmds \
20552 sys_lib_search_path_spec \
20553 configure_time_dlsearch_path \
20554 configure_time_lt_sys_library_path; do
20555 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20556 *[\\\\\\\`\\"\\\$]*)
20557 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20558 ;;
20559 *)
20560 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20561 ;;
20562 esac
20563 done
20564
20565 ac_aux_dir='$ac_aux_dir'
20566
20567 # See if we are running on zsh, and set the options that allow our
20568 # commands through without removal of \ escapes INIT.
20569 if test -n "\${ZSH_VERSION+set}"; then
20570 setopt NO_GLOB_SUBST
20571 fi
20572
20573
20574 PACKAGE='$PACKAGE'
20575 VERSION='$VERSION'
20576 RM='$RM'
20577 ofile='$ofile'
20578
20579
20580
20581
20582 _ACEOF
20583
20584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20585
20586 # Handling of arguments.
20587 for ac_config_target in $ac_config_targets
20588 do
20589 case $ac_config_target in
20590 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20591 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20592 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20593 "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;;
20594 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20595 "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
20596 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20597 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20598
20599 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20600 esac
20601 done
20602
20603
20604 # If the user did not use the arguments to specify the items to instantiate,
20605 # then the envvar interface is used. Set only those that are not.
20606 # We use the long form for the default assignment because of an extremely
20607 # bizarre bug on SunOS 4.1.3.
20608 if $ac_need_defaults; then
20609 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20610 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20611 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20612 fi
20613
20614 # Have a temporary directory for convenience. Make it in the build tree
20615 # simply because there is no reason against having it here, and in addition,
20616 # creating and moving files from /tmp can sometimes cause problems.
20617 # Hook for its removal unless debugging.
20618 # Note that there is a small window in which the directory will not be cleaned:
20619 # after its creation but before its name has been assigned to `$tmp'.
20620 $debug ||
20621 {
20622 tmp= ac_tmp=
20623 trap 'exit_status=$?
20624 : "${ac_tmp:=$tmp}"
20625 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20626 ' 0
20627 trap 'as_fn_exit 1' 1 2 13 15
20628 }
20629 # Create a (secure) tmp directory for tmp files.
20630
20631 {
20632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20633 test -d "$tmp"
20634 } ||
20635 {
20636 tmp=./conf$$-$RANDOM
20637 (umask 077 && mkdir "$tmp")
20638 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20639 ac_tmp=$tmp
20640
20641 # Set up the scripts for CONFIG_FILES section.
20642 # No need to generate them if there are no CONFIG_FILES.
20643 # This happens for instance with `./config.status config.h'.
20644 if test -n "$CONFIG_FILES"; then
20645
20646
20647 ac_cr=`echo X | tr X '\015'`
20648 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20649 # But we know of no other shell where ac_cr would be empty at this
20650 # point, so we can use a bashism as a fallback.
20651 if test "x$ac_cr" = x; then
20652 eval ac_cr=\$\'\\r\'
20653 fi
20654 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20655 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20656 ac_cs_awk_cr='\\r'
20657 else
20658 ac_cs_awk_cr=$ac_cr
20659 fi
20660
20661 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20662 _ACEOF
20663
20664
20665 {
20666 echo "cat >conf$$subs.awk <<_ACEOF" &&
20667 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20668 echo "_ACEOF"
20669 } >conf$$subs.sh ||
20670 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20671 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20672 ac_delim='%!_!# '
20673 for ac_last_try in false false false false false :; do
20674 . ./conf$$subs.sh ||
20675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20676
20677 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20678 if test $ac_delim_n = $ac_delim_num; then
20679 break
20680 elif $ac_last_try; then
20681 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20682 else
20683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20684 fi
20685 done
20686 rm -f conf$$subs.sh
20687
20688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20689 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20690 _ACEOF
20691 sed -n '
20692 h
20693 s/^/S["/; s/!.*/"]=/
20694 p
20695 g
20696 s/^[^!]*!//
20697 :repl
20698 t repl
20699 s/'"$ac_delim"'$//
20700 t delim
20701 :nl
20702 h
20703 s/\(.\{148\}\)..*/\1/
20704 t more1
20705 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20706 p
20707 n
20708 b repl
20709 :more1
20710 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20711 p
20712 g
20713 s/.\{148\}//
20714 t nl
20715 :delim
20716 h
20717 s/\(.\{148\}\)..*/\1/
20718 t more2
20719 s/["\\]/\\&/g; s/^/"/; s/$/"/
20720 p
20721 b
20722 :more2
20723 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20724 p
20725 g
20726 s/.\{148\}//
20727 t delim
20728 ' <conf$$subs.awk | sed '
20729 /^[^""]/{
20730 N
20731 s/\n//
20732 }
20733 ' >>$CONFIG_STATUS || ac_write_fail=1
20734 rm -f conf$$subs.awk
20735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20736 _ACAWK
20737 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20738 for (key in S) S_is_set[key] = 1
20739 FS = ""
20740
20741 }
20742 {
20743 line = $ 0
20744 nfields = split(line, field, "@")
20745 substed = 0
20746 len = length(field[1])
20747 for (i = 2; i < nfields; i++) {
20748 key = field[i]
20749 keylen = length(key)
20750 if (S_is_set[key]) {
20751 value = S[key]
20752 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20753 len += length(value) + length(field[++i])
20754 substed = 1
20755 } else
20756 len += 1 + keylen
20757 }
20758
20759 print line
20760 }
20761
20762 _ACAWK
20763 _ACEOF
20764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20765 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20766 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20767 else
20768 cat
20769 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20770 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20771 _ACEOF
20772
20773 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20774 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20775 # trailing colons and then remove the whole line if VPATH becomes empty
20776 # (actually we leave an empty line to preserve line numbers).
20777 if test "x$srcdir" = x.; then
20778 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20779 h
20780 s///
20781 s/^/:/
20782 s/[ ]*$/:/
20783 s/:\$(srcdir):/:/g
20784 s/:\${srcdir}:/:/g
20785 s/:@srcdir@:/:/g
20786 s/^:*//
20787 s/:*$//
20788 x
20789 s/\(=[ ]*\).*/\1/
20790 G
20791 s/\n//
20792 s/^[^=]*=[ ]*$//
20793 }'
20794 fi
20795
20796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20797 fi # test -n "$CONFIG_FILES"
20798
20799 # Set up the scripts for CONFIG_HEADERS section.
20800 # No need to generate them if there are no CONFIG_HEADERS.
20801 # This happens for instance with `./config.status Makefile'.
20802 if test -n "$CONFIG_HEADERS"; then
20803 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20804 BEGIN {
20805 _ACEOF
20806
20807 # Transform confdefs.h into an awk script `defines.awk', embedded as
20808 # here-document in config.status, that substitutes the proper values into
20809 # config.h.in to produce config.h.
20810
20811 # Create a delimiter string that does not exist in confdefs.h, to ease
20812 # handling of long lines.
20813 ac_delim='%!_!# '
20814 for ac_last_try in false false :; do
20815 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20816 if test -z "$ac_tt"; then
20817 break
20818 elif $ac_last_try; then
20819 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20820 else
20821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20822 fi
20823 done
20824
20825 # For the awk script, D is an array of macro values keyed by name,
20826 # likewise P contains macro parameters if any. Preserve backslash
20827 # newline sequences.
20828
20829 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20830 sed -n '
20831 s/.\{148\}/&'"$ac_delim"'/g
20832 t rset
20833 :rset
20834 s/^[ ]*#[ ]*define[ ][ ]*/ /
20835 t def
20836 d
20837 :def
20838 s/\\$//
20839 t bsnl
20840 s/["\\]/\\&/g
20841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20842 D["\1"]=" \3"/p
20843 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20844 d
20845 :bsnl
20846 s/["\\]/\\&/g
20847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20848 D["\1"]=" \3\\\\\\n"\\/p
20849 t cont
20850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20851 t cont
20852 d
20853 :cont
20854 n
20855 s/.\{148\}/&'"$ac_delim"'/g
20856 t clear
20857 :clear
20858 s/\\$//
20859 t bsnlc
20860 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20861 d
20862 :bsnlc
20863 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20864 b cont
20865 ' <confdefs.h | sed '
20866 s/'"$ac_delim"'/"\\\
20867 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20868
20869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20870 for (key in D) D_is_set[key] = 1
20871 FS = ""
20872 }
20873 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20874 line = \$ 0
20875 split(line, arg, " ")
20876 if (arg[1] == "#") {
20877 defundef = arg[2]
20878 mac1 = arg[3]
20879 } else {
20880 defundef = substr(arg[1], 2)
20881 mac1 = arg[2]
20882 }
20883 split(mac1, mac2, "(") #)
20884 macro = mac2[1]
20885 prefix = substr(line, 1, index(line, defundef) - 1)
20886 if (D_is_set[macro]) {
20887 # Preserve the white space surrounding the "#".
20888 print prefix "define", macro P[macro] D[macro]
20889 next
20890 } else {
20891 # Replace #undef with comments. This is necessary, for example,
20892 # in the case of _POSIX_SOURCE, which is predefined and required
20893 # on some systems where configure will not decide to define it.
20894 if (defundef == "undef") {
20895 print "/*", prefix defundef, macro, "*/"
20896 next
20897 }
20898 }
20899 }
20900 { print }
20901 _ACAWK
20902 _ACEOF
20903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20904 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20905 fi # test -n "$CONFIG_HEADERS"
20906
20907
20908 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20909 shift
20910 for ac_tag
20911 do
20912 case $ac_tag in
20913 :[FHLC]) ac_mode=$ac_tag; continue;;
20914 esac
20915 case $ac_mode$ac_tag in
20916 :[FHL]*:*);;
20917 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20918 :[FH]-) ac_tag=-:-;;
20919 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20920 esac
20921 ac_save_IFS=$IFS
20922 IFS=:
20923 set x $ac_tag
20924 IFS=$ac_save_IFS
20925 shift
20926 ac_file=$1
20927 shift
20928
20929 case $ac_mode in
20930 :L) ac_source=$1;;
20931 :[FH])
20932 ac_file_inputs=
20933 for ac_f
20934 do
20935 case $ac_f in
20936 -) ac_f="$ac_tmp/stdin";;
20937 *) # Look for the file first in the build tree, then in the source tree
20938 # (if the path is not absolute). The absolute path cannot be DOS-style,
20939 # because $ac_f cannot contain `:'.
20940 test -f "$ac_f" ||
20941 case $ac_f in
20942 [\\/$]*) false;;
20943 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20944 esac ||
20945 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20946 esac
20947 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20948 as_fn_append ac_file_inputs " '$ac_f'"
20949 done
20950
20951 # Let's still pretend it is `configure' which instantiates (i.e., don't
20952 # use $as_me), people would be surprised to read:
20953 # /* config.h. Generated by config.status. */
20954 configure_input='Generated from '`
20955 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20956 `' by configure.'
20957 if test x"$ac_file" != x-; then
20958 configure_input="$ac_file. $configure_input"
20959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20960 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20961 fi
20962 # Neutralize special characters interpreted by sed in replacement strings.
20963 case $configure_input in #(
20964 *\&* | *\|* | *\\* )
20965 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20967 *) ac_sed_conf_input=$configure_input;;
20968 esac
20969
20970 case $ac_tag in
20971 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20973 esac
20974 ;;
20975 esac
20976
20977 ac_dir=`$as_dirname -- "$ac_file" ||
20978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20979 X"$ac_file" : 'X\(//\)[^/]' \| \
20980 X"$ac_file" : 'X\(//\)$' \| \
20981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20982 printf "%s\n" X"$ac_file" |
20983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20984 s//\1/
20985 q
20986 }
20987 /^X\(\/\/\)[^/].*/{
20988 s//\1/
20989 q
20990 }
20991 /^X\(\/\/\)$/{
20992 s//\1/
20993 q
20994 }
20995 /^X\(\/\).*/{
20996 s//\1/
20997 q
20998 }
20999 s/.*/./; q'`
21000 as_dir="$ac_dir"; as_fn_mkdir_p
21001 ac_builddir=.
21002
21003 case "$ac_dir" in
21004 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21005 *)
21006 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21007 # A ".." for each directory in $ac_dir_suffix.
21008 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21009 case $ac_top_builddir_sub in
21010 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21011 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21012 esac ;;
21013 esac
21014 ac_abs_top_builddir=$ac_pwd
21015 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21016 # for backward compatibility:
21017 ac_top_builddir=$ac_top_build_prefix
21018
21019 case $srcdir in
21020 .) # We are building in place.
21021 ac_srcdir=.
21022 ac_top_srcdir=$ac_top_builddir_sub
21023 ac_abs_top_srcdir=$ac_pwd ;;
21024 [\\/]* | ?:[\\/]* ) # Absolute name.
21025 ac_srcdir=$srcdir$ac_dir_suffix;
21026 ac_top_srcdir=$srcdir
21027 ac_abs_top_srcdir=$srcdir ;;
21028 *) # Relative name.
21029 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21030 ac_top_srcdir=$ac_top_build_prefix$srcdir
21031 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21032 esac
21033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21034
21035
21036 case $ac_mode in
21037 :F)
21038 #
21039 # CONFIG_FILE
21040 #
21041
21042 case $INSTALL in
21043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21044 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21045 esac
21046 ac_MKDIR_P=$MKDIR_P
21047 case $MKDIR_P in
21048 [\\/$]* | ?:[\\/]* ) ;;
21049 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21050 esac
21051 _ACEOF
21052
21053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21054 # If the template does not know about datarootdir, expand it.
21055 # FIXME: This hack should be removed a few years after 2.60.
21056 ac_datarootdir_hack=; ac_datarootdir_seen=
21057 ac_sed_dataroot='
21058 /datarootdir/ {
21059 p
21060 q
21061 }
21062 /@datadir@/p
21063 /@docdir@/p
21064 /@infodir@/p
21065 /@localedir@/p
21066 /@mandir@/p'
21067 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21068 *datarootdir*) ac_datarootdir_seen=yes;;
21069 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21071 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21072 _ACEOF
21073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21074 ac_datarootdir_hack='
21075 s&@datadir@&$datadir&g
21076 s&@docdir@&$docdir&g
21077 s&@infodir@&$infodir&g
21078 s&@localedir@&$localedir&g
21079 s&@mandir@&$mandir&g
21080 s&\\\${datarootdir}&$datarootdir&g' ;;
21081 esac
21082 _ACEOF
21083
21084 # Neutralize VPATH when `$srcdir' = `.'.
21085 # Shell code in configure.ac might set extrasub.
21086 # FIXME: do we really want to maintain this feature?
21087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21088 ac_sed_extra="$ac_vpsub
21089 $extrasub
21090 _ACEOF
21091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21092 :t
21093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21094 s|@configure_input@|$ac_sed_conf_input|;t t
21095 s&@top_builddir@&$ac_top_builddir_sub&;t t
21096 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21097 s&@srcdir@&$ac_srcdir&;t t
21098 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21099 s&@top_srcdir@&$ac_top_srcdir&;t t
21100 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21101 s&@builddir@&$ac_builddir&;t t
21102 s&@abs_builddir@&$ac_abs_builddir&;t t
21103 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21104 s&@INSTALL@&$ac_INSTALL&;t t
21105 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21106 $ac_datarootdir_hack
21107 "
21108 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21109 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21110
21111 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21112 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21113 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21114 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21116 which seems to be undefined. Please make sure it is defined" >&5
21117 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21118 which seems to be undefined. Please make sure it is defined" >&2;}
21119
21120 rm -f "$ac_tmp/stdin"
21121 case $ac_file in
21122 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21123 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21124 esac \
21125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21126 ;;
21127 :H)
21128 #
21129 # CONFIG_HEADER
21130 #
21131 if test x"$ac_file" != x-; then
21132 {
21133 printf "%s\n" "/* $configure_input */" >&1 \
21134 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21135 } >"$ac_tmp/config.h" \
21136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21137 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21139 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21140 else
21141 rm -f "$ac_file"
21142 mv "$ac_tmp/config.h" "$ac_file" \
21143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21144 fi
21145 else
21146 printf "%s\n" "/* $configure_input */" >&1 \
21147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21148 || as_fn_error $? "could not create -" "$LINENO" 5
21149 fi
21150 # Compute "$ac_file"'s index in $config_headers.
21151 _am_arg="$ac_file"
21152 _am_stamp_count=1
21153 for _am_header in $config_headers :; do
21154 case $_am_header in
21155 $_am_arg | $_am_arg:* )
21156 break ;;
21157 * )
21158 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21159 esac
21160 done
21161 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21162 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21163 X"$_am_arg" : 'X\(//\)[^/]' \| \
21164 X"$_am_arg" : 'X\(//\)$' \| \
21165 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21166 printf "%s\n" X"$_am_arg" |
21167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21168 s//\1/
21169 q
21170 }
21171 /^X\(\/\/\)[^/].*/{
21172 s//\1/
21173 q
21174 }
21175 /^X\(\/\/\)$/{
21176 s//\1/
21177 q
21178 }
21179 /^X\(\/\).*/{
21180 s//\1/
21181 q
21182 }
21183 s/.*/./; q'`/stamp-h$_am_stamp_count
21184 ;;
21185
21186 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21187 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21188 ;;
21189 esac
21190
21191
21192 case $ac_file$ac_mode in
21193 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21194 # Older Autoconf quotes --file arguments for eval, but not when files
21195 # are listed without --file. Let's play safe and only enable the eval
21196 # if we detect the quoting.
21197 # TODO: see whether this extra hack can be removed once we start
21198 # requiring Autoconf 2.70 or later.
21199 case $CONFIG_FILES in #(
21200 *\'*) :
21201 eval set x "$CONFIG_FILES" ;; #(
21202 *) :
21203 set x $CONFIG_FILES ;; #(
21204 *) :
21205 ;;
21206 esac
21207 shift
21208 # Used to flag and report bootstrapping failures.
21209 am_rc=0
21210 for am_mf
21211 do
21212 # Strip MF so we end up with the name of the file.
21213 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21214 # Check whether this is an Automake generated Makefile which includes
21215 # dependency-tracking related rules and includes.
21216 # Grep'ing the whole file directly is not great: AIX grep has a line
21217 # limit of 2048, but all sed's we know have understand at least 4000.
21218 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21219 || continue
21220 am_dirpart=`$as_dirname -- "$am_mf" ||
21221 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21222 X"$am_mf" : 'X\(//\)[^/]' \| \
21223 X"$am_mf" : 'X\(//\)$' \| \
21224 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21225 printf "%s\n" X"$am_mf" |
21226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21227 s//\1/
21228 q
21229 }
21230 /^X\(\/\/\)[^/].*/{
21231 s//\1/
21232 q
21233 }
21234 /^X\(\/\/\)$/{
21235 s//\1/
21236 q
21237 }
21238 /^X\(\/\).*/{
21239 s//\1/
21240 q
21241 }
21242 s/.*/./; q'`
21243 am_filepart=`$as_basename -- "$am_mf" ||
21244 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21245 X"$am_mf" : 'X\(//\)$' \| \
21246 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21247 printf "%s\n" X/"$am_mf" |
21248 sed '/^.*\/\([^/][^/]*\)\/*$/{
21249 s//\1/
21250 q
21251 }
21252 /^X\/\(\/\/\)$/{
21253 s//\1/
21254 q
21255 }
21256 /^X\/\(\/\).*/{
21257 s//\1/
21258 q
21259 }
21260 s/.*/./; q'`
21261 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21262 && sed -e '/# am--include-marker/d' "$am_filepart" \
21263 | $MAKE -f - am--depfiles" >&5
21264 (cd "$am_dirpart" \
21265 && sed -e '/# am--include-marker/d' "$am_filepart" \
21266 | $MAKE -f - am--depfiles) >&5 2>&5
21267 ac_status=$?
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } || am_rc=$?
21270 done
21271 if test $am_rc -ne 0; then
21272 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21273 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21274 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21275 for automatic dependency tracking. If GNU make was not used, consider
21276 re-running the configure script with MAKE=\"gmake\" (or whatever is
21277 necessary). You can also try re-running configure with the
21278 '--disable-dependency-tracking' option to at least be able to build
21279 the package (albeit without support for automatic dependency tracking).
21280 See \`config.log' for more details" "$LINENO" 5; }
21281 fi
21282 { am_dirpart=; unset am_dirpart;}
21283 { am_filepart=; unset am_filepart;}
21284 { am_mf=; unset am_mf;}
21285 { am_rc=; unset am_rc;}
21286 rm -f conftest-deps.mk
21287 }
21288 ;;
21289 "libtool":C)
21290
21291 # See if we are running on zsh, and set the options that allow our
21292 # commands through without removal of \ escapes.
21293 if test -n "${ZSH_VERSION+set}"; then
21294 setopt NO_GLOB_SUBST
21295 fi
21296
21297 cfgfile=${ofile}T
21298 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21299 $RM "$cfgfile"
21300
21301 cat <<_LT_EOF >> "$cfgfile"
21302 #! $SHELL
21303 # Generated automatically by $as_me ($PACKAGE) $VERSION
21304 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21305 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21306
21307 # Provide generalized library-building support services.
21308 # Written by Gordon Matzigkeit, 1996
21309
21310 # Copyright (C) 2014 Free Software Foundation, Inc.
21311 # This is free software; see the source for copying conditions. There is NO
21312 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21313
21314 # GNU Libtool is free software; you can redistribute it and/or modify
21315 # it under the terms of the GNU General Public License as published by
21316 # the Free Software Foundation; either version 2 of of the License, or
21317 # (at your option) any later version.
21318 #
21319 # As a special exception to the GNU General Public License, if you
21320 # distribute this file as part of a program or library that is built
21321 # using GNU Libtool, you may include this file under the same
21322 # distribution terms that you use for the rest of that program.
21323 #
21324 # GNU Libtool is distributed in the hope that it will be useful, but
21325 # WITHOUT ANY WARRANTY; without even the implied warranty of
21326 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21327 # GNU General Public License for more details.
21328 #
21329 # You should have received a copy of the GNU General Public License
21330 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21331
21332
21333 # The names of the tagged configurations supported by this script.
21334 available_tags=''
21335
21336 # Configured defaults for sys_lib_dlsearch_path munging.
21337 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21338
21339 # ### BEGIN LIBTOOL CONFIG
21340
21341 # Which release of libtool.m4 was used?
21342 macro_version=$macro_version
21343 macro_revision=$macro_revision
21344
21345 # Whether or not to build shared libraries.
21346 build_libtool_libs=$enable_shared
21347
21348 # Whether or not to build static libraries.
21349 build_old_libs=$enable_static
21350
21351 # What type of objects to build.
21352 pic_mode=$pic_mode
21353
21354 # Whether or not to optimize for fast installation.
21355 fast_install=$enable_fast_install
21356
21357 # Shared archive member basename,for filename based shared library versioning on AIX.
21358 shared_archive_member_spec=$shared_archive_member_spec
21359
21360 # Shell to use when invoking shell scripts.
21361 SHELL=$lt_SHELL
21362
21363 # An echo program that protects backslashes.
21364 ECHO=$lt_ECHO
21365
21366 # The PATH separator for the build system.
21367 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21368
21369 # The host system.
21370 host_alias=$host_alias
21371 host=$host
21372 host_os=$host_os
21373
21374 # The build system.
21375 build_alias=$build_alias
21376 build=$build
21377 build_os=$build_os
21378
21379 # A sed program that does not truncate output.
21380 SED=$lt_SED
21381
21382 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21383 Xsed="\$SED -e 1s/^X//"
21384
21385 # A grep program that handles long lines.
21386 GREP=$lt_GREP
21387
21388 # An ERE matcher.
21389 EGREP=$lt_EGREP
21390
21391 # A literal string matcher.
21392 FGREP=$lt_FGREP
21393
21394 # A BSD- or MS-compatible name lister.
21395 NM=$lt_NM
21396
21397 # Whether we need soft or hard links.
21398 LN_S=$lt_LN_S
21399
21400 # What is the maximum length of a command?
21401 max_cmd_len=$max_cmd_len
21402
21403 # Object file suffix (normally "o").
21404 objext=$ac_objext
21405
21406 # Executable file suffix (normally "").
21407 exeext=$exeext
21408
21409 # whether the shell understands "unset".
21410 lt_unset=$lt_unset
21411
21412 # turn spaces into newlines.
21413 SP2NL=$lt_lt_SP2NL
21414
21415 # turn newlines into spaces.
21416 NL2SP=$lt_lt_NL2SP
21417
21418 # convert \$build file names to \$host format.
21419 to_host_file_cmd=$lt_cv_to_host_file_cmd
21420
21421 # convert \$build files to toolchain format.
21422 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21423
21424 # A file(cmd) program that detects file types.
21425 FILECMD=$lt_FILECMD
21426
21427 # An object symbol dumper.
21428 OBJDUMP=$lt_OBJDUMP
21429
21430 # Method to check whether dependent libraries are shared objects.
21431 deplibs_check_method=$lt_deplibs_check_method
21432
21433 # Command to use when deplibs_check_method = "file_magic".
21434 file_magic_cmd=$lt_file_magic_cmd
21435
21436 # How to find potential files when deplibs_check_method = "file_magic".
21437 file_magic_glob=$lt_file_magic_glob
21438
21439 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21440 want_nocaseglob=$lt_want_nocaseglob
21441
21442 # DLL creation program.
21443 DLLTOOL=$lt_DLLTOOL
21444
21445 # Command to associate shared and link libraries.
21446 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21447
21448 # The archiver.
21449 AR=$lt_AR
21450
21451 # Flags to create an archive (by configure).
21452 lt_ar_flags=$lt_ar_flags
21453
21454 # Flags to create an archive.
21455 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21456
21457 # How to feed a file listing to the archiver.
21458 archiver_list_spec=$lt_archiver_list_spec
21459
21460 # A symbol stripping program.
21461 STRIP=$lt_STRIP
21462
21463 # Commands used to install an old-style archive.
21464 RANLIB=$lt_RANLIB
21465 old_postinstall_cmds=$lt_old_postinstall_cmds
21466 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21467
21468 # Whether to use a lock for old archive extraction.
21469 lock_old_archive_extraction=$lock_old_archive_extraction
21470
21471 # A C compiler.
21472 LTCC=$lt_CC
21473
21474 # LTCC compiler flags.
21475 LTCFLAGS=$lt_CFLAGS
21476
21477 # Take the output of nm and produce a listing of raw symbols and C names.
21478 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21479
21480 # Transform the output of nm in a proper C declaration.
21481 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21482
21483 # Transform the output of nm into a list of symbols to manually relocate.
21484 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21485
21486 # Transform the output of nm in a C name address pair.
21487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21488
21489 # Transform the output of nm in a C name address pair when lib prefix is needed.
21490 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21491
21492 # The name lister interface.
21493 nm_interface=$lt_lt_cv_nm_interface
21494
21495 # Specify filename containing input files for \$NM.
21496 nm_file_list_spec=$lt_nm_file_list_spec
21497
21498 # The root where to search for dependent libraries,and where our libraries should be installed.
21499 lt_sysroot=$lt_sysroot
21500
21501 # Command to truncate a binary pipe.
21502 lt_truncate_bin=$lt_lt_cv_truncate_bin
21503
21504 # The name of the directory that contains temporary libtool files.
21505 objdir=$objdir
21506
21507 # Used to examine libraries when file_magic_cmd begins with "file".
21508 MAGIC_CMD=$MAGIC_CMD
21509
21510 # Must we lock files when doing compilation?
21511 need_locks=$lt_need_locks
21512
21513 # Manifest tool.
21514 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21515
21516 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21517 DSYMUTIL=$lt_DSYMUTIL
21518
21519 # Tool to change global to local symbols on Mac OS X.
21520 NMEDIT=$lt_NMEDIT
21521
21522 # Tool to manipulate fat objects and archives on Mac OS X.
21523 LIPO=$lt_LIPO
21524
21525 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21526 OTOOL=$lt_OTOOL
21527
21528 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21529 OTOOL64=$lt_OTOOL64
21530
21531 # Old archive suffix (normally "a").
21532 libext=$libext
21533
21534 # Shared library suffix (normally ".so").
21535 shrext_cmds=$lt_shrext_cmds
21536
21537 # The commands to extract the exported symbol list from a shared archive.
21538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21539
21540 # Variables whose values should be saved in libtool wrapper scripts and
21541 # restored at link time.
21542 variables_saved_for_relink=$lt_variables_saved_for_relink
21543
21544 # Do we need the "lib" prefix for modules?
21545 need_lib_prefix=$need_lib_prefix
21546
21547 # Do we need a version for libraries?
21548 need_version=$need_version
21549
21550 # Library versioning type.
21551 version_type=$version_type
21552
21553 # Shared library runtime path variable.
21554 runpath_var=$runpath_var
21555
21556 # Shared library path variable.
21557 shlibpath_var=$shlibpath_var
21558
21559 # Is shlibpath searched before the hard-coded library search path?
21560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21561
21562 # Format of library name prefix.
21563 libname_spec=$lt_libname_spec
21564
21565 # List of archive names. First name is the real one, the rest are links.
21566 # The last name is the one that the linker finds with -lNAME
21567 library_names_spec=$lt_library_names_spec
21568
21569 # The coded name of the library, if different from the real name.
21570 soname_spec=$lt_soname_spec
21571
21572 # Permission mode override for installation of shared libraries.
21573 install_override_mode=$lt_install_override_mode
21574
21575 # Command to use after installation of a shared archive.
21576 postinstall_cmds=$lt_postinstall_cmds
21577
21578 # Command to use after uninstallation of a shared archive.
21579 postuninstall_cmds=$lt_postuninstall_cmds
21580
21581 # Commands used to finish a libtool library installation in a directory.
21582 finish_cmds=$lt_finish_cmds
21583
21584 # As "finish_cmds", except a single script fragment to be evaled but
21585 # not shown.
21586 finish_eval=$lt_finish_eval
21587
21588 # Whether we should hardcode library paths into libraries.
21589 hardcode_into_libs=$hardcode_into_libs
21590
21591 # Compile-time system search path for libraries.
21592 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21593
21594 # Detected run-time system search path for libraries.
21595 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21596
21597 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21598 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21599
21600 # Whether dlopen is supported.
21601 dlopen_support=$enable_dlopen
21602
21603 # Whether dlopen of programs is supported.
21604 dlopen_self=$enable_dlopen_self
21605
21606 # Whether dlopen of statically linked programs is supported.
21607 dlopen_self_static=$enable_dlopen_self_static
21608
21609 # Commands to strip libraries.
21610 old_striplib=$lt_old_striplib
21611 striplib=$lt_striplib
21612
21613
21614 # The linker used to build libraries.
21615 LD=$lt_LD
21616
21617 # How to create reloadable object files.
21618 reload_flag=$lt_reload_flag
21619 reload_cmds=$lt_reload_cmds
21620
21621 # Commands used to build an old-style archive.
21622 old_archive_cmds=$lt_old_archive_cmds
21623
21624 # A language specific compiler.
21625 CC=$lt_compiler
21626
21627 # Is the compiler the GNU compiler?
21628 with_gcc=$GCC
21629
21630 # Compiler flag to turn off builtin functions.
21631 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21632
21633 # Additional compiler flags for building library objects.
21634 pic_flag=$lt_lt_prog_compiler_pic
21635
21636 # How to pass a linker flag through the compiler.
21637 wl=$lt_lt_prog_compiler_wl
21638
21639 # Compiler flag to prevent dynamic linking.
21640 link_static_flag=$lt_lt_prog_compiler_static
21641
21642 # Does compiler simultaneously support -c and -o options?
21643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21644
21645 # Whether or not to add -lc for building shared libraries.
21646 build_libtool_need_lc=$archive_cmds_need_lc
21647
21648 # Whether or not to disallow shared libs when runtime libs are static.
21649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21650
21651 # Compiler flag to allow reflexive dlopens.
21652 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21653
21654 # Compiler flag to generate shared objects directly from archives.
21655 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21656
21657 # Whether the compiler copes with passing no objects directly.
21658 compiler_needs_object=$lt_compiler_needs_object
21659
21660 # Create an old-style archive from a shared archive.
21661 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21662
21663 # Create a temporary old-style archive to link instead of a shared archive.
21664 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21665
21666 # Commands used to build a shared archive.
21667 archive_cmds=$lt_archive_cmds
21668 archive_expsym_cmds=$lt_archive_expsym_cmds
21669
21670 # Commands used to build a loadable module if different from building
21671 # a shared archive.
21672 module_cmds=$lt_module_cmds
21673 module_expsym_cmds=$lt_module_expsym_cmds
21674
21675 # Whether we are building with GNU ld or not.
21676 with_gnu_ld=$lt_with_gnu_ld
21677
21678 # Flag that allows shared libraries with undefined symbols to be built.
21679 allow_undefined_flag=$lt_allow_undefined_flag
21680
21681 # Flag that enforces no undefined symbols.
21682 no_undefined_flag=$lt_no_undefined_flag
21683
21684 # Flag to hardcode \$libdir into a binary during linking.
21685 # This must work even if \$libdir does not exist
21686 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21687
21688 # Whether we need a single "-rpath" flag with a separated argument.
21689 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21690
21691 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21692 # DIR into the resulting binary.
21693 hardcode_direct=$hardcode_direct
21694
21695 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21696 # DIR into the resulting binary and the resulting library dependency is
21697 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21698 # library is relocated.
21699 hardcode_direct_absolute=$hardcode_direct_absolute
21700
21701 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21702 # into the resulting binary.
21703 hardcode_minus_L=$hardcode_minus_L
21704
21705 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21706 # into the resulting binary.
21707 hardcode_shlibpath_var=$hardcode_shlibpath_var
21708
21709 # Set to "yes" if building a shared library automatically hardcodes DIR
21710 # into the library and all subsequent libraries and executables linked
21711 # against it.
21712 hardcode_automatic=$hardcode_automatic
21713
21714 # Set to yes if linker adds runtime paths of dependent libraries
21715 # to runtime path list.
21716 inherit_rpath=$inherit_rpath
21717
21718 # Whether libtool must link a program against all its dependency libraries.
21719 link_all_deplibs=$link_all_deplibs
21720
21721 # Set to "yes" if exported symbols are required.
21722 always_export_symbols=$always_export_symbols
21723
21724 # The commands to list exported symbols.
21725 export_symbols_cmds=$lt_export_symbols_cmds
21726
21727 # Symbols that should not be listed in the preloaded symbols.
21728 exclude_expsyms=$lt_exclude_expsyms
21729
21730 # Symbols that must always be exported.
21731 include_expsyms=$lt_include_expsyms
21732
21733 # Commands necessary for linking programs (against libraries) with templates.
21734 prelink_cmds=$lt_prelink_cmds
21735
21736 # Commands necessary for finishing linking programs.
21737 postlink_cmds=$lt_postlink_cmds
21738
21739 # Specify filename containing input files.
21740 file_list_spec=$lt_file_list_spec
21741
21742 # How to hardcode a shared library path into an executable.
21743 hardcode_action=$hardcode_action
21744
21745 # ### END LIBTOOL CONFIG
21746
21747 _LT_EOF
21748
21749 cat <<'_LT_EOF' >> "$cfgfile"
21750
21751 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21752
21753 # func_munge_path_list VARIABLE PATH
21754 # -----------------------------------
21755 # VARIABLE is name of variable containing _space_ separated list of
21756 # directories to be munged by the contents of PATH, which is string
21757 # having a format:
21758 # "DIR[:DIR]:"
21759 # string "DIR[ DIR]" will be prepended to VARIABLE
21760 # ":DIR[:DIR]"
21761 # string "DIR[ DIR]" will be appended to VARIABLE
21762 # "DIRP[:DIRP]::[DIRA:]DIRA"
21763 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21764 # "DIRA[ DIRA]" will be appended to VARIABLE
21765 # "DIR[:DIR]"
21766 # VARIABLE will be replaced by "DIR[ DIR]"
21767 func_munge_path_list ()
21768 {
21769 case x$2 in
21770 x)
21771 ;;
21772 *:)
21773 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21774 ;;
21775 x:*)
21776 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21777 ;;
21778 *::*)
21779 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21780 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21781 ;;
21782 *)
21783 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21784 ;;
21785 esac
21786 }
21787
21788
21789 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21790 func_cc_basename ()
21791 {
21792 for cc_temp in $*""; do
21793 case $cc_temp in
21794 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21795 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21796 \-*) ;;
21797 *) break;;
21798 esac
21799 done
21800 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21801 }
21802
21803
21804 # ### END FUNCTIONS SHARED WITH CONFIGURE
21805
21806 _LT_EOF
21807
21808 case $host_os in
21809 aix3*)
21810 cat <<\_LT_EOF >> "$cfgfile"
21811 # AIX sometimes has problems with the GCC collect2 program. For some
21812 # reason, if we set the COLLECT_NAMES environment variable, the problems
21813 # vanish in a puff of smoke.
21814 if test set != "${COLLECT_NAMES+set}"; then
21815 COLLECT_NAMES=
21816 export COLLECT_NAMES
21817 fi
21818 _LT_EOF
21819 ;;
21820 esac
21821
21822
21823
21824 ltmain=$ac_aux_dir/ltmain.sh
21825
21826
21827 # We use sed instead of cat because bash on DJGPP gets confused if
21828 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21829 # text mode, it properly converts lines to CR/LF. This bash problem
21830 # is reportedly fixed, but why not run on old versions too?
21831 $SED '$q' "$ltmain" >> "$cfgfile" \
21832 || (rm -f "$cfgfile"; exit 1)
21833
21834 mv -f "$cfgfile" "$ofile" ||
21835 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21836 chmod +x "$ofile"
21837
21838 ;;
21839
21840 esac
21841 done # for ac_tag
21842
21843
21844 as_fn_exit 0
21845 _ACEOF
21846 ac_clean_files=$ac_clean_files_save
21847
21848 test $ac_write_fail = 0 ||
21849 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21850
21851
21852 # configure is writing to config.log, and then calls config.status.
21853 # config.status does its own redirection, appending to config.log.
21854 # Unfortunately, on DOS this fails, as config.log is still kept open
21855 # by configure, so config.status won't be able to write to it; its
21856 # output is simply discarded. So we exec the FD to /dev/null,
21857 # effectively closing config.log, so it can be properly (re)opened and
21858 # appended to by config.status. When coming back to configure, we
21859 # need to make the FD available again.
21860 if test "$no_create" != yes; then
21861 ac_cs_success=:
21862 ac_config_status_args=
21863 test "$silent" = yes &&
21864 ac_config_status_args="$ac_config_status_args --quiet"
21865 exec 5>/dev/null
21866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21867 exec 5>>config.log
21868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21869 # would make configure fail if this is the last instruction.
21870 $ac_cs_success || as_fn_exit 1
21871 fi
21872 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21874 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21875 fi
21876
21877
21878