configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXft 2.3.3.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://gitlab.freedesktop.org/xorg/lib/libXft/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libXft'
593 PACKAGE_TARNAME='libXft'
594 PACKAGE_VERSION='2.3.3'
595 PACKAGE_STRING='libXft 2.3.3'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXft/issues'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 FONTCONFIG_LIBS
641 FONTCONFIG_CFLAGS
642 FREETYPE_LIBS
643 FREETYPE_CFLAGS
644 XRENDER_LIBS
645 XRENDER_CFLAGS
646 XFT_LT_VERSION
647 MAN_SUBSTS
648 XORG_MAN_PAGE
649 ADMIN_MAN_DIR
650 DRIVER_MAN_DIR
651 MISC_MAN_DIR
652 FILE_MAN_DIR
653 LIB_MAN_DIR
654 APP_MAN_DIR
655 ADMIN_MAN_SUFFIX
656 DRIVER_MAN_SUFFIX
657 MISC_MAN_SUFFIX
658 FILE_MAN_SUFFIX
659 LIB_MAN_SUFFIX
660 APP_MAN_SUFFIX
661 INSTALL_CMD
662 PKG_CONFIG_LIBDIR
663 PKG_CONFIG_PATH
664 PKG_CONFIG
665 CHANGELOG_CMD
666 STRICT_CFLAGS
667 CWARNFLAGS
668 BASE_CFLAGS
669 CPP
670 LT_SYS_LIBRARY_PATH
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
676 MANIFEST_TOOL
677 RANLIB
678 ac_ct_AR
679 AR
680 DLLTOOL
681 OBJDUMP
682 LN_S
683 NM
684 ac_ct_DUMPBIN
685 DUMPBIN
686 LD
687 FGREP
688 EGREP
689 GREP
690 SED
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 am__nodep
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__quote
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 LIBTOOL
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 localstatedir
764 sharedstatedir
765 sysconfdir
766 datadir
767 datarootdir
768 libexecdir
769 sbindir
770 bindir
771 program_transform_name
772 prefix
773 exec_prefix
774 PACKAGE_URL
775 PACKAGE_BUGREPORT
776 PACKAGE_STRING
777 PACKAGE_VERSION
778 PACKAGE_TARNAME
779 PACKAGE_NAME
780 PATH_SEPARATOR
781 SHELL'
782 ac_subst_files=''
783 ac_user_opts='
784 enable_option_checking
785 enable_silent_rules
786 enable_shared
787 enable_static
788 with_pic
789 enable_fast_install
790 with_aix_soname
791 enable_dependency_tracking
792 with_gnu_ld
793 with_sysroot
794 enable_libtool_lock
795 enable_selective_werror
796 enable_strict_compilation
797 '
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 LT_SYS_LIBRARY_PATH
807 CPP
808 PKG_CONFIG
809 PKG_CONFIG_PATH
810 PKG_CONFIG_LIBDIR
811 XRENDER_CFLAGS
812 XRENDER_LIBS
813 FREETYPE_CFLAGS
814 FREETYPE_LIBS
815 FONTCONFIG_CFLAGS
816 FONTCONFIG_LIBS'
817
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
876 fi
877
878 case $ac_option in
879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *=) ac_optarg= ;;
881 *) ac_optarg=yes ;;
882 esac
883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
914
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
947
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1167
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1201
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1204 ;;
1205
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1215
1216 *)
1217 # FIXME: should be removed in autoconf 3.0.
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 ;;
1223
1224 esac
1225 done
1226
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1230 fi
1231
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1245 do
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1260
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275 fi
1276
1277 ac_tool_prefix=
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280 test "$silent" = yes && exec 6>/dev/null
1281
1282
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error $? "working directory cannot be determined"
1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300 $as_echo X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
1318 srcdir=$ac_confdir
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 srcdir=..
1321 fi
1322 else
1323 ac_srcdir_defaulted=no
1324 fi
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328 fi
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336 fi
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1349
1350 #
1351 # Report the --help message.
1352 #
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1356 cat <<_ACEOF
1357 \`configure' configures libXft 2.3.3 to adapt to many kinds of systems.
1358
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1363
1364 Defaults for the options are specified in brackets.
1365
1366 Configuration:
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking ...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 [PREFIX]
1382
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1387
1388 For better control, use the options below.
1389
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root [DATAROOTDIR/doc/libXft]
1406 --htmldir=DIR html documentation [DOCDIR]
1407 --dvidir=DIR dvi documentation [DOCDIR]
1408 --pdfdir=DIR pdf documentation [DOCDIR]
1409 --psdir=DIR ps documentation [DOCDIR]
1410 _ACEOF
1411
1412 cat <<\_ACEOF
1413
1414 Program names:
1415 --program-prefix=PREFIX prepend PREFIX to installed program names
1416 --program-suffix=SUFFIX append SUFFIX to installed program names
1417 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418
1419 System types:
1420 --build=BUILD configure for building on BUILD [guessed]
1421 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1422 _ACEOF
1423 fi
1424
1425 if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive ) echo "Configuration of libXft 2.3.3:";;
1428 esac
1429 cat <<\_ACEOF
1430
1431 Optional Features:
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --enable-silent-rules less verbose build output (undo: "make V=1")
1436 --disable-silent-rules verbose build output (undo: "make V=0")
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-static[=PKGS] build static libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --enable-dependency-tracking
1442 do not reject slow dependency extractors
1443 --disable-dependency-tracking
1444 speeds up one-time build
1445 --disable-libtool-lock avoid locking (might break parallel builds)
1446 --disable-selective-werror
1447 Turn off selective compiler errors. (default:
1448 enabled)
1449 --enable-strict-compilation
1450 Enable all warnings from compiler and make them
1451 errors (default: disabled)
1452
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1457 both]
1458 --with-aix-soname=aix|svr4|both
1459 shared library versioning (aka "SONAME") variant to
1460 provide on AIX, [default=aix].
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1463 compiler's sysroot if not specified).
1464
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 LT_SYS_LIBRARY_PATH
1474 User-defined run-time library search path.
1475 CPP C preprocessor
1476 PKG_CONFIG path to pkg-config utility
1477 PKG_CONFIG_PATH
1478 directories to add to pkg-config's search path
1479 PKG_CONFIG_LIBDIR
1480 path overriding pkg-config's built-in search path
1481 XRENDER_CFLAGS
1482 C compiler flags for XRENDER, overriding pkg-config
1483 XRENDER_LIBS
1484 linker flags for XRENDER, overriding pkg-config
1485 FREETYPE_CFLAGS
1486 C compiler flags for FREETYPE, overriding pkg-config
1487 FREETYPE_LIBS
1488 linker flags for FREETYPE, overriding pkg-config
1489 FONTCONFIG_CFLAGS
1490 C compiler flags for FONTCONFIG, overriding pkg-config
1491 FONTCONFIG_LIBS
1492 linker flags for FONTCONFIG, overriding pkg-config
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 libXft configure 2.3.3
1561 generated by GNU Autoconf 2.69
1562
1563 Copyright (C) 2012 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567 exit
1568 fi
1569
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1573
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_compile
1611
1612 # ac_fn_c_try_link LINENO
1613 # -----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_link ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext conftest$ac_exeext
1619 if { { ac_try="$ac_link"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
1639 test -x conftest$ac_exeext
1640 }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647 fi
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_link
1657
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1669 else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 $4
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 eval "$3=yes"
1677 else
1678 eval "$3=no"
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 fi
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } # ac_fn_c_check_header_compile
1688
1689 # ac_fn_c_try_cpp LINENO
1690 # ----------------------
1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_cpp ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } > conftest.i && {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720 fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_cpp
1725
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=$ac_status
1761 fi
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_run
1767
1768 # ac_fn_c_check_func LINENO FUNC VAR
1769 # ----------------------------------
1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1771 ac_fn_c_check_func ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783 #define $2 innocuous_$2
1784
1785 /* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1789
1790 #ifdef __STDC__
1791 # include <limits.h>
1792 #else
1793 # include <assert.h>
1794 #endif
1795
1796 #undef $2
1797
1798 /* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801 #ifdef __cplusplus
1802 extern "C"
1803 #endif
1804 char $2 ();
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined __stub_$2 || defined __stub___$2
1809 choke me
1810 #endif
1811
1812 int
1813 main ()
1814 {
1815 return $2 ();
1816 ;
1817 return 0;
1818 }
1819 _ACEOF
1820 if ac_fn_c_try_link "$LINENO"; then :
1821 eval "$3=yes"
1822 else
1823 eval "$3=no"
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext \
1826 conftest$ac_exeext conftest.$ac_ext
1827 fi
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833 } # ac_fn_c_check_func
1834
1835 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1836 # ---------------------------------------------
1837 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1838 # accordingly.
1839 ac_fn_c_check_decl ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 as_decl_name=`echo $2|sed 's/ *(.*//'`
1843 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1845 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 $4
1852 int
1853 main ()
1854 {
1855 #ifndef $as_decl_name
1856 #ifdef __cplusplus
1857 (void) $as_decl_use;
1858 #else
1859 (void) $as_decl_name;
1860 #endif
1861 #endif
1862
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_decl
1880 cat >config.log <<_ACEOF
1881 This file contains any messages produced by compilers while
1882 running configure, to aid debugging if configure makes a mistake.
1883
1884 It was created by libXft $as_me 2.3.3, which was
1885 generated by GNU Autoconf 2.69. Invocation command line was
1886
1887 $ $0 $@
1888
1889 _ACEOF
1890 exec 5>>config.log
1891 {
1892 cat <<_ASUNAME
1893 ## --------- ##
1894 ## Platform. ##
1895 ## --------- ##
1896
1897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1902
1903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1905
1906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1909 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1913
1914 _ASUNAME
1915
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 $as_echo "PATH: $as_dir"
1922 done
1923 IFS=$as_save_IFS
1924
1925 } >&5
1926
1927 cat >&5 <<_ACEOF
1928
1929
1930 ## ----------- ##
1931 ## Core tests. ##
1932 ## ----------- ##
1933
1934 _ACEOF
1935
1936
1937 # Keep a trace of the command line.
1938 # Strip out --no-create and --no-recursion so they do not pile up.
1939 # Strip out --silent because we don't want to record it for future runs.
1940 # Also quote any args containing shell meta-characters.
1941 # Make two passes to allow for proper duplicate-argument suppression.
1942 ac_configure_args=
1943 ac_configure_args0=
1944 ac_configure_args1=
1945 ac_must_keep_next=false
1946 for ac_pass in 1 2
1947 do
1948 for ac_arg
1949 do
1950 case $ac_arg in
1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953 | -silent | --silent | --silen | --sile | --sil)
1954 continue ;;
1955 *\'*)
1956 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957 esac
1958 case $ac_pass in
1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960 2)
1961 as_fn_append ac_configure_args1 " '$ac_arg'"
1962 if test $ac_must_keep_next = true; then
1963 ac_must_keep_next=false # Got value, back to normal.
1964 else
1965 case $ac_arg in
1966 *=* | --config-cache | -C | -disable-* | --disable-* \
1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969 | -with-* | --with-* | -without-* | --without-* | --x)
1970 case "$ac_configure_args0 " in
1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1972 esac
1973 ;;
1974 -* ) ac_must_keep_next=true ;;
1975 esac
1976 fi
1977 as_fn_append ac_configure_args " '$ac_arg'"
1978 ;;
1979 esac
1980 done
1981 done
1982 { ac_configure_args0=; unset ac_configure_args0;}
1983 { ac_configure_args1=; unset ac_configure_args1;}
1984
1985 # When interrupted or exit'd, cleanup temporary files, and complete
1986 # config.log. We remove comments because anyway the quotes in there
1987 # would cause problems or look ugly.
1988 # WARNING: Use '\'' to represent an apostrophe within the trap.
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990 trap 'exit_status=$?
1991 # Save into config.log some information that might help in debugging.
1992 {
1993 echo
1994
1995 $as_echo "## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##"
1998 echo
1999 # The following way of writing the cache mishandles newlines in values,
2000 (
2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in #(
2004 *${as_nl}*)
2005 case $ac_var in #(
2006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008 esac
2009 case $ac_var in #(
2010 _ | IFS | as_nl) ;; #(
2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012 *) { eval $ac_var=; unset $ac_var;} ;;
2013 esac ;;
2014 esac
2015 done
2016 (set) 2>&1 |
2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018 *${as_nl}ac_space=\ *)
2019 sed -n \
2020 "s/'\''/'\''\\\\'\'''\''/g;
2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022 ;; #(
2023 *)
2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025 ;;
2026 esac |
2027 sort
2028 )
2029 echo
2030
2031 $as_echo "## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##"
2034 echo
2035 for ac_var in $ac_subst_vars
2036 do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in
2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 esac
2041 $as_echo "$ac_var='\''$ac_val'\''"
2042 done | sort
2043 echo
2044
2045 if test -n "$ac_subst_files"; then
2046 $as_echo "## ------------------- ##
2047 ## File substitutions. ##
2048 ## ------------------- ##"
2049 echo
2050 for ac_var in $ac_subst_files
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059 fi
2060
2061 if test -s confdefs.h; then
2062 $as_echo "## ----------- ##
2063 ## confdefs.h. ##
2064 ## ----------- ##"
2065 echo
2066 cat confdefs.h
2067 echo
2068 fi
2069 test "$ac_signal" != 0 &&
2070 $as_echo "$as_me: caught signal $ac_signal"
2071 $as_echo "$as_me: exit $exit_status"
2072 } >&5
2073 rm -f core *.core core.conftest.* &&
2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075 exit $exit_status
2076 ' 0
2077 for ac_signal in 1 2 13 15; do
2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2079 done
2080 ac_signal=0
2081
2082 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2083 rm -f -r conftest* confdefs.h
2084
2085 $as_echo "/* confdefs.h */" > confdefs.h
2086
2087 # Predefined preprocessor variables.
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_NAME "$PACKAGE_NAME"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_STRING "$PACKAGE_STRING"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_URL "$PACKAGE_URL"
2111 _ACEOF
2112
2113
2114 # Let the site file select an alternate cache file if it wants to.
2115 # Prefer an explicitly selected file to automatically selected ones.
2116 ac_site_file1=NONE
2117 ac_site_file2=NONE
2118 if test -n "$CONFIG_SITE"; then
2119 # We do not want a PATH search for config.site.
2120 case $CONFIG_SITE in #((
2121 -*) ac_site_file1=./$CONFIG_SITE;;
2122 */*) ac_site_file1=$CONFIG_SITE;;
2123 *) ac_site_file1=./$CONFIG_SITE;;
2124 esac
2125 elif test "x$prefix" != xNONE; then
2126 ac_site_file1=$prefix/share/config.site
2127 ac_site_file2=$prefix/etc/config.site
2128 else
2129 ac_site_file1=$ac_default_prefix/share/config.site
2130 ac_site_file2=$ac_default_prefix/etc/config.site
2131 fi
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133 do
2134 test "x$ac_site_file" = xNONE && continue
2135 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138 sed 's/^/| /' "$ac_site_file" >&5
2139 . "$ac_site_file" \
2140 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 as_fn_error $? "failed to load site script $ac_site_file
2143 See \`config.log' for more details" "$LINENO" 5; }
2144 fi
2145 done
2146
2147 if test -r "$cache_file"; then
2148 # Some versions of bash will fail to source /dev/null (special files
2149 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2150 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153 case $cache_file in
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
2156 esac
2157 fi
2158 else
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2161 >$cache_file
2162 fi
2163
2164 # Check that the precious variables saved in the cache have kept the same
2165 # value.
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169 eval ac_new_set=\$ac_env_${ac_var}_set
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171 eval ac_new_val=\$ac_env_${ac_var}_value
2172 case $ac_old_set,$ac_new_set in
2173 set,)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,set)
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2181 ,);;
2182 *)
2183 if test "x$ac_old_val" != "x$ac_new_val"; then
2184 # differences in whitespace do not lead to failure.
2185 ac_old_val_w=`echo x $ac_old_val`
2186 ac_new_val_w=`echo x $ac_new_val`
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190 ac_cache_corrupted=:
2191 else
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194 eval $ac_var=\$ac_old_val
2195 fi
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2197 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2200 fi;;
2201 esac
2202 # Pass precious variables to config.status.
2203 if test "$ac_new_set" = set; then
2204 case $ac_new_val in
2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 *) ac_arg=$ac_var=$ac_new_val ;;
2207 esac
2208 case " $ac_configure_args " in
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211 esac
2212 fi
2213 done
2214 if $ac_cache_corrupted; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 fi
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2224
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233 ac_config_headers="$ac_config_headers config.h"
2234
2235
2236 # Initialize Automake
2237 am__api_version='1.15'
2238
2239 ac_aux_dir=
2240 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2241 if test -f "$ac_dir/install-sh"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/install-sh -c"
2244 break
2245 elif test -f "$ac_dir/install.sh"; then
2246 ac_aux_dir=$ac_dir
2247 ac_install_sh="$ac_aux_dir/install.sh -c"
2248 break
2249 elif test -f "$ac_dir/shtool"; then
2250 ac_aux_dir=$ac_dir
2251 ac_install_sh="$ac_aux_dir/shtool install -c"
2252 break
2253 fi
2254 done
2255 if test -z "$ac_aux_dir"; then
2256 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2257 fi
2258
2259 # These three variables are undocumented and unsupported,
2260 # and are intended to be withdrawn in a future Autoconf release.
2261 # They can cause serious problems if a builder's source tree is in a directory
2262 # whose full name contains unusual characters.
2263 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2264 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2265 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2266
2267
2268 # Find a good install program. We prefer a C program (faster),
2269 # so one script is as good as another. But avoid the broken or
2270 # incompatible versions:
2271 # SysV /etc/install, /usr/sbin/install
2272 # SunOS /usr/etc/install
2273 # IRIX /sbin/install
2274 # AIX /bin/install
2275 # AmigaOS /C/install, which installs bootblocks on floppy discs
2276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2279 # OS/2's system install, which has a completely different semantic
2280 # ./install, which can be erroneously created by make from ./install.sh.
2281 # Reject install programs that cannot install multiple files.
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2283 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2284 if test -z "$INSTALL"; then
2285 if ${ac_cv_path_install+:} false; then :
2286 $as_echo_n "(cached) " >&6
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 # Account for people who put trailing slashes in PATH elements.
2294 case $as_dir/ in #((
2295 ./ | .// | /[cC]/* | \
2296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2298 /usr/ucb/* ) ;;
2299 *)
2300 # OSF1 and SCO ODT 3.0 have their own names for install.
2301 # Don't use installbsd from OSF since it installs stuff as root
2302 # by default.
2303 for ac_prog in ginstall scoinst install; do
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2306 if test $ac_prog = install &&
2307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # AIX install. It has an incompatible calling convention.
2309 :
2310 elif test $ac_prog = install &&
2311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312 # program-specific install script used by HP pwplus--don't use.
2313 :
2314 else
2315 rm -rf conftest.one conftest.two conftest.dir
2316 echo one > conftest.one
2317 echo two > conftest.two
2318 mkdir conftest.dir
2319 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2320 test -s conftest.one && test -s conftest.two &&
2321 test -s conftest.dir/conftest.one &&
2322 test -s conftest.dir/conftest.two
2323 then
2324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2325 break 3
2326 fi
2327 fi
2328 fi
2329 done
2330 done
2331 ;;
2332 esac
2333
2334 done
2335 IFS=$as_save_IFS
2336
2337 rm -rf conftest.one conftest.two conftest.dir
2338
2339 fi
2340 if test "${ac_cv_path_install+set}" = set; then
2341 INSTALL=$ac_cv_path_install
2342 else
2343 # As a last resort, use the slow shell script. Don't cache a
2344 # value for INSTALL within a source directory, because that will
2345 # break other packages using the cache if that directory is
2346 # removed, or if the value is a relative name.
2347 INSTALL=$ac_install_sh
2348 fi
2349 fi
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2351 $as_echo "$INSTALL" >&6; }
2352
2353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2354 # It thinks the first close brace ends the variable substitution.
2355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2356
2357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2358
2359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2360
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2362 $as_echo_n "checking whether build environment is sane... " >&6; }
2363 # Reject unsafe characters in $srcdir or the absolute working directory
2364 # name. Accept space and tab only in the latter.
2365 am_lf='
2366 '
2367 case `pwd` in
2368 *[\\\"\#\$\&\'\`$am_lf]*)
2369 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2370 esac
2371 case $srcdir in
2372 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2373 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2374 esac
2375
2376 # Do 'set' in a subshell so we don't clobber the current shell's
2377 # arguments. Must try -L first in case configure is actually a
2378 # symlink; some systems play weird games with the mod time of symlinks
2379 # (eg FreeBSD returns the mod time of the symlink's containing
2380 # directory).
2381 if (
2382 am_has_slept=no
2383 for am_try in 1 2; do
2384 echo "timestamp, slept: $am_has_slept" > conftest.file
2385 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2386 if test "$*" = "X"; then
2387 # -L didn't work.
2388 set X `ls -t "$srcdir/configure" conftest.file`
2389 fi
2390 if test "$*" != "X $srcdir/configure conftest.file" \
2391 && test "$*" != "X conftest.file $srcdir/configure"; then
2392
2393 # If neither matched, then we have a broken ls. This can happen
2394 # if, for instance, CONFIG_SHELL is bash and it inherits a
2395 # broken ls alias from the environment. This has actually
2396 # happened. Such a system could not be considered "sane".
2397 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2398 alias in your environment" "$LINENO" 5
2399 fi
2400 if test "$2" = conftest.file || test $am_try -eq 2; then
2401 break
2402 fi
2403 # Just in case.
2404 sleep 1
2405 am_has_slept=yes
2406 done
2407 test "$2" = conftest.file
2408 )
2409 then
2410 # Ok.
2411 :
2412 else
2413 as_fn_error $? "newly created file is older than distributed files!
2414 Check your system clock" "$LINENO" 5
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2417 $as_echo "yes" >&6; }
2418 # If we didn't sleep, we still need to ensure time stamps of config.status and
2419 # generated files are strictly newer.
2420 am_sleep_pid=
2421 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2422 ( sleep 1 ) &
2423 am_sleep_pid=$!
2424 fi
2425
2426 rm -f conftest.file
2427
2428 test "$program_prefix" != NONE &&
2429 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2430 # Use a double $ so make ignores it.
2431 test "$program_suffix" != NONE &&
2432 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2433 # Double any \ or $.
2434 # By default was `s,x,x', remove it if useless.
2435 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2436 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2437
2438 # Expand $ac_aux_dir to an absolute path.
2439 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2440
2441 if test x"${MISSING+set}" != xset; then
2442 case $am_aux_dir in
2443 *\ * | *\ *)
2444 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2445 *)
2446 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2447 esac
2448 fi
2449 # Use eval to expand $SHELL
2450 if eval "$MISSING --is-lightweight"; then
2451 am_missing_run="$MISSING "
2452 else
2453 am_missing_run=
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2455 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2456 fi
2457
2458 if test x"${install_sh+set}" != xset; then
2459 case $am_aux_dir in
2460 *\ * | *\ *)
2461 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2462 *)
2463 install_sh="\${SHELL} $am_aux_dir/install-sh"
2464 esac
2465 fi
2466
2467 # Installed binaries are usually stripped using 'strip' when the user
2468 # run "make install-strip". However 'strip' might not be the right
2469 # tool to use in cross-compilation environments, therefore Automake
2470 # will honor the 'STRIP' environment variable to overrule this program.
2471 if test "$cross_compiling" != no; then
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}strip; ac_word=$2
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if ${ac_cv_prog_STRIP+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test -n "$STRIP"; then
2481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2493 fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 STRIP=$ac_cv_prog_STRIP
2501 if test -n "$STRIP"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2503 $as_echo "$STRIP" >&6; }
2504 else
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2506 $as_echo "no" >&6; }
2507 fi
2508
2509
2510 fi
2511 if test -z "$ac_cv_prog_STRIP"; then
2512 ac_ct_STRIP=$STRIP
2513 # Extract the first word of "strip", so it can be a program name with args.
2514 set dummy strip; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test -n "$ac_ct_STRIP"; then
2521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_ac_ct_STRIP="strip"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2541 if test -n "$ac_ct_STRIP"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2543 $as_echo "$ac_ct_STRIP" >&6; }
2544 else
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549 if test "x$ac_ct_STRIP" = x; then
2550 STRIP=":"
2551 else
2552 case $cross_compiling:$ac_tool_warned in
2553 yes:)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556 ac_tool_warned=yes ;;
2557 esac
2558 STRIP=$ac_ct_STRIP
2559 fi
2560 else
2561 STRIP="$ac_cv_prog_STRIP"
2562 fi
2563
2564 fi
2565 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2568 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2569 if test -z "$MKDIR_P"; then
2570 if ${ac_cv_path_mkdir+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_prog in mkdir gmkdir; do
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2581 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2582 'mkdir (GNU coreutils) '* | \
2583 'mkdir (coreutils) '* | \
2584 'mkdir (fileutils) '4.1*)
2585 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2586 break 3;;
2587 esac
2588 done
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 fi
2594
2595 test -d ./--version && rmdir ./--version
2596 if test "${ac_cv_path_mkdir+set}" = set; then
2597 MKDIR_P="$ac_cv_path_mkdir -p"
2598 else
2599 # As a last resort, use the slow shell script. Don't cache a
2600 # value for MKDIR_P within a source directory, because that will
2601 # break other packages using the cache if that directory is
2602 # removed, or if the value is a relative name.
2603 MKDIR_P="$ac_install_sh -d"
2604 fi
2605 fi
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2607 $as_echo "$MKDIR_P" >&6; }
2608
2609 for ac_prog in gawk mawk nawk awk
2610 do
2611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_AWK+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test -n "$AWK"; then
2619 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_AWK="$ac_prog"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 AWK=$ac_cv_prog_AWK
2639 if test -n "$AWK"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2641 $as_echo "$AWK" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 fi
2646
2647
2648 test -n "$AWK" && break
2649 done
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2652 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2653 set x ${MAKE-make}
2654 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2655 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 cat >conftest.make <<\_ACEOF
2659 SHELL = /bin/sh
2660 all:
2661 @echo '@@@%%%=$(MAKE)=@@@%%%'
2662 _ACEOF
2663 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2664 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2665 *@@@%%%=?*=@@@%%%*)
2666 eval ac_cv_prog_make_${ac_make}_set=yes;;
2667 *)
2668 eval ac_cv_prog_make_${ac_make}_set=no;;
2669 esac
2670 rm -f conftest.make
2671 fi
2672 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2674 $as_echo "yes" >&6; }
2675 SET_MAKE=
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 SET_MAKE="MAKE=${MAKE-make}"
2680 fi
2681
2682 rm -rf .tst 2>/dev/null
2683 mkdir .tst 2>/dev/null
2684 if test -d .tst; then
2685 am__leading_dot=.
2686 else
2687 am__leading_dot=_
2688 fi
2689 rmdir .tst 2>/dev/null
2690
2691 # Check whether --enable-silent-rules was given.
2692 if test "${enable_silent_rules+set}" = set; then :
2693 enableval=$enable_silent_rules;
2694 fi
2695
2696 case $enable_silent_rules in # (((
2697 yes) AM_DEFAULT_VERBOSITY=0;;
2698 no) AM_DEFAULT_VERBOSITY=1;;
2699 *) AM_DEFAULT_VERBOSITY=1;;
2700 esac
2701 am_make=${MAKE-make}
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2703 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2704 if ${am_cv_make_support_nested_variables+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if $as_echo 'TRUE=$(BAR$(V))
2708 BAR0=false
2709 BAR1=true
2710 V=1
2711 am__doit:
2712 @$(TRUE)
2713 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2714 am_cv_make_support_nested_variables=yes
2715 else
2716 am_cv_make_support_nested_variables=no
2717 fi
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2720 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2721 if test $am_cv_make_support_nested_variables = yes; then
2722 AM_V='$(V)'
2723 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2724 else
2725 AM_V=$AM_DEFAULT_VERBOSITY
2726 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2727 fi
2728 AM_BACKSLASH='\'
2729
2730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2732 # is not polluted with repeated "-I."
2733 am__isrc=' -I$(srcdir)'
2734 # test to see if srcdir already configured
2735 if test -f $srcdir/config.status; then
2736 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2737 fi
2738 fi
2739
2740 # test whether we have cygpath
2741 if test -z "$CYGPATH_W"; then
2742 if (cygpath --version) >/dev/null 2>/dev/null; then
2743 CYGPATH_W='cygpath -w'
2744 else
2745 CYGPATH_W=echo
2746 fi
2747 fi
2748
2749
2750 # Define the identity of the package.
2751 PACKAGE='libXft'
2752 VERSION='2.3.3'
2753
2754
2755 cat >>confdefs.h <<_ACEOF
2756 #define PACKAGE "$PACKAGE"
2757 _ACEOF
2758
2759
2760 cat >>confdefs.h <<_ACEOF
2761 #define VERSION "$VERSION"
2762 _ACEOF
2763
2764 # Some tools Automake needs.
2765
2766 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2767
2768
2769 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2770
2771
2772 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2773
2774
2775 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2776
2777
2778 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2779
2780 # For better backward compatibility. To be removed once Automake 1.9.x
2781 # dies out for good. For more background, see:
2782 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2783 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2784 mkdir_p='$(MKDIR_P)'
2785
2786 # We need awk for the "check" target (and possibly the TAP driver). The
2787 # system "awk" is bad on some platforms.
2788 # Always define AMTAR for backward compatibility. Yes, it's still used
2789 # in the wild :-( We should find a proper way to deprecate it ...
2790 AMTAR='$${TAR-tar}'
2791
2792
2793 # We'll loop over all known methods to create a tar archive until one works.
2794 _am_tools='gnutar pax cpio none'
2795
2796 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2797
2798
2799
2800
2801
2802
2803 # POSIX will say in a future version that running "rm -f" with no argument
2804 # is OK; and we want to be able to make that assumption in our Makefile
2805 # recipes. So use an aggressive probe to check that the usage we want is
2806 # actually supported "in the wild" to an acceptable degree.
2807 # See automake bug#10828.
2808 # To make any issue more visible, cause the running configure to be aborted
2809 # by default if the 'rm' program in use doesn't match our expectations; the
2810 # user can still override this though.
2811 if rm -f && rm -fr && rm -rf; then : OK; else
2812 cat >&2 <<'END'
2813 Oops!
2814
2815 Your 'rm' program seems unable to run without file operands specified
2816 on the command line, even when the '-f' option is present. This is contrary
2817 to the behaviour of most rm programs out there, and not conforming with
2818 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2819
2820 Please tell bug-automake@gnu.org about your system, including the value
2821 of your $PATH and any error possibly output before this message. This
2822 can help us improve future automake versions.
2823
2824 END
2825 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2826 echo 'Configuration will proceed anyway, since you have set the' >&2
2827 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2828 echo >&2
2829 else
2830 cat >&2 <<'END'
2831 Aborting the configuration process, to ensure you take notice of the issue.
2832
2833 You can download and install GNU coreutils to get an 'rm' implementation
2834 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2835
2836 If you want to complete the configuration process using your problematic
2837 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2838 to "yes", and re-run configure.
2839
2840 END
2841 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2842 fi
2843 fi
2844
2845
2846 # Initialize libtool
2847 case `pwd` in
2848 *\ * | *\ *)
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2850 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2851 esac
2852
2853
2854
2855 macro_version='2.4.6'
2856 macro_revision='2.4.6'
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870 ltmain=$ac_aux_dir/ltmain.sh
2871
2872 # Make sure we can run config.sub.
2873 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2874 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2875
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2877 $as_echo_n "checking build system type... " >&6; }
2878 if ${ac_cv_build+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 ac_build_alias=$build_alias
2882 test "x$ac_build_alias" = x &&
2883 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2884 test "x$ac_build_alias" = x &&
2885 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2886 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2888
2889 fi
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2891 $as_echo "$ac_cv_build" >&6; }
2892 case $ac_cv_build in
2893 *-*-*) ;;
2894 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2895 esac
2896 build=$ac_cv_build
2897 ac_save_IFS=$IFS; IFS='-'
2898 set x $ac_cv_build
2899 shift
2900 build_cpu=$1
2901 build_vendor=$2
2902 shift; shift
2903 # Remember, the first character of IFS is used to create $*,
2904 # except with old shells:
2905 build_os=$*
2906 IFS=$ac_save_IFS
2907 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2908
2909
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2911 $as_echo_n "checking host system type... " >&6; }
2912 if ${ac_cv_host+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test "x$host_alias" = x; then
2916 ac_cv_host=$ac_cv_build
2917 else
2918 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2919 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2920 fi
2921
2922 fi
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2924 $as_echo "$ac_cv_host" >&6; }
2925 case $ac_cv_host in
2926 *-*-*) ;;
2927 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2928 esac
2929 host=$ac_cv_host
2930 ac_save_IFS=$IFS; IFS='-'
2931 set x $ac_cv_host
2932 shift
2933 host_cpu=$1
2934 host_vendor=$2
2935 shift; shift
2936 # Remember, the first character of IFS is used to create $*,
2937 # except with old shells:
2938 host_os=$*
2939 IFS=$ac_save_IFS
2940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2941
2942
2943 # Backslashify metacharacters that are still active within
2944 # double-quoted strings.
2945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2946
2947 # Same as above, but do not quote variable references.
2948 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2949
2950 # Sed substitution to delay expansion of an escaped shell variable in a
2951 # double_quote_subst'ed string.
2952 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2953
2954 # Sed substitution to delay expansion of an escaped single quote.
2955 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2956
2957 # Sed substitution to avoid accidental globbing in evaled expressions
2958 no_glob_subst='s/\*/\\\*/g'
2959
2960 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2963
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2965 $as_echo_n "checking how to print strings... " >&6; }
2966 # Test print first, because it will be a builtin if present.
2967 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2968 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2969 ECHO='print -r --'
2970 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2971 ECHO='printf %s\n'
2972 else
2973 # Use this function as a fallback that always works.
2974 func_fallback_echo ()
2975 {
2976 eval 'cat <<_LTECHO_EOF
2977 $1
2978 _LTECHO_EOF'
2979 }
2980 ECHO='func_fallback_echo'
2981 fi
2982
2983 # func_echo_all arg...
2984 # Invoke $ECHO with all args, space-separated.
2985 func_echo_all ()
2986 {
2987 $ECHO ""
2988 }
2989
2990 case $ECHO in
2991 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2992 $as_echo "printf" >&6; } ;;
2993 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2994 $as_echo "print -r" >&6; } ;;
2995 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2996 $as_echo "cat" >&6; } ;;
2997 esac
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012 DEPDIR="${am__leading_dot}deps"
3013
3014 ac_config_commands="$ac_config_commands depfiles"
3015
3016
3017 am_make=${MAKE-make}
3018 cat > confinc << 'END'
3019 am__doit:
3020 @echo this is the am__doit target
3021 .PHONY: am__doit
3022 END
3023 # If we don't find an include directive, just comment out the code.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3025 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3026 am__include="#"
3027 am__quote=
3028 _am_result=none
3029 # First try GNU make style include.
3030 echo "include confinc" > confmf
3031 # Ignore all kinds of additional output from 'make'.
3032 case `$am_make -s -f confmf 2> /dev/null` in #(
3033 *the\ am__doit\ target*)
3034 am__include=include
3035 am__quote=
3036 _am_result=GNU
3037 ;;
3038 esac
3039 # Now try BSD make style include.
3040 if test "$am__include" = "#"; then
3041 echo '.include "confinc"' > confmf
3042 case `$am_make -s -f confmf 2> /dev/null` in #(
3043 *the\ am__doit\ target*)
3044 am__include=.include
3045 am__quote="\""
3046 _am_result=BSD
3047 ;;
3048 esac
3049 fi
3050
3051
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3053 $as_echo "$_am_result" >&6; }
3054 rm -f confinc confmf
3055
3056 # Check whether --enable-dependency-tracking was given.
3057 if test "${enable_dependency_tracking+set}" = set; then :
3058 enableval=$enable_dependency_tracking;
3059 fi
3060
3061 if test "x$enable_dependency_tracking" != xno; then
3062 am_depcomp="$ac_aux_dir/depcomp"
3063 AMDEPBACKSLASH='\'
3064 am__nodep='_no'
3065 fi
3066 if test "x$enable_dependency_tracking" != xno; then
3067 AMDEP_TRUE=
3068 AMDEP_FALSE='#'
3069 else
3070 AMDEP_TRUE='#'
3071 AMDEP_FALSE=
3072 fi
3073
3074
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$ac_cv_prog_CC"; then
3120 ac_ct_CC=$CC
3121 # Extract the first word of "gcc", so it can be a program name with args.
3122 set dummy gcc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_ac_ct_CC="gcc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157 if test "x$ac_ct_CC" = x; then
3158 CC=""
3159 else
3160 case $cross_compiling:$ac_tool_warned in
3161 yes:)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3165 esac
3166 CC=$ac_ct_CC
3167 fi
3168 else
3169 CC="$ac_cv_prog_CC"
3170 fi
3171
3172 if test -z "$CC"; then
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3175 set dummy ${ac_tool_prefix}cc; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_CC+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_CC="${ac_tool_prefix}cc"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211 fi
3212 fi
3213 if test -z "$CC"; then
3214 # Extract the first word of "cc", so it can be a program name with args.
3215 set dummy cc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 ac_prog_rejected=no
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233 ac_prog_rejected=yes
3234 continue
3235 fi
3236 ac_cv_prog_CC="cc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 if test $ac_prog_rejected = yes; then
3245 # We found a bogon in the path, so make sure we never use it.
3246 set dummy $ac_cv_prog_CC
3247 shift
3248 if test $# != 0; then
3249 # We chose a different compiler from the bogus one.
3250 # However, it has the same basename, so the bogon will be chosen
3251 # first if we set CC to just the basename; use the full file name.
3252 shift
3253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3254 fi
3255 fi
3256 fi
3257 fi
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268 fi
3269 if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 for ac_prog in cl.exe
3272 do
3273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 test -n "$CC" && break
3311 done
3312 fi
3313 if test -z "$CC"; then
3314 ac_ct_CC=$CC
3315 for ac_prog in cl.exe
3316 do
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$ac_ct_CC"; then
3325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_ac_ct_CC="$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345 if test -n "$ac_ct_CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347 $as_echo "$ac_ct_CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 fi
3352
3353
3354 test -n "$ac_ct_CC" && break
3355 done
3356
3357 if test "x$ac_ct_CC" = x; then
3358 CC=""
3359 else
3360 case $cross_compiling:$ac_tool_warned in
3361 yes:)
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364 ac_tool_warned=yes ;;
3365 esac
3366 CC=$ac_ct_CC
3367 fi
3368 fi
3369
3370 fi
3371
3372
3373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error $? "no acceptable C compiler found in \$PATH
3376 See \`config.log' for more details" "$LINENO" 5; }
3377
3378 # Provide some information about the compiler.
3379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380 set X $ac_compile
3381 ac_compiler=$2
3382 for ac_option in --version -v -V -qversion; do
3383 { { ac_try="$ac_compiler $ac_option >&5"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3391 ac_status=$?
3392 if test -s conftest.err; then
3393 sed '10a\
3394 ... rest of stderr output deleted ...
3395 10q' conftest.err >conftest.er1
3396 cat conftest.er1 >&5
3397 fi
3398 rm -f conftest.er1 conftest.err
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 done
3402
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405
3406 int
3407 main ()
3408 {
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 ac_clean_files_save=$ac_clean_files
3415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3416 # Try to create an executable without -o first, disregard a.out.
3417 # It will help us diagnose broken compilers, and finding out an intuition
3418 # of exeext.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3420 $as_echo_n "checking whether the C compiler works... " >&6; }
3421 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3422
3423 # The possible output files:
3424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3425
3426 ac_rmfiles=
3427 for ac_file in $ac_files
3428 do
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432 esac
3433 done
3434 rm -f $ac_rmfiles
3435
3436 if { { ac_try="$ac_link_default"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_link_default") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
3447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3450 # so that the user can short-circuit this test for compilers unknown to
3451 # Autoconf.
3452 for ac_file in $ac_files ''
3453 do
3454 test -f "$ac_file" || continue
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3457 ;;
3458 [ab].out )
3459 # We found the default executable, but exeext='' is most
3460 # certainly right.
3461 break;;
3462 *.* )
3463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3464 then :; else
3465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466 fi
3467 # We set ac_cv_exeext here because the later test for it is not
3468 # safe: cross compilers may not add the suffix if given an `-o'
3469 # argument, so we may need to know it at that point already.
3470 # Even if this section looks crufty: it has the advantage of
3471 # actually working.
3472 break;;
3473 * )
3474 break;;
3475 esac
3476 done
3477 test "$ac_cv_exeext" = no && ac_cv_exeext=
3478
3479 else
3480 ac_file=''
3481 fi
3482 if test -z "$ac_file"; then :
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error 77 "C compiler cannot create executables
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 $as_echo "yes" >&6; }
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3497 $as_echo_n "checking for C compiler default output file name... " >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3499 $as_echo "$ac_file" >&6; }
3500 ac_exeext=$ac_cv_exeext
3501
3502 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503 ac_clean_files=$ac_clean_files_save
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3505 $as_echo_n "checking for suffix of executables... " >&6; }
3506 if { { ac_try="$ac_link"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3519 # work properly (i.e., refer to `conftest.exe'), while it won't with
3520 # `rm'.
3521 for ac_file in conftest.exe conftest conftest.*; do
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526 break;;
3527 * ) break;;
3528 esac
3529 done
3530 else
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3534 See \`config.log' for more details" "$LINENO" 5; }
3535 fi
3536 rm -f conftest conftest$ac_cv_exeext
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3538 $as_echo "$ac_cv_exeext" >&6; }
3539
3540 rm -f conftest.$ac_ext
3541 EXEEXT=$ac_cv_exeext
3542 ac_exeext=$EXEEXT
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <stdio.h>
3546 int
3547 main ()
3548 {
3549 FILE *f = fopen ("conftest.out", "w");
3550 return ferror (f) || fclose (f) != 0;
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 ac_clean_files="$ac_clean_files conftest.out"
3557 # Check that the compiler produces executables we can run. If not, either
3558 # the compiler is broken, or we cross compile.
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3560 $as_echo_n "checking whether we are cross compiling... " >&6; }
3561 if test "$cross_compiling" != yes; then
3562 { { ac_try="$ac_link"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_link") 2>&5
3570 ac_status=$?
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }
3573 if { ac_try='./conftest$ac_cv_exeext'
3574 { { case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_try") 2>&5
3581 ac_status=$?
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }; }; then
3584 cross_compiling=no
3585 else
3586 if test "$cross_compiling" = maybe; then
3587 cross_compiling=yes
3588 else
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error $? "cannot run C compiled programs.
3592 If you meant to cross compile, use \`--host'.
3593 See \`config.log' for more details" "$LINENO" 5; }
3594 fi
3595 fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3598 $as_echo "$cross_compiling" >&6; }
3599
3600 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3601 ac_clean_files=$ac_clean_files_save
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3603 $as_echo_n "checking for suffix of object files... " >&6; }
3604 if ${ac_cv_objext+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609
3610 int
3611 main ()
3612 {
3613
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 rm -f conftest.o conftest.obj
3619 if { { ac_try="$ac_compile"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_compile") 2>&5
3627 ac_status=$?
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }; then :
3630 for ac_file in conftest.o conftest.obj conftest.*; do
3631 test -f "$ac_file" || continue;
3632 case $ac_file in
3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3635 break;;
3636 esac
3637 done
3638 else
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error $? "cannot compute suffix of object files: cannot compile
3645 See \`config.log' for more details" "$LINENO" 5; }
3646 fi
3647 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3650 $as_echo "$ac_cv_objext" >&6; }
3651 OBJEXT=$ac_cv_objext
3652 ac_objext=$OBJEXT
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3654 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3655 if ${ac_cv_c_compiler_gnu+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660
3661 int
3662 main ()
3663 {
3664 #ifndef __GNUC__
3665 choke me
3666 #endif
3667
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_compiler_gnu=yes
3674 else
3675 ac_compiler_gnu=no
3676 fi
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3682 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3683 if test $ac_compiler_gnu = yes; then
3684 GCC=yes
3685 else
3686 GCC=
3687 fi
3688 ac_test_CFLAGS=${CFLAGS+set}
3689 ac_save_CFLAGS=$CFLAGS
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3691 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3692 if ${ac_cv_prog_cc_g+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 ac_save_c_werror_flag=$ac_c_werror_flag
3696 ac_c_werror_flag=yes
3697 ac_cv_prog_cc_g=no
3698 CFLAGS="-g"
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701
3702 int
3703 main ()
3704 {
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_g=yes
3712 else
3713 CFLAGS=""
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3716
3717 int
3718 main ()
3719 {
3720
3721 ;
3722 return 0;
3723 }
3724 _ACEOF
3725 if ac_fn_c_try_compile "$LINENO"; then :
3726
3727 else
3728 ac_c_werror_flag=$ac_save_c_werror_flag
3729 CFLAGS="-g"
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732
3733 int
3734 main ()
3735 {
3736
3737 ;
3738 return 0;
3739 }
3740 _ACEOF
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_cv_prog_cc_g=yes
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_c_werror_flag=$ac_save_c_werror_flag
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3752 $as_echo "$ac_cv_prog_cc_g" >&6; }
3753 if test "$ac_test_CFLAGS" = set; then
3754 CFLAGS=$ac_save_CFLAGS
3755 elif test $ac_cv_prog_cc_g = yes; then
3756 if test "$GCC" = yes; then
3757 CFLAGS="-g -O2"
3758 else
3759 CFLAGS="-g"
3760 fi
3761 else
3762 if test "$GCC" = yes; then
3763 CFLAGS="-O2"
3764 else
3765 CFLAGS=
3766 fi
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3769 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3770 if ${ac_cv_prog_cc_c89+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 ac_cv_prog_cc_c89=no
3774 ac_save_CC=$CC
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777 #include <stdarg.h>
3778 #include <stdio.h>
3779 struct stat;
3780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3781 struct buf { int x; };
3782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3783 static char *e (p, i)
3784 char **p;
3785 int i;
3786 {
3787 return p[i];
3788 }
3789 static char *f (char * (*g) (char **, int), char **p, ...)
3790 {
3791 char *s;
3792 va_list v;
3793 va_start (v,p);
3794 s = g (p, va_arg (v,int));
3795 va_end (v);
3796 return s;
3797 }
3798
3799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3800 function prototypes and stuff, but not '\xHH' hex character constants.
3801 These don't provoke an error unfortunately, instead are silently treated
3802 as 'x'. The following induces an error, until -std is added to get
3803 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3804 array size at least. It's necessary to write '\x00'==0 to get something
3805 that's true only with -std. */
3806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3807
3808 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3809 inside strings and character constants. */
3810 #define FOO(x) 'x'
3811 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3812
3813 int test (int i, double x);
3814 struct s1 {int (*f) (int a);};
3815 struct s2 {int (*f) (double a);};
3816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3817 int argc;
3818 char **argv;
3819 int
3820 main ()
3821 {
3822 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3828 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3829 do
3830 CC="$ac_save_CC $ac_arg"
3831 if ac_fn_c_try_compile "$LINENO"; then :
3832 ac_cv_prog_cc_c89=$ac_arg
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext
3835 test "x$ac_cv_prog_cc_c89" != "xno" && break
3836 done
3837 rm -f conftest.$ac_ext
3838 CC=$ac_save_CC
3839
3840 fi
3841 # AC_CACHE_VAL
3842 case "x$ac_cv_prog_cc_c89" in
3843 x)
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3845 $as_echo "none needed" >&6; } ;;
3846 xno)
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3848 $as_echo "unsupported" >&6; } ;;
3849 *)
3850 CC="$CC $ac_cv_prog_cc_c89"
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3852 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3853 esac
3854 if test "x$ac_cv_prog_cc_c89" != xno; then :
3855
3856 fi
3857
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3870 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3871 if ${am_cv_prog_cc_c_o+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876
3877 int
3878 main ()
3879 {
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 # Make sure it works both with $CC and with simple cc.
3886 # Following AC_PROG_CC_C_O, we do the test twice because some
3887 # compilers refuse to overwrite an existing .o file with -o,
3888 # though they will create one.
3889 am_cv_prog_cc_c_o=yes
3890 for am_i in 1 2; do
3891 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3892 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } \
3896 && test -f conftest2.$ac_objext; then
3897 : OK
3898 else
3899 am_cv_prog_cc_c_o=no
3900 break
3901 fi
3902 done
3903 rm -f core conftest*
3904 unset am_i
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3907 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3908 if test "$am_cv_prog_cc_c_o" != yes; then
3909 # Losing compiler, so override with the script.
3910 # FIXME: It is wrong to rewrite CC.
3911 # But if we don't then we get into trouble of one sort or another.
3912 # A longer-term fix would be to have automake use am__CC in this case,
3913 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3914 CC="$am_aux_dir/compile $CC"
3915 fi
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922
3923 depcc="$CC" am_compiler_list=
3924
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3926 $as_echo_n "checking dependency style of $depcc... " >&6; }
3927 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3931 # We make a subdir and do the tests there. Otherwise we can end up
3932 # making bogus files that we don't know about and never remove. For
3933 # instance it was reported that on HP-UX the gcc test will end up
3934 # making a dummy file named 'D' -- because '-MD' means "put the output
3935 # in D".
3936 rm -rf conftest.dir
3937 mkdir conftest.dir
3938 # Copy depcomp to subdir because otherwise we won't find it if we're
3939 # using a relative directory.
3940 cp "$am_depcomp" conftest.dir
3941 cd conftest.dir
3942 # We will build objects and dependencies in a subdirectory because
3943 # it helps to detect inapplicable dependency modes. For instance
3944 # both Tru64's cc and ICC support -MD to output dependencies as a
3945 # side effect of compilation, but ICC will put the dependencies in
3946 # the current directory while Tru64 will put them in the object
3947 # directory.
3948 mkdir sub
3949
3950 am_cv_CC_dependencies_compiler_type=none
3951 if test "$am_compiler_list" = ""; then
3952 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3953 fi
3954 am__universal=false
3955 case " $depcc " in #(
3956 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3957 esac
3958
3959 for depmode in $am_compiler_list; do
3960 # Setup a source with many dependencies, because some compilers
3961 # like to wrap large dependency lists on column 80 (with \), and
3962 # we should not choose a depcomp mode which is confused by this.
3963 #
3964 # We need to recreate these files for each test, as the compiler may
3965 # overwrite some of them when testing with obscure command lines.
3966 # This happens at least with the AIX C compiler.
3967 : > sub/conftest.c
3968 for i in 1 2 3 4 5 6; do
3969 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3970 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3971 # Solaris 10 /bin/sh.
3972 echo '/* dummy */' > sub/conftst$i.h
3973 done
3974 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3975
3976 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3977 # mode. It turns out that the SunPro C++ compiler does not properly
3978 # handle '-M -o', and we need to detect this. Also, some Intel
3979 # versions had trouble with output in subdirs.
3980 am__obj=sub/conftest.${OBJEXT-o}
3981 am__minus_obj="-o $am__obj"
3982 case $depmode in
3983 gcc)
3984 # This depmode causes a compiler race in universal mode.
3985 test "$am__universal" = false || continue
3986 ;;
3987 nosideeffect)
3988 # After this tag, mechanisms are not by side-effect, so they'll
3989 # only be used when explicitly requested.
3990 if test "x$enable_dependency_tracking" = xyes; then
3991 continue
3992 else
3993 break
3994 fi
3995 ;;
3996 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3997 # This compiler won't grok '-c -o', but also, the minuso test has
3998 # not run yet. These depmodes are late enough in the game, and
3999 # so weak that their functioning should not be impacted.
4000 am__obj=conftest.${OBJEXT-o}
4001 am__minus_obj=
4002 ;;
4003 none) break ;;
4004 esac
4005 if depmode=$depmode \
4006 source=sub/conftest.c object=$am__obj \
4007 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4008 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4009 >/dev/null 2>conftest.err &&
4010 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4011 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4012 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4013 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4014 # icc doesn't choke on unknown options, it will just issue warnings
4015 # or remarks (even with -Werror). So we grep stderr for any message
4016 # that says an option was ignored or not supported.
4017 # When given -MP, icc 7.0 and 7.1 complain thusly:
4018 # icc: Command line warning: ignoring option '-M'; no argument required
4019 # The diagnosis changed in icc 8.0:
4020 # icc: Command line remark: option '-MP' not supported
4021 if (grep 'ignoring option' conftest.err ||
4022 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4023 am_cv_CC_dependencies_compiler_type=$depmode
4024 break
4025 fi
4026 fi
4027 done
4028
4029 cd ..
4030 rm -rf conftest.dir
4031 else
4032 am_cv_CC_dependencies_compiler_type=none
4033 fi
4034
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4037 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4038 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4039
4040 if
4041 test "x$enable_dependency_tracking" != xno \
4042 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4043 am__fastdepCC_TRUE=
4044 am__fastdepCC_FALSE='#'
4045 else
4046 am__fastdepCC_TRUE='#'
4047 am__fastdepCC_FALSE=
4048 fi
4049
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4052 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4053 if ${ac_cv_path_SED+:} false; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4057 for ac_i in 1 2 3 4 5 6 7; do
4058 ac_script="$ac_script$as_nl$ac_script"
4059 done
4060 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4061 { ac_script=; unset ac_script;}
4062 if test -z "$SED"; then
4063 ac_path_SED_found=false
4064 # Loop through the user's path and test for each of PROGNAME-LIST
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_prog in sed gsed; do
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4073 as_fn_executable_p "$ac_path_SED" || continue
4074 # Check for GNU ac_path_SED and select it if it is found.
4075 # Check for GNU $ac_path_SED
4076 case `"$ac_path_SED" --version 2>&1` in
4077 *GNU*)
4078 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4079 *)
4080 ac_count=0
4081 $as_echo_n 0123456789 >"conftest.in"
4082 while :
4083 do
4084 cat "conftest.in" "conftest.in" >"conftest.tmp"
4085 mv "conftest.tmp" "conftest.in"
4086 cp "conftest.in" "conftest.nl"
4087 $as_echo '' >> "conftest.nl"
4088 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4090 as_fn_arith $ac_count + 1 && ac_count=$as_val
4091 if test $ac_count -gt ${ac_path_SED_max-0}; then
4092 # Best one so far, save it but keep looking for a better one
4093 ac_cv_path_SED="$ac_path_SED"
4094 ac_path_SED_max=$ac_count
4095 fi
4096 # 10*(2^10) chars as input seems more than enough
4097 test $ac_count -gt 10 && break
4098 done
4099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4100 esac
4101
4102 $ac_path_SED_found && break 3
4103 done
4104 done
4105 done
4106 IFS=$as_save_IFS
4107 if test -z "$ac_cv_path_SED"; then
4108 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4109 fi
4110 else
4111 ac_cv_path_SED=$SED
4112 fi
4113
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4116 $as_echo "$ac_cv_path_SED" >&6; }
4117 SED="$ac_cv_path_SED"
4118 rm -f conftest.sed
4119
4120 test -z "$SED" && SED=sed
4121 Xsed="$SED -e 1s/^X//"
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4134 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4135 if ${ac_cv_path_GREP+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -z "$GREP"; then
4139 ac_path_GREP_found=false
4140 # Loop through the user's path and test for each of PROGNAME-LIST
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4143 do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_prog in grep ggrep; do
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4149 as_fn_executable_p "$ac_path_GREP" || continue
4150 # Check for GNU ac_path_GREP and select it if it is found.
4151 # Check for GNU $ac_path_GREP
4152 case `"$ac_path_GREP" --version 2>&1` in
4153 *GNU*)
4154 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4155 *)
4156 ac_count=0
4157 $as_echo_n 0123456789 >"conftest.in"
4158 while :
4159 do
4160 cat "conftest.in" "conftest.in" >"conftest.tmp"
4161 mv "conftest.tmp" "conftest.in"
4162 cp "conftest.in" "conftest.nl"
4163 $as_echo 'GREP' >> "conftest.nl"
4164 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4166 as_fn_arith $ac_count + 1 && ac_count=$as_val
4167 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4168 # Best one so far, save it but keep looking for a better one
4169 ac_cv_path_GREP="$ac_path_GREP"
4170 ac_path_GREP_max=$ac_count
4171 fi
4172 # 10*(2^10) chars as input seems more than enough
4173 test $ac_count -gt 10 && break
4174 done
4175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4176 esac
4177
4178 $ac_path_GREP_found && break 3
4179 done
4180 done
4181 done
4182 IFS=$as_save_IFS
4183 if test -z "$ac_cv_path_GREP"; then
4184 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4185 fi
4186 else
4187 ac_cv_path_GREP=$GREP
4188 fi
4189
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4192 $as_echo "$ac_cv_path_GREP" >&6; }
4193 GREP="$ac_cv_path_GREP"
4194
4195
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4197 $as_echo_n "checking for egrep... " >&6; }
4198 if ${ac_cv_path_EGREP+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4202 then ac_cv_path_EGREP="$GREP -E"
4203 else
4204 if test -z "$EGREP"; then
4205 ac_path_EGREP_found=false
4206 # Loop through the user's path and test for each of PROGNAME-LIST
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209 do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_prog in egrep; do
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4215 as_fn_executable_p "$ac_path_EGREP" || continue
4216 # Check for GNU ac_path_EGREP and select it if it is found.
4217 # Check for GNU $ac_path_EGREP
4218 case `"$ac_path_EGREP" --version 2>&1` in
4219 *GNU*)
4220 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4221 *)
4222 ac_count=0
4223 $as_echo_n 0123456789 >"conftest.in"
4224 while :
4225 do
4226 cat "conftest.in" "conftest.in" >"conftest.tmp"
4227 mv "conftest.tmp" "conftest.in"
4228 cp "conftest.in" "conftest.nl"
4229 $as_echo 'EGREP' >> "conftest.nl"
4230 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232 as_fn_arith $ac_count + 1 && ac_count=$as_val
4233 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4234 # Best one so far, save it but keep looking for a better one
4235 ac_cv_path_EGREP="$ac_path_EGREP"
4236 ac_path_EGREP_max=$ac_count
4237 fi
4238 # 10*(2^10) chars as input seems more than enough
4239 test $ac_count -gt 10 && break
4240 done
4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 esac
4243
4244 $ac_path_EGREP_found && break 3
4245 done
4246 done
4247 done
4248 IFS=$as_save_IFS
4249 if test -z "$ac_cv_path_EGREP"; then
4250 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4251 fi
4252 else
4253 ac_cv_path_EGREP=$EGREP
4254 fi
4255
4256 fi
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4259 $as_echo "$ac_cv_path_EGREP" >&6; }
4260 EGREP="$ac_cv_path_EGREP"
4261
4262
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4264 $as_echo_n "checking for fgrep... " >&6; }
4265 if ${ac_cv_path_FGREP+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4269 then ac_cv_path_FGREP="$GREP -F"
4270 else
4271 if test -z "$FGREP"; then
4272 ac_path_FGREP_found=false
4273 # Loop through the user's path and test for each of PROGNAME-LIST
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4276 do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_prog in fgrep; do
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4282 as_fn_executable_p "$ac_path_FGREP" || continue
4283 # Check for GNU ac_path_FGREP and select it if it is found.
4284 # Check for GNU $ac_path_FGREP
4285 case `"$ac_path_FGREP" --version 2>&1` in
4286 *GNU*)
4287 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4288 *)
4289 ac_count=0
4290 $as_echo_n 0123456789 >"conftest.in"
4291 while :
4292 do
4293 cat "conftest.in" "conftest.in" >"conftest.tmp"
4294 mv "conftest.tmp" "conftest.in"
4295 cp "conftest.in" "conftest.nl"
4296 $as_echo 'FGREP' >> "conftest.nl"
4297 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4299 as_fn_arith $ac_count + 1 && ac_count=$as_val
4300 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4301 # Best one so far, save it but keep looking for a better one
4302 ac_cv_path_FGREP="$ac_path_FGREP"
4303 ac_path_FGREP_max=$ac_count
4304 fi
4305 # 10*(2^10) chars as input seems more than enough
4306 test $ac_count -gt 10 && break
4307 done
4308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4309 esac
4310
4311 $ac_path_FGREP_found && break 3
4312 done
4313 done
4314 done
4315 IFS=$as_save_IFS
4316 if test -z "$ac_cv_path_FGREP"; then
4317 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4318 fi
4319 else
4320 ac_cv_path_FGREP=$FGREP
4321 fi
4322
4323 fi
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4326 $as_echo "$ac_cv_path_FGREP" >&6; }
4327 FGREP="$ac_cv_path_FGREP"
4328
4329
4330 test -z "$GREP" && GREP=grep
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350 # Check whether --with-gnu-ld was given.
4351 if test "${with_gnu_ld+set}" = set; then :
4352 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4353 else
4354 with_gnu_ld=no
4355 fi
4356
4357 ac_prog=ld
4358 if test yes = "$GCC"; then
4359 # Check if gcc -print-prog-name=ld gives a path.
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4361 $as_echo_n "checking for ld used by $CC... " >&6; }
4362 case $host in
4363 *-*-mingw*)
4364 # gcc leaves a trailing carriage return, which upsets mingw
4365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4366 *)
4367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4368 esac
4369 case $ac_prog in
4370 # Accept absolute paths.
4371 [\\/]* | ?:[\\/]*)
4372 re_direlt='/[^/][^/]*/\.\./'
4373 # Canonicalize the pathname of ld
4374 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4375 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4376 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4377 done
4378 test -z "$LD" && LD=$ac_prog
4379 ;;
4380 "")
4381 # If it fails, then pretend we aren't using GCC.
4382 ac_prog=ld
4383 ;;
4384 *)
4385 # If it is relative, then search for the first ld in PATH.
4386 with_gnu_ld=unknown
4387 ;;
4388 esac
4389 elif test yes = "$with_gnu_ld"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4391 $as_echo_n "checking for GNU ld... " >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4394 $as_echo_n "checking for non-GNU ld... " >&6; }
4395 fi
4396 if ${lt_cv_path_LD+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if test -z "$LD"; then
4400 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4401 for ac_dir in $PATH; do
4402 IFS=$lt_save_ifs
4403 test -z "$ac_dir" && ac_dir=.
4404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4405 lt_cv_path_LD=$ac_dir/$ac_prog
4406 # Check to see if the program is GNU ld. I'd rather use --version,
4407 # but apparently some variants of GNU ld only accept -v.
4408 # Break only if it was the GNU/non-GNU ld that we prefer.
4409 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4410 *GNU* | *'with BFD'*)
4411 test no != "$with_gnu_ld" && break
4412 ;;
4413 *)
4414 test yes != "$with_gnu_ld" && break
4415 ;;
4416 esac
4417 fi
4418 done
4419 IFS=$lt_save_ifs
4420 else
4421 lt_cv_path_LD=$LD # Let the user override the test with a path.
4422 fi
4423 fi
4424
4425 LD=$lt_cv_path_LD
4426 if test -n "$LD"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4428 $as_echo "$LD" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4435 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4436 if ${lt_cv_prog_gnu_ld+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4440 case `$LD -v 2>&1 </dev/null` in
4441 *GNU* | *'with BFD'*)
4442 lt_cv_prog_gnu_ld=yes
4443 ;;
4444 *)
4445 lt_cv_prog_gnu_ld=no
4446 ;;
4447 esac
4448 fi
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4450 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4451 with_gnu_ld=$lt_cv_prog_gnu_ld
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4462 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4463 if ${lt_cv_path_NM+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 if test -n "$NM"; then
4467 # Let the user override the test.
4468 lt_cv_path_NM=$NM
4469 else
4470 lt_nm_to_check=${ac_tool_prefix}nm
4471 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4472 lt_nm_to_check="$lt_nm_to_check nm"
4473 fi
4474 for lt_tmp_nm in $lt_nm_to_check; do
4475 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4476 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4477 IFS=$lt_save_ifs
4478 test -z "$ac_dir" && ac_dir=.
4479 tmp_nm=$ac_dir/$lt_tmp_nm
4480 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4481 # Check to see if the nm accepts a BSD-compat flag.
4482 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4483 # nm: unknown option "B" ignored
4484 # Tru64's nm complains that /dev/null is an invalid object file
4485 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4486 case $build_os in
4487 mingw*) lt_bad_file=conftest.nm/nofile ;;
4488 *) lt_bad_file=/dev/null ;;
4489 esac
4490 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4491 *$lt_bad_file* | *'Invalid file or object type'*)
4492 lt_cv_path_NM="$tmp_nm -B"
4493 break 2
4494 ;;
4495 *)
4496 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4497 */dev/null*)
4498 lt_cv_path_NM="$tmp_nm -p"
4499 break 2
4500 ;;
4501 *)
4502 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4503 continue # so that we can try to find one that supports BSD flags
4504 ;;
4505 esac
4506 ;;
4507 esac
4508 fi
4509 done
4510 IFS=$lt_save_ifs
4511 done
4512 : ${lt_cv_path_NM=no}
4513 fi
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4516 $as_echo "$lt_cv_path_NM" >&6; }
4517 if test no != "$lt_cv_path_NM"; then
4518 NM=$lt_cv_path_NM
4519 else
4520 # Didn't find any BSD compatible name lister, look for dumpbin.
4521 if test -n "$DUMPBIN"; then :
4522 # Let the user override the test.
4523 else
4524 if test -n "$ac_tool_prefix"; then
4525 for ac_prog in dumpbin "link -dump"
4526 do
4527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if ${ac_cv_prog_DUMPBIN+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test -n "$DUMPBIN"; then
4535 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 fi
4553 fi
4554 DUMPBIN=$ac_cv_prog_DUMPBIN
4555 if test -n "$DUMPBIN"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4557 $as_echo "$DUMPBIN" >&6; }
4558 else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562
4563
4564 test -n "$DUMPBIN" && break
4565 done
4566 fi
4567 if test -z "$DUMPBIN"; then
4568 ac_ct_DUMPBIN=$DUMPBIN
4569 for ac_prog in dumpbin "link -dump"
4570 do
4571 # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 $as_echo_n "checking for $ac_word... " >&6; }
4575 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -n "$ac_ct_DUMPBIN"; then
4579 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 break 2
4591 fi
4592 done
4593 done
4594 IFS=$as_save_IFS
4595
4596 fi
4597 fi
4598 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4599 if test -n "$ac_ct_DUMPBIN"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4601 $as_echo "$ac_ct_DUMPBIN" >&6; }
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 fi
4606
4607
4608 test -n "$ac_ct_DUMPBIN" && break
4609 done
4610
4611 if test "x$ac_ct_DUMPBIN" = x; then
4612 DUMPBIN=":"
4613 else
4614 case $cross_compiling:$ac_tool_warned in
4615 yes:)
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618 ac_tool_warned=yes ;;
4619 esac
4620 DUMPBIN=$ac_ct_DUMPBIN
4621 fi
4622 fi
4623
4624 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4625 *COFF*)
4626 DUMPBIN="$DUMPBIN -symbols -headers"
4627 ;;
4628 *)
4629 DUMPBIN=:
4630 ;;
4631 esac
4632 fi
4633
4634 if test : != "$DUMPBIN"; then
4635 NM=$DUMPBIN
4636 fi
4637 fi
4638 test -z "$NM" && NM=nm
4639
4640
4641
4642
4643
4644
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4646 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4647 if ${lt_cv_nm_interface+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 lt_cv_nm_interface="BSD nm"
4651 echo "int some_variable = 0;" > conftest.$ac_ext
4652 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4653 (eval "$ac_compile" 2>conftest.err)
4654 cat conftest.err >&5
4655 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4656 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4657 cat conftest.err >&5
4658 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4659 cat conftest.out >&5
4660 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4661 lt_cv_nm_interface="MS dumpbin"
4662 fi
4663 rm -f conftest*
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4666 $as_echo "$lt_cv_nm_interface" >&6; }
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4669 $as_echo_n "checking whether ln -s works... " >&6; }
4670 LN_S=$as_ln_s
4671 if test "$LN_S" = "ln -s"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4673 $as_echo "yes" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4676 $as_echo "no, using $LN_S" >&6; }
4677 fi
4678
4679 # find the maximum length of command line arguments
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4681 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4682 if ${lt_cv_sys_max_cmd_len+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 i=0
4686 teststring=ABCD
4687
4688 case $build_os in
4689 msdosdjgpp*)
4690 # On DJGPP, this test can blow up pretty badly due to problems in libc
4691 # (any single argument exceeding 2000 bytes causes a buffer overrun
4692 # during glob expansion). Even if it were fixed, the result of this
4693 # check would be larger than it should be.
4694 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4695 ;;
4696
4697 gnu*)
4698 # Under GNU Hurd, this test is not required because there is
4699 # no limit to the length of command line arguments.
4700 # Libtool will interpret -1 as no limit whatsoever
4701 lt_cv_sys_max_cmd_len=-1;
4702 ;;
4703
4704 cygwin* | mingw* | cegcc*)
4705 # On Win9x/ME, this test blows up -- it succeeds, but takes
4706 # about 5 minutes as the teststring grows exponentially.
4707 # Worse, since 9x/ME are not pre-emptively multitasking,
4708 # you end up with a "frozen" computer, even though with patience
4709 # the test eventually succeeds (with a max line length of 256k).
4710 # Instead, let's just punt: use the minimum linelength reported by
4711 # all of the supported platforms: 8192 (on NT/2K/XP).
4712 lt_cv_sys_max_cmd_len=8192;
4713 ;;
4714
4715 mint*)
4716 # On MiNT this can take a long time and run out of memory.
4717 lt_cv_sys_max_cmd_len=8192;
4718 ;;
4719
4720 amigaos*)
4721 # On AmigaOS with pdksh, this test takes hours, literally.
4722 # So we just punt and use a minimum line length of 8192.
4723 lt_cv_sys_max_cmd_len=8192;
4724 ;;
4725
4726 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4727 # This has been around since 386BSD, at least. Likely further.
4728 if test -x /sbin/sysctl; then
4729 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4730 elif test -x /usr/sbin/sysctl; then
4731 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4732 else
4733 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4734 fi
4735 # And add a safety zone
4736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4738 ;;
4739
4740 interix*)
4741 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4742 lt_cv_sys_max_cmd_len=196608
4743 ;;
4744
4745 os2*)
4746 # The test takes a long time on OS/2.
4747 lt_cv_sys_max_cmd_len=8192
4748 ;;
4749
4750 osf*)
4751 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4752 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4753 # nice to cause kernel panics so lets avoid the loop below.
4754 # First set a reasonable default.
4755 lt_cv_sys_max_cmd_len=16384
4756 #
4757 if test -x /sbin/sysconfig; then
4758 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4759 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4760 esac
4761 fi
4762 ;;
4763 sco3.2v5*)
4764 lt_cv_sys_max_cmd_len=102400
4765 ;;
4766 sysv5* | sco5v6* | sysv4.2uw2*)
4767 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4768 if test -n "$kargmax"; then
4769 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4770 else
4771 lt_cv_sys_max_cmd_len=32768
4772 fi
4773 ;;
4774 *)
4775 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4776 if test -n "$lt_cv_sys_max_cmd_len" && \
4777 test undefined != "$lt_cv_sys_max_cmd_len"; then
4778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4780 else
4781 # Make teststring a little bigger before we do anything with it.
4782 # a 1K string should be a reasonable start.
4783 for i in 1 2 3 4 5 6 7 8; do
4784 teststring=$teststring$teststring
4785 done
4786 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4787 # If test is not a shell built-in, we'll probably end up computing a
4788 # maximum length that is only half of the actual maximum length, but
4789 # we can't tell.
4790 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4791 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4792 test 17 != "$i" # 1/2 MB should be enough
4793 do
4794 i=`expr $i + 1`
4795 teststring=$teststring$teststring
4796 done
4797 # Only check the string length outside the loop.
4798 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4799 teststring=
4800 # Add a significant safety factor because C++ compilers can tack on
4801 # massive amounts of additional arguments before passing them to the
4802 # linker. It appears as though 1/2 is a usable value.
4803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4804 fi
4805 ;;
4806 esac
4807
4808 fi
4809
4810 if test -n "$lt_cv_sys_max_cmd_len"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4812 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4815 $as_echo "none" >&6; }
4816 fi
4817 max_cmd_len=$lt_cv_sys_max_cmd_len
4818
4819
4820
4821
4822
4823
4824 : ${CP="cp -f"}
4825 : ${MV="mv -f"}
4826 : ${RM="rm -f"}
4827
4828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4829 lt_unset=unset
4830 else
4831 lt_unset=false
4832 fi
4833
4834
4835
4836
4837
4838 # test EBCDIC or ASCII
4839 case `echo X|tr X '\101'` in
4840 A) # ASCII based system
4841 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4842 lt_SP2NL='tr \040 \012'
4843 lt_NL2SP='tr \015\012 \040\040'
4844 ;;
4845 *) # EBCDIC based system
4846 lt_SP2NL='tr \100 \n'
4847 lt_NL2SP='tr \r\n \100\100'
4848 ;;
4849 esac
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4860 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4861 if ${lt_cv_to_host_file_cmd+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 case $host in
4865 *-*-mingw* )
4866 case $build in
4867 *-*-mingw* ) # actually msys
4868 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4869 ;;
4870 *-*-cygwin* )
4871 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4872 ;;
4873 * ) # otherwise, assume *nix
4874 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4875 ;;
4876 esac
4877 ;;
4878 *-*-cygwin* )
4879 case $build in
4880 *-*-mingw* ) # actually msys
4881 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4882 ;;
4883 *-*-cygwin* )
4884 lt_cv_to_host_file_cmd=func_convert_file_noop
4885 ;;
4886 * ) # otherwise, assume *nix
4887 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4888 ;;
4889 esac
4890 ;;
4891 * ) # unhandled hosts (and "normal" native builds)
4892 lt_cv_to_host_file_cmd=func_convert_file_noop
4893 ;;
4894 esac
4895
4896 fi
4897
4898 to_host_file_cmd=$lt_cv_to_host_file_cmd
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4900 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4901
4902
4903
4904
4905
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4907 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4908 if ${lt_cv_to_tool_file_cmd+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 #assume ordinary cross tools, or native build.
4912 lt_cv_to_tool_file_cmd=func_convert_file_noop
4913 case $host in
4914 *-*-mingw* )
4915 case $build in
4916 *-*-mingw* ) # actually msys
4917 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4918 ;;
4919 esac
4920 ;;
4921 esac
4922
4923 fi
4924
4925 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4927 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4928
4929
4930
4931
4932
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4934 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4935 if ${lt_cv_ld_reload_flag+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 lt_cv_ld_reload_flag='-r'
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4941 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4942 reload_flag=$lt_cv_ld_reload_flag
4943 case $reload_flag in
4944 "" | " "*) ;;
4945 *) reload_flag=" $reload_flag" ;;
4946 esac
4947 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4948 case $host_os in
4949 cygwin* | mingw* | pw32* | cegcc*)
4950 if test yes != "$GCC"; then
4951 reload_cmds=false
4952 fi
4953 ;;
4954 darwin*)
4955 if test yes = "$GCC"; then
4956 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4957 else
4958 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4959 fi
4960 ;;
4961 esac
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971 if test -n "$ac_tool_prefix"; then
4972 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4973 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if ${ac_cv_prog_OBJDUMP+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 if test -n "$OBJDUMP"; then
4980 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4981 else
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 break 2
4992 fi
4993 done
4994 done
4995 IFS=$as_save_IFS
4996
4997 fi
4998 fi
4999 OBJDUMP=$ac_cv_prog_OBJDUMP
5000 if test -n "$OBJDUMP"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5002 $as_echo "$OBJDUMP" >&6; }
5003 else
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5006 fi
5007
5008
5009 fi
5010 if test -z "$ac_cv_prog_OBJDUMP"; then
5011 ac_ct_OBJDUMP=$OBJDUMP
5012 # Extract the first word of "objdump", so it can be a program name with args.
5013 set dummy objdump; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 if test -n "$ac_ct_OBJDUMP"; then
5020 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5032 fi
5033 done
5034 done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5040 if test -n "$ac_ct_OBJDUMP"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5042 $as_echo "$ac_ct_OBJDUMP" >&6; }
5043 else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047
5048 if test "x$ac_ct_OBJDUMP" = x; then
5049 OBJDUMP="false"
5050 else
5051 case $cross_compiling:$ac_tool_warned in
5052 yes:)
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5055 ac_tool_warned=yes ;;
5056 esac
5057 OBJDUMP=$ac_ct_OBJDUMP
5058 fi
5059 else
5060 OBJDUMP="$ac_cv_prog_OBJDUMP"
5061 fi
5062
5063 test -z "$OBJDUMP" && OBJDUMP=objdump
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5074 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5075 if ${lt_cv_deplibs_check_method+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 lt_cv_file_magic_cmd='$MAGIC_CMD'
5079 lt_cv_file_magic_test_file=
5080 lt_cv_deplibs_check_method='unknown'
5081 # Need to set the preceding variable on all platforms that support
5082 # interlibrary dependencies.
5083 # 'none' -- dependencies not supported.
5084 # 'unknown' -- same as none, but documents that we really don't know.
5085 # 'pass_all' -- all dependencies passed with no checks.
5086 # 'test_compile' -- check by making test program.
5087 # 'file_magic [[regex]]' -- check by looking for files in library path
5088 # that responds to the $file_magic_cmd with a given extended regex.
5089 # If you have 'file' or equivalent on your system and you're not sure
5090 # whether 'pass_all' will *always* work, you probably want this one.
5091
5092 case $host_os in
5093 aix[4-9]*)
5094 lt_cv_deplibs_check_method=pass_all
5095 ;;
5096
5097 beos*)
5098 lt_cv_deplibs_check_method=pass_all
5099 ;;
5100
5101 bsdi[45]*)
5102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5103 lt_cv_file_magic_cmd='/usr/bin/file -L'
5104 lt_cv_file_magic_test_file=/shlib/libc.so
5105 ;;
5106
5107 cygwin*)
5108 # func_win32_libid is a shell function defined in ltmain.sh
5109 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5110 lt_cv_file_magic_cmd='func_win32_libid'
5111 ;;
5112
5113 mingw* | pw32*)
5114 # Base MSYS/MinGW do not provide the 'file' command needed by
5115 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5116 # unless we find 'file', for example because we are cross-compiling.
5117 if ( file / ) >/dev/null 2>&1; then
5118 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5119 lt_cv_file_magic_cmd='func_win32_libid'
5120 else
5121 # Keep this pattern in sync with the one in func_win32_libid.
5122 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5123 lt_cv_file_magic_cmd='$OBJDUMP -f'
5124 fi
5125 ;;
5126
5127 cegcc*)
5128 # use the weaker test based on 'objdump'. See mingw*.
5129 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5130 lt_cv_file_magic_cmd='$OBJDUMP -f'
5131 ;;
5132
5133 darwin* | rhapsody*)
5134 lt_cv_deplibs_check_method=pass_all
5135 ;;
5136
5137 freebsd* | dragonfly*)
5138 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5139 case $host_cpu in
5140 i*86 )
5141 # Not sure whether the presence of OpenBSD here was a mistake.
5142 # Let's accept both of them until this is cleared up.
5143 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5144 lt_cv_file_magic_cmd=/usr/bin/file
5145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5146 ;;
5147 esac
5148 else
5149 lt_cv_deplibs_check_method=pass_all
5150 fi
5151 ;;
5152
5153 haiku*)
5154 lt_cv_deplibs_check_method=pass_all
5155 ;;
5156
5157 hpux10.20* | hpux11*)
5158 lt_cv_file_magic_cmd=/usr/bin/file
5159 case $host_cpu in
5160 ia64*)
5161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5162 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5163 ;;
5164 hppa*64*)
5165 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]'
5166 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5167 ;;
5168 *)
5169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5170 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5171 ;;
5172 esac
5173 ;;
5174
5175 interix[3-9]*)
5176 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5178 ;;
5179
5180 irix5* | irix6* | nonstopux*)
5181 case $LD in
5182 *-32|*"-32 ") libmagic=32-bit;;
5183 *-n32|*"-n32 ") libmagic=N32;;
5184 *-64|*"-64 ") libmagic=64-bit;;
5185 *) libmagic=never-match;;
5186 esac
5187 lt_cv_deplibs_check_method=pass_all
5188 ;;
5189
5190 # This must be glibc/ELF.
5191 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5192 lt_cv_deplibs_check_method=pass_all
5193 ;;
5194
5195 netbsd*)
5196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5198 else
5199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5200 fi
5201 ;;
5202
5203 newos6*)
5204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5205 lt_cv_file_magic_cmd=/usr/bin/file
5206 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5207 ;;
5208
5209 *nto* | *qnx*)
5210 lt_cv_deplibs_check_method=pass_all
5211 ;;
5212
5213 openbsd* | bitrig*)
5214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5216 else
5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5218 fi
5219 ;;
5220
5221 osf3* | osf4* | osf5*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5224
5225 rdos*)
5226 lt_cv_deplibs_check_method=pass_all
5227 ;;
5228
5229 solaris*)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232
5233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5234 lt_cv_deplibs_check_method=pass_all
5235 ;;
5236
5237 sysv4 | sysv4.3*)
5238 case $host_vendor in
5239 motorola)
5240 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]'
5241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5242 ;;
5243 ncr)
5244 lt_cv_deplibs_check_method=pass_all
5245 ;;
5246 sequent)
5247 lt_cv_file_magic_cmd='/bin/file'
5248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5249 ;;
5250 sni)
5251 lt_cv_file_magic_cmd='/bin/file'
5252 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5253 lt_cv_file_magic_test_file=/lib/libc.so
5254 ;;
5255 siemens)
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258 pc)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261 esac
5262 ;;
5263
5264 tpf*)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5267 os2*)
5268 lt_cv_deplibs_check_method=pass_all
5269 ;;
5270 esac
5271
5272 fi
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5274 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5275
5276 file_magic_glob=
5277 want_nocaseglob=no
5278 if test "$build" = "$host"; then
5279 case $host_os in
5280 mingw* | pw32*)
5281 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5282 want_nocaseglob=yes
5283 else
5284 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5285 fi
5286 ;;
5287 esac
5288 fi
5289
5290 file_magic_cmd=$lt_cv_file_magic_cmd
5291 deplibs_check_method=$lt_cv_deplibs_check_method
5292 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 if test -n "$ac_tool_prefix"; then
5316 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5317 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_prog_DLLTOOL+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$DLLTOOL"; then
5324 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337 done
5338 done
5339 IFS=$as_save_IFS
5340
5341 fi
5342 fi
5343 DLLTOOL=$ac_cv_prog_DLLTOOL
5344 if test -n "$DLLTOOL"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5346 $as_echo "$DLLTOOL" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351
5352
5353 fi
5354 if test -z "$ac_cv_prog_DLLTOOL"; then
5355 ac_ct_DLLTOOL=$DLLTOOL
5356 # Extract the first word of "dlltool", so it can be a program name with args.
5357 set dummy dlltool; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -n "$ac_ct_DLLTOOL"; then
5364 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5384 if test -n "$ac_ct_DLLTOOL"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5386 $as_echo "$ac_ct_DLLTOOL" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392 if test "x$ac_ct_DLLTOOL" = x; then
5393 DLLTOOL="false"
5394 else
5395 case $cross_compiling:$ac_tool_warned in
5396 yes:)
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5399 ac_tool_warned=yes ;;
5400 esac
5401 DLLTOOL=$ac_ct_DLLTOOL
5402 fi
5403 else
5404 DLLTOOL="$ac_cv_prog_DLLTOOL"
5405 fi
5406
5407 test -z "$DLLTOOL" && DLLTOOL=dlltool
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5419 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5420 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 lt_cv_sharedlib_from_linklib_cmd='unknown'
5424
5425 case $host_os in
5426 cygwin* | mingw* | pw32* | cegcc*)
5427 # two different shell functions defined in ltmain.sh;
5428 # decide which one to use based on capabilities of $DLLTOOL
5429 case `$DLLTOOL --help 2>&1` in
5430 *--identify-strict*)
5431 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5432 ;;
5433 *)
5434 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5435 ;;
5436 esac
5437 ;;
5438 *)
5439 # fallback: assume linklib IS sharedlib
5440 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5441 ;;
5442 esac
5443
5444 fi
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5446 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5447 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5448 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5449
5450
5451
5452
5453
5454
5455
5456
5457 if test -n "$ac_tool_prefix"; then
5458 for ac_prog in ar
5459 do
5460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_AR+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$AR"; then
5468 ac_cv_prog_AR="$AR" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 AR=$ac_cv_prog_AR
5488 if test -n "$AR"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5490 $as_echo "$AR" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497 test -n "$AR" && break
5498 done
5499 fi
5500 if test -z "$AR"; then
5501 ac_ct_AR=$AR
5502 for ac_prog in ar
5503 do
5504 # Extract the first word of "$ac_prog", so it can be a program name with args.
5505 set dummy $ac_prog; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -n "$ac_ct_AR"; then
5512 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_ac_ct_AR="$ac_prog"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525 done
5526 done
5527 IFS=$as_save_IFS
5528
5529 fi
5530 fi
5531 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5532 if test -n "$ac_ct_AR"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5534 $as_echo "$ac_ct_AR" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540
5541 test -n "$ac_ct_AR" && break
5542 done
5543
5544 if test "x$ac_ct_AR" = x; then
5545 AR="false"
5546 else
5547 case $cross_compiling:$ac_tool_warned in
5548 yes:)
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551 ac_tool_warned=yes ;;
5552 esac
5553 AR=$ac_ct_AR
5554 fi
5555 fi
5556
5557 : ${AR=ar}
5558 : ${AR_FLAGS=cru}
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5571 $as_echo_n "checking for archiver @FILE support... " >&6; }
5572 if ${lt_cv_ar_at_file+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 lt_cv_ar_at_file=no
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578
5579 int
5580 main ()
5581 {
5582
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 if ac_fn_c_try_compile "$LINENO"; then :
5588 echo conftest.$ac_objext > conftest.lst
5589 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5591 (eval $lt_ar_try) 2>&5
5592 ac_status=$?
5593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5594 test $ac_status = 0; }
5595 if test 0 -eq "$ac_status"; then
5596 # Ensure the archiver fails upon bogus file names.
5597 rm -f conftest.$ac_objext libconftest.a
5598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5599 (eval $lt_ar_try) 2>&5
5600 ac_status=$?
5601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5602 test $ac_status = 0; }
5603 if test 0 -ne "$ac_status"; then
5604 lt_cv_ar_at_file=@
5605 fi
5606 fi
5607 rm -f conftest.* libconftest.a
5608
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5614 $as_echo "$lt_cv_ar_at_file" >&6; }
5615
5616 if test no = "$lt_cv_ar_at_file"; then
5617 archiver_list_spec=
5618 else
5619 archiver_list_spec=$lt_cv_ar_at_file
5620 fi
5621
5622
5623
5624
5625
5626
5627
5628 if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}strip; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_STRIP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$STRIP"; then
5637 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 STRIP=$ac_cv_prog_STRIP
5657 if test -n "$STRIP"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5659 $as_echo "$STRIP" >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666 fi
5667 if test -z "$ac_cv_prog_STRIP"; then
5668 ac_ct_STRIP=$STRIP
5669 # Extract the first word of "strip", so it can be a program name with args.
5670 set dummy strip; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 if test -n "$ac_ct_STRIP"; then
5677 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_ac_ct_STRIP="strip"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690 done
5691 done
5692 IFS=$as_save_IFS
5693
5694 fi
5695 fi
5696 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5697 if test -n "$ac_ct_STRIP"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5699 $as_echo "$ac_ct_STRIP" >&6; }
5700 else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704
5705 if test "x$ac_ct_STRIP" = x; then
5706 STRIP=":"
5707 else
5708 case $cross_compiling:$ac_tool_warned in
5709 yes:)
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712 ac_tool_warned=yes ;;
5713 esac
5714 STRIP=$ac_ct_STRIP
5715 fi
5716 else
5717 STRIP="$ac_cv_prog_STRIP"
5718 fi
5719
5720 test -z "$STRIP" && STRIP=:
5721
5722
5723
5724
5725
5726
5727 if test -n "$ac_tool_prefix"; then
5728 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_RANLIB+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -n "$RANLIB"; then
5736 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749 done
5750 done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 RANLIB=$ac_cv_prog_RANLIB
5756 if test -n "$RANLIB"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5758 $as_echo "$RANLIB" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763
5764
5765 fi
5766 if test -z "$ac_cv_prog_RANLIB"; then
5767 ac_ct_RANLIB=$RANLIB
5768 # Extract the first word of "ranlib", so it can be a program name with args.
5769 set dummy ranlib; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 if test -n "$ac_ct_RANLIB"; then
5776 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_ac_ct_RANLIB="ranlib"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5788 fi
5789 done
5790 done
5791 IFS=$as_save_IFS
5792
5793 fi
5794 fi
5795 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5796 if test -n "$ac_ct_RANLIB"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5798 $as_echo "$ac_ct_RANLIB" >&6; }
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5802 fi
5803
5804 if test "x$ac_ct_RANLIB" = x; then
5805 RANLIB=":"
5806 else
5807 case $cross_compiling:$ac_tool_warned in
5808 yes:)
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811 ac_tool_warned=yes ;;
5812 esac
5813 RANLIB=$ac_ct_RANLIB
5814 fi
5815 else
5816 RANLIB="$ac_cv_prog_RANLIB"
5817 fi
5818
5819 test -z "$RANLIB" && RANLIB=:
5820
5821
5822
5823
5824
5825
5826 # Determine commands to create old-style static archives.
5827 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5828 old_postinstall_cmds='chmod 644 $oldlib'
5829 old_postuninstall_cmds=
5830
5831 if test -n "$RANLIB"; then
5832 case $host_os in
5833 bitrig* | openbsd*)
5834 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5835 ;;
5836 *)
5837 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5838 ;;
5839 esac
5840 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5841 fi
5842
5843 case $host_os in
5844 darwin*)
5845 lock_old_archive_extraction=yes ;;
5846 *)
5847 lock_old_archive_extraction=no ;;
5848 esac
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888 # If no C compiler was specified, use CC.
5889 LTCC=${LTCC-"$CC"}
5890
5891 # If no C compiler flags were specified, use CFLAGS.
5892 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5893
5894 # Allow CC to be a program name with arguments.
5895 compiler=$CC
5896
5897
5898 # Check for command to grab the raw symbol name followed by C symbol from nm.
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5900 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5901 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904
5905 # These are sane defaults that work on at least a few old systems.
5906 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5907
5908 # Character class describing NM global symbol codes.
5909 symcode='[BCDEGRST]'
5910
5911 # Regexp to match symbols that can be accessed directly from C.
5912 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5913
5914 # Define system-specific variables.
5915 case $host_os in
5916 aix*)
5917 symcode='[BCDT]'
5918 ;;
5919 cygwin* | mingw* | pw32* | cegcc*)
5920 symcode='[ABCDGISTW]'
5921 ;;
5922 hpux*)
5923 if test ia64 = "$host_cpu"; then
5924 symcode='[ABCDEGRST]'
5925 fi
5926 ;;
5927 irix* | nonstopux*)
5928 symcode='[BCDEGRST]'
5929 ;;
5930 osf*)
5931 symcode='[BCDEGQRST]'
5932 ;;
5933 solaris*)
5934 symcode='[BDRT]'
5935 ;;
5936 sco3.2v5*)
5937 symcode='[DT]'
5938 ;;
5939 sysv4.2uw2*)
5940 symcode='[DT]'
5941 ;;
5942 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5943 symcode='[ABDT]'
5944 ;;
5945 sysv4)
5946 symcode='[DFNSTU]'
5947 ;;
5948 esac
5949
5950 # If we're using GNU nm, then use its standard symbol codes.
5951 case `$NM -V 2>&1` in
5952 *GNU* | *'with BFD'*)
5953 symcode='[ABCDGIRSTW]' ;;
5954 esac
5955
5956 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5957 # Gets list of data symbols to import.
5958 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5959 # Adjust the below global symbol transforms to fixup imported variables.
5960 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5961 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5962 lt_c_name_lib_hook="\
5963 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5964 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5965 else
5966 # Disable hooks by default.
5967 lt_cv_sys_global_symbol_to_import=
5968 lt_cdecl_hook=
5969 lt_c_name_hook=
5970 lt_c_name_lib_hook=
5971 fi
5972
5973 # Transform an extracted symbol line into a proper C declaration.
5974 # Some systems (esp. on ia64) link data and code symbols differently,
5975 # so use this general approach.
5976 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5977 $lt_cdecl_hook\
5978 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5979 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5980
5981 # Transform an extracted symbol line into symbol name and symbol address
5982 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5983 $lt_c_name_hook\
5984 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5985 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5986
5987 # Transform an extracted symbol line into symbol name with lib prefix and
5988 # symbol address.
5989 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5990 $lt_c_name_lib_hook\
5991 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5992 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5993 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5994
5995 # Handle CRLF in mingw tool chain
5996 opt_cr=
5997 case $build_os in
5998 mingw*)
5999 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6000 ;;
6001 esac
6002
6003 # Try without a prefix underscore, then with it.
6004 for ac_symprfx in "" "_"; do
6005
6006 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6007 symxfrm="\\1 $ac_symprfx\\2 \\2"
6008
6009 # Write the raw and C identifiers.
6010 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6011 # Fake it for dumpbin and say T for any non-static function,
6012 # D for any global variable and I for any imported variable.
6013 # Also find C++ and __fastcall symbols from MSVC++,
6014 # which start with @ or ?.
6015 lt_cv_sys_global_symbol_pipe="$AWK '"\
6016 " {last_section=section; section=\$ 3};"\
6017 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6018 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6019 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6020 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6021 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6022 " \$ 0!~/External *\|/{next};"\
6023 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6024 " {if(hide[section]) next};"\
6025 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6026 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6027 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6028 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6029 " ' prfx=^$ac_symprfx"
6030 else
6031 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6032 fi
6033 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6034
6035 # Check to see that the pipe works correctly.
6036 pipe_works=no
6037
6038 rm -f conftest*
6039 cat > conftest.$ac_ext <<_LT_EOF
6040 #ifdef __cplusplus
6041 extern "C" {
6042 #endif
6043 char nm_test_var;
6044 void nm_test_func(void);
6045 void nm_test_func(void){}
6046 #ifdef __cplusplus
6047 }
6048 #endif
6049 int main(){nm_test_var='a';nm_test_func();return(0);}
6050 _LT_EOF
6051
6052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056 test $ac_status = 0; }; then
6057 # Now try to grab the symbols.
6058 nlist=conftest.nm
6059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6060 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6061 ac_status=$?
6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; } && test -s "$nlist"; then
6064 # Try sorting and uniquifying the output.
6065 if sort "$nlist" | uniq > "$nlist"T; then
6066 mv -f "$nlist"T "$nlist"
6067 else
6068 rm -f "$nlist"T
6069 fi
6070
6071 # Make sure that we snagged all the symbols we need.
6072 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6073 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6074 cat <<_LT_EOF > conftest.$ac_ext
6075 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6076 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6077 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6078 relocations are performed -- see ld's documentation on pseudo-relocs. */
6079 # define LT_DLSYM_CONST
6080 #elif defined __osf__
6081 /* This system does not cope well with relocations in const data. */
6082 # define LT_DLSYM_CONST
6083 #else
6084 # define LT_DLSYM_CONST const
6085 #endif
6086
6087 #ifdef __cplusplus
6088 extern "C" {
6089 #endif
6090
6091 _LT_EOF
6092 # Now generate the symbol file.
6093 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6094
6095 cat <<_LT_EOF >> conftest.$ac_ext
6096
6097 /* The mapping between symbol names and symbols. */
6098 LT_DLSYM_CONST struct {
6099 const char *name;
6100 void *address;
6101 }
6102 lt__PROGRAM__LTX_preloaded_symbols[] =
6103 {
6104 { "@PROGRAM@", (void *) 0 },
6105 _LT_EOF
6106 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6107 cat <<\_LT_EOF >> conftest.$ac_ext
6108 {0, (void *) 0}
6109 };
6110
6111 /* This works around a problem in FreeBSD linker */
6112 #ifdef FREEBSD_WORKAROUND
6113 static const void *lt_preloaded_setup() {
6114 return lt__PROGRAM__LTX_preloaded_symbols;
6115 }
6116 #endif
6117
6118 #ifdef __cplusplus
6119 }
6120 #endif
6121 _LT_EOF
6122 # Now try linking the two files.
6123 mv conftest.$ac_objext conftstm.$ac_objext
6124 lt_globsym_save_LIBS=$LIBS
6125 lt_globsym_save_CFLAGS=$CFLAGS
6126 LIBS=conftstm.$ac_objext
6127 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6129 (eval $ac_link) 2>&5
6130 ac_status=$?
6131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6133 pipe_works=yes
6134 fi
6135 LIBS=$lt_globsym_save_LIBS
6136 CFLAGS=$lt_globsym_save_CFLAGS
6137 else
6138 echo "cannot find nm_test_func in $nlist" >&5
6139 fi
6140 else
6141 echo "cannot find nm_test_var in $nlist" >&5
6142 fi
6143 else
6144 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6145 fi
6146 else
6147 echo "$progname: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6149 fi
6150 rm -rf conftest* conftst*
6151
6152 # Do not use the global_symbol_pipe unless it works.
6153 if test yes = "$pipe_works"; then
6154 break
6155 else
6156 lt_cv_sys_global_symbol_pipe=
6157 fi
6158 done
6159
6160 fi
6161
6162 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6163 lt_cv_sys_global_symbol_to_cdecl=
6164 fi
6165 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6167 $as_echo "failed" >&6; }
6168 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6170 $as_echo "ok" >&6; }
6171 fi
6172
6173 # Response file support.
6174 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6175 nm_file_list_spec='@'
6176 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6177 nm_file_list_spec='@'
6178 fi
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6217 $as_echo_n "checking for sysroot... " >&6; }
6218
6219 # Check whether --with-sysroot was given.
6220 if test "${with_sysroot+set}" = set; then :
6221 withval=$with_sysroot;
6222 else
6223 with_sysroot=no
6224 fi
6225
6226
6227 lt_sysroot=
6228 case $with_sysroot in #(
6229 yes)
6230 if test yes = "$GCC"; then
6231 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6232 fi
6233 ;; #(
6234 /*)
6235 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6236 ;; #(
6237 no|'')
6238 ;; #(
6239 *)
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6241 $as_echo "$with_sysroot" >&6; }
6242 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6243 ;;
6244 esac
6245
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6247 $as_echo "${lt_sysroot:-no}" >&6; }
6248
6249
6250
6251
6252
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6254 $as_echo_n "checking for a working dd... " >&6; }
6255 if ${ac_cv_path_lt_DD+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 printf 0123456789abcdef0123456789abcdef >conftest.i
6259 cat conftest.i conftest.i >conftest2.i
6260 : ${lt_DD:=$DD}
6261 if test -z "$lt_DD"; then
6262 ac_path_lt_DD_found=false
6263 # Loop through the user's path and test for each of PROGNAME-LIST
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_prog in dd; do
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6272 as_fn_executable_p "$ac_path_lt_DD" || continue
6273 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6274 cmp -s conftest.i conftest.out \
6275 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6276 fi
6277 $ac_path_lt_DD_found && break 3
6278 done
6279 done
6280 done
6281 IFS=$as_save_IFS
6282 if test -z "$ac_cv_path_lt_DD"; then
6283 :
6284 fi
6285 else
6286 ac_cv_path_lt_DD=$lt_DD
6287 fi
6288
6289 rm -f conftest.i conftest2.i conftest.out
6290 fi
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6292 $as_echo "$ac_cv_path_lt_DD" >&6; }
6293
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6296 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6297 if ${lt_cv_truncate_bin+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 printf 0123456789abcdef0123456789abcdef >conftest.i
6301 cat conftest.i conftest.i >conftest2.i
6302 lt_cv_truncate_bin=
6303 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6304 cmp -s conftest.i conftest.out \
6305 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6306 fi
6307 rm -f conftest.i conftest2.i conftest.out
6308 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6309 fi
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6311 $as_echo "$lt_cv_truncate_bin" >&6; }
6312
6313
6314
6315
6316
6317
6318
6319 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6320 func_cc_basename ()
6321 {
6322 for cc_temp in $*""; do
6323 case $cc_temp in
6324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6326 \-*) ;;
6327 *) break;;
6328 esac
6329 done
6330 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6331 }
6332
6333 # Check whether --enable-libtool-lock was given.
6334 if test "${enable_libtool_lock+set}" = set; then :
6335 enableval=$enable_libtool_lock;
6336 fi
6337
6338 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6339
6340 # Some flags need to be propagated to the compiler or linker for good
6341 # libtool support.
6342 case $host in
6343 ia64-*-hpux*)
6344 # Find out what ABI is being produced by ac_compile, and set mode
6345 # options accordingly.
6346 echo 'int i;' > conftest.$ac_ext
6347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6348 (eval $ac_compile) 2>&5
6349 ac_status=$?
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; }; then
6352 case `/usr/bin/file conftest.$ac_objext` in
6353 *ELF-32*)
6354 HPUX_IA64_MODE=32
6355 ;;
6356 *ELF-64*)
6357 HPUX_IA64_MODE=64
6358 ;;
6359 esac
6360 fi
6361 rm -rf conftest*
6362 ;;
6363 *-*-irix6*)
6364 # Find out what ABI is being produced by ac_compile, and set linker
6365 # options accordingly.
6366 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6368 (eval $ac_compile) 2>&5
6369 ac_status=$?
6370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6371 test $ac_status = 0; }; then
6372 if test yes = "$lt_cv_prog_gnu_ld"; then
6373 case `/usr/bin/file conftest.$ac_objext` in
6374 *32-bit*)
6375 LD="${LD-ld} -melf32bsmip"
6376 ;;
6377 *N32*)
6378 LD="${LD-ld} -melf32bmipn32"
6379 ;;
6380 *64-bit*)
6381 LD="${LD-ld} -melf64bmip"
6382 ;;
6383 esac
6384 else
6385 case `/usr/bin/file conftest.$ac_objext` in
6386 *32-bit*)
6387 LD="${LD-ld} -32"
6388 ;;
6389 *N32*)
6390 LD="${LD-ld} -n32"
6391 ;;
6392 *64-bit*)
6393 LD="${LD-ld} -64"
6394 ;;
6395 esac
6396 fi
6397 fi
6398 rm -rf conftest*
6399 ;;
6400
6401 mips64*-*linux*)
6402 # Find out what ABI is being produced by ac_compile, and set linker
6403 # options accordingly.
6404 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6406 (eval $ac_compile) 2>&5
6407 ac_status=$?
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; }; then
6410 emul=elf
6411 case `/usr/bin/file conftest.$ac_objext` in
6412 *32-bit*)
6413 emul="${emul}32"
6414 ;;
6415 *64-bit*)
6416 emul="${emul}64"
6417 ;;
6418 esac
6419 case `/usr/bin/file conftest.$ac_objext` in
6420 *MSB*)
6421 emul="${emul}btsmip"
6422 ;;
6423 *LSB*)
6424 emul="${emul}ltsmip"
6425 ;;
6426 esac
6427 case `/usr/bin/file conftest.$ac_objext` in
6428 *N32*)
6429 emul="${emul}n32"
6430 ;;
6431 esac
6432 LD="${LD-ld} -m $emul"
6433 fi
6434 rm -rf conftest*
6435 ;;
6436
6437 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6438 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6439 # Find out what ABI is being produced by ac_compile, and set linker
6440 # options accordingly. Note that the listed cases only cover the
6441 # situations where additional linker options are needed (such as when
6442 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6443 # vice versa); the common cases where no linker options are needed do
6444 # not appear in the list.
6445 echo 'int i;' > conftest.$ac_ext
6446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6447 (eval $ac_compile) 2>&5
6448 ac_status=$?
6449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450 test $ac_status = 0; }; then
6451 case `/usr/bin/file conftest.o` in
6452 *32-bit*)
6453 case $host in
6454 x86_64-*kfreebsd*-gnu)
6455 LD="${LD-ld} -m elf_i386_fbsd"
6456 ;;
6457 x86_64-*linux*)
6458 case `/usr/bin/file conftest.o` in
6459 *x86-64*)
6460 LD="${LD-ld} -m elf32_x86_64"
6461 ;;
6462 *)
6463 LD="${LD-ld} -m elf_i386"
6464 ;;
6465 esac
6466 ;;
6467 powerpc64le-*linux*)
6468 LD="${LD-ld} -m elf32lppclinux"
6469 ;;
6470 powerpc64-*linux*)
6471 LD="${LD-ld} -m elf32ppclinux"
6472 ;;
6473 s390x-*linux*)
6474 LD="${LD-ld} -m elf_s390"
6475 ;;
6476 sparc64-*linux*)
6477 LD="${LD-ld} -m elf32_sparc"
6478 ;;
6479 esac
6480 ;;
6481 *64-bit*)
6482 case $host in
6483 x86_64-*kfreebsd*-gnu)
6484 LD="${LD-ld} -m elf_x86_64_fbsd"
6485 ;;
6486 x86_64-*linux*)
6487 LD="${LD-ld} -m elf_x86_64"
6488 ;;
6489 powerpcle-*linux*)
6490 LD="${LD-ld} -m elf64lppc"
6491 ;;
6492 powerpc-*linux*)
6493 LD="${LD-ld} -m elf64ppc"
6494 ;;
6495 s390*-*linux*|s390*-*tpf*)
6496 LD="${LD-ld} -m elf64_s390"
6497 ;;
6498 sparc*-*linux*)
6499 LD="${LD-ld} -m elf64_sparc"
6500 ;;
6501 esac
6502 ;;
6503 esac
6504 fi
6505 rm -rf conftest*
6506 ;;
6507
6508 *-*-sco3.2v5*)
6509 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6510 SAVE_CFLAGS=$CFLAGS
6511 CFLAGS="$CFLAGS -belf"
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6513 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6514 if ${lt_cv_cc_needs_belf+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 ac_ext=c
6518 ac_cpp='$CPP $CPPFLAGS'
6519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6522
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525
6526 int
6527 main ()
6528 {
6529
6530 ;
6531 return 0;
6532 }
6533 _ACEOF
6534 if ac_fn_c_try_link "$LINENO"; then :
6535 lt_cv_cc_needs_belf=yes
6536 else
6537 lt_cv_cc_needs_belf=no
6538 fi
6539 rm -f core conftest.err conftest.$ac_objext \
6540 conftest$ac_exeext conftest.$ac_ext
6541 ac_ext=c
6542 ac_cpp='$CPP $CPPFLAGS'
6543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6546
6547 fi
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6549 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6550 if test yes != "$lt_cv_cc_needs_belf"; then
6551 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6552 CFLAGS=$SAVE_CFLAGS
6553 fi
6554 ;;
6555 *-*solaris*)
6556 # Find out what ABI is being produced by ac_compile, and set linker
6557 # options accordingly.
6558 echo 'int i;' > conftest.$ac_ext
6559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6560 (eval $ac_compile) 2>&5
6561 ac_status=$?
6562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6563 test $ac_status = 0; }; then
6564 case `/usr/bin/file conftest.o` in
6565 *64-bit*)
6566 case $lt_cv_prog_gnu_ld in
6567 yes*)
6568 case $host in
6569 i?86-*-solaris*|x86_64-*-solaris*)
6570 LD="${LD-ld} -m elf_x86_64"
6571 ;;
6572 sparc*-*-solaris*)
6573 LD="${LD-ld} -m elf64_sparc"
6574 ;;
6575 esac
6576 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6577 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6578 LD=${LD-ld}_sol2
6579 fi
6580 ;;
6581 *)
6582 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6583 LD="${LD-ld} -64"
6584 fi
6585 ;;
6586 esac
6587 ;;
6588 esac
6589 fi
6590 rm -rf conftest*
6591 ;;
6592 esac
6593
6594 need_locks=$enable_libtool_lock
6595
6596 if test -n "$ac_tool_prefix"; then
6597 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}mt; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 if test -n "$MANIFEST_TOOL"; then
6605 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618 done
6619 done
6620 IFS=$as_save_IFS
6621
6622 fi
6623 fi
6624 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6625 if test -n "$MANIFEST_TOOL"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6627 $as_echo "$MANIFEST_TOOL" >&6; }
6628 else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6631 fi
6632
6633
6634 fi
6635 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6636 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6637 # Extract the first word of "mt", so it can be a program name with args.
6638 set dummy mt; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 if test -n "$ac_ct_MANIFEST_TOOL"; then
6645 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 break 2
6657 fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6665 if test -n "$ac_ct_MANIFEST_TOOL"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6667 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6668 else
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6671 fi
6672
6673 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6674 MANIFEST_TOOL=":"
6675 else
6676 case $cross_compiling:$ac_tool_warned in
6677 yes:)
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680 ac_tool_warned=yes ;;
6681 esac
6682 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6683 fi
6684 else
6685 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6686 fi
6687
6688 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6690 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6691 if ${lt_cv_path_mainfest_tool+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 lt_cv_path_mainfest_tool=no
6695 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6696 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6697 cat conftest.err >&5
6698 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6699 lt_cv_path_mainfest_tool=yes
6700 fi
6701 rm -f conftest*
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6704 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6705 if test yes != "$lt_cv_path_mainfest_tool"; then
6706 MANIFEST_TOOL=:
6707 fi
6708
6709
6710
6711
6712
6713
6714 case $host_os in
6715 rhapsody* | darwin*)
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$DSYMUTIL"; then
6725 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6745 if test -n "$DSYMUTIL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6747 $as_echo "$DSYMUTIL" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752
6753
6754 fi
6755 if test -z "$ac_cv_prog_DSYMUTIL"; then
6756 ac_ct_DSYMUTIL=$DSYMUTIL
6757 # Extract the first word of "dsymutil", so it can be a program name with args.
6758 set dummy dsymutil; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$ac_ct_DSYMUTIL"; then
6765 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6785 if test -n "$ac_ct_DSYMUTIL"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6787 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6791 fi
6792
6793 if test "x$ac_ct_DSYMUTIL" = x; then
6794 DSYMUTIL=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802 DSYMUTIL=$ac_ct_DSYMUTIL
6803 fi
6804 else
6805 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6806 fi
6807
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_prog_NMEDIT+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$NMEDIT"; then
6817 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 NMEDIT=$ac_cv_prog_NMEDIT
6837 if test -n "$NMEDIT"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6839 $as_echo "$NMEDIT" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6843 fi
6844
6845
6846 fi
6847 if test -z "$ac_cv_prog_NMEDIT"; then
6848 ac_ct_NMEDIT=$NMEDIT
6849 # Extract the first word of "nmedit", so it can be a program name with args.
6850 set dummy nmedit; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$ac_ct_NMEDIT"; then
6857 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6877 if test -n "$ac_ct_NMEDIT"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6879 $as_echo "$ac_ct_NMEDIT" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885 if test "x$ac_ct_NMEDIT" = x; then
6886 NMEDIT=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894 NMEDIT=$ac_ct_NMEDIT
6895 fi
6896 else
6897 NMEDIT="$ac_cv_prog_NMEDIT"
6898 fi
6899
6900 if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6902 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_LIPO+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test -n "$LIPO"; then
6909 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926 fi
6927 fi
6928 LIPO=$ac_cv_prog_LIPO
6929 if test -n "$LIPO"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6931 $as_echo "$LIPO" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937
6938 fi
6939 if test -z "$ac_cv_prog_LIPO"; then
6940 ac_ct_LIPO=$LIPO
6941 # Extract the first word of "lipo", so it can be a program name with args.
6942 set dummy lipo; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$ac_ct_LIPO"; then
6949 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_ac_ct_LIPO="lipo"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962 done
6963 done
6964 IFS=$as_save_IFS
6965
6966 fi
6967 fi
6968 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6969 if test -n "$ac_ct_LIPO"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6971 $as_echo "$ac_ct_LIPO" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6975 fi
6976
6977 if test "x$ac_ct_LIPO" = x; then
6978 LIPO=":"
6979 else
6980 case $cross_compiling:$ac_tool_warned in
6981 yes:)
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984 ac_tool_warned=yes ;;
6985 esac
6986 LIPO=$ac_ct_LIPO
6987 fi
6988 else
6989 LIPO="$ac_cv_prog_LIPO"
6990 fi
6991
6992 if test -n "$ac_tool_prefix"; then
6993 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6994 set dummy ${ac_tool_prefix}otool; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_OTOOL+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 if test -n "$OTOOL"; then
7001 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 OTOOL=$ac_cv_prog_OTOOL
7021 if test -n "$OTOOL"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7023 $as_echo "$OTOOL" >&6; }
7024 else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7027 fi
7028
7029
7030 fi
7031 if test -z "$ac_cv_prog_OTOOL"; then
7032 ac_ct_OTOOL=$OTOOL
7033 # Extract the first word of "otool", so it can be a program name with args.
7034 set dummy otool; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 if test -n "$ac_ct_OTOOL"; then
7041 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7050 ac_cv_prog_ac_ct_OTOOL="otool"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7061 if test -n "$ac_ct_OTOOL"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7063 $as_echo "$ac_ct_OTOOL" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069 if test "x$ac_ct_OTOOL" = x; then
7070 OTOOL=":"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073 yes:)
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078 OTOOL=$ac_ct_OTOOL
7079 fi
7080 else
7081 OTOOL="$ac_cv_prog_OTOOL"
7082 fi
7083
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if ${ac_cv_prog_OTOOL64+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 if test -n "$OTOOL64"; then
7093 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 OTOOL64=$ac_cv_prog_OTOOL64
7113 if test -n "$OTOOL64"; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7115 $as_echo "$OTOOL64" >&6; }
7116 else
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7119 fi
7120
7121
7122 fi
7123 if test -z "$ac_cv_prog_OTOOL64"; then
7124 ac_ct_OTOOL64=$OTOOL64
7125 # Extract the first word of "otool64", so it can be a program name with args.
7126 set dummy otool64; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 if test -n "$ac_ct_OTOOL64"; then
7133 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_ac_ct_OTOOL64="otool64"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7153 if test -n "$ac_ct_OTOOL64"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7155 $as_echo "$ac_ct_OTOOL64" >&6; }
7156 else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161 if test "x$ac_ct_OTOOL64" = x; then
7162 OTOOL64=":"
7163 else
7164 case $cross_compiling:$ac_tool_warned in
7165 yes:)
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168 ac_tool_warned=yes ;;
7169 esac
7170 OTOOL64=$ac_ct_OTOOL64
7171 fi
7172 else
7173 OTOOL64="$ac_cv_prog_OTOOL64"
7174 fi
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7203 $as_echo_n "checking for -single_module linker flag... " >&6; }
7204 if ${lt_cv_apple_cc_single_mod+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 lt_cv_apple_cc_single_mod=no
7208 if test -z "$LT_MULTI_MODULE"; then
7209 # By default we will add the -single_module flag. You can override
7210 # by either setting the environment variable LT_MULTI_MODULE
7211 # non-empty at configure time, or by adding -multi_module to the
7212 # link flags.
7213 rm -rf libconftest.dylib*
7214 echo "int foo(void){return 1;}" > conftest.c
7215 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7216 -dynamiclib -Wl,-single_module conftest.c" >&5
7217 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7218 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7219 _lt_result=$?
7220 # If there is a non-empty error log, and "single_module"
7221 # appears in it, assume the flag caused a linker warning
7222 if test -s conftest.err && $GREP single_module conftest.err; then
7223 cat conftest.err >&5
7224 # Otherwise, if the output was created with a 0 exit code from
7225 # the compiler, it worked.
7226 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7227 lt_cv_apple_cc_single_mod=yes
7228 else
7229 cat conftest.err >&5
7230 fi
7231 rm -rf libconftest.dylib*
7232 rm -f conftest.*
7233 fi
7234 fi
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7236 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7237
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7239 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7240 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 lt_cv_ld_exported_symbols_list=no
7244 save_LDFLAGS=$LDFLAGS
7245 echo "_main" > conftest.sym
7246 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249
7250 int
7251 main ()
7252 {
7253
7254 ;
7255 return 0;
7256 }
7257 _ACEOF
7258 if ac_fn_c_try_link "$LINENO"; then :
7259 lt_cv_ld_exported_symbols_list=yes
7260 else
7261 lt_cv_ld_exported_symbols_list=no
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext \
7264 conftest$ac_exeext conftest.$ac_ext
7265 LDFLAGS=$save_LDFLAGS
7266
7267 fi
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7269 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7270
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7272 $as_echo_n "checking for -force_load linker flag... " >&6; }
7273 if ${lt_cv_ld_force_load+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 lt_cv_ld_force_load=no
7277 cat > conftest.c << _LT_EOF
7278 int forced_loaded() { return 2;}
7279 _LT_EOF
7280 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7281 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7282 echo "$AR cru libconftest.a conftest.o" >&5
7283 $AR cru libconftest.a conftest.o 2>&5
7284 echo "$RANLIB libconftest.a" >&5
7285 $RANLIB libconftest.a 2>&5
7286 cat > conftest.c << _LT_EOF
7287 int main() { return 0;}
7288 _LT_EOF
7289 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7290 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7291 _lt_result=$?
7292 if test -s conftest.err && $GREP force_load conftest.err; then
7293 cat conftest.err >&5
7294 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7295 lt_cv_ld_force_load=yes
7296 else
7297 cat conftest.err >&5
7298 fi
7299 rm -f conftest.err libconftest.a conftest conftest.c
7300 rm -rf conftest.dSYM
7301
7302 fi
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7304 $as_echo "$lt_cv_ld_force_load" >&6; }
7305 case $host_os in
7306 rhapsody* | darwin1.[012])
7307 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7308 darwin1.*)
7309 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7310 darwin*) # darwin 5.x on
7311 # if running on 10.5 or later, the deployment target defaults
7312 # to the OS version, if on x86, and 10.4, the deployment
7313 # target defaults to 10.4. Don't you love it?
7314 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7315 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7316 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7317 10.[012][,.]*)
7318 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7319 10.*)
7320 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7321 esac
7322 ;;
7323 esac
7324 if test yes = "$lt_cv_apple_cc_single_mod"; then
7325 _lt_dar_single_mod='$single_module'
7326 fi
7327 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7328 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7329 else
7330 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7331 fi
7332 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7333 _lt_dsymutil='~$DSYMUTIL $lib || :'
7334 else
7335 _lt_dsymutil=
7336 fi
7337 ;;
7338 esac
7339
7340 # func_munge_path_list VARIABLE PATH
7341 # -----------------------------------
7342 # VARIABLE is name of variable containing _space_ separated list of
7343 # directories to be munged by the contents of PATH, which is string
7344 # having a format:
7345 # "DIR[:DIR]:"
7346 # string "DIR[ DIR]" will be prepended to VARIABLE
7347 # ":DIR[:DIR]"
7348 # string "DIR[ DIR]" will be appended to VARIABLE
7349 # "DIRP[:DIRP]::[DIRA:]DIRA"
7350 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7351 # "DIRA[ DIRA]" will be appended to VARIABLE
7352 # "DIR[:DIR]"
7353 # VARIABLE will be replaced by "DIR[ DIR]"
7354 func_munge_path_list ()
7355 {
7356 case x$2 in
7357 x)
7358 ;;
7359 *:)
7360 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7361 ;;
7362 x:*)
7363 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7364 ;;
7365 *::*)
7366 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7367 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7368 ;;
7369 *)
7370 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7371 ;;
7372 esac
7373 }
7374
7375 ac_ext=c
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7381 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7382 # On Suns, sometimes $CPP names a directory.
7383 if test -n "$CPP" && test -d "$CPP"; then
7384 CPP=
7385 fi
7386 if test -z "$CPP"; then
7387 if ${ac_cv_prog_CPP+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 # Double quotes because CPP needs to be expanded
7391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7392 do
7393 ac_preproc_ok=false
7394 for ac_c_preproc_warn_flag in '' yes
7395 do
7396 # Use a header file that comes with gcc, so configuring glibc
7397 # with a fresh cross-compiler works.
7398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399 # <limits.h> exists even on freestanding compilers.
7400 # On the NeXT, cc -E runs the code through the compiler's parser,
7401 # not just through cpp. "Syntax error" is here to catch this case.
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 #ifdef __STDC__
7405 # include <limits.h>
7406 #else
7407 # include <assert.h>
7408 #endif
7409 Syntax error
7410 _ACEOF
7411 if ac_fn_c_try_cpp "$LINENO"; then :
7412
7413 else
7414 # Broken: fails on valid input.
7415 continue
7416 fi
7417 rm -f conftest.err conftest.i conftest.$ac_ext
7418
7419 # OK, works on sane cases. Now check whether nonexistent headers
7420 # can be detected and how.
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7423 #include <ac_nonexistent.h>
7424 _ACEOF
7425 if ac_fn_c_try_cpp "$LINENO"; then :
7426 # Broken: success on invalid input.
7427 continue
7428 else
7429 # Passes both tests.
7430 ac_preproc_ok=:
7431 break
7432 fi
7433 rm -f conftest.err conftest.i conftest.$ac_ext
7434
7435 done
7436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7437 rm -f conftest.i conftest.err conftest.$ac_ext
7438 if $ac_preproc_ok; then :
7439 break
7440 fi
7441
7442 done
7443 ac_cv_prog_CPP=$CPP
7444
7445 fi
7446 CPP=$ac_cv_prog_CPP
7447 else
7448 ac_cv_prog_CPP=$CPP
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7451 $as_echo "$CPP" >&6; }
7452 ac_preproc_ok=false
7453 for ac_c_preproc_warn_flag in '' yes
7454 do
7455 # Use a header file that comes with gcc, so configuring glibc
7456 # with a fresh cross-compiler works.
7457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7458 # <limits.h> exists even on freestanding compilers.
7459 # On the NeXT, cc -E runs the code through the compiler's parser,
7460 # not just through cpp. "Syntax error" is here to catch this case.
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #ifdef __STDC__
7464 # include <limits.h>
7465 #else
7466 # include <assert.h>
7467 #endif
7468 Syntax error
7469 _ACEOF
7470 if ac_fn_c_try_cpp "$LINENO"; then :
7471
7472 else
7473 # Broken: fails on valid input.
7474 continue
7475 fi
7476 rm -f conftest.err conftest.i conftest.$ac_ext
7477
7478 # OK, works on sane cases. Now check whether nonexistent headers
7479 # can be detected and how.
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #include <ac_nonexistent.h>
7483 _ACEOF
7484 if ac_fn_c_try_cpp "$LINENO"; then :
7485 # Broken: success on invalid input.
7486 continue
7487 else
7488 # Passes both tests.
7489 ac_preproc_ok=:
7490 break
7491 fi
7492 rm -f conftest.err conftest.i conftest.$ac_ext
7493
7494 done
7495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7496 rm -f conftest.i conftest.err conftest.$ac_ext
7497 if $ac_preproc_ok; then :
7498
7499 else
7500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7502 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7503 See \`config.log' for more details" "$LINENO" 5; }
7504 fi
7505
7506 ac_ext=c
7507 ac_cpp='$CPP $CPPFLAGS'
7508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
7512
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7514 $as_echo_n "checking for ANSI C header files... " >&6; }
7515 if ${ac_cv_header_stdc+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #include <stdlib.h>
7521 #include <stdarg.h>
7522 #include <string.h>
7523 #include <float.h>
7524
7525 int
7526 main ()
7527 {
7528
7529 ;
7530 return 0;
7531 }
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 ac_cv_header_stdc=yes
7535 else
7536 ac_cv_header_stdc=no
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539
7540 if test $ac_cv_header_stdc = yes; then
7541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544 #include <string.h>
7545
7546 _ACEOF
7547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7548 $EGREP "memchr" >/dev/null 2>&1; then :
7549
7550 else
7551 ac_cv_header_stdc=no
7552 fi
7553 rm -f conftest*
7554
7555 fi
7556
7557 if test $ac_cv_header_stdc = yes; then
7558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 #include <stdlib.h>
7562
7563 _ACEOF
7564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7565 $EGREP "free" >/dev/null 2>&1; then :
7566
7567 else
7568 ac_cv_header_stdc=no
7569 fi
7570 rm -f conftest*
7571
7572 fi
7573
7574 if test $ac_cv_header_stdc = yes; then
7575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7576 if test "$cross_compiling" = yes; then :
7577 :
7578 else
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 #include <ctype.h>
7582 #include <stdlib.h>
7583 #if ((' ' & 0x0FF) == 0x020)
7584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7586 #else
7587 # define ISLOWER(c) \
7588 (('a' <= (c) && (c) <= 'i') \
7589 || ('j' <= (c) && (c) <= 'r') \
7590 || ('s' <= (c) && (c) <= 'z'))
7591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7592 #endif
7593
7594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7595 int
7596 main ()
7597 {
7598 int i;
7599 for (i = 0; i < 256; i++)
7600 if (XOR (islower (i), ISLOWER (i))
7601 || toupper (i) != TOUPPER (i))
7602 return 2;
7603 return 0;
7604 }
7605 _ACEOF
7606 if ac_fn_c_try_run "$LINENO"; then :
7607
7608 else
7609 ac_cv_header_stdc=no
7610 fi
7611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7612 conftest.$ac_objext conftest.beam conftest.$ac_ext
7613 fi
7614
7615 fi
7616 fi
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7618 $as_echo "$ac_cv_header_stdc" >&6; }
7619 if test $ac_cv_header_stdc = yes; then
7620
7621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7622
7623 fi
7624
7625 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7626 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7627 inttypes.h stdint.h unistd.h
7628 do :
7629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7630 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7631 "
7632 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7633 cat >>confdefs.h <<_ACEOF
7634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7635 _ACEOF
7636
7637 fi
7638
7639 done
7640
7641
7642 for ac_header in dlfcn.h
7643 do :
7644 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7645 "
7646 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7647 cat >>confdefs.h <<_ACEOF
7648 #define HAVE_DLFCN_H 1
7649 _ACEOF
7650
7651 fi
7652
7653 done
7654
7655
7656
7657
7658
7659 # Set options
7660
7661
7662
7663 enable_dlopen=no
7664
7665
7666 enable_win32_dll=no
7667
7668
7669 # Check whether --enable-shared was given.
7670 if test "${enable_shared+set}" = set; then :
7671 enableval=$enable_shared; p=${PACKAGE-default}
7672 case $enableval in
7673 yes) enable_shared=yes ;;
7674 no) enable_shared=no ;;
7675 *)
7676 enable_shared=no
7677 # Look at the argument we got. We use all the common list separators.
7678 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7679 for pkg in $enableval; do
7680 IFS=$lt_save_ifs
7681 if test "X$pkg" = "X$p"; then
7682 enable_shared=yes
7683 fi
7684 done
7685 IFS=$lt_save_ifs
7686 ;;
7687 esac
7688 else
7689 enable_shared=yes
7690 fi
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700 # Check whether --enable-static was given.
7701 if test "${enable_static+set}" = set; then :
7702 enableval=$enable_static; p=${PACKAGE-default}
7703 case $enableval in
7704 yes) enable_static=yes ;;
7705 no) enable_static=no ;;
7706 *)
7707 enable_static=no
7708 # Look at the argument we got. We use all the common list separators.
7709 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7710 for pkg in $enableval; do
7711 IFS=$lt_save_ifs
7712 if test "X$pkg" = "X$p"; then
7713 enable_static=yes
7714 fi
7715 done
7716 IFS=$lt_save_ifs
7717 ;;
7718 esac
7719 else
7720 enable_static=yes
7721 fi
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732 # Check whether --with-pic was given.
7733 if test "${with_pic+set}" = set; then :
7734 withval=$with_pic; lt_p=${PACKAGE-default}
7735 case $withval in
7736 yes|no) pic_mode=$withval ;;
7737 *)
7738 pic_mode=default
7739 # Look at the argument we got. We use all the common list separators.
7740 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7741 for lt_pkg in $withval; do
7742 IFS=$lt_save_ifs
7743 if test "X$lt_pkg" = "X$lt_p"; then
7744 pic_mode=yes
7745 fi
7746 done
7747 IFS=$lt_save_ifs
7748 ;;
7749 esac
7750 else
7751 pic_mode=default
7752 fi
7753
7754
7755
7756
7757
7758
7759
7760
7761 # Check whether --enable-fast-install was given.
7762 if test "${enable_fast_install+set}" = set; then :
7763 enableval=$enable_fast_install; p=${PACKAGE-default}
7764 case $enableval in
7765 yes) enable_fast_install=yes ;;
7766 no) enable_fast_install=no ;;
7767 *)
7768 enable_fast_install=no
7769 # Look at the argument we got. We use all the common list separators.
7770 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7771 for pkg in $enableval; do
7772 IFS=$lt_save_ifs
7773 if test "X$pkg" = "X$p"; then
7774 enable_fast_install=yes
7775 fi
7776 done
7777 IFS=$lt_save_ifs
7778 ;;
7779 esac
7780 else
7781 enable_fast_install=yes
7782 fi
7783
7784
7785
7786
7787
7788
7789
7790
7791 shared_archive_member_spec=
7792 case $host,$enable_shared in
7793 power*-*-aix[5-9]*,yes)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7795 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7796
7797 # Check whether --with-aix-soname was given.
7798 if test "${with_aix_soname+set}" = set; then :
7799 withval=$with_aix_soname; case $withval in
7800 aix|svr4|both)
7801 ;;
7802 *)
7803 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7804 ;;
7805 esac
7806 lt_cv_with_aix_soname=$with_aix_soname
7807 else
7808 if ${lt_cv_with_aix_soname+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 lt_cv_with_aix_soname=aix
7812 fi
7813
7814 with_aix_soname=$lt_cv_with_aix_soname
7815 fi
7816
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7818 $as_echo "$with_aix_soname" >&6; }
7819 if test aix != "$with_aix_soname"; then
7820 # For the AIX way of multilib, we name the shared archive member
7821 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7822 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7823 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7824 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7825 if test 64 = "${OBJECT_MODE-32}"; then
7826 shared_archive_member_spec=shr_64
7827 else
7828 shared_archive_member_spec=shr
7829 fi
7830 fi
7831 ;;
7832 *)
7833 with_aix_soname=aix
7834 ;;
7835 esac
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846 # This can be used to rebuild libtool when needed
7847 LIBTOOL_DEPS=$ltmain
7848
7849 # Always use our own libtool.
7850 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881 test -z "$LN_S" && LN_S="ln -s"
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896 if test -n "${ZSH_VERSION+set}"; then
7897 setopt NO_GLOB_SUBST
7898 fi
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7901 $as_echo_n "checking for objdir... " >&6; }
7902 if ${lt_cv_objdir+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 rm -f .libs 2>/dev/null
7906 mkdir .libs 2>/dev/null
7907 if test -d .libs; then
7908 lt_cv_objdir=.libs
7909 else
7910 # MS-DOS does not allow filenames that begin with a dot.
7911 lt_cv_objdir=_libs
7912 fi
7913 rmdir .libs 2>/dev/null
7914 fi
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7916 $as_echo "$lt_cv_objdir" >&6; }
7917 objdir=$lt_cv_objdir
7918
7919
7920
7921
7922
7923 cat >>confdefs.h <<_ACEOF
7924 #define LT_OBJDIR "$lt_cv_objdir/"
7925 _ACEOF
7926
7927
7928
7929
7930 case $host_os in
7931 aix3*)
7932 # AIX sometimes has problems with the GCC collect2 program. For some
7933 # reason, if we set the COLLECT_NAMES environment variable, the problems
7934 # vanish in a puff of smoke.
7935 if test set != "${COLLECT_NAMES+set}"; then
7936 COLLECT_NAMES=
7937 export COLLECT_NAMES
7938 fi
7939 ;;
7940 esac
7941
7942 # Global variables:
7943 ofile=libtool
7944 can_build_shared=yes
7945
7946 # All known linkers require a '.a' archive for static linking (except MSVC,
7947 # which needs '.lib').
7948 libext=a
7949
7950 with_gnu_ld=$lt_cv_prog_gnu_ld
7951
7952 old_CC=$CC
7953 old_CFLAGS=$CFLAGS
7954
7955 # Set sane defaults for various variables
7956 test -z "$CC" && CC=cc
7957 test -z "$LTCC" && LTCC=$CC
7958 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7959 test -z "$LD" && LD=ld
7960 test -z "$ac_objext" && ac_objext=o
7961
7962 func_cc_basename $compiler
7963 cc_basename=$func_cc_basename_result
7964
7965
7966 # Only perform the check for file, if the check method requires it
7967 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7968 case $deplibs_check_method in
7969 file_magic*)
7970 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7972 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7973 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 case $MAGIC_CMD in
7977 [\\/*] | ?:[\\/]*)
7978 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7979 ;;
7980 *)
7981 lt_save_MAGIC_CMD=$MAGIC_CMD
7982 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7984 for ac_dir in $ac_dummy; do
7985 IFS=$lt_save_ifs
7986 test -z "$ac_dir" && ac_dir=.
7987 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7988 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7989 if test -n "$file_magic_test_file"; then
7990 case $deplibs_check_method in
7991 "file_magic "*)
7992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7993 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7995 $EGREP "$file_magic_regex" > /dev/null; then
7996 :
7997 else
7998 cat <<_LT_EOF 1>&2
7999
8000 *** Warning: the command libtool uses to detect shared libraries,
8001 *** $file_magic_cmd, produces output that libtool cannot recognize.
8002 *** The result is that libtool may fail to recognize shared libraries
8003 *** as such. This will affect the creation of libtool libraries that
8004 *** depend on shared libraries, but programs linked with such libtool
8005 *** libraries will work regardless of this problem. Nevertheless, you
8006 *** may want to report the problem to your system manager and/or to
8007 *** bug-libtool (at] gnu.org
8008
8009 _LT_EOF
8010 fi ;;
8011 esac
8012 fi
8013 break
8014 fi
8015 done
8016 IFS=$lt_save_ifs
8017 MAGIC_CMD=$lt_save_MAGIC_CMD
8018 ;;
8019 esac
8020 fi
8021
8022 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8023 if test -n "$MAGIC_CMD"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8025 $as_echo "$MAGIC_CMD" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031
8032
8033
8034
8035 if test -z "$lt_cv_path_MAGIC_CMD"; then
8036 if test -n "$ac_tool_prefix"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8038 $as_echo_n "checking for file... " >&6; }
8039 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 case $MAGIC_CMD in
8043 [\\/*] | ?:[\\/]*)
8044 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8045 ;;
8046 *)
8047 lt_save_MAGIC_CMD=$MAGIC_CMD
8048 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8050 for ac_dir in $ac_dummy; do
8051 IFS=$lt_save_ifs
8052 test -z "$ac_dir" && ac_dir=.
8053 if test -f "$ac_dir/file"; then
8054 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8055 if test -n "$file_magic_test_file"; then
8056 case $deplibs_check_method in
8057 "file_magic "*)
8058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8061 $EGREP "$file_magic_regex" > /dev/null; then
8062 :
8063 else
8064 cat <<_LT_EOF 1>&2
8065
8066 *** Warning: the command libtool uses to detect shared libraries,
8067 *** $file_magic_cmd, produces output that libtool cannot recognize.
8068 *** The result is that libtool may fail to recognize shared libraries
8069 *** as such. This will affect the creation of libtool libraries that
8070 *** depend on shared libraries, but programs linked with such libtool
8071 *** libraries will work regardless of this problem. Nevertheless, you
8072 *** may want to report the problem to your system manager and/or to
8073 *** bug-libtool (at] gnu.org
8074
8075 _LT_EOF
8076 fi ;;
8077 esac
8078 fi
8079 break
8080 fi
8081 done
8082 IFS=$lt_save_ifs
8083 MAGIC_CMD=$lt_save_MAGIC_CMD
8084 ;;
8085 esac
8086 fi
8087
8088 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8089 if test -n "$MAGIC_CMD"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8091 $as_echo "$MAGIC_CMD" >&6; }
8092 else
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8095 fi
8096
8097
8098 else
8099 MAGIC_CMD=:
8100 fi
8101 fi
8102
8103 fi
8104 ;;
8105 esac
8106
8107 # Use C for the default configuration in the libtool script
8108
8109 lt_save_CC=$CC
8110 ac_ext=c
8111 ac_cpp='$CPP $CPPFLAGS'
8112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8115
8116
8117 # Source file extension for C test sources.
8118 ac_ext=c
8119
8120 # Object file extension for compiled C test sources.
8121 objext=o
8122 objext=$objext
8123
8124 # Code to be used in simple compile tests
8125 lt_simple_compile_test_code="int some_variable = 0;"
8126
8127 # Code to be used in simple link tests
8128 lt_simple_link_test_code='int main(){return(0);}'
8129
8130
8131
8132
8133
8134
8135
8136 # If no C compiler was specified, use CC.
8137 LTCC=${LTCC-"$CC"}
8138
8139 # If no C compiler flags were specified, use CFLAGS.
8140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8141
8142 # Allow CC to be a program name with arguments.
8143 compiler=$CC
8144
8145 # Save the default compiler, since it gets overwritten when the other
8146 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8147 compiler_DEFAULT=$CC
8148
8149 # save warnings/boilerplate of simple test code
8150 ac_outfile=conftest.$ac_objext
8151 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8152 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8153 _lt_compiler_boilerplate=`cat conftest.err`
8154 $RM conftest*
8155
8156 ac_outfile=conftest.$ac_objext
8157 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8158 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8159 _lt_linker_boilerplate=`cat conftest.err`
8160 $RM -r conftest*
8161
8162
8163 if test -n "$compiler"; then
8164
8165 lt_prog_compiler_no_builtin_flag=
8166
8167 if test yes = "$GCC"; then
8168 case $cc_basename in
8169 nvcc*)
8170 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8171 *)
8172 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8173 esac
8174
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8176 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8177 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 lt_cv_prog_compiler_rtti_exceptions=no
8181 ac_outfile=conftest.$ac_objext
8182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8184 # Insert the option either (1) after the last *FLAGS variable, or
8185 # (2) before a word containing "conftest.", or (3) at the end.
8186 # Note that $ac_compile itself does not contain backslashes and begins
8187 # with a dollar sign (not a hyphen), so the echo should work correctly.
8188 # The option is referenced via a variable to avoid confusing sed.
8189 lt_compile=`echo "$ac_compile" | $SED \
8190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192 -e 's:$: $lt_compiler_flag:'`
8193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8194 (eval "$lt_compile" 2>conftest.err)
8195 ac_status=$?
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 if (exit $ac_status) && test -s "$ac_outfile"; then
8199 # The compiler can only warn and ignore the option if not recognized
8200 # So say no if there are warnings other than the usual output.
8201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8204 lt_cv_prog_compiler_rtti_exceptions=yes
8205 fi
8206 fi
8207 $RM conftest*
8208
8209 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8211 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8212
8213 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8214 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8215 else
8216 :
8217 fi
8218
8219 fi
8220
8221
8222
8223
8224
8225
8226 lt_prog_compiler_wl=
8227 lt_prog_compiler_pic=
8228 lt_prog_compiler_static=
8229
8230
8231 if test yes = "$GCC"; then
8232 lt_prog_compiler_wl='-Wl,'
8233 lt_prog_compiler_static='-static'
8234
8235 case $host_os in
8236 aix*)
8237 # All AIX code is PIC.
8238 if test ia64 = "$host_cpu"; then
8239 # AIX 5 now supports IA64 processor
8240 lt_prog_compiler_static='-Bstatic'
8241 fi
8242 lt_prog_compiler_pic='-fPIC'
8243 ;;
8244
8245 amigaos*)
8246 case $host_cpu in
8247 powerpc)
8248 # see comment about AmigaOS4 .so support
8249 lt_prog_compiler_pic='-fPIC'
8250 ;;
8251 m68k)
8252 # FIXME: we need at least 68020 code to build shared libraries, but
8253 # adding the '-m68020' flag to GCC prevents building anything better,
8254 # like '-m68040'.
8255 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8256 ;;
8257 esac
8258 ;;
8259
8260 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8261 # PIC is the default for these OSes.
8262 ;;
8263
8264 mingw* | cygwin* | pw32* | os2* | cegcc*)
8265 # This hack is so that the source file can tell whether it is being
8266 # built for inclusion in a dll (and should export symbols for example).
8267 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8268 # (--disable-auto-import) libraries
8269 lt_prog_compiler_pic='-DDLL_EXPORT'
8270 case $host_os in
8271 os2*)
8272 lt_prog_compiler_static='$wl-static'
8273 ;;
8274 esac
8275 ;;
8276
8277 darwin* | rhapsody*)
8278 # PIC is the default on this platform
8279 # Common symbols not allowed in MH_DYLIB files
8280 lt_prog_compiler_pic='-fno-common'
8281 ;;
8282
8283 haiku*)
8284 # PIC is the default for Haiku.
8285 # The "-static" flag exists, but is broken.
8286 lt_prog_compiler_static=
8287 ;;
8288
8289 hpux*)
8290 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8291 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8292 # sets the default TLS model and affects inlining.
8293 case $host_cpu in
8294 hppa*64*)
8295 # +Z the default
8296 ;;
8297 *)
8298 lt_prog_compiler_pic='-fPIC'
8299 ;;
8300 esac
8301 ;;
8302
8303 interix[3-9]*)
8304 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8305 # Instead, we relocate shared libraries at runtime.
8306 ;;
8307
8308 msdosdjgpp*)
8309 # Just because we use GCC doesn't mean we suddenly get shared libraries
8310 # on systems that don't support them.
8311 lt_prog_compiler_can_build_shared=no
8312 enable_shared=no
8313 ;;
8314
8315 *nto* | *qnx*)
8316 # QNX uses GNU C++, but need to define -shared option too, otherwise
8317 # it will coredump.
8318 lt_prog_compiler_pic='-fPIC -shared'
8319 ;;
8320
8321 sysv4*MP*)
8322 if test -d /usr/nec; then
8323 lt_prog_compiler_pic=-Kconform_pic
8324 fi
8325 ;;
8326
8327 *)
8328 lt_prog_compiler_pic='-fPIC'
8329 ;;
8330 esac
8331
8332 case $cc_basename in
8333 nvcc*) # Cuda Compiler Driver 2.2
8334 lt_prog_compiler_wl='-Xlinker '
8335 if test -n "$lt_prog_compiler_pic"; then
8336 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8337 fi
8338 ;;
8339 esac
8340 else
8341 # PORTME Check for flag to pass linker flags through the system compiler.
8342 case $host_os in
8343 aix*)
8344 lt_prog_compiler_wl='-Wl,'
8345 if test ia64 = "$host_cpu"; then
8346 # AIX 5 now supports IA64 processor
8347 lt_prog_compiler_static='-Bstatic'
8348 else
8349 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8350 fi
8351 ;;
8352
8353 darwin* | rhapsody*)
8354 # PIC is the default on this platform
8355 # Common symbols not allowed in MH_DYLIB files
8356 lt_prog_compiler_pic='-fno-common'
8357 case $cc_basename in
8358 nagfor*)
8359 # NAG Fortran compiler
8360 lt_prog_compiler_wl='-Wl,-Wl,,'
8361 lt_prog_compiler_pic='-PIC'
8362 lt_prog_compiler_static='-Bstatic'
8363 ;;
8364 esac
8365 ;;
8366
8367 mingw* | cygwin* | pw32* | os2* | cegcc*)
8368 # This hack is so that the source file can tell whether it is being
8369 # built for inclusion in a dll (and should export symbols for example).
8370 lt_prog_compiler_pic='-DDLL_EXPORT'
8371 case $host_os in
8372 os2*)
8373 lt_prog_compiler_static='$wl-static'
8374 ;;
8375 esac
8376 ;;
8377
8378 hpux9* | hpux10* | hpux11*)
8379 lt_prog_compiler_wl='-Wl,'
8380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8381 # not for PA HP-UX.
8382 case $host_cpu in
8383 hppa*64*|ia64*)
8384 # +Z the default
8385 ;;
8386 *)
8387 lt_prog_compiler_pic='+Z'
8388 ;;
8389 esac
8390 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8391 lt_prog_compiler_static='$wl-a ${wl}archive'
8392 ;;
8393
8394 irix5* | irix6* | nonstopux*)
8395 lt_prog_compiler_wl='-Wl,'
8396 # PIC (with -KPIC) is the default.
8397 lt_prog_compiler_static='-non_shared'
8398 ;;
8399
8400 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8401 case $cc_basename in
8402 # old Intel for x86_64, which still supported -KPIC.
8403 ecc*)
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='-KPIC'
8406 lt_prog_compiler_static='-static'
8407 ;;
8408 # icc used to be incompatible with GCC.
8409 # ICC 10 doesn't accept -KPIC any more.
8410 icc* | ifort*)
8411 lt_prog_compiler_wl='-Wl,'
8412 lt_prog_compiler_pic='-fPIC'
8413 lt_prog_compiler_static='-static'
8414 ;;
8415 # Lahey Fortran 8.1.
8416 lf95*)
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='--shared'
8419 lt_prog_compiler_static='--static'
8420 ;;
8421 nagfor*)
8422 # NAG Fortran compiler
8423 lt_prog_compiler_wl='-Wl,-Wl,,'
8424 lt_prog_compiler_pic='-PIC'
8425 lt_prog_compiler_static='-Bstatic'
8426 ;;
8427 tcc*)
8428 # Fabrice Bellard et al's Tiny C Compiler
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-fPIC'
8431 lt_prog_compiler_static='-static'
8432 ;;
8433 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8434 # Portland Group compilers (*not* the Pentium gcc compiler,
8435 # which looks to be a dead project)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-fpic'
8438 lt_prog_compiler_static='-Bstatic'
8439 ;;
8440 ccc*)
8441 lt_prog_compiler_wl='-Wl,'
8442 # All Alpha code is PIC.
8443 lt_prog_compiler_static='-non_shared'
8444 ;;
8445 xl* | bgxl* | bgf* | mpixl*)
8446 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_pic='-qpic'
8449 lt_prog_compiler_static='-qstaticlink'
8450 ;;
8451 *)
8452 case `$CC -V 2>&1 | sed 5q` in
8453 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8454 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 lt_prog_compiler_wl=''
8458 ;;
8459 *Sun\ F* | *Sun*Fortran*)
8460 lt_prog_compiler_pic='-KPIC'
8461 lt_prog_compiler_static='-Bstatic'
8462 lt_prog_compiler_wl='-Qoption ld '
8463 ;;
8464 *Sun\ C*)
8465 # Sun C 5.9
8466 lt_prog_compiler_pic='-KPIC'
8467 lt_prog_compiler_static='-Bstatic'
8468 lt_prog_compiler_wl='-Wl,'
8469 ;;
8470 *Intel*\ [CF]*Compiler*)
8471 lt_prog_compiler_wl='-Wl,'
8472 lt_prog_compiler_pic='-fPIC'
8473 lt_prog_compiler_static='-static'
8474 ;;
8475 *Portland\ Group*)
8476 lt_prog_compiler_wl='-Wl,'
8477 lt_prog_compiler_pic='-fpic'
8478 lt_prog_compiler_static='-Bstatic'
8479 ;;
8480 esac
8481 ;;
8482 esac
8483 ;;
8484
8485 newsos6)
8486 lt_prog_compiler_pic='-KPIC'
8487 lt_prog_compiler_static='-Bstatic'
8488 ;;
8489
8490 *nto* | *qnx*)
8491 # QNX uses GNU C++, but need to define -shared option too, otherwise
8492 # it will coredump.
8493 lt_prog_compiler_pic='-fPIC -shared'
8494 ;;
8495
8496 osf3* | osf4* | osf5*)
8497 lt_prog_compiler_wl='-Wl,'
8498 # All OSF/1 code is PIC.
8499 lt_prog_compiler_static='-non_shared'
8500 ;;
8501
8502 rdos*)
8503 lt_prog_compiler_static='-non_shared'
8504 ;;
8505
8506 solaris*)
8507 lt_prog_compiler_pic='-KPIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 case $cc_basename in
8510 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8511 lt_prog_compiler_wl='-Qoption ld ';;
8512 *)
8513 lt_prog_compiler_wl='-Wl,';;
8514 esac
8515 ;;
8516
8517 sunos4*)
8518 lt_prog_compiler_wl='-Qoption ld '
8519 lt_prog_compiler_pic='-PIC'
8520 lt_prog_compiler_static='-Bstatic'
8521 ;;
8522
8523 sysv4 | sysv4.2uw2* | sysv4.3*)
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8527 ;;
8528
8529 sysv4*MP*)
8530 if test -d /usr/nec; then
8531 lt_prog_compiler_pic='-Kconform_pic'
8532 lt_prog_compiler_static='-Bstatic'
8533 fi
8534 ;;
8535
8536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8537 lt_prog_compiler_wl='-Wl,'
8538 lt_prog_compiler_pic='-KPIC'
8539 lt_prog_compiler_static='-Bstatic'
8540 ;;
8541
8542 unicos*)
8543 lt_prog_compiler_wl='-Wl,'
8544 lt_prog_compiler_can_build_shared=no
8545 ;;
8546
8547 uts4*)
8548 lt_prog_compiler_pic='-pic'
8549 lt_prog_compiler_static='-Bstatic'
8550 ;;
8551
8552 *)
8553 lt_prog_compiler_can_build_shared=no
8554 ;;
8555 esac
8556 fi
8557
8558 case $host_os in
8559 # For platforms that do not support PIC, -DPIC is meaningless:
8560 *djgpp*)
8561 lt_prog_compiler_pic=
8562 ;;
8563 *)
8564 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8565 ;;
8566 esac
8567
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8569 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8570 if ${lt_cv_prog_compiler_pic+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8574 fi
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8576 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8577 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8578
8579 #
8580 # Check to make sure the PIC flag actually works.
8581 #
8582 if test -n "$lt_prog_compiler_pic"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8584 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8585 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 lt_cv_prog_compiler_pic_works=no
8589 ac_outfile=conftest.$ac_objext
8590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8591 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8592 # Insert the option either (1) after the last *FLAGS variable, or
8593 # (2) before a word containing "conftest.", or (3) at the end.
8594 # Note that $ac_compile itself does not contain backslashes and begins
8595 # with a dollar sign (not a hyphen), so the echo should work correctly.
8596 # The option is referenced via a variable to avoid confusing sed.
8597 lt_compile=`echo "$ac_compile" | $SED \
8598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8600 -e 's:$: $lt_compiler_flag:'`
8601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8602 (eval "$lt_compile" 2>conftest.err)
8603 ac_status=$?
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 if (exit $ac_status) && test -s "$ac_outfile"; then
8607 # The compiler can only warn and ignore the option if not recognized
8608 # So say no if there are warnings other than the usual output.
8609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8611 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8612 lt_cv_prog_compiler_pic_works=yes
8613 fi
8614 fi
8615 $RM conftest*
8616
8617 fi
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8619 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8620
8621 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8622 case $lt_prog_compiler_pic in
8623 "" | " "*) ;;
8624 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8625 esac
8626 else
8627 lt_prog_compiler_pic=
8628 lt_prog_compiler_can_build_shared=no
8629 fi
8630
8631 fi
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643 #
8644 # Check to make sure the static flag actually works.
8645 #
8646 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8648 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8649 if ${lt_cv_prog_compiler_static_works+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 lt_cv_prog_compiler_static_works=no
8653 save_LDFLAGS=$LDFLAGS
8654 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8655 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8657 # The linker can only warn and ignore the option if not recognized
8658 # So say no if there are warnings
8659 if test -s conftest.err; then
8660 # Append any errors to the config.log.
8661 cat conftest.err 1>&5
8662 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8664 if diff conftest.exp conftest.er2 >/dev/null; then
8665 lt_cv_prog_compiler_static_works=yes
8666 fi
8667 else
8668 lt_cv_prog_compiler_static_works=yes
8669 fi
8670 fi
8671 $RM -r conftest*
8672 LDFLAGS=$save_LDFLAGS
8673
8674 fi
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8676 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8677
8678 if test yes = "$lt_cv_prog_compiler_static_works"; then
8679 :
8680 else
8681 lt_prog_compiler_static=
8682 fi
8683
8684
8685
8686
8687
8688
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8692 if ${lt_cv_prog_compiler_c_o+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 lt_cv_prog_compiler_c_o=no
8696 $RM -r conftest 2>/dev/null
8697 mkdir conftest
8698 cd conftest
8699 mkdir out
8700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8701
8702 lt_compiler_flag="-o out/conftest2.$ac_objext"
8703 # Insert the option either (1) after the last *FLAGS variable, or
8704 # (2) before a word containing "conftest.", or (3) at the end.
8705 # Note that $ac_compile itself does not contain backslashes and begins
8706 # with a dollar sign (not a hyphen), so the echo should work correctly.
8707 lt_compile=`echo "$ac_compile" | $SED \
8708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8710 -e 's:$: $lt_compiler_flag:'`
8711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8712 (eval "$lt_compile" 2>out/conftest.err)
8713 ac_status=$?
8714 cat out/conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8717 then
8718 # The compiler can only warn and ignore the option if not recognized
8719 # So say no if there are warnings
8720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8723 lt_cv_prog_compiler_c_o=yes
8724 fi
8725 fi
8726 chmod u+w . 2>&5
8727 $RM conftest*
8728 # SGI C++ compiler will create directory out/ii_files/ for
8729 # template instantiation
8730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8731 $RM out/* && rmdir out
8732 cd ..
8733 $RM -r conftest
8734 $RM conftest*
8735
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8738 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8739
8740
8741
8742
8743
8744
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8747 if ${lt_cv_prog_compiler_c_o+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 lt_cv_prog_compiler_c_o=no
8751 $RM -r conftest 2>/dev/null
8752 mkdir conftest
8753 cd conftest
8754 mkdir out
8755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8756
8757 lt_compiler_flag="-o out/conftest2.$ac_objext"
8758 # Insert the option either (1) after the last *FLAGS variable, or
8759 # (2) before a word containing "conftest.", or (3) at the end.
8760 # Note that $ac_compile itself does not contain backslashes and begins
8761 # with a dollar sign (not a hyphen), so the echo should work correctly.
8762 lt_compile=`echo "$ac_compile" | $SED \
8763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765 -e 's:$: $lt_compiler_flag:'`
8766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8767 (eval "$lt_compile" 2>out/conftest.err)
8768 ac_status=$?
8769 cat out/conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8772 then
8773 # The compiler can only warn and ignore the option if not recognized
8774 # So say no if there are warnings
8775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8778 lt_cv_prog_compiler_c_o=yes
8779 fi
8780 fi
8781 chmod u+w . 2>&5
8782 $RM conftest*
8783 # SGI C++ compiler will create directory out/ii_files/ for
8784 # template instantiation
8785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8786 $RM out/* && rmdir out
8787 cd ..
8788 $RM -r conftest
8789 $RM conftest*
8790
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8793 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8794
8795
8796
8797
8798 hard_links=nottested
8799 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8800 # do not overwrite the value of need_locks provided by the user
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8802 $as_echo_n "checking if we can lock with hard links... " >&6; }
8803 hard_links=yes
8804 $RM conftest*
8805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8806 touch conftest.a
8807 ln conftest.a conftest.b 2>&5 || hard_links=no
8808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8810 $as_echo "$hard_links" >&6; }
8811 if test no = "$hard_links"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8813 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8814 need_locks=warn
8815 fi
8816 else
8817 need_locks=no
8818 fi
8819
8820
8821
8822
8823
8824
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8826 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8827
8828 runpath_var=
8829 allow_undefined_flag=
8830 always_export_symbols=no
8831 archive_cmds=
8832 archive_expsym_cmds=
8833 compiler_needs_object=no
8834 enable_shared_with_static_runtimes=no
8835 export_dynamic_flag_spec=
8836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8837 hardcode_automatic=no
8838 hardcode_direct=no
8839 hardcode_direct_absolute=no
8840 hardcode_libdir_flag_spec=
8841 hardcode_libdir_separator=
8842 hardcode_minus_L=no
8843 hardcode_shlibpath_var=unsupported
8844 inherit_rpath=no
8845 link_all_deplibs=unknown
8846 module_cmds=
8847 module_expsym_cmds=
8848 old_archive_from_new_cmds=
8849 old_archive_from_expsyms_cmds=
8850 thread_safe_flag_spec=
8851 whole_archive_flag_spec=
8852 # include_expsyms should be a list of space-separated symbols to be *always*
8853 # included in the symbol list
8854 include_expsyms=
8855 # exclude_expsyms can be an extended regexp of symbols to exclude
8856 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8857 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8858 # as well as any symbol that contains 'd'.
8859 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8860 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8861 # platforms (ab)use it in PIC code, but their linkers get confused if
8862 # the symbol is explicitly referenced. Since portable code cannot
8863 # rely on this symbol name, it's probably fine to never include it in
8864 # preloaded symbol tables.
8865 # Exclude shared library initialization/finalization symbols.
8866 extract_expsyms_cmds=
8867
8868 case $host_os in
8869 cygwin* | mingw* | pw32* | cegcc*)
8870 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8871 # When not using gcc, we currently assume that we are using
8872 # Microsoft Visual C++.
8873 if test yes != "$GCC"; then
8874 with_gnu_ld=no
8875 fi
8876 ;;
8877 interix*)
8878 # we just hope/assume this is gcc and not c89 (= MSVC++)
8879 with_gnu_ld=yes
8880 ;;
8881 openbsd* | bitrig*)
8882 with_gnu_ld=no
8883 ;;
8884 esac
8885
8886 ld_shlibs=yes
8887
8888 # On some targets, GNU ld is compatible enough with the native linker
8889 # that we're better off using the native interface for both.
8890 lt_use_gnu_ld_interface=no
8891 if test yes = "$with_gnu_ld"; then
8892 case $host_os in
8893 aix*)
8894 # The AIX port of GNU ld has always aspired to compatibility
8895 # with the native linker. However, as the warning in the GNU ld
8896 # block says, versions before 2.19.5* couldn't really create working
8897 # shared libraries, regardless of the interface used.
8898 case `$LD -v 2>&1` in
8899 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8900 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8901 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8902 *)
8903 lt_use_gnu_ld_interface=yes
8904 ;;
8905 esac
8906 ;;
8907 *)
8908 lt_use_gnu_ld_interface=yes
8909 ;;
8910 esac
8911 fi
8912
8913 if test yes = "$lt_use_gnu_ld_interface"; then
8914 # If archive_cmds runs LD, not CC, wlarc should be empty
8915 wlarc='$wl'
8916
8917 # Set some defaults for GNU ld with shared library support. These
8918 # are reset later if shared libraries are not supported. Putting them
8919 # here allows them to be overridden if necessary.
8920 runpath_var=LD_RUN_PATH
8921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8922 export_dynamic_flag_spec='$wl--export-dynamic'
8923 # ancient GNU ld didn't support --whole-archive et. al.
8924 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8925 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8926 else
8927 whole_archive_flag_spec=
8928 fi
8929 supports_anon_versioning=no
8930 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8931 *GNU\ gold*) supports_anon_versioning=yes ;;
8932 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8933 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8934 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8935 *\ 2.11.*) ;; # other 2.11 versions
8936 *) supports_anon_versioning=yes ;;
8937 esac
8938
8939 # See if GNU ld supports shared libraries.
8940 case $host_os in
8941 aix[3-9]*)
8942 # On AIX/PPC, the GNU linker is very broken
8943 if test ia64 != "$host_cpu"; then
8944 ld_shlibs=no
8945 cat <<_LT_EOF 1>&2
8946
8947 *** Warning: the GNU linker, at least up to release 2.19, is reported
8948 *** to be unable to reliably create shared libraries on AIX.
8949 *** Therefore, libtool is disabling shared libraries support. If you
8950 *** really care for shared libraries, you may want to install binutils
8951 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8952 *** You will then need to restart the configuration process.
8953
8954 _LT_EOF
8955 fi
8956 ;;
8957
8958 amigaos*)
8959 case $host_cpu in
8960 powerpc)
8961 # see comment about AmigaOS4 .so support
8962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8963 archive_expsym_cmds=''
8964 ;;
8965 m68k)
8966 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)'
8967 hardcode_libdir_flag_spec='-L$libdir'
8968 hardcode_minus_L=yes
8969 ;;
8970 esac
8971 ;;
8972
8973 beos*)
8974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8975 allow_undefined_flag=unsupported
8976 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8977 # support --undefined. This deserves some investigation. FIXME
8978 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8979 else
8980 ld_shlibs=no
8981 fi
8982 ;;
8983
8984 cygwin* | mingw* | pw32* | cegcc*)
8985 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8986 # as there is no search path for DLLs.
8987 hardcode_libdir_flag_spec='-L$libdir'
8988 export_dynamic_flag_spec='$wl--export-all-symbols'
8989 allow_undefined_flag=unsupported
8990 always_export_symbols=no
8991 enable_shared_with_static_runtimes=yes
8992 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'
8993 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8994
8995 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8997 # If the export-symbols file already is a .def file, use it as
8998 # is; otherwise, prepend EXPORTS...
8999 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9000 cp $export_symbols $output_objdir/$soname.def;
9001 else
9002 echo EXPORTS > $output_objdir/$soname.def;
9003 cat $export_symbols >> $output_objdir/$soname.def;
9004 fi~
9005 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9006 else
9007 ld_shlibs=no
9008 fi
9009 ;;
9010
9011 haiku*)
9012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9013 link_all_deplibs=yes
9014 ;;
9015
9016 os2*)
9017 hardcode_libdir_flag_spec='-L$libdir'
9018 hardcode_minus_L=yes
9019 allow_undefined_flag=unsupported
9020 shrext_cmds=.dll
9021 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9022 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9023 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9024 $ECHO EXPORTS >> $output_objdir/$libname.def~
9025 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9026 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9027 emximp -o $lib $output_objdir/$libname.def'
9028 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9029 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9030 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9031 $ECHO EXPORTS >> $output_objdir/$libname.def~
9032 prefix_cmds="$SED"~
9033 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9034 prefix_cmds="$prefix_cmds -e 1d";
9035 fi~
9036 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9037 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9038 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9039 emximp -o $lib $output_objdir/$libname.def'
9040 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9041 enable_shared_with_static_runtimes=yes
9042 ;;
9043
9044 interix[3-9]*)
9045 hardcode_direct=no
9046 hardcode_shlibpath_var=no
9047 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9048 export_dynamic_flag_spec='$wl-E'
9049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9050 # Instead, shared libraries are loaded at an image base (0x10000000 by
9051 # default) and relocated if they conflict, which is a slow very memory
9052 # consuming and fragmenting process. To avoid this, we pick a random,
9053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9056 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'
9057 ;;
9058
9059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9060 tmp_diet=no
9061 if test linux-dietlibc = "$host_os"; then
9062 case $cc_basename in
9063 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9064 esac
9065 fi
9066 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9067 && test no = "$tmp_diet"
9068 then
9069 tmp_addflag=' $pic_flag'
9070 tmp_sharedflag='-shared'
9071 case $cc_basename,$host_cpu in
9072 pgcc*) # Portland Group C compiler
9073 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'
9074 tmp_addflag=' $pic_flag'
9075 ;;
9076 pgf77* | pgf90* | pgf95* | pgfortran*)
9077 # Portland Group f77 and f90 compilers
9078 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9079 tmp_addflag=' $pic_flag -Mnomain' ;;
9080 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9081 tmp_addflag=' -i_dynamic' ;;
9082 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9083 tmp_addflag=' -i_dynamic -nofor_main' ;;
9084 ifc* | ifort*) # Intel Fortran compiler
9085 tmp_addflag=' -nofor_main' ;;
9086 lf95*) # Lahey Fortran 8.1
9087 whole_archive_flag_spec=
9088 tmp_sharedflag='--shared' ;;
9089 nagfor*) # NAGFOR 5.3
9090 tmp_sharedflag='-Wl,-shared' ;;
9091 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9092 tmp_sharedflag='-qmkshrobj'
9093 tmp_addflag= ;;
9094 nvcc*) # Cuda Compiler Driver 2.2
9095 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'
9096 compiler_needs_object=yes
9097 ;;
9098 esac
9099 case `$CC -V 2>&1 | sed 5q` in
9100 *Sun\ C*) # Sun C 5.9
9101 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'
9102 compiler_needs_object=yes
9103 tmp_sharedflag='-G' ;;
9104 *Sun\ F*) # Sun Fortran 8.3
9105 tmp_sharedflag='-G' ;;
9106 esac
9107 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9108
9109 if test yes = "$supports_anon_versioning"; then
9110 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9112 echo "local: *; };" >> $output_objdir/$libname.ver~
9113 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9114 fi
9115
9116 case $cc_basename in
9117 tcc*)
9118 export_dynamic_flag_spec='-rdynamic'
9119 ;;
9120 xlf* | bgf* | bgxlf* | mpixlf*)
9121 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9122 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9123 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9124 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9125 if test yes = "$supports_anon_versioning"; then
9126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9128 echo "local: *; };" >> $output_objdir/$libname.ver~
9129 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9130 fi
9131 ;;
9132 esac
9133 else
9134 ld_shlibs=no
9135 fi
9136 ;;
9137
9138 netbsd*)
9139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9140 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9141 wlarc=
9142 else
9143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9144 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9145 fi
9146 ;;
9147
9148 solaris*)
9149 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9150 ld_shlibs=no
9151 cat <<_LT_EOF 1>&2
9152
9153 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9154 *** create shared libraries on Solaris systems. Therefore, libtool
9155 *** is disabling shared libraries support. We urge you to upgrade GNU
9156 *** binutils to release 2.9.1 or newer. Another option is to modify
9157 *** your PATH or compiler configuration so that the native linker is
9158 *** used, and then restart.
9159
9160 _LT_EOF
9161 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9162 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9163 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9164 else
9165 ld_shlibs=no
9166 fi
9167 ;;
9168
9169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9170 case `$LD -v 2>&1` in
9171 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9172 ld_shlibs=no
9173 cat <<_LT_EOF 1>&2
9174
9175 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9176 *** reliably create shared libraries on SCO systems. Therefore, libtool
9177 *** is disabling shared libraries support. We urge you to upgrade GNU
9178 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9179 *** your PATH or compiler configuration so that the native linker is
9180 *** used, and then restart.
9181
9182 _LT_EOF
9183 ;;
9184 *)
9185 # For security reasons, it is highly recommended that you always
9186 # use absolute paths for naming shared libraries, and exclude the
9187 # DT_RUNPATH tag from executables and libraries. But doing so
9188 # requires that you compile everything twice, which is a pain.
9189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9193 else
9194 ld_shlibs=no
9195 fi
9196 ;;
9197 esac
9198 ;;
9199
9200 sunos4*)
9201 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9202 wlarc=
9203 hardcode_direct=yes
9204 hardcode_shlibpath_var=no
9205 ;;
9206
9207 *)
9208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9210 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9211 else
9212 ld_shlibs=no
9213 fi
9214 ;;
9215 esac
9216
9217 if test no = "$ld_shlibs"; then
9218 runpath_var=
9219 hardcode_libdir_flag_spec=
9220 export_dynamic_flag_spec=
9221 whole_archive_flag_spec=
9222 fi
9223 else
9224 # PORTME fill in a description of your system's linker (not GNU ld)
9225 case $host_os in
9226 aix3*)
9227 allow_undefined_flag=unsupported
9228 always_export_symbols=yes
9229 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'
9230 # Note: this linker hardcodes the directories in LIBPATH if there
9231 # are no directories specified by -L.
9232 hardcode_minus_L=yes
9233 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9234 # Neither direct hardcoding nor static linking is supported with a
9235 # broken collect2.
9236 hardcode_direct=unsupported
9237 fi
9238 ;;
9239
9240 aix[4-9]*)
9241 if test ia64 = "$host_cpu"; then
9242 # On IA64, the linker does run time linking by default, so we don't
9243 # have to do anything special.
9244 aix_use_runtimelinking=no
9245 exp_sym_flag='-Bexport'
9246 no_entry_flag=
9247 else
9248 # If we're using GNU nm, then we don't want the "-C" option.
9249 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9250 # Without the "-l" option, or with the "-B" option, AIX nm treats
9251 # weak defined symbols like other global defined symbols, whereas
9252 # GNU nm marks them as "W".
9253 # While the 'weak' keyword is ignored in the Export File, we need
9254 # it in the Import File for the 'aix-soname' feature, so we have
9255 # to replace the "-B" option with "-P" for AIX nm.
9256 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9257 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'
9258 else
9259 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9260 fi
9261 aix_use_runtimelinking=no
9262
9263 # Test if we are trying to use run time linking or normal
9264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9265 # have runtime linking enabled, and use it for executables.
9266 # For shared libraries, we enable/disable runtime linking
9267 # depending on the kind of the shared library created -
9268 # when "with_aix_soname,aix_use_runtimelinking" is:
9269 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9270 # "aix,yes" lib.so shared, rtl:yes, for executables
9271 # lib.a static archive
9272 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9273 # lib.a(lib.so.V) shared, rtl:no, for executables
9274 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9275 # lib.a(lib.so.V) shared, rtl:no
9276 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9277 # lib.a static archive
9278 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9279 for ld_flag in $LDFLAGS; do
9280 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9281 aix_use_runtimelinking=yes
9282 break
9283 fi
9284 done
9285 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9286 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9287 # so we don't have lib.a shared libs to link our executables.
9288 # We have to force runtime linking in this case.
9289 aix_use_runtimelinking=yes
9290 LDFLAGS="$LDFLAGS -Wl,-brtl"
9291 fi
9292 ;;
9293 esac
9294
9295 exp_sym_flag='-bexport'
9296 no_entry_flag='-bnoentry'
9297 fi
9298
9299 # When large executables or shared objects are built, AIX ld can
9300 # have problems creating the table of contents. If linking a library
9301 # or program results in "error TOC overflow" add -mminimal-toc to
9302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9304
9305 archive_cmds=''
9306 hardcode_direct=yes
9307 hardcode_direct_absolute=yes
9308 hardcode_libdir_separator=':'
9309 link_all_deplibs=yes
9310 file_list_spec='$wl-f,'
9311 case $with_aix_soname,$aix_use_runtimelinking in
9312 aix,*) ;; # traditional, no import file
9313 svr4,* | *,yes) # use import file
9314 # The Import File defines what to hardcode.
9315 hardcode_direct=no
9316 hardcode_direct_absolute=no
9317 ;;
9318 esac
9319
9320 if test yes = "$GCC"; then
9321 case $host_os in aix4.[012]|aix4.[012].*)
9322 # We only want to do this on AIX 4.2 and lower, the check
9323 # below for broken collect2 doesn't work under 4.3+
9324 collect2name=`$CC -print-prog-name=collect2`
9325 if test -f "$collect2name" &&
9326 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9327 then
9328 # We have reworked collect2
9329 :
9330 else
9331 # We have old collect2
9332 hardcode_direct=unsupported
9333 # It fails to find uninstalled libraries when the uninstalled
9334 # path is not listed in the libpath. Setting hardcode_minus_L
9335 # to unsupported forces relinking
9336 hardcode_minus_L=yes
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_libdir_separator=
9339 fi
9340 ;;
9341 esac
9342 shared_flag='-shared'
9343 if test yes = "$aix_use_runtimelinking"; then
9344 shared_flag="$shared_flag "'$wl-G'
9345 fi
9346 # Need to ensure runtime linking is disabled for the traditional
9347 # shared library, or the linker may eventually find shared libraries
9348 # /with/ Import File - we do not want to mix them.
9349 shared_flag_aix='-shared'
9350 shared_flag_svr4='-shared $wl-G'
9351 else
9352 # not using gcc
9353 if test ia64 = "$host_cpu"; then
9354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9355 # chokes on -Wl,-G. The following line is correct:
9356 shared_flag='-G'
9357 else
9358 if test yes = "$aix_use_runtimelinking"; then
9359 shared_flag='$wl-G'
9360 else
9361 shared_flag='$wl-bM:SRE'
9362 fi
9363 shared_flag_aix='$wl-bM:SRE'
9364 shared_flag_svr4='$wl-G'
9365 fi
9366 fi
9367
9368 export_dynamic_flag_spec='$wl-bexpall'
9369 # It seems that -bexpall does not export symbols beginning with
9370 # underscore (_), so it is better to generate a list of symbols to export.
9371 always_export_symbols=yes
9372 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9373 # Warning - without using the other runtime loading flags (-brtl),
9374 # -berok will link without error, but may produce a broken library.
9375 allow_undefined_flag='-berok'
9376 # Determine the default libpath from the value encoded in an
9377 # empty executable.
9378 if test set = "${lt_cv_aix_libpath+set}"; then
9379 aix_libpath=$lt_cv_aix_libpath
9380 else
9381 if ${lt_cv_aix_libpath_+:} false; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386
9387 int
9388 main ()
9389 {
9390
9391 ;
9392 return 0;
9393 }
9394 _ACEOF
9395 if ac_fn_c_try_link "$LINENO"; then :
9396
9397 lt_aix_libpath_sed='
9398 /Import File Strings/,/^$/ {
9399 /^0/ {
9400 s/^0 *\([^ ]*\) *$/\1/
9401 p
9402 }
9403 }'
9404 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9405 # Check for a 64-bit object if we didn't find anything.
9406 if test -z "$lt_cv_aix_libpath_"; then
9407 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9408 fi
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 if test -z "$lt_cv_aix_libpath_"; then
9413 lt_cv_aix_libpath_=/usr/lib:/lib
9414 fi
9415
9416 fi
9417
9418 aix_libpath=$lt_cv_aix_libpath_
9419 fi
9420
9421 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9422 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
9423 else
9424 if test ia64 = "$host_cpu"; then
9425 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9426 allow_undefined_flag="-z nodefs"
9427 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"
9428 else
9429 # Determine the default libpath from the value encoded in an
9430 # empty executable.
9431 if test set = "${lt_cv_aix_libpath+set}"; then
9432 aix_libpath=$lt_cv_aix_libpath
9433 else
9434 if ${lt_cv_aix_libpath_+:} false; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439
9440 int
9441 main ()
9442 {
9443
9444 ;
9445 return 0;
9446 }
9447 _ACEOF
9448 if ac_fn_c_try_link "$LINENO"; then :
9449
9450 lt_aix_libpath_sed='
9451 /Import File Strings/,/^$/ {
9452 /^0/ {
9453 s/^0 *\([^ ]*\) *$/\1/
9454 p
9455 }
9456 }'
9457 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9458 # Check for a 64-bit object if we didn't find anything.
9459 if test -z "$lt_cv_aix_libpath_"; then
9460 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461 fi
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
9465 if test -z "$lt_cv_aix_libpath_"; then
9466 lt_cv_aix_libpath_=/usr/lib:/lib
9467 fi
9468
9469 fi
9470
9471 aix_libpath=$lt_cv_aix_libpath_
9472 fi
9473
9474 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9475 # Warning - without using the other run time loading flags,
9476 # -berok will link without error, but may produce a broken library.
9477 no_undefined_flag=' $wl-bernotok'
9478 allow_undefined_flag=' $wl-berok'
9479 if test yes = "$with_gnu_ld"; then
9480 # We only use this code for GNU lds that support --whole-archive.
9481 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9482 else
9483 # Exported symbols can be pulled into shared objects from archives
9484 whole_archive_flag_spec='$convenience'
9485 fi
9486 archive_cmds_need_lc=yes
9487 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9488 # -brtl affects multiple linker settings, -berok does not and is overridden later
9489 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9490 if test svr4 != "$with_aix_soname"; then
9491 # This is similar to how AIX traditionally builds its shared libraries.
9492 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'
9493 fi
9494 if test aix != "$with_aix_soname"; then
9495 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'
9496 else
9497 # used by -dlpreopen to get the symbols
9498 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9499 fi
9500 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9501 fi
9502 fi
9503 ;;
9504
9505 amigaos*)
9506 case $host_cpu in
9507 powerpc)
9508 # see comment about AmigaOS4 .so support
9509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9510 archive_expsym_cmds=''
9511 ;;
9512 m68k)
9513 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)'
9514 hardcode_libdir_flag_spec='-L$libdir'
9515 hardcode_minus_L=yes
9516 ;;
9517 esac
9518 ;;
9519
9520 bsdi[45]*)
9521 export_dynamic_flag_spec=-rdynamic
9522 ;;
9523
9524 cygwin* | mingw* | pw32* | cegcc*)
9525 # When not using gcc, we currently assume that we are using
9526 # Microsoft Visual C++.
9527 # hardcode_libdir_flag_spec is actually meaningless, as there is
9528 # no search path for DLLs.
9529 case $cc_basename in
9530 cl*)
9531 # Native MSVC
9532 hardcode_libdir_flag_spec=' '
9533 allow_undefined_flag=unsupported
9534 always_export_symbols=yes
9535 file_list_spec='@'
9536 # Tell ltmain to make .lib files, not .a files.
9537 libext=lib
9538 # Tell ltmain to make .dll files, not .so files.
9539 shrext_cmds=.dll
9540 # FIXME: Setting linknames here is a bad hack.
9541 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9542 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9543 cp "$export_symbols" "$output_objdir/$soname.def";
9544 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9545 else
9546 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9547 fi~
9548 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9549 linknames='
9550 # The linker will not automatically build a static lib if we build a DLL.
9551 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9552 enable_shared_with_static_runtimes=yes
9553 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9555 # Don't use ranlib
9556 old_postinstall_cmds='chmod 644 $oldlib'
9557 postlink_cmds='lt_outputfile="@OUTPUT@"~
9558 lt_tool_outputfile="@TOOL_OUTPUT@"~
9559 case $lt_outputfile in
9560 *.exe|*.EXE) ;;
9561 *)
9562 lt_outputfile=$lt_outputfile.exe
9563 lt_tool_outputfile=$lt_tool_outputfile.exe
9564 ;;
9565 esac~
9566 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9567 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9568 $RM "$lt_outputfile.manifest";
9569 fi'
9570 ;;
9571 *)
9572 # Assume MSVC wrapper
9573 hardcode_libdir_flag_spec=' '
9574 allow_undefined_flag=unsupported
9575 # Tell ltmain to make .lib files, not .a files.
9576 libext=lib
9577 # Tell ltmain to make .dll files, not .so files.
9578 shrext_cmds=.dll
9579 # FIXME: Setting linknames here is a bad hack.
9580 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9581 # The linker will automatically build a .lib file if we build a DLL.
9582 old_archive_from_new_cmds='true'
9583 # FIXME: Should let the user specify the lib program.
9584 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9585 enable_shared_with_static_runtimes=yes
9586 ;;
9587 esac
9588 ;;
9589
9590 darwin* | rhapsody*)
9591
9592
9593 archive_cmds_need_lc=no
9594 hardcode_direct=no
9595 hardcode_automatic=yes
9596 hardcode_shlibpath_var=unsupported
9597 if test yes = "$lt_cv_ld_force_load"; then
9598 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\"`'
9599
9600 else
9601 whole_archive_flag_spec=''
9602 fi
9603 link_all_deplibs=yes
9604 allow_undefined_flag=$_lt_dar_allow_undefined
9605 case $cc_basename in
9606 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9607 *) _lt_dar_can_shared=$GCC ;;
9608 esac
9609 if test yes = "$_lt_dar_can_shared"; then
9610 output_verbose_link_cmd=func_echo_all
9611 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9612 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9613 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"
9614 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"
9615
9616 else
9617 ld_shlibs=no
9618 fi
9619
9620 ;;
9621
9622 dgux*)
9623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_libdir_flag_spec='-L$libdir'
9625 hardcode_shlibpath_var=no
9626 ;;
9627
9628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9629 # support. Future versions do this automatically, but an explicit c++rt0.o
9630 # does not break anything, and helps significantly (at the cost of a little
9631 # extra space).
9632 freebsd2.2*)
9633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9634 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_direct=yes
9636 hardcode_shlibpath_var=no
9637 ;;
9638
9639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9640 freebsd2.*)
9641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_direct=yes
9643 hardcode_minus_L=yes
9644 hardcode_shlibpath_var=no
9645 ;;
9646
9647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9648 freebsd* | dragonfly*)
9649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9650 hardcode_libdir_flag_spec='-R$libdir'
9651 hardcode_direct=yes
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 hpux9*)
9656 if test yes = "$GCC"; then
9657 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'
9658 else
9659 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'
9660 fi
9661 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9662 hardcode_libdir_separator=:
9663 hardcode_direct=yes
9664
9665 # hardcode_minus_L: Not really in the search PATH,
9666 # but as the default location of the library.
9667 hardcode_minus_L=yes
9668 export_dynamic_flag_spec='$wl-E'
9669 ;;
9670
9671 hpux10*)
9672 if test yes,no = "$GCC,$with_gnu_ld"; then
9673 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9674 else
9675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9676 fi
9677 if test no = "$with_gnu_ld"; then
9678 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9679 hardcode_libdir_separator=:
9680 hardcode_direct=yes
9681 hardcode_direct_absolute=yes
9682 export_dynamic_flag_spec='$wl-E'
9683 # hardcode_minus_L: Not really in the search PATH,
9684 # but as the default location of the library.
9685 hardcode_minus_L=yes
9686 fi
9687 ;;
9688
9689 hpux11*)
9690 if test yes,no = "$GCC,$with_gnu_ld"; then
9691 case $host_cpu in
9692 hppa*64*)
9693 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 ;;
9695 ia64*)
9696 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9697 ;;
9698 *)
9699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9700 ;;
9701 esac
9702 else
9703 case $host_cpu in
9704 hppa*64*)
9705 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 ;;
9707 ia64*)
9708 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9709 ;;
9710 *)
9711
9712 # Older versions of the 11.00 compiler do not understand -b yet
9713 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9715 $as_echo_n "checking if $CC understands -b... " >&6; }
9716 if ${lt_cv_prog_compiler__b+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 lt_cv_prog_compiler__b=no
9720 save_LDFLAGS=$LDFLAGS
9721 LDFLAGS="$LDFLAGS -b"
9722 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9724 # The linker can only warn and ignore the option if not recognized
9725 # So say no if there are warnings
9726 if test -s conftest.err; then
9727 # Append any errors to the config.log.
9728 cat conftest.err 1>&5
9729 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9731 if diff conftest.exp conftest.er2 >/dev/null; then
9732 lt_cv_prog_compiler__b=yes
9733 fi
9734 else
9735 lt_cv_prog_compiler__b=yes
9736 fi
9737 fi
9738 $RM -r conftest*
9739 LDFLAGS=$save_LDFLAGS
9740
9741 fi
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9743 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9744
9745 if test yes = "$lt_cv_prog_compiler__b"; then
9746 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9747 else
9748 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9749 fi
9750
9751 ;;
9752 esac
9753 fi
9754 if test no = "$with_gnu_ld"; then
9755 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9756 hardcode_libdir_separator=:
9757
9758 case $host_cpu in
9759 hppa*64*|ia64*)
9760 hardcode_direct=no
9761 hardcode_shlibpath_var=no
9762 ;;
9763 *)
9764 hardcode_direct=yes
9765 hardcode_direct_absolute=yes
9766 export_dynamic_flag_spec='$wl-E'
9767
9768 # hardcode_minus_L: Not really in the search PATH,
9769 # but as the default location of the library.
9770 hardcode_minus_L=yes
9771 ;;
9772 esac
9773 fi
9774 ;;
9775
9776 irix5* | irix6* | nonstopux*)
9777 if test yes = "$GCC"; then
9778 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'
9779 # Try to use the -exported_symbol ld option, if it does not
9780 # work, assume that -exports_file does not work either and
9781 # implicitly export all symbols.
9782 # This should be the same for all languages, so no per-tag cache variable.
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9784 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9785 if ${lt_cv_irix_exported_symbol+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 save_LDFLAGS=$LDFLAGS
9789 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 int foo (void) { return 0; }
9793 _ACEOF
9794 if ac_fn_c_try_link "$LINENO"; then :
9795 lt_cv_irix_exported_symbol=yes
9796 else
9797 lt_cv_irix_exported_symbol=no
9798 fi
9799 rm -f core conftest.err conftest.$ac_objext \
9800 conftest$ac_exeext conftest.$ac_ext
9801 LDFLAGS=$save_LDFLAGS
9802 fi
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9804 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9805 if test yes = "$lt_cv_irix_exported_symbol"; then
9806 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'
9807 fi
9808 else
9809 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'
9810 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'
9811 fi
9812 archive_cmds_need_lc='no'
9813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9814 hardcode_libdir_separator=:
9815 inherit_rpath=yes
9816 link_all_deplibs=yes
9817 ;;
9818
9819 linux*)
9820 case $cc_basename in
9821 tcc*)
9822 # Fabrice Bellard et al's Tiny C Compiler
9823 ld_shlibs=yes
9824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9825 ;;
9826 esac
9827 ;;
9828
9829 netbsd*)
9830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9832 else
9833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9834 fi
9835 hardcode_libdir_flag_spec='-R$libdir'
9836 hardcode_direct=yes
9837 hardcode_shlibpath_var=no
9838 ;;
9839
9840 newsos6)
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_direct=yes
9843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9844 hardcode_libdir_separator=:
9845 hardcode_shlibpath_var=no
9846 ;;
9847
9848 *nto* | *qnx*)
9849 ;;
9850
9851 openbsd* | bitrig*)
9852 if test -f /usr/libexec/ld.so; then
9853 hardcode_direct=yes
9854 hardcode_shlibpath_var=no
9855 hardcode_direct_absolute=yes
9856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9857 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9858 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9859 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9860 export_dynamic_flag_spec='$wl-E'
9861 else
9862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9863 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9864 fi
9865 else
9866 ld_shlibs=no
9867 fi
9868 ;;
9869
9870 os2*)
9871 hardcode_libdir_flag_spec='-L$libdir'
9872 hardcode_minus_L=yes
9873 allow_undefined_flag=unsupported
9874 shrext_cmds=.dll
9875 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9876 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9877 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9878 $ECHO EXPORTS >> $output_objdir/$libname.def~
9879 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9880 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9881 emximp -o $lib $output_objdir/$libname.def'
9882 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9883 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9884 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9885 $ECHO EXPORTS >> $output_objdir/$libname.def~
9886 prefix_cmds="$SED"~
9887 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9888 prefix_cmds="$prefix_cmds -e 1d";
9889 fi~
9890 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9891 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9892 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9893 emximp -o $lib $output_objdir/$libname.def'
9894 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9895 enable_shared_with_static_runtimes=yes
9896 ;;
9897
9898 osf3*)
9899 if test yes = "$GCC"; then
9900 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9901 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'
9902 else
9903 allow_undefined_flag=' -expect_unresolved \*'
9904 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'
9905 fi
9906 archive_cmds_need_lc='no'
9907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9908 hardcode_libdir_separator=:
9909 ;;
9910
9911 osf4* | osf5*) # as osf3* with the addition of -msym flag
9912 if test yes = "$GCC"; then
9913 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9914 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'
9915 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9916 else
9917 allow_undefined_flag=' -expect_unresolved \*'
9918 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'
9919 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~
9920 $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'
9921
9922 # Both c and cxx compiler support -rpath directly
9923 hardcode_libdir_flag_spec='-rpath $libdir'
9924 fi
9925 archive_cmds_need_lc='no'
9926 hardcode_libdir_separator=:
9927 ;;
9928
9929 solaris*)
9930 no_undefined_flag=' -z defs'
9931 if test yes = "$GCC"; then
9932 wlarc='$wl'
9933 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935 $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'
9936 else
9937 case `$CC -V 2>&1` in
9938 *"Compilers 5.0"*)
9939 wlarc=''
9940 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9943 ;;
9944 *)
9945 wlarc='$wl'
9946 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9948 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9949 ;;
9950 esac
9951 fi
9952 hardcode_libdir_flag_spec='-R$libdir'
9953 hardcode_shlibpath_var=no
9954 case $host_os in
9955 solaris2.[0-5] | solaris2.[0-5].*) ;;
9956 *)
9957 # The compiler driver will combine and reorder linker options,
9958 # but understands '-z linker_flag'. GCC discards it without '$wl',
9959 # but is careful enough not to reorder.
9960 # Supported since Solaris 2.6 (maybe 2.5.1?)
9961 if test yes = "$GCC"; then
9962 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9963 else
9964 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9965 fi
9966 ;;
9967 esac
9968 link_all_deplibs=yes
9969 ;;
9970
9971 sunos4*)
9972 if test sequent = "$host_vendor"; then
9973 # Use $CC to link under sequent, because it throws in some extra .o
9974 # files that make .init and .fini sections work.
9975 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9976 else
9977 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9978 fi
9979 hardcode_libdir_flag_spec='-L$libdir'
9980 hardcode_direct=yes
9981 hardcode_minus_L=yes
9982 hardcode_shlibpath_var=no
9983 ;;
9984
9985 sysv4)
9986 case $host_vendor in
9987 sni)
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_direct=yes # is this really true???
9990 ;;
9991 siemens)
9992 ## LD is ld it makes a PLAMLIB
9993 ## CC just makes a GrossModule.
9994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9995 reload_cmds='$CC -r -o $output$reload_objs'
9996 hardcode_direct=no
9997 ;;
9998 motorola)
9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10001 ;;
10002 esac
10003 runpath_var='LD_RUN_PATH'
10004 hardcode_shlibpath_var=no
10005 ;;
10006
10007 sysv4.3*)
10008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009 hardcode_shlibpath_var=no
10010 export_dynamic_flag_spec='-Bexport'
10011 ;;
10012
10013 sysv4*MP*)
10014 if test -d /usr/nec; then
10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_shlibpath_var=no
10017 runpath_var=LD_RUN_PATH
10018 hardcode_runpath_var=yes
10019 ld_shlibs=yes
10020 fi
10021 ;;
10022
10023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10024 no_undefined_flag='$wl-z,text'
10025 archive_cmds_need_lc=no
10026 hardcode_shlibpath_var=no
10027 runpath_var='LD_RUN_PATH'
10028
10029 if test yes = "$GCC"; then
10030 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 else
10033 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 fi
10036 ;;
10037
10038 sysv5* | sco3.2v5* | sco5v6*)
10039 # Note: We CANNOT use -z defs as we might desire, because we do not
10040 # link with -lc, and that would cause any symbols used from libc to
10041 # always be unresolved, which means just about no library would
10042 # ever link correctly. If we're not using GNU ld we use -z text
10043 # though, which does catch some bad symbols but isn't as heavy-handed
10044 # as -z defs.
10045 no_undefined_flag='$wl-z,text'
10046 allow_undefined_flag='$wl-z,nodefs'
10047 archive_cmds_need_lc=no
10048 hardcode_shlibpath_var=no
10049 hardcode_libdir_flag_spec='$wl-R,$libdir'
10050 hardcode_libdir_separator=':'
10051 link_all_deplibs=yes
10052 export_dynamic_flag_spec='$wl-Bexport'
10053 runpath_var='LD_RUN_PATH'
10054
10055 if test yes = "$GCC"; then
10056 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 else
10059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 fi
10062 ;;
10063
10064 uts4*)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_libdir_flag_spec='-L$libdir'
10067 hardcode_shlibpath_var=no
10068 ;;
10069
10070 *)
10071 ld_shlibs=no
10072 ;;
10073 esac
10074
10075 if test sni = "$host_vendor"; then
10076 case $host in
10077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10078 export_dynamic_flag_spec='$wl-Blargedynsym'
10079 ;;
10080 esac
10081 fi
10082 fi
10083
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10085 $as_echo "$ld_shlibs" >&6; }
10086 test no = "$ld_shlibs" && can_build_shared=no
10087
10088 with_gnu_ld=$with_gnu_ld
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104 #
10105 # Do we need to explicitly link libc?
10106 #
10107 case "x$archive_cmds_need_lc" in
10108 x|xyes)
10109 # Assume -lc should be added
10110 archive_cmds_need_lc=yes
10111
10112 if test yes,yes = "$GCC,$enable_shared"; then
10113 case $archive_cmds in
10114 *'~'*)
10115 # FIXME: we may have to deal with multi-command sequences.
10116 ;;
10117 '$CC '*)
10118 # Test whether the compiler implicitly links with -lc since on some
10119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10120 # to ld, don't add -lc before -lgcc.
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10122 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10123 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 $RM conftest*
10127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10128
10129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10130 (eval $ac_compile) 2>&5
10131 ac_status=$?
10132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133 test $ac_status = 0; } 2>conftest.err; then
10134 soname=conftest
10135 lib=conftest
10136 libobjs=conftest.$ac_objext
10137 deplibs=
10138 wl=$lt_prog_compiler_wl
10139 pic_flag=$lt_prog_compiler_pic
10140 compiler_flags=-v
10141 linker_flags=-v
10142 verstring=
10143 output_objdir=.
10144 libname=conftest
10145 lt_save_allow_undefined_flag=$allow_undefined_flag
10146 allow_undefined_flag=
10147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10148 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10149 ac_status=$?
10150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10151 test $ac_status = 0; }
10152 then
10153 lt_cv_archive_cmds_need_lc=no
10154 else
10155 lt_cv_archive_cmds_need_lc=yes
10156 fi
10157 allow_undefined_flag=$lt_save_allow_undefined_flag
10158 else
10159 cat conftest.err 1>&5
10160 fi
10161 $RM conftest*
10162
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10165 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10166 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10167 ;;
10168 esac
10169 fi
10170 ;;
10171 esac
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10326
10327 if test yes = "$GCC"; then
10328 case $host_os in
10329 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10330 *) lt_awk_arg='/^libraries:/' ;;
10331 esac
10332 case $host_os in
10333 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10334 *) lt_sed_strip_eq='s|=/|/|g' ;;
10335 esac
10336 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10337 case $lt_search_path_spec in
10338 *\;*)
10339 # if the path contains ";" then we assume it to be the separator
10340 # otherwise default to the standard path separator (i.e. ":") - it is
10341 # assumed that no part of a normal pathname contains ";" but that should
10342 # okay in the real world where ";" in dirpaths is itself problematic.
10343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10344 ;;
10345 *)
10346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10347 ;;
10348 esac
10349 # Ok, now we have the path, separated by spaces, we can step through it
10350 # and add multilib dir if necessary...
10351 lt_tmp_lt_search_path_spec=
10352 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10353 # ...but if some path component already ends with the multilib dir we assume
10354 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10355 case "$lt_multi_os_dir; $lt_search_path_spec " in
10356 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10357 lt_multi_os_dir=
10358 ;;
10359 esac
10360 for lt_sys_path in $lt_search_path_spec; do
10361 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10363 elif test -n "$lt_multi_os_dir"; then
10364 test -d "$lt_sys_path" && \
10365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10366 fi
10367 done
10368 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10369 BEGIN {RS = " "; FS = "/|\n";} {
10370 lt_foo = "";
10371 lt_count = 0;
10372 for (lt_i = NF; lt_i > 0; lt_i--) {
10373 if ($lt_i != "" && $lt_i != ".") {
10374 if ($lt_i == "..") {
10375 lt_count++;
10376 } else {
10377 if (lt_count == 0) {
10378 lt_foo = "/" $lt_i lt_foo;
10379 } else {
10380 lt_count--;
10381 }
10382 }
10383 }
10384 }
10385 if (lt_foo != "") { lt_freq[lt_foo]++; }
10386 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10387 }'`
10388 # AWK program above erroneously prepends '/' to C:/dos/paths
10389 # for these hosts.
10390 case $host_os in
10391 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10392 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10393 esac
10394 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10395 else
10396 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10397 fi
10398 library_names_spec=
10399 libname_spec='lib$name'
10400 soname_spec=
10401 shrext_cmds=.so
10402 postinstall_cmds=
10403 postuninstall_cmds=
10404 finish_cmds=
10405 finish_eval=
10406 shlibpath_var=
10407 shlibpath_overrides_runpath=unknown
10408 version_type=none
10409 dynamic_linker="$host_os ld.so"
10410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10411 need_lib_prefix=unknown
10412 hardcode_into_libs=no
10413
10414 # when you set need_version to no, make sure it does not cause -set_version
10415 # flags to be left without arguments
10416 need_version=unknown
10417
10418
10419
10420 case $host_os in
10421 aix3*)
10422 version_type=linux # correct to gnu/linux during the next big refactor
10423 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10424 shlibpath_var=LIBPATH
10425
10426 # AIX 3 has no versioning support, so we append a major version to the name.
10427 soname_spec='$libname$release$shared_ext$major'
10428 ;;
10429
10430 aix[4-9]*)
10431 version_type=linux # correct to gnu/linux during the next big refactor
10432 need_lib_prefix=no
10433 need_version=no
10434 hardcode_into_libs=yes
10435 if test ia64 = "$host_cpu"; then
10436 # AIX 5 supports IA64
10437 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 else
10440 # With GCC up to 2.95.x, collect2 would create an import file
10441 # for dependence libraries. The import file would start with
10442 # the line '#! .'. This would cause the generated library to
10443 # depend on '.', always an invalid library. This was fixed in
10444 # development snapshots of GCC prior to 3.0.
10445 case $host_os in
10446 aix4 | aix4.[01] | aix4.[01].*)
10447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10448 echo ' yes '
10449 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10450 :
10451 else
10452 can_build_shared=no
10453 fi
10454 ;;
10455 esac
10456 # Using Import Files as archive members, it is possible to support
10457 # filename-based versioning of shared library archives on AIX. While
10458 # this would work for both with and without runtime linking, it will
10459 # prevent static linking of such archives. So we do filename-based
10460 # shared library versioning with .so extension only, which is used
10461 # when both runtime linking and shared linking is enabled.
10462 # Unfortunately, runtime linking may impact performance, so we do
10463 # not want this to be the default eventually. Also, we use the
10464 # versioned .so libs for executables only if there is the -brtl
10465 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10466 # To allow for filename-based versioning support, we need to create
10467 # libNAME.so.V as an archive file, containing:
10468 # *) an Import File, referring to the versioned filename of the
10469 # archive as well as the shared archive member, telling the
10470 # bitwidth (32 or 64) of that shared object, and providing the
10471 # list of exported symbols of that shared object, eventually
10472 # decorated with the 'weak' keyword
10473 # *) the shared object with the F_LOADONLY flag set, to really avoid
10474 # it being seen by the linker.
10475 # At run time we better use the real file rather than another symlink,
10476 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10477
10478 case $with_aix_soname,$aix_use_runtimelinking in
10479 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10480 # soname into executable. Probably we can add versioning support to
10481 # collect2, so additional links can be useful in future.
10482 aix,yes) # traditional libtool
10483 dynamic_linker='AIX unversionable lib.so'
10484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10485 # instead of lib<name>.a to let people know that these are not
10486 # typical AIX shared libraries.
10487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10488 ;;
10489 aix,no) # traditional AIX only
10490 dynamic_linker='AIX lib.a(lib.so.V)'
10491 # We preserve .a as extension for shared libraries through AIX4.2
10492 # and later when we are not doing run time linking.
10493 library_names_spec='$libname$release.a $libname.a'
10494 soname_spec='$libname$release$shared_ext$major'
10495 ;;
10496 svr4,*) # full svr4 only
10497 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10498 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10499 # We do not specify a path in Import Files, so LIBPATH fires.
10500 shlibpath_overrides_runpath=yes
10501 ;;
10502 *,yes) # both, prefer svr4
10503 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10504 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10505 # unpreferred sharedlib libNAME.a needs extra handling
10506 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"'
10507 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"'
10508 # We do not specify a path in Import Files, so LIBPATH fires.
10509 shlibpath_overrides_runpath=yes
10510 ;;
10511 *,no) # both, prefer aix
10512 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10513 library_names_spec='$libname$release.a $libname.a'
10514 soname_spec='$libname$release$shared_ext$major'
10515 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10516 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)'
10517 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"'
10518 ;;
10519 esac
10520 shlibpath_var=LIBPATH
10521 fi
10522 ;;
10523
10524 amigaos*)
10525 case $host_cpu in
10526 powerpc)
10527 # Since July 2007 AmigaOS4 officially supports .so libraries.
10528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10530 ;;
10531 m68k)
10532 library_names_spec='$libname.ixlibrary $libname.a'
10533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10534 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'
10535 ;;
10536 esac
10537 ;;
10538
10539 beos*)
10540 library_names_spec='$libname$shared_ext'
10541 dynamic_linker="$host_os ld.so"
10542 shlibpath_var=LIBRARY_PATH
10543 ;;
10544
10545 bsdi[45]*)
10546 version_type=linux # correct to gnu/linux during the next big refactor
10547 need_version=no
10548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10549 soname_spec='$libname$release$shared_ext$major'
10550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10554 # the default ld.so.conf also contains /usr/contrib/lib and
10555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10556 # libtool to hard-code these into programs
10557 ;;
10558
10559 cygwin* | mingw* | pw32* | cegcc*)
10560 version_type=windows
10561 shrext_cmds=.dll
10562 need_version=no
10563 need_lib_prefix=no
10564
10565 case $GCC,$cc_basename in
10566 yes,*)
10567 # gcc
10568 library_names_spec='$libname.dll.a'
10569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10570 postinstall_cmds='base_file=`basename \$file`~
10571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10572 dldir=$destdir/`dirname \$dlpath`~
10573 test -d \$dldir || mkdir -p \$dldir~
10574 $install_prog $dir/$dlname \$dldir/$dlname~
10575 chmod a+x \$dldir/$dlname~
10576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10578 fi'
10579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10580 dlpath=$dir/\$dldll~
10581 $RM \$dlpath'
10582 shlibpath_overrides_runpath=yes
10583
10584 case $host_os in
10585 cygwin*)
10586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10587 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10588
10589 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10590 ;;
10591 mingw* | cegcc*)
10592 # MinGW DLLs use traditional 'lib' prefix
10593 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10594 ;;
10595 pw32*)
10596 # pw32 DLLs use 'pw' prefix rather than 'lib'
10597 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10598 ;;
10599 esac
10600 dynamic_linker='Win32 ld.exe'
10601 ;;
10602
10603 *,cl*)
10604 # Native MSVC
10605 libname_spec='$name'
10606 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10607 library_names_spec='$libname.dll.lib'
10608
10609 case $build_os in
10610 mingw*)
10611 sys_lib_search_path_spec=
10612 lt_save_ifs=$IFS
10613 IFS=';'
10614 for lt_path in $LIB
10615 do
10616 IFS=$lt_save_ifs
10617 # Let DOS variable expansion print the short 8.3 style file name.
10618 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10619 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10620 done
10621 IFS=$lt_save_ifs
10622 # Convert to MSYS style.
10623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10624 ;;
10625 cygwin*)
10626 # Convert to unix form, then to dos form, then back to unix form
10627 # but this time dos style (no spaces!) so that the unix form looks
10628 # like /cygdrive/c/PROGRA~1:/cygdr...
10629 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10630 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10631 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10632 ;;
10633 *)
10634 sys_lib_search_path_spec=$LIB
10635 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10636 # It is most probably a Windows format PATH.
10637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10638 else
10639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10640 fi
10641 # FIXME: find the short name or the path components, as spaces are
10642 # common. (e.g. "Program Files" -> "PROGRA~1")
10643 ;;
10644 esac
10645
10646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10647 postinstall_cmds='base_file=`basename \$file`~
10648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10649 dldir=$destdir/`dirname \$dlpath`~
10650 test -d \$dldir || mkdir -p \$dldir~
10651 $install_prog $dir/$dlname \$dldir/$dlname'
10652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10653 dlpath=$dir/\$dldll~
10654 $RM \$dlpath'
10655 shlibpath_overrides_runpath=yes
10656 dynamic_linker='Win32 link.exe'
10657 ;;
10658
10659 *)
10660 # Assume MSVC wrapper
10661 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10662 dynamic_linker='Win32 ld.exe'
10663 ;;
10664 esac
10665 # FIXME: first we should search . and the directory the executable is in
10666 shlibpath_var=PATH
10667 ;;
10668
10669 darwin* | rhapsody*)
10670 dynamic_linker="$host_os dyld"
10671 version_type=darwin
10672 need_lib_prefix=no
10673 need_version=no
10674 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10675 soname_spec='$libname$release$major$shared_ext'
10676 shlibpath_overrides_runpath=yes
10677 shlibpath_var=DYLD_LIBRARY_PATH
10678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10679
10680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10682 ;;
10683
10684 dgux*)
10685 version_type=linux # correct to gnu/linux during the next big refactor
10686 need_lib_prefix=no
10687 need_version=no
10688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10689 soname_spec='$libname$release$shared_ext$major'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 ;;
10692
10693 freebsd* | dragonfly*)
10694 # DragonFly does not have aout. When/if they implement a new
10695 # versioning mechanism, adjust this.
10696 if test -x /usr/bin/objformat; then
10697 objformat=`/usr/bin/objformat`
10698 else
10699 case $host_os in
10700 freebsd[23].*) objformat=aout ;;
10701 *) objformat=elf ;;
10702 esac
10703 fi
10704 version_type=freebsd-$objformat
10705 case $version_type in
10706 freebsd-elf*)
10707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10708 soname_spec='$libname$release$shared_ext$major'
10709 need_version=no
10710 need_lib_prefix=no
10711 ;;
10712 freebsd-*)
10713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10714 need_version=yes
10715 ;;
10716 esac
10717 shlibpath_var=LD_LIBRARY_PATH
10718 case $host_os in
10719 freebsd2.*)
10720 shlibpath_overrides_runpath=yes
10721 ;;
10722 freebsd3.[01]* | freebsdelf3.[01]*)
10723 shlibpath_overrides_runpath=yes
10724 hardcode_into_libs=yes
10725 ;;
10726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10728 shlibpath_overrides_runpath=no
10729 hardcode_into_libs=yes
10730 ;;
10731 *) # from 4.6 on, and DragonFly
10732 shlibpath_overrides_runpath=yes
10733 hardcode_into_libs=yes
10734 ;;
10735 esac
10736 ;;
10737
10738 haiku*)
10739 version_type=linux # correct to gnu/linux during the next big refactor
10740 need_lib_prefix=no
10741 need_version=no
10742 dynamic_linker="$host_os runtime_loader"
10743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744 soname_spec='$libname$release$shared_ext$major'
10745 shlibpath_var=LIBRARY_PATH
10746 shlibpath_overrides_runpath=no
10747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10748 hardcode_into_libs=yes
10749 ;;
10750
10751 hpux9* | hpux10* | hpux11*)
10752 # Give a soname corresponding to the major version so that dld.sl refuses to
10753 # link against other versions.
10754 version_type=sunos
10755 need_lib_prefix=no
10756 need_version=no
10757 case $host_cpu in
10758 ia64*)
10759 shrext_cmds='.so'
10760 hardcode_into_libs=yes
10761 dynamic_linker="$host_os dld.so"
10762 shlibpath_var=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10765 soname_spec='$libname$release$shared_ext$major'
10766 if test 32 = "$HPUX_IA64_MODE"; then
10767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10768 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10769 else
10770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10771 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10772 fi
10773 ;;
10774 hppa*64*)
10775 shrext_cmds='.sl'
10776 hardcode_into_libs=yes
10777 dynamic_linker="$host_os dld.sl"
10778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10781 soname_spec='$libname$release$shared_ext$major'
10782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10784 ;;
10785 *)
10786 shrext_cmds='.sl'
10787 dynamic_linker="$host_os dld.sl"
10788 shlibpath_var=SHLIB_PATH
10789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10791 soname_spec='$libname$release$shared_ext$major'
10792 ;;
10793 esac
10794 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10795 postinstall_cmds='chmod 555 $lib'
10796 # or fails outright, so override atomically:
10797 install_override_mode=555
10798 ;;
10799
10800 interix[3-9]*)
10801 version_type=linux # correct to gnu/linux during the next big refactor
10802 need_lib_prefix=no
10803 need_version=no
10804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10805 soname_spec='$libname$release$shared_ext$major'
10806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 shlibpath_overrides_runpath=no
10809 hardcode_into_libs=yes
10810 ;;
10811
10812 irix5* | irix6* | nonstopux*)
10813 case $host_os in
10814 nonstopux*) version_type=nonstopux ;;
10815 *)
10816 if test yes = "$lt_cv_prog_gnu_ld"; then
10817 version_type=linux # correct to gnu/linux during the next big refactor
10818 else
10819 version_type=irix
10820 fi ;;
10821 esac
10822 need_lib_prefix=no
10823 need_version=no
10824 soname_spec='$libname$release$shared_ext$major'
10825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10826 case $host_os in
10827 irix5* | nonstopux*)
10828 libsuff= shlibsuff=
10829 ;;
10830 *)
10831 case $LD in # libtool.m4 will add one of these switches to LD
10832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10833 libsuff= shlibsuff= libmagic=32-bit;;
10834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10835 libsuff=32 shlibsuff=N32 libmagic=N32;;
10836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10838 *) libsuff= shlibsuff= libmagic=never-match;;
10839 esac
10840 ;;
10841 esac
10842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10843 shlibpath_overrides_runpath=no
10844 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10845 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10846 hardcode_into_libs=yes
10847 ;;
10848
10849 # No shared lib support for Linux oldld, aout, or coff.
10850 linux*oldld* | linux*aout* | linux*coff*)
10851 dynamic_linker=no
10852 ;;
10853
10854 linux*android*)
10855 version_type=none # Android doesn't support versioned libraries.
10856 need_lib_prefix=no
10857 need_version=no
10858 library_names_spec='$libname$release$shared_ext'
10859 soname_spec='$libname$release$shared_ext'
10860 finish_cmds=
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=yes
10863
10864 # This implies no fast_install, which is unacceptable.
10865 # Some rework will be needed to allow for fast_install
10866 # before this can be enabled.
10867 hardcode_into_libs=yes
10868
10869 dynamic_linker='Android linker'
10870 # Don't embed -rpath directories since the linker doesn't support them.
10871 hardcode_libdir_flag_spec='-L$libdir'
10872 ;;
10873
10874 # This must be glibc/ELF.
10875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10876 version_type=linux # correct to gnu/linux during the next big refactor
10877 need_lib_prefix=no
10878 need_version=no
10879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10880 soname_spec='$libname$release$shared_ext$major'
10881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=no
10884
10885 # Some binutils ld are patched to set DT_RUNPATH
10886 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 lt_cv_shlibpath_overrides_runpath=no
10890 save_LDFLAGS=$LDFLAGS
10891 save_libdir=$libdir
10892 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10893 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896
10897 int
10898 main ()
10899 {
10900
10901 ;
10902 return 0;
10903 }
10904 _ACEOF
10905 if ac_fn_c_try_link "$LINENO"; then :
10906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10907 lt_cv_shlibpath_overrides_runpath=yes
10908 fi
10909 fi
10910 rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10912 LDFLAGS=$save_LDFLAGS
10913 libdir=$save_libdir
10914
10915 fi
10916
10917 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10918
10919 # This implies no fast_install, which is unacceptable.
10920 # Some rework will be needed to allow for fast_install
10921 # before this can be enabled.
10922 hardcode_into_libs=yes
10923
10924 # Ideally, we could use ldconfig to report *all* directores which are
10925 # searched for libraries, however this is still not possible. Aside from not
10926 # being certain /sbin/ldconfig is available, command
10927 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10928 # even though it is searched at run-time. Try to do the best guess by
10929 # appending ld.so.conf contents (and includes) to the search path.
10930 if test -f /etc/ld.so.conf; then
10931 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' ' '`
10932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10933 fi
10934
10935 # We used to test for /lib/ld.so.1 and disable shared libraries on
10936 # powerpc, because MkLinux only supported shared libraries with the
10937 # GNU dynamic linker. Since this was broken with cross compilers,
10938 # most powerpc-linux boxes support dynamic linking these days and
10939 # people can always --disable-shared, the test was removed, and we
10940 # assume the GNU/Linux dynamic linker is in use.
10941 dynamic_linker='GNU/Linux ld.so'
10942 ;;
10943
10944 netbsd*)
10945 version_type=sunos
10946 need_lib_prefix=no
10947 need_version=no
10948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10949 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10951 dynamic_linker='NetBSD (a.out) ld.so'
10952 else
10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10954 soname_spec='$libname$release$shared_ext$major'
10955 dynamic_linker='NetBSD ld.elf_so'
10956 fi
10957 shlibpath_var=LD_LIBRARY_PATH
10958 shlibpath_overrides_runpath=yes
10959 hardcode_into_libs=yes
10960 ;;
10961
10962 newsos6)
10963 version_type=linux # correct to gnu/linux during the next big refactor
10964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=yes
10967 ;;
10968
10969 *nto* | *qnx*)
10970 version_type=qnx
10971 need_lib_prefix=no
10972 need_version=no
10973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10974 soname_spec='$libname$release$shared_ext$major'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath=no
10977 hardcode_into_libs=yes
10978 dynamic_linker='ldqnx.so'
10979 ;;
10980
10981 openbsd* | bitrig*)
10982 version_type=sunos
10983 sys_lib_dlsearch_path_spec=/usr/lib
10984 need_lib_prefix=no
10985 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10986 need_version=no
10987 else
10988 need_version=yes
10989 fi
10990 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=yes
10994 ;;
10995
10996 os2*)
10997 libname_spec='$name'
10998 version_type=windows
10999 shrext_cmds=.dll
11000 need_version=no
11001 need_lib_prefix=no
11002 # OS/2 can only load a DLL with a base name of 8 characters or less.
11003 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11004 v=$($ECHO $release$versuffix | tr -d .-);
11005 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11006 $ECHO $n$v`$shared_ext'
11007 library_names_spec='${libname}_dll.$libext'
11008 dynamic_linker='OS/2 ld.exe'
11009 shlibpath_var=BEGINLIBPATH
11010 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11012 postinstall_cmds='base_file=`basename \$file`~
11013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11014 dldir=$destdir/`dirname \$dlpath`~
11015 test -d \$dldir || mkdir -p \$dldir~
11016 $install_prog $dir/$dlname \$dldir/$dlname~
11017 chmod a+x \$dldir/$dlname~
11018 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11019 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11020 fi'
11021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11022 dlpath=$dir/\$dldll~
11023 $RM \$dlpath'
11024 ;;
11025
11026 osf3* | osf4* | osf5*)
11027 version_type=osf
11028 need_lib_prefix=no
11029 need_version=no
11030 soname_spec='$libname$release$shared_ext$major'
11031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11035 ;;
11036
11037 rdos*)
11038 dynamic_linker=no
11039 ;;
11040
11041 solaris*)
11042 version_type=linux # correct to gnu/linux during the next big refactor
11043 need_lib_prefix=no
11044 need_version=no
11045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11046 soname_spec='$libname$release$shared_ext$major'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=yes
11049 hardcode_into_libs=yes
11050 # ldd complains unless libraries are executable
11051 postinstall_cmds='chmod +x $lib'
11052 ;;
11053
11054 sunos4*)
11055 version_type=sunos
11056 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes
11060 if test yes = "$with_gnu_ld"; then
11061 need_lib_prefix=no
11062 fi
11063 need_version=yes
11064 ;;
11065
11066 sysv4 | sysv4.3*)
11067 version_type=linux # correct to gnu/linux during the next big refactor
11068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11069 soname_spec='$libname$release$shared_ext$major'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 case $host_vendor in
11072 sni)
11073 shlibpath_overrides_runpath=no
11074 need_lib_prefix=no
11075 runpath_var=LD_RUN_PATH
11076 ;;
11077 siemens)
11078 need_lib_prefix=no
11079 ;;
11080 motorola)
11081 need_lib_prefix=no
11082 need_version=no
11083 shlibpath_overrides_runpath=no
11084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11085 ;;
11086 esac
11087 ;;
11088
11089 sysv4*MP*)
11090 if test -d /usr/nec; then
11091 version_type=linux # correct to gnu/linux during the next big refactor
11092 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11093 soname_spec='$libname$shared_ext.$major'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 fi
11096 ;;
11097
11098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11099 version_type=sco
11100 need_lib_prefix=no
11101 need_version=no
11102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11103 soname_spec='$libname$release$shared_ext$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=yes
11106 hardcode_into_libs=yes
11107 if test yes = "$with_gnu_ld"; then
11108 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11109 else
11110 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11111 case $host_os in
11112 sco3.2v5*)
11113 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11114 ;;
11115 esac
11116 fi
11117 sys_lib_dlsearch_path_spec='/usr/lib'
11118 ;;
11119
11120 tpf*)
11121 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11122 version_type=linux # correct to gnu/linux during the next big refactor
11123 need_lib_prefix=no
11124 need_version=no
11125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=no
11128 hardcode_into_libs=yes
11129 ;;
11130
11131 uts4*)
11132 version_type=linux # correct to gnu/linux during the next big refactor
11133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11134 soname_spec='$libname$release$shared_ext$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 ;;
11137
11138 *)
11139 dynamic_linker=no
11140 ;;
11141 esac
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11143 $as_echo "$dynamic_linker" >&6; }
11144 test no = "$dynamic_linker" && can_build_shared=no
11145
11146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11147 if test yes = "$GCC"; then
11148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11149 fi
11150
11151 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11152 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11153 fi
11154
11155 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11156 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11157 fi
11158
11159 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11160 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11161
11162 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11163 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11164
11165 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11166 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11265 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11266 hardcode_action=
11267 if test -n "$hardcode_libdir_flag_spec" ||
11268 test -n "$runpath_var" ||
11269 test yes = "$hardcode_automatic"; then
11270
11271 # We can hardcode non-existent directories.
11272 if test no != "$hardcode_direct" &&
11273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11274 # have to relink, otherwise we might link with an installed library
11275 # when we should be linking with a yet-to-be-installed one
11276 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11277 test no != "$hardcode_minus_L"; then
11278 # Linking always hardcodes the temporary library directory.
11279 hardcode_action=relink
11280 else
11281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11282 hardcode_action=immediate
11283 fi
11284 else
11285 # We cannot hardcode anything, or else we can only hardcode existing
11286 # directories.
11287 hardcode_action=unsupported
11288 fi
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11290 $as_echo "$hardcode_action" >&6; }
11291
11292 if test relink = "$hardcode_action" ||
11293 test yes = "$inherit_rpath"; then
11294 # Fast installation is not supported
11295 enable_fast_install=no
11296 elif test yes = "$shlibpath_overrides_runpath" ||
11297 test no = "$enable_shared"; then
11298 # Fast installation is not necessary
11299 enable_fast_install=needless
11300 fi
11301
11302
11303
11304
11305
11306
11307 if test yes != "$enable_dlopen"; then
11308 enable_dlopen=unknown
11309 enable_dlopen_self=unknown
11310 enable_dlopen_self_static=unknown
11311 else
11312 lt_cv_dlopen=no
11313 lt_cv_dlopen_libs=
11314
11315 case $host_os in
11316 beos*)
11317 lt_cv_dlopen=load_add_on
11318 lt_cv_dlopen_libs=
11319 lt_cv_dlopen_self=yes
11320 ;;
11321
11322 mingw* | pw32* | cegcc*)
11323 lt_cv_dlopen=LoadLibrary
11324 lt_cv_dlopen_libs=
11325 ;;
11326
11327 cygwin*)
11328 lt_cv_dlopen=dlopen
11329 lt_cv_dlopen_libs=
11330 ;;
11331
11332 darwin*)
11333 # if libdl is installed we need to link against it
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11335 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11336 if ${ac_cv_lib_dl_dlopen+:} false; then :
11337 $as_echo_n "(cached) " >&6
11338 else
11339 ac_check_lib_save_LIBS=$LIBS
11340 LIBS="-ldl $LIBS"
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343
11344 /* Override any GCC internal prototype to avoid an error.
11345 Use char because int might match the return type of a GCC
11346 builtin and then its argument prototype would still apply. */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 char dlopen ();
11351 int
11352 main ()
11353 {
11354 return dlopen ();
11355 ;
11356 return 0;
11357 }
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360 ac_cv_lib_dl_dlopen=yes
11361 else
11362 ac_cv_lib_dl_dlopen=no
11363 fi
11364 rm -f core conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 LIBS=$ac_check_lib_save_LIBS
11367 fi
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11369 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11370 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11372 else
11373
11374 lt_cv_dlopen=dyld
11375 lt_cv_dlopen_libs=
11376 lt_cv_dlopen_self=yes
11377
11378 fi
11379
11380 ;;
11381
11382 tpf*)
11383 # Don't try to run any link tests for TPF. We know it's impossible
11384 # because TPF is a cross-compiler, and we know how we open DSOs.
11385 lt_cv_dlopen=dlopen
11386 lt_cv_dlopen_libs=
11387 lt_cv_dlopen_self=no
11388 ;;
11389
11390 *)
11391 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11392 if test "x$ac_cv_func_shl_load" = xyes; then :
11393 lt_cv_dlopen=shl_load
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11396 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11397 if ${ac_cv_lib_dld_shl_load+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 ac_check_lib_save_LIBS=$LIBS
11401 LIBS="-ldld $LIBS"
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11404
11405 /* Override any GCC internal prototype to avoid an error.
11406 Use char because int might match the return type of a GCC
11407 builtin and then its argument prototype would still apply. */
11408 #ifdef __cplusplus
11409 extern "C"
11410 #endif
11411 char shl_load ();
11412 int
11413 main ()
11414 {
11415 return shl_load ();
11416 ;
11417 return 0;
11418 }
11419 _ACEOF
11420 if ac_fn_c_try_link "$LINENO"; then :
11421 ac_cv_lib_dld_shl_load=yes
11422 else
11423 ac_cv_lib_dld_shl_load=no
11424 fi
11425 rm -f core conftest.err conftest.$ac_objext \
11426 conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11428 fi
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11430 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11431 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11432 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11433 else
11434 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11435 if test "x$ac_cv_func_dlopen" = xyes; then :
11436 lt_cv_dlopen=dlopen
11437 else
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11439 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11440 if ${ac_cv_lib_dl_dlopen+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 ac_check_lib_save_LIBS=$LIBS
11444 LIBS="-ldl $LIBS"
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447
11448 /* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11451 #ifdef __cplusplus
11452 extern "C"
11453 #endif
11454 char dlopen ();
11455 int
11456 main ()
11457 {
11458 return dlopen ();
11459 ;
11460 return 0;
11461 }
11462 _ACEOF
11463 if ac_fn_c_try_link "$LINENO"; then :
11464 ac_cv_lib_dl_dlopen=yes
11465 else
11466 ac_cv_lib_dl_dlopen=no
11467 fi
11468 rm -f core conftest.err conftest.$ac_objext \
11469 conftest$ac_exeext conftest.$ac_ext
11470 LIBS=$ac_check_lib_save_LIBS
11471 fi
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11473 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11474 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11475 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11476 else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11478 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11479 if ${ac_cv_lib_svld_dlopen+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 ac_check_lib_save_LIBS=$LIBS
11483 LIBS="-lsvld $LIBS"
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11486
11487 /* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11490 #ifdef __cplusplus
11491 extern "C"
11492 #endif
11493 char dlopen ();
11494 int
11495 main ()
11496 {
11497 return dlopen ();
11498 ;
11499 return 0;
11500 }
11501 _ACEOF
11502 if ac_fn_c_try_link "$LINENO"; then :
11503 ac_cv_lib_svld_dlopen=yes
11504 else
11505 ac_cv_lib_svld_dlopen=no
11506 fi
11507 rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11512 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11513 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11514 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11515 else
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11517 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11518 if ${ac_cv_lib_dld_dld_link+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 ac_check_lib_save_LIBS=$LIBS
11522 LIBS="-ldld $LIBS"
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char dld_link ();
11533 int
11534 main ()
11535 {
11536 return dld_link ();
11537 ;
11538 return 0;
11539 }
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542 ac_cv_lib_dld_dld_link=yes
11543 else
11544 ac_cv_lib_dld_dld_link=no
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
11548 LIBS=$ac_check_lib_save_LIBS
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11551 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11552 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11553 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11554 fi
11555
11556
11557 fi
11558
11559
11560 fi
11561
11562
11563 fi
11564
11565
11566 fi
11567
11568
11569 fi
11570
11571 ;;
11572 esac
11573
11574 if test no = "$lt_cv_dlopen"; then
11575 enable_dlopen=no
11576 else
11577 enable_dlopen=yes
11578 fi
11579
11580 case $lt_cv_dlopen in
11581 dlopen)
11582 save_CPPFLAGS=$CPPFLAGS
11583 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11584
11585 save_LDFLAGS=$LDFLAGS
11586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11587
11588 save_LIBS=$LIBS
11589 LIBS="$lt_cv_dlopen_libs $LIBS"
11590
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11592 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11593 if ${lt_cv_dlopen_self+:} false; then :
11594 $as_echo_n "(cached) " >&6
11595 else
11596 if test yes = "$cross_compiling"; then :
11597 lt_cv_dlopen_self=cross
11598 else
11599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11600 lt_status=$lt_dlunknown
11601 cat > conftest.$ac_ext <<_LT_EOF
11602 #line $LINENO "configure"
11603 #include "confdefs.h"
11604
11605 #if HAVE_DLFCN_H
11606 #include <dlfcn.h>
11607 #endif
11608
11609 #include <stdio.h>
11610
11611 #ifdef RTLD_GLOBAL
11612 # define LT_DLGLOBAL RTLD_GLOBAL
11613 #else
11614 # ifdef DL_GLOBAL
11615 # define LT_DLGLOBAL DL_GLOBAL
11616 # else
11617 # define LT_DLGLOBAL 0
11618 # endif
11619 #endif
11620
11621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11622 find out it does not work in some platform. */
11623 #ifndef LT_DLLAZY_OR_NOW
11624 # ifdef RTLD_LAZY
11625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11626 # else
11627 # ifdef DL_LAZY
11628 # define LT_DLLAZY_OR_NOW DL_LAZY
11629 # else
11630 # ifdef RTLD_NOW
11631 # define LT_DLLAZY_OR_NOW RTLD_NOW
11632 # else
11633 # ifdef DL_NOW
11634 # define LT_DLLAZY_OR_NOW DL_NOW
11635 # else
11636 # define LT_DLLAZY_OR_NOW 0
11637 # endif
11638 # endif
11639 # endif
11640 # endif
11641 #endif
11642
11643 /* When -fvisibility=hidden is used, assume the code has been annotated
11644 correspondingly for the symbols needed. */
11645 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11646 int fnord () __attribute__((visibility("default")));
11647 #endif
11648
11649 int fnord () { return 42; }
11650 int main ()
11651 {
11652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11653 int status = $lt_dlunknown;
11654
11655 if (self)
11656 {
11657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11658 else
11659 {
11660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11661 else puts (dlerror ());
11662 }
11663 /* dlclose (self); */
11664 }
11665 else
11666 puts (dlerror ());
11667
11668 return status;
11669 }
11670 _LT_EOF
11671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11672 (eval $ac_link) 2>&5
11673 ac_status=$?
11674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11675 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11676 (./conftest; exit; ) >&5 2>/dev/null
11677 lt_status=$?
11678 case x$lt_status in
11679 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11680 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11681 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11682 esac
11683 else :
11684 # compilation failed
11685 lt_cv_dlopen_self=no
11686 fi
11687 fi
11688 rm -fr conftest*
11689
11690
11691 fi
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11693 $as_echo "$lt_cv_dlopen_self" >&6; }
11694
11695 if test yes = "$lt_cv_dlopen_self"; then
11696 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11698 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11699 if ${lt_cv_dlopen_self_static+:} false; then :
11700 $as_echo_n "(cached) " >&6
11701 else
11702 if test yes = "$cross_compiling"; then :
11703 lt_cv_dlopen_self_static=cross
11704 else
11705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11706 lt_status=$lt_dlunknown
11707 cat > conftest.$ac_ext <<_LT_EOF
11708 #line $LINENO "configure"
11709 #include "confdefs.h"
11710
11711 #if HAVE_DLFCN_H
11712 #include <dlfcn.h>
11713 #endif
11714
11715 #include <stdio.h>
11716
11717 #ifdef RTLD_GLOBAL
11718 # define LT_DLGLOBAL RTLD_GLOBAL
11719 #else
11720 # ifdef DL_GLOBAL
11721 # define LT_DLGLOBAL DL_GLOBAL
11722 # else
11723 # define LT_DLGLOBAL 0
11724 # endif
11725 #endif
11726
11727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11728 find out it does not work in some platform. */
11729 #ifndef LT_DLLAZY_OR_NOW
11730 # ifdef RTLD_LAZY
11731 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11732 # else
11733 # ifdef DL_LAZY
11734 # define LT_DLLAZY_OR_NOW DL_LAZY
11735 # else
11736 # ifdef RTLD_NOW
11737 # define LT_DLLAZY_OR_NOW RTLD_NOW
11738 # else
11739 # ifdef DL_NOW
11740 # define LT_DLLAZY_OR_NOW DL_NOW
11741 # else
11742 # define LT_DLLAZY_OR_NOW 0
11743 # endif
11744 # endif
11745 # endif
11746 # endif
11747 #endif
11748
11749 /* When -fvisibility=hidden is used, assume the code has been annotated
11750 correspondingly for the symbols needed. */
11751 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11752 int fnord () __attribute__((visibility("default")));
11753 #endif
11754
11755 int fnord () { return 42; }
11756 int main ()
11757 {
11758 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11759 int status = $lt_dlunknown;
11760
11761 if (self)
11762 {
11763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11764 else
11765 {
11766 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11767 else puts (dlerror ());
11768 }
11769 /* dlclose (self); */
11770 }
11771 else
11772 puts (dlerror ());
11773
11774 return status;
11775 }
11776 _LT_EOF
11777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11778 (eval $ac_link) 2>&5
11779 ac_status=$?
11780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11781 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11782 (./conftest; exit; ) >&5 2>/dev/null
11783 lt_status=$?
11784 case x$lt_status in
11785 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11786 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11787 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11788 esac
11789 else :
11790 # compilation failed
11791 lt_cv_dlopen_self_static=no
11792 fi
11793 fi
11794 rm -fr conftest*
11795
11796
11797 fi
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11799 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11800 fi
11801
11802 CPPFLAGS=$save_CPPFLAGS
11803 LDFLAGS=$save_LDFLAGS
11804 LIBS=$save_LIBS
11805 ;;
11806 esac
11807
11808 case $lt_cv_dlopen_self in
11809 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11810 *) enable_dlopen_self=unknown ;;
11811 esac
11812
11813 case $lt_cv_dlopen_self_static in
11814 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11815 *) enable_dlopen_self_static=unknown ;;
11816 esac
11817 fi
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835 striplib=
11836 old_striplib=
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11838 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11839 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11840 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11841 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11843 $as_echo "yes" >&6; }
11844 else
11845 # FIXME - insert some real tests, host_os isn't really good enough
11846 case $host_os in
11847 darwin*)
11848 if test -n "$STRIP"; then
11849 striplib="$STRIP -x"
11850 old_striplib="$STRIP -S"
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11852 $as_echo "yes" >&6; }
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11856 fi
11857 ;;
11858 *)
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11861 ;;
11862 esac
11863 fi
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876 # Report what library types will actually be built
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11878 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11880 $as_echo "$can_build_shared" >&6; }
11881
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11883 $as_echo_n "checking whether to build shared libraries... " >&6; }
11884 test no = "$can_build_shared" && enable_shared=no
11885
11886 # On AIX, shared libraries and static libraries use the same namespace, and
11887 # are all built from PIC.
11888 case $host_os in
11889 aix3*)
11890 test yes = "$enable_shared" && enable_static=no
11891 if test -n "$RANLIB"; then
11892 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11893 postinstall_cmds='$RANLIB $lib'
11894 fi
11895 ;;
11896
11897 aix[4-9]*)
11898 if test ia64 != "$host_cpu"; then
11899 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11900 yes,aix,yes) ;; # shared object as lib.so file only
11901 yes,svr4,*) ;; # shared object as lib.so archive member only
11902 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11903 esac
11904 fi
11905 ;;
11906 esac
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11908 $as_echo "$enable_shared" >&6; }
11909
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11911 $as_echo_n "checking whether to build static libraries... " >&6; }
11912 # Make sure either enable_shared or enable_static is yes.
11913 test yes = "$enable_shared" || enable_static=yes
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11915 $as_echo "$enable_static" >&6; }
11916
11917
11918
11919
11920 fi
11921 ac_ext=c
11922 ac_cpp='$CPP $CPPFLAGS'
11923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11926
11927 CC=$lt_save_CC
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943 ac_config_commands="$ac_config_commands libtool"
11944
11945
11946
11947
11948 # Only expand once:
11949
11950
11951
11952 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11965 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11966 if ${ac_cv_prog_cc_c99+:} false; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 ac_cv_prog_cc_c99=no
11970 ac_save_CC=$CC
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11973 #include <stdarg.h>
11974 #include <stdbool.h>
11975 #include <stdlib.h>
11976 #include <wchar.h>
11977 #include <stdio.h>
11978
11979 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11980 #define debug(...) fprintf (stderr, __VA_ARGS__)
11981 #define showlist(...) puts (#__VA_ARGS__)
11982 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11983 static void
11984 test_varargs_macros (void)
11985 {
11986 int x = 1234;
11987 int y = 5678;
11988 debug ("Flag");
11989 debug ("X = %d\n", x);
11990 showlist (The first, second, and third items.);
11991 report (x>y, "x is %d but y is %d", x, y);
11992 }
11993
11994 // Check long long types.
11995 #define BIG64 18446744073709551615ull
11996 #define BIG32 4294967295ul
11997 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11998 #if !BIG_OK
11999 your preprocessor is broken;
12000 #endif
12001 #if BIG_OK
12002 #else
12003 your preprocessor is broken;
12004 #endif
12005 static long long int bignum = -9223372036854775807LL;
12006 static unsigned long long int ubignum = BIG64;
12007
12008 struct incomplete_array
12009 {
12010 int datasize;
12011 double data[];
12012 };
12013
12014 struct named_init {
12015 int number;
12016 const wchar_t *name;
12017 double average;
12018 };
12019
12020 typedef const char *ccp;
12021
12022 static inline int
12023 test_restrict (ccp restrict text)
12024 {
12025 // See if C++-style comments work.
12026 // Iterate through items via the restricted pointer.
12027 // Also check for declarations in for loops.
12028 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12029 continue;
12030 return 0;
12031 }
12032
12033 // Check varargs and va_copy.
12034 static void
12035 test_varargs (const char *format, ...)
12036 {
12037 va_list args;
12038 va_start (args, format);
12039 va_list args_copy;
12040 va_copy (args_copy, args);
12041
12042 const char *str;
12043 int number;
12044 float fnumber;
12045
12046 while (*format)
12047 {
12048 switch (*format++)
12049 {
12050 case 's': // string
12051 str = va_arg (args_copy, const char *);
12052 break;
12053 case 'd': // int
12054 number = va_arg (args_copy, int);
12055 break;
12056 case 'f': // float
12057 fnumber = va_arg (args_copy, double);
12058 break;
12059 default:
12060 break;
12061 }
12062 }
12063 va_end (args_copy);
12064 va_end (args);
12065 }
12066
12067 int
12068 main ()
12069 {
12070
12071 // Check bool.
12072 _Bool success = false;
12073
12074 // Check restrict.
12075 if (test_restrict ("String literal") == 0)
12076 success = true;
12077 char *restrict newvar = "Another string";
12078
12079 // Check varargs.
12080 test_varargs ("s, d' f .", "string", 65, 34.234);
12081 test_varargs_macros ();
12082
12083 // Check flexible array members.
12084 struct incomplete_array *ia =
12085 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12086 ia->datasize = 10;
12087 for (int i = 0; i < ia->datasize; ++i)
12088 ia->data[i] = i * 1.234;
12089
12090 // Check named initializers.
12091 struct named_init ni = {
12092 .number = 34,
12093 .name = L"Test wide string",
12094 .average = 543.34343,
12095 };
12096
12097 ni.number = 58;
12098
12099 int dynamic_array[ni.number];
12100 dynamic_array[ni.number - 1] = 543;
12101
12102 // work around unused variable warnings
12103 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12104 || dynamic_array[ni.number - 1] != 543);
12105
12106 ;
12107 return 0;
12108 }
12109 _ACEOF
12110 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12111 do
12112 CC="$ac_save_CC $ac_arg"
12113 if ac_fn_c_try_compile "$LINENO"; then :
12114 ac_cv_prog_cc_c99=$ac_arg
12115 fi
12116 rm -f core conftest.err conftest.$ac_objext
12117 test "x$ac_cv_prog_cc_c99" != "xno" && break
12118 done
12119 rm -f conftest.$ac_ext
12120 CC=$ac_save_CC
12121
12122 fi
12123 # AC_CACHE_VAL
12124 case "x$ac_cv_prog_cc_c99" in
12125 x)
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12127 $as_echo "none needed" >&6; } ;;
12128 xno)
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12130 $as_echo "unsupported" >&6; } ;;
12131 *)
12132 CC="$CC $ac_cv_prog_cc_c99"
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12134 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12135 esac
12136 if test "x$ac_cv_prog_cc_c99" != xno; then :
12137
12138 fi
12139
12140
12141
12142
12143
12144
12145 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12146 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12147 CLANGCC="yes"
12148 else
12149 CLANGCC="no"
12150 fi
12151
12152 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12153 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12154 INTELCC="yes"
12155 else
12156 INTELCC="no"
12157 fi
12158
12159 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12160 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12161 SUNCC="yes"
12162 else
12163 SUNCC="no"
12164 fi
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12175 if test -n "$ac_tool_prefix"; then
12176 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12177 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 case $PKG_CONFIG in
12184 [\\/]* | ?:[\\/]*)
12185 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12186 ;;
12187 *)
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189 for as_dir in $PATH
12190 do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12195 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199 done
12200 done
12201 IFS=$as_save_IFS
12202
12203 ;;
12204 esac
12205 fi
12206 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12207 if test -n "$PKG_CONFIG"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12209 $as_echo "$PKG_CONFIG" >&6; }
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212 $as_echo "no" >&6; }
12213 fi
12214
12215
12216 fi
12217 if test -z "$ac_cv_path_PKG_CONFIG"; then
12218 ac_pt_PKG_CONFIG=$PKG_CONFIG
12219 # Extract the first word of "pkg-config", so it can be a program name with args.
12220 set dummy pkg-config; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 case $ac_pt_PKG_CONFIG in
12227 [\\/]* | ?:[\\/]*)
12228 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12229 ;;
12230 *)
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232 for as_dir in $PATH
12233 do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12238 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 break 2
12241 fi
12242 done
12243 done
12244 IFS=$as_save_IFS
12245
12246 ;;
12247 esac
12248 fi
12249 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12250 if test -n "$ac_pt_PKG_CONFIG"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12252 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12256 fi
12257
12258 if test "x$ac_pt_PKG_CONFIG" = x; then
12259 PKG_CONFIG=""
12260 else
12261 case $cross_compiling:$ac_tool_warned in
12262 yes:)
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12265 ac_tool_warned=yes ;;
12266 esac
12267 PKG_CONFIG=$ac_pt_PKG_CONFIG
12268 fi
12269 else
12270 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12271 fi
12272
12273 fi
12274 if test -n "$PKG_CONFIG"; then
12275 _pkg_min_version=0.9.0
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12277 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12278 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12280 $as_echo "yes" >&6; }
12281 else
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 $as_echo "no" >&6; }
12284 PKG_CONFIG=""
12285 fi
12286 fi
12287
12288
12289
12290
12291
12292 # Check whether --enable-selective-werror was given.
12293 if test "${enable_selective_werror+set}" = set; then :
12294 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12295 else
12296 SELECTIVE_WERROR=yes
12297 fi
12298
12299
12300
12301
12302
12303 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12304 if test "x$SUNCC" = "xyes"; then
12305 BASE_CFLAGS="-v"
12306 else
12307 BASE_CFLAGS=""
12308 fi
12309
12310 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324 xorg_testset_save_CFLAGS="$CFLAGS"
12325
12326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12329 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12330 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12335 int i;
12336 _ACEOF
12337 if ac_fn_c_try_compile "$LINENO"; then :
12338 xorg_cv_cc_flag_unknown_warning_option=yes
12339 else
12340 xorg_cv_cc_flag_unknown_warning_option=no
12341 fi
12342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12343 fi
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12345 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12347 CFLAGS="$xorg_testset_save_CFLAGS"
12348 fi
12349
12350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12353 fi
12354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12356 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12357 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12362 int i;
12363 _ACEOF
12364 if ac_fn_c_try_compile "$LINENO"; then :
12365 xorg_cv_cc_flag_unused_command_line_argument=yes
12366 else
12367 xorg_cv_cc_flag_unused_command_line_argument=no
12368 fi
12369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 fi
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12372 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12374 CFLAGS="$xorg_testset_save_CFLAGS"
12375 fi
12376
12377 found="no"
12378
12379 if test $found = "no" ; then
12380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12382 fi
12383
12384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12386 fi
12387
12388 CFLAGS="$CFLAGS -Wall"
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12391 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12392 cacheid=xorg_cv_cc_flag__Wall
12393 if eval \${$cacheid+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398 int i;
12399 int
12400 main ()
12401 {
12402
12403 ;
12404 return 0;
12405 }
12406 _ACEOF
12407 if ac_fn_c_try_link "$LINENO"; then :
12408 eval $cacheid=yes
12409 else
12410 eval $cacheid=no
12411 fi
12412 rm -f core conftest.err conftest.$ac_objext \
12413 conftest$ac_exeext conftest.$ac_ext
12414 fi
12415
12416
12417 CFLAGS="$xorg_testset_save_CFLAGS"
12418
12419 eval supported=\$$cacheid
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12421 $as_echo "$supported" >&6; }
12422 if test "$supported" = "yes" ; then
12423 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12424 found="yes"
12425 fi
12426 fi
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442 xorg_testset_save_CFLAGS="$CFLAGS"
12443
12444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12453 int i;
12454 _ACEOF
12455 if ac_fn_c_try_compile "$LINENO"; then :
12456 xorg_cv_cc_flag_unknown_warning_option=yes
12457 else
12458 xorg_cv_cc_flag_unknown_warning_option=no
12459 fi
12460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12465 CFLAGS="$xorg_testset_save_CFLAGS"
12466 fi
12467
12468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12471 fi
12472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480 int i;
12481 _ACEOF
12482 if ac_fn_c_try_compile "$LINENO"; then :
12483 xorg_cv_cc_flag_unused_command_line_argument=yes
12484 else
12485 xorg_cv_cc_flag_unused_command_line_argument=no
12486 fi
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 fi
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12492 CFLAGS="$xorg_testset_save_CFLAGS"
12493 fi
12494
12495 found="no"
12496
12497 if test $found = "no" ; then
12498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12500 fi
12501
12502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12504 fi
12505
12506 CFLAGS="$CFLAGS -Wpointer-arith"
12507
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12509 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12510 cacheid=xorg_cv_cc_flag__Wpointer_arith
12511 if eval \${$cacheid+:} false; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12516 int i;
12517 int
12518 main ()
12519 {
12520
12521 ;
12522 return 0;
12523 }
12524 _ACEOF
12525 if ac_fn_c_try_link "$LINENO"; then :
12526 eval $cacheid=yes
12527 else
12528 eval $cacheid=no
12529 fi
12530 rm -f core conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12532 fi
12533
12534
12535 CFLAGS="$xorg_testset_save_CFLAGS"
12536
12537 eval supported=\$$cacheid
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12539 $as_echo "$supported" >&6; }
12540 if test "$supported" = "yes" ; then
12541 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12542 found="yes"
12543 fi
12544 fi
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560 xorg_testset_save_CFLAGS="$CFLAGS"
12561
12562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568 else
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571 int i;
12572 _ACEOF
12573 if ac_fn_c_try_compile "$LINENO"; then :
12574 xorg_cv_cc_flag_unknown_warning_option=yes
12575 else
12576 xorg_cv_cc_flag_unknown_warning_option=no
12577 fi
12578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579 fi
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12583 CFLAGS="$xorg_testset_save_CFLAGS"
12584 fi
12585
12586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12589 fi
12590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12598 int i;
12599 _ACEOF
12600 if ac_fn_c_try_compile "$LINENO"; then :
12601 xorg_cv_cc_flag_unused_command_line_argument=yes
12602 else
12603 xorg_cv_cc_flag_unused_command_line_argument=no
12604 fi
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606 fi
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12610 CFLAGS="$xorg_testset_save_CFLAGS"
12611 fi
12612
12613 found="no"
12614
12615 if test $found = "no" ; then
12616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12618 fi
12619
12620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12622 fi
12623
12624 CFLAGS="$CFLAGS -Wmissing-declarations"
12625
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12627 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12628 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12629 if eval \${$cacheid+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 int i;
12635 int
12636 main ()
12637 {
12638
12639 ;
12640 return 0;
12641 }
12642 _ACEOF
12643 if ac_fn_c_try_link "$LINENO"; then :
12644 eval $cacheid=yes
12645 else
12646 eval $cacheid=no
12647 fi
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650 fi
12651
12652
12653 CFLAGS="$xorg_testset_save_CFLAGS"
12654
12655 eval supported=\$$cacheid
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12657 $as_echo "$supported" >&6; }
12658 if test "$supported" = "yes" ; then
12659 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12660 found="yes"
12661 fi
12662 fi
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678 xorg_testset_save_CFLAGS="$CFLAGS"
12679
12680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12684 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12685 $as_echo_n "(cached) " >&6
12686 else
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12689 int i;
12690 _ACEOF
12691 if ac_fn_c_try_compile "$LINENO"; then :
12692 xorg_cv_cc_flag_unknown_warning_option=yes
12693 else
12694 xorg_cv_cc_flag_unknown_warning_option=no
12695 fi
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 fi
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12699 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12701 CFLAGS="$xorg_testset_save_CFLAGS"
12702 fi
12703
12704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12707 fi
12708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12710 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12711 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12716 int i;
12717 _ACEOF
12718 if ac_fn_c_try_compile "$LINENO"; then :
12719 xorg_cv_cc_flag_unused_command_line_argument=yes
12720 else
12721 xorg_cv_cc_flag_unused_command_line_argument=no
12722 fi
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724 fi
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12726 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12728 CFLAGS="$xorg_testset_save_CFLAGS"
12729 fi
12730
12731 found="no"
12732
12733 if test $found = "no" ; then
12734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12736 fi
12737
12738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12740 fi
12741
12742 CFLAGS="$CFLAGS -Wformat=2"
12743
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12745 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12746 cacheid=xorg_cv_cc_flag__Wformat_2
12747 if eval \${$cacheid+:} false; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12752 int i;
12753 int
12754 main ()
12755 {
12756
12757 ;
12758 return 0;
12759 }
12760 _ACEOF
12761 if ac_fn_c_try_link "$LINENO"; then :
12762 eval $cacheid=yes
12763 else
12764 eval $cacheid=no
12765 fi
12766 rm -f core conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 fi
12769
12770
12771 CFLAGS="$xorg_testset_save_CFLAGS"
12772
12773 eval supported=\$$cacheid
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12775 $as_echo "$supported" >&6; }
12776 if test "$supported" = "yes" ; then
12777 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12778 found="yes"
12779 fi
12780 fi
12781
12782 if test $found = "no" ; then
12783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12785 fi
12786
12787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12789 fi
12790
12791 CFLAGS="$CFLAGS -Wformat"
12792
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12794 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12795 cacheid=xorg_cv_cc_flag__Wformat
12796 if eval \${$cacheid+:} false; then :
12797 $as_echo_n "(cached) " >&6
12798 else
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801 int i;
12802 int
12803 main ()
12804 {
12805
12806 ;
12807 return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_link "$LINENO"; then :
12811 eval $cacheid=yes
12812 else
12813 eval $cacheid=no
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 fi
12818
12819
12820 CFLAGS="$xorg_testset_save_CFLAGS"
12821
12822 eval supported=\$$cacheid
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12824 $as_echo "$supported" >&6; }
12825 if test "$supported" = "yes" ; then
12826 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12827 found="yes"
12828 fi
12829 fi
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847 xorg_testset_save_CFLAGS="$CFLAGS"
12848
12849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12858 int i;
12859 _ACEOF
12860 if ac_fn_c_try_compile "$LINENO"; then :
12861 xorg_cv_cc_flag_unknown_warning_option=yes
12862 else
12863 xorg_cv_cc_flag_unknown_warning_option=no
12864 fi
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 fi
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12870 CFLAGS="$xorg_testset_save_CFLAGS"
12871 fi
12872
12873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12876 fi
12877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12885 int i;
12886 _ACEOF
12887 if ac_fn_c_try_compile "$LINENO"; then :
12888 xorg_cv_cc_flag_unused_command_line_argument=yes
12889 else
12890 xorg_cv_cc_flag_unused_command_line_argument=no
12891 fi
12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893 fi
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12897 CFLAGS="$xorg_testset_save_CFLAGS"
12898 fi
12899
12900 found="no"
12901
12902 if test $found = "no" ; then
12903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12905 fi
12906
12907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12909 fi
12910
12911 CFLAGS="$CFLAGS -Wstrict-prototypes"
12912
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12914 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12915 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12916 if eval \${$cacheid+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 int i;
12922 int
12923 main ()
12924 {
12925
12926 ;
12927 return 0;
12928 }
12929 _ACEOF
12930 if ac_fn_c_try_link "$LINENO"; then :
12931 eval $cacheid=yes
12932 else
12933 eval $cacheid=no
12934 fi
12935 rm -f core conftest.err conftest.$ac_objext \
12936 conftest$ac_exeext conftest.$ac_ext
12937 fi
12938
12939
12940 CFLAGS="$xorg_testset_save_CFLAGS"
12941
12942 eval supported=\$$cacheid
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12944 $as_echo "$supported" >&6; }
12945 if test "$supported" = "yes" ; then
12946 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12947 found="yes"
12948 fi
12949 fi
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965 xorg_testset_save_CFLAGS="$CFLAGS"
12966
12967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12976 int i;
12977 _ACEOF
12978 if ac_fn_c_try_compile "$LINENO"; then :
12979 xorg_cv_cc_flag_unknown_warning_option=yes
12980 else
12981 xorg_cv_cc_flag_unknown_warning_option=no
12982 fi
12983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12984 fi
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12988 CFLAGS="$xorg_testset_save_CFLAGS"
12989 fi
12990
12991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12994 fi
12995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003 int i;
13004 _ACEOF
13005 if ac_fn_c_try_compile "$LINENO"; then :
13006 xorg_cv_cc_flag_unused_command_line_argument=yes
13007 else
13008 xorg_cv_cc_flag_unused_command_line_argument=no
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011 fi
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13015 CFLAGS="$xorg_testset_save_CFLAGS"
13016 fi
13017
13018 found="no"
13019
13020 if test $found = "no" ; then
13021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13023 fi
13024
13025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13027 fi
13028
13029 CFLAGS="$CFLAGS -Wmissing-prototypes"
13030
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13032 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13033 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13034 if eval \${$cacheid+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13039 int i;
13040 int
13041 main ()
13042 {
13043
13044 ;
13045 return 0;
13046 }
13047 _ACEOF
13048 if ac_fn_c_try_link "$LINENO"; then :
13049 eval $cacheid=yes
13050 else
13051 eval $cacheid=no
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext \
13054 conftest$ac_exeext conftest.$ac_ext
13055 fi
13056
13057
13058 CFLAGS="$xorg_testset_save_CFLAGS"
13059
13060 eval supported=\$$cacheid
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13062 $as_echo "$supported" >&6; }
13063 if test "$supported" = "yes" ; then
13064 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13065 found="yes"
13066 fi
13067 fi
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083 xorg_testset_save_CFLAGS="$CFLAGS"
13084
13085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13094 int i;
13095 _ACEOF
13096 if ac_fn_c_try_compile "$LINENO"; then :
13097 xorg_cv_cc_flag_unknown_warning_option=yes
13098 else
13099 xorg_cv_cc_flag_unknown_warning_option=no
13100 fi
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 fi
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13106 CFLAGS="$xorg_testset_save_CFLAGS"
13107 fi
13108
13109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13112 fi
13113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13121 int i;
13122 _ACEOF
13123 if ac_fn_c_try_compile "$LINENO"; then :
13124 xorg_cv_cc_flag_unused_command_line_argument=yes
13125 else
13126 xorg_cv_cc_flag_unused_command_line_argument=no
13127 fi
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129 fi
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13133 CFLAGS="$xorg_testset_save_CFLAGS"
13134 fi
13135
13136 found="no"
13137
13138 if test $found = "no" ; then
13139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13141 fi
13142
13143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13145 fi
13146
13147 CFLAGS="$CFLAGS -Wnested-externs"
13148
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13150 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13151 cacheid=xorg_cv_cc_flag__Wnested_externs
13152 if eval \${$cacheid+:} false; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13157 int i;
13158 int
13159 main ()
13160 {
13161
13162 ;
13163 return 0;
13164 }
13165 _ACEOF
13166 if ac_fn_c_try_link "$LINENO"; then :
13167 eval $cacheid=yes
13168 else
13169 eval $cacheid=no
13170 fi
13171 rm -f core conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext conftest.$ac_ext
13173 fi
13174
13175
13176 CFLAGS="$xorg_testset_save_CFLAGS"
13177
13178 eval supported=\$$cacheid
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13180 $as_echo "$supported" >&6; }
13181 if test "$supported" = "yes" ; then
13182 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13183 found="yes"
13184 fi
13185 fi
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201 xorg_testset_save_CFLAGS="$CFLAGS"
13202
13203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13208 $as_echo_n "(cached) " >&6
13209 else
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13212 int i;
13213 _ACEOF
13214 if ac_fn_c_try_compile "$LINENO"; then :
13215 xorg_cv_cc_flag_unknown_warning_option=yes
13216 else
13217 xorg_cv_cc_flag_unknown_warning_option=no
13218 fi
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 fi
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13224 CFLAGS="$xorg_testset_save_CFLAGS"
13225 fi
13226
13227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13230 fi
13231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13235 $as_echo_n "(cached) " >&6
13236 else
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13239 int i;
13240 _ACEOF
13241 if ac_fn_c_try_compile "$LINENO"; then :
13242 xorg_cv_cc_flag_unused_command_line_argument=yes
13243 else
13244 xorg_cv_cc_flag_unused_command_line_argument=no
13245 fi
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247 fi
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13251 CFLAGS="$xorg_testset_save_CFLAGS"
13252 fi
13253
13254 found="no"
13255
13256 if test $found = "no" ; then
13257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13259 fi
13260
13261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13263 fi
13264
13265 CFLAGS="$CFLAGS -Wbad-function-cast"
13266
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13268 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13269 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13270 if eval \${$cacheid+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13275 int i;
13276 int
13277 main ()
13278 {
13279
13280 ;
13281 return 0;
13282 }
13283 _ACEOF
13284 if ac_fn_c_try_link "$LINENO"; then :
13285 eval $cacheid=yes
13286 else
13287 eval $cacheid=no
13288 fi
13289 rm -f core conftest.err conftest.$ac_objext \
13290 conftest$ac_exeext conftest.$ac_ext
13291 fi
13292
13293
13294 CFLAGS="$xorg_testset_save_CFLAGS"
13295
13296 eval supported=\$$cacheid
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13298 $as_echo "$supported" >&6; }
13299 if test "$supported" = "yes" ; then
13300 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13301 found="yes"
13302 fi
13303 fi
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319 xorg_testset_save_CFLAGS="$CFLAGS"
13320
13321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13330 int i;
13331 _ACEOF
13332 if ac_fn_c_try_compile "$LINENO"; then :
13333 xorg_cv_cc_flag_unknown_warning_option=yes
13334 else
13335 xorg_cv_cc_flag_unknown_warning_option=no
13336 fi
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13338 fi
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13342 CFLAGS="$xorg_testset_save_CFLAGS"
13343 fi
13344
13345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13348 fi
13349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13357 int i;
13358 _ACEOF
13359 if ac_fn_c_try_compile "$LINENO"; then :
13360 xorg_cv_cc_flag_unused_command_line_argument=yes
13361 else
13362 xorg_cv_cc_flag_unused_command_line_argument=no
13363 fi
13364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365 fi
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13369 CFLAGS="$xorg_testset_save_CFLAGS"
13370 fi
13371
13372 found="no"
13373
13374 if test $found = "no" ; then
13375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13377 fi
13378
13379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13381 fi
13382
13383 CFLAGS="$CFLAGS -Wold-style-definition"
13384
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13386 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13387 cacheid=xorg_cv_cc_flag__Wold_style_definition
13388 if eval \${$cacheid+:} false; then :
13389 $as_echo_n "(cached) " >&6
13390 else
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13393 int i;
13394 int
13395 main ()
13396 {
13397
13398 ;
13399 return 0;
13400 }
13401 _ACEOF
13402 if ac_fn_c_try_link "$LINENO"; then :
13403 eval $cacheid=yes
13404 else
13405 eval $cacheid=no
13406 fi
13407 rm -f core conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13409 fi
13410
13411
13412 CFLAGS="$xorg_testset_save_CFLAGS"
13413
13414 eval supported=\$$cacheid
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13416 $as_echo "$supported" >&6; }
13417 if test "$supported" = "yes" ; then
13418 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13419 found="yes"
13420 fi
13421 fi
13422
13423 if test $found = "no" ; then
13424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13426 fi
13427
13428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13430 fi
13431
13432 CFLAGS="$CFLAGS -fd"
13433
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13435 $as_echo_n "checking if $CC supports -fd... " >&6; }
13436 cacheid=xorg_cv_cc_flag__fd
13437 if eval \${$cacheid+:} false; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13442 int i;
13443 int
13444 main ()
13445 {
13446
13447 ;
13448 return 0;
13449 }
13450 _ACEOF
13451 if ac_fn_c_try_link "$LINENO"; then :
13452 eval $cacheid=yes
13453 else
13454 eval $cacheid=no
13455 fi
13456 rm -f core conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
13458 fi
13459
13460
13461 CFLAGS="$xorg_testset_save_CFLAGS"
13462
13463 eval supported=\$$cacheid
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13465 $as_echo "$supported" >&6; }
13466 if test "$supported" = "yes" ; then
13467 BASE_CFLAGS="$BASE_CFLAGS -fd"
13468 found="yes"
13469 fi
13470 fi
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486 xorg_testset_save_CFLAGS="$CFLAGS"
13487
13488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13497 int i;
13498 _ACEOF
13499 if ac_fn_c_try_compile "$LINENO"; then :
13500 xorg_cv_cc_flag_unknown_warning_option=yes
13501 else
13502 xorg_cv_cc_flag_unknown_warning_option=no
13503 fi
13504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505 fi
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13509 CFLAGS="$xorg_testset_save_CFLAGS"
13510 fi
13511
13512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13515 fi
13516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524 int i;
13525 _ACEOF
13526 if ac_fn_c_try_compile "$LINENO"; then :
13527 xorg_cv_cc_flag_unused_command_line_argument=yes
13528 else
13529 xorg_cv_cc_flag_unused_command_line_argument=no
13530 fi
13531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 fi
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13536 CFLAGS="$xorg_testset_save_CFLAGS"
13537 fi
13538
13539 found="no"
13540
13541 if test $found = "no" ; then
13542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13544 fi
13545
13546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13548 fi
13549
13550 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13551
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13553 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13554 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13555 if eval \${$cacheid+:} false; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13560 int i;
13561 int
13562 main ()
13563 {
13564
13565 ;
13566 return 0;
13567 }
13568 _ACEOF
13569 if ac_fn_c_try_link "$LINENO"; then :
13570 eval $cacheid=yes
13571 else
13572 eval $cacheid=no
13573 fi
13574 rm -f core conftest.err conftest.$ac_objext \
13575 conftest$ac_exeext conftest.$ac_ext
13576 fi
13577
13578
13579 CFLAGS="$xorg_testset_save_CFLAGS"
13580
13581 eval supported=\$$cacheid
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13583 $as_echo "$supported" >&6; }
13584 if test "$supported" = "yes" ; then
13585 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13586 found="yes"
13587 fi
13588 fi
13589
13590
13591
13592
13593
13594 # This chunk adds additional warnings that could catch undesired effects.
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608 xorg_testset_save_CFLAGS="$CFLAGS"
13609
13610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13613 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13614 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13619 int i;
13620 _ACEOF
13621 if ac_fn_c_try_compile "$LINENO"; then :
13622 xorg_cv_cc_flag_unknown_warning_option=yes
13623 else
13624 xorg_cv_cc_flag_unknown_warning_option=no
13625 fi
13626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13627 fi
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13629 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13631 CFLAGS="$xorg_testset_save_CFLAGS"
13632 fi
13633
13634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13637 fi
13638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13640 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13641 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 int i;
13647 _ACEOF
13648 if ac_fn_c_try_compile "$LINENO"; then :
13649 xorg_cv_cc_flag_unused_command_line_argument=yes
13650 else
13651 xorg_cv_cc_flag_unused_command_line_argument=no
13652 fi
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 fi
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13656 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13658 CFLAGS="$xorg_testset_save_CFLAGS"
13659 fi
13660
13661 found="no"
13662
13663 if test $found = "no" ; then
13664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13666 fi
13667
13668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13670 fi
13671
13672 CFLAGS="$CFLAGS -Wunused"
13673
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13675 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13676 cacheid=xorg_cv_cc_flag__Wunused
13677 if eval \${$cacheid+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 int i;
13683 int
13684 main ()
13685 {
13686
13687 ;
13688 return 0;
13689 }
13690 _ACEOF
13691 if ac_fn_c_try_link "$LINENO"; then :
13692 eval $cacheid=yes
13693 else
13694 eval $cacheid=no
13695 fi
13696 rm -f core conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
13698 fi
13699
13700
13701 CFLAGS="$xorg_testset_save_CFLAGS"
13702
13703 eval supported=\$$cacheid
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13705 $as_echo "$supported" >&6; }
13706 if test "$supported" = "yes" ; then
13707 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13708 found="yes"
13709 fi
13710 fi
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726 xorg_testset_save_CFLAGS="$CFLAGS"
13727
13728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13731 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13732 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13737 int i;
13738 _ACEOF
13739 if ac_fn_c_try_compile "$LINENO"; then :
13740 xorg_cv_cc_flag_unknown_warning_option=yes
13741 else
13742 xorg_cv_cc_flag_unknown_warning_option=no
13743 fi
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 fi
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13747 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13749 CFLAGS="$xorg_testset_save_CFLAGS"
13750 fi
13751
13752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13755 fi
13756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13758 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13759 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 int i;
13765 _ACEOF
13766 if ac_fn_c_try_compile "$LINENO"; then :
13767 xorg_cv_cc_flag_unused_command_line_argument=yes
13768 else
13769 xorg_cv_cc_flag_unused_command_line_argument=no
13770 fi
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 fi
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13774 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13776 CFLAGS="$xorg_testset_save_CFLAGS"
13777 fi
13778
13779 found="no"
13780
13781 if test $found = "no" ; then
13782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13784 fi
13785
13786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13788 fi
13789
13790 CFLAGS="$CFLAGS -Wuninitialized"
13791
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13793 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13794 cacheid=xorg_cv_cc_flag__Wuninitialized
13795 if eval \${$cacheid+:} false; then :
13796 $as_echo_n "(cached) " >&6
13797 else
13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13800 int i;
13801 int
13802 main ()
13803 {
13804
13805 ;
13806 return 0;
13807 }
13808 _ACEOF
13809 if ac_fn_c_try_link "$LINENO"; then :
13810 eval $cacheid=yes
13811 else
13812 eval $cacheid=no
13813 fi
13814 rm -f core conftest.err conftest.$ac_objext \
13815 conftest$ac_exeext conftest.$ac_ext
13816 fi
13817
13818
13819 CFLAGS="$xorg_testset_save_CFLAGS"
13820
13821 eval supported=\$$cacheid
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13823 $as_echo "$supported" >&6; }
13824 if test "$supported" = "yes" ; then
13825 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13826 found="yes"
13827 fi
13828 fi
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844 xorg_testset_save_CFLAGS="$CFLAGS"
13845
13846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13849 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13850 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13851 $as_echo_n "(cached) " >&6
13852 else
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13855 int i;
13856 _ACEOF
13857 if ac_fn_c_try_compile "$LINENO"; then :
13858 xorg_cv_cc_flag_unknown_warning_option=yes
13859 else
13860 xorg_cv_cc_flag_unknown_warning_option=no
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863 fi
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13865 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13867 CFLAGS="$xorg_testset_save_CFLAGS"
13868 fi
13869
13870 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13873 fi
13874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13876 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13877 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13882 int i;
13883 _ACEOF
13884 if ac_fn_c_try_compile "$LINENO"; then :
13885 xorg_cv_cc_flag_unused_command_line_argument=yes
13886 else
13887 xorg_cv_cc_flag_unused_command_line_argument=no
13888 fi
13889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890 fi
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13892 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13894 CFLAGS="$xorg_testset_save_CFLAGS"
13895 fi
13896
13897 found="no"
13898
13899 if test $found = "no" ; then
13900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13902 fi
13903
13904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13906 fi
13907
13908 CFLAGS="$CFLAGS -Wshadow"
13909
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13911 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13912 cacheid=xorg_cv_cc_flag__Wshadow
13913 if eval \${$cacheid+:} false; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13918 int i;
13919 int
13920 main ()
13921 {
13922
13923 ;
13924 return 0;
13925 }
13926 _ACEOF
13927 if ac_fn_c_try_link "$LINENO"; then :
13928 eval $cacheid=yes
13929 else
13930 eval $cacheid=no
13931 fi
13932 rm -f core conftest.err conftest.$ac_objext \
13933 conftest$ac_exeext conftest.$ac_ext
13934 fi
13935
13936
13937 CFLAGS="$xorg_testset_save_CFLAGS"
13938
13939 eval supported=\$$cacheid
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13941 $as_echo "$supported" >&6; }
13942 if test "$supported" = "yes" ; then
13943 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13944 found="yes"
13945 fi
13946 fi
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962 xorg_testset_save_CFLAGS="$CFLAGS"
13963
13964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13967 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13968 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13973 int i;
13974 _ACEOF
13975 if ac_fn_c_try_compile "$LINENO"; then :
13976 xorg_cv_cc_flag_unknown_warning_option=yes
13977 else
13978 xorg_cv_cc_flag_unknown_warning_option=no
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13981 fi
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13983 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13985 CFLAGS="$xorg_testset_save_CFLAGS"
13986 fi
13987
13988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13991 fi
13992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13994 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13995 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14000 int i;
14001 _ACEOF
14002 if ac_fn_c_try_compile "$LINENO"; then :
14003 xorg_cv_cc_flag_unused_command_line_argument=yes
14004 else
14005 xorg_cv_cc_flag_unused_command_line_argument=no
14006 fi
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008 fi
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14010 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14012 CFLAGS="$xorg_testset_save_CFLAGS"
14013 fi
14014
14015 found="no"
14016
14017 if test $found = "no" ; then
14018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14020 fi
14021
14022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14024 fi
14025
14026 CFLAGS="$CFLAGS -Wmissing-noreturn"
14027
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14029 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14030 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14031 if eval \${$cacheid+:} false; then :
14032 $as_echo_n "(cached) " >&6
14033 else
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14036 int i;
14037 int
14038 main ()
14039 {
14040
14041 ;
14042 return 0;
14043 }
14044 _ACEOF
14045 if ac_fn_c_try_link "$LINENO"; then :
14046 eval $cacheid=yes
14047 else
14048 eval $cacheid=no
14049 fi
14050 rm -f core conftest.err conftest.$ac_objext \
14051 conftest$ac_exeext conftest.$ac_ext
14052 fi
14053
14054
14055 CFLAGS="$xorg_testset_save_CFLAGS"
14056
14057 eval supported=\$$cacheid
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14059 $as_echo "$supported" >&6; }
14060 if test "$supported" = "yes" ; then
14061 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14062 found="yes"
14063 fi
14064 fi
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080 xorg_testset_save_CFLAGS="$CFLAGS"
14081
14082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14085 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14086 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 int i;
14092 _ACEOF
14093 if ac_fn_c_try_compile "$LINENO"; then :
14094 xorg_cv_cc_flag_unknown_warning_option=yes
14095 else
14096 xorg_cv_cc_flag_unknown_warning_option=no
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 fi
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14101 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14103 CFLAGS="$xorg_testset_save_CFLAGS"
14104 fi
14105
14106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14109 fi
14110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14112 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14113 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14118 int i;
14119 _ACEOF
14120 if ac_fn_c_try_compile "$LINENO"; then :
14121 xorg_cv_cc_flag_unused_command_line_argument=yes
14122 else
14123 xorg_cv_cc_flag_unused_command_line_argument=no
14124 fi
14125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126 fi
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14128 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14130 CFLAGS="$xorg_testset_save_CFLAGS"
14131 fi
14132
14133 found="no"
14134
14135 if test $found = "no" ; then
14136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14138 fi
14139
14140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14142 fi
14143
14144 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14145
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14147 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14148 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14149 if eval \${$cacheid+:} false; then :
14150 $as_echo_n "(cached) " >&6
14151 else
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154 int i;
14155 int
14156 main ()
14157 {
14158
14159 ;
14160 return 0;
14161 }
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 eval $cacheid=yes
14165 else
14166 eval $cacheid=no
14167 fi
14168 rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14170 fi
14171
14172
14173 CFLAGS="$xorg_testset_save_CFLAGS"
14174
14175 eval supported=\$$cacheid
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14177 $as_echo "$supported" >&6; }
14178 if test "$supported" = "yes" ; then
14179 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14180 found="yes"
14181 fi
14182 fi
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198 xorg_testset_save_CFLAGS="$CFLAGS"
14199
14200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14203 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14204 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14209 int i;
14210 _ACEOF
14211 if ac_fn_c_try_compile "$LINENO"; then :
14212 xorg_cv_cc_flag_unknown_warning_option=yes
14213 else
14214 xorg_cv_cc_flag_unknown_warning_option=no
14215 fi
14216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14217 fi
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14219 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14221 CFLAGS="$xorg_testset_save_CFLAGS"
14222 fi
14223
14224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14227 fi
14228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14230 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14231 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14232 $as_echo_n "(cached) " >&6
14233 else
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14236 int i;
14237 _ACEOF
14238 if ac_fn_c_try_compile "$LINENO"; then :
14239 xorg_cv_cc_flag_unused_command_line_argument=yes
14240 else
14241 xorg_cv_cc_flag_unused_command_line_argument=no
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 fi
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14246 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14248 CFLAGS="$xorg_testset_save_CFLAGS"
14249 fi
14250
14251 found="no"
14252
14253 if test $found = "no" ; then
14254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14256 fi
14257
14258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14260 fi
14261
14262 CFLAGS="$CFLAGS -Wredundant-decls"
14263
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14265 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14266 cacheid=xorg_cv_cc_flag__Wredundant_decls
14267 if eval \${$cacheid+:} false; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14272 int i;
14273 int
14274 main ()
14275 {
14276
14277 ;
14278 return 0;
14279 }
14280 _ACEOF
14281 if ac_fn_c_try_link "$LINENO"; then :
14282 eval $cacheid=yes
14283 else
14284 eval $cacheid=no
14285 fi
14286 rm -f core conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 fi
14289
14290
14291 CFLAGS="$xorg_testset_save_CFLAGS"
14292
14293 eval supported=\$$cacheid
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14295 $as_echo "$supported" >&6; }
14296 if test "$supported" = "yes" ; then
14297 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14298 found="yes"
14299 fi
14300 fi
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316 xorg_testset_save_CFLAGS="$CFLAGS"
14317
14318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14321 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14322 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 int i;
14328 _ACEOF
14329 if ac_fn_c_try_compile "$LINENO"; then :
14330 xorg_cv_cc_flag_unknown_warning_option=yes
14331 else
14332 xorg_cv_cc_flag_unknown_warning_option=no
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 fi
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14337 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14339 CFLAGS="$xorg_testset_save_CFLAGS"
14340 fi
14341
14342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14345 fi
14346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14348 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14349 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14354 int i;
14355 _ACEOF
14356 if ac_fn_c_try_compile "$LINENO"; then :
14357 xorg_cv_cc_flag_unused_command_line_argument=yes
14358 else
14359 xorg_cv_cc_flag_unused_command_line_argument=no
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 fi
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14364 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14366 CFLAGS="$xorg_testset_save_CFLAGS"
14367 fi
14368
14369 found="no"
14370
14371 if test $found = "no" ; then
14372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14374 fi
14375
14376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14378 fi
14379
14380 CFLAGS="$CFLAGS -Wlogical-op"
14381
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14383 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14384 cacheid=xorg_cv_cc_flag__Wlogical_op
14385 if eval \${$cacheid+:} false; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390 int i;
14391 int
14392 main ()
14393 {
14394
14395 ;
14396 return 0;
14397 }
14398 _ACEOF
14399 if ac_fn_c_try_link "$LINENO"; then :
14400 eval $cacheid=yes
14401 else
14402 eval $cacheid=no
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext \
14405 conftest$ac_exeext conftest.$ac_ext
14406 fi
14407
14408
14409 CFLAGS="$xorg_testset_save_CFLAGS"
14410
14411 eval supported=\$$cacheid
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14413 $as_echo "$supported" >&6; }
14414 if test "$supported" = "yes" ; then
14415 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14416 found="yes"
14417 fi
14418 fi
14419
14420
14421
14422 # These are currently disabled because they are noisy. They will be enabled
14423 # in the future once the codebase is sufficiently modernized to silence
14424 # them. For now, I don't want them to drown out the other warnings.
14425 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14426 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14427 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14428
14429 # Turn some warnings into errors, so we don't accidently get successful builds
14430 # when there are problems that should be fixed.
14431
14432 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446 xorg_testset_save_CFLAGS="$CFLAGS"
14447
14448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14451 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14452 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457 int i;
14458 _ACEOF
14459 if ac_fn_c_try_compile "$LINENO"; then :
14460 xorg_cv_cc_flag_unknown_warning_option=yes
14461 else
14462 xorg_cv_cc_flag_unknown_warning_option=no
14463 fi
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465 fi
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14467 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14469 CFLAGS="$xorg_testset_save_CFLAGS"
14470 fi
14471
14472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14475 fi
14476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14478 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14479 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14480 $as_echo_n "(cached) " >&6
14481 else
14482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14483 /* end confdefs.h. */
14484 int i;
14485 _ACEOF
14486 if ac_fn_c_try_compile "$LINENO"; then :
14487 xorg_cv_cc_flag_unused_command_line_argument=yes
14488 else
14489 xorg_cv_cc_flag_unused_command_line_argument=no
14490 fi
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14494 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14496 CFLAGS="$xorg_testset_save_CFLAGS"
14497 fi
14498
14499 found="no"
14500
14501 if test $found = "no" ; then
14502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14504 fi
14505
14506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14508 fi
14509
14510 CFLAGS="$CFLAGS -Werror=implicit"
14511
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14513 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14514 cacheid=xorg_cv_cc_flag__Werror_implicit
14515 if eval \${$cacheid+:} false; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 int i;
14521 int
14522 main ()
14523 {
14524
14525 ;
14526 return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_link "$LINENO"; then :
14530 eval $cacheid=yes
14531 else
14532 eval $cacheid=no
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 fi
14537
14538
14539 CFLAGS="$xorg_testset_save_CFLAGS"
14540
14541 eval supported=\$$cacheid
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14543 $as_echo "$supported" >&6; }
14544 if test "$supported" = "yes" ; then
14545 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14546 found="yes"
14547 fi
14548 fi
14549
14550 if test $found = "no" ; then
14551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14553 fi
14554
14555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14557 fi
14558
14559 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14560
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14562 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14563 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14564 if eval \${$cacheid+:} false; then :
14565 $as_echo_n "(cached) " >&6
14566 else
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569 int i;
14570 int
14571 main ()
14572 {
14573
14574 ;
14575 return 0;
14576 }
14577 _ACEOF
14578 if ac_fn_c_try_link "$LINENO"; then :
14579 eval $cacheid=yes
14580 else
14581 eval $cacheid=no
14582 fi
14583 rm -f core conftest.err conftest.$ac_objext \
14584 conftest$ac_exeext conftest.$ac_ext
14585 fi
14586
14587
14588 CFLAGS="$xorg_testset_save_CFLAGS"
14589
14590 eval supported=\$$cacheid
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14592 $as_echo "$supported" >&6; }
14593 if test "$supported" = "yes" ; then
14594 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14595 found="yes"
14596 fi
14597 fi
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613 xorg_testset_save_CFLAGS="$CFLAGS"
14614
14615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14618 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14619 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624 int i;
14625 _ACEOF
14626 if ac_fn_c_try_compile "$LINENO"; then :
14627 xorg_cv_cc_flag_unknown_warning_option=yes
14628 else
14629 xorg_cv_cc_flag_unknown_warning_option=no
14630 fi
14631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14632 fi
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14634 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14636 CFLAGS="$xorg_testset_save_CFLAGS"
14637 fi
14638
14639 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14642 fi
14643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14645 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14646 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14647 $as_echo_n "(cached) " >&6
14648 else
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14651 int i;
14652 _ACEOF
14653 if ac_fn_c_try_compile "$LINENO"; then :
14654 xorg_cv_cc_flag_unused_command_line_argument=yes
14655 else
14656 xorg_cv_cc_flag_unused_command_line_argument=no
14657 fi
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659 fi
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14661 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14663 CFLAGS="$xorg_testset_save_CFLAGS"
14664 fi
14665
14666 found="no"
14667
14668 if test $found = "no" ; then
14669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14671 fi
14672
14673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14675 fi
14676
14677 CFLAGS="$CFLAGS -Werror=nonnull"
14678
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14680 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14681 cacheid=xorg_cv_cc_flag__Werror_nonnull
14682 if eval \${$cacheid+:} false; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14687 int i;
14688 int
14689 main ()
14690 {
14691
14692 ;
14693 return 0;
14694 }
14695 _ACEOF
14696 if ac_fn_c_try_link "$LINENO"; then :
14697 eval $cacheid=yes
14698 else
14699 eval $cacheid=no
14700 fi
14701 rm -f core conftest.err conftest.$ac_objext \
14702 conftest$ac_exeext conftest.$ac_ext
14703 fi
14704
14705
14706 CFLAGS="$xorg_testset_save_CFLAGS"
14707
14708 eval supported=\$$cacheid
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14710 $as_echo "$supported" >&6; }
14711 if test "$supported" = "yes" ; then
14712 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14713 found="yes"
14714 fi
14715 fi
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731 xorg_testset_save_CFLAGS="$CFLAGS"
14732
14733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14736 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14737 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14738 $as_echo_n "(cached) " >&6
14739 else
14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14742 int i;
14743 _ACEOF
14744 if ac_fn_c_try_compile "$LINENO"; then :
14745 xorg_cv_cc_flag_unknown_warning_option=yes
14746 else
14747 xorg_cv_cc_flag_unknown_warning_option=no
14748 fi
14749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750 fi
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14752 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14754 CFLAGS="$xorg_testset_save_CFLAGS"
14755 fi
14756
14757 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14760 fi
14761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14763 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14764 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14765 $as_echo_n "(cached) " >&6
14766 else
14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14769 int i;
14770 _ACEOF
14771 if ac_fn_c_try_compile "$LINENO"; then :
14772 xorg_cv_cc_flag_unused_command_line_argument=yes
14773 else
14774 xorg_cv_cc_flag_unused_command_line_argument=no
14775 fi
14776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 fi
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14779 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14780 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14781 CFLAGS="$xorg_testset_save_CFLAGS"
14782 fi
14783
14784 found="no"
14785
14786 if test $found = "no" ; then
14787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14789 fi
14790
14791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14793 fi
14794
14795 CFLAGS="$CFLAGS -Werror=init-self"
14796
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14798 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14799 cacheid=xorg_cv_cc_flag__Werror_init_self
14800 if eval \${$cacheid+:} false; then :
14801 $as_echo_n "(cached) " >&6
14802 else
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 int i;
14806 int
14807 main ()
14808 {
14809
14810 ;
14811 return 0;
14812 }
14813 _ACEOF
14814 if ac_fn_c_try_link "$LINENO"; then :
14815 eval $cacheid=yes
14816 else
14817 eval $cacheid=no
14818 fi
14819 rm -f core conftest.err conftest.$ac_objext \
14820 conftest$ac_exeext conftest.$ac_ext
14821 fi
14822
14823
14824 CFLAGS="$xorg_testset_save_CFLAGS"
14825
14826 eval supported=\$$cacheid
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14828 $as_echo "$supported" >&6; }
14829 if test "$supported" = "yes" ; then
14830 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14831 found="yes"
14832 fi
14833 fi
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849 xorg_testset_save_CFLAGS="$CFLAGS"
14850
14851 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14854 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14855 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14856 $as_echo_n "(cached) " >&6
14857 else
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14860 int i;
14861 _ACEOF
14862 if ac_fn_c_try_compile "$LINENO"; then :
14863 xorg_cv_cc_flag_unknown_warning_option=yes
14864 else
14865 xorg_cv_cc_flag_unknown_warning_option=no
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 fi
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14870 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14872 CFLAGS="$xorg_testset_save_CFLAGS"
14873 fi
14874
14875 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14878 fi
14879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14881 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14882 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14883 $as_echo_n "(cached) " >&6
14884 else
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14887 int i;
14888 _ACEOF
14889 if ac_fn_c_try_compile "$LINENO"; then :
14890 xorg_cv_cc_flag_unused_command_line_argument=yes
14891 else
14892 xorg_cv_cc_flag_unused_command_line_argument=no
14893 fi
14894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14895 fi
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14897 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14899 CFLAGS="$xorg_testset_save_CFLAGS"
14900 fi
14901
14902 found="no"
14903
14904 if test $found = "no" ; then
14905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14907 fi
14908
14909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14911 fi
14912
14913 CFLAGS="$CFLAGS -Werror=main"
14914
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14916 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14917 cacheid=xorg_cv_cc_flag__Werror_main
14918 if eval \${$cacheid+:} false; then :
14919 $as_echo_n "(cached) " >&6
14920 else
14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14923 int i;
14924 int
14925 main ()
14926 {
14927
14928 ;
14929 return 0;
14930 }
14931 _ACEOF
14932 if ac_fn_c_try_link "$LINENO"; then :
14933 eval $cacheid=yes
14934 else
14935 eval $cacheid=no
14936 fi
14937 rm -f core conftest.err conftest.$ac_objext \
14938 conftest$ac_exeext conftest.$ac_ext
14939 fi
14940
14941
14942 CFLAGS="$xorg_testset_save_CFLAGS"
14943
14944 eval supported=\$$cacheid
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14946 $as_echo "$supported" >&6; }
14947 if test "$supported" = "yes" ; then
14948 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14949 found="yes"
14950 fi
14951 fi
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967 xorg_testset_save_CFLAGS="$CFLAGS"
14968
14969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14972 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14973 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978 int i;
14979 _ACEOF
14980 if ac_fn_c_try_compile "$LINENO"; then :
14981 xorg_cv_cc_flag_unknown_warning_option=yes
14982 else
14983 xorg_cv_cc_flag_unknown_warning_option=no
14984 fi
14985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14986 fi
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14988 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14999 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15000 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15005 int i;
15006 _ACEOF
15007 if ac_fn_c_try_compile "$LINENO"; then :
15008 xorg_cv_cc_flag_unused_command_line_argument=yes
15009 else
15010 xorg_cv_cc_flag_unused_command_line_argument=no
15011 fi
15012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15013 fi
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15015 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15017 CFLAGS="$xorg_testset_save_CFLAGS"
15018 fi
15019
15020 found="no"
15021
15022 if test $found = "no" ; then
15023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15025 fi
15026
15027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15029 fi
15030
15031 CFLAGS="$CFLAGS -Werror=missing-braces"
15032
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15034 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15035 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15036 if eval \${$cacheid+:} false; then :
15037 $as_echo_n "(cached) " >&6
15038 else
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040 /* end confdefs.h. */
15041 int i;
15042 int
15043 main ()
15044 {
15045
15046 ;
15047 return 0;
15048 }
15049 _ACEOF
15050 if ac_fn_c_try_link "$LINENO"; then :
15051 eval $cacheid=yes
15052 else
15053 eval $cacheid=no
15054 fi
15055 rm -f core conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
15057 fi
15058
15059
15060 CFLAGS="$xorg_testset_save_CFLAGS"
15061
15062 eval supported=\$$cacheid
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15064 $as_echo "$supported" >&6; }
15065 if test "$supported" = "yes" ; then
15066 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15067 found="yes"
15068 fi
15069 fi
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085 xorg_testset_save_CFLAGS="$CFLAGS"
15086
15087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15090 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15091 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15092 $as_echo_n "(cached) " >&6
15093 else
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15096 int i;
15097 _ACEOF
15098 if ac_fn_c_try_compile "$LINENO"; then :
15099 xorg_cv_cc_flag_unknown_warning_option=yes
15100 else
15101 xorg_cv_cc_flag_unknown_warning_option=no
15102 fi
15103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15104 fi
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15106 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15108 CFLAGS="$xorg_testset_save_CFLAGS"
15109 fi
15110
15111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15114 fi
15115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15117 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15118 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15119 $as_echo_n "(cached) " >&6
15120 else
15121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15122 /* end confdefs.h. */
15123 int i;
15124 _ACEOF
15125 if ac_fn_c_try_compile "$LINENO"; then :
15126 xorg_cv_cc_flag_unused_command_line_argument=yes
15127 else
15128 xorg_cv_cc_flag_unused_command_line_argument=no
15129 fi
15130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15131 fi
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15133 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15135 CFLAGS="$xorg_testset_save_CFLAGS"
15136 fi
15137
15138 found="no"
15139
15140 if test $found = "no" ; then
15141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15143 fi
15144
15145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15147 fi
15148
15149 CFLAGS="$CFLAGS -Werror=sequence-point"
15150
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15152 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15153 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15154 if eval \${$cacheid+:} false; then :
15155 $as_echo_n "(cached) " >&6
15156 else
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 int i;
15160 int
15161 main ()
15162 {
15163
15164 ;
15165 return 0;
15166 }
15167 _ACEOF
15168 if ac_fn_c_try_link "$LINENO"; then :
15169 eval $cacheid=yes
15170 else
15171 eval $cacheid=no
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext conftest.$ac_ext
15175 fi
15176
15177
15178 CFLAGS="$xorg_testset_save_CFLAGS"
15179
15180 eval supported=\$$cacheid
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15182 $as_echo "$supported" >&6; }
15183 if test "$supported" = "yes" ; then
15184 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15185 found="yes"
15186 fi
15187 fi
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203 xorg_testset_save_CFLAGS="$CFLAGS"
15204
15205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15208 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15209 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214 int i;
15215 _ACEOF
15216 if ac_fn_c_try_compile "$LINENO"; then :
15217 xorg_cv_cc_flag_unknown_warning_option=yes
15218 else
15219 xorg_cv_cc_flag_unknown_warning_option=no
15220 fi
15221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 fi
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15224 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15226 CFLAGS="$xorg_testset_save_CFLAGS"
15227 fi
15228
15229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15232 fi
15233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15236 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15237 $as_echo_n "(cached) " >&6
15238 else
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15241 int i;
15242 _ACEOF
15243 if ac_fn_c_try_compile "$LINENO"; then :
15244 xorg_cv_cc_flag_unused_command_line_argument=yes
15245 else
15246 xorg_cv_cc_flag_unused_command_line_argument=no
15247 fi
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 fi
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15251 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15253 CFLAGS="$xorg_testset_save_CFLAGS"
15254 fi
15255
15256 found="no"
15257
15258 if test $found = "no" ; then
15259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15261 fi
15262
15263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15265 fi
15266
15267 CFLAGS="$CFLAGS -Werror=return-type"
15268
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15270 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15271 cacheid=xorg_cv_cc_flag__Werror_return_type
15272 if eval \${$cacheid+:} false; then :
15273 $as_echo_n "(cached) " >&6
15274 else
15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h. */
15277 int i;
15278 int
15279 main ()
15280 {
15281
15282 ;
15283 return 0;
15284 }
15285 _ACEOF
15286 if ac_fn_c_try_link "$LINENO"; then :
15287 eval $cacheid=yes
15288 else
15289 eval $cacheid=no
15290 fi
15291 rm -f core conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
15293 fi
15294
15295
15296 CFLAGS="$xorg_testset_save_CFLAGS"
15297
15298 eval supported=\$$cacheid
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15300 $as_echo "$supported" >&6; }
15301 if test "$supported" = "yes" ; then
15302 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15303 found="yes"
15304 fi
15305 fi
15306
15307 if test $found = "no" ; then
15308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15310 fi
15311
15312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15314 fi
15315
15316 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15317
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15319 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15320 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15321 if eval \${$cacheid+:} false; then :
15322 $as_echo_n "(cached) " >&6
15323 else
15324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325 /* end confdefs.h. */
15326 int i;
15327 int
15328 main ()
15329 {
15330
15331 ;
15332 return 0;
15333 }
15334 _ACEOF
15335 if ac_fn_c_try_link "$LINENO"; then :
15336 eval $cacheid=yes
15337 else
15338 eval $cacheid=no
15339 fi
15340 rm -f core conftest.err conftest.$ac_objext \
15341 conftest$ac_exeext conftest.$ac_ext
15342 fi
15343
15344
15345 CFLAGS="$xorg_testset_save_CFLAGS"
15346
15347 eval supported=\$$cacheid
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15349 $as_echo "$supported" >&6; }
15350 if test "$supported" = "yes" ; then
15351 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15352 found="yes"
15353 fi
15354 fi
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370 xorg_testset_save_CFLAGS="$CFLAGS"
15371
15372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15375 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15376 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15377 $as_echo_n "(cached) " >&6
15378 else
15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15381 int i;
15382 _ACEOF
15383 if ac_fn_c_try_compile "$LINENO"; then :
15384 xorg_cv_cc_flag_unknown_warning_option=yes
15385 else
15386 xorg_cv_cc_flag_unknown_warning_option=no
15387 fi
15388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15389 fi
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15391 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15393 CFLAGS="$xorg_testset_save_CFLAGS"
15394 fi
15395
15396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15399 fi
15400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15402 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15403 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15404 $as_echo_n "(cached) " >&6
15405 else
15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408 int i;
15409 _ACEOF
15410 if ac_fn_c_try_compile "$LINENO"; then :
15411 xorg_cv_cc_flag_unused_command_line_argument=yes
15412 else
15413 xorg_cv_cc_flag_unused_command_line_argument=no
15414 fi
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 fi
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15418 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15420 CFLAGS="$xorg_testset_save_CFLAGS"
15421 fi
15422
15423 found="no"
15424
15425 if test $found = "no" ; then
15426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15428 fi
15429
15430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15432 fi
15433
15434 CFLAGS="$CFLAGS -Werror=trigraphs"
15435
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15437 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15438 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15439 if eval \${$cacheid+:} false; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15444 int i;
15445 int
15446 main ()
15447 {
15448
15449 ;
15450 return 0;
15451 }
15452 _ACEOF
15453 if ac_fn_c_try_link "$LINENO"; then :
15454 eval $cacheid=yes
15455 else
15456 eval $cacheid=no
15457 fi
15458 rm -f core conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
15460 fi
15461
15462
15463 CFLAGS="$xorg_testset_save_CFLAGS"
15464
15465 eval supported=\$$cacheid
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15467 $as_echo "$supported" >&6; }
15468 if test "$supported" = "yes" ; then
15469 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15470 found="yes"
15471 fi
15472 fi
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488 xorg_testset_save_CFLAGS="$CFLAGS"
15489
15490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15493 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15494 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15495 $as_echo_n "(cached) " >&6
15496 else
15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h. */
15499 int i;
15500 _ACEOF
15501 if ac_fn_c_try_compile "$LINENO"; then :
15502 xorg_cv_cc_flag_unknown_warning_option=yes
15503 else
15504 xorg_cv_cc_flag_unknown_warning_option=no
15505 fi
15506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507 fi
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15509 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15511 CFLAGS="$xorg_testset_save_CFLAGS"
15512 fi
15513
15514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15517 fi
15518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15520 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15521 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15522 $as_echo_n "(cached) " >&6
15523 else
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15526 int i;
15527 _ACEOF
15528 if ac_fn_c_try_compile "$LINENO"; then :
15529 xorg_cv_cc_flag_unused_command_line_argument=yes
15530 else
15531 xorg_cv_cc_flag_unused_command_line_argument=no
15532 fi
15533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15534 fi
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15536 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15538 CFLAGS="$xorg_testset_save_CFLAGS"
15539 fi
15540
15541 found="no"
15542
15543 if test $found = "no" ; then
15544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15546 fi
15547
15548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15550 fi
15551
15552 CFLAGS="$CFLAGS -Werror=array-bounds"
15553
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15555 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15556 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15557 if eval \${$cacheid+:} false; then :
15558 $as_echo_n "(cached) " >&6
15559 else
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 int i;
15563 int
15564 main ()
15565 {
15566
15567 ;
15568 return 0;
15569 }
15570 _ACEOF
15571 if ac_fn_c_try_link "$LINENO"; then :
15572 eval $cacheid=yes
15573 else
15574 eval $cacheid=no
15575 fi
15576 rm -f core conftest.err conftest.$ac_objext \
15577 conftest$ac_exeext conftest.$ac_ext
15578 fi
15579
15580
15581 CFLAGS="$xorg_testset_save_CFLAGS"
15582
15583 eval supported=\$$cacheid
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15585 $as_echo "$supported" >&6; }
15586 if test "$supported" = "yes" ; then
15587 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15588 found="yes"
15589 fi
15590 fi
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606 xorg_testset_save_CFLAGS="$CFLAGS"
15607
15608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15611 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15612 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15613 $as_echo_n "(cached) " >&6
15614 else
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h. */
15617 int i;
15618 _ACEOF
15619 if ac_fn_c_try_compile "$LINENO"; then :
15620 xorg_cv_cc_flag_unknown_warning_option=yes
15621 else
15622 xorg_cv_cc_flag_unknown_warning_option=no
15623 fi
15624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625 fi
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15627 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15629 CFLAGS="$xorg_testset_save_CFLAGS"
15630 fi
15631
15632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15635 fi
15636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15638 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15639 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15640 $as_echo_n "(cached) " >&6
15641 else
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644 int i;
15645 _ACEOF
15646 if ac_fn_c_try_compile "$LINENO"; then :
15647 xorg_cv_cc_flag_unused_command_line_argument=yes
15648 else
15649 xorg_cv_cc_flag_unused_command_line_argument=no
15650 fi
15651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15652 fi
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15654 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15656 CFLAGS="$xorg_testset_save_CFLAGS"
15657 fi
15658
15659 found="no"
15660
15661 if test $found = "no" ; then
15662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15664 fi
15665
15666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15668 fi
15669
15670 CFLAGS="$CFLAGS -Werror=write-strings"
15671
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15673 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15674 cacheid=xorg_cv_cc_flag__Werror_write_strings
15675 if eval \${$cacheid+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 int i;
15681 int
15682 main ()
15683 {
15684
15685 ;
15686 return 0;
15687 }
15688 _ACEOF
15689 if ac_fn_c_try_link "$LINENO"; then :
15690 eval $cacheid=yes
15691 else
15692 eval $cacheid=no
15693 fi
15694 rm -f core conftest.err conftest.$ac_objext \
15695 conftest$ac_exeext conftest.$ac_ext
15696 fi
15697
15698
15699 CFLAGS="$xorg_testset_save_CFLAGS"
15700
15701 eval supported=\$$cacheid
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15703 $as_echo "$supported" >&6; }
15704 if test "$supported" = "yes" ; then
15705 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15706 found="yes"
15707 fi
15708 fi
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724 xorg_testset_save_CFLAGS="$CFLAGS"
15725
15726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15731 $as_echo_n "(cached) " >&6
15732 else
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15735 int i;
15736 _ACEOF
15737 if ac_fn_c_try_compile "$LINENO"; then :
15738 xorg_cv_cc_flag_unknown_warning_option=yes
15739 else
15740 xorg_cv_cc_flag_unknown_warning_option=no
15741 fi
15742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743 fi
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15747 CFLAGS="$xorg_testset_save_CFLAGS"
15748 fi
15749
15750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15753 fi
15754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15758 $as_echo_n "(cached) " >&6
15759 else
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15762 int i;
15763 _ACEOF
15764 if ac_fn_c_try_compile "$LINENO"; then :
15765 xorg_cv_cc_flag_unused_command_line_argument=yes
15766 else
15767 xorg_cv_cc_flag_unused_command_line_argument=no
15768 fi
15769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 fi
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15774 CFLAGS="$xorg_testset_save_CFLAGS"
15775 fi
15776
15777 found="no"
15778
15779 if test $found = "no" ; then
15780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15782 fi
15783
15784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15786 fi
15787
15788 CFLAGS="$CFLAGS -Werror=address"
15789
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15791 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15792 cacheid=xorg_cv_cc_flag__Werror_address
15793 if eval \${$cacheid+:} false; then :
15794 $as_echo_n "(cached) " >&6
15795 else
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 int i;
15799 int
15800 main ()
15801 {
15802
15803 ;
15804 return 0;
15805 }
15806 _ACEOF
15807 if ac_fn_c_try_link "$LINENO"; then :
15808 eval $cacheid=yes
15809 else
15810 eval $cacheid=no
15811 fi
15812 rm -f core conftest.err conftest.$ac_objext \
15813 conftest$ac_exeext conftest.$ac_ext
15814 fi
15815
15816
15817 CFLAGS="$xorg_testset_save_CFLAGS"
15818
15819 eval supported=\$$cacheid
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15821 $as_echo "$supported" >&6; }
15822 if test "$supported" = "yes" ; then
15823 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15824 found="yes"
15825 fi
15826 fi
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842 xorg_testset_save_CFLAGS="$CFLAGS"
15843
15844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15849 $as_echo_n "(cached) " >&6
15850 else
15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15853 int i;
15854 _ACEOF
15855 if ac_fn_c_try_compile "$LINENO"; then :
15856 xorg_cv_cc_flag_unknown_warning_option=yes
15857 else
15858 xorg_cv_cc_flag_unknown_warning_option=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 fi
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15865 CFLAGS="$xorg_testset_save_CFLAGS"
15866 fi
15867
15868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15871 fi
15872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15876 $as_echo_n "(cached) " >&6
15877 else
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 int i;
15881 _ACEOF
15882 if ac_fn_c_try_compile "$LINENO"; then :
15883 xorg_cv_cc_flag_unused_command_line_argument=yes
15884 else
15885 xorg_cv_cc_flag_unused_command_line_argument=no
15886 fi
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888 fi
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15892 CFLAGS="$xorg_testset_save_CFLAGS"
15893 fi
15894
15895 found="no"
15896
15897 if test $found = "no" ; then
15898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15900 fi
15901
15902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15904 fi
15905
15906 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15907
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15909 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15910 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15911 if eval \${$cacheid+:} false; then :
15912 $as_echo_n "(cached) " >&6
15913 else
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916 int i;
15917 int
15918 main ()
15919 {
15920
15921 ;
15922 return 0;
15923 }
15924 _ACEOF
15925 if ac_fn_c_try_link "$LINENO"; then :
15926 eval $cacheid=yes
15927 else
15928 eval $cacheid=no
15929 fi
15930 rm -f core conftest.err conftest.$ac_objext \
15931 conftest$ac_exeext conftest.$ac_ext
15932 fi
15933
15934
15935 CFLAGS="$xorg_testset_save_CFLAGS"
15936
15937 eval supported=\$$cacheid
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15939 $as_echo "$supported" >&6; }
15940 if test "$supported" = "yes" ; then
15941 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15942 found="yes"
15943 fi
15944 fi
15945
15946 if test $found = "no" ; then
15947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15949 fi
15950
15951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15953 fi
15954
15955 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15956
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15958 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15959 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15960 if eval \${$cacheid+:} false; then :
15961 $as_echo_n "(cached) " >&6
15962 else
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964 /* end confdefs.h. */
15965 int i;
15966 int
15967 main ()
15968 {
15969
15970 ;
15971 return 0;
15972 }
15973 _ACEOF
15974 if ac_fn_c_try_link "$LINENO"; then :
15975 eval $cacheid=yes
15976 else
15977 eval $cacheid=no
15978 fi
15979 rm -f core conftest.err conftest.$ac_objext \
15980 conftest$ac_exeext conftest.$ac_ext
15981 fi
15982
15983
15984 CFLAGS="$xorg_testset_save_CFLAGS"
15985
15986 eval supported=\$$cacheid
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15988 $as_echo "$supported" >&6; }
15989 if test "$supported" = "yes" ; then
15990 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15991 found="yes"
15992 fi
15993 fi
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009 xorg_testset_save_CFLAGS="$CFLAGS"
16010
16011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16014 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16015 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16016 $as_echo_n "(cached) " >&6
16017 else
16018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019 /* end confdefs.h. */
16020 int i;
16021 _ACEOF
16022 if ac_fn_c_try_compile "$LINENO"; then :
16023 xorg_cv_cc_flag_unknown_warning_option=yes
16024 else
16025 xorg_cv_cc_flag_unknown_warning_option=no
16026 fi
16027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 fi
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16030 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16032 CFLAGS="$xorg_testset_save_CFLAGS"
16033 fi
16034
16035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16038 fi
16039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16041 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16042 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16043 $as_echo_n "(cached) " >&6
16044 else
16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046 /* end confdefs.h. */
16047 int i;
16048 _ACEOF
16049 if ac_fn_c_try_compile "$LINENO"; then :
16050 xorg_cv_cc_flag_unused_command_line_argument=yes
16051 else
16052 xorg_cv_cc_flag_unused_command_line_argument=no
16053 fi
16054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 fi
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16057 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16059 CFLAGS="$xorg_testset_save_CFLAGS"
16060 fi
16061
16062 found="no"
16063
16064 if test $found = "no" ; then
16065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16067 fi
16068
16069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16071 fi
16072
16073 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16074
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16076 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16077 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16078 if eval \${$cacheid+:} false; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 int i;
16084 int
16085 main ()
16086 {
16087
16088 ;
16089 return 0;
16090 }
16091 _ACEOF
16092 if ac_fn_c_try_link "$LINENO"; then :
16093 eval $cacheid=yes
16094 else
16095 eval $cacheid=no
16096 fi
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16099 fi
16100
16101
16102 CFLAGS="$xorg_testset_save_CFLAGS"
16103
16104 eval supported=\$$cacheid
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16106 $as_echo "$supported" >&6; }
16107 if test "$supported" = "yes" ; then
16108 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16109 found="yes"
16110 fi
16111 fi
16112
16113 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16114 else
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
16116 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130 xorg_testset_save_CFLAGS="$CFLAGS"
16131
16132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16135 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16136 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16137 $as_echo_n "(cached) " >&6
16138 else
16139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16140 /* end confdefs.h. */
16141 int i;
16142 _ACEOF
16143 if ac_fn_c_try_compile "$LINENO"; then :
16144 xorg_cv_cc_flag_unknown_warning_option=yes
16145 else
16146 xorg_cv_cc_flag_unknown_warning_option=no
16147 fi
16148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16149 fi
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16151 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16153 CFLAGS="$xorg_testset_save_CFLAGS"
16154 fi
16155
16156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16159 fi
16160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16162 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16163 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16164 $as_echo_n "(cached) " >&6
16165 else
16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 /* end confdefs.h. */
16168 int i;
16169 _ACEOF
16170 if ac_fn_c_try_compile "$LINENO"; then :
16171 xorg_cv_cc_flag_unused_command_line_argument=yes
16172 else
16173 xorg_cv_cc_flag_unused_command_line_argument=no
16174 fi
16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16176 fi
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16178 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16180 CFLAGS="$xorg_testset_save_CFLAGS"
16181 fi
16182
16183 found="no"
16184
16185 if test $found = "no" ; then
16186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16188 fi
16189
16190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16192 fi
16193
16194 CFLAGS="$CFLAGS -Wimplicit"
16195
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16197 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16198 cacheid=xorg_cv_cc_flag__Wimplicit
16199 if eval \${$cacheid+:} false; then :
16200 $as_echo_n "(cached) " >&6
16201 else
16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16204 int i;
16205 int
16206 main ()
16207 {
16208
16209 ;
16210 return 0;
16211 }
16212 _ACEOF
16213 if ac_fn_c_try_link "$LINENO"; then :
16214 eval $cacheid=yes
16215 else
16216 eval $cacheid=no
16217 fi
16218 rm -f core conftest.err conftest.$ac_objext \
16219 conftest$ac_exeext conftest.$ac_ext
16220 fi
16221
16222
16223 CFLAGS="$xorg_testset_save_CFLAGS"
16224
16225 eval supported=\$$cacheid
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16227 $as_echo "$supported" >&6; }
16228 if test "$supported" = "yes" ; then
16229 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16230 found="yes"
16231 fi
16232 fi
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248 xorg_testset_save_CFLAGS="$CFLAGS"
16249
16250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16255 $as_echo_n "(cached) " >&6
16256 else
16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16259 int i;
16260 _ACEOF
16261 if ac_fn_c_try_compile "$LINENO"; then :
16262 xorg_cv_cc_flag_unknown_warning_option=yes
16263 else
16264 xorg_cv_cc_flag_unknown_warning_option=no
16265 fi
16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267 fi
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16271 CFLAGS="$xorg_testset_save_CFLAGS"
16272 fi
16273
16274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16277 fi
16278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16282 $as_echo_n "(cached) " >&6
16283 else
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16286 int i;
16287 _ACEOF
16288 if ac_fn_c_try_compile "$LINENO"; then :
16289 xorg_cv_cc_flag_unused_command_line_argument=yes
16290 else
16291 xorg_cv_cc_flag_unused_command_line_argument=no
16292 fi
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294 fi
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16298 CFLAGS="$xorg_testset_save_CFLAGS"
16299 fi
16300
16301 found="no"
16302
16303 if test $found = "no" ; then
16304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16306 fi
16307
16308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16310 fi
16311
16312 CFLAGS="$CFLAGS -Wnonnull"
16313
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16315 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16316 cacheid=xorg_cv_cc_flag__Wnonnull
16317 if eval \${$cacheid+:} false; then :
16318 $as_echo_n "(cached) " >&6
16319 else
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16322 int i;
16323 int
16324 main ()
16325 {
16326
16327 ;
16328 return 0;
16329 }
16330 _ACEOF
16331 if ac_fn_c_try_link "$LINENO"; then :
16332 eval $cacheid=yes
16333 else
16334 eval $cacheid=no
16335 fi
16336 rm -f core conftest.err conftest.$ac_objext \
16337 conftest$ac_exeext conftest.$ac_ext
16338 fi
16339
16340
16341 CFLAGS="$xorg_testset_save_CFLAGS"
16342
16343 eval supported=\$$cacheid
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16345 $as_echo "$supported" >&6; }
16346 if test "$supported" = "yes" ; then
16347 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16348 found="yes"
16349 fi
16350 fi
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366 xorg_testset_save_CFLAGS="$CFLAGS"
16367
16368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16373 $as_echo_n "(cached) " >&6
16374 else
16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376 /* end confdefs.h. */
16377 int i;
16378 _ACEOF
16379 if ac_fn_c_try_compile "$LINENO"; then :
16380 xorg_cv_cc_flag_unknown_warning_option=yes
16381 else
16382 xorg_cv_cc_flag_unknown_warning_option=no
16383 fi
16384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16385 fi
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16389 CFLAGS="$xorg_testset_save_CFLAGS"
16390 fi
16391
16392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16395 fi
16396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16400 $as_echo_n "(cached) " >&6
16401 else
16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403 /* end confdefs.h. */
16404 int i;
16405 _ACEOF
16406 if ac_fn_c_try_compile "$LINENO"; then :
16407 xorg_cv_cc_flag_unused_command_line_argument=yes
16408 else
16409 xorg_cv_cc_flag_unused_command_line_argument=no
16410 fi
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 fi
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16416 CFLAGS="$xorg_testset_save_CFLAGS"
16417 fi
16418
16419 found="no"
16420
16421 if test $found = "no" ; then
16422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16424 fi
16425
16426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16428 fi
16429
16430 CFLAGS="$CFLAGS -Winit-self"
16431
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16433 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16434 cacheid=xorg_cv_cc_flag__Winit_self
16435 if eval \${$cacheid+:} false; then :
16436 $as_echo_n "(cached) " >&6
16437 else
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 int i;
16441 int
16442 main ()
16443 {
16444
16445 ;
16446 return 0;
16447 }
16448 _ACEOF
16449 if ac_fn_c_try_link "$LINENO"; then :
16450 eval $cacheid=yes
16451 else
16452 eval $cacheid=no
16453 fi
16454 rm -f core conftest.err conftest.$ac_objext \
16455 conftest$ac_exeext conftest.$ac_ext
16456 fi
16457
16458
16459 CFLAGS="$xorg_testset_save_CFLAGS"
16460
16461 eval supported=\$$cacheid
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16463 $as_echo "$supported" >&6; }
16464 if test "$supported" = "yes" ; then
16465 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16466 found="yes"
16467 fi
16468 fi
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484 xorg_testset_save_CFLAGS="$CFLAGS"
16485
16486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16491 $as_echo_n "(cached) " >&6
16492 else
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16495 int i;
16496 _ACEOF
16497 if ac_fn_c_try_compile "$LINENO"; then :
16498 xorg_cv_cc_flag_unknown_warning_option=yes
16499 else
16500 xorg_cv_cc_flag_unknown_warning_option=no
16501 fi
16502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16503 fi
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16507 CFLAGS="$xorg_testset_save_CFLAGS"
16508 fi
16509
16510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16513 fi
16514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16518 $as_echo_n "(cached) " >&6
16519 else
16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16522 int i;
16523 _ACEOF
16524 if ac_fn_c_try_compile "$LINENO"; then :
16525 xorg_cv_cc_flag_unused_command_line_argument=yes
16526 else
16527 xorg_cv_cc_flag_unused_command_line_argument=no
16528 fi
16529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530 fi
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16534 CFLAGS="$xorg_testset_save_CFLAGS"
16535 fi
16536
16537 found="no"
16538
16539 if test $found = "no" ; then
16540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16542 fi
16543
16544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16546 fi
16547
16548 CFLAGS="$CFLAGS -Wmain"
16549
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16551 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16552 cacheid=xorg_cv_cc_flag__Wmain
16553 if eval \${$cacheid+:} false; then :
16554 $as_echo_n "(cached) " >&6
16555 else
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h. */
16558 int i;
16559 int
16560 main ()
16561 {
16562
16563 ;
16564 return 0;
16565 }
16566 _ACEOF
16567 if ac_fn_c_try_link "$LINENO"; then :
16568 eval $cacheid=yes
16569 else
16570 eval $cacheid=no
16571 fi
16572 rm -f core conftest.err conftest.$ac_objext \
16573 conftest$ac_exeext conftest.$ac_ext
16574 fi
16575
16576
16577 CFLAGS="$xorg_testset_save_CFLAGS"
16578
16579 eval supported=\$$cacheid
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16581 $as_echo "$supported" >&6; }
16582 if test "$supported" = "yes" ; then
16583 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16584 found="yes"
16585 fi
16586 fi
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602 xorg_testset_save_CFLAGS="$CFLAGS"
16603
16604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16609 $as_echo_n "(cached) " >&6
16610 else
16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h. */
16613 int i;
16614 _ACEOF
16615 if ac_fn_c_try_compile "$LINENO"; then :
16616 xorg_cv_cc_flag_unknown_warning_option=yes
16617 else
16618 xorg_cv_cc_flag_unknown_warning_option=no
16619 fi
16620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621 fi
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16625 CFLAGS="$xorg_testset_save_CFLAGS"
16626 fi
16627
16628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16631 fi
16632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16636 $as_echo_n "(cached) " >&6
16637 else
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 int i;
16641 _ACEOF
16642 if ac_fn_c_try_compile "$LINENO"; then :
16643 xorg_cv_cc_flag_unused_command_line_argument=yes
16644 else
16645 xorg_cv_cc_flag_unused_command_line_argument=no
16646 fi
16647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648 fi
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16652 CFLAGS="$xorg_testset_save_CFLAGS"
16653 fi
16654
16655 found="no"
16656
16657 if test $found = "no" ; then
16658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16660 fi
16661
16662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16664 fi
16665
16666 CFLAGS="$CFLAGS -Wmissing-braces"
16667
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16669 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16670 cacheid=xorg_cv_cc_flag__Wmissing_braces
16671 if eval \${$cacheid+:} false; then :
16672 $as_echo_n "(cached) " >&6
16673 else
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16676 int i;
16677 int
16678 main ()
16679 {
16680
16681 ;
16682 return 0;
16683 }
16684 _ACEOF
16685 if ac_fn_c_try_link "$LINENO"; then :
16686 eval $cacheid=yes
16687 else
16688 eval $cacheid=no
16689 fi
16690 rm -f core conftest.err conftest.$ac_objext \
16691 conftest$ac_exeext conftest.$ac_ext
16692 fi
16693
16694
16695 CFLAGS="$xorg_testset_save_CFLAGS"
16696
16697 eval supported=\$$cacheid
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16699 $as_echo "$supported" >&6; }
16700 if test "$supported" = "yes" ; then
16701 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16702 found="yes"
16703 fi
16704 fi
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720 xorg_testset_save_CFLAGS="$CFLAGS"
16721
16722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16727 $as_echo_n "(cached) " >&6
16728 else
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16731 int i;
16732 _ACEOF
16733 if ac_fn_c_try_compile "$LINENO"; then :
16734 xorg_cv_cc_flag_unknown_warning_option=yes
16735 else
16736 xorg_cv_cc_flag_unknown_warning_option=no
16737 fi
16738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16739 fi
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16743 CFLAGS="$xorg_testset_save_CFLAGS"
16744 fi
16745
16746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16749 fi
16750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16754 $as_echo_n "(cached) " >&6
16755 else
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16758 int i;
16759 _ACEOF
16760 if ac_fn_c_try_compile "$LINENO"; then :
16761 xorg_cv_cc_flag_unused_command_line_argument=yes
16762 else
16763 xorg_cv_cc_flag_unused_command_line_argument=no
16764 fi
16765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16766 fi
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16770 CFLAGS="$xorg_testset_save_CFLAGS"
16771 fi
16772
16773 found="no"
16774
16775 if test $found = "no" ; then
16776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16778 fi
16779
16780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16782 fi
16783
16784 CFLAGS="$CFLAGS -Wsequence-point"
16785
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16787 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16788 cacheid=xorg_cv_cc_flag__Wsequence_point
16789 if eval \${$cacheid+:} false; then :
16790 $as_echo_n "(cached) " >&6
16791 else
16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16794 int i;
16795 int
16796 main ()
16797 {
16798
16799 ;
16800 return 0;
16801 }
16802 _ACEOF
16803 if ac_fn_c_try_link "$LINENO"; then :
16804 eval $cacheid=yes
16805 else
16806 eval $cacheid=no
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16810 fi
16811
16812
16813 CFLAGS="$xorg_testset_save_CFLAGS"
16814
16815 eval supported=\$$cacheid
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16817 $as_echo "$supported" >&6; }
16818 if test "$supported" = "yes" ; then
16819 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16820 found="yes"
16821 fi
16822 fi
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838 xorg_testset_save_CFLAGS="$CFLAGS"
16839
16840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16845 $as_echo_n "(cached) " >&6
16846 else
16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h. */
16849 int i;
16850 _ACEOF
16851 if ac_fn_c_try_compile "$LINENO"; then :
16852 xorg_cv_cc_flag_unknown_warning_option=yes
16853 else
16854 xorg_cv_cc_flag_unknown_warning_option=no
16855 fi
16856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857 fi
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16861 CFLAGS="$xorg_testset_save_CFLAGS"
16862 fi
16863
16864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16867 fi
16868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16872 $as_echo_n "(cached) " >&6
16873 else
16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16876 int i;
16877 _ACEOF
16878 if ac_fn_c_try_compile "$LINENO"; then :
16879 xorg_cv_cc_flag_unused_command_line_argument=yes
16880 else
16881 xorg_cv_cc_flag_unused_command_line_argument=no
16882 fi
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 fi
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16888 CFLAGS="$xorg_testset_save_CFLAGS"
16889 fi
16890
16891 found="no"
16892
16893 if test $found = "no" ; then
16894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16896 fi
16897
16898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16900 fi
16901
16902 CFLAGS="$CFLAGS -Wreturn-type"
16903
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16905 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16906 cacheid=xorg_cv_cc_flag__Wreturn_type
16907 if eval \${$cacheid+:} false; then :
16908 $as_echo_n "(cached) " >&6
16909 else
16910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h. */
16912 int i;
16913 int
16914 main ()
16915 {
16916
16917 ;
16918 return 0;
16919 }
16920 _ACEOF
16921 if ac_fn_c_try_link "$LINENO"; then :
16922 eval $cacheid=yes
16923 else
16924 eval $cacheid=no
16925 fi
16926 rm -f core conftest.err conftest.$ac_objext \
16927 conftest$ac_exeext conftest.$ac_ext
16928 fi
16929
16930
16931 CFLAGS="$xorg_testset_save_CFLAGS"
16932
16933 eval supported=\$$cacheid
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16935 $as_echo "$supported" >&6; }
16936 if test "$supported" = "yes" ; then
16937 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16938 found="yes"
16939 fi
16940 fi
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956 xorg_testset_save_CFLAGS="$CFLAGS"
16957
16958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16963 $as_echo_n "(cached) " >&6
16964 else
16965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966 /* end confdefs.h. */
16967 int i;
16968 _ACEOF
16969 if ac_fn_c_try_compile "$LINENO"; then :
16970 xorg_cv_cc_flag_unknown_warning_option=yes
16971 else
16972 xorg_cv_cc_flag_unknown_warning_option=no
16973 fi
16974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975 fi
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16979 CFLAGS="$xorg_testset_save_CFLAGS"
16980 fi
16981
16982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16985 fi
16986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16990 $as_echo_n "(cached) " >&6
16991 else
16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16994 int i;
16995 _ACEOF
16996 if ac_fn_c_try_compile "$LINENO"; then :
16997 xorg_cv_cc_flag_unused_command_line_argument=yes
16998 else
16999 xorg_cv_cc_flag_unused_command_line_argument=no
17000 fi
17001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17002 fi
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17006 CFLAGS="$xorg_testset_save_CFLAGS"
17007 fi
17008
17009 found="no"
17010
17011 if test $found = "no" ; then
17012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17014 fi
17015
17016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17018 fi
17019
17020 CFLAGS="$CFLAGS -Wtrigraphs"
17021
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17023 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17024 cacheid=xorg_cv_cc_flag__Wtrigraphs
17025 if eval \${$cacheid+:} false; then :
17026 $as_echo_n "(cached) " >&6
17027 else
17028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029 /* end confdefs.h. */
17030 int i;
17031 int
17032 main ()
17033 {
17034
17035 ;
17036 return 0;
17037 }
17038 _ACEOF
17039 if ac_fn_c_try_link "$LINENO"; then :
17040 eval $cacheid=yes
17041 else
17042 eval $cacheid=no
17043 fi
17044 rm -f core conftest.err conftest.$ac_objext \
17045 conftest$ac_exeext conftest.$ac_ext
17046 fi
17047
17048
17049 CFLAGS="$xorg_testset_save_CFLAGS"
17050
17051 eval supported=\$$cacheid
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17053 $as_echo "$supported" >&6; }
17054 if test "$supported" = "yes" ; then
17055 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17056 found="yes"
17057 fi
17058 fi
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074 xorg_testset_save_CFLAGS="$CFLAGS"
17075
17076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17079 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17080 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17081 $as_echo_n "(cached) " >&6
17082 else
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17085 int i;
17086 _ACEOF
17087 if ac_fn_c_try_compile "$LINENO"; then :
17088 xorg_cv_cc_flag_unknown_warning_option=yes
17089 else
17090 xorg_cv_cc_flag_unknown_warning_option=no
17091 fi
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093 fi
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17095 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17097 CFLAGS="$xorg_testset_save_CFLAGS"
17098 fi
17099
17100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17103 fi
17104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17106 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17107 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17108 $as_echo_n "(cached) " >&6
17109 else
17110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111 /* end confdefs.h. */
17112 int i;
17113 _ACEOF
17114 if ac_fn_c_try_compile "$LINENO"; then :
17115 xorg_cv_cc_flag_unused_command_line_argument=yes
17116 else
17117 xorg_cv_cc_flag_unused_command_line_argument=no
17118 fi
17119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17120 fi
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17122 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17124 CFLAGS="$xorg_testset_save_CFLAGS"
17125 fi
17126
17127 found="no"
17128
17129 if test $found = "no" ; then
17130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17132 fi
17133
17134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17136 fi
17137
17138 CFLAGS="$CFLAGS -Warray-bounds"
17139
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17141 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17142 cacheid=xorg_cv_cc_flag__Warray_bounds
17143 if eval \${$cacheid+:} false; then :
17144 $as_echo_n "(cached) " >&6
17145 else
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17148 int i;
17149 int
17150 main ()
17151 {
17152
17153 ;
17154 return 0;
17155 }
17156 _ACEOF
17157 if ac_fn_c_try_link "$LINENO"; then :
17158 eval $cacheid=yes
17159 else
17160 eval $cacheid=no
17161 fi
17162 rm -f core conftest.err conftest.$ac_objext \
17163 conftest$ac_exeext conftest.$ac_ext
17164 fi
17165
17166
17167 CFLAGS="$xorg_testset_save_CFLAGS"
17168
17169 eval supported=\$$cacheid
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17171 $as_echo "$supported" >&6; }
17172 if test "$supported" = "yes" ; then
17173 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17174 found="yes"
17175 fi
17176 fi
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192 xorg_testset_save_CFLAGS="$CFLAGS"
17193
17194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17197 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17198 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17199 $as_echo_n "(cached) " >&6
17200 else
17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h. */
17203 int i;
17204 _ACEOF
17205 if ac_fn_c_try_compile "$LINENO"; then :
17206 xorg_cv_cc_flag_unknown_warning_option=yes
17207 else
17208 xorg_cv_cc_flag_unknown_warning_option=no
17209 fi
17210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17211 fi
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17213 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17215 CFLAGS="$xorg_testset_save_CFLAGS"
17216 fi
17217
17218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17221 fi
17222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17224 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17225 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17226 $as_echo_n "(cached) " >&6
17227 else
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17230 int i;
17231 _ACEOF
17232 if ac_fn_c_try_compile "$LINENO"; then :
17233 xorg_cv_cc_flag_unused_command_line_argument=yes
17234 else
17235 xorg_cv_cc_flag_unused_command_line_argument=no
17236 fi
17237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17238 fi
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17240 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17242 CFLAGS="$xorg_testset_save_CFLAGS"
17243 fi
17244
17245 found="no"
17246
17247 if test $found = "no" ; then
17248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17250 fi
17251
17252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17254 fi
17255
17256 CFLAGS="$CFLAGS -Wwrite-strings"
17257
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17259 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17260 cacheid=xorg_cv_cc_flag__Wwrite_strings
17261 if eval \${$cacheid+:} false; then :
17262 $as_echo_n "(cached) " >&6
17263 else
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17266 int i;
17267 int
17268 main ()
17269 {
17270
17271 ;
17272 return 0;
17273 }
17274 _ACEOF
17275 if ac_fn_c_try_link "$LINENO"; then :
17276 eval $cacheid=yes
17277 else
17278 eval $cacheid=no
17279 fi
17280 rm -f core conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext conftest.$ac_ext
17282 fi
17283
17284
17285 CFLAGS="$xorg_testset_save_CFLAGS"
17286
17287 eval supported=\$$cacheid
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17289 $as_echo "$supported" >&6; }
17290 if test "$supported" = "yes" ; then
17291 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17292 found="yes"
17293 fi
17294 fi
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310 xorg_testset_save_CFLAGS="$CFLAGS"
17311
17312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17315 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17316 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17317 $as_echo_n "(cached) " >&6
17318 else
17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h. */
17321 int i;
17322 _ACEOF
17323 if ac_fn_c_try_compile "$LINENO"; then :
17324 xorg_cv_cc_flag_unknown_warning_option=yes
17325 else
17326 xorg_cv_cc_flag_unknown_warning_option=no
17327 fi
17328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329 fi
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17331 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17333 CFLAGS="$xorg_testset_save_CFLAGS"
17334 fi
17335
17336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17339 fi
17340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17342 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17343 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17344 $as_echo_n "(cached) " >&6
17345 else
17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347 /* end confdefs.h. */
17348 int i;
17349 _ACEOF
17350 if ac_fn_c_try_compile "$LINENO"; then :
17351 xorg_cv_cc_flag_unused_command_line_argument=yes
17352 else
17353 xorg_cv_cc_flag_unused_command_line_argument=no
17354 fi
17355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356 fi
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17358 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17360 CFLAGS="$xorg_testset_save_CFLAGS"
17361 fi
17362
17363 found="no"
17364
17365 if test $found = "no" ; then
17366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17368 fi
17369
17370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17372 fi
17373
17374 CFLAGS="$CFLAGS -Waddress"
17375
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17377 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17378 cacheid=xorg_cv_cc_flag__Waddress
17379 if eval \${$cacheid+:} false; then :
17380 $as_echo_n "(cached) " >&6
17381 else
17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383 /* end confdefs.h. */
17384 int i;
17385 int
17386 main ()
17387 {
17388
17389 ;
17390 return 0;
17391 }
17392 _ACEOF
17393 if ac_fn_c_try_link "$LINENO"; then :
17394 eval $cacheid=yes
17395 else
17396 eval $cacheid=no
17397 fi
17398 rm -f core conftest.err conftest.$ac_objext \
17399 conftest$ac_exeext conftest.$ac_ext
17400 fi
17401
17402
17403 CFLAGS="$xorg_testset_save_CFLAGS"
17404
17405 eval supported=\$$cacheid
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17407 $as_echo "$supported" >&6; }
17408 if test "$supported" = "yes" ; then
17409 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17410 found="yes"
17411 fi
17412 fi
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428 xorg_testset_save_CFLAGS="$CFLAGS"
17429
17430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17433 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17434 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17435 $as_echo_n "(cached) " >&6
17436 else
17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438 /* end confdefs.h. */
17439 int i;
17440 _ACEOF
17441 if ac_fn_c_try_compile "$LINENO"; then :
17442 xorg_cv_cc_flag_unknown_warning_option=yes
17443 else
17444 xorg_cv_cc_flag_unknown_warning_option=no
17445 fi
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 fi
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17449 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17451 CFLAGS="$xorg_testset_save_CFLAGS"
17452 fi
17453
17454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17457 fi
17458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17460 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17461 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17462 $as_echo_n "(cached) " >&6
17463 else
17464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17465 /* end confdefs.h. */
17466 int i;
17467 _ACEOF
17468 if ac_fn_c_try_compile "$LINENO"; then :
17469 xorg_cv_cc_flag_unused_command_line_argument=yes
17470 else
17471 xorg_cv_cc_flag_unused_command_line_argument=no
17472 fi
17473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17474 fi
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17476 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17478 CFLAGS="$xorg_testset_save_CFLAGS"
17479 fi
17480
17481 found="no"
17482
17483 if test $found = "no" ; then
17484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17486 fi
17487
17488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17490 fi
17491
17492 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17493
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17495 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17496 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17497 if eval \${$cacheid+:} false; then :
17498 $as_echo_n "(cached) " >&6
17499 else
17500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501 /* end confdefs.h. */
17502 int i;
17503 int
17504 main ()
17505 {
17506
17507 ;
17508 return 0;
17509 }
17510 _ACEOF
17511 if ac_fn_c_try_link "$LINENO"; then :
17512 eval $cacheid=yes
17513 else
17514 eval $cacheid=no
17515 fi
17516 rm -f core conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17518 fi
17519
17520
17521 CFLAGS="$xorg_testset_save_CFLAGS"
17522
17523 eval supported=\$$cacheid
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17525 $as_echo "$supported" >&6; }
17526 if test "$supported" = "yes" ; then
17527 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17528 found="yes"
17529 fi
17530 fi
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546 xorg_testset_save_CFLAGS="$CFLAGS"
17547
17548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17551 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17552 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17553 $as_echo_n "(cached) " >&6
17554 else
17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17557 int i;
17558 _ACEOF
17559 if ac_fn_c_try_compile "$LINENO"; then :
17560 xorg_cv_cc_flag_unknown_warning_option=yes
17561 else
17562 xorg_cv_cc_flag_unknown_warning_option=no
17563 fi
17564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17565 fi
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17567 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17569 CFLAGS="$xorg_testset_save_CFLAGS"
17570 fi
17571
17572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17575 fi
17576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17578 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17579 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17580 $as_echo_n "(cached) " >&6
17581 else
17582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583 /* end confdefs.h. */
17584 int i;
17585 _ACEOF
17586 if ac_fn_c_try_compile "$LINENO"; then :
17587 xorg_cv_cc_flag_unused_command_line_argument=yes
17588 else
17589 xorg_cv_cc_flag_unused_command_line_argument=no
17590 fi
17591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 fi
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17594 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17596 CFLAGS="$xorg_testset_save_CFLAGS"
17597 fi
17598
17599 found="no"
17600
17601 if test $found = "no" ; then
17602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17604 fi
17605
17606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17608 fi
17609
17610 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17611
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17613 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17614 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17615 if eval \${$cacheid+:} false; then :
17616 $as_echo_n "(cached) " >&6
17617 else
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17620 int i;
17621 int
17622 main ()
17623 {
17624
17625 ;
17626 return 0;
17627 }
17628 _ACEOF
17629 if ac_fn_c_try_link "$LINENO"; then :
17630 eval $cacheid=yes
17631 else
17632 eval $cacheid=no
17633 fi
17634 rm -f core conftest.err conftest.$ac_objext \
17635 conftest$ac_exeext conftest.$ac_ext
17636 fi
17637
17638
17639 CFLAGS="$xorg_testset_save_CFLAGS"
17640
17641 eval supported=\$$cacheid
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17643 $as_echo "$supported" >&6; }
17644 if test "$supported" = "yes" ; then
17645 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17646 found="yes"
17647 fi
17648 fi
17649
17650
17651 fi
17652
17653
17654
17655
17656
17657
17658
17659 CWARNFLAGS="$BASE_CFLAGS"
17660 if test "x$GCC" = xyes ; then
17661 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17662 fi
17663
17664
17665
17666
17667
17668
17669
17670
17671 # Check whether --enable-strict-compilation was given.
17672 if test "${enable_strict_compilation+set}" = set; then :
17673 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17674 else
17675 STRICT_COMPILE=no
17676 fi
17677
17678
17679
17680
17681
17682
17683 STRICT_CFLAGS=""
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697 xorg_testset_save_CFLAGS="$CFLAGS"
17698
17699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17704 $as_echo_n "(cached) " >&6
17705 else
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17708 int i;
17709 _ACEOF
17710 if ac_fn_c_try_compile "$LINENO"; then :
17711 xorg_cv_cc_flag_unknown_warning_option=yes
17712 else
17713 xorg_cv_cc_flag_unknown_warning_option=no
17714 fi
17715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17716 fi
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17720 CFLAGS="$xorg_testset_save_CFLAGS"
17721 fi
17722
17723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17726 fi
17727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17731 $as_echo_n "(cached) " >&6
17732 else
17733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h. */
17735 int i;
17736 _ACEOF
17737 if ac_fn_c_try_compile "$LINENO"; then :
17738 xorg_cv_cc_flag_unused_command_line_argument=yes
17739 else
17740 xorg_cv_cc_flag_unused_command_line_argument=no
17741 fi
17742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17743 fi
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17747 CFLAGS="$xorg_testset_save_CFLAGS"
17748 fi
17749
17750 found="no"
17751
17752 if test $found = "no" ; then
17753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17755 fi
17756
17757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17759 fi
17760
17761 CFLAGS="$CFLAGS -pedantic"
17762
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17764 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17765 cacheid=xorg_cv_cc_flag__pedantic
17766 if eval \${$cacheid+:} false; then :
17767 $as_echo_n "(cached) " >&6
17768 else
17769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770 /* end confdefs.h. */
17771 int i;
17772 int
17773 main ()
17774 {
17775
17776 ;
17777 return 0;
17778 }
17779 _ACEOF
17780 if ac_fn_c_try_link "$LINENO"; then :
17781 eval $cacheid=yes
17782 else
17783 eval $cacheid=no
17784 fi
17785 rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17787 fi
17788
17789
17790 CFLAGS="$xorg_testset_save_CFLAGS"
17791
17792 eval supported=\$$cacheid
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17794 $as_echo "$supported" >&6; }
17795 if test "$supported" = "yes" ; then
17796 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17797 found="yes"
17798 fi
17799 fi
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815 xorg_testset_save_CFLAGS="$CFLAGS"
17816
17817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17822 $as_echo_n "(cached) " >&6
17823 else
17824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825 /* end confdefs.h. */
17826 int i;
17827 _ACEOF
17828 if ac_fn_c_try_compile "$LINENO"; then :
17829 xorg_cv_cc_flag_unknown_warning_option=yes
17830 else
17831 xorg_cv_cc_flag_unknown_warning_option=no
17832 fi
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 fi
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17838 CFLAGS="$xorg_testset_save_CFLAGS"
17839 fi
17840
17841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17844 fi
17845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17849 $as_echo_n "(cached) " >&6
17850 else
17851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17852 /* end confdefs.h. */
17853 int i;
17854 _ACEOF
17855 if ac_fn_c_try_compile "$LINENO"; then :
17856 xorg_cv_cc_flag_unused_command_line_argument=yes
17857 else
17858 xorg_cv_cc_flag_unused_command_line_argument=no
17859 fi
17860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17861 fi
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17865 CFLAGS="$xorg_testset_save_CFLAGS"
17866 fi
17867
17868 found="no"
17869
17870 if test $found = "no" ; then
17871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17873 fi
17874
17875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17877 fi
17878
17879 CFLAGS="$CFLAGS -Werror"
17880
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17882 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17883 cacheid=xorg_cv_cc_flag__Werror
17884 if eval \${$cacheid+:} false; then :
17885 $as_echo_n "(cached) " >&6
17886 else
17887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888 /* end confdefs.h. */
17889 int i;
17890 int
17891 main ()
17892 {
17893
17894 ;
17895 return 0;
17896 }
17897 _ACEOF
17898 if ac_fn_c_try_link "$LINENO"; then :
17899 eval $cacheid=yes
17900 else
17901 eval $cacheid=no
17902 fi
17903 rm -f core conftest.err conftest.$ac_objext \
17904 conftest$ac_exeext conftest.$ac_ext
17905 fi
17906
17907
17908 CFLAGS="$xorg_testset_save_CFLAGS"
17909
17910 eval supported=\$$cacheid
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17912 $as_echo "$supported" >&6; }
17913 if test "$supported" = "yes" ; then
17914 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17915 found="yes"
17916 fi
17917 fi
17918
17919 if test $found = "no" ; then
17920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17922 fi
17923
17924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17926 fi
17927
17928 CFLAGS="$CFLAGS -errwarn"
17929
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17931 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17932 cacheid=xorg_cv_cc_flag__errwarn
17933 if eval \${$cacheid+:} false; then :
17934 $as_echo_n "(cached) " >&6
17935 else
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17938 int i;
17939 int
17940 main ()
17941 {
17942
17943 ;
17944 return 0;
17945 }
17946 _ACEOF
17947 if ac_fn_c_try_link "$LINENO"; then :
17948 eval $cacheid=yes
17949 else
17950 eval $cacheid=no
17951 fi
17952 rm -f core conftest.err conftest.$ac_objext \
17953 conftest$ac_exeext conftest.$ac_ext
17954 fi
17955
17956
17957 CFLAGS="$xorg_testset_save_CFLAGS"
17958
17959 eval supported=\$$cacheid
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17961 $as_echo "$supported" >&6; }
17962 if test "$supported" = "yes" ; then
17963 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17964 found="yes"
17965 fi
17966 fi
17967
17968
17969
17970 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17971 # activate it with -Werror, so we add it here explicitly.
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17990 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17991 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17992 $as_echo_n "(cached) " >&6
17993 else
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17996 int i;
17997 _ACEOF
17998 if ac_fn_c_try_compile "$LINENO"; then :
17999 xorg_cv_cc_flag_unknown_warning_option=yes
18000 else
18001 xorg_cv_cc_flag_unknown_warning_option=no
18002 fi
18003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18004 fi
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18006 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18008 CFLAGS="$xorg_testset_save_CFLAGS"
18009 fi
18010
18011 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18014 fi
18015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18017 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18018 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18019 $as_echo_n "(cached) " >&6
18020 else
18021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022 /* end confdefs.h. */
18023 int i;
18024 _ACEOF
18025 if ac_fn_c_try_compile "$LINENO"; then :
18026 xorg_cv_cc_flag_unused_command_line_argument=yes
18027 else
18028 xorg_cv_cc_flag_unused_command_line_argument=no
18029 fi
18030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18031 fi
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18033 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18035 CFLAGS="$xorg_testset_save_CFLAGS"
18036 fi
18037
18038 found="no"
18039
18040 if test $found = "no" ; then
18041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18043 fi
18044
18045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18047 fi
18048
18049 CFLAGS="$CFLAGS -Werror=attributes"
18050
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18052 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18053 cacheid=xorg_cv_cc_flag__Werror_attributes
18054 if eval \${$cacheid+:} false; then :
18055 $as_echo_n "(cached) " >&6
18056 else
18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h. */
18059 int i;
18060 int
18061 main ()
18062 {
18063
18064 ;
18065 return 0;
18066 }
18067 _ACEOF
18068 if ac_fn_c_try_link "$LINENO"; then :
18069 eval $cacheid=yes
18070 else
18071 eval $cacheid=no
18072 fi
18073 rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18075 fi
18076
18077
18078 CFLAGS="$xorg_testset_save_CFLAGS"
18079
18080 eval supported=\$$cacheid
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18082 $as_echo "$supported" >&6; }
18083 if test "$supported" = "yes" ; then
18084 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18085 found="yes"
18086 fi
18087 fi
18088
18089
18090
18091 if test "x$STRICT_COMPILE" = "xyes"; then
18092 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18093 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18094 fi
18095
18096
18097
18098
18099
18100
18101 cat >>confdefs.h <<_ACEOF
18102 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18103 _ACEOF
18104
18105 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18106 if test "x$PVM" = "x"; then
18107 PVM="0"
18108 fi
18109
18110 cat >>confdefs.h <<_ACEOF
18111 #define PACKAGE_VERSION_MINOR $PVM
18112 _ACEOF
18113
18114 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18115 if test "x$PVP" = "x"; then
18116 PVP="0"
18117 fi
18118
18119 cat >>confdefs.h <<_ACEOF
18120 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18121 _ACEOF
18122
18123
18124
18125 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18126 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18127 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18128 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18129
18130
18131
18132
18133 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18134 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18135 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18136 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18137 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18138
18139
18140
18141
18142
18143
18144 if test x$APP_MAN_SUFFIX = x ; then
18145 APP_MAN_SUFFIX=1
18146 fi
18147 if test x$APP_MAN_DIR = x ; then
18148 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18149 fi
18150
18151 if test x$LIB_MAN_SUFFIX = x ; then
18152 LIB_MAN_SUFFIX=3
18153 fi
18154 if test x$LIB_MAN_DIR = x ; then
18155 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18156 fi
18157
18158 if test x$FILE_MAN_SUFFIX = x ; then
18159 case $host_os in
18160 # Solaris 2.0 - 11 use SysV man page sections
18161 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
18162 *) FILE_MAN_SUFFIX=5 ;;
18163 esac
18164 fi
18165 if test x$FILE_MAN_DIR = x ; then
18166 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18167 fi
18168
18169 if test x$MISC_MAN_SUFFIX = x ; then
18170 case $host_os in
18171 # Solaris 2.0 - 11 use SysV man page sections
18172 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
18173 *) MISC_MAN_SUFFIX=7 ;;
18174 esac
18175 fi
18176 if test x$MISC_MAN_DIR = x ; then
18177 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18178 fi
18179
18180 if test x$DRIVER_MAN_SUFFIX = x ; then
18181 case $host_os in
18182 # Solaris 2.0 - 11 use SysV man page sections
18183 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
18184 *) DRIVER_MAN_SUFFIX=4 ;;
18185 esac
18186 fi
18187 if test x$DRIVER_MAN_DIR = x ; then
18188 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18189 fi
18190
18191 if test x$ADMIN_MAN_SUFFIX = x ; then
18192 case $host_os in
18193 # Solaris 2.0 - 11 use SysV man page sections
18194 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
18195 *) ADMIN_MAN_SUFFIX=8 ;;
18196 esac
18197 fi
18198 if test x$ADMIN_MAN_DIR = x ; then
18199 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18200 fi
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216 XORG_MAN_PAGE="X Version 11"
18217
18218 MAN_SUBSTS="\
18219 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18220 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18221 -e 's|__xservername__|Xorg|g' \
18222 -e 's|__xconfigfile__|xorg.conf|g' \
18223 -e 's|__projectroot__|\$(prefix)|g' \
18224 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18225 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18226 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18227 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18228 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18229 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18230 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18231
18232
18233
18234 # Check whether --enable-silent-rules was given.
18235 if test "${enable_silent_rules+set}" = set; then :
18236 enableval=$enable_silent_rules;
18237 fi
18238
18239 case $enable_silent_rules in # (((
18240 yes) AM_DEFAULT_VERBOSITY=0;;
18241 no) AM_DEFAULT_VERBOSITY=1;;
18242 *) AM_DEFAULT_VERBOSITY=0;;
18243 esac
18244 am_make=${MAKE-make}
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18246 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18247 if ${am_cv_make_support_nested_variables+:} false; then :
18248 $as_echo_n "(cached) " >&6
18249 else
18250 if $as_echo 'TRUE=$(BAR$(V))
18251 BAR0=false
18252 BAR1=true
18253 V=1
18254 am__doit:
18255 @$(TRUE)
18256 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18257 am_cv_make_support_nested_variables=yes
18258 else
18259 am_cv_make_support_nested_variables=no
18260 fi
18261 fi
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18263 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18264 if test $am_cv_make_support_nested_variables = yes; then
18265 AM_V='$(V)'
18266 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18267 else
18268 AM_V=$AM_DEFAULT_VERBOSITY
18269 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18270 fi
18271 AM_BACKSLASH='\'
18272
18273
18274
18275 # Set library version for Xft.h from package version set in AC_INIT
18276 # copied from PACKAGE_VERSION_* settings in XORG_VERSION
18277 ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h"
18278
18279
18280 cat >>confdefs.h <<_ACEOF
18281 #define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18282 _ACEOF
18283
18284
18285 cat >>confdefs.h <<_ACEOF
18286 #define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18287 _ACEOF
18288
18289
18290 cat >>confdefs.h <<_ACEOF
18291 #define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18292 _ACEOF
18293
18294
18295 XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'`
18296
18297
18298 #
18299 # Check for Xrender
18300 #
18301
18302 pkg_failed=no
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
18304 $as_echo_n "checking for XRENDER... " >&6; }
18305
18306 if test -n "$XRENDER_CFLAGS"; then
18307 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
18308 elif test -n "$PKG_CONFIG"; then
18309 if test -n "$PKG_CONFIG" && \
18310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
18311 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
18312 ac_status=$?
18313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18314 test $ac_status = 0; }; then
18315 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11" 2>/dev/null`
18316 test "x$?" != "x0" && pkg_failed=yes
18317 else
18318 pkg_failed=yes
18319 fi
18320 else
18321 pkg_failed=untried
18322 fi
18323 if test -n "$XRENDER_LIBS"; then
18324 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
18325 elif test -n "$PKG_CONFIG"; then
18326 if test -n "$PKG_CONFIG" && \
18327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5
18328 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5
18329 ac_status=$?
18330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18331 test $ac_status = 0; }; then
18332 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11" 2>/dev/null`
18333 test "x$?" != "x0" && pkg_failed=yes
18334 else
18335 pkg_failed=yes
18336 fi
18337 else
18338 pkg_failed=untried
18339 fi
18340
18341
18342
18343 if test $pkg_failed = yes; then
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18345 $as_echo "no" >&6; }
18346
18347 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18348 _pkg_short_errors_supported=yes
18349 else
18350 _pkg_short_errors_supported=no
18351 fi
18352 if test $_pkg_short_errors_supported = yes; then
18353 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
18354 else
18355 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 x11" 2>&1`
18356 fi
18357 # Put the nasty error message in config.log where it belongs
18358 echo "$XRENDER_PKG_ERRORS" >&5
18359
18360 as_fn_error $? "Package requirements (xrender >= 0.8.2 x11) were not met:
18361
18362 $XRENDER_PKG_ERRORS
18363
18364 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18365 installed software in a non-standard prefix.
18366
18367 Alternatively, you may set the environment variables XRENDER_CFLAGS
18368 and XRENDER_LIBS to avoid the need to call pkg-config.
18369 See the pkg-config man page for more details." "$LINENO" 5
18370 elif test $pkg_failed = untried; then
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372 $as_echo "no" >&6; }
18373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18375 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18376 is in your PATH or set the PKG_CONFIG environment variable to the full
18377 path to pkg-config.
18378
18379 Alternatively, you may set the environment variables XRENDER_CFLAGS
18380 and XRENDER_LIBS to avoid the need to call pkg-config.
18381 See the pkg-config man page for more details.
18382
18383 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18384 See \`config.log' for more details" "$LINENO" 5; }
18385 else
18386 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
18387 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18389 $as_echo "yes" >&6; }
18390
18391 fi
18392
18393 # Check freetype configuration
18394
18395 pkg_failed=no
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18397 $as_echo_n "checking for FREETYPE... " >&6; }
18398
18399 if test -n "$FREETYPE_CFLAGS"; then
18400 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18401 elif test -n "$PKG_CONFIG"; then
18402 if test -n "$PKG_CONFIG" && \
18403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
18404 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
18405 ac_status=$?
18406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18407 test $ac_status = 0; }; then
18408 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null`
18409 test "x$?" != "x0" && pkg_failed=yes
18410 else
18411 pkg_failed=yes
18412 fi
18413 else
18414 pkg_failed=untried
18415 fi
18416 if test -n "$FREETYPE_LIBS"; then
18417 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18418 elif test -n "$PKG_CONFIG"; then
18419 if test -n "$PKG_CONFIG" && \
18420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5
18421 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5
18422 ac_status=$?
18423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18424 test $ac_status = 0; }; then
18425 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null`
18426 test "x$?" != "x0" && pkg_failed=yes
18427 else
18428 pkg_failed=yes
18429 fi
18430 else
18431 pkg_failed=untried
18432 fi
18433
18434
18435
18436 if test $pkg_failed = yes; then
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18438 $as_echo "no" >&6; }
18439
18440 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18441 _pkg_short_errors_supported=yes
18442 else
18443 _pkg_short_errors_supported=no
18444 fi
18445 if test $_pkg_short_errors_supported = yes; then
18446 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
18447 else
18448 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1`
18449 fi
18450 # Put the nasty error message in config.log where it belongs
18451 echo "$FREETYPE_PKG_ERRORS" >&5
18452
18453 as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met:
18454
18455 $FREETYPE_PKG_ERRORS
18456
18457 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18458 installed software in a non-standard prefix.
18459
18460 Alternatively, you may set the environment variables FREETYPE_CFLAGS
18461 and FREETYPE_LIBS to avoid the need to call pkg-config.
18462 See the pkg-config man page for more details." "$LINENO" 5
18463 elif test $pkg_failed = untried; then
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18465 $as_echo "no" >&6; }
18466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18468 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18469 is in your PATH or set the PKG_CONFIG environment variable to the full
18470 path to pkg-config.
18471
18472 Alternatively, you may set the environment variables FREETYPE_CFLAGS
18473 and FREETYPE_LIBS to avoid the need to call pkg-config.
18474 See the pkg-config man page for more details.
18475
18476 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18477 See \`config.log' for more details" "$LINENO" 5; }
18478 else
18479 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18480 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18482 $as_echo "yes" >&6; }
18483
18484 fi
18485
18486 # Check fontconfig configuration
18487
18488 pkg_failed=no
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
18490 $as_echo_n "checking for FONTCONFIG... " >&6; }
18491
18492 if test -n "$FONTCONFIG_CFLAGS"; then
18493 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
18494 elif test -n "$PKG_CONFIG"; then
18495 if test -n "$PKG_CONFIG" && \
18496 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
18497 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
18498 ac_status=$?
18499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18500 test $ac_status = 0; }; then
18501 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null`
18502 test "x$?" != "x0" && pkg_failed=yes
18503 else
18504 pkg_failed=yes
18505 fi
18506 else
18507 pkg_failed=untried
18508 fi
18509 if test -n "$FONTCONFIG_LIBS"; then
18510 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
18511 elif test -n "$PKG_CONFIG"; then
18512 if test -n "$PKG_CONFIG" && \
18513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5
18514 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5
18515 ac_status=$?
18516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18517 test $ac_status = 0; }; then
18518 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null`
18519 test "x$?" != "x0" && pkg_failed=yes
18520 else
18521 pkg_failed=yes
18522 fi
18523 else
18524 pkg_failed=untried
18525 fi
18526
18527
18528
18529 if test $pkg_failed = yes; then
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18531 $as_echo "no" >&6; }
18532
18533 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18534 _pkg_short_errors_supported=yes
18535 else
18536 _pkg_short_errors_supported=no
18537 fi
18538 if test $_pkg_short_errors_supported = yes; then
18539 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
18540 else
18541 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1`
18542 fi
18543 # Put the nasty error message in config.log where it belongs
18544 echo "$FONTCONFIG_PKG_ERRORS" >&5
18545
18546 as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met:
18547
18548 $FONTCONFIG_PKG_ERRORS
18549
18550 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18551 installed software in a non-standard prefix.
18552
18553 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
18554 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
18555 See the pkg-config man page for more details." "$LINENO" 5
18556 elif test $pkg_failed = untried; then
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18558 $as_echo "no" >&6; }
18559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18561 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18562 is in your PATH or set the PKG_CONFIG environment variable to the full
18563 path to pkg-config.
18564
18565 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
18566 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
18567 See the pkg-config man page for more details.
18568
18569 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18570 See \`config.log' for more details" "$LINENO" 5; }
18571 else
18572 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
18573 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18575 $as_echo "yes" >&6; }
18576
18577 fi
18578
18579
18580
18581
18582
18583
18584
18585
18586 if test "$VERSION" = "" ; then
18587 VERSION=$PACKAGE_VERSION;
18588 fi
18589
18590 ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile"
18591
18592 cat >confcache <<\_ACEOF
18593 # This file is a shell script that caches the results of configure
18594 # tests run on this system so they can be shared between configure
18595 # scripts and configure runs, see configure's option --config-cache.
18596 # It is not useful on other systems. If it contains results you don't
18597 # want to keep, you may remove or edit it.
18598 #
18599 # config.status only pays attention to the cache file if you give it
18600 # the --recheck option to rerun configure.
18601 #
18602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18604 # following values.
18605
18606 _ACEOF
18607
18608 # The following way of writing the cache mishandles newlines in values,
18609 # but we know of no workaround that is simple, portable, and efficient.
18610 # So, we kill variables containing newlines.
18611 # Ultrix sh set writes to stderr and can't be redirected directly,
18612 # and sets the high bit in the cache file unless we assign to the vars.
18613 (
18614 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18615 eval ac_val=\$$ac_var
18616 case $ac_val in #(
18617 *${as_nl}*)
18618 case $ac_var in #(
18619 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18621 esac
18622 case $ac_var in #(
18623 _ | IFS | as_nl) ;; #(
18624 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18625 *) { eval $ac_var=; unset $ac_var;} ;;
18626 esac ;;
18627 esac
18628 done
18629
18630 (set) 2>&1 |
18631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18632 *${as_nl}ac_space=\ *)
18633 # `set' does not quote correctly, so add quotes: double-quote
18634 # substitution turns \\\\ into \\, and sed turns \\ into \.
18635 sed -n \
18636 "s/'/'\\\\''/g;
18637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18638 ;; #(
18639 *)
18640 # `set' quotes correctly as required by POSIX, so do not add quotes.
18641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18642 ;;
18643 esac |
18644 sort
18645 ) |
18646 sed '
18647 /^ac_cv_env_/b end
18648 t clear
18649 :clear
18650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18651 t end
18652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18653 :end' >>confcache
18654 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18655 if test -w "$cache_file"; then
18656 if test "x$cache_file" != "x/dev/null"; then
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18658 $as_echo "$as_me: updating cache $cache_file" >&6;}
18659 if test ! -f "$cache_file" || test -h "$cache_file"; then
18660 cat confcache >"$cache_file"
18661 else
18662 case $cache_file in #(
18663 */* | ?:*)
18664 mv -f confcache "$cache_file"$$ &&
18665 mv -f "$cache_file"$$ "$cache_file" ;; #(
18666 *)
18667 mv -f confcache "$cache_file" ;;
18668 esac
18669 fi
18670 fi
18671 else
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18673 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18674 fi
18675 fi
18676 rm -f confcache
18677
18678 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18679 # Let make expand exec_prefix.
18680 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18681
18682 DEFS=-DHAVE_CONFIG_H
18683
18684 ac_libobjs=
18685 ac_ltlibobjs=
18686 U=
18687 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18688 # 1. Remove the extension, and $U if already installed.
18689 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18690 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18692 # will be set to the directory where LIBOBJS objects are built.
18693 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18694 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18695 done
18696 LIBOBJS=$ac_libobjs
18697
18698 LTLIBOBJS=$ac_ltlibobjs
18699
18700
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18702 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18703 if test -n "$am_sleep_pid"; then
18704 # Hide warnings about reused PIDs.
18705 wait $am_sleep_pid 2>/dev/null
18706 fi
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18708 $as_echo "done" >&6; }
18709 if test -n "$EXEEXT"; then
18710 am__EXEEXT_TRUE=
18711 am__EXEEXT_FALSE='#'
18712 else
18713 am__EXEEXT_TRUE='#'
18714 am__EXEEXT_FALSE=
18715 fi
18716
18717 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18718 as_fn_error $? "conditional \"AMDEP\" was never defined.
18719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18720 fi
18721 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18722 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18724 fi
18725
18726 : "${CONFIG_STATUS=./config.status}"
18727 ac_write_fail=0
18728 ac_clean_files_save=$ac_clean_files
18729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18731 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18732 as_write_fail=0
18733 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18734 #! $SHELL
18735 # Generated by $as_me.
18736 # Run this file to recreate the current configuration.
18737 # Compiler output produced by configure, useful for debugging
18738 # configure, is in config.log if it exists.
18739
18740 debug=false
18741 ac_cs_recheck=false
18742 ac_cs_silent=false
18743
18744 SHELL=\${CONFIG_SHELL-$SHELL}
18745 export SHELL
18746 _ASEOF
18747 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18748 ## -------------------- ##
18749 ## M4sh Initialization. ##
18750 ## -------------------- ##
18751
18752 # Be more Bourne compatible
18753 DUALCASE=1; export DUALCASE # for MKS sh
18754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18755 emulate sh
18756 NULLCMD=:
18757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18758 # is contrary to our usage. Disable this feature.
18759 alias -g '${1+"$@"}'='"$@"'
18760 setopt NO_GLOB_SUBST
18761 else
18762 case `(set -o) 2>/dev/null` in #(
18763 *posix*) :
18764 set -o posix ;; #(
18765 *) :
18766 ;;
18767 esac
18768 fi
18769
18770
18771 as_nl='
18772 '
18773 export as_nl
18774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18775 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18778 # Prefer a ksh shell builtin over an external printf program on Solaris,
18779 # but without wasting forks for bash or zsh.
18780 if test -z "$BASH_VERSION$ZSH_VERSION" \
18781 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18782 as_echo='print -r --'
18783 as_echo_n='print -rn --'
18784 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18785 as_echo='printf %s\n'
18786 as_echo_n='printf %s'
18787 else
18788 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18789 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18790 as_echo_n='/usr/ucb/echo -n'
18791 else
18792 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18793 as_echo_n_body='eval
18794 arg=$1;
18795 case $arg in #(
18796 *"$as_nl"*)
18797 expr "X$arg" : "X\\(.*\\)$as_nl";
18798 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18799 esac;
18800 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18801 '
18802 export as_echo_n_body
18803 as_echo_n='sh -c $as_echo_n_body as_echo'
18804 fi
18805 export as_echo_body
18806 as_echo='sh -c $as_echo_body as_echo'
18807 fi
18808
18809 # The user is always right.
18810 if test "${PATH_SEPARATOR+set}" != set; then
18811 PATH_SEPARATOR=:
18812 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18813 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18814 PATH_SEPARATOR=';'
18815 }
18816 fi
18817
18818
18819 # IFS
18820 # We need space, tab and new line, in precisely that order. Quoting is
18821 # there to prevent editors from complaining about space-tab.
18822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18823 # splitting by setting IFS to empty value.)
18824 IFS=" "" $as_nl"
18825
18826 # Find who we are. Look in the path if we contain no directory separator.
18827 as_myself=
18828 case $0 in #((
18829 *[\\/]* ) as_myself=$0 ;;
18830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18831 for as_dir in $PATH
18832 do
18833 IFS=$as_save_IFS
18834 test -z "$as_dir" && as_dir=.
18835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18836 done
18837 IFS=$as_save_IFS
18838
18839 ;;
18840 esac
18841 # We did not find ourselves, most probably we were run as `sh COMMAND'
18842 # in which case we are not to be found in the path.
18843 if test "x$as_myself" = x; then
18844 as_myself=$0
18845 fi
18846 if test ! -f "$as_myself"; then
18847 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18848 exit 1
18849 fi
18850
18851 # Unset variables that we do not need and which cause bugs (e.g. in
18852 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18853 # suppresses any "Segmentation fault" message there. '((' could
18854 # trigger a bug in pdksh 5.2.14.
18855 for as_var in BASH_ENV ENV MAIL MAILPATH
18856 do eval test x\${$as_var+set} = xset \
18857 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18858 done
18859 PS1='$ '
18860 PS2='> '
18861 PS4='+ '
18862
18863 # NLS nuisances.
18864 LC_ALL=C
18865 export LC_ALL
18866 LANGUAGE=C
18867 export LANGUAGE
18868
18869 # CDPATH.
18870 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18871
18872
18873 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18874 # ----------------------------------------
18875 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18876 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18877 # script with STATUS, using 1 if that was 0.
18878 as_fn_error ()
18879 {
18880 as_status=$1; test $as_status -eq 0 && as_status=1
18881 if test "$4"; then
18882 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18883 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18884 fi
18885 $as_echo "$as_me: error: $2" >&2
18886 as_fn_exit $as_status
18887 } # as_fn_error
18888
18889
18890 # as_fn_set_status STATUS
18891 # -----------------------
18892 # Set $? to STATUS, without forking.
18893 as_fn_set_status ()
18894 {
18895 return $1
18896 } # as_fn_set_status
18897
18898 # as_fn_exit STATUS
18899 # -----------------
18900 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18901 as_fn_exit ()
18902 {
18903 set +e
18904 as_fn_set_status $1
18905 exit $1
18906 } # as_fn_exit
18907
18908 # as_fn_unset VAR
18909 # ---------------
18910 # Portably unset VAR.
18911 as_fn_unset ()
18912 {
18913 { eval $1=; unset $1;}
18914 }
18915 as_unset=as_fn_unset
18916 # as_fn_append VAR VALUE
18917 # ----------------------
18918 # Append the text in VALUE to the end of the definition contained in VAR. Take
18919 # advantage of any shell optimizations that allow amortized linear growth over
18920 # repeated appends, instead of the typical quadratic growth present in naive
18921 # implementations.
18922 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18923 eval 'as_fn_append ()
18924 {
18925 eval $1+=\$2
18926 }'
18927 else
18928 as_fn_append ()
18929 {
18930 eval $1=\$$1\$2
18931 }
18932 fi # as_fn_append
18933
18934 # as_fn_arith ARG...
18935 # ------------------
18936 # Perform arithmetic evaluation on the ARGs, and store the result in the
18937 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18938 # must be portable across $(()) and expr.
18939 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18940 eval 'as_fn_arith ()
18941 {
18942 as_val=$(( $* ))
18943 }'
18944 else
18945 as_fn_arith ()
18946 {
18947 as_val=`expr "$@" || test $? -eq 1`
18948 }
18949 fi # as_fn_arith
18950
18951
18952 if expr a : '\(a\)' >/dev/null 2>&1 &&
18953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18954 as_expr=expr
18955 else
18956 as_expr=false
18957 fi
18958
18959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18960 as_basename=basename
18961 else
18962 as_basename=false
18963 fi
18964
18965 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18966 as_dirname=dirname
18967 else
18968 as_dirname=false
18969 fi
18970
18971 as_me=`$as_basename -- "$0" ||
18972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18973 X"$0" : 'X\(//\)$' \| \
18974 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18975 $as_echo X/"$0" |
18976 sed '/^.*\/\([^/][^/]*\)\/*$/{
18977 s//\1/
18978 q
18979 }
18980 /^X\/\(\/\/\)$/{
18981 s//\1/
18982 q
18983 }
18984 /^X\/\(\/\).*/{
18985 s//\1/
18986 q
18987 }
18988 s/.*/./; q'`
18989
18990 # Avoid depending upon Character Ranges.
18991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18994 as_cr_digits='0123456789'
18995 as_cr_alnum=$as_cr_Letters$as_cr_digits
18996
18997 ECHO_C= ECHO_N= ECHO_T=
18998 case `echo -n x` in #(((((
18999 -n*)
19000 case `echo 'xy\c'` in
19001 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19002 xy) ECHO_C='\c';;
19003 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19004 ECHO_T=' ';;
19005 esac;;
19006 *)
19007 ECHO_N='-n';;
19008 esac
19009
19010 rm -f conf$$ conf$$.exe conf$$.file
19011 if test -d conf$$.dir; then
19012 rm -f conf$$.dir/conf$$.file
19013 else
19014 rm -f conf$$.dir
19015 mkdir conf$$.dir 2>/dev/null
19016 fi
19017 if (echo >conf$$.file) 2>/dev/null; then
19018 if ln -s conf$$.file conf$$ 2>/dev/null; then
19019 as_ln_s='ln -s'
19020 # ... but there are two gotchas:
19021 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19022 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19023 # In both cases, we have to default to `cp -pR'.
19024 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19025 as_ln_s='cp -pR'
19026 elif ln conf$$.file conf$$ 2>/dev/null; then
19027 as_ln_s=ln
19028 else
19029 as_ln_s='cp -pR'
19030 fi
19031 else
19032 as_ln_s='cp -pR'
19033 fi
19034 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19035 rmdir conf$$.dir 2>/dev/null
19036
19037
19038 # as_fn_mkdir_p
19039 # -------------
19040 # Create "$as_dir" as a directory, including parents if necessary.
19041 as_fn_mkdir_p ()
19042 {
19043
19044 case $as_dir in #(
19045 -*) as_dir=./$as_dir;;
19046 esac
19047 test -d "$as_dir" || eval $as_mkdir_p || {
19048 as_dirs=
19049 while :; do
19050 case $as_dir in #(
19051 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19052 *) as_qdir=$as_dir;;
19053 esac
19054 as_dirs="'$as_qdir' $as_dirs"
19055 as_dir=`$as_dirname -- "$as_dir" ||
19056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19057 X"$as_dir" : 'X\(//\)[^/]' \| \
19058 X"$as_dir" : 'X\(//\)$' \| \
19059 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19060 $as_echo X"$as_dir" |
19061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19062 s//\1/
19063 q
19064 }
19065 /^X\(\/\/\)[^/].*/{
19066 s//\1/
19067 q
19068 }
19069 /^X\(\/\/\)$/{
19070 s//\1/
19071 q
19072 }
19073 /^X\(\/\).*/{
19074 s//\1/
19075 q
19076 }
19077 s/.*/./; q'`
19078 test -d "$as_dir" && break
19079 done
19080 test -z "$as_dirs" || eval "mkdir $as_dirs"
19081 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19082
19083
19084 } # as_fn_mkdir_p
19085 if mkdir -p . 2>/dev/null; then
19086 as_mkdir_p='mkdir -p "$as_dir"'
19087 else
19088 test -d ./-p && rmdir ./-p
19089 as_mkdir_p=false
19090 fi
19091
19092
19093 # as_fn_executable_p FILE
19094 # -----------------------
19095 # Test if FILE is an executable regular file.
19096 as_fn_executable_p ()
19097 {
19098 test -f "$1" && test -x "$1"
19099 } # as_fn_executable_p
19100 as_test_x='test -x'
19101 as_executable_p=as_fn_executable_p
19102
19103 # Sed expression to map a string onto a valid CPP name.
19104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19105
19106 # Sed expression to map a string onto a valid variable name.
19107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19108
19109
19110 exec 6>&1
19111 ## ----------------------------------- ##
19112 ## Main body of $CONFIG_STATUS script. ##
19113 ## ----------------------------------- ##
19114 _ASEOF
19115 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19116
19117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19118 # Save the log message, to keep $0 and so on meaningful, and to
19119 # report actual input values of CONFIG_FILES etc. instead of their
19120 # values after options handling.
19121 ac_log="
19122 This file was extended by libXft $as_me 2.3.3, which was
19123 generated by GNU Autoconf 2.69. Invocation command line was
19124
19125 CONFIG_FILES = $CONFIG_FILES
19126 CONFIG_HEADERS = $CONFIG_HEADERS
19127 CONFIG_LINKS = $CONFIG_LINKS
19128 CONFIG_COMMANDS = $CONFIG_COMMANDS
19129 $ $0 $@
19130
19131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19132 "
19133
19134 _ACEOF
19135
19136 case $ac_config_files in *"
19137 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19138 esac
19139
19140 case $ac_config_headers in *"
19141 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19142 esac
19143
19144
19145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19146 # Files that config.status was made for.
19147 config_files="$ac_config_files"
19148 config_headers="$ac_config_headers"
19149 config_commands="$ac_config_commands"
19150
19151 _ACEOF
19152
19153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19154 ac_cs_usage="\
19155 \`$as_me' instantiates files and other configuration actions
19156 from templates according to the current configuration. Unless the files
19157 and actions are specified as TAGs, all are instantiated by default.
19158
19159 Usage: $0 [OPTION]... [TAG]...
19160
19161 -h, --help print this help, then exit
19162 -V, --version print version number and configuration settings, then exit
19163 --config print configuration, then exit
19164 -q, --quiet, --silent
19165 do not print progress messages
19166 -d, --debug don't remove temporary files
19167 --recheck update $as_me by reconfiguring in the same conditions
19168 --file=FILE[:TEMPLATE]
19169 instantiate the configuration file FILE
19170 --header=FILE[:TEMPLATE]
19171 instantiate the configuration header FILE
19172
19173 Configuration files:
19174 $config_files
19175
19176 Configuration headers:
19177 $config_headers
19178
19179 Configuration commands:
19180 $config_commands
19181
19182 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>."
19183
19184 _ACEOF
19185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19186 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19187 ac_cs_version="\\
19188 libXft config.status 2.3.3
19189 configured by $0, generated by GNU Autoconf 2.69,
19190 with options \\"\$ac_cs_config\\"
19191
19192 Copyright (C) 2012 Free Software Foundation, Inc.
19193 This config.status script is free software; the Free Software Foundation
19194 gives unlimited permission to copy, distribute and modify it."
19195
19196 ac_pwd='$ac_pwd'
19197 srcdir='$srcdir'
19198 INSTALL='$INSTALL'
19199 MKDIR_P='$MKDIR_P'
19200 AWK='$AWK'
19201 test -n "\$AWK" || AWK=awk
19202 _ACEOF
19203
19204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19205 # The default lists apply if the user does not specify any file.
19206 ac_need_defaults=:
19207 while test $# != 0
19208 do
19209 case $1 in
19210 --*=?*)
19211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19212 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19213 ac_shift=:
19214 ;;
19215 --*=)
19216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19217 ac_optarg=
19218 ac_shift=:
19219 ;;
19220 *)
19221 ac_option=$1
19222 ac_optarg=$2
19223 ac_shift=shift
19224 ;;
19225 esac
19226
19227 case $ac_option in
19228 # Handling of the options.
19229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19230 ac_cs_recheck=: ;;
19231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19232 $as_echo "$ac_cs_version"; exit ;;
19233 --config | --confi | --conf | --con | --co | --c )
19234 $as_echo "$ac_cs_config"; exit ;;
19235 --debug | --debu | --deb | --de | --d | -d )
19236 debug=: ;;
19237 --file | --fil | --fi | --f )
19238 $ac_shift
19239 case $ac_optarg in
19240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19241 '') as_fn_error $? "missing file argument" ;;
19242 esac
19243 as_fn_append CONFIG_FILES " '$ac_optarg'"
19244 ac_need_defaults=false;;
19245 --header | --heade | --head | --hea )
19246 $ac_shift
19247 case $ac_optarg in
19248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19249 esac
19250 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19251 ac_need_defaults=false;;
19252 --he | --h)
19253 # Conflict between --help and --header
19254 as_fn_error $? "ambiguous option: \`$1'
19255 Try \`$0 --help' for more information.";;
19256 --help | --hel | -h )
19257 $as_echo "$ac_cs_usage"; exit ;;
19258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19259 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19260 ac_cs_silent=: ;;
19261
19262 # This is an error.
19263 -*) as_fn_error $? "unrecognized option: \`$1'
19264 Try \`$0 --help' for more information." ;;
19265
19266 *) as_fn_append ac_config_targets " $1"
19267 ac_need_defaults=false ;;
19268
19269 esac
19270 shift
19271 done
19272
19273 ac_configure_extra_args=
19274
19275 if $ac_cs_silent; then
19276 exec 6>/dev/null
19277 ac_configure_extra_args="$ac_configure_extra_args --silent"
19278 fi
19279
19280 _ACEOF
19281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19282 if \$ac_cs_recheck; then
19283 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19284 shift
19285 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19286 CONFIG_SHELL='$SHELL'
19287 export CONFIG_SHELL
19288 exec "\$@"
19289 fi
19290
19291 _ACEOF
19292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19293 exec 5>>config.log
19294 {
19295 echo
19296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19297 ## Running $as_me. ##
19298 _ASBOX
19299 $as_echo "$ac_log"
19300 } >&5
19301
19302 _ACEOF
19303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19304 #
19305 # INIT-COMMANDS
19306 #
19307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19308
19309
19310 # The HP-UX ksh and POSIX shell print the target directory to stdout
19311 # if CDPATH is set.
19312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19313
19314 sed_quote_subst='$sed_quote_subst'
19315 double_quote_subst='$double_quote_subst'
19316 delay_variable_subst='$delay_variable_subst'
19317 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19318 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19319 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19320 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19321 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19322 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19323 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19326 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19327 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19328 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19329 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19330 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19331 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19332 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19333 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19334 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19335 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19336 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19337 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19338 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19339 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19340 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19341 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19342 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19343 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19344 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19345 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19346 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19347 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19348 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19349 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19350 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19351 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19352 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19353 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19354 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19355 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19356 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19357 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19358 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19359 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19360 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19361 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19362 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19363 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19364 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19365 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19366 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19367 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19368 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19369 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19370 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19371 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19372 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19373 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19374 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19375 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"`'
19376 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19377 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19378 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19379 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19380 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19381 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19382 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19383 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19384 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19385 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19386 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19387 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19388 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19389 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19390 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19391 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19392 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19393 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19394 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19395 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19396 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19397 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19398 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19399 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19400 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19401 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19402 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19403 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19404 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19405 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19406 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19407 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19408 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19409 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19410 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19411 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19412 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19413 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19414 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19415 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19416 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19417 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19418 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19419 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19420 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19421 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19422 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19423 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19424 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19425 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19426 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19427 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19428 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19429 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19430 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19431 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19432 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19433 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19434 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19435 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19436 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19437 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19438 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19439 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19440 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19441 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19442 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19443 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19444 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19445 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19446 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19447 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19448 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19449 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19450 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19451 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19452
19453 LTCC='$LTCC'
19454 LTCFLAGS='$LTCFLAGS'
19455 compiler='$compiler_DEFAULT'
19456
19457 # A function that is used when there is no print builtin or printf.
19458 func_fallback_echo ()
19459 {
19460 eval 'cat <<_LTECHO_EOF
19461 \$1
19462 _LTECHO_EOF'
19463 }
19464
19465 # Quote evaled strings.
19466 for var in SHELL \
19467 ECHO \
19468 PATH_SEPARATOR \
19469 SED \
19470 GREP \
19471 EGREP \
19472 FGREP \
19473 LD \
19474 NM \
19475 LN_S \
19476 lt_SP2NL \
19477 lt_NL2SP \
19478 reload_flag \
19479 OBJDUMP \
19480 deplibs_check_method \
19481 file_magic_cmd \
19482 file_magic_glob \
19483 want_nocaseglob \
19484 DLLTOOL \
19485 sharedlib_from_linklib_cmd \
19486 AR \
19487 AR_FLAGS \
19488 archiver_list_spec \
19489 STRIP \
19490 RANLIB \
19491 CC \
19492 CFLAGS \
19493 compiler \
19494 lt_cv_sys_global_symbol_pipe \
19495 lt_cv_sys_global_symbol_to_cdecl \
19496 lt_cv_sys_global_symbol_to_import \
19497 lt_cv_sys_global_symbol_to_c_name_address \
19498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19499 lt_cv_nm_interface \
19500 nm_file_list_spec \
19501 lt_cv_truncate_bin \
19502 lt_prog_compiler_no_builtin_flag \
19503 lt_prog_compiler_pic \
19504 lt_prog_compiler_wl \
19505 lt_prog_compiler_static \
19506 lt_cv_prog_compiler_c_o \
19507 need_locks \
19508 MANIFEST_TOOL \
19509 DSYMUTIL \
19510 NMEDIT \
19511 LIPO \
19512 OTOOL \
19513 OTOOL64 \
19514 shrext_cmds \
19515 export_dynamic_flag_spec \
19516 whole_archive_flag_spec \
19517 compiler_needs_object \
19518 with_gnu_ld \
19519 allow_undefined_flag \
19520 no_undefined_flag \
19521 hardcode_libdir_flag_spec \
19522 hardcode_libdir_separator \
19523 exclude_expsyms \
19524 include_expsyms \
19525 file_list_spec \
19526 variables_saved_for_relink \
19527 libname_spec \
19528 library_names_spec \
19529 soname_spec \
19530 install_override_mode \
19531 finish_eval \
19532 old_striplib \
19533 striplib; do
19534 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19535 *[\\\\\\\`\\"\\\$]*)
19536 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19537 ;;
19538 *)
19539 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19540 ;;
19541 esac
19542 done
19543
19544 # Double-quote double-evaled strings.
19545 for var in reload_cmds \
19546 old_postinstall_cmds \
19547 old_postuninstall_cmds \
19548 old_archive_cmds \
19549 extract_expsyms_cmds \
19550 old_archive_from_new_cmds \
19551 old_archive_from_expsyms_cmds \
19552 archive_cmds \
19553 archive_expsym_cmds \
19554 module_cmds \
19555 module_expsym_cmds \
19556 export_symbols_cmds \
19557 prelink_cmds \
19558 postlink_cmds \
19559 postinstall_cmds \
19560 postuninstall_cmds \
19561 finish_cmds \
19562 sys_lib_search_path_spec \
19563 configure_time_dlsearch_path \
19564 configure_time_lt_sys_library_path; do
19565 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19566 *[\\\\\\\`\\"\\\$]*)
19567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19568 ;;
19569 *)
19570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19571 ;;
19572 esac
19573 done
19574
19575 ac_aux_dir='$ac_aux_dir'
19576
19577 # See if we are running on zsh, and set the options that allow our
19578 # commands through without removal of \ escapes INIT.
19579 if test -n "\${ZSH_VERSION+set}"; then
19580 setopt NO_GLOB_SUBST
19581 fi
19582
19583
19584 PACKAGE='$PACKAGE'
19585 VERSION='$VERSION'
19586 RM='$RM'
19587 ofile='$ofile'
19588
19589
19590
19591
19592 _ACEOF
19593
19594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19595
19596 # Handling of arguments.
19597 for ac_config_target in $ac_config_targets
19598 do
19599 case $ac_config_target in
19600 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19601 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19602 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19603 "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;;
19604 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19605 "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;;
19606 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19607 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19608
19609 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19610 esac
19611 done
19612
19613
19614 # If the user did not use the arguments to specify the items to instantiate,
19615 # then the envvar interface is used. Set only those that are not.
19616 # We use the long form for the default assignment because of an extremely
19617 # bizarre bug on SunOS 4.1.3.
19618 if $ac_need_defaults; then
19619 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19620 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19621 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19622 fi
19623
19624 # Have a temporary directory for convenience. Make it in the build tree
19625 # simply because there is no reason against having it here, and in addition,
19626 # creating and moving files from /tmp can sometimes cause problems.
19627 # Hook for its removal unless debugging.
19628 # Note that there is a small window in which the directory will not be cleaned:
19629 # after its creation but before its name has been assigned to `$tmp'.
19630 $debug ||
19631 {
19632 tmp= ac_tmp=
19633 trap 'exit_status=$?
19634 : "${ac_tmp:=$tmp}"
19635 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19636 ' 0
19637 trap 'as_fn_exit 1' 1 2 13 15
19638 }
19639 # Create a (secure) tmp directory for tmp files.
19640
19641 {
19642 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19643 test -d "$tmp"
19644 } ||
19645 {
19646 tmp=./conf$$-$RANDOM
19647 (umask 077 && mkdir "$tmp")
19648 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19649 ac_tmp=$tmp
19650
19651 # Set up the scripts for CONFIG_FILES section.
19652 # No need to generate them if there are no CONFIG_FILES.
19653 # This happens for instance with `./config.status config.h'.
19654 if test -n "$CONFIG_FILES"; then
19655
19656
19657 ac_cr=`echo X | tr X '\015'`
19658 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19659 # But we know of no other shell where ac_cr would be empty at this
19660 # point, so we can use a bashism as a fallback.
19661 if test "x$ac_cr" = x; then
19662 eval ac_cr=\$\'\\r\'
19663 fi
19664 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19665 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19666 ac_cs_awk_cr='\\r'
19667 else
19668 ac_cs_awk_cr=$ac_cr
19669 fi
19670
19671 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19672 _ACEOF
19673
19674
19675 {
19676 echo "cat >conf$$subs.awk <<_ACEOF" &&
19677 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19678 echo "_ACEOF"
19679 } >conf$$subs.sh ||
19680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19681 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19682 ac_delim='%!_!# '
19683 for ac_last_try in false false false false false :; do
19684 . ./conf$$subs.sh ||
19685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19686
19687 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19688 if test $ac_delim_n = $ac_delim_num; then
19689 break
19690 elif $ac_last_try; then
19691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19692 else
19693 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19694 fi
19695 done
19696 rm -f conf$$subs.sh
19697
19698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19699 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19700 _ACEOF
19701 sed -n '
19702 h
19703 s/^/S["/; s/!.*/"]=/
19704 p
19705 g
19706 s/^[^!]*!//
19707 :repl
19708 t repl
19709 s/'"$ac_delim"'$//
19710 t delim
19711 :nl
19712 h
19713 s/\(.\{148\}\)..*/\1/
19714 t more1
19715 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19716 p
19717 n
19718 b repl
19719 :more1
19720 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19721 p
19722 g
19723 s/.\{148\}//
19724 t nl
19725 :delim
19726 h
19727 s/\(.\{148\}\)..*/\1/
19728 t more2
19729 s/["\\]/\\&/g; s/^/"/; s/$/"/
19730 p
19731 b
19732 :more2
19733 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19734 p
19735 g
19736 s/.\{148\}//
19737 t delim
19738 ' <conf$$subs.awk | sed '
19739 /^[^""]/{
19740 N
19741 s/\n//
19742 }
19743 ' >>$CONFIG_STATUS || ac_write_fail=1
19744 rm -f conf$$subs.awk
19745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19746 _ACAWK
19747 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19748 for (key in S) S_is_set[key] = 1
19749 FS = ""
19750
19751 }
19752 {
19753 line = $ 0
19754 nfields = split(line, field, "@")
19755 substed = 0
19756 len = length(field[1])
19757 for (i = 2; i < nfields; i++) {
19758 key = field[i]
19759 keylen = length(key)
19760 if (S_is_set[key]) {
19761 value = S[key]
19762 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19763 len += length(value) + length(field[++i])
19764 substed = 1
19765 } else
19766 len += 1 + keylen
19767 }
19768
19769 print line
19770 }
19771
19772 _ACAWK
19773 _ACEOF
19774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19775 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19776 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19777 else
19778 cat
19779 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19780 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19781 _ACEOF
19782
19783 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19784 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19785 # trailing colons and then remove the whole line if VPATH becomes empty
19786 # (actually we leave an empty line to preserve line numbers).
19787 if test "x$srcdir" = x.; then
19788 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19789 h
19790 s///
19791 s/^/:/
19792 s/[ ]*$/:/
19793 s/:\$(srcdir):/:/g
19794 s/:\${srcdir}:/:/g
19795 s/:@srcdir@:/:/g
19796 s/^:*//
19797 s/:*$//
19798 x
19799 s/\(=[ ]*\).*/\1/
19800 G
19801 s/\n//
19802 s/^[^=]*=[ ]*$//
19803 }'
19804 fi
19805
19806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19807 fi # test -n "$CONFIG_FILES"
19808
19809 # Set up the scripts for CONFIG_HEADERS section.
19810 # No need to generate them if there are no CONFIG_HEADERS.
19811 # This happens for instance with `./config.status Makefile'.
19812 if test -n "$CONFIG_HEADERS"; then
19813 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19814 BEGIN {
19815 _ACEOF
19816
19817 # Transform confdefs.h into an awk script `defines.awk', embedded as
19818 # here-document in config.status, that substitutes the proper values into
19819 # config.h.in to produce config.h.
19820
19821 # Create a delimiter string that does not exist in confdefs.h, to ease
19822 # handling of long lines.
19823 ac_delim='%!_!# '
19824 for ac_last_try in false false :; do
19825 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19826 if test -z "$ac_tt"; then
19827 break
19828 elif $ac_last_try; then
19829 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19830 else
19831 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19832 fi
19833 done
19834
19835 # For the awk script, D is an array of macro values keyed by name,
19836 # likewise P contains macro parameters if any. Preserve backslash
19837 # newline sequences.
19838
19839 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19840 sed -n '
19841 s/.\{148\}/&'"$ac_delim"'/g
19842 t rset
19843 :rset
19844 s/^[ ]*#[ ]*define[ ][ ]*/ /
19845 t def
19846 d
19847 :def
19848 s/\\$//
19849 t bsnl
19850 s/["\\]/\\&/g
19851 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19852 D["\1"]=" \3"/p
19853 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19854 d
19855 :bsnl
19856 s/["\\]/\\&/g
19857 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19858 D["\1"]=" \3\\\\\\n"\\/p
19859 t cont
19860 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19861 t cont
19862 d
19863 :cont
19864 n
19865 s/.\{148\}/&'"$ac_delim"'/g
19866 t clear
19867 :clear
19868 s/\\$//
19869 t bsnlc
19870 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19871 d
19872 :bsnlc
19873 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19874 b cont
19875 ' <confdefs.h | sed '
19876 s/'"$ac_delim"'/"\\\
19877 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19878
19879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19880 for (key in D) D_is_set[key] = 1
19881 FS = ""
19882 }
19883 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19884 line = \$ 0
19885 split(line, arg, " ")
19886 if (arg[1] == "#") {
19887 defundef = arg[2]
19888 mac1 = arg[3]
19889 } else {
19890 defundef = substr(arg[1], 2)
19891 mac1 = arg[2]
19892 }
19893 split(mac1, mac2, "(") #)
19894 macro = mac2[1]
19895 prefix = substr(line, 1, index(line, defundef) - 1)
19896 if (D_is_set[macro]) {
19897 # Preserve the white space surrounding the "#".
19898 print prefix "define", macro P[macro] D[macro]
19899 next
19900 } else {
19901 # Replace #undef with comments. This is necessary, for example,
19902 # in the case of _POSIX_SOURCE, which is predefined and required
19903 # on some systems where configure will not decide to define it.
19904 if (defundef == "undef") {
19905 print "/*", prefix defundef, macro, "*/"
19906 next
19907 }
19908 }
19909 }
19910 { print }
19911 _ACAWK
19912 _ACEOF
19913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19914 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19915 fi # test -n "$CONFIG_HEADERS"
19916
19917
19918 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19919 shift
19920 for ac_tag
19921 do
19922 case $ac_tag in
19923 :[FHLC]) ac_mode=$ac_tag; continue;;
19924 esac
19925 case $ac_mode$ac_tag in
19926 :[FHL]*:*);;
19927 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19928 :[FH]-) ac_tag=-:-;;
19929 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19930 esac
19931 ac_save_IFS=$IFS
19932 IFS=:
19933 set x $ac_tag
19934 IFS=$ac_save_IFS
19935 shift
19936 ac_file=$1
19937 shift
19938
19939 case $ac_mode in
19940 :L) ac_source=$1;;
19941 :[FH])
19942 ac_file_inputs=
19943 for ac_f
19944 do
19945 case $ac_f in
19946 -) ac_f="$ac_tmp/stdin";;
19947 *) # Look for the file first in the build tree, then in the source tree
19948 # (if the path is not absolute). The absolute path cannot be DOS-style,
19949 # because $ac_f cannot contain `:'.
19950 test -f "$ac_f" ||
19951 case $ac_f in
19952 [\\/$]*) false;;
19953 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19954 esac ||
19955 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19956 esac
19957 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19958 as_fn_append ac_file_inputs " '$ac_f'"
19959 done
19960
19961 # Let's still pretend it is `configure' which instantiates (i.e., don't
19962 # use $as_me), people would be surprised to read:
19963 # /* config.h. Generated by config.status. */
19964 configure_input='Generated from '`
19965 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19966 `' by configure.'
19967 if test x"$ac_file" != x-; then
19968 configure_input="$ac_file. $configure_input"
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19970 $as_echo "$as_me: creating $ac_file" >&6;}
19971 fi
19972 # Neutralize special characters interpreted by sed in replacement strings.
19973 case $configure_input in #(
19974 *\&* | *\|* | *\\* )
19975 ac_sed_conf_input=`$as_echo "$configure_input" |
19976 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19977 *) ac_sed_conf_input=$configure_input;;
19978 esac
19979
19980 case $ac_tag in
19981 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19982 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19983 esac
19984 ;;
19985 esac
19986
19987 ac_dir=`$as_dirname -- "$ac_file" ||
19988 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19989 X"$ac_file" : 'X\(//\)[^/]' \| \
19990 X"$ac_file" : 'X\(//\)$' \| \
19991 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19992 $as_echo X"$ac_file" |
19993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19994 s//\1/
19995 q
19996 }
19997 /^X\(\/\/\)[^/].*/{
19998 s//\1/
19999 q
20000 }
20001 /^X\(\/\/\)$/{
20002 s//\1/
20003 q
20004 }
20005 /^X\(\/\).*/{
20006 s//\1/
20007 q
20008 }
20009 s/.*/./; q'`
20010 as_dir="$ac_dir"; as_fn_mkdir_p
20011 ac_builddir=.
20012
20013 case "$ac_dir" in
20014 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20015 *)
20016 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20017 # A ".." for each directory in $ac_dir_suffix.
20018 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20019 case $ac_top_builddir_sub in
20020 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20021 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20022 esac ;;
20023 esac
20024 ac_abs_top_builddir=$ac_pwd
20025 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20026 # for backward compatibility:
20027 ac_top_builddir=$ac_top_build_prefix
20028
20029 case $srcdir in
20030 .) # We are building in place.
20031 ac_srcdir=.
20032 ac_top_srcdir=$ac_top_builddir_sub
20033 ac_abs_top_srcdir=$ac_pwd ;;
20034 [\\/]* | ?:[\\/]* ) # Absolute name.
20035 ac_srcdir=$srcdir$ac_dir_suffix;
20036 ac_top_srcdir=$srcdir
20037 ac_abs_top_srcdir=$srcdir ;;
20038 *) # Relative name.
20039 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20040 ac_top_srcdir=$ac_top_build_prefix$srcdir
20041 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20042 esac
20043 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20044
20045
20046 case $ac_mode in
20047 :F)
20048 #
20049 # CONFIG_FILE
20050 #
20051
20052 case $INSTALL in
20053 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20054 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20055 esac
20056 ac_MKDIR_P=$MKDIR_P
20057 case $MKDIR_P in
20058 [\\/$]* | ?:[\\/]* ) ;;
20059 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20060 esac
20061 _ACEOF
20062
20063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20064 # If the template does not know about datarootdir, expand it.
20065 # FIXME: This hack should be removed a few years after 2.60.
20066 ac_datarootdir_hack=; ac_datarootdir_seen=
20067 ac_sed_dataroot='
20068 /datarootdir/ {
20069 p
20070 q
20071 }
20072 /@datadir@/p
20073 /@docdir@/p
20074 /@infodir@/p
20075 /@localedir@/p
20076 /@mandir@/p'
20077 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20078 *datarootdir*) ac_datarootdir_seen=yes;;
20079 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20081 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20082 _ACEOF
20083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20084 ac_datarootdir_hack='
20085 s&@datadir@&$datadir&g
20086 s&@docdir@&$docdir&g
20087 s&@infodir@&$infodir&g
20088 s&@localedir@&$localedir&g
20089 s&@mandir@&$mandir&g
20090 s&\\\${datarootdir}&$datarootdir&g' ;;
20091 esac
20092 _ACEOF
20093
20094 # Neutralize VPATH when `$srcdir' = `.'.
20095 # Shell code in configure.ac might set extrasub.
20096 # FIXME: do we really want to maintain this feature?
20097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20098 ac_sed_extra="$ac_vpsub
20099 $extrasub
20100 _ACEOF
20101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20102 :t
20103 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20104 s|@configure_input@|$ac_sed_conf_input|;t t
20105 s&@top_builddir@&$ac_top_builddir_sub&;t t
20106 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20107 s&@srcdir@&$ac_srcdir&;t t
20108 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20109 s&@top_srcdir@&$ac_top_srcdir&;t t
20110 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20111 s&@builddir@&$ac_builddir&;t t
20112 s&@abs_builddir@&$ac_abs_builddir&;t t
20113 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20114 s&@INSTALL@&$ac_INSTALL&;t t
20115 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20116 $ac_datarootdir_hack
20117 "
20118 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20119 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20120
20121 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20122 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20123 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20124 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20126 which seems to be undefined. Please make sure it is defined" >&5
20127 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20128 which seems to be undefined. Please make sure it is defined" >&2;}
20129
20130 rm -f "$ac_tmp/stdin"
20131 case $ac_file in
20132 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20133 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20134 esac \
20135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20136 ;;
20137 :H)
20138 #
20139 # CONFIG_HEADER
20140 #
20141 if test x"$ac_file" != x-; then
20142 {
20143 $as_echo "/* $configure_input */" \
20144 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20145 } >"$ac_tmp/config.h" \
20146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20147 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20149 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20150 else
20151 rm -f "$ac_file"
20152 mv "$ac_tmp/config.h" "$ac_file" \
20153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20154 fi
20155 else
20156 $as_echo "/* $configure_input */" \
20157 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20158 || as_fn_error $? "could not create -" "$LINENO" 5
20159 fi
20160 # Compute "$ac_file"'s index in $config_headers.
20161 _am_arg="$ac_file"
20162 _am_stamp_count=1
20163 for _am_header in $config_headers :; do
20164 case $_am_header in
20165 $_am_arg | $_am_arg:* )
20166 break ;;
20167 * )
20168 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20169 esac
20170 done
20171 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20172 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20173 X"$_am_arg" : 'X\(//\)[^/]' \| \
20174 X"$_am_arg" : 'X\(//\)$' \| \
20175 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20176 $as_echo X"$_am_arg" |
20177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20178 s//\1/
20179 q
20180 }
20181 /^X\(\/\/\)[^/].*/{
20182 s//\1/
20183 q
20184 }
20185 /^X\(\/\/\)$/{
20186 s//\1/
20187 q
20188 }
20189 /^X\(\/\).*/{
20190 s//\1/
20191 q
20192 }
20193 s/.*/./; q'`/stamp-h$_am_stamp_count
20194 ;;
20195
20196 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20197 $as_echo "$as_me: executing $ac_file commands" >&6;}
20198 ;;
20199 esac
20200
20201
20202 case $ac_file$ac_mode in
20203 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20204 # Older Autoconf quotes --file arguments for eval, but not when files
20205 # are listed without --file. Let's play safe and only enable the eval
20206 # if we detect the quoting.
20207 case $CONFIG_FILES in
20208 *\'*) eval set x "$CONFIG_FILES" ;;
20209 *) set x $CONFIG_FILES ;;
20210 esac
20211 shift
20212 for mf
20213 do
20214 # Strip MF so we end up with the name of the file.
20215 mf=`echo "$mf" | sed -e 's/:.*$//'`
20216 # Check whether this is an Automake generated Makefile or not.
20217 # We used to match only the files named 'Makefile.in', but
20218 # some people rename them; so instead we look at the file content.
20219 # Grep'ing the first line is not enough: some people post-process
20220 # each Makefile.in and add a new line on top of each file to say so.
20221 # Grep'ing the whole file is not good either: AIX grep has a line
20222 # limit of 2048, but all sed's we know have understand at least 4000.
20223 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20224 dirpart=`$as_dirname -- "$mf" ||
20225 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20226 X"$mf" : 'X\(//\)[^/]' \| \
20227 X"$mf" : 'X\(//\)$' \| \
20228 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20229 $as_echo X"$mf" |
20230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20231 s//\1/
20232 q
20233 }
20234 /^X\(\/\/\)[^/].*/{
20235 s//\1/
20236 q
20237 }
20238 /^X\(\/\/\)$/{
20239 s//\1/
20240 q
20241 }
20242 /^X\(\/\).*/{
20243 s//\1/
20244 q
20245 }
20246 s/.*/./; q'`
20247 else
20248 continue
20249 fi
20250 # Extract the definition of DEPDIR, am__include, and am__quote
20251 # from the Makefile without running 'make'.
20252 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20253 test -z "$DEPDIR" && continue
20254 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20255 test -z "$am__include" && continue
20256 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20257 # Find all dependency output files, they are included files with
20258 # $(DEPDIR) in their names. We invoke sed twice because it is the
20259 # simplest approach to changing $(DEPDIR) to its actual value in the
20260 # expansion.
20261 for file in `sed -n "
20262 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20263 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20264 # Make sure the directory exists.
20265 test -f "$dirpart/$file" && continue
20266 fdir=`$as_dirname -- "$file" ||
20267 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20268 X"$file" : 'X\(//\)[^/]' \| \
20269 X"$file" : 'X\(//\)$' \| \
20270 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20271 $as_echo X"$file" |
20272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20273 s//\1/
20274 q
20275 }
20276 /^X\(\/\/\)[^/].*/{
20277 s//\1/
20278 q
20279 }
20280 /^X\(\/\/\)$/{
20281 s//\1/
20282 q
20283 }
20284 /^X\(\/\).*/{
20285 s//\1/
20286 q
20287 }
20288 s/.*/./; q'`
20289 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20290 # echo "creating $dirpart/$file"
20291 echo '# dummy' > "$dirpart/$file"
20292 done
20293 done
20294 }
20295 ;;
20296 "libtool":C)
20297
20298 # See if we are running on zsh, and set the options that allow our
20299 # commands through without removal of \ escapes.
20300 if test -n "${ZSH_VERSION+set}"; then
20301 setopt NO_GLOB_SUBST
20302 fi
20303
20304 cfgfile=${ofile}T
20305 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20306 $RM "$cfgfile"
20307
20308 cat <<_LT_EOF >> "$cfgfile"
20309 #! $SHELL
20310 # Generated automatically by $as_me ($PACKAGE) $VERSION
20311 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20312 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20313
20314 # Provide generalized library-building support services.
20315 # Written by Gordon Matzigkeit, 1996
20316
20317 # Copyright (C) 2014 Free Software Foundation, Inc.
20318 # This is free software; see the source for copying conditions. There is NO
20319 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20320
20321 # GNU Libtool is free software; you can redistribute it and/or modify
20322 # it under the terms of the GNU General Public License as published by
20323 # the Free Software Foundation; either version 2 of of the License, or
20324 # (at your option) any later version.
20325 #
20326 # As a special exception to the GNU General Public License, if you
20327 # distribute this file as part of a program or library that is built
20328 # using GNU Libtool, you may include this file under the same
20329 # distribution terms that you use for the rest of that program.
20330 #
20331 # GNU Libtool is distributed in the hope that it will be useful, but
20332 # WITHOUT ANY WARRANTY; without even the implied warranty of
20333 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20334 # GNU General Public License for more details.
20335 #
20336 # You should have received a copy of the GNU General Public License
20337 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20338
20339
20340 # The names of the tagged configurations supported by this script.
20341 available_tags=''
20342
20343 # Configured defaults for sys_lib_dlsearch_path munging.
20344 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20345
20346 # ### BEGIN LIBTOOL CONFIG
20347
20348 # Which release of libtool.m4 was used?
20349 macro_version=$macro_version
20350 macro_revision=$macro_revision
20351
20352 # Whether or not to build shared libraries.
20353 build_libtool_libs=$enable_shared
20354
20355 # Whether or not to build static libraries.
20356 build_old_libs=$enable_static
20357
20358 # What type of objects to build.
20359 pic_mode=$pic_mode
20360
20361 # Whether or not to optimize for fast installation.
20362 fast_install=$enable_fast_install
20363
20364 # Shared archive member basename,for filename based shared library versioning on AIX.
20365 shared_archive_member_spec=$shared_archive_member_spec
20366
20367 # Shell to use when invoking shell scripts.
20368 SHELL=$lt_SHELL
20369
20370 # An echo program that protects backslashes.
20371 ECHO=$lt_ECHO
20372
20373 # The PATH separator for the build system.
20374 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20375
20376 # The host system.
20377 host_alias=$host_alias
20378 host=$host
20379 host_os=$host_os
20380
20381 # The build system.
20382 build_alias=$build_alias
20383 build=$build
20384 build_os=$build_os
20385
20386 # A sed program that does not truncate output.
20387 SED=$lt_SED
20388
20389 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20390 Xsed="\$SED -e 1s/^X//"
20391
20392 # A grep program that handles long lines.
20393 GREP=$lt_GREP
20394
20395 # An ERE matcher.
20396 EGREP=$lt_EGREP
20397
20398 # A literal string matcher.
20399 FGREP=$lt_FGREP
20400
20401 # A BSD- or MS-compatible name lister.
20402 NM=$lt_NM
20403
20404 # Whether we need soft or hard links.
20405 LN_S=$lt_LN_S
20406
20407 # What is the maximum length of a command?
20408 max_cmd_len=$max_cmd_len
20409
20410 # Object file suffix (normally "o").
20411 objext=$ac_objext
20412
20413 # Executable file suffix (normally "").
20414 exeext=$exeext
20415
20416 # whether the shell understands "unset".
20417 lt_unset=$lt_unset
20418
20419 # turn spaces into newlines.
20420 SP2NL=$lt_lt_SP2NL
20421
20422 # turn newlines into spaces.
20423 NL2SP=$lt_lt_NL2SP
20424
20425 # convert \$build file names to \$host format.
20426 to_host_file_cmd=$lt_cv_to_host_file_cmd
20427
20428 # convert \$build files to toolchain format.
20429 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20430
20431 # An object symbol dumper.
20432 OBJDUMP=$lt_OBJDUMP
20433
20434 # Method to check whether dependent libraries are shared objects.
20435 deplibs_check_method=$lt_deplibs_check_method
20436
20437 # Command to use when deplibs_check_method = "file_magic".
20438 file_magic_cmd=$lt_file_magic_cmd
20439
20440 # How to find potential files when deplibs_check_method = "file_magic".
20441 file_magic_glob=$lt_file_magic_glob
20442
20443 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20444 want_nocaseglob=$lt_want_nocaseglob
20445
20446 # DLL creation program.
20447 DLLTOOL=$lt_DLLTOOL
20448
20449 # Command to associate shared and link libraries.
20450 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20451
20452 # The archiver.
20453 AR=$lt_AR
20454
20455 # Flags to create an archive.
20456 AR_FLAGS=$lt_AR_FLAGS
20457
20458 # How to feed a file listing to the archiver.
20459 archiver_list_spec=$lt_archiver_list_spec
20460
20461 # A symbol stripping program.
20462 STRIP=$lt_STRIP
20463
20464 # Commands used to install an old-style archive.
20465 RANLIB=$lt_RANLIB
20466 old_postinstall_cmds=$lt_old_postinstall_cmds
20467 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20468
20469 # Whether to use a lock for old archive extraction.
20470 lock_old_archive_extraction=$lock_old_archive_extraction
20471
20472 # A C compiler.
20473 LTCC=$lt_CC
20474
20475 # LTCC compiler flags.
20476 LTCFLAGS=$lt_CFLAGS
20477
20478 # Take the output of nm and produce a listing of raw symbols and C names.
20479 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20480
20481 # Transform the output of nm in a proper C declaration.
20482 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20483
20484 # Transform the output of nm into a list of symbols to manually relocate.
20485 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20486
20487 # Transform the output of nm in a C name address pair.
20488 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20489
20490 # Transform the output of nm in a C name address pair when lib prefix is needed.
20491 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20492
20493 # The name lister interface.
20494 nm_interface=$lt_lt_cv_nm_interface
20495
20496 # Specify filename containing input files for \$NM.
20497 nm_file_list_spec=$lt_nm_file_list_spec
20498
20499 # The root where to search for dependent libraries,and where our libraries should be installed.
20500 lt_sysroot=$lt_sysroot
20501
20502 # Command to truncate a binary pipe.
20503 lt_truncate_bin=$lt_lt_cv_truncate_bin
20504
20505 # The name of the directory that contains temporary libtool files.
20506 objdir=$objdir
20507
20508 # Used to examine libraries when file_magic_cmd begins with "file".
20509 MAGIC_CMD=$MAGIC_CMD
20510
20511 # Must we lock files when doing compilation?
20512 need_locks=$lt_need_locks
20513
20514 # Manifest tool.
20515 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20516
20517 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20518 DSYMUTIL=$lt_DSYMUTIL
20519
20520 # Tool to change global to local symbols on Mac OS X.
20521 NMEDIT=$lt_NMEDIT
20522
20523 # Tool to manipulate fat objects and archives on Mac OS X.
20524 LIPO=$lt_LIPO
20525
20526 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20527 OTOOL=$lt_OTOOL
20528
20529 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20530 OTOOL64=$lt_OTOOL64
20531
20532 # Old archive suffix (normally "a").
20533 libext=$libext
20534
20535 # Shared library suffix (normally ".so").
20536 shrext_cmds=$lt_shrext_cmds
20537
20538 # The commands to extract the exported symbol list from a shared archive.
20539 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20540
20541 # Variables whose values should be saved in libtool wrapper scripts and
20542 # restored at link time.
20543 variables_saved_for_relink=$lt_variables_saved_for_relink
20544
20545 # Do we need the "lib" prefix for modules?
20546 need_lib_prefix=$need_lib_prefix
20547
20548 # Do we need a version for libraries?
20549 need_version=$need_version
20550
20551 # Library versioning type.
20552 version_type=$version_type
20553
20554 # Shared library runtime path variable.
20555 runpath_var=$runpath_var
20556
20557 # Shared library path variable.
20558 shlibpath_var=$shlibpath_var
20559
20560 # Is shlibpath searched before the hard-coded library search path?
20561 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20562
20563 # Format of library name prefix.
20564 libname_spec=$lt_libname_spec
20565
20566 # List of archive names. First name is the real one, the rest are links.
20567 # The last name is the one that the linker finds with -lNAME
20568 library_names_spec=$lt_library_names_spec
20569
20570 # The coded name of the library, if different from the real name.
20571 soname_spec=$lt_soname_spec
20572
20573 # Permission mode override for installation of shared libraries.
20574 install_override_mode=$lt_install_override_mode
20575
20576 # Command to use after installation of a shared archive.
20577 postinstall_cmds=$lt_postinstall_cmds
20578
20579 # Command to use after uninstallation of a shared archive.
20580 postuninstall_cmds=$lt_postuninstall_cmds
20581
20582 # Commands used to finish a libtool library installation in a directory.
20583 finish_cmds=$lt_finish_cmds
20584
20585 # As "finish_cmds", except a single script fragment to be evaled but
20586 # not shown.
20587 finish_eval=$lt_finish_eval
20588
20589 # Whether we should hardcode library paths into libraries.
20590 hardcode_into_libs=$hardcode_into_libs
20591
20592 # Compile-time system search path for libraries.
20593 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20594
20595 # Detected run-time system search path for libraries.
20596 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20597
20598 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20599 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20600
20601 # Whether dlopen is supported.
20602 dlopen_support=$enable_dlopen
20603
20604 # Whether dlopen of programs is supported.
20605 dlopen_self=$enable_dlopen_self
20606
20607 # Whether dlopen of statically linked programs is supported.
20608 dlopen_self_static=$enable_dlopen_self_static
20609
20610 # Commands to strip libraries.
20611 old_striplib=$lt_old_striplib
20612 striplib=$lt_striplib
20613
20614
20615 # The linker used to build libraries.
20616 LD=$lt_LD
20617
20618 # How to create reloadable object files.
20619 reload_flag=$lt_reload_flag
20620 reload_cmds=$lt_reload_cmds
20621
20622 # Commands used to build an old-style archive.
20623 old_archive_cmds=$lt_old_archive_cmds
20624
20625 # A language specific compiler.
20626 CC=$lt_compiler
20627
20628 # Is the compiler the GNU compiler?
20629 with_gcc=$GCC
20630
20631 # Compiler flag to turn off builtin functions.
20632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20633
20634 # Additional compiler flags for building library objects.
20635 pic_flag=$lt_lt_prog_compiler_pic
20636
20637 # How to pass a linker flag through the compiler.
20638 wl=$lt_lt_prog_compiler_wl
20639
20640 # Compiler flag to prevent dynamic linking.
20641 link_static_flag=$lt_lt_prog_compiler_static
20642
20643 # Does compiler simultaneously support -c and -o options?
20644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20645
20646 # Whether or not to add -lc for building shared libraries.
20647 build_libtool_need_lc=$archive_cmds_need_lc
20648
20649 # Whether or not to disallow shared libs when runtime libs are static.
20650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20651
20652 # Compiler flag to allow reflexive dlopens.
20653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20654
20655 # Compiler flag to generate shared objects directly from archives.
20656 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20657
20658 # Whether the compiler copes with passing no objects directly.
20659 compiler_needs_object=$lt_compiler_needs_object
20660
20661 # Create an old-style archive from a shared archive.
20662 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20663
20664 # Create a temporary old-style archive to link instead of a shared archive.
20665 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20666
20667 # Commands used to build a shared archive.
20668 archive_cmds=$lt_archive_cmds
20669 archive_expsym_cmds=$lt_archive_expsym_cmds
20670
20671 # Commands used to build a loadable module if different from building
20672 # a shared archive.
20673 module_cmds=$lt_module_cmds
20674 module_expsym_cmds=$lt_module_expsym_cmds
20675
20676 # Whether we are building with GNU ld or not.
20677 with_gnu_ld=$lt_with_gnu_ld
20678
20679 # Flag that allows shared libraries with undefined symbols to be built.
20680 allow_undefined_flag=$lt_allow_undefined_flag
20681
20682 # Flag that enforces no undefined symbols.
20683 no_undefined_flag=$lt_no_undefined_flag
20684
20685 # Flag to hardcode \$libdir into a binary during linking.
20686 # This must work even if \$libdir does not exist
20687 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20688
20689 # Whether we need a single "-rpath" flag with a separated argument.
20690 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20691
20692 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20693 # DIR into the resulting binary.
20694 hardcode_direct=$hardcode_direct
20695
20696 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20697 # DIR into the resulting binary and the resulting library dependency is
20698 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20699 # library is relocated.
20700 hardcode_direct_absolute=$hardcode_direct_absolute
20701
20702 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20703 # into the resulting binary.
20704 hardcode_minus_L=$hardcode_minus_L
20705
20706 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20707 # into the resulting binary.
20708 hardcode_shlibpath_var=$hardcode_shlibpath_var
20709
20710 # Set to "yes" if building a shared library automatically hardcodes DIR
20711 # into the library and all subsequent libraries and executables linked
20712 # against it.
20713 hardcode_automatic=$hardcode_automatic
20714
20715 # Set to yes if linker adds runtime paths of dependent libraries
20716 # to runtime path list.
20717 inherit_rpath=$inherit_rpath
20718
20719 # Whether libtool must link a program against all its dependency libraries.
20720 link_all_deplibs=$link_all_deplibs
20721
20722 # Set to "yes" if exported symbols are required.
20723 always_export_symbols=$always_export_symbols
20724
20725 # The commands to list exported symbols.
20726 export_symbols_cmds=$lt_export_symbols_cmds
20727
20728 # Symbols that should not be listed in the preloaded symbols.
20729 exclude_expsyms=$lt_exclude_expsyms
20730
20731 # Symbols that must always be exported.
20732 include_expsyms=$lt_include_expsyms
20733
20734 # Commands necessary for linking programs (against libraries) with templates.
20735 prelink_cmds=$lt_prelink_cmds
20736
20737 # Commands necessary for finishing linking programs.
20738 postlink_cmds=$lt_postlink_cmds
20739
20740 # Specify filename containing input files.
20741 file_list_spec=$lt_file_list_spec
20742
20743 # How to hardcode a shared library path into an executable.
20744 hardcode_action=$hardcode_action
20745
20746 # ### END LIBTOOL CONFIG
20747
20748 _LT_EOF
20749
20750 cat <<'_LT_EOF' >> "$cfgfile"
20751
20752 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20753
20754 # func_munge_path_list VARIABLE PATH
20755 # -----------------------------------
20756 # VARIABLE is name of variable containing _space_ separated list of
20757 # directories to be munged by the contents of PATH, which is string
20758 # having a format:
20759 # "DIR[:DIR]:"
20760 # string "DIR[ DIR]" will be prepended to VARIABLE
20761 # ":DIR[:DIR]"
20762 # string "DIR[ DIR]" will be appended to VARIABLE
20763 # "DIRP[:DIRP]::[DIRA:]DIRA"
20764 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20765 # "DIRA[ DIRA]" will be appended to VARIABLE
20766 # "DIR[:DIR]"
20767 # VARIABLE will be replaced by "DIR[ DIR]"
20768 func_munge_path_list ()
20769 {
20770 case x$2 in
20771 x)
20772 ;;
20773 *:)
20774 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20775 ;;
20776 x:*)
20777 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20778 ;;
20779 *::*)
20780 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20781 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20782 ;;
20783 *)
20784 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20785 ;;
20786 esac
20787 }
20788
20789
20790 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20791 func_cc_basename ()
20792 {
20793 for cc_temp in $*""; do
20794 case $cc_temp in
20795 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20796 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20797 \-*) ;;
20798 *) break;;
20799 esac
20800 done
20801 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20802 }
20803
20804
20805 # ### END FUNCTIONS SHARED WITH CONFIGURE
20806
20807 _LT_EOF
20808
20809 case $host_os in
20810 aix3*)
20811 cat <<\_LT_EOF >> "$cfgfile"
20812 # AIX sometimes has problems with the GCC collect2 program. For some
20813 # reason, if we set the COLLECT_NAMES environment variable, the problems
20814 # vanish in a puff of smoke.
20815 if test set != "${COLLECT_NAMES+set}"; then
20816 COLLECT_NAMES=
20817 export COLLECT_NAMES
20818 fi
20819 _LT_EOF
20820 ;;
20821 esac
20822
20823
20824 ltmain=$ac_aux_dir/ltmain.sh
20825
20826
20827 # We use sed instead of cat because bash on DJGPP gets confused if
20828 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20829 # text mode, it properly converts lines to CR/LF. This bash problem
20830 # is reportedly fixed, but why not run on old versions too?
20831 sed '$q' "$ltmain" >> "$cfgfile" \
20832 || (rm -f "$cfgfile"; exit 1)
20833
20834 mv -f "$cfgfile" "$ofile" ||
20835 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20836 chmod +x "$ofile"
20837
20838 ;;
20839
20840 esac
20841 done # for ac_tag
20842
20843
20844 as_fn_exit 0
20845 _ACEOF
20846 ac_clean_files=$ac_clean_files_save
20847
20848 test $ac_write_fail = 0 ||
20849 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20850
20851
20852 # configure is writing to config.log, and then calls config.status.
20853 # config.status does its own redirection, appending to config.log.
20854 # Unfortunately, on DOS this fails, as config.log is still kept open
20855 # by configure, so config.status won't be able to write to it; its
20856 # output is simply discarded. So we exec the FD to /dev/null,
20857 # effectively closing config.log, so it can be properly (re)opened and
20858 # appended to by config.status. When coming back to configure, we
20859 # need to make the FD available again.
20860 if test "$no_create" != yes; then
20861 ac_cs_success=:
20862 ac_config_status_args=
20863 test "$silent" = yes &&
20864 ac_config_status_args="$ac_config_status_args --quiet"
20865 exec 5>/dev/null
20866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20867 exec 5>>config.log
20868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20869 # would make configure fail if this is the last instruction.
20870 $ac_cs_success || as_fn_exit 1
20871 fi
20872 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20874 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20875 fi
20876
20877