configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libXdmcp 1.1.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
282 $0: https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues
283 $0: about your system, including any error possibly output
284 $0: before this message. Then install a modern shell, or
285 $0: manually run the script under such a shell if you do
286 $0: have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 as_awk_strverscmp='
595 # Use only awk features that work with 7th edition Unix awk (1978).
596 # My, what an old awk you have, Mr. Solaris!
597 END {
598 while (length(v1) && length(v2)) {
599 # Set d1 to be the next thing to compare from v1, and likewise for d2.
600 # Normally this is a single character, but if v1 and v2 contain digits,
601 # compare them as integers and fractions as strverscmp does.
602 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
603 # Split v1 and v2 into their leading digit string components d1 and d2,
604 # and advance v1 and v2 past the leading digit strings.
605 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
606 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
607 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
608 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
609 if (d1 ~ /^0/) {
610 if (d2 ~ /^0/) {
611 # Compare two fractions.
612 while (d1 ~ /^0/ && d2 ~ /^0/) {
613 d1 = substr(d1, 2); len1--
614 d2 = substr(d2, 2); len2--
615 }
616 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
617 # The two components differ in length, and the common prefix
618 # contains only leading zeros. Consider the longer to be less.
619 d1 = -len1
620 d2 = -len2
621 } else {
622 # Otherwise, compare as strings.
623 d1 = "x" d1
624 d2 = "x" d2
625 }
626 } else {
627 # A fraction is less than an integer.
628 exit 1
629 }
630 } else {
631 if (d2 ~ /^0/) {
632 # An integer is greater than a fraction.
633 exit 2
634 } else {
635 # Compare two integers.
636 d1 += 0
637 d2 += 0
638 }
639 }
640 } else {
641 # The normal case, without worrying about digits.
642 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
643 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
644 }
645 if (d1 < d2) exit 1
646 if (d1 > d2) exit 2
647 }
648 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
649 # which mishandles some comparisons of empty strings to integers.
650 if (length(v2)) exit 1
651 if (length(v1)) exit 2
652 }
653 '
654
655 test -n "$DJDIR" || exec 7<&0 </dev/null
656 exec 6>&1
657
658 # Name of the host.
659 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
660 # so uname gets run too.
661 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
662
663 #
664 # Initializations.
665 #
666 ac_default_prefix=/usr/local
667 ac_clean_files=
668 ac_config_libobj_dir=.
669 LIBOBJS=
670 cross_compiling=no
671 subdirs=
672 MFLAGS=
673 MAKEFLAGS=
674
675 # Identity of this package.
676 PACKAGE_NAME='libXdmcp'
677 PACKAGE_TARNAME='libXdmcp'
678 PACKAGE_VERSION='1.1.5'
679 PACKAGE_STRING='libXdmcp 1.1.5'
680 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues'
681 PACKAGE_URL=''
682
683 ac_unique_file="Makefile.am"
684 # Factoring default headers for most tests.
685 ac_includes_default="\
686 #include <stddef.h>
687 #ifdef HAVE_STDIO_H
688 # include <stdio.h>
689 #endif
690 #ifdef HAVE_STDLIB_H
691 # include <stdlib.h>
692 #endif
693 #ifdef HAVE_STRING_H
694 # include <string.h>
695 #endif
696 #ifdef HAVE_INTTYPES_H
697 # include <inttypes.h>
698 #endif
699 #ifdef HAVE_STDINT_H
700 # include <stdint.h>
701 #endif
702 #ifdef HAVE_STRINGS_H
703 # include <strings.h>
704 #endif
705 #ifdef HAVE_SYS_TYPES_H
706 # include <sys/types.h>
707 #endif
708 #ifdef HAVE_SYS_STAT_H
709 # include <sys/stat.h>
710 #endif
711 #ifdef HAVE_UNISTD_H
712 # include <unistd.h>
713 #endif"
714
715 ac_header_c_list=
716 ac_subst_vars='am__EXEEXT_FALSE
717 am__EXEEXT_TRUE
718 LTLIBOBJS
719 LIBOBJS
720 ENABLE_UNIT_TESTS_FALSE
721 ENABLE_UNIT_TESTS_TRUE
722 XORG_MALLOC_DEBUG_ENV
723 MAKE_LINT_LIB_FALSE
724 MAKE_LINT_LIB_TRUE
725 LINTLIB
726 LINT_FALSE
727 LINT_TRUE
728 LINT_FLAGS
729 LINT
730 HASXDMAUTH_FALSE
731 HASXDMAUTH_TRUE
732 XDMCP_LIBS
733 XDMCP_CFLAGS
734 LIBBSD_LIBS
735 LIBBSD_CFLAGS
736 HAVE_STYLESHEETS_FALSE
737 HAVE_STYLESHEETS_TRUE
738 XSL_STYLESHEET
739 STYLESHEET_SRCDIR
740 XORG_SGML_PATH
741 HAVE_XSLTPROC_FALSE
742 HAVE_XSLTPROC_TRUE
743 XSLTPROC
744 HAVE_FOP_FALSE
745 HAVE_FOP_TRUE
746 FOP
747 HAVE_XMLTO_FALSE
748 HAVE_XMLTO_TRUE
749 HAVE_XMLTO_TEXT_FALSE
750 HAVE_XMLTO_TEXT_TRUE
751 XMLTO
752 ENABLE_DOCS_FALSE
753 ENABLE_DOCS_TRUE
754 MAN_SUBSTS
755 XORG_MAN_PAGE
756 ADMIN_MAN_DIR
757 DRIVER_MAN_DIR
758 MISC_MAN_DIR
759 FILE_MAN_DIR
760 LIB_MAN_DIR
761 APP_MAN_DIR
762 ADMIN_MAN_SUFFIX
763 DRIVER_MAN_SUFFIX
764 MISC_MAN_SUFFIX
765 FILE_MAN_SUFFIX
766 LIB_MAN_SUFFIX
767 APP_MAN_SUFFIX
768 INSTALL_CMD
769 PKG_CONFIG_LIBDIR
770 PKG_CONFIG_PATH
771 PKG_CONFIG
772 CHANGELOG_CMD
773 STRICT_CFLAGS
774 CWARNFLAGS
775 BASE_CFLAGS
776 LT_SYS_LIBRARY_PATH
777 OTOOL64
778 OTOOL
779 LIPO
780 NMEDIT
781 DSYMUTIL
782 MANIFEST_TOOL
783 RANLIB
784 ac_ct_AR
785 AR
786 FILECMD
787 LN_S
788 NM
789 ac_ct_DUMPBIN
790 DUMPBIN
791 LD
792 FGREP
793 EGREP
794 GREP
795 SED
796 host_os
797 host_vendor
798 host_cpu
799 host
800 build_os
801 build_vendor
802 build_cpu
803 build
804 LIBTOOL
805 OBJDUMP
806 DLLTOOL
807 AS
808 AM_BACKSLASH
809 AM_DEFAULT_VERBOSITY
810 AM_DEFAULT_V
811 AM_V
812 CSCOPE
813 ETAGS
814 CTAGS
815 am__fastdepCC_FALSE
816 am__fastdepCC_TRUE
817 CCDEPMODE
818 am__nodep
819 AMDEPBACKSLASH
820 AMDEP_FALSE
821 AMDEP_TRUE
822 am__include
823 DEPDIR
824 am__untar
825 am__tar
826 AMTAR
827 am__leading_dot
828 SET_MAKE
829 AWK
830 mkdir_p
831 MKDIR_P
832 INSTALL_STRIP_PROGRAM
833 STRIP
834 install_sh
835 MAKEINFO
836 AUTOHEADER
837 AUTOMAKE
838 AUTOCONF
839 ACLOCAL
840 VERSION
841 PACKAGE
842 CYGPATH_W
843 am__isrc
844 INSTALL_DATA
845 INSTALL_SCRIPT
846 INSTALL_PROGRAM
847 OBJEXT
848 EXEEXT
849 ac_ct_CC
850 CPPFLAGS
851 LDFLAGS
852 CFLAGS
853 CC
854 target_alias
855 host_alias
856 build_alias
857 LIBS
858 ECHO_T
859 ECHO_N
860 ECHO_C
861 DEFS
862 mandir
863 localedir
864 libdir
865 psdir
866 pdfdir
867 dvidir
868 htmldir
869 infodir
870 docdir
871 oldincludedir
872 includedir
873 runstatedir
874 localstatedir
875 sharedstatedir
876 sysconfdir
877 datadir
878 datarootdir
879 libexecdir
880 sbindir
881 bindir
882 program_transform_name
883 prefix
884 exec_prefix
885 PACKAGE_URL
886 PACKAGE_BUGREPORT
887 PACKAGE_STRING
888 PACKAGE_VERSION
889 PACKAGE_TARNAME
890 PACKAGE_NAME
891 PATH_SEPARATOR
892 SHELL
893 am__quote'
894 ac_subst_files=''
895 ac_user_opts='
896 enable_option_checking
897 enable_dependency_tracking
898 enable_silent_rules
899 enable_shared
900 enable_static
901 with_pic
902 enable_fast_install
903 with_aix_soname
904 with_gnu_ld
905 with_sysroot
906 enable_libtool_lock
907 enable_selective_werror
908 enable_strict_compilation
909 enable_docs
910 with_xmlto
911 with_fop
912 with_xsltproc
913 with_lint
914 enable_lint_library
915 enable_unit_tests
916 '
917 ac_precious_vars='build_alias
918 host_alias
919 target_alias
920 CC
921 CFLAGS
922 LDFLAGS
923 LIBS
924 CPPFLAGS
925 LT_SYS_LIBRARY_PATH
926 PKG_CONFIG
927 PKG_CONFIG_PATH
928 PKG_CONFIG_LIBDIR
929 XMLTO
930 FOP
931 XSLTPROC
932 LIBBSD_CFLAGS
933 LIBBSD_LIBS
934 XDMCP_CFLAGS
935 XDMCP_LIBS
936 LINT
937 LINT_FLAGS
938 XORG_MALLOC_DEBUG_ENV'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 runstatedir='${localstatedir}/run'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
997 ac_prev=
998 continue
999 fi
1000
1001 case $ac_option in
1002 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 *=) ac_optarg= ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 case $ac_dashdash$ac_option in
1008 --)
1009 ac_dashdash=yes ;;
1010
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 ac_prev=bindir ;;
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1015
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1020
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1027
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1030
1031 -datadir | --datadir | --datadi | --datad)
1032 ac_prev=datadir ;;
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1035
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1042
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error $? "invalid feature name: '$ac_useropt'"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1068
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid feature name: '$ac_useropt'"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1093
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1096 with_gas=yes ;;
1097
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1104
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1109
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 ac_prev=htmldir ;;
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 | --ht=*)
1114 htmldir=$ac_optarg ;;
1115
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1122
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 ac_prev=infodir ;;
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1127
1128 -libdir | --libdir | --libdi | --libd)
1129 ac_prev=libdir ;;
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1132
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1139
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1144
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1151
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 ac_prev=mandir ;;
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1156
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1159 with_fp=no ;;
1160
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1163 no_create=yes ;;
1164
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 no_recursion=yes ;;
1168
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1177
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 ac_prev=prefix ;;
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1182
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1189
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1196
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1213
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 ac_prev=pdfdir ;;
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1218
1219 -psdir | --psdir | --psdi | --psd | --ps)
1220 ac_prev=psdir ;;
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 psdir=$ac_optarg ;;
1223
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 silent=yes ;;
1227
1228 -runstatedir | --runstatedir | --runstatedi | --runstated \
1229 | --runstate | --runstat | --runsta | --runst | --runs \
1230 | --run | --ru | --r)
1231 ac_prev=runstatedir ;;
1232 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1233 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1234 | --run=* | --ru=* | --r=*)
1235 runstatedir=$ac_optarg ;;
1236
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
1241 sbindir=$ac_optarg ;;
1242
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
1252 sharedstatedir=$ac_optarg ;;
1253
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
1257 site=$ac_optarg ;;
1258
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1263
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1270
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1275
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1278
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1281
1282 -with-* | --with-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid package name: '$ac_useropt'"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=\$ac_optarg ;;
1297
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error $? "invalid package name: '$ac_useropt'"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1306 *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval with_$ac_useropt=no ;;
1313
1314 --x)
1315 # Obsolete; use --with-x.
1316 with_x=yes ;;
1317
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1324
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1331
1332 -*) as_fn_error $? "unrecognized option: '$ac_option'
1333 Try '$0 --help' for more information"
1334 ;;
1335
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1342 esac
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1345
1346 *)
1347 # FIXME: should be removed in autoconf 3.0.
1348 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352 ;;
1353
1354 esac
1355 done
1356
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error $? "missing argument to $ac_option"
1360 fi
1361
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1364 no) ;;
1365 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 esac
1368 fi
1369
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir runstatedir
1375 do
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1378 case $ac_val in
1379 */ )
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1382 esac
1383 # Be sure to have absolute directory names.
1384 case $ac_val in
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 esac
1388 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389 done
1390
1391 # There might be people who depend on the old broken behavior: '$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1394 build=$build_alias
1395 host=$host_alias
1396 target=$target_alias
1397
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 elif test "x$build_alias" != "x$host_alias"; then
1403 cross_compiling=yes
1404 fi
1405 fi
1406
1407 ac_tool_prefix=
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410 test "$silent" = yes && exec 6>/dev/null
1411
1412
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416 as_fn_error $? "working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 as_fn_error $? "pwd does not report name of working directory"
1419
1420
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 printf "%s\n" X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\/\)[^/].*/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\/\)$/{
1440 s//\1/
1441 q
1442 }
1443 /^X\(\/\).*/{
1444 s//\1/
1445 q
1446 }
1447 s/.*/./; q'`
1448 srcdir=$ac_confdir
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 srcdir=..
1451 fi
1452 else
1453 ac_srcdir_defaulted=no
1454 fi
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458 fi
1459 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1460 ac_abs_confdir=`(
1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462 pwd)`
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1466 fi
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1470 case $srcdir in
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 esac
1473 for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478 done
1479
1480 #
1481 # Report the --help message.
1482 #
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1486 cat <<_ACEOF
1487 'configure' configures libXdmcp 1.1.5 to adapt to many kinds of systems.
1488
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1493
1494 Defaults for the options are specified in brackets.
1495
1496 Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print 'checking ...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for '--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or '..']
1506
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 [PREFIX]
1512
1513 By default, 'make install' will install all the files in
1514 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than '$ac_default_prefix' using '--prefix',
1516 for instance '--prefix=\$HOME'.
1517
1518 For better control, use the options below.
1519
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/libXdmcp]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1542
1543 cat <<\_ACEOF
1544
1545 Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549
1550 System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 _ACEOF
1554 fi
1555
1556 if test -n "$ac_init_help"; then
1557 case $ac_init_help in
1558 short | recursive ) echo "Configuration of libXdmcp 1.1.5:";;
1559 esac
1560 cat <<\_ACEOF
1561
1562 Optional Features:
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --enable-dependency-tracking
1567 do not reject slow dependency extractors
1568 --disable-dependency-tracking
1569 speeds up one-time build
1570 --enable-silent-rules less verbose build output (undo: "make V=1")
1571 --disable-silent-rules verbose build output (undo: "make V=0")
1572 --enable-shared[=PKGS] build shared libraries [default=yes]
1573 --enable-static[=PKGS] build static libraries [default=yes]
1574 --enable-fast-install[=PKGS]
1575 optimize for fast installation [default=yes]
1576 --disable-libtool-lock avoid locking (might break parallel builds)
1577 --disable-selective-werror
1578 Turn off selective compiler errors. (default:
1579 enabled)
1580 --enable-strict-compilation
1581 Enable all warnings from compiler and make them
1582 errors (default: disabled)
1583 --enable-docs Enable building the documentation (default: yes)
1584 --enable-lint-library Create lint library (default: disabled)
1585 --enable-unit-tests Enable building unit test cases (default: yes)
1586
1587 Optional Packages:
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1591 both]
1592 --with-aix-soname=aix|svr4|both
1593 shared library versioning (aka "SONAME") variant to
1594 provide on AIX, [default=aix].
1595 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1596 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1597 compiler's sysroot if not specified).
1598 --with-xmlto Use xmlto to regenerate documentation (default:
1599 auto)
1600 --with-fop Use fop to regenerate documentation (default: auto)
1601 --with-xsltproc Use xsltproc for the transformation of XML documents
1602 (default: auto)
1603 --with-lint Use a lint-style source code checker (default:
1604 disabled)
1605
1606 Some influential environment variables:
1607 CC C compiler command
1608 CFLAGS C compiler flags
1609 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1610 nonstandard directory <lib dir>
1611 LIBS libraries to pass to the linker, e.g. -l<library>
1612 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1613 you have headers in a nonstandard directory <include dir>
1614 LT_SYS_LIBRARY_PATH
1615 User-defined run-time library search path.
1616 PKG_CONFIG path to pkg-config utility
1617 PKG_CONFIG_PATH
1618 directories to add to pkg-config's search path
1619 PKG_CONFIG_LIBDIR
1620 path overriding pkg-config's built-in search path
1621 XMLTO Path to xmlto command
1622 FOP Path to fop command
1623 XSLTPROC Path to xsltproc command
1624 LIBBSD_CFLAGS
1625 C compiler flags for LIBBSD, overriding pkg-config
1626 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config
1627 XDMCP_CFLAGS
1628 C compiler flags for XDMCP, overriding pkg-config
1629 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config
1630 LINT Path to a lint-style command
1631 LINT_FLAGS Flags for the lint-style command
1632 XORG_MALLOC_DEBUG_ENV
1633 Environment variables to enable memory checking in tests
1634
1635 Use these variables to override the choices made by 'configure' or to help
1636 it to find libraries and programs with nonstandard names/locations.
1637
1638 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues>.
1639 _ACEOF
1640 ac_status=$?
1641 fi
1642
1643 if test "$ac_init_help" = "recursive"; then
1644 # If there are subdirs, report their specific --help.
1645 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1646 test -d "$ac_dir" ||
1647 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648 continue
1649 ac_builddir=.
1650
1651 case "$ac_dir" in
1652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *)
1654 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1655 # A ".." for each directory in $ac_dir_suffix.
1656 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1657 case $ac_top_builddir_sub in
1658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1660 esac ;;
1661 esac
1662 ac_abs_top_builddir=$ac_pwd
1663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1664 # for backward compatibility:
1665 ac_top_builddir=$ac_top_build_prefix
1666
1667 case $srcdir in
1668 .) # We are building in place.
1669 ac_srcdir=.
1670 ac_top_srcdir=$ac_top_builddir_sub
1671 ac_abs_top_srcdir=$ac_pwd ;;
1672 [\\/]* | ?:[\\/]* ) # Absolute name.
1673 ac_srcdir=$srcdir$ac_dir_suffix;
1674 ac_top_srcdir=$srcdir
1675 ac_abs_top_srcdir=$srcdir ;;
1676 *) # Relative name.
1677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1678 ac_top_srcdir=$ac_top_build_prefix$srcdir
1679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680 esac
1681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1682
1683 cd "$ac_dir" || { ac_status=$?; continue; }
1684 # Check for configure.gnu first; this name is used for a wrapper for
1685 # Metaconfig's "Configure" on case-insensitive file systems.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 libXdmcp configure 1.1.5
1703 generated by GNU Autoconf 2.72
1704
1705 Copyright (C) 2023 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708 _ACEOF
1709 exit
1710 fi
1711
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1715
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext conftest.beam
1723 if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 printf "%s\n" "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext
1742 then :
1743 ac_retval=0
1744 else case e in #(
1745 e) printf "%s\n" "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1 ;;
1749 esac
1750 fi
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_compile
1755
1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists and can be compiled using the include files in
1759 # INCLUDES, setting the cache variable VAR accordingly.
1760 ac_fn_c_check_header_compile ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 printf %s "checking for $2... " >&6; }
1765 if eval test \${$3+y}
1766 then :
1767 printf %s "(cached) " >&6
1768 else case e in #(
1769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 $4
1772 #include <$2>
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"
1775 then :
1776 eval "$3=yes"
1777 else case e in #(
1778 e) eval "$3=no" ;;
1779 esac
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1782 esac
1783 fi
1784 eval ac_res=\$$3
1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 printf "%s\n" "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_header_compile
1790
1791 # ac_fn_c_try_link LINENO
1792 # -----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_link ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1798 if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 printf "%s\n" "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest$ac_exeext && {
1817 test "$cross_compiling" = yes ||
1818 test -x conftest$ac_exeext
1819 }
1820 then :
1821 ac_retval=0
1822 else case e in #(
1823 e) printf "%s\n" "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1 ;;
1827 esac
1828 fi
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_link
1838
1839 # ac_fn_c_check_func LINENO FUNC VAR
1840 # ----------------------------------
1841 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1842 ac_fn_c_check_func ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 printf %s "checking for $2... " >&6; }
1847 if eval test \${$3+y}
1848 then :
1849 printf %s "(cached) " >&6
1850 else case e in #(
1851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1855 #define $2 innocuous_$2
1856
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $2 (void); below. */
1859
1860 #include <limits.h>
1861 #undef $2
1862
1863 /* Override any GCC internal prototype to avoid an error.
1864 Use char because int might match the return type of a GCC
1865 builtin and then its argument prototype would still apply. */
1866 #ifdef __cplusplus
1867 extern "C"
1868 #endif
1869 char $2 (void);
1870 /* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873 #if defined __stub_$2 || defined __stub___$2
1874 choke me
1875 #endif
1876
1877 int
1878 main (void)
1879 {
1880 return $2 ();
1881 ;
1882 return 0;
1883 }
1884 _ACEOF
1885 if ac_fn_c_try_link "$LINENO"
1886 then :
1887 eval "$3=yes"
1888 else case e in #(
1889 e) eval "$3=no" ;;
1890 esac
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1893 conftest$ac_exeext conftest.$ac_ext ;;
1894 esac
1895 fi
1896 eval ac_res=\$$3
1897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 printf "%s\n" "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_func
1902
1903 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1904 # ------------------------------------------------------------------
1905 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1906 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1907 ac_fn_check_decl ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 as_decl_name=`echo $2|sed 's/ *(.*//'`
1911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1912 printf %s "checking whether $as_decl_name is declared... " >&6; }
1913 if eval test \${$3+y}
1914 then :
1915 printf %s "(cached) " >&6
1916 else case e in #(
1917 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1918 eval ac_save_FLAGS=\$$6
1919 as_fn_append $6 " $5"
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 int
1924 main (void)
1925 {
1926 #ifndef $as_decl_name
1927 #ifdef __cplusplus
1928 (void) $as_decl_use;
1929 #else
1930 (void) $as_decl_name;
1931 #endif
1932 #endif
1933
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"
1939 then :
1940 eval "$3=yes"
1941 else case e in #(
1942 e) eval "$3=no" ;;
1943 esac
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1946 eval $6=\$ac_save_FLAGS
1947 ;;
1948 esac
1949 fi
1950 eval ac_res=\$$3
1951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 printf "%s\n" "$ac_res" >&6; }
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954
1955 } # ac_fn_check_decl
1956 ac_configure_args_raw=
1957 for ac_arg
1958 do
1959 case $ac_arg in
1960 *\'*)
1961 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1962 esac
1963 as_fn_append ac_configure_args_raw " '$ac_arg'"
1964 done
1965
1966 case $ac_configure_args_raw in
1967 *$as_nl*)
1968 ac_safe_unquote= ;;
1969 *)
1970 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1971 ac_unsafe_a="$ac_unsafe_z#~"
1972 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1973 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1974 esac
1975
1976 cat >config.log <<_ACEOF
1977 This file contains any messages produced by compilers while
1978 running configure, to aid debugging if configure makes a mistake.
1979
1980 It was created by libXdmcp $as_me 1.1.5, which was
1981 generated by GNU Autoconf 2.72. Invocation command line was
1982
1983 $ $0$ac_configure_args_raw
1984
1985 _ACEOF
1986 exec 5>>config.log
1987 {
1988 cat <<_ASUNAME
1989 ## --------- ##
1990 ## Platform. ##
1991 ## --------- ##
1992
1993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998
1999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2001
2002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2009
2010 _ASUNAME
2011
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015 IFS=$as_save_IFS
2016 case $as_dir in #(((
2017 '') as_dir=./ ;;
2018 */) ;;
2019 *) as_dir=$as_dir/ ;;
2020 esac
2021 printf "%s\n" "PATH: $as_dir"
2022 done
2023 IFS=$as_save_IFS
2024
2025 } >&5
2026
2027 cat >&5 <<_ACEOF
2028
2029
2030 ## ----------- ##
2031 ## Core tests. ##
2032 ## ----------- ##
2033
2034 _ACEOF
2035
2036
2037 # Keep a trace of the command line.
2038 # Strip out --no-create and --no-recursion so they do not pile up.
2039 # Strip out --silent because we don't want to record it for future runs.
2040 # Also quote any args containing shell meta-characters.
2041 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_configure_args=
2043 ac_configure_args0=
2044 ac_configure_args1=
2045 ac_must_keep_next=false
2046 for ac_pass in 1 2
2047 do
2048 for ac_arg
2049 do
2050 case $ac_arg in
2051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053 | -silent | --silent | --silen | --sile | --sil)
2054 continue ;;
2055 *\'*)
2056 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 esac
2058 case $ac_pass in
2059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2060 2)
2061 as_fn_append ac_configure_args1 " '$ac_arg'"
2062 if test $ac_must_keep_next = true; then
2063 ac_must_keep_next=false # Got value, back to normal.
2064 else
2065 case $ac_arg in
2066 *=* | --config-cache | -C | -disable-* | --disable-* \
2067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069 | -with-* | --with-* | -without-* | --without-* | --x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072 esac
2073 ;;
2074 -* ) ac_must_keep_next=true ;;
2075 esac
2076 fi
2077 as_fn_append ac_configure_args " '$ac_arg'"
2078 ;;
2079 esac
2080 done
2081 done
2082 { ac_configure_args0=; unset ac_configure_args0;}
2083 { ac_configure_args1=; unset ac_configure_args1;}
2084
2085 # When interrupted or exit'd, cleanup temporary files, and complete
2086 # config.log. We remove comments because anyway the quotes in there
2087 # would cause problems or look ugly.
2088 # WARNING: Use '\'' to represent an apostrophe within the trap.
2089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090 trap 'exit_status=$?
2091 # Sanitize IFS.
2092 IFS=" "" $as_nl"
2093 # Save into config.log some information that might help in debugging.
2094 {
2095 echo
2096
2097 printf "%s\n" "## ---------------- ##
2098 ## Cache variables. ##
2099 ## ---------------- ##"
2100 echo
2101 # The following way of writing the cache mishandles newlines in values,
2102 (
2103 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in #(
2106 *${as_nl}*)
2107 case $ac_var in #(
2108 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2109 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2110 esac
2111 case $ac_var in #(
2112 _ | IFS | as_nl) ;; #(
2113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2114 *) { eval $ac_var=; unset $ac_var;} ;;
2115 esac ;;
2116 esac
2117 done
2118 (set) 2>&1 |
2119 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2120 *${as_nl}ac_space=\ *)
2121 sed -n \
2122 "s/'\''/'\''\\\\'\'''\''/g;
2123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2124 ;; #(
2125 *)
2126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2127 ;;
2128 esac |
2129 sort
2130 )
2131 echo
2132
2133 printf "%s\n" "## ----------------- ##
2134 ## Output variables. ##
2135 ## ----------------- ##"
2136 echo
2137 for ac_var in $ac_subst_vars
2138 do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in
2141 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 esac
2143 printf "%s\n" "$ac_var='\''$ac_val'\''"
2144 done | sort
2145 echo
2146
2147 if test -n "$ac_subst_files"; then
2148 printf "%s\n" "## ------------------- ##
2149 ## File substitutions. ##
2150 ## ------------------- ##"
2151 echo
2152 for ac_var in $ac_subst_files
2153 do
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 printf "%s\n" "$ac_var='\''$ac_val'\''"
2159 done | sort
2160 echo
2161 fi
2162
2163 if test -s confdefs.h; then
2164 printf "%s\n" "## ----------- ##
2165 ## confdefs.h. ##
2166 ## ----------- ##"
2167 echo
2168 cat confdefs.h
2169 echo
2170 fi
2171 test "$ac_signal" != 0 &&
2172 printf "%s\n" "$as_me: caught signal $ac_signal"
2173 printf "%s\n" "$as_me: exit $exit_status"
2174 } >&5
2175 rm -f core *.core core.conftest.* &&
2176 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2177 exit $exit_status
2178 ' 0
2179 for ac_signal in 1 2 13 15; do
2180 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2181 done
2182 ac_signal=0
2183
2184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2185 rm -f -r conftest* confdefs.h
2186
2187 printf "%s\n" "/* confdefs.h */" > confdefs.h
2188
2189 # Predefined preprocessor variables.
2190
2191 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2192
2193 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2194
2195 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2196
2197 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2198
2199 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2200
2201 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2202
2203
2204 # Let the site file select an alternate cache file if it wants to.
2205 # Prefer an explicitly selected file to automatically selected ones.
2206 if test -n "$CONFIG_SITE"; then
2207 ac_site_files="$CONFIG_SITE"
2208 elif test "x$prefix" != xNONE; then
2209 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2210 else
2211 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2212 fi
2213
2214 for ac_site_file in $ac_site_files
2215 do
2216 case $ac_site_file in #(
2217 */*) :
2218 ;; #(
2219 *) :
2220 ac_site_file=./$ac_site_file ;;
2221 esac
2222 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2224 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2225 sed 's/^/| /' "$ac_site_file" >&5
2226 . "$ac_site_file" \
2227 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2228 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2229 as_fn_error $? "failed to load site script $ac_site_file
2230 See 'config.log' for more details" "$LINENO" 5; }
2231 fi
2232 done
2233
2234 if test -r "$cache_file"; then
2235 # Some versions of bash will fail to source /dev/null (special files
2236 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2237 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2239 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2240 case $cache_file in
2241 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2242 *) . "./$cache_file";;
2243 esac
2244 fi
2245 else
2246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2247 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2248 >$cache_file
2249 fi
2250
2251 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2252 # Test code for whether the C compiler supports C89 (global declarations)
2253 ac_c_conftest_c89_globals='
2254 /* Does the compiler advertise C89 conformance?
2255 Do not test the value of __STDC__, because some compilers set it to 0
2256 while being otherwise adequately conformant. */
2257 #if !defined __STDC__
2258 # error "Compiler does not advertise C89 conformance"
2259 #endif
2260
2261 #include <stddef.h>
2262 #include <stdarg.h>
2263 struct stat;
2264 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2265 struct buf { int x; };
2266 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2267 static char *e (char **p, int i)
2268 {
2269 return p[i];
2270 }
2271 static char *f (char * (*g) (char **, int), char **p, ...)
2272 {
2273 char *s;
2274 va_list v;
2275 va_start (v,p);
2276 s = g (p, va_arg (v,int));
2277 va_end (v);
2278 return s;
2279 }
2280
2281 /* C89 style stringification. */
2282 #define noexpand_stringify(a) #a
2283 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2284
2285 /* C89 style token pasting. Exercises some of the corner cases that
2286 e.g. old MSVC gets wrong, but not very hard. */
2287 #define noexpand_concat(a,b) a##b
2288 #define expand_concat(a,b) noexpand_concat(a,b)
2289 extern int vA;
2290 extern int vbee;
2291 #define aye A
2292 #define bee B
2293 int *pvA = &expand_concat(v,aye);
2294 int *pvbee = &noexpand_concat(v,bee);
2295
2296 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2297 function prototypes and stuff, but not \xHH hex character constants.
2298 These do not provoke an error unfortunately, instead are silently treated
2299 as an "x". The following induces an error, until -std is added to get
2300 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2301 array size at least. It is necessary to write \x00 == 0 to get something
2302 that is true only with -std. */
2303 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2304
2305 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2306 inside strings and character constants. */
2307 #define FOO(x) '\''x'\''
2308 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2309
2310 int test (int i, double x);
2311 struct s1 {int (*f) (int a);};
2312 struct s2 {int (*f) (double a);};
2313 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2314 int, int);'
2315
2316 # Test code for whether the C compiler supports C89 (body of main).
2317 ac_c_conftest_c89_main='
2318 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2319 '
2320
2321 # Test code for whether the C compiler supports C99 (global declarations)
2322 ac_c_conftest_c99_globals='
2323 /* Does the compiler advertise C99 conformance? */
2324 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2325 # error "Compiler does not advertise C99 conformance"
2326 #endif
2327
2328 // See if C++-style comments work.
2329
2330 #include <stdbool.h>
2331 extern int puts (const char *);
2332 extern int printf (const char *, ...);
2333 extern int dprintf (int, const char *, ...);
2334 extern void *malloc (size_t);
2335 extern void free (void *);
2336
2337 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2338 // dprintf is used instead of fprintf to avoid needing to declare
2339 // FILE and stderr.
2340 #define debug(...) dprintf (2, __VA_ARGS__)
2341 #define showlist(...) puts (#__VA_ARGS__)
2342 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2343 static void
2344 test_varargs_macros (void)
2345 {
2346 int x = 1234;
2347 int y = 5678;
2348 debug ("Flag");
2349 debug ("X = %d\n", x);
2350 showlist (The first, second, and third items.);
2351 report (x>y, "x is %d but y is %d", x, y);
2352 }
2353
2354 // Check long long types.
2355 #define BIG64 18446744073709551615ull
2356 #define BIG32 4294967295ul
2357 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2358 #if !BIG_OK
2359 #error "your preprocessor is broken"
2360 #endif
2361 #if BIG_OK
2362 #else
2363 #error "your preprocessor is broken"
2364 #endif
2365 static long long int bignum = -9223372036854775807LL;
2366 static unsigned long long int ubignum = BIG64;
2367
2368 struct incomplete_array
2369 {
2370 int datasize;
2371 double data[];
2372 };
2373
2374 struct named_init {
2375 int number;
2376 const wchar_t *name;
2377 double average;
2378 };
2379
2380 typedef const char *ccp;
2381
2382 static inline int
2383 test_restrict (ccp restrict text)
2384 {
2385 // Iterate through items via the restricted pointer.
2386 // Also check for declarations in for loops.
2387 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2388 continue;
2389 return 0;
2390 }
2391
2392 // Check varargs and va_copy.
2393 static bool
2394 test_varargs (const char *format, ...)
2395 {
2396 va_list args;
2397 va_start (args, format);
2398 va_list args_copy;
2399 va_copy (args_copy, args);
2400
2401 const char *str = "";
2402 int number = 0;
2403 float fnumber = 0;
2404
2405 while (*format)
2406 {
2407 switch (*format++)
2408 {
2409 case '\''s'\'': // string
2410 str = va_arg (args_copy, const char *);
2411 break;
2412 case '\''d'\'': // int
2413 number = va_arg (args_copy, int);
2414 break;
2415 case '\''f'\'': // float
2416 fnumber = va_arg (args_copy, double);
2417 break;
2418 default:
2419 break;
2420 }
2421 }
2422 va_end (args_copy);
2423 va_end (args);
2424
2425 return *str && number && fnumber;
2426 }
2427 '
2428
2429 # Test code for whether the C compiler supports C99 (body of main).
2430 ac_c_conftest_c99_main='
2431 // Check bool.
2432 _Bool success = false;
2433 success |= (argc != 0);
2434
2435 // Check restrict.
2436 if (test_restrict ("String literal") == 0)
2437 success = true;
2438 char *restrict newvar = "Another string";
2439
2440 // Check varargs.
2441 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2442 test_varargs_macros ();
2443
2444 // Check flexible array members.
2445 struct incomplete_array *ia =
2446 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2447 ia->datasize = 10;
2448 for (int i = 0; i < ia->datasize; ++i)
2449 ia->data[i] = i * 1.234;
2450 // Work around memory leak warnings.
2451 free (ia);
2452
2453 // Check named initializers.
2454 struct named_init ni = {
2455 .number = 34,
2456 .name = L"Test wide string",
2457 .average = 543.34343,
2458 };
2459
2460 ni.number = 58;
2461
2462 int dynamic_array[ni.number];
2463 dynamic_array[0] = argv[0][0];
2464 dynamic_array[ni.number - 1] = 543;
2465
2466 // work around unused variable warnings
2467 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2468 || dynamic_array[ni.number - 1] != 543);
2469 '
2470
2471 # Test code for whether the C compiler supports C11 (global declarations)
2472 ac_c_conftest_c11_globals='
2473 /* Does the compiler advertise C11 conformance? */
2474 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2475 # error "Compiler does not advertise C11 conformance"
2476 #endif
2477
2478 // Check _Alignas.
2479 char _Alignas (double) aligned_as_double;
2480 char _Alignas (0) no_special_alignment;
2481 extern char aligned_as_int;
2482 char _Alignas (0) _Alignas (int) aligned_as_int;
2483
2484 // Check _Alignof.
2485 enum
2486 {
2487 int_alignment = _Alignof (int),
2488 int_array_alignment = _Alignof (int[100]),
2489 char_alignment = _Alignof (char)
2490 };
2491 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2492
2493 // Check _Noreturn.
2494 int _Noreturn does_not_return (void) { for (;;) continue; }
2495
2496 // Check _Static_assert.
2497 struct test_static_assert
2498 {
2499 int x;
2500 _Static_assert (sizeof (int) <= sizeof (long int),
2501 "_Static_assert does not work in struct");
2502 long int y;
2503 };
2504
2505 // Check UTF-8 literals.
2506 #define u8 syntax error!
2507 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2508
2509 // Check duplicate typedefs.
2510 typedef long *long_ptr;
2511 typedef long int *long_ptr;
2512 typedef long_ptr long_ptr;
2513
2514 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2515 struct anonymous
2516 {
2517 union {
2518 struct { int i; int j; };
2519 struct { int k; long int l; } w;
2520 };
2521 int m;
2522 } v1;
2523 '
2524
2525 # Test code for whether the C compiler supports C11 (body of main).
2526 ac_c_conftest_c11_main='
2527 _Static_assert ((offsetof (struct anonymous, i)
2528 == offsetof (struct anonymous, w.k)),
2529 "Anonymous union alignment botch");
2530 v1.i = 2;
2531 v1.w.k = 5;
2532 ok |= v1.i != 5;
2533 '
2534
2535 # Test code for whether the C compiler supports C11 (complete).
2536 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2537 ${ac_c_conftest_c99_globals}
2538 ${ac_c_conftest_c11_globals}
2539
2540 int
2541 main (int argc, char **argv)
2542 {
2543 int ok = 0;
2544 ${ac_c_conftest_c89_main}
2545 ${ac_c_conftest_c99_main}
2546 ${ac_c_conftest_c11_main}
2547 return ok;
2548 }
2549 "
2550
2551 # Test code for whether the C compiler supports C99 (complete).
2552 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2553 ${ac_c_conftest_c99_globals}
2554
2555 int
2556 main (int argc, char **argv)
2557 {
2558 int ok = 0;
2559 ${ac_c_conftest_c89_main}
2560 ${ac_c_conftest_c99_main}
2561 return ok;
2562 }
2563 "
2564
2565 # Test code for whether the C compiler supports C89 (complete).
2566 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2567
2568 int
2569 main (int argc, char **argv)
2570 {
2571 int ok = 0;
2572 ${ac_c_conftest_c89_main}
2573 return ok;
2574 }
2575 "
2576
2577 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2578 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2579 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2580 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2581 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2582 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2583 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2584 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2585 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2586 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2587
2588 # Auxiliary files required by this configure script.
2589 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2590
2591 # Locations in which to look for auxiliary files.
2592 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2593
2594 # Search for a directory containing all of the required auxiliary files,
2595 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2596 # If we don't find one directory that contains all the files we need,
2597 # we report the set of missing files from the *first* directory in
2598 # $ac_aux_dir_candidates and give up.
2599 ac_missing_aux_files=""
2600 ac_first_candidate=:
2601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 as_found=false
2604 for as_dir in $ac_aux_dir_candidates
2605 do
2606 IFS=$as_save_IFS
2607 case $as_dir in #(((
2608 '') as_dir=./ ;;
2609 */) ;;
2610 *) as_dir=$as_dir/ ;;
2611 esac
2612 as_found=:
2613
2614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2615 ac_aux_dir_found=yes
2616 ac_install_sh=
2617 for ac_aux in $ac_aux_files
2618 do
2619 # As a special case, if "install-sh" is required, that requirement
2620 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2621 # and $ac_install_sh is set appropriately for whichever one is found.
2622 if test x"$ac_aux" = x"install-sh"
2623 then
2624 if test -f "${as_dir}install-sh"; then
2625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2626 ac_install_sh="${as_dir}install-sh -c"
2627 elif test -f "${as_dir}install.sh"; then
2628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2629 ac_install_sh="${as_dir}install.sh -c"
2630 elif test -f "${as_dir}shtool"; then
2631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2632 ac_install_sh="${as_dir}shtool install -c"
2633 else
2634 ac_aux_dir_found=no
2635 if $ac_first_candidate; then
2636 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2637 else
2638 break
2639 fi
2640 fi
2641 else
2642 if test -f "${as_dir}${ac_aux}"; then
2643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2644 else
2645 ac_aux_dir_found=no
2646 if $ac_first_candidate; then
2647 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2648 else
2649 break
2650 fi
2651 fi
2652 fi
2653 done
2654 if test "$ac_aux_dir_found" = yes; then
2655 ac_aux_dir="$as_dir"
2656 break
2657 fi
2658 ac_first_candidate=false
2659
2660 as_found=false
2661 done
2662 IFS=$as_save_IFS
2663 if $as_found
2664 then :
2665
2666 else case e in #(
2667 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2668 esac
2669 fi
2670
2671
2672 # These three variables are undocumented and unsupported,
2673 # and are intended to be withdrawn in a future Autoconf release.
2674 # They can cause serious problems if a builder's source tree is in a directory
2675 # whose full name contains unusual characters.
2676 if test -f "${ac_aux_dir}config.guess"; then
2677 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2678 fi
2679 if test -f "${ac_aux_dir}config.sub"; then
2680 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2681 fi
2682 if test -f "$ac_aux_dir/configure"; then
2683 ac_configure="$SHELL ${ac_aux_dir}configure"
2684 fi
2685
2686 # Check that the precious variables saved in the cache have kept the same
2687 # value.
2688 ac_cache_corrupted=false
2689 for ac_var in $ac_precious_vars; do
2690 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2691 eval ac_new_set=\$ac_env_${ac_var}_set
2692 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2693 eval ac_new_val=\$ac_env_${ac_var}_value
2694 case $ac_old_set,$ac_new_set in
2695 set,)
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2697 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2698 ac_cache_corrupted=: ;;
2699 ,set)
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2701 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2702 ac_cache_corrupted=: ;;
2703 ,);;
2704 *)
2705 if test "x$ac_old_val" != "x$ac_new_val"; then
2706 # differences in whitespace do not lead to failure.
2707 ac_old_val_w=`echo x $ac_old_val`
2708 ac_new_val_w=`echo x $ac_new_val`
2709 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2711 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2712 ac_cache_corrupted=:
2713 else
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2715 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2716 eval $ac_var=\$ac_old_val
2717 fi
2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2719 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2721 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2722 fi;;
2723 esac
2724 # Pass precious variables to config.status.
2725 if test "$ac_new_set" = set; then
2726 case $ac_new_val in
2727 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2728 *) ac_arg=$ac_var=$ac_new_val ;;
2729 esac
2730 case " $ac_configure_args " in
2731 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2732 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2733 esac
2734 fi
2735 done
2736 if $ac_cache_corrupted; then
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2738 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2740 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2741 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2742 and start over" "$LINENO" 5
2743 fi
2744 ## -------------------- ##
2745 ## Main body of script. ##
2746 ## -------------------- ##
2747
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754
2755
2756 ac_config_headers="$ac_config_headers config.h"
2757
2758
2759
2760 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2761 # Must be called before any macros that run the compiler (like LT_INIT)
2762 # to avoid autoconf errors.
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774 # Expand $ac_aux_dir to an absolute path.
2775 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2776
2777 ac_ext=c
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 printf %s "checking for $ac_word... " >&6; }
2787 if test ${ac_cv_prog_CC+y}
2788 then :
2789 printf %s "(cached) " >&6
2790 else case e in #(
2791 e) if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 case $as_dir in #(((
2799 '') as_dir=./ ;;
2800 */) ;;
2801 *) as_dir=$as_dir/ ;;
2802 esac
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi ;;
2814 esac
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 printf "%s\n" "$CC" >&6; }
2820 else
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 printf "%s\n" "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 if test -z "$ac_cv_prog_CC"; then
2828 ac_ct_CC=$CC
2829 # Extract the first word of "gcc", so it can be a program name with args.
2830 set dummy gcc; ac_word=$2
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 printf %s "checking for $ac_word... " >&6; }
2833 if test ${ac_cv_prog_ac_ct_CC+y}
2834 then :
2835 printf %s "(cached) " >&6
2836 else case e in #(
2837 e) if test -n "$ac_ct_CC"; then
2838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843 IFS=$as_save_IFS
2844 case $as_dir in #(((
2845 '') as_dir=./ ;;
2846 */) ;;
2847 *) as_dir=$as_dir/ ;;
2848 esac
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_ac_ct_CC="gcc"
2852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi ;;
2860 esac
2861 fi
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2865 printf "%s\n" "$ac_ct_CC" >&6; }
2866 else
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 printf "%s\n" "no" >&6; }
2869 fi
2870
2871 if test "x$ac_ct_CC" = x; then
2872 CC=""
2873 else
2874 case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned=yes ;;
2879 esac
2880 CC=$ac_ct_CC
2881 fi
2882 else
2883 CC="$ac_cv_prog_CC"
2884 fi
2885
2886 if test -z "$CC"; then
2887 if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2889 set dummy ${ac_tool_prefix}cc; ac_word=$2
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 printf %s "checking for $ac_word... " >&6; }
2892 if test ${ac_cv_prog_CC+y}
2893 then :
2894 printf %s "(cached) " >&6
2895 else case e in #(
2896 e) if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 case $as_dir in #(((
2904 '') as_dir=./ ;;
2905 */) ;;
2906 *) as_dir=$as_dir/ ;;
2907 esac
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_CC="${ac_tool_prefix}cc"
2911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914 done
2915 done
2916 IFS=$as_save_IFS
2917
2918 fi ;;
2919 esac
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 printf "%s\n" "$CC" >&6; }
2925 else
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 printf "%s\n" "no" >&6; }
2928 fi
2929
2930
2931 fi
2932 fi
2933 if test -z "$CC"; then
2934 # Extract the first word of "cc", so it can be a program name with args.
2935 set dummy cc; ac_word=$2
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 printf %s "checking for $ac_word... " >&6; }
2938 if test ${ac_cv_prog_CC+y}
2939 then :
2940 printf %s "(cached) " >&6
2941 else case e in #(
2942 e) if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 else
2945 ac_prog_rejected=no
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 case $as_dir in #(((
2951 '') as_dir=./ ;;
2952 */) ;;
2953 *) as_dir=$as_dir/ ;;
2954 esac
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2957 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2958 ac_prog_rejected=yes
2959 continue
2960 fi
2961 ac_cv_prog_CC="cc"
2962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2963 break 2
2964 fi
2965 done
2966 done
2967 IFS=$as_save_IFS
2968
2969 if test $ac_prog_rejected = yes; then
2970 # We found a bogon in the path, so make sure we never use it.
2971 set dummy $ac_cv_prog_CC
2972 shift
2973 if test $# != 0; then
2974 # We chose a different compiler from the bogus one.
2975 # However, it has the same basename, so the bogon will be chosen
2976 # first if we set CC to just the basename; use the full file name.
2977 shift
2978 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2979 fi
2980 fi
2981 fi ;;
2982 esac
2983 fi
2984 CC=$ac_cv_prog_CC
2985 if test -n "$CC"; then
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987 printf "%s\n" "$CC" >&6; }
2988 else
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 printf "%s\n" "no" >&6; }
2991 fi
2992
2993
2994 fi
2995 if test -z "$CC"; then
2996 if test -n "$ac_tool_prefix"; then
2997 for ac_prog in cl.exe
2998 do
2999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 printf %s "checking for $ac_word... " >&6; }
3003 if test ${ac_cv_prog_CC+y}
3004 then :
3005 printf %s "(cached) " >&6
3006 else case e in #(
3007 e) if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 case $as_dir in #(((
3015 '') as_dir=./ ;;
3016 */) ;;
3017 *) as_dir=$as_dir/ ;;
3018 esac
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi ;;
3030 esac
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 printf "%s\n" "$CC" >&6; }
3036 else
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 printf "%s\n" "no" >&6; }
3039 fi
3040
3041
3042 test -n "$CC" && break
3043 done
3044 fi
3045 if test -z "$CC"; then
3046 ac_ct_CC=$CC
3047 for ac_prog in cl.exe
3048 do
3049 # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 printf %s "checking for $ac_word... " >&6; }
3053 if test ${ac_cv_prog_ac_ct_CC+y}
3054 then :
3055 printf %s "(cached) " >&6
3056 else case e in #(
3057 e) if test -n "$ac_ct_CC"; then
3058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063 IFS=$as_save_IFS
3064 case $as_dir in #(((
3065 '') as_dir=./ ;;
3066 */) ;;
3067 *) as_dir=$as_dir/ ;;
3068 esac
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_ac_ct_CC="$ac_prog"
3072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi ;;
3080 esac
3081 fi
3082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3083 if test -n "$ac_ct_CC"; then
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3085 printf "%s\n" "$ac_ct_CC" >&6; }
3086 else
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 printf "%s\n" "no" >&6; }
3089 fi
3090
3091
3092 test -n "$ac_ct_CC" && break
3093 done
3094
3095 if test "x$ac_ct_CC" = x; then
3096 CC=""
3097 else
3098 case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3103 esac
3104 CC=$ac_ct_CC
3105 fi
3106 fi
3107
3108 fi
3109 if test -z "$CC"; then
3110 if test -n "$ac_tool_prefix"; then
3111 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3112 set dummy ${ac_tool_prefix}clang; ac_word=$2
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 printf %s "checking for $ac_word... " >&6; }
3115 if test ${ac_cv_prog_CC+y}
3116 then :
3117 printf %s "(cached) " >&6
3118 else case e in #(
3119 e) if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 case $as_dir in #(((
3127 '') as_dir=./ ;;
3128 */) ;;
3129 *) as_dir=$as_dir/ ;;
3130 esac
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_CC="${ac_tool_prefix}clang"
3134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi ;;
3142 esac
3143 fi
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 printf "%s\n" "$CC" >&6; }
3148 else
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 printf "%s\n" "no" >&6; }
3151 fi
3152
3153
3154 fi
3155 if test -z "$ac_cv_prog_CC"; then
3156 ac_ct_CC=$CC
3157 # Extract the first word of "clang", so it can be a program name with args.
3158 set dummy clang; ac_word=$2
3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 printf %s "checking for $ac_word... " >&6; }
3161 if test ${ac_cv_prog_ac_ct_CC+y}
3162 then :
3163 printf %s "(cached) " >&6
3164 else case e in #(
3165 e) if test -n "$ac_ct_CC"; then
3166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 case $as_dir in #(((
3173 '') as_dir=./ ;;
3174 */) ;;
3175 *) as_dir=$as_dir/ ;;
3176 esac
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_ac_ct_CC="clang"
3180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183 done
3184 done
3185 IFS=$as_save_IFS
3186
3187 fi ;;
3188 esac
3189 fi
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 printf "%s\n" "$ac_ct_CC" >&6; }
3194 else
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 printf "%s\n" "no" >&6; }
3197 fi
3198
3199 if test "x$ac_ct_CC" = x; then
3200 CC=""
3201 else
3202 case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206 ac_tool_warned=yes ;;
3207 esac
3208 CC=$ac_ct_CC
3209 fi
3210 else
3211 CC="$ac_cv_prog_CC"
3212 fi
3213
3214 fi
3215
3216
3217 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3218 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3219 as_fn_error $? "no acceptable C compiler found in \$PATH
3220 See 'config.log' for more details" "$LINENO" 5; }
3221
3222 # Provide some information about the compiler.
3223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3224 set X $ac_compile
3225 ac_compiler=$2
3226 for ac_option in --version -v -V -qversion -version; do
3227 { { ac_try="$ac_compiler $ac_option >&5"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 printf "%s\n" "$ac_try_echo"; } >&5
3234 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3235 ac_status=$?
3236 if test -s conftest.err; then
3237 sed '10a\
3238 ... rest of stderr output deleted ...
3239 10q' conftest.err >conftest.er1
3240 cat conftest.er1 >&5
3241 fi
3242 rm -f conftest.er1 conftest.err
3243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }
3245 done
3246
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3249
3250 int
3251 main (void)
3252 {
3253
3254 ;
3255 return 0;
3256 }
3257 _ACEOF
3258 ac_clean_files_save=$ac_clean_files
3259 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3260 # Try to create an executable without -o first, disregard a.out.
3261 # It will help us diagnose broken compilers, and finding out an intuition
3262 # of exeext.
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3264 printf %s "checking whether the C compiler works... " >&6; }
3265 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3266
3267 # The possible output files:
3268 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3269
3270 ac_rmfiles=
3271 for ac_file in $ac_files
3272 do
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3275 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3276 esac
3277 done
3278 rm -f $ac_rmfiles
3279
3280 if { { ac_try="$ac_link_default"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 printf "%s\n" "$ac_try_echo"; } >&5
3287 (eval "$ac_link_default") 2>&5
3288 ac_status=$?
3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }
3291 then :
3292 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3293 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3294 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3295 # so that the user can short-circuit this test for compilers unknown to
3296 # Autoconf.
3297 for ac_file in $ac_files ''
3298 do
3299 test -f "$ac_file" || continue
3300 case $ac_file in
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3302 ;;
3303 [ab].out )
3304 # We found the default executable, but exeext='' is most
3305 # certainly right.
3306 break;;
3307 *.* )
3308 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3309 then :; else
3310 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3311 fi
3312 # We set ac_cv_exeext here because the later test for it is not
3313 # safe: cross compilers may not add the suffix if given an '-o'
3314 # argument, so we may need to know it at that point already.
3315 # Even if this section looks crufty: it has the advantage of
3316 # actually working.
3317 break;;
3318 * )
3319 break;;
3320 esac
3321 done
3322 test "$ac_cv_exeext" = no && ac_cv_exeext=
3323
3324 else case e in #(
3325 e) ac_file='' ;;
3326 esac
3327 fi
3328 if test -z "$ac_file"
3329 then :
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 printf "%s\n" "no" >&6; }
3332 printf "%s\n" "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3336 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3337 as_fn_error 77 "C compiler cannot create executables
3338 See 'config.log' for more details" "$LINENO" 5; }
3339 else case e in #(
3340 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 printf "%s\n" "yes" >&6; } ;;
3342 esac
3343 fi
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3345 printf %s "checking for C compiler default output file name... " >&6; }
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3347 printf "%s\n" "$ac_file" >&6; }
3348 ac_exeext=$ac_cv_exeext
3349
3350 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3351 ac_clean_files=$ac_clean_files_save
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3353 printf %s "checking for suffix of executables... " >&6; }
3354 if { { ac_try="$ac_link"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 printf "%s\n" "$ac_try_echo"; } >&5
3361 (eval "$ac_link") 2>&5
3362 ac_status=$?
3363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364 test $ac_status = 0; }
3365 then :
3366 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3367 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3368 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3369 # 'rm'.
3370 for ac_file in conftest.exe conftest conftest.*; do
3371 test -f "$ac_file" || continue
3372 case $ac_file in
3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3374 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375 break;;
3376 * ) break;;
3377 esac
3378 done
3379 else case e in #(
3380 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3381 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3382 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3383 See 'config.log' for more details" "$LINENO" 5; } ;;
3384 esac
3385 fi
3386 rm -f conftest conftest$ac_cv_exeext
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3388 printf "%s\n" "$ac_cv_exeext" >&6; }
3389
3390 rm -f conftest.$ac_ext
3391 EXEEXT=$ac_cv_exeext
3392 ac_exeext=$EXEEXT
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395 #include <stdio.h>
3396 int
3397 main (void)
3398 {
3399 FILE *f = fopen ("conftest.out", "w");
3400 if (!f)
3401 return 1;
3402 return ferror (f) || fclose (f) != 0;
3403
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 ac_clean_files="$ac_clean_files conftest.out"
3409 # Check that the compiler produces executables we can run. If not, either
3410 # the compiler is broken, or we cross compile.
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3412 printf %s "checking whether we are cross compiling... " >&6; }
3413 if test "$cross_compiling" != yes; then
3414 { { ac_try="$ac_link"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 printf "%s\n" "$ac_try_echo"; } >&5
3421 (eval "$ac_link") 2>&5
3422 ac_status=$?
3423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }
3425 if { ac_try='./conftest$ac_cv_exeext'
3426 { { case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 printf "%s\n" "$ac_try_echo"; } >&5
3432 (eval "$ac_try") 2>&5
3433 ac_status=$?
3434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; }; then
3436 cross_compiling=no
3437 else
3438 if test "$cross_compiling" = maybe; then
3439 cross_compiling=yes
3440 else
3441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3442 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3443 as_fn_error 77 "cannot run C compiled programs.
3444 If you meant to cross compile, use '--host'.
3445 See 'config.log' for more details" "$LINENO" 5; }
3446 fi
3447 fi
3448 fi
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3450 printf "%s\n" "$cross_compiling" >&6; }
3451
3452 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3453 conftest.o conftest.obj conftest.out
3454 ac_clean_files=$ac_clean_files_save
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3456 printf %s "checking for suffix of object files... " >&6; }
3457 if test ${ac_cv_objext+y}
3458 then :
3459 printf %s "(cached) " >&6
3460 else case e in #(
3461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3463
3464 int
3465 main (void)
3466 {
3467
3468 ;
3469 return 0;
3470 }
3471 _ACEOF
3472 rm -f conftest.o conftest.obj
3473 if { { ac_try="$ac_compile"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 printf "%s\n" "$ac_try_echo"; } >&5
3480 (eval "$ac_compile") 2>&5
3481 ac_status=$?
3482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }
3484 then :
3485 for ac_file in conftest.o conftest.obj conftest.*; do
3486 test -f "$ac_file" || continue;
3487 case $ac_file in
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3489 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3490 break;;
3491 esac
3492 done
3493 else case e in #(
3494 e) printf "%s\n" "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3498 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3499 as_fn_error $? "cannot compute suffix of object files: cannot compile
3500 See 'config.log' for more details" "$LINENO" 5; } ;;
3501 esac
3502 fi
3503 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3504 esac
3505 fi
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3507 printf "%s\n" "$ac_cv_objext" >&6; }
3508 OBJEXT=$ac_cv_objext
3509 ac_objext=$OBJEXT
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3511 printf %s "checking whether the compiler supports GNU C... " >&6; }
3512 if test ${ac_cv_c_compiler_gnu+y}
3513 then :
3514 printf %s "(cached) " >&6
3515 else case e in #(
3516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518
3519 int
3520 main (void)
3521 {
3522 #ifndef __GNUC__
3523 choke me
3524 #endif
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"
3531 then :
3532 ac_compiler_gnu=yes
3533 else case e in #(
3534 e) ac_compiler_gnu=no ;;
3535 esac
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3538 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539 ;;
3540 esac
3541 fi
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3543 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545
3546 if test $ac_compiler_gnu = yes; then
3547 GCC=yes
3548 else
3549 GCC=
3550 fi
3551 ac_test_CFLAGS=${CFLAGS+y}
3552 ac_save_CFLAGS=$CFLAGS
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3554 printf %s "checking whether $CC accepts -g... " >&6; }
3555 if test ${ac_cv_prog_cc_g+y}
3556 then :
3557 printf %s "(cached) " >&6
3558 else case e in #(
3559 e) ac_save_c_werror_flag=$ac_c_werror_flag
3560 ac_c_werror_flag=yes
3561 ac_cv_prog_cc_g=no
3562 CFLAGS="-g"
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565
3566 int
3567 main (void)
3568 {
3569
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"
3575 then :
3576 ac_cv_prog_cc_g=yes
3577 else case e in #(
3578 e) CFLAGS=""
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3581
3582 int
3583 main (void)
3584 {
3585
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"
3591 then :
3592
3593 else case e in #(
3594 e) ac_c_werror_flag=$ac_save_c_werror_flag
3595 CFLAGS="-g"
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598
3599 int
3600 main (void)
3601 {
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 if ac_fn_c_try_compile "$LINENO"
3608 then :
3609 ac_cv_prog_cc_g=yes
3610 fi
3611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3612 esac
3613 fi
3614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3615 esac
3616 fi
3617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3618 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3619 esac
3620 fi
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3622 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3623 if test $ac_test_CFLAGS; then
3624 CFLAGS=$ac_save_CFLAGS
3625 elif test $ac_cv_prog_cc_g = yes; then
3626 if test "$GCC" = yes; then
3627 CFLAGS="-g -O2"
3628 else
3629 CFLAGS="-g"
3630 fi
3631 else
3632 if test "$GCC" = yes; then
3633 CFLAGS="-O2"
3634 else
3635 CFLAGS=
3636 fi
3637 fi
3638 ac_prog_cc_stdc=no
3639 if test x$ac_prog_cc_stdc = xno
3640 then :
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3642 printf %s "checking for $CC option to enable C11 features... " >&6; }
3643 if test ${ac_cv_prog_cc_c11+y}
3644 then :
3645 printf %s "(cached) " >&6
3646 else case e in #(
3647 e) ac_cv_prog_cc_c11=no
3648 ac_save_CC=$CC
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651 $ac_c_conftest_c11_program
3652 _ACEOF
3653 for ac_arg in '' -std=gnu11
3654 do
3655 CC="$ac_save_CC $ac_arg"
3656 if ac_fn_c_try_compile "$LINENO"
3657 then :
3658 ac_cv_prog_cc_c11=$ac_arg
3659 fi
3660 rm -f core conftest.err conftest.$ac_objext conftest.beam
3661 test "x$ac_cv_prog_cc_c11" != "xno" && break
3662 done
3663 rm -f conftest.$ac_ext
3664 CC=$ac_save_CC ;;
3665 esac
3666 fi
3667
3668 if test "x$ac_cv_prog_cc_c11" = xno
3669 then :
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3671 printf "%s\n" "unsupported" >&6; }
3672 else case e in #(
3673 e) if test "x$ac_cv_prog_cc_c11" = x
3674 then :
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3676 printf "%s\n" "none needed" >&6; }
3677 else case e in #(
3678 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3679 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3680 CC="$CC $ac_cv_prog_cc_c11" ;;
3681 esac
3682 fi
3683 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3684 ac_prog_cc_stdc=c11 ;;
3685 esac
3686 fi
3687 fi
3688 if test x$ac_prog_cc_stdc = xno
3689 then :
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3691 printf %s "checking for $CC option to enable C99 features... " >&6; }
3692 if test ${ac_cv_prog_cc_c99+y}
3693 then :
3694 printf %s "(cached) " >&6
3695 else case e in #(
3696 e) ac_cv_prog_cc_c99=no
3697 ac_save_CC=$CC
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700 $ac_c_conftest_c99_program
3701 _ACEOF
3702 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3703 do
3704 CC="$ac_save_CC $ac_arg"
3705 if ac_fn_c_try_compile "$LINENO"
3706 then :
3707 ac_cv_prog_cc_c99=$ac_arg
3708 fi
3709 rm -f core conftest.err conftest.$ac_objext conftest.beam
3710 test "x$ac_cv_prog_cc_c99" != "xno" && break
3711 done
3712 rm -f conftest.$ac_ext
3713 CC=$ac_save_CC ;;
3714 esac
3715 fi
3716
3717 if test "x$ac_cv_prog_cc_c99" = xno
3718 then :
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3720 printf "%s\n" "unsupported" >&6; }
3721 else case e in #(
3722 e) if test "x$ac_cv_prog_cc_c99" = x
3723 then :
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725 printf "%s\n" "none needed" >&6; }
3726 else case e in #(
3727 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3728 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3729 CC="$CC $ac_cv_prog_cc_c99" ;;
3730 esac
3731 fi
3732 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3733 ac_prog_cc_stdc=c99 ;;
3734 esac
3735 fi
3736 fi
3737 if test x$ac_prog_cc_stdc = xno
3738 then :
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3740 printf %s "checking for $CC option to enable C89 features... " >&6; }
3741 if test ${ac_cv_prog_cc_c89+y}
3742 then :
3743 printf %s "(cached) " >&6
3744 else case e in #(
3745 e) ac_cv_prog_cc_c89=no
3746 ac_save_CC=$CC
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3749 $ac_c_conftest_c89_program
3750 _ACEOF
3751 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3752 do
3753 CC="$ac_save_CC $ac_arg"
3754 if ac_fn_c_try_compile "$LINENO"
3755 then :
3756 ac_cv_prog_cc_c89=$ac_arg
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.beam
3759 test "x$ac_cv_prog_cc_c89" != "xno" && break
3760 done
3761 rm -f conftest.$ac_ext
3762 CC=$ac_save_CC ;;
3763 esac
3764 fi
3765
3766 if test "x$ac_cv_prog_cc_c89" = xno
3767 then :
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3769 printf "%s\n" "unsupported" >&6; }
3770 else case e in #(
3771 e) if test "x$ac_cv_prog_cc_c89" = x
3772 then :
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3774 printf "%s\n" "none needed" >&6; }
3775 else case e in #(
3776 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3777 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3778 CC="$CC $ac_cv_prog_cc_c89" ;;
3779 esac
3780 fi
3781 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3782 ac_prog_cc_stdc=c89 ;;
3783 esac
3784 fi
3785 fi
3786
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
3793
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3800 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3801 if test ${am_cv_prog_cc_c_o+y}
3802 then :
3803 printf %s "(cached) " >&6
3804 else case e in #(
3805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3807
3808 int
3809 main (void)
3810 {
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 # Make sure it works both with $CC and with simple cc.
3817 # Following AC_PROG_CC_C_O, we do the test twice because some
3818 # compilers refuse to overwrite an existing .o file with -o,
3819 # though they will create one.
3820 am_cv_prog_cc_c_o=yes
3821 for am_i in 1 2; do
3822 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3823 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } \
3827 && test -f conftest2.$ac_objext; then
3828 : OK
3829 else
3830 am_cv_prog_cc_c_o=no
3831 break
3832 fi
3833 done
3834 rm -f core conftest*
3835 unset am_i ;;
3836 esac
3837 fi
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3839 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3840 if test "$am_cv_prog_cc_c_o" != yes; then
3841 # Losing compiler, so override with the script.
3842 # FIXME: It is wrong to rewrite CC.
3843 # But if we don't then we get into trouble of one sort or another.
3844 # A longer-term fix would be to have automake use am__CC in this case,
3845 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3846 CC="$am_aux_dir/compile $CC"
3847 fi
3848 ac_ext=c
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854
3855
3856 ac_header= ac_cache=
3857 for ac_item in $ac_header_c_list
3858 do
3859 if test $ac_cache; then
3860 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3861 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3862 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3863 fi
3864 ac_header= ac_cache=
3865 elif test $ac_header; then
3866 ac_cache=$ac_item
3867 else
3868 ac_header=$ac_item
3869 fi
3870 done
3871
3872
3873
3874
3875
3876
3877
3878
3879 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3880 then :
3881
3882 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3883
3884 fi
3885
3886
3887
3888
3889
3890
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3892 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3893 if test ${ac_cv_safe_to_define___extensions__+y}
3894 then :
3895 printf %s "(cached) " >&6
3896 else case e in #(
3897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899
3900 # define __EXTENSIONS__ 1
3901 $ac_includes_default
3902 int
3903 main (void)
3904 {
3905
3906 ;
3907 return 0;
3908 }
3909 _ACEOF
3910 if ac_fn_c_try_compile "$LINENO"
3911 then :
3912 ac_cv_safe_to_define___extensions__=yes
3913 else case e in #(
3914 e) ac_cv_safe_to_define___extensions__=no ;;
3915 esac
3916 fi
3917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3918 esac
3919 fi
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3921 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3922
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3924 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3925 if test ${ac_cv_should_define__xopen_source+y}
3926 then :
3927 printf %s "(cached) " >&6
3928 else case e in #(
3929 e) ac_cv_should_define__xopen_source=no
3930 if test $ac_cv_header_wchar_h = yes
3931 then :
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934
3935 #include <wchar.h>
3936 mbstate_t x;
3937 int
3938 main (void)
3939 {
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 if ac_fn_c_try_compile "$LINENO"
3946 then :
3947
3948 else case e in #(
3949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3951
3952 #define _XOPEN_SOURCE 500
3953 #include <wchar.h>
3954 mbstate_t x;
3955 int
3956 main (void)
3957 {
3958
3959 ;
3960 return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"
3964 then :
3965 ac_cv_should_define__xopen_source=yes
3966 fi
3967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3968 esac
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3971 fi ;;
3972 esac
3973 fi
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3975 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3976
3977 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3978
3979 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3980
3981 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3982
3983 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3984
3985 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3986
3987 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3988
3989 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3990
3991 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3992
3993 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3994
3995 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3996
3997 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3998
3999 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4000
4001 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4002
4003 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4004
4005 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4006
4007 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4008
4009 if test $ac_cv_header_minix_config_h = yes
4010 then :
4011 MINIX=yes
4012 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4013
4014 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4015
4016 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4017
4018 else case e in #(
4019 e) MINIX= ;;
4020 esac
4021 fi
4022 if test $ac_cv_safe_to_define___extensions__ = yes
4023 then :
4024 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4025
4026 fi
4027 if test $ac_cv_should_define__xopen_source = yes
4028 then :
4029 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4030
4031 fi
4032
4033
4034 # Initialize Automake
4035 am__api_version='1.16'
4036
4037
4038 # Find a good install program. We prefer a C program (faster),
4039 # so one script is as good as another. But avoid the broken or
4040 # incompatible versions:
4041 # SysV /etc/install, /usr/sbin/install
4042 # SunOS /usr/etc/install
4043 # IRIX /sbin/install
4044 # AIX /bin/install
4045 # AmigaOS /C/install, which installs bootblocks on floppy discs
4046 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4047 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4048 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4049 # OS/2's system install, which has a completely different semantic
4050 # ./install, which can be erroneously created by make from ./install.sh.
4051 # Reject install programs that cannot install multiple files.
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4053 printf %s "checking for a BSD-compatible install... " >&6; }
4054 if test -z "$INSTALL"; then
4055 if test ${ac_cv_path_install+y}
4056 then :
4057 printf %s "(cached) " >&6
4058 else case e in #(
4059 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062 IFS=$as_save_IFS
4063 case $as_dir in #(((
4064 '') as_dir=./ ;;
4065 */) ;;
4066 *) as_dir=$as_dir/ ;;
4067 esac
4068 # Account for fact that we put trailing slashes in our PATH walk.
4069 case $as_dir in #((
4070 ./ | /[cC]/* | \
4071 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4072 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4073 /usr/ucb/* ) ;;
4074 *)
4075 # OSF1 and SCO ODT 3.0 have their own names for install.
4076 # Don't use installbsd from OSF since it installs stuff as root
4077 # by default.
4078 for ac_prog in ginstall scoinst install; do
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4081 if test $ac_prog = install &&
4082 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4083 # AIX install. It has an incompatible calling convention.
4084 :
4085 elif test $ac_prog = install &&
4086 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4087 # program-specific install script used by HP pwplus--don't use.
4088 :
4089 else
4090 rm -rf conftest.one conftest.two conftest.dir
4091 echo one > conftest.one
4092 echo two > conftest.two
4093 mkdir conftest.dir
4094 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4095 test -s conftest.one && test -s conftest.two &&
4096 test -s conftest.dir/conftest.one &&
4097 test -s conftest.dir/conftest.two
4098 then
4099 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4100 break 3
4101 fi
4102 fi
4103 fi
4104 done
4105 done
4106 ;;
4107 esac
4108
4109 done
4110 IFS=$as_save_IFS
4111
4112 rm -rf conftest.one conftest.two conftest.dir
4113 ;;
4114 esac
4115 fi
4116 if test ${ac_cv_path_install+y}; then
4117 INSTALL=$ac_cv_path_install
4118 else
4119 # As a last resort, use the slow shell script. Don't cache a
4120 # value for INSTALL within a source directory, because that will
4121 # break other packages using the cache if that directory is
4122 # removed, or if the value is a relative name.
4123 INSTALL=$ac_install_sh
4124 fi
4125 fi
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4127 printf "%s\n" "$INSTALL" >&6; }
4128
4129 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4130 # It thinks the first close brace ends the variable substitution.
4131 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4132
4133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4134
4135 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4136
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4138 printf %s "checking whether build environment is sane... " >&6; }
4139 # Reject unsafe characters in $srcdir or the absolute working directory
4140 # name. Accept space and tab only in the latter.
4141 am_lf='
4142 '
4143 case `pwd` in
4144 *[\\\"\#\$\&\'\`$am_lf]*)
4145 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4146 esac
4147 case $srcdir in
4148 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4149 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4150 esac
4151
4152 # Do 'set' in a subshell so we don't clobber the current shell's
4153 # arguments. Must try -L first in case configure is actually a
4154 # symlink; some systems play weird games with the mod time of symlinks
4155 # (eg FreeBSD returns the mod time of the symlink's containing
4156 # directory).
4157 if (
4158 am_has_slept=no
4159 for am_try in 1 2; do
4160 echo "timestamp, slept: $am_has_slept" > conftest.file
4161 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4162 if test "$*" = "X"; then
4163 # -L didn't work.
4164 set X `ls -t "$srcdir/configure" conftest.file`
4165 fi
4166 if test "$*" != "X $srcdir/configure conftest.file" \
4167 && test "$*" != "X conftest.file $srcdir/configure"; then
4168
4169 # If neither matched, then we have a broken ls. This can happen
4170 # if, for instance, CONFIG_SHELL is bash and it inherits a
4171 # broken ls alias from the environment. This has actually
4172 # happened. Such a system could not be considered "sane".
4173 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4174 alias in your environment" "$LINENO" 5
4175 fi
4176 if test "$2" = conftest.file || test $am_try -eq 2; then
4177 break
4178 fi
4179 # Just in case.
4180 sleep 1
4181 am_has_slept=yes
4182 done
4183 test "$2" = conftest.file
4184 )
4185 then
4186 # Ok.
4187 :
4188 else
4189 as_fn_error $? "newly created file is older than distributed files!
4190 Check your system clock" "$LINENO" 5
4191 fi
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193 printf "%s\n" "yes" >&6; }
4194 # If we didn't sleep, we still need to ensure time stamps of config.status and
4195 # generated files are strictly newer.
4196 am_sleep_pid=
4197 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4198 ( sleep 1 ) &
4199 am_sleep_pid=$!
4200 fi
4201
4202 rm -f conftest.file
4203
4204 test "$program_prefix" != NONE &&
4205 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4206 # Use a double $ so make ignores it.
4207 test "$program_suffix" != NONE &&
4208 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4209 # Double any \ or $.
4210 # By default was 's,x,x', remove it if useless.
4211 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4212 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4213
4214
4215 if test x"${MISSING+set}" != xset; then
4216 MISSING="\${SHELL} '$am_aux_dir/missing'"
4217 fi
4218 # Use eval to expand $SHELL
4219 if eval "$MISSING --is-lightweight"; then
4220 am_missing_run="$MISSING "
4221 else
4222 am_missing_run=
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4224 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4225 fi
4226
4227 if test x"${install_sh+set}" != xset; then
4228 case $am_aux_dir in
4229 *\ * | *\ *)
4230 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4231 *)
4232 install_sh="\${SHELL} $am_aux_dir/install-sh"
4233 esac
4234 fi
4235
4236 # Installed binaries are usually stripped using 'strip' when the user
4237 # run "make install-strip". However 'strip' might not be the right
4238 # tool to use in cross-compilation environments, therefore Automake
4239 # will honor the 'STRIP' environment variable to overrule this program.
4240 if test "$cross_compiling" != no; then
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}strip; ac_word=$2
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 printf %s "checking for $ac_word... " >&6; }
4246 if test ${ac_cv_prog_STRIP+y}
4247 then :
4248 printf %s "(cached) " >&6
4249 else case e in #(
4250 e) if test -n "$STRIP"; then
4251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256 IFS=$as_save_IFS
4257 case $as_dir in #(((
4258 '') as_dir=./ ;;
4259 */) ;;
4260 *) as_dir=$as_dir/ ;;
4261 esac
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4266 break 2
4267 fi
4268 done
4269 done
4270 IFS=$as_save_IFS
4271
4272 fi ;;
4273 esac
4274 fi
4275 STRIP=$ac_cv_prog_STRIP
4276 if test -n "$STRIP"; then
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4278 printf "%s\n" "$STRIP" >&6; }
4279 else
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 printf "%s\n" "no" >&6; }
4282 fi
4283
4284
4285 fi
4286 if test -z "$ac_cv_prog_STRIP"; then
4287 ac_ct_STRIP=$STRIP
4288 # Extract the first word of "strip", so it can be a program name with args.
4289 set dummy strip; ac_word=$2
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 printf %s "checking for $ac_word... " >&6; }
4292 if test ${ac_cv_prog_ac_ct_STRIP+y}
4293 then :
4294 printf %s "(cached) " >&6
4295 else case e in #(
4296 e) if test -n "$ac_ct_STRIP"; then
4297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302 IFS=$as_save_IFS
4303 case $as_dir in #(((
4304 '') as_dir=./ ;;
4305 */) ;;
4306 *) as_dir=$as_dir/ ;;
4307 esac
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_ac_ct_STRIP="strip"
4311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4312 break 2
4313 fi
4314 done
4315 done
4316 IFS=$as_save_IFS
4317
4318 fi ;;
4319 esac
4320 fi
4321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4322 if test -n "$ac_ct_STRIP"; then
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4324 printf "%s\n" "$ac_ct_STRIP" >&6; }
4325 else
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 printf "%s\n" "no" >&6; }
4328 fi
4329
4330 if test "x$ac_ct_STRIP" = x; then
4331 STRIP=":"
4332 else
4333 case $cross_compiling:$ac_tool_warned in
4334 yes:)
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4336 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4337 ac_tool_warned=yes ;;
4338 esac
4339 STRIP=$ac_ct_STRIP
4340 fi
4341 else
4342 STRIP="$ac_cv_prog_STRIP"
4343 fi
4344
4345 fi
4346 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4347
4348
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4350 printf %s "checking for a race-free mkdir -p... " >&6; }
4351 if test -z "$MKDIR_P"; then
4352 if test ${ac_cv_path_mkdir+y}
4353 then :
4354 printf %s "(cached) " >&6
4355 else case e in #(
4356 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4358 do
4359 IFS=$as_save_IFS
4360 case $as_dir in #(((
4361 '') as_dir=./ ;;
4362 */) ;;
4363 *) as_dir=$as_dir/ ;;
4364 esac
4365 for ac_prog in mkdir gmkdir; do
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4368 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4369 'mkdir ('*'coreutils) '* | \
4370 *'BusyBox '* | \
4371 'mkdir (fileutils) '4.1*)
4372 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4373 break 3;;
4374 esac
4375 done
4376 done
4377 done
4378 IFS=$as_save_IFS
4379 ;;
4380 esac
4381 fi
4382
4383 test -d ./--version && rmdir ./--version
4384 if test ${ac_cv_path_mkdir+y}; then
4385 MKDIR_P="$ac_cv_path_mkdir -p"
4386 else
4387 # As a last resort, use plain mkdir -p,
4388 # in the hope it doesn't have the bugs of ancient mkdir.
4389 MKDIR_P='mkdir -p'
4390 fi
4391 fi
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4393 printf "%s\n" "$MKDIR_P" >&6; }
4394
4395 for ac_prog in gawk mawk nawk awk
4396 do
4397 # Extract the first word of "$ac_prog", so it can be a program name with args.
4398 set dummy $ac_prog; ac_word=$2
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 printf %s "checking for $ac_word... " >&6; }
4401 if test ${ac_cv_prog_AWK+y}
4402 then :
4403 printf %s "(cached) " >&6
4404 else case e in #(
4405 e) if test -n "$AWK"; then
4406 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411 IFS=$as_save_IFS
4412 case $as_dir in #(((
4413 '') as_dir=./ ;;
4414 */) ;;
4415 *) as_dir=$as_dir/ ;;
4416 esac
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4419 ac_cv_prog_AWK="$ac_prog"
4420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423 done
4424 done
4425 IFS=$as_save_IFS
4426
4427 fi ;;
4428 esac
4429 fi
4430 AWK=$ac_cv_prog_AWK
4431 if test -n "$AWK"; then
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4433 printf "%s\n" "$AWK" >&6; }
4434 else
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 printf "%s\n" "no" >&6; }
4437 fi
4438
4439
4440 test -n "$AWK" && break
4441 done
4442
4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4444 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4445 set x ${MAKE-make}
4446 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4447 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4448 then :
4449 printf %s "(cached) " >&6
4450 else case e in #(
4451 e) cat >conftest.make <<\_ACEOF
4452 SHELL = /bin/sh
4453 all:
4454 @echo '@@@%%%=$(MAKE)=@@@%%%'
4455 _ACEOF
4456 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4457 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4458 *@@@%%%=?*=@@@%%%*)
4459 eval ac_cv_prog_make_${ac_make}_set=yes;;
4460 *)
4461 eval ac_cv_prog_make_${ac_make}_set=no;;
4462 esac
4463 rm -f conftest.make ;;
4464 esac
4465 fi
4466 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468 printf "%s\n" "yes" >&6; }
4469 SET_MAKE=
4470 else
4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 printf "%s\n" "no" >&6; }
4473 SET_MAKE="MAKE=${MAKE-make}"
4474 fi
4475
4476 rm -rf .tst 2>/dev/null
4477 mkdir .tst 2>/dev/null
4478 if test -d .tst; then
4479 am__leading_dot=.
4480 else
4481 am__leading_dot=_
4482 fi
4483 rmdir .tst 2>/dev/null
4484
4485 DEPDIR="${am__leading_dot}deps"
4486
4487 ac_config_commands="$ac_config_commands depfiles"
4488
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4490 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4491 cat > confinc.mk << 'END'
4492 am__doit:
4493 @echo this is the am__doit target >confinc.out
4494 .PHONY: am__doit
4495 END
4496 am__include="#"
4497 am__quote=
4498 # BSD make does it like this.
4499 echo '.include "confinc.mk" # ignored' > confmf.BSD
4500 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4501 echo 'include confinc.mk # ignored' > confmf.GNU
4502 _am_result=no
4503 for s in GNU BSD; do
4504 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4505 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }
4509 case $?:`cat confinc.out 2>/dev/null` in #(
4510 '0:this is the am__doit target') :
4511 case $s in #(
4512 BSD) :
4513 am__include='.include' am__quote='"' ;; #(
4514 *) :
4515 am__include='include' am__quote='' ;;
4516 esac ;; #(
4517 *) :
4518 ;;
4519 esac
4520 if test "$am__include" != "#"; then
4521 _am_result="yes ($s style)"
4522 break
4523 fi
4524 done
4525 rm -f confinc.* confmf.*
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4527 printf "%s\n" "${_am_result}" >&6; }
4528
4529 # Check whether --enable-dependency-tracking was given.
4530 if test ${enable_dependency_tracking+y}
4531 then :
4532 enableval=$enable_dependency_tracking;
4533 fi
4534
4535 if test "x$enable_dependency_tracking" != xno; then
4536 am_depcomp="$ac_aux_dir/depcomp"
4537 AMDEPBACKSLASH='\'
4538 am__nodep='_no'
4539 fi
4540 if test "x$enable_dependency_tracking" != xno; then
4541 AMDEP_TRUE=
4542 AMDEP_FALSE='#'
4543 else
4544 AMDEP_TRUE='#'
4545 AMDEP_FALSE=
4546 fi
4547
4548
4549 # Check whether --enable-silent-rules was given.
4550 if test ${enable_silent_rules+y}
4551 then :
4552 enableval=$enable_silent_rules;
4553 fi
4554
4555 case $enable_silent_rules in # (((
4556 yes) AM_DEFAULT_VERBOSITY=0;;
4557 no) AM_DEFAULT_VERBOSITY=1;;
4558 *) AM_DEFAULT_VERBOSITY=1;;
4559 esac
4560 am_make=${MAKE-make}
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4562 printf %s "checking whether $am_make supports nested variables... " >&6; }
4563 if test ${am_cv_make_support_nested_variables+y}
4564 then :
4565 printf %s "(cached) " >&6
4566 else case e in #(
4567 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4568 BAR0=false
4569 BAR1=true
4570 V=1
4571 am__doit:
4572 @$(TRUE)
4573 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4574 am_cv_make_support_nested_variables=yes
4575 else
4576 am_cv_make_support_nested_variables=no
4577 fi ;;
4578 esac
4579 fi
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4581 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4582 if test $am_cv_make_support_nested_variables = yes; then
4583 AM_V='$(V)'
4584 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4585 else
4586 AM_V=$AM_DEFAULT_VERBOSITY
4587 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4588 fi
4589 AM_BACKSLASH='\'
4590
4591 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4592 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4593 # is not polluted with repeated "-I."
4594 am__isrc=' -I$(srcdir)'
4595 # test to see if srcdir already configured
4596 if test -f $srcdir/config.status; then
4597 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4598 fi
4599 fi
4600
4601 # test whether we have cygpath
4602 if test -z "$CYGPATH_W"; then
4603 if (cygpath --version) >/dev/null 2>/dev/null; then
4604 CYGPATH_W='cygpath -w'
4605 else
4606 CYGPATH_W=echo
4607 fi
4608 fi
4609
4610
4611 # Define the identity of the package.
4612 PACKAGE='libXdmcp'
4613 VERSION='1.1.5'
4614
4615
4616 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4617
4618
4619 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4620
4621 # Some tools Automake needs.
4622
4623 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4624
4625
4626 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4627
4628
4629 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4630
4631
4632 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4633
4634
4635 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4636
4637 # For better backward compatibility. To be removed once Automake 1.9.x
4638 # dies out for good. For more background, see:
4639 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4640 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4641 mkdir_p='$(MKDIR_P)'
4642
4643 # We need awk for the "check" target (and possibly the TAP driver). The
4644 # system "awk" is bad on some platforms.
4645 # Always define AMTAR for backward compatibility. Yes, it's still used
4646 # in the wild :-( We should find a proper way to deprecate it ...
4647 AMTAR='$${TAR-tar}'
4648
4649
4650 # We'll loop over all known methods to create a tar archive until one works.
4651 _am_tools='gnutar pax cpio none'
4652
4653 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4654
4655
4656
4657
4658
4659 depcc="$CC" am_compiler_list=
4660
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4662 printf %s "checking dependency style of $depcc... " >&6; }
4663 if test ${am_cv_CC_dependencies_compiler_type+y}
4664 then :
4665 printf %s "(cached) " >&6
4666 else case e in #(
4667 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4668 # We make a subdir and do the tests there. Otherwise we can end up
4669 # making bogus files that we don't know about and never remove. For
4670 # instance it was reported that on HP-UX the gcc test will end up
4671 # making a dummy file named 'D' -- because '-MD' means "put the output
4672 # in D".
4673 rm -rf conftest.dir
4674 mkdir conftest.dir
4675 # Copy depcomp to subdir because otherwise we won't find it if we're
4676 # using a relative directory.
4677 cp "$am_depcomp" conftest.dir
4678 cd conftest.dir
4679 # We will build objects and dependencies in a subdirectory because
4680 # it helps to detect inapplicable dependency modes. For instance
4681 # both Tru64's cc and ICC support -MD to output dependencies as a
4682 # side effect of compilation, but ICC will put the dependencies in
4683 # the current directory while Tru64 will put them in the object
4684 # directory.
4685 mkdir sub
4686
4687 am_cv_CC_dependencies_compiler_type=none
4688 if test "$am_compiler_list" = ""; then
4689 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4690 fi
4691 am__universal=false
4692 case " $depcc " in #(
4693 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4694 esac
4695
4696 for depmode in $am_compiler_list; do
4697 # Setup a source with many dependencies, because some compilers
4698 # like to wrap large dependency lists on column 80 (with \), and
4699 # we should not choose a depcomp mode which is confused by this.
4700 #
4701 # We need to recreate these files for each test, as the compiler may
4702 # overwrite some of them when testing with obscure command lines.
4703 # This happens at least with the AIX C compiler.
4704 : > sub/conftest.c
4705 for i in 1 2 3 4 5 6; do
4706 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4707 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4708 # Solaris 10 /bin/sh.
4709 echo '/* dummy */' > sub/conftst$i.h
4710 done
4711 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4712
4713 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4714 # mode. It turns out that the SunPro C++ compiler does not properly
4715 # handle '-M -o', and we need to detect this. Also, some Intel
4716 # versions had trouble with output in subdirs.
4717 am__obj=sub/conftest.${OBJEXT-o}
4718 am__minus_obj="-o $am__obj"
4719 case $depmode in
4720 gcc)
4721 # This depmode causes a compiler race in universal mode.
4722 test "$am__universal" = false || continue
4723 ;;
4724 nosideeffect)
4725 # After this tag, mechanisms are not by side-effect, so they'll
4726 # only be used when explicitly requested.
4727 if test "x$enable_dependency_tracking" = xyes; then
4728 continue
4729 else
4730 break
4731 fi
4732 ;;
4733 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4734 # This compiler won't grok '-c -o', but also, the minuso test has
4735 # not run yet. These depmodes are late enough in the game, and
4736 # so weak that their functioning should not be impacted.
4737 am__obj=conftest.${OBJEXT-o}
4738 am__minus_obj=
4739 ;;
4740 none) break ;;
4741 esac
4742 if depmode=$depmode \
4743 source=sub/conftest.c object=$am__obj \
4744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4745 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4746 >/dev/null 2>conftest.err &&
4747 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4748 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4749 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4750 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4751 # icc doesn't choke on unknown options, it will just issue warnings
4752 # or remarks (even with -Werror). So we grep stderr for any message
4753 # that says an option was ignored or not supported.
4754 # When given -MP, icc 7.0 and 7.1 complain thusly:
4755 # icc: Command line warning: ignoring option '-M'; no argument required
4756 # The diagnosis changed in icc 8.0:
4757 # icc: Command line remark: option '-MP' not supported
4758 if (grep 'ignoring option' conftest.err ||
4759 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4760 am_cv_CC_dependencies_compiler_type=$depmode
4761 break
4762 fi
4763 fi
4764 done
4765
4766 cd ..
4767 rm -rf conftest.dir
4768 else
4769 am_cv_CC_dependencies_compiler_type=none
4770 fi
4771 ;;
4772 esac
4773 fi
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4775 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4776 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4777
4778 if
4779 test "x$enable_dependency_tracking" != xno \
4780 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4781 am__fastdepCC_TRUE=
4782 am__fastdepCC_FALSE='#'
4783 else
4784 am__fastdepCC_TRUE='#'
4785 am__fastdepCC_FALSE=
4786 fi
4787
4788
4789 # Variables for tags utilities; see am/tags.am
4790 if test -z "$CTAGS"; then
4791 CTAGS=ctags
4792 fi
4793
4794 if test -z "$ETAGS"; then
4795 ETAGS=etags
4796 fi
4797
4798 if test -z "$CSCOPE"; then
4799 CSCOPE=cscope
4800 fi
4801
4802
4803
4804 # POSIX will say in a future version that running "rm -f" with no argument
4805 # is OK; and we want to be able to make that assumption in our Makefile
4806 # recipes. So use an aggressive probe to check that the usage we want is
4807 # actually supported "in the wild" to an acceptable degree.
4808 # See automake bug#10828.
4809 # To make any issue more visible, cause the running configure to be aborted
4810 # by default if the 'rm' program in use doesn't match our expectations; the
4811 # user can still override this though.
4812 if rm -f && rm -fr && rm -rf; then : OK; else
4813 cat >&2 <<'END'
4814 Oops!
4815
4816 Your 'rm' program seems unable to run without file operands specified
4817 on the command line, even when the '-f' option is present. This is contrary
4818 to the behaviour of most rm programs out there, and not conforming with
4819 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4820
4821 Please tell bug-automake@gnu.org about your system, including the value
4822 of your $PATH and any error possibly output before this message. This
4823 can help us improve future automake versions.
4824
4825 END
4826 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4827 echo 'Configuration will proceed anyway, since you have set the' >&2
4828 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4829 echo >&2
4830 else
4831 cat >&2 <<'END'
4832 Aborting the configuration process, to ensure you take notice of the issue.
4833
4834 You can download and install GNU coreutils to get an 'rm' implementation
4835 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4836
4837 If you want to complete the configuration process using your problematic
4838 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4839 to "yes", and re-run configure.
4840
4841 END
4842 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4843 fi
4844 fi
4845
4846
4847 # Initialize libtool
4848 case `pwd` in
4849 *\ * | *\ *)
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4851 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4852 esac
4853
4854
4855
4856 macro_version='2.4.7'
4857 macro_revision='2.4.7'
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872 ltmain=$ac_aux_dir/ltmain.sh
4873
4874
4875
4876 # Make sure we can run config.sub.
4877 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4878 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4879
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4881 printf %s "checking build system type... " >&6; }
4882 if test ${ac_cv_build+y}
4883 then :
4884 printf %s "(cached) " >&6
4885 else case e in #(
4886 e) ac_build_alias=$build_alias
4887 test "x$ac_build_alias" = x &&
4888 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4889 test "x$ac_build_alias" = x &&
4890 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4891 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4892 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4893 ;;
4894 esac
4895 fi
4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4897 printf "%s\n" "$ac_cv_build" >&6; }
4898 case $ac_cv_build in
4899 *-*-*) ;;
4900 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4901 esac
4902 build=$ac_cv_build
4903 ac_save_IFS=$IFS; IFS='-'
4904 set x $ac_cv_build
4905 shift
4906 build_cpu=$1
4907 build_vendor=$2
4908 shift; shift
4909 # Remember, the first character of IFS is used to create $*,
4910 # except with old shells:
4911 build_os=$*
4912 IFS=$ac_save_IFS
4913 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4914
4915
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4917 printf %s "checking host system type... " >&6; }
4918 if test ${ac_cv_host+y}
4919 then :
4920 printf %s "(cached) " >&6
4921 else case e in #(
4922 e) if test "x$host_alias" = x; then
4923 ac_cv_host=$ac_cv_build
4924 else
4925 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4926 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4927 fi
4928 ;;
4929 esac
4930 fi
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4932 printf "%s\n" "$ac_cv_host" >&6; }
4933 case $ac_cv_host in
4934 *-*-*) ;;
4935 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4936 esac
4937 host=$ac_cv_host
4938 ac_save_IFS=$IFS; IFS='-'
4939 set x $ac_cv_host
4940 shift
4941 host_cpu=$1
4942 host_vendor=$2
4943 shift; shift
4944 # Remember, the first character of IFS is used to create $*,
4945 # except with old shells:
4946 host_os=$*
4947 IFS=$ac_save_IFS
4948 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4949
4950
4951 # Backslashify metacharacters that are still active within
4952 # double-quoted strings.
4953 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4954
4955 # Same as above, but do not quote variable references.
4956 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4957
4958 # Sed substitution to delay expansion of an escaped shell variable in a
4959 # double_quote_subst'ed string.
4960 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4961
4962 # Sed substitution to delay expansion of an escaped single quote.
4963 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4964
4965 # Sed substitution to avoid accidental globbing in evaled expressions
4966 no_glob_subst='s/\*/\\\*/g'
4967
4968 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4969 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4970 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4971
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4973 printf %s "checking how to print strings... " >&6; }
4974 # Test print first, because it will be a builtin if present.
4975 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4976 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4977 ECHO='print -r --'
4978 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4979 ECHO='printf %s\n'
4980 else
4981 # Use this function as a fallback that always works.
4982 func_fallback_echo ()
4983 {
4984 eval 'cat <<_LTECHO_EOF
4985 $1
4986 _LTECHO_EOF'
4987 }
4988 ECHO='func_fallback_echo'
4989 fi
4990
4991 # func_echo_all arg...
4992 # Invoke $ECHO with all args, space-separated.
4993 func_echo_all ()
4994 {
4995 $ECHO ""
4996 }
4997
4998 case $ECHO in
4999 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5000 printf "%s\n" "printf" >&6; } ;;
5001 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5002 printf "%s\n" "print -r" >&6; } ;;
5003 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5004 printf "%s\n" "cat" >&6; } ;;
5005 esac
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5021 printf %s "checking for a sed that does not truncate output... " >&6; }
5022 if test ${ac_cv_path_SED+y}
5023 then :
5024 printf %s "(cached) " >&6
5025 else case e in #(
5026 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5027 for ac_i in 1 2 3 4 5 6 7; do
5028 ac_script="$ac_script$as_nl$ac_script"
5029 done
5030 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5031 { ac_script=; unset ac_script;}
5032 if test -z "$SED"; then
5033 ac_path_SED_found=false
5034 # Loop through the user's path and test for each of PROGNAME-LIST
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038 IFS=$as_save_IFS
5039 case $as_dir in #(((
5040 '') as_dir=./ ;;
5041 */) ;;
5042 *) as_dir=$as_dir/ ;;
5043 esac
5044 for ac_prog in sed gsed
5045 do
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5048 as_fn_executable_p "$ac_path_SED" || continue
5049 # Check for GNU ac_path_SED and select it if it is found.
5050 # Check for GNU $ac_path_SED
5051 case `"$ac_path_SED" --version 2>&1` in #(
5052 *GNU*)
5053 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5054 #(
5055 *)
5056 ac_count=0
5057 printf %s 0123456789 >"conftest.in"
5058 while :
5059 do
5060 cat "conftest.in" "conftest.in" >"conftest.tmp"
5061 mv "conftest.tmp" "conftest.in"
5062 cp "conftest.in" "conftest.nl"
5063 printf "%s\n" '' >> "conftest.nl"
5064 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5066 as_fn_arith $ac_count + 1 && ac_count=$as_val
5067 if test $ac_count -gt ${ac_path_SED_max-0}; then
5068 # Best one so far, save it but keep looking for a better one
5069 ac_cv_path_SED="$ac_path_SED"
5070 ac_path_SED_max=$ac_count
5071 fi
5072 # 10*(2^10) chars as input seems more than enough
5073 test $ac_count -gt 10 && break
5074 done
5075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5076 esac
5077
5078 $ac_path_SED_found && break 3
5079 done
5080 done
5081 done
5082 IFS=$as_save_IFS
5083 if test -z "$ac_cv_path_SED"; then
5084 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5085 fi
5086 else
5087 ac_cv_path_SED=$SED
5088 fi
5089 ;;
5090 esac
5091 fi
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5093 printf "%s\n" "$ac_cv_path_SED" >&6; }
5094 SED="$ac_cv_path_SED"
5095 rm -f conftest.sed
5096
5097 test -z "$SED" && SED=sed
5098 Xsed="$SED -e 1s/^X//"
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5111 printf %s "checking for grep that handles long lines and -e... " >&6; }
5112 if test ${ac_cv_path_GREP+y}
5113 then :
5114 printf %s "(cached) " >&6
5115 else case e in #(
5116 e) if test -z "$GREP"; then
5117 ac_path_GREP_found=false
5118 # Loop through the user's path and test for each of PROGNAME-LIST
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5121 do
5122 IFS=$as_save_IFS
5123 case $as_dir in #(((
5124 '') as_dir=./ ;;
5125 */) ;;
5126 *) as_dir=$as_dir/ ;;
5127 esac
5128 for ac_prog in grep ggrep
5129 do
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5132 as_fn_executable_p "$ac_path_GREP" || continue
5133 # Check for GNU ac_path_GREP and select it if it is found.
5134 # Check for GNU $ac_path_GREP
5135 case `"$ac_path_GREP" --version 2>&1` in #(
5136 *GNU*)
5137 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5138 #(
5139 *)
5140 ac_count=0
5141 printf %s 0123456789 >"conftest.in"
5142 while :
5143 do
5144 cat "conftest.in" "conftest.in" >"conftest.tmp"
5145 mv "conftest.tmp" "conftest.in"
5146 cp "conftest.in" "conftest.nl"
5147 printf "%s\n" 'GREP' >> "conftest.nl"
5148 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5149 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5150 as_fn_arith $ac_count + 1 && ac_count=$as_val
5151 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5152 # Best one so far, save it but keep looking for a better one
5153 ac_cv_path_GREP="$ac_path_GREP"
5154 ac_path_GREP_max=$ac_count
5155 fi
5156 # 10*(2^10) chars as input seems more than enough
5157 test $ac_count -gt 10 && break
5158 done
5159 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5160 esac
5161
5162 $ac_path_GREP_found && break 3
5163 done
5164 done
5165 done
5166 IFS=$as_save_IFS
5167 if test -z "$ac_cv_path_GREP"; then
5168 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5169 fi
5170 else
5171 ac_cv_path_GREP=$GREP
5172 fi
5173 ;;
5174 esac
5175 fi
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5177 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5178 GREP="$ac_cv_path_GREP"
5179
5180
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5182 printf %s "checking for egrep... " >&6; }
5183 if test ${ac_cv_path_EGREP+y}
5184 then :
5185 printf %s "(cached) " >&6
5186 else case e in #(
5187 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5188 then ac_cv_path_EGREP="$GREP -E"
5189 else
5190 if test -z "$EGREP"; then
5191 ac_path_EGREP_found=false
5192 # Loop through the user's path and test for each of PROGNAME-LIST
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5195 do
5196 IFS=$as_save_IFS
5197 case $as_dir in #(((
5198 '') as_dir=./ ;;
5199 */) ;;
5200 *) as_dir=$as_dir/ ;;
5201 esac
5202 for ac_prog in egrep
5203 do
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5206 as_fn_executable_p "$ac_path_EGREP" || continue
5207 # Check for GNU ac_path_EGREP and select it if it is found.
5208 # Check for GNU $ac_path_EGREP
5209 case `"$ac_path_EGREP" --version 2>&1` in #(
5210 *GNU*)
5211 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5212 #(
5213 *)
5214 ac_count=0
5215 printf %s 0123456789 >"conftest.in"
5216 while :
5217 do
5218 cat "conftest.in" "conftest.in" >"conftest.tmp"
5219 mv "conftest.tmp" "conftest.in"
5220 cp "conftest.in" "conftest.nl"
5221 printf "%s\n" 'EGREP' >> "conftest.nl"
5222 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5224 as_fn_arith $ac_count + 1 && ac_count=$as_val
5225 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5226 # Best one so far, save it but keep looking for a better one
5227 ac_cv_path_EGREP="$ac_path_EGREP"
5228 ac_path_EGREP_max=$ac_count
5229 fi
5230 # 10*(2^10) chars as input seems more than enough
5231 test $ac_count -gt 10 && break
5232 done
5233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5234 esac
5235
5236 $ac_path_EGREP_found && break 3
5237 done
5238 done
5239 done
5240 IFS=$as_save_IFS
5241 if test -z "$ac_cv_path_EGREP"; then
5242 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5243 fi
5244 else
5245 ac_cv_path_EGREP=$EGREP
5246 fi
5247
5248 fi ;;
5249 esac
5250 fi
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5252 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5253 EGREP="$ac_cv_path_EGREP"
5254
5255 EGREP_TRADITIONAL=$EGREP
5256 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5257
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5259 printf %s "checking for fgrep... " >&6; }
5260 if test ${ac_cv_path_FGREP+y}
5261 then :
5262 printf %s "(cached) " >&6
5263 else case e in #(
5264 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5265 then ac_cv_path_FGREP="$GREP -F"
5266 else
5267 if test -z "$FGREP"; then
5268 ac_path_FGREP_found=false
5269 # Loop through the user's path and test for each of PROGNAME-LIST
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5272 do
5273 IFS=$as_save_IFS
5274 case $as_dir in #(((
5275 '') as_dir=./ ;;
5276 */) ;;
5277 *) as_dir=$as_dir/ ;;
5278 esac
5279 for ac_prog in fgrep
5280 do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5283 as_fn_executable_p "$ac_path_FGREP" || continue
5284 # Check for GNU ac_path_FGREP and select it if it is found.
5285 # Check for GNU $ac_path_FGREP
5286 case `"$ac_path_FGREP" --version 2>&1` in #(
5287 *GNU*)
5288 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5289 #(
5290 *)
5291 ac_count=0
5292 printf %s 0123456789 >"conftest.in"
5293 while :
5294 do
5295 cat "conftest.in" "conftest.in" >"conftest.tmp"
5296 mv "conftest.tmp" "conftest.in"
5297 cp "conftest.in" "conftest.nl"
5298 printf "%s\n" 'FGREP' >> "conftest.nl"
5299 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5301 as_fn_arith $ac_count + 1 && ac_count=$as_val
5302 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5303 # Best one so far, save it but keep looking for a better one
5304 ac_cv_path_FGREP="$ac_path_FGREP"
5305 ac_path_FGREP_max=$ac_count
5306 fi
5307 # 10*(2^10) chars as input seems more than enough
5308 test $ac_count -gt 10 && break
5309 done
5310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5311 esac
5312
5313 $ac_path_FGREP_found && break 3
5314 done
5315 done
5316 done
5317 IFS=$as_save_IFS
5318 if test -z "$ac_cv_path_FGREP"; then
5319 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5320 fi
5321 else
5322 ac_cv_path_FGREP=$FGREP
5323 fi
5324
5325 fi ;;
5326 esac
5327 fi
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5329 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5330 FGREP="$ac_cv_path_FGREP"
5331
5332
5333 test -z "$GREP" && GREP=grep
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353 # Check whether --with-gnu-ld was given.
5354 if test ${with_gnu_ld+y}
5355 then :
5356 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5357 else case e in #(
5358 e) with_gnu_ld=no ;;
5359 esac
5360 fi
5361
5362 ac_prog=ld
5363 if test yes = "$GCC"; then
5364 # Check if gcc -print-prog-name=ld gives a path.
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5366 printf %s "checking for ld used by $CC... " >&6; }
5367 case $host in
5368 *-*-mingw*)
5369 # gcc leaves a trailing carriage return, which upsets mingw
5370 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5371 *)
5372 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5373 esac
5374 case $ac_prog in
5375 # Accept absolute paths.
5376 [\\/]* | ?:[\\/]*)
5377 re_direlt='/[^/][^/]*/\.\./'
5378 # Canonicalize the pathname of ld
5379 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5380 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5381 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5382 done
5383 test -z "$LD" && LD=$ac_prog
5384 ;;
5385 "")
5386 # If it fails, then pretend we aren't using GCC.
5387 ac_prog=ld
5388 ;;
5389 *)
5390 # If it is relative, then search for the first ld in PATH.
5391 with_gnu_ld=unknown
5392 ;;
5393 esac
5394 elif test yes = "$with_gnu_ld"; then
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5396 printf %s "checking for GNU ld... " >&6; }
5397 else
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5399 printf %s "checking for non-GNU ld... " >&6; }
5400 fi
5401 if test ${lt_cv_path_LD+y}
5402 then :
5403 printf %s "(cached) " >&6
5404 else case e in #(
5405 e) if test -z "$LD"; then
5406 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5407 for ac_dir in $PATH; do
5408 IFS=$lt_save_ifs
5409 test -z "$ac_dir" && ac_dir=.
5410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5411 lt_cv_path_LD=$ac_dir/$ac_prog
5412 # Check to see if the program is GNU ld. I'd rather use --version,
5413 # but apparently some variants of GNU ld only accept -v.
5414 # Break only if it was the GNU/non-GNU ld that we prefer.
5415 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5416 *GNU* | *'with BFD'*)
5417 test no != "$with_gnu_ld" && break
5418 ;;
5419 *)
5420 test yes != "$with_gnu_ld" && break
5421 ;;
5422 esac
5423 fi
5424 done
5425 IFS=$lt_save_ifs
5426 else
5427 lt_cv_path_LD=$LD # Let the user override the test with a path.
5428 fi ;;
5429 esac
5430 fi
5431
5432 LD=$lt_cv_path_LD
5433 if test -n "$LD"; then
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5435 printf "%s\n" "$LD" >&6; }
5436 else
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 printf "%s\n" "no" >&6; }
5439 fi
5440 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5442 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5443 if test ${lt_cv_prog_gnu_ld+y}
5444 then :
5445 printf %s "(cached) " >&6
5446 else case e in #(
5447 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5448 case `$LD -v 2>&1 </dev/null` in
5449 *GNU* | *'with BFD'*)
5450 lt_cv_prog_gnu_ld=yes
5451 ;;
5452 *)
5453 lt_cv_prog_gnu_ld=no
5454 ;;
5455 esac ;;
5456 esac
5457 fi
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5459 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5460 with_gnu_ld=$lt_cv_prog_gnu_ld
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5471 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5472 if test ${lt_cv_path_NM+y}
5473 then :
5474 printf %s "(cached) " >&6
5475 else case e in #(
5476 e) if test -n "$NM"; then
5477 # Let the user override the test.
5478 lt_cv_path_NM=$NM
5479 else
5480 lt_nm_to_check=${ac_tool_prefix}nm
5481 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5482 lt_nm_to_check="$lt_nm_to_check nm"
5483 fi
5484 for lt_tmp_nm in $lt_nm_to_check; do
5485 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5486 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5487 IFS=$lt_save_ifs
5488 test -z "$ac_dir" && ac_dir=.
5489 tmp_nm=$ac_dir/$lt_tmp_nm
5490 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5491 # Check to see if the nm accepts a BSD-compat flag.
5492 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5493 # nm: unknown option "B" ignored
5494 # Tru64's nm complains that /dev/null is an invalid object file
5495 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5496 case $build_os in
5497 mingw*) lt_bad_file=conftest.nm/nofile ;;
5498 *) lt_bad_file=/dev/null ;;
5499 esac
5500 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5501 *$lt_bad_file* | *'Invalid file or object type'*)
5502 lt_cv_path_NM="$tmp_nm -B"
5503 break 2
5504 ;;
5505 *)
5506 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5507 */dev/null*)
5508 lt_cv_path_NM="$tmp_nm -p"
5509 break 2
5510 ;;
5511 *)
5512 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5513 continue # so that we can try to find one that supports BSD flags
5514 ;;
5515 esac
5516 ;;
5517 esac
5518 fi
5519 done
5520 IFS=$lt_save_ifs
5521 done
5522 : ${lt_cv_path_NM=no}
5523 fi ;;
5524 esac
5525 fi
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5527 printf "%s\n" "$lt_cv_path_NM" >&6; }
5528 if test no != "$lt_cv_path_NM"; then
5529 NM=$lt_cv_path_NM
5530 else
5531 # Didn't find any BSD compatible name lister, look for dumpbin.
5532 if test -n "$DUMPBIN"; then :
5533 # Let the user override the test.
5534 else
5535 if test -n "$ac_tool_prefix"; then
5536 for ac_prog in dumpbin "link -dump"
5537 do
5538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 printf %s "checking for $ac_word... " >&6; }
5542 if test ${ac_cv_prog_DUMPBIN+y}
5543 then :
5544 printf %s "(cached) " >&6
5545 else case e in #(
5546 e) if test -n "$DUMPBIN"; then
5547 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552 IFS=$as_save_IFS
5553 case $as_dir in #(((
5554 '') as_dir=./ ;;
5555 */) ;;
5556 *) as_dir=$as_dir/ ;;
5557 esac
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5560 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5562 break 2
5563 fi
5564 done
5565 done
5566 IFS=$as_save_IFS
5567
5568 fi ;;
5569 esac
5570 fi
5571 DUMPBIN=$ac_cv_prog_DUMPBIN
5572 if test -n "$DUMPBIN"; then
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5574 printf "%s\n" "$DUMPBIN" >&6; }
5575 else
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 printf "%s\n" "no" >&6; }
5578 fi
5579
5580
5581 test -n "$DUMPBIN" && break
5582 done
5583 fi
5584 if test -z "$DUMPBIN"; then
5585 ac_ct_DUMPBIN=$DUMPBIN
5586 for ac_prog in dumpbin "link -dump"
5587 do
5588 # Extract the first word of "$ac_prog", so it can be a program name with args.
5589 set dummy $ac_prog; ac_word=$2
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 printf %s "checking for $ac_word... " >&6; }
5592 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5593 then :
5594 printf %s "(cached) " >&6
5595 else case e in #(
5596 e) if test -n "$ac_ct_DUMPBIN"; then
5597 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602 IFS=$as_save_IFS
5603 case $as_dir in #(((
5604 '') as_dir=./ ;;
5605 */) ;;
5606 *) as_dir=$as_dir/ ;;
5607 esac
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5610 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5612 break 2
5613 fi
5614 done
5615 done
5616 IFS=$as_save_IFS
5617
5618 fi ;;
5619 esac
5620 fi
5621 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5622 if test -n "$ac_ct_DUMPBIN"; then
5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5624 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5625 else
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 printf "%s\n" "no" >&6; }
5628 fi
5629
5630
5631 test -n "$ac_ct_DUMPBIN" && break
5632 done
5633
5634 if test "x$ac_ct_DUMPBIN" = x; then
5635 DUMPBIN=":"
5636 else
5637 case $cross_compiling:$ac_tool_warned in
5638 yes:)
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5640 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641 ac_tool_warned=yes ;;
5642 esac
5643 DUMPBIN=$ac_ct_DUMPBIN
5644 fi
5645 fi
5646
5647 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5648 *COFF*)
5649 DUMPBIN="$DUMPBIN -symbols -headers"
5650 ;;
5651 *)
5652 DUMPBIN=:
5653 ;;
5654 esac
5655 fi
5656
5657 if test : != "$DUMPBIN"; then
5658 NM=$DUMPBIN
5659 fi
5660 fi
5661 test -z "$NM" && NM=nm
5662
5663
5664
5665
5666
5667
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5669 printf %s "checking the name lister ($NM) interface... " >&6; }
5670 if test ${lt_cv_nm_interface+y}
5671 then :
5672 printf %s "(cached) " >&6
5673 else case e in #(
5674 e) lt_cv_nm_interface="BSD nm"
5675 echo "int some_variable = 0;" > conftest.$ac_ext
5676 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5677 (eval "$ac_compile" 2>conftest.err)
5678 cat conftest.err >&5
5679 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5680 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5681 cat conftest.err >&5
5682 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5683 cat conftest.out >&5
5684 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5685 lt_cv_nm_interface="MS dumpbin"
5686 fi
5687 rm -f conftest* ;;
5688 esac
5689 fi
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5691 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5692
5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5694 printf %s "checking whether ln -s works... " >&6; }
5695 LN_S=$as_ln_s
5696 if test "$LN_S" = "ln -s"; then
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698 printf "%s\n" "yes" >&6; }
5699 else
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5701 printf "%s\n" "no, using $LN_S" >&6; }
5702 fi
5703
5704 # find the maximum length of command line arguments
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5706 printf %s "checking the maximum length of command line arguments... " >&6; }
5707 if test ${lt_cv_sys_max_cmd_len+y}
5708 then :
5709 printf %s "(cached) " >&6
5710 else case e in #(
5711 e) i=0
5712 teststring=ABCD
5713
5714 case $build_os in
5715 msdosdjgpp*)
5716 # On DJGPP, this test can blow up pretty badly due to problems in libc
5717 # (any single argument exceeding 2000 bytes causes a buffer overrun
5718 # during glob expansion). Even if it were fixed, the result of this
5719 # check would be larger than it should be.
5720 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5721 ;;
5722
5723 gnu*)
5724 # Under GNU Hurd, this test is not required because there is
5725 # no limit to the length of command line arguments.
5726 # Libtool will interpret -1 as no limit whatsoever
5727 lt_cv_sys_max_cmd_len=-1;
5728 ;;
5729
5730 cygwin* | mingw* | cegcc*)
5731 # On Win9x/ME, this test blows up -- it succeeds, but takes
5732 # about 5 minutes as the teststring grows exponentially.
5733 # Worse, since 9x/ME are not pre-emptively multitasking,
5734 # you end up with a "frozen" computer, even though with patience
5735 # the test eventually succeeds (with a max line length of 256k).
5736 # Instead, let's just punt: use the minimum linelength reported by
5737 # all of the supported platforms: 8192 (on NT/2K/XP).
5738 lt_cv_sys_max_cmd_len=8192;
5739 ;;
5740
5741 mint*)
5742 # On MiNT this can take a long time and run out of memory.
5743 lt_cv_sys_max_cmd_len=8192;
5744 ;;
5745
5746 amigaos*)
5747 # On AmigaOS with pdksh, this test takes hours, literally.
5748 # So we just punt and use a minimum line length of 8192.
5749 lt_cv_sys_max_cmd_len=8192;
5750 ;;
5751
5752 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5753 # This has been around since 386BSD, at least. Likely further.
5754 if test -x /sbin/sysctl; then
5755 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5756 elif test -x /usr/sbin/sysctl; then
5757 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5758 else
5759 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5760 fi
5761 # And add a safety zone
5762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5764 ;;
5765
5766 interix*)
5767 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5768 lt_cv_sys_max_cmd_len=196608
5769 ;;
5770
5771 os2*)
5772 # The test takes a long time on OS/2.
5773 lt_cv_sys_max_cmd_len=8192
5774 ;;
5775
5776 osf*)
5777 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5778 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5779 # nice to cause kernel panics so lets avoid the loop below.
5780 # First set a reasonable default.
5781 lt_cv_sys_max_cmd_len=16384
5782 #
5783 if test -x /sbin/sysconfig; then
5784 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5785 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5786 esac
5787 fi
5788 ;;
5789 sco3.2v5*)
5790 lt_cv_sys_max_cmd_len=102400
5791 ;;
5792 sysv5* | sco5v6* | sysv4.2uw2*)
5793 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5794 if test -n "$kargmax"; then
5795 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5796 else
5797 lt_cv_sys_max_cmd_len=32768
5798 fi
5799 ;;
5800 *)
5801 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5802 if test -n "$lt_cv_sys_max_cmd_len" && \
5803 test undefined != "$lt_cv_sys_max_cmd_len"; then
5804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5806 else
5807 # Make teststring a little bigger before we do anything with it.
5808 # a 1K string should be a reasonable start.
5809 for i in 1 2 3 4 5 6 7 8; do
5810 teststring=$teststring$teststring
5811 done
5812 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5813 # If test is not a shell built-in, we'll probably end up computing a
5814 # maximum length that is only half of the actual maximum length, but
5815 # we can't tell.
5816 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5817 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5818 test 17 != "$i" # 1/2 MB should be enough
5819 do
5820 i=`expr $i + 1`
5821 teststring=$teststring$teststring
5822 done
5823 # Only check the string length outside the loop.
5824 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5825 teststring=
5826 # Add a significant safety factor because C++ compilers can tack on
5827 # massive amounts of additional arguments before passing them to the
5828 # linker. It appears as though 1/2 is a usable value.
5829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5830 fi
5831 ;;
5832 esac
5833 ;;
5834 esac
5835 fi
5836
5837 if test -n "$lt_cv_sys_max_cmd_len"; then
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5839 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5840 else
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5842 printf "%s\n" "none" >&6; }
5843 fi
5844 max_cmd_len=$lt_cv_sys_max_cmd_len
5845
5846
5847
5848
5849
5850
5851 : ${CP="cp -f"}
5852 : ${MV="mv -f"}
5853 : ${RM="rm -f"}
5854
5855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5856 lt_unset=unset
5857 else
5858 lt_unset=false
5859 fi
5860
5861
5862
5863
5864
5865 # test EBCDIC or ASCII
5866 case `echo X|tr X '\101'` in
5867 A) # ASCII based system
5868 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5869 lt_SP2NL='tr \040 \012'
5870 lt_NL2SP='tr \015\012 \040\040'
5871 ;;
5872 *) # EBCDIC based system
5873 lt_SP2NL='tr \100 \n'
5874 lt_NL2SP='tr \r\n \100\100'
5875 ;;
5876 esac
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5887 printf %s "checking how to convert $build file names to $host format... " >&6; }
5888 if test ${lt_cv_to_host_file_cmd+y}
5889 then :
5890 printf %s "(cached) " >&6
5891 else case e in #(
5892 e) case $host in
5893 *-*-mingw* )
5894 case $build in
5895 *-*-mingw* ) # actually msys
5896 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5897 ;;
5898 *-*-cygwin* )
5899 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5900 ;;
5901 * ) # otherwise, assume *nix
5902 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5903 ;;
5904 esac
5905 ;;
5906 *-*-cygwin* )
5907 case $build in
5908 *-*-mingw* ) # actually msys
5909 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5910 ;;
5911 *-*-cygwin* )
5912 lt_cv_to_host_file_cmd=func_convert_file_noop
5913 ;;
5914 * ) # otherwise, assume *nix
5915 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5916 ;;
5917 esac
5918 ;;
5919 * ) # unhandled hosts (and "normal" native builds)
5920 lt_cv_to_host_file_cmd=func_convert_file_noop
5921 ;;
5922 esac
5923 ;;
5924 esac
5925 fi
5926
5927 to_host_file_cmd=$lt_cv_to_host_file_cmd
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5929 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5930
5931
5932
5933
5934
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5936 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5937 if test ${lt_cv_to_tool_file_cmd+y}
5938 then :
5939 printf %s "(cached) " >&6
5940 else case e in #(
5941 e) #assume ordinary cross tools, or native build.
5942 lt_cv_to_tool_file_cmd=func_convert_file_noop
5943 case $host in
5944 *-*-mingw* )
5945 case $build in
5946 *-*-mingw* ) # actually msys
5947 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5948 ;;
5949 esac
5950 ;;
5951 esac
5952 ;;
5953 esac
5954 fi
5955
5956 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5958 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5959
5960
5961
5962
5963
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5965 printf %s "checking for $LD option to reload object files... " >&6; }
5966 if test ${lt_cv_ld_reload_flag+y}
5967 then :
5968 printf %s "(cached) " >&6
5969 else case e in #(
5970 e) lt_cv_ld_reload_flag='-r' ;;
5971 esac
5972 fi
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5974 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5975 reload_flag=$lt_cv_ld_reload_flag
5976 case $reload_flag in
5977 "" | " "*) ;;
5978 *) reload_flag=" $reload_flag" ;;
5979 esac
5980 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981 case $host_os in
5982 cygwin* | mingw* | pw32* | cegcc*)
5983 if test yes != "$GCC"; then
5984 reload_cmds=false
5985 fi
5986 ;;
5987 darwin*)
5988 if test yes = "$GCC"; then
5989 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5990 else
5991 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5992 fi
5993 ;;
5994 esac
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004 if test -n "$ac_tool_prefix"; then
6005 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6006 set dummy ${ac_tool_prefix}file; ac_word=$2
6007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 printf %s "checking for $ac_word... " >&6; }
6009 if test ${ac_cv_prog_FILECMD+y}
6010 then :
6011 printf %s "(cached) " >&6
6012 else case e in #(
6013 e) if test -n "$FILECMD"; then
6014 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019 IFS=$as_save_IFS
6020 case $as_dir in #(((
6021 '') as_dir=./ ;;
6022 */) ;;
6023 *) as_dir=$as_dir/ ;;
6024 esac
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6027 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031 done
6032 done
6033 IFS=$as_save_IFS
6034
6035 fi ;;
6036 esac
6037 fi
6038 FILECMD=$ac_cv_prog_FILECMD
6039 if test -n "$FILECMD"; then
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6041 printf "%s\n" "$FILECMD" >&6; }
6042 else
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 printf "%s\n" "no" >&6; }
6045 fi
6046
6047
6048 fi
6049 if test -z "$ac_cv_prog_FILECMD"; then
6050 ac_ct_FILECMD=$FILECMD
6051 # Extract the first word of "file", so it can be a program name with args.
6052 set dummy file; ac_word=$2
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 printf %s "checking for $ac_word... " >&6; }
6055 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6056 then :
6057 printf %s "(cached) " >&6
6058 else case e in #(
6059 e) if test -n "$ac_ct_FILECMD"; then
6060 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 case $as_dir in #(((
6067 '') as_dir=./ ;;
6068 */) ;;
6069 *) as_dir=$as_dir/ ;;
6070 esac
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_ac_ct_FILECMD="file"
6074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081 fi ;;
6082 esac
6083 fi
6084 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6085 if test -n "$ac_ct_FILECMD"; then
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6087 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6088 else
6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 printf "%s\n" "no" >&6; }
6091 fi
6092
6093 if test "x$ac_ct_FILECMD" = x; then
6094 FILECMD=":"
6095 else
6096 case $cross_compiling:$ac_tool_warned in
6097 yes:)
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6099 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6100 ac_tool_warned=yes ;;
6101 esac
6102 FILECMD=$ac_ct_FILECMD
6103 fi
6104 else
6105 FILECMD="$ac_cv_prog_FILECMD"
6106 fi
6107
6108
6109
6110
6111
6112
6113
6114 if test -n "$ac_tool_prefix"; then
6115 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6116 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 printf %s "checking for $ac_word... " >&6; }
6119 if test ${ac_cv_prog_OBJDUMP+y}
6120 then :
6121 printf %s "(cached) " >&6
6122 else case e in #(
6123 e) if test -n "$OBJDUMP"; then
6124 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129 IFS=$as_save_IFS
6130 case $as_dir in #(((
6131 '') as_dir=./ ;;
6132 */) ;;
6133 *) as_dir=$as_dir/ ;;
6134 esac
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141 done
6142 done
6143 IFS=$as_save_IFS
6144
6145 fi ;;
6146 esac
6147 fi
6148 OBJDUMP=$ac_cv_prog_OBJDUMP
6149 if test -n "$OBJDUMP"; then
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6151 printf "%s\n" "$OBJDUMP" >&6; }
6152 else
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 printf "%s\n" "no" >&6; }
6155 fi
6156
6157
6158 fi
6159 if test -z "$ac_cv_prog_OBJDUMP"; then
6160 ac_ct_OBJDUMP=$OBJDUMP
6161 # Extract the first word of "objdump", so it can be a program name with args.
6162 set dummy objdump; ac_word=$2
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 printf %s "checking for $ac_word... " >&6; }
6165 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6166 then :
6167 printf %s "(cached) " >&6
6168 else case e in #(
6169 e) if test -n "$ac_ct_OBJDUMP"; then
6170 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175 IFS=$as_save_IFS
6176 case $as_dir in #(((
6177 '') as_dir=./ ;;
6178 */) ;;
6179 *) as_dir=$as_dir/ ;;
6180 esac
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6183 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187 done
6188 done
6189 IFS=$as_save_IFS
6190
6191 fi ;;
6192 esac
6193 fi
6194 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6195 if test -n "$ac_ct_OBJDUMP"; then
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6197 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6198 else
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 printf "%s\n" "no" >&6; }
6201 fi
6202
6203 if test "x$ac_ct_OBJDUMP" = x; then
6204 OBJDUMP="false"
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212 OBJDUMP=$ac_ct_OBJDUMP
6213 fi
6214 else
6215 OBJDUMP="$ac_cv_prog_OBJDUMP"
6216 fi
6217
6218 test -z "$OBJDUMP" && OBJDUMP=objdump
6219
6220
6221
6222
6223
6224
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6226 printf %s "checking how to recognize dependent libraries... " >&6; }
6227 if test ${lt_cv_deplibs_check_method+y}
6228 then :
6229 printf %s "(cached) " >&6
6230 else case e in #(
6231 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6232 lt_cv_file_magic_test_file=
6233 lt_cv_deplibs_check_method='unknown'
6234 # Need to set the preceding variable on all platforms that support
6235 # interlibrary dependencies.
6236 # 'none' -- dependencies not supported.
6237 # 'unknown' -- same as none, but documents that we really don't know.
6238 # 'pass_all' -- all dependencies passed with no checks.
6239 # 'test_compile' -- check by making test program.
6240 # 'file_magic [[regex]]' -- check by looking for files in library path
6241 # that responds to the $file_magic_cmd with a given extended regex.
6242 # If you have 'file' or equivalent on your system and you're not sure
6243 # whether 'pass_all' will *always* work, you probably want this one.
6244
6245 case $host_os in
6246 aix[4-9]*)
6247 lt_cv_deplibs_check_method=pass_all
6248 ;;
6249
6250 beos*)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253
6254 bsdi[45]*)
6255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6256 lt_cv_file_magic_cmd='$FILECMD -L'
6257 lt_cv_file_magic_test_file=/shlib/libc.so
6258 ;;
6259
6260 cygwin*)
6261 # func_win32_libid is a shell function defined in ltmain.sh
6262 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6263 lt_cv_file_magic_cmd='func_win32_libid'
6264 ;;
6265
6266 mingw* | pw32*)
6267 # Base MSYS/MinGW do not provide the 'file' command needed by
6268 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6269 # unless we find 'file', for example because we are cross-compiling.
6270 if ( file / ) >/dev/null 2>&1; then
6271 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6272 lt_cv_file_magic_cmd='func_win32_libid'
6273 else
6274 # Keep this pattern in sync with the one in func_win32_libid.
6275 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6276 lt_cv_file_magic_cmd='$OBJDUMP -f'
6277 fi
6278 ;;
6279
6280 cegcc*)
6281 # use the weaker test based on 'objdump'. See mingw*.
6282 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6283 lt_cv_file_magic_cmd='$OBJDUMP -f'
6284 ;;
6285
6286 darwin* | rhapsody*)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289
6290 freebsd* | dragonfly* | midnightbsd*)
6291 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6292 case $host_cpu in
6293 i*86 )
6294 # Not sure whether the presence of OpenBSD here was a mistake.
6295 # Let's accept both of them until this is cleared up.
6296 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6297 lt_cv_file_magic_cmd=$FILECMD
6298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6299 ;;
6300 esac
6301 else
6302 lt_cv_deplibs_check_method=pass_all
6303 fi
6304 ;;
6305
6306 haiku*)
6307 lt_cv_deplibs_check_method=pass_all
6308 ;;
6309
6310 hpux10.20* | hpux11*)
6311 lt_cv_file_magic_cmd=$FILECMD
6312 case $host_cpu in
6313 ia64*)
6314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6315 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6316 ;;
6317 hppa*64*)
6318 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]'
6319 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6320 ;;
6321 *)
6322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6323 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6324 ;;
6325 esac
6326 ;;
6327
6328 interix[3-9]*)
6329 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6331 ;;
6332
6333 irix5* | irix6* | nonstopux*)
6334 case $LD in
6335 *-32|*"-32 ") libmagic=32-bit;;
6336 *-n32|*"-n32 ") libmagic=N32;;
6337 *-64|*"-64 ") libmagic=64-bit;;
6338 *) libmagic=never-match;;
6339 esac
6340 lt_cv_deplibs_check_method=pass_all
6341 ;;
6342
6343 # This must be glibc/ELF.
6344 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6345 lt_cv_deplibs_check_method=pass_all
6346 ;;
6347
6348 netbsd*)
6349 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6351 else
6352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6353 fi
6354 ;;
6355
6356 newos6*)
6357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6358 lt_cv_file_magic_cmd=$FILECMD
6359 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6360 ;;
6361
6362 *nto* | *qnx*)
6363 lt_cv_deplibs_check_method=pass_all
6364 ;;
6365
6366 openbsd* | bitrig*)
6367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6369 else
6370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6371 fi
6372 ;;
6373
6374 osf3* | osf4* | osf5*)
6375 lt_cv_deplibs_check_method=pass_all
6376 ;;
6377
6378 rdos*)
6379 lt_cv_deplibs_check_method=pass_all
6380 ;;
6381
6382 solaris*)
6383 lt_cv_deplibs_check_method=pass_all
6384 ;;
6385
6386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6387 lt_cv_deplibs_check_method=pass_all
6388 ;;
6389
6390 sysv4 | sysv4.3*)
6391 case $host_vendor in
6392 motorola)
6393 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]'
6394 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6395 ;;
6396 ncr)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399 sequent)
6400 lt_cv_file_magic_cmd='/bin/file'
6401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6402 ;;
6403 sni)
6404 lt_cv_file_magic_cmd='/bin/file'
6405 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6406 lt_cv_file_magic_test_file=/lib/libc.so
6407 ;;
6408 siemens)
6409 lt_cv_deplibs_check_method=pass_all
6410 ;;
6411 pc)
6412 lt_cv_deplibs_check_method=pass_all
6413 ;;
6414 esac
6415 ;;
6416
6417 tpf*)
6418 lt_cv_deplibs_check_method=pass_all
6419 ;;
6420 os2*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423 esac
6424 ;;
6425 esac
6426 fi
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6428 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6429
6430 file_magic_glob=
6431 want_nocaseglob=no
6432 if test "$build" = "$host"; then
6433 case $host_os in
6434 mingw* | pw32*)
6435 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6436 want_nocaseglob=yes
6437 else
6438 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6439 fi
6440 ;;
6441 esac
6442 fi
6443
6444 file_magic_cmd=$lt_cv_file_magic_cmd
6445 deplibs_check_method=$lt_cv_deplibs_check_method
6446 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 printf %s "checking for $ac_word... " >&6; }
6474 if test ${ac_cv_prog_DLLTOOL+y}
6475 then :
6476 printf %s "(cached) " >&6
6477 else case e in #(
6478 e) if test -n "$DLLTOOL"; then
6479 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484 IFS=$as_save_IFS
6485 case $as_dir in #(((
6486 '') as_dir=./ ;;
6487 */) ;;
6488 *) as_dir=$as_dir/ ;;
6489 esac
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6492 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6494 break 2
6495 fi
6496 done
6497 done
6498 IFS=$as_save_IFS
6499
6500 fi ;;
6501 esac
6502 fi
6503 DLLTOOL=$ac_cv_prog_DLLTOOL
6504 if test -n "$DLLTOOL"; then
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6506 printf "%s\n" "$DLLTOOL" >&6; }
6507 else
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 printf "%s\n" "no" >&6; }
6510 fi
6511
6512
6513 fi
6514 if test -z "$ac_cv_prog_DLLTOOL"; then
6515 ac_ct_DLLTOOL=$DLLTOOL
6516 # Extract the first word of "dlltool", so it can be a program name with args.
6517 set dummy dlltool; ac_word=$2
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 printf %s "checking for $ac_word... " >&6; }
6520 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6521 then :
6522 printf %s "(cached) " >&6
6523 else case e in #(
6524 e) if test -n "$ac_ct_DLLTOOL"; then
6525 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530 IFS=$as_save_IFS
6531 case $as_dir in #(((
6532 '') as_dir=./ ;;
6533 */) ;;
6534 *) as_dir=$as_dir/ ;;
6535 esac
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6538 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 fi ;;
6547 esac
6548 fi
6549 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6550 if test -n "$ac_ct_DLLTOOL"; then
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6552 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6553 else
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 printf "%s\n" "no" >&6; }
6556 fi
6557
6558 if test "x$ac_ct_DLLTOOL" = x; then
6559 DLLTOOL="false"
6560 else
6561 case $cross_compiling:$ac_tool_warned in
6562 yes:)
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565 ac_tool_warned=yes ;;
6566 esac
6567 DLLTOOL=$ac_ct_DLLTOOL
6568 fi
6569 else
6570 DLLTOOL="$ac_cv_prog_DLLTOOL"
6571 fi
6572
6573 test -z "$DLLTOOL" && DLLTOOL=dlltool
6574
6575
6576
6577
6578
6579
6580
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6582 printf %s "checking how to associate runtime and link libraries... " >&6; }
6583 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6584 then :
6585 printf %s "(cached) " >&6
6586 else case e in #(
6587 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6588
6589 case $host_os in
6590 cygwin* | mingw* | pw32* | cegcc*)
6591 # two different shell functions defined in ltmain.sh;
6592 # decide which one to use based on capabilities of $DLLTOOL
6593 case `$DLLTOOL --help 2>&1` in
6594 *--identify-strict*)
6595 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6596 ;;
6597 *)
6598 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6599 ;;
6600 esac
6601 ;;
6602 *)
6603 # fallback: assume linklib IS sharedlib
6604 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6605 ;;
6606 esac
6607 ;;
6608 esac
6609 fi
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6611 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6612 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6613 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6614
6615
6616
6617
6618
6619
6620
6621 if test -n "$ac_tool_prefix"; then
6622 for ac_prog in ar
6623 do
6624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 printf %s "checking for $ac_word... " >&6; }
6628 if test ${ac_cv_prog_AR+y}
6629 then :
6630 printf %s "(cached) " >&6
6631 else case e in #(
6632 e) if test -n "$AR"; then
6633 ac_cv_prog_AR="$AR" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638 IFS=$as_save_IFS
6639 case $as_dir in #(((
6640 '') as_dir=./ ;;
6641 */) ;;
6642 *) as_dir=$as_dir/ ;;
6643 esac
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6648 break 2
6649 fi
6650 done
6651 done
6652 IFS=$as_save_IFS
6653
6654 fi ;;
6655 esac
6656 fi
6657 AR=$ac_cv_prog_AR
6658 if test -n "$AR"; then
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6660 printf "%s\n" "$AR" >&6; }
6661 else
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 printf "%s\n" "no" >&6; }
6664 fi
6665
6666
6667 test -n "$AR" && break
6668 done
6669 fi
6670 if test -z "$AR"; then
6671 ac_ct_AR=$AR
6672 for ac_prog in ar
6673 do
6674 # Extract the first word of "$ac_prog", so it can be a program name with args.
6675 set dummy $ac_prog; ac_word=$2
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 printf %s "checking for $ac_word... " >&6; }
6678 if test ${ac_cv_prog_ac_ct_AR+y}
6679 then :
6680 printf %s "(cached) " >&6
6681 else case e in #(
6682 e) if test -n "$ac_ct_AR"; then
6683 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688 IFS=$as_save_IFS
6689 case $as_dir in #(((
6690 '') as_dir=./ ;;
6691 */) ;;
6692 *) as_dir=$as_dir/ ;;
6693 esac
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6696 ac_cv_prog_ac_ct_AR="$ac_prog"
6697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi ;;
6705 esac
6706 fi
6707 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6708 if test -n "$ac_ct_AR"; then
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6710 printf "%s\n" "$ac_ct_AR" >&6; }
6711 else
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 printf "%s\n" "no" >&6; }
6714 fi
6715
6716
6717 test -n "$ac_ct_AR" && break
6718 done
6719
6720 if test "x$ac_ct_AR" = x; then
6721 AR="false"
6722 else
6723 case $cross_compiling:$ac_tool_warned in
6724 yes:)
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6727 ac_tool_warned=yes ;;
6728 esac
6729 AR=$ac_ct_AR
6730 fi
6731 fi
6732
6733 : ${AR=ar}
6734
6735
6736
6737
6738
6739
6740 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6741 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6742 # higher priority because thats what people were doing historically (setting
6743 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6744 # variable obsoleted/removed.
6745
6746 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6747 lt_ar_flags=$AR_FLAGS
6748
6749
6750
6751
6752
6753
6754 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6755 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6756
6757
6758
6759
6760
6761
6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6763 printf %s "checking for archiver @FILE support... " >&6; }
6764 if test ${lt_cv_ar_at_file+y}
6765 then :
6766 printf %s "(cached) " >&6
6767 else case e in #(
6768 e) lt_cv_ar_at_file=no
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771
6772 int
6773 main (void)
6774 {
6775
6776 ;
6777 return 0;
6778 }
6779 _ACEOF
6780 if ac_fn_c_try_compile "$LINENO"
6781 then :
6782 echo conftest.$ac_objext > conftest.lst
6783 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6785 (eval $lt_ar_try) 2>&5
6786 ac_status=$?
6787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788 test $ac_status = 0; }
6789 if test 0 -eq "$ac_status"; then
6790 # Ensure the archiver fails upon bogus file names.
6791 rm -f conftest.$ac_objext libconftest.a
6792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6793 (eval $lt_ar_try) 2>&5
6794 ac_status=$?
6795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796 test $ac_status = 0; }
6797 if test 0 -ne "$ac_status"; then
6798 lt_cv_ar_at_file=@
6799 fi
6800 fi
6801 rm -f conftest.* libconftest.a
6802
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6805 ;;
6806 esac
6807 fi
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6809 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6810
6811 if test no = "$lt_cv_ar_at_file"; then
6812 archiver_list_spec=
6813 else
6814 archiver_list_spec=$lt_cv_ar_at_file
6815 fi
6816
6817
6818
6819
6820
6821
6822
6823 if test -n "$ac_tool_prefix"; then
6824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6825 set dummy ${ac_tool_prefix}strip; ac_word=$2
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 printf %s "checking for $ac_word... " >&6; }
6828 if test ${ac_cv_prog_STRIP+y}
6829 then :
6830 printf %s "(cached) " >&6
6831 else case e in #(
6832 e) if test -n "$STRIP"; then
6833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838 IFS=$as_save_IFS
6839 case $as_dir in #(((
6840 '') as_dir=./ ;;
6841 */) ;;
6842 *) as_dir=$as_dir/ ;;
6843 esac
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854 fi ;;
6855 esac
6856 fi
6857 STRIP=$ac_cv_prog_STRIP
6858 if test -n "$STRIP"; then
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6860 printf "%s\n" "$STRIP" >&6; }
6861 else
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 printf "%s\n" "no" >&6; }
6864 fi
6865
6866
6867 fi
6868 if test -z "$ac_cv_prog_STRIP"; then
6869 ac_ct_STRIP=$STRIP
6870 # Extract the first word of "strip", so it can be a program name with args.
6871 set dummy strip; ac_word=$2
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 printf %s "checking for $ac_word... " >&6; }
6874 if test ${ac_cv_prog_ac_ct_STRIP+y}
6875 then :
6876 printf %s "(cached) " >&6
6877 else case e in #(
6878 e) if test -n "$ac_ct_STRIP"; then
6879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884 IFS=$as_save_IFS
6885 case $as_dir in #(((
6886 '') as_dir=./ ;;
6887 */) ;;
6888 *) as_dir=$as_dir/ ;;
6889 esac
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6892 ac_cv_prog_ac_ct_STRIP="strip"
6893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900 fi ;;
6901 esac
6902 fi
6903 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6904 if test -n "$ac_ct_STRIP"; then
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6906 printf "%s\n" "$ac_ct_STRIP" >&6; }
6907 else
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 printf "%s\n" "no" >&6; }
6910 fi
6911
6912 if test "x$ac_ct_STRIP" = x; then
6913 STRIP=":"
6914 else
6915 case $cross_compiling:$ac_tool_warned in
6916 yes:)
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6920 esac
6921 STRIP=$ac_ct_STRIP
6922 fi
6923 else
6924 STRIP="$ac_cv_prog_STRIP"
6925 fi
6926
6927 test -z "$STRIP" && STRIP=:
6928
6929
6930
6931
6932
6933
6934 if test -n "$ac_tool_prefix"; then
6935 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6936 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938 printf %s "checking for $ac_word... " >&6; }
6939 if test ${ac_cv_prog_RANLIB+y}
6940 then :
6941 printf %s "(cached) " >&6
6942 else case e in #(
6943 e) if test -n "$RANLIB"; then
6944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949 IFS=$as_save_IFS
6950 case $as_dir in #(((
6951 '') as_dir=./ ;;
6952 */) ;;
6953 *) as_dir=$as_dir/ ;;
6954 esac
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965 fi ;;
6966 esac
6967 fi
6968 RANLIB=$ac_cv_prog_RANLIB
6969 if test -n "$RANLIB"; then
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6971 printf "%s\n" "$RANLIB" >&6; }
6972 else
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 printf "%s\n" "no" >&6; }
6975 fi
6976
6977
6978 fi
6979 if test -z "$ac_cv_prog_RANLIB"; then
6980 ac_ct_RANLIB=$RANLIB
6981 # Extract the first word of "ranlib", so it can be a program name with args.
6982 set dummy ranlib; ac_word=$2
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 printf %s "checking for $ac_word... " >&6; }
6985 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6986 then :
6987 printf %s "(cached) " >&6
6988 else case e in #(
6989 e) if test -n "$ac_ct_RANLIB"; then
6990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995 IFS=$as_save_IFS
6996 case $as_dir in #(((
6997 '') as_dir=./ ;;
6998 */) ;;
6999 *) as_dir=$as_dir/ ;;
7000 esac
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_ac_ct_RANLIB="ranlib"
7004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007 done
7008 done
7009 IFS=$as_save_IFS
7010
7011 fi ;;
7012 esac
7013 fi
7014 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7015 if test -n "$ac_ct_RANLIB"; then
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7017 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7018 else
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 printf "%s\n" "no" >&6; }
7021 fi
7022
7023 if test "x$ac_ct_RANLIB" = x; then
7024 RANLIB=":"
7025 else
7026 case $cross_compiling:$ac_tool_warned in
7027 yes:)
7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7029 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7030 ac_tool_warned=yes ;;
7031 esac
7032 RANLIB=$ac_ct_RANLIB
7033 fi
7034 else
7035 RANLIB="$ac_cv_prog_RANLIB"
7036 fi
7037
7038 test -z "$RANLIB" && RANLIB=:
7039
7040
7041
7042
7043
7044
7045 # Determine commands to create old-style static archives.
7046 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7047 old_postinstall_cmds='chmod 644 $oldlib'
7048 old_postuninstall_cmds=
7049
7050 if test -n "$RANLIB"; then
7051 case $host_os in
7052 bitrig* | openbsd*)
7053 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7054 ;;
7055 *)
7056 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7057 ;;
7058 esac
7059 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7060 fi
7061
7062 case $host_os in
7063 darwin*)
7064 lock_old_archive_extraction=yes ;;
7065 *)
7066 lock_old_archive_extraction=no ;;
7067 esac
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107 # If no C compiler was specified, use CC.
7108 LTCC=${LTCC-"$CC"}
7109
7110 # If no C compiler flags were specified, use CFLAGS.
7111 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7112
7113 # Allow CC to be a program name with arguments.
7114 compiler=$CC
7115
7116
7117 # Check for command to grab the raw symbol name followed by C symbol from nm.
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7119 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7120 if test ${lt_cv_sys_global_symbol_pipe+y}
7121 then :
7122 printf %s "(cached) " >&6
7123 else case e in #(
7124 e)
7125 # These are sane defaults that work on at least a few old systems.
7126 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7127
7128 # Character class describing NM global symbol codes.
7129 symcode='[BCDEGRST]'
7130
7131 # Regexp to match symbols that can be accessed directly from C.
7132 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7133
7134 # Define system-specific variables.
7135 case $host_os in
7136 aix*)
7137 symcode='[BCDT]'
7138 ;;
7139 cygwin* | mingw* | pw32* | cegcc*)
7140 symcode='[ABCDGISTW]'
7141 ;;
7142 hpux*)
7143 if test ia64 = "$host_cpu"; then
7144 symcode='[ABCDEGRST]'
7145 fi
7146 ;;
7147 irix* | nonstopux*)
7148 symcode='[BCDEGRST]'
7149 ;;
7150 osf*)
7151 symcode='[BCDEGQRST]'
7152 ;;
7153 solaris*)
7154 symcode='[BDRT]'
7155 ;;
7156 sco3.2v5*)
7157 symcode='[DT]'
7158 ;;
7159 sysv4.2uw2*)
7160 symcode='[DT]'
7161 ;;
7162 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7163 symcode='[ABDT]'
7164 ;;
7165 sysv4)
7166 symcode='[DFNSTU]'
7167 ;;
7168 esac
7169
7170 # If we're using GNU nm, then use its standard symbol codes.
7171 case `$NM -V 2>&1` in
7172 *GNU* | *'with BFD'*)
7173 symcode='[ABCDGIRSTW]' ;;
7174 esac
7175
7176 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7177 # Gets list of data symbols to import.
7178 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7179 # Adjust the below global symbol transforms to fixup imported variables.
7180 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7181 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7182 lt_c_name_lib_hook="\
7183 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7184 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7185 else
7186 # Disable hooks by default.
7187 lt_cv_sys_global_symbol_to_import=
7188 lt_cdecl_hook=
7189 lt_c_name_hook=
7190 lt_c_name_lib_hook=
7191 fi
7192
7193 # Transform an extracted symbol line into a proper C declaration.
7194 # Some systems (esp. on ia64) link data and code symbols differently,
7195 # so use this general approach.
7196 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7197 $lt_cdecl_hook\
7198 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7199 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7200
7201 # Transform an extracted symbol line into symbol name and symbol address
7202 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7203 $lt_c_name_hook\
7204 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7205 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7206
7207 # Transform an extracted symbol line into symbol name with lib prefix and
7208 # symbol address.
7209 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7210 $lt_c_name_lib_hook\
7211 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7212 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7213 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7214
7215 # Handle CRLF in mingw tool chain
7216 opt_cr=
7217 case $build_os in
7218 mingw*)
7219 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7220 ;;
7221 esac
7222
7223 # Try without a prefix underscore, then with it.
7224 for ac_symprfx in "" "_"; do
7225
7226 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7227 symxfrm="\\1 $ac_symprfx\\2 \\2"
7228
7229 # Write the raw and C identifiers.
7230 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7231 # Fake it for dumpbin and say T for any non-static function,
7232 # D for any global variable and I for any imported variable.
7233 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7234 # which start with @ or ?.
7235 lt_cv_sys_global_symbol_pipe="$AWK '"\
7236 " {last_section=section; section=\$ 3};"\
7237 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7238 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7239 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7240 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7241 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7242 " \$ 0!~/External *\|/{next};"\
7243 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7244 " {if(hide[section]) next};"\
7245 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7246 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7247 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7248 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7249 " ' prfx=^$ac_symprfx"
7250 else
7251 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7252 fi
7253 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7254
7255 # Check to see that the pipe works correctly.
7256 pipe_works=no
7257
7258 rm -f conftest*
7259 cat > conftest.$ac_ext <<_LT_EOF
7260 #ifdef __cplusplus
7261 extern "C" {
7262 #endif
7263 char nm_test_var;
7264 void nm_test_func(void);
7265 void nm_test_func(void){}
7266 #ifdef __cplusplus
7267 }
7268 #endif
7269 int main(){nm_test_var='a';nm_test_func();return(0);}
7270 _LT_EOF
7271
7272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7273 (eval $ac_compile) 2>&5
7274 ac_status=$?
7275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276 test $ac_status = 0; }; then
7277 # Now try to grab the symbols.
7278 nlist=conftest.nm
7279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7280 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7281 ac_status=$?
7282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283 test $ac_status = 0; } && test -s "$nlist"; then
7284 # Try sorting and uniquifying the output.
7285 if sort "$nlist" | uniq > "$nlist"T; then
7286 mv -f "$nlist"T "$nlist"
7287 else
7288 rm -f "$nlist"T
7289 fi
7290
7291 # Make sure that we snagged all the symbols we need.
7292 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7293 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7294 cat <<_LT_EOF > conftest.$ac_ext
7295 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7296 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7297 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7298 relocations are performed -- see ld's documentation on pseudo-relocs. */
7299 # define LT_DLSYM_CONST
7300 #elif defined __osf__
7301 /* This system does not cope well with relocations in const data. */
7302 # define LT_DLSYM_CONST
7303 #else
7304 # define LT_DLSYM_CONST const
7305 #endif
7306
7307 #ifdef __cplusplus
7308 extern "C" {
7309 #endif
7310
7311 _LT_EOF
7312 # Now generate the symbol file.
7313 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7314
7315 cat <<_LT_EOF >> conftest.$ac_ext
7316
7317 /* The mapping between symbol names and symbols. */
7318 LT_DLSYM_CONST struct {
7319 const char *name;
7320 void *address;
7321 }
7322 lt__PROGRAM__LTX_preloaded_symbols[] =
7323 {
7324 { "@PROGRAM@", (void *) 0 },
7325 _LT_EOF
7326 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7327 cat <<\_LT_EOF >> conftest.$ac_ext
7328 {0, (void *) 0}
7329 };
7330
7331 /* This works around a problem in FreeBSD linker */
7332 #ifdef FREEBSD_WORKAROUND
7333 static const void *lt_preloaded_setup() {
7334 return lt__PROGRAM__LTX_preloaded_symbols;
7335 }
7336 #endif
7337
7338 #ifdef __cplusplus
7339 }
7340 #endif
7341 _LT_EOF
7342 # Now try linking the two files.
7343 mv conftest.$ac_objext conftstm.$ac_objext
7344 lt_globsym_save_LIBS=$LIBS
7345 lt_globsym_save_CFLAGS=$CFLAGS
7346 LIBS=conftstm.$ac_objext
7347 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7349 (eval $ac_link) 2>&5
7350 ac_status=$?
7351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7352 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7353 pipe_works=yes
7354 fi
7355 LIBS=$lt_globsym_save_LIBS
7356 CFLAGS=$lt_globsym_save_CFLAGS
7357 else
7358 echo "cannot find nm_test_func in $nlist" >&5
7359 fi
7360 else
7361 echo "cannot find nm_test_var in $nlist" >&5
7362 fi
7363 else
7364 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7365 fi
7366 else
7367 echo "$progname: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7369 fi
7370 rm -rf conftest* conftst*
7371
7372 # Do not use the global_symbol_pipe unless it works.
7373 if test yes = "$pipe_works"; then
7374 break
7375 else
7376 lt_cv_sys_global_symbol_pipe=
7377 fi
7378 done
7379 ;;
7380 esac
7381 fi
7382
7383 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7384 lt_cv_sys_global_symbol_to_cdecl=
7385 fi
7386 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7388 printf "%s\n" "failed" >&6; }
7389 else
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7391 printf "%s\n" "ok" >&6; }
7392 fi
7393
7394 # Response file support.
7395 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7396 nm_file_list_spec='@'
7397 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7398 nm_file_list_spec='@'
7399 fi
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7438 printf %s "checking for sysroot... " >&6; }
7439
7440 # Check whether --with-sysroot was given.
7441 if test ${with_sysroot+y}
7442 then :
7443 withval=$with_sysroot;
7444 else case e in #(
7445 e) with_sysroot=no ;;
7446 esac
7447 fi
7448
7449
7450 lt_sysroot=
7451 case $with_sysroot in #(
7452 yes)
7453 if test yes = "$GCC"; then
7454 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7455 fi
7456 ;; #(
7457 /*)
7458 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7459 ;; #(
7460 no|'')
7461 ;; #(
7462 *)
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7464 printf "%s\n" "$with_sysroot" >&6; }
7465 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7466 ;;
7467 esac
7468
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7470 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7471
7472
7473
7474
7475
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7477 printf %s "checking for a working dd... " >&6; }
7478 if test ${ac_cv_path_lt_DD+y}
7479 then :
7480 printf %s "(cached) " >&6
7481 else case e in #(
7482 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7483 cat conftest.i conftest.i >conftest2.i
7484 : ${lt_DD:=$DD}
7485 if test -z "$lt_DD"; then
7486 ac_path_lt_DD_found=false
7487 # Loop through the user's path and test for each of PROGNAME-LIST
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491 IFS=$as_save_IFS
7492 case $as_dir in #(((
7493 '') as_dir=./ ;;
7494 */) ;;
7495 *) as_dir=$as_dir/ ;;
7496 esac
7497 for ac_prog in dd
7498 do
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7501 as_fn_executable_p "$ac_path_lt_DD" || continue
7502 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7503 cmp -s conftest.i conftest.out \
7504 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7505 fi
7506 $ac_path_lt_DD_found && break 3
7507 done
7508 done
7509 done
7510 IFS=$as_save_IFS
7511 if test -z "$ac_cv_path_lt_DD"; then
7512 :
7513 fi
7514 else
7515 ac_cv_path_lt_DD=$lt_DD
7516 fi
7517
7518 rm -f conftest.i conftest2.i conftest.out ;;
7519 esac
7520 fi
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7522 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7523
7524
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7526 printf %s "checking how to truncate binary pipes... " >&6; }
7527 if test ${lt_cv_truncate_bin+y}
7528 then :
7529 printf %s "(cached) " >&6
7530 else case e in #(
7531 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7532 cat conftest.i conftest.i >conftest2.i
7533 lt_cv_truncate_bin=
7534 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7535 cmp -s conftest.i conftest.out \
7536 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7537 fi
7538 rm -f conftest.i conftest2.i conftest.out
7539 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7540 esac
7541 fi
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7543 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7544
7545
7546
7547
7548
7549
7550
7551 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7552 func_cc_basename ()
7553 {
7554 for cc_temp in $*""; do
7555 case $cc_temp in
7556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7558 \-*) ;;
7559 *) break;;
7560 esac
7561 done
7562 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7563 }
7564
7565 # Check whether --enable-libtool-lock was given.
7566 if test ${enable_libtool_lock+y}
7567 then :
7568 enableval=$enable_libtool_lock;
7569 fi
7570
7571 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7572
7573 # Some flags need to be propagated to the compiler or linker for good
7574 # libtool support.
7575 case $host in
7576 ia64-*-hpux*)
7577 # Find out what ABI is being produced by ac_compile, and set mode
7578 # options accordingly.
7579 echo 'int i;' > conftest.$ac_ext
7580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7581 (eval $ac_compile) 2>&5
7582 ac_status=$?
7583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584 test $ac_status = 0; }; then
7585 case `$FILECMD conftest.$ac_objext` in
7586 *ELF-32*)
7587 HPUX_IA64_MODE=32
7588 ;;
7589 *ELF-64*)
7590 HPUX_IA64_MODE=64
7591 ;;
7592 esac
7593 fi
7594 rm -rf conftest*
7595 ;;
7596 *-*-irix6*)
7597 # Find out what ABI is being produced by ac_compile, and set linker
7598 # options accordingly.
7599 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7601 (eval $ac_compile) 2>&5
7602 ac_status=$?
7603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7604 test $ac_status = 0; }; then
7605 if test yes = "$lt_cv_prog_gnu_ld"; then
7606 case `$FILECMD conftest.$ac_objext` in
7607 *32-bit*)
7608 LD="${LD-ld} -melf32bsmip"
7609 ;;
7610 *N32*)
7611 LD="${LD-ld} -melf32bmipn32"
7612 ;;
7613 *64-bit*)
7614 LD="${LD-ld} -melf64bmip"
7615 ;;
7616 esac
7617 else
7618 case `$FILECMD conftest.$ac_objext` in
7619 *32-bit*)
7620 LD="${LD-ld} -32"
7621 ;;
7622 *N32*)
7623 LD="${LD-ld} -n32"
7624 ;;
7625 *64-bit*)
7626 LD="${LD-ld} -64"
7627 ;;
7628 esac
7629 fi
7630 fi
7631 rm -rf conftest*
7632 ;;
7633
7634 mips64*-*linux*)
7635 # Find out what ABI is being produced by ac_compile, and set linker
7636 # options accordingly.
7637 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7639 (eval $ac_compile) 2>&5
7640 ac_status=$?
7641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642 test $ac_status = 0; }; then
7643 emul=elf
7644 case `$FILECMD conftest.$ac_objext` in
7645 *32-bit*)
7646 emul="${emul}32"
7647 ;;
7648 *64-bit*)
7649 emul="${emul}64"
7650 ;;
7651 esac
7652 case `$FILECMD conftest.$ac_objext` in
7653 *MSB*)
7654 emul="${emul}btsmip"
7655 ;;
7656 *LSB*)
7657 emul="${emul}ltsmip"
7658 ;;
7659 esac
7660 case `$FILECMD conftest.$ac_objext` in
7661 *N32*)
7662 emul="${emul}n32"
7663 ;;
7664 esac
7665 LD="${LD-ld} -m $emul"
7666 fi
7667 rm -rf conftest*
7668 ;;
7669
7670 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7671 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7672 # Find out what ABI is being produced by ac_compile, and set linker
7673 # options accordingly. Note that the listed cases only cover the
7674 # situations where additional linker options are needed (such as when
7675 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7676 # vice versa); the common cases where no linker options are needed do
7677 # not appear in the list.
7678 echo 'int i;' > conftest.$ac_ext
7679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7680 (eval $ac_compile) 2>&5
7681 ac_status=$?
7682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683 test $ac_status = 0; }; then
7684 case `$FILECMD conftest.o` in
7685 *32-bit*)
7686 case $host in
7687 x86_64-*kfreebsd*-gnu)
7688 LD="${LD-ld} -m elf_i386_fbsd"
7689 ;;
7690 x86_64-*linux*)
7691 case `$FILECMD conftest.o` in
7692 *x86-64*)
7693 LD="${LD-ld} -m elf32_x86_64"
7694 ;;
7695 *)
7696 LD="${LD-ld} -m elf_i386"
7697 ;;
7698 esac
7699 ;;
7700 powerpc64le-*linux*)
7701 LD="${LD-ld} -m elf32lppclinux"
7702 ;;
7703 powerpc64-*linux*)
7704 LD="${LD-ld} -m elf32ppclinux"
7705 ;;
7706 s390x-*linux*)
7707 LD="${LD-ld} -m elf_s390"
7708 ;;
7709 sparc64-*linux*)
7710 LD="${LD-ld} -m elf32_sparc"
7711 ;;
7712 esac
7713 ;;
7714 *64-bit*)
7715 case $host in
7716 x86_64-*kfreebsd*-gnu)
7717 LD="${LD-ld} -m elf_x86_64_fbsd"
7718 ;;
7719 x86_64-*linux*)
7720 LD="${LD-ld} -m elf_x86_64"
7721 ;;
7722 powerpcle-*linux*)
7723 LD="${LD-ld} -m elf64lppc"
7724 ;;
7725 powerpc-*linux*)
7726 LD="${LD-ld} -m elf64ppc"
7727 ;;
7728 s390*-*linux*|s390*-*tpf*)
7729 LD="${LD-ld} -m elf64_s390"
7730 ;;
7731 sparc*-*linux*)
7732 LD="${LD-ld} -m elf64_sparc"
7733 ;;
7734 esac
7735 ;;
7736 esac
7737 fi
7738 rm -rf conftest*
7739 ;;
7740
7741 *-*-sco3.2v5*)
7742 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7743 SAVE_CFLAGS=$CFLAGS
7744 CFLAGS="$CFLAGS -belf"
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7746 printf %s "checking whether the C compiler needs -belf... " >&6; }
7747 if test ${lt_cv_cc_needs_belf+y}
7748 then :
7749 printf %s "(cached) " >&6
7750 else case e in #(
7751 e) ac_ext=c
7752 ac_cpp='$CPP $CPPFLAGS'
7753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759
7760 int
7761 main (void)
7762 {
7763
7764 ;
7765 return 0;
7766 }
7767 _ACEOF
7768 if ac_fn_c_try_link "$LINENO"
7769 then :
7770 lt_cv_cc_needs_belf=yes
7771 else case e in #(
7772 e) lt_cv_cc_needs_belf=no ;;
7773 esac
7774 fi
7775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7776 conftest$ac_exeext conftest.$ac_ext
7777 ac_ext=c
7778 ac_cpp='$CPP $CPPFLAGS'
7779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7782 ;;
7783 esac
7784 fi
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7786 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7787 if test yes != "$lt_cv_cc_needs_belf"; then
7788 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7789 CFLAGS=$SAVE_CFLAGS
7790 fi
7791 ;;
7792 *-*solaris*)
7793 # Find out what ABI is being produced by ac_compile, and set linker
7794 # options accordingly.
7795 echo 'int i;' > conftest.$ac_ext
7796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7797 (eval $ac_compile) 2>&5
7798 ac_status=$?
7799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800 test $ac_status = 0; }; then
7801 case `$FILECMD conftest.o` in
7802 *64-bit*)
7803 case $lt_cv_prog_gnu_ld in
7804 yes*)
7805 case $host in
7806 i?86-*-solaris*|x86_64-*-solaris*)
7807 LD="${LD-ld} -m elf_x86_64"
7808 ;;
7809 sparc*-*-solaris*)
7810 LD="${LD-ld} -m elf64_sparc"
7811 ;;
7812 esac
7813 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7814 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7815 LD=${LD-ld}_sol2
7816 fi
7817 ;;
7818 *)
7819 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7820 LD="${LD-ld} -64"
7821 fi
7822 ;;
7823 esac
7824 ;;
7825 esac
7826 fi
7827 rm -rf conftest*
7828 ;;
7829 esac
7830
7831 need_locks=$enable_libtool_lock
7832
7833 if test -n "$ac_tool_prefix"; then
7834 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7835 set dummy ${ac_tool_prefix}mt; ac_word=$2
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 printf %s "checking for $ac_word... " >&6; }
7838 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7839 then :
7840 printf %s "(cached) " >&6
7841 else case e in #(
7842 e) if test -n "$MANIFEST_TOOL"; then
7843 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848 IFS=$as_save_IFS
7849 case $as_dir in #(((
7850 '') as_dir=./ ;;
7851 */) ;;
7852 *) as_dir=$as_dir/ ;;
7853 esac
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7856 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860 done
7861 done
7862 IFS=$as_save_IFS
7863
7864 fi ;;
7865 esac
7866 fi
7867 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7868 if test -n "$MANIFEST_TOOL"; then
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7870 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7871 else
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 printf "%s\n" "no" >&6; }
7874 fi
7875
7876
7877 fi
7878 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7879 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7880 # Extract the first word of "mt", so it can be a program name with args.
7881 set dummy mt; ac_word=$2
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 printf %s "checking for $ac_word... " >&6; }
7884 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7885 then :
7886 printf %s "(cached) " >&6
7887 else case e in #(
7888 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7889 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894 IFS=$as_save_IFS
7895 case $as_dir in #(((
7896 '') as_dir=./ ;;
7897 */) ;;
7898 *) as_dir=$as_dir/ ;;
7899 esac
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7902 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7904 break 2
7905 fi
7906 done
7907 done
7908 IFS=$as_save_IFS
7909
7910 fi ;;
7911 esac
7912 fi
7913 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7914 if test -n "$ac_ct_MANIFEST_TOOL"; then
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7916 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7917 else
7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 printf "%s\n" "no" >&6; }
7920 fi
7921
7922 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7923 MANIFEST_TOOL=":"
7924 else
7925 case $cross_compiling:$ac_tool_warned in
7926 yes:)
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7928 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929 ac_tool_warned=yes ;;
7930 esac
7931 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7932 fi
7933 else
7934 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7935 fi
7936
7937 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7939 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7940 if test ${lt_cv_path_mainfest_tool+y}
7941 then :
7942 printf %s "(cached) " >&6
7943 else case e in #(
7944 e) lt_cv_path_mainfest_tool=no
7945 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7946 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7947 cat conftest.err >&5
7948 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7949 lt_cv_path_mainfest_tool=yes
7950 fi
7951 rm -f conftest* ;;
7952 esac
7953 fi
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7955 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7956 if test yes != "$lt_cv_path_mainfest_tool"; then
7957 MANIFEST_TOOL=:
7958 fi
7959
7960
7961
7962
7963
7964
7965 case $host_os in
7966 rhapsody* | darwin*)
7967 if test -n "$ac_tool_prefix"; then
7968 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7969 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 printf %s "checking for $ac_word... " >&6; }
7972 if test ${ac_cv_prog_DSYMUTIL+y}
7973 then :
7974 printf %s "(cached) " >&6
7975 else case e in #(
7976 e) if test -n "$DSYMUTIL"; then
7977 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7978 else
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982 IFS=$as_save_IFS
7983 case $as_dir in #(((
7984 '') as_dir=./ ;;
7985 */) ;;
7986 *) as_dir=$as_dir/ ;;
7987 esac
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 fi ;;
7999 esac
8000 fi
8001 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8002 if test -n "$DSYMUTIL"; then
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8004 printf "%s\n" "$DSYMUTIL" >&6; }
8005 else
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 printf "%s\n" "no" >&6; }
8008 fi
8009
8010
8011 fi
8012 if test -z "$ac_cv_prog_DSYMUTIL"; then
8013 ac_ct_DSYMUTIL=$DSYMUTIL
8014 # Extract the first word of "dsymutil", so it can be a program name with args.
8015 set dummy dsymutil; ac_word=$2
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 printf %s "checking for $ac_word... " >&6; }
8018 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8019 then :
8020 printf %s "(cached) " >&6
8021 else case e in #(
8022 e) if test -n "$ac_ct_DSYMUTIL"; then
8023 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 case $as_dir in #(((
8030 '') as_dir=./ ;;
8031 */) ;;
8032 *) as_dir=$as_dir/ ;;
8033 esac
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040 done
8041 done
8042 IFS=$as_save_IFS
8043
8044 fi ;;
8045 esac
8046 fi
8047 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8048 if test -n "$ac_ct_DSYMUTIL"; then
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8050 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8051 else
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 printf "%s\n" "no" >&6; }
8054 fi
8055
8056 if test "x$ac_ct_DSYMUTIL" = x; then
8057 DSYMUTIL=":"
8058 else
8059 case $cross_compiling:$ac_tool_warned in
8060 yes:)
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8064 esac
8065 DSYMUTIL=$ac_ct_DSYMUTIL
8066 fi
8067 else
8068 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8069 fi
8070
8071 if test -n "$ac_tool_prefix"; then
8072 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 printf %s "checking for $ac_word... " >&6; }
8076 if test ${ac_cv_prog_NMEDIT+y}
8077 then :
8078 printf %s "(cached) " >&6
8079 else case e in #(
8080 e) if test -n "$NMEDIT"; then
8081 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086 IFS=$as_save_IFS
8087 case $as_dir in #(((
8088 '') as_dir=./ ;;
8089 */) ;;
8090 *) as_dir=$as_dir/ ;;
8091 esac
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8094 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098 done
8099 done
8100 IFS=$as_save_IFS
8101
8102 fi ;;
8103 esac
8104 fi
8105 NMEDIT=$ac_cv_prog_NMEDIT
8106 if test -n "$NMEDIT"; then
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8108 printf "%s\n" "$NMEDIT" >&6; }
8109 else
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 printf "%s\n" "no" >&6; }
8112 fi
8113
8114
8115 fi
8116 if test -z "$ac_cv_prog_NMEDIT"; then
8117 ac_ct_NMEDIT=$NMEDIT
8118 # Extract the first word of "nmedit", so it can be a program name with args.
8119 set dummy nmedit; ac_word=$2
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 printf %s "checking for $ac_word... " >&6; }
8122 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8123 then :
8124 printf %s "(cached) " >&6
8125 else case e in #(
8126 e) if test -n "$ac_ct_NMEDIT"; then
8127 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132 IFS=$as_save_IFS
8133 case $as_dir in #(((
8134 '') as_dir=./ ;;
8135 */) ;;
8136 *) as_dir=$as_dir/ ;;
8137 esac
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8142 break 2
8143 fi
8144 done
8145 done
8146 IFS=$as_save_IFS
8147
8148 fi ;;
8149 esac
8150 fi
8151 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8152 if test -n "$ac_ct_NMEDIT"; then
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8154 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8155 else
8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 printf "%s\n" "no" >&6; }
8158 fi
8159
8160 if test "x$ac_ct_NMEDIT" = x; then
8161 NMEDIT=":"
8162 else
8163 case $cross_compiling:$ac_tool_warned in
8164 yes:)
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8168 esac
8169 NMEDIT=$ac_ct_NMEDIT
8170 fi
8171 else
8172 NMEDIT="$ac_cv_prog_NMEDIT"
8173 fi
8174
8175 if test -n "$ac_tool_prefix"; then
8176 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 printf %s "checking for $ac_word... " >&6; }
8180 if test ${ac_cv_prog_LIPO+y}
8181 then :
8182 printf %s "(cached) " >&6
8183 else case e in #(
8184 e) if test -n "$LIPO"; then
8185 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190 IFS=$as_save_IFS
8191 case $as_dir in #(((
8192 '') as_dir=./ ;;
8193 */) ;;
8194 *) as_dir=$as_dir/ ;;
8195 esac
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8198 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8200 break 2
8201 fi
8202 done
8203 done
8204 IFS=$as_save_IFS
8205
8206 fi ;;
8207 esac
8208 fi
8209 LIPO=$ac_cv_prog_LIPO
8210 if test -n "$LIPO"; then
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8212 printf "%s\n" "$LIPO" >&6; }
8213 else
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 printf "%s\n" "no" >&6; }
8216 fi
8217
8218
8219 fi
8220 if test -z "$ac_cv_prog_LIPO"; then
8221 ac_ct_LIPO=$LIPO
8222 # Extract the first word of "lipo", so it can be a program name with args.
8223 set dummy lipo; ac_word=$2
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 printf %s "checking for $ac_word... " >&6; }
8226 if test ${ac_cv_prog_ac_ct_LIPO+y}
8227 then :
8228 printf %s "(cached) " >&6
8229 else case e in #(
8230 e) if test -n "$ac_ct_LIPO"; then
8231 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236 IFS=$as_save_IFS
8237 case $as_dir in #(((
8238 '') as_dir=./ ;;
8239 */) ;;
8240 *) as_dir=$as_dir/ ;;
8241 esac
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_ac_ct_LIPO="lipo"
8245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8246 break 2
8247 fi
8248 done
8249 done
8250 IFS=$as_save_IFS
8251
8252 fi ;;
8253 esac
8254 fi
8255 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8256 if test -n "$ac_ct_LIPO"; then
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8258 printf "%s\n" "$ac_ct_LIPO" >&6; }
8259 else
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 printf "%s\n" "no" >&6; }
8262 fi
8263
8264 if test "x$ac_ct_LIPO" = x; then
8265 LIPO=":"
8266 else
8267 case $cross_compiling:$ac_tool_warned in
8268 yes:)
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8270 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8271 ac_tool_warned=yes ;;
8272 esac
8273 LIPO=$ac_ct_LIPO
8274 fi
8275 else
8276 LIPO="$ac_cv_prog_LIPO"
8277 fi
8278
8279 if test -n "$ac_tool_prefix"; then
8280 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8281 set dummy ${ac_tool_prefix}otool; ac_word=$2
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 printf %s "checking for $ac_word... " >&6; }
8284 if test ${ac_cv_prog_OTOOL+y}
8285 then :
8286 printf %s "(cached) " >&6
8287 else case e in #(
8288 e) if test -n "$OTOOL"; then
8289 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8293 do
8294 IFS=$as_save_IFS
8295 case $as_dir in #(((
8296 '') as_dir=./ ;;
8297 */) ;;
8298 *) as_dir=$as_dir/ ;;
8299 esac
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8304 break 2
8305 fi
8306 done
8307 done
8308 IFS=$as_save_IFS
8309
8310 fi ;;
8311 esac
8312 fi
8313 OTOOL=$ac_cv_prog_OTOOL
8314 if test -n "$OTOOL"; then
8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8316 printf "%s\n" "$OTOOL" >&6; }
8317 else
8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 printf "%s\n" "no" >&6; }
8320 fi
8321
8322
8323 fi
8324 if test -z "$ac_cv_prog_OTOOL"; then
8325 ac_ct_OTOOL=$OTOOL
8326 # Extract the first word of "otool", so it can be a program name with args.
8327 set dummy otool; ac_word=$2
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 printf %s "checking for $ac_word... " >&6; }
8330 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8331 then :
8332 printf %s "(cached) " >&6
8333 else case e in #(
8334 e) if test -n "$ac_ct_OTOOL"; then
8335 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8336 else
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8339 do
8340 IFS=$as_save_IFS
8341 case $as_dir in #(((
8342 '') as_dir=./ ;;
8343 */) ;;
8344 *) as_dir=$as_dir/ ;;
8345 esac
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8348 ac_cv_prog_ac_ct_OTOOL="otool"
8349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8350 break 2
8351 fi
8352 done
8353 done
8354 IFS=$as_save_IFS
8355
8356 fi ;;
8357 esac
8358 fi
8359 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8360 if test -n "$ac_ct_OTOOL"; then
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8362 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8363 else
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 printf "%s\n" "no" >&6; }
8366 fi
8367
8368 if test "x$ac_ct_OTOOL" = x; then
8369 OTOOL=":"
8370 else
8371 case $cross_compiling:$ac_tool_warned in
8372 yes:)
8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8374 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8375 ac_tool_warned=yes ;;
8376 esac
8377 OTOOL=$ac_ct_OTOOL
8378 fi
8379 else
8380 OTOOL="$ac_cv_prog_OTOOL"
8381 fi
8382
8383 if test -n "$ac_tool_prefix"; then
8384 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8385 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 printf %s "checking for $ac_word... " >&6; }
8388 if test ${ac_cv_prog_OTOOL64+y}
8389 then :
8390 printf %s "(cached) " >&6
8391 else case e in #(
8392 e) if test -n "$OTOOL64"; then
8393 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8394 else
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398 IFS=$as_save_IFS
8399 case $as_dir in #(((
8400 '') as_dir=./ ;;
8401 */) ;;
8402 *) as_dir=$as_dir/ ;;
8403 esac
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8406 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8408 break 2
8409 fi
8410 done
8411 done
8412 IFS=$as_save_IFS
8413
8414 fi ;;
8415 esac
8416 fi
8417 OTOOL64=$ac_cv_prog_OTOOL64
8418 if test -n "$OTOOL64"; then
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8420 printf "%s\n" "$OTOOL64" >&6; }
8421 else
8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 printf "%s\n" "no" >&6; }
8424 fi
8425
8426
8427 fi
8428 if test -z "$ac_cv_prog_OTOOL64"; then
8429 ac_ct_OTOOL64=$OTOOL64
8430 # Extract the first word of "otool64", so it can be a program name with args.
8431 set dummy otool64; ac_word=$2
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 printf %s "checking for $ac_word... " >&6; }
8434 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8435 then :
8436 printf %s "(cached) " >&6
8437 else case e in #(
8438 e) if test -n "$ac_ct_OTOOL64"; then
8439 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444 IFS=$as_save_IFS
8445 case $as_dir in #(((
8446 '') as_dir=./ ;;
8447 */) ;;
8448 *) as_dir=$as_dir/ ;;
8449 esac
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8452 ac_cv_prog_ac_ct_OTOOL64="otool64"
8453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8454 break 2
8455 fi
8456 done
8457 done
8458 IFS=$as_save_IFS
8459
8460 fi ;;
8461 esac
8462 fi
8463 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8464 if test -n "$ac_ct_OTOOL64"; then
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8466 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8467 else
8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 printf "%s\n" "no" >&6; }
8470 fi
8471
8472 if test "x$ac_ct_OTOOL64" = x; then
8473 OTOOL64=":"
8474 else
8475 case $cross_compiling:$ac_tool_warned in
8476 yes:)
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8478 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8479 ac_tool_warned=yes ;;
8480 esac
8481 OTOOL64=$ac_ct_OTOOL64
8482 fi
8483 else
8484 OTOOL64="$ac_cv_prog_OTOOL64"
8485 fi
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8514 printf %s "checking for -single_module linker flag... " >&6; }
8515 if test ${lt_cv_apple_cc_single_mod+y}
8516 then :
8517 printf %s "(cached) " >&6
8518 else case e in #(
8519 e) lt_cv_apple_cc_single_mod=no
8520 if test -z "$LT_MULTI_MODULE"; then
8521 # By default we will add the -single_module flag. You can override
8522 # by either setting the environment variable LT_MULTI_MODULE
8523 # non-empty at configure time, or by adding -multi_module to the
8524 # link flags.
8525 rm -rf libconftest.dylib*
8526 echo "int foo(void){return 1;}" > conftest.c
8527 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8528 -dynamiclib -Wl,-single_module conftest.c" >&5
8529 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8530 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8531 _lt_result=$?
8532 # If there is a non-empty error log, and "single_module"
8533 # appears in it, assume the flag caused a linker warning
8534 if test -s conftest.err && $GREP single_module conftest.err; then
8535 cat conftest.err >&5
8536 # Otherwise, if the output was created with a 0 exit code from
8537 # the compiler, it worked.
8538 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8539 lt_cv_apple_cc_single_mod=yes
8540 else
8541 cat conftest.err >&5
8542 fi
8543 rm -rf libconftest.dylib*
8544 rm -f conftest.*
8545 fi ;;
8546 esac
8547 fi
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8549 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8550
8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8552 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8553 if test ${lt_cv_ld_exported_symbols_list+y}
8554 then :
8555 printf %s "(cached) " >&6
8556 else case e in #(
8557 e) lt_cv_ld_exported_symbols_list=no
8558 save_LDFLAGS=$LDFLAGS
8559 echo "_main" > conftest.sym
8560 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563
8564 int
8565 main (void)
8566 {
8567
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_link "$LINENO"
8573 then :
8574 lt_cv_ld_exported_symbols_list=yes
8575 else case e in #(
8576 e) lt_cv_ld_exported_symbols_list=no ;;
8577 esac
8578 fi
8579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8580 conftest$ac_exeext conftest.$ac_ext
8581 LDFLAGS=$save_LDFLAGS
8582 ;;
8583 esac
8584 fi
8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8586 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8587
8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8589 printf %s "checking for -force_load linker flag... " >&6; }
8590 if test ${lt_cv_ld_force_load+y}
8591 then :
8592 printf %s "(cached) " >&6
8593 else case e in #(
8594 e) lt_cv_ld_force_load=no
8595 cat > conftest.c << _LT_EOF
8596 int forced_loaded() { return 2;}
8597 _LT_EOF
8598 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8599 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8600 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8601 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8602 echo "$RANLIB libconftest.a" >&5
8603 $RANLIB libconftest.a 2>&5
8604 cat > conftest.c << _LT_EOF
8605 int main() { return 0;}
8606 _LT_EOF
8607 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8608 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8609 _lt_result=$?
8610 if test -s conftest.err && $GREP force_load conftest.err; then
8611 cat conftest.err >&5
8612 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8613 lt_cv_ld_force_load=yes
8614 else
8615 cat conftest.err >&5
8616 fi
8617 rm -f conftest.err libconftest.a conftest conftest.c
8618 rm -rf conftest.dSYM
8619 ;;
8620 esac
8621 fi
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8623 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8624 case $host_os in
8625 rhapsody* | darwin1.[012])
8626 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8627 darwin1.*)
8628 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8629 darwin*)
8630 case $MACOSX_DEPLOYMENT_TARGET,$host in
8631 10.[012],*|,*powerpc*-darwin[5-8]*)
8632 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8633 *)
8634 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8635 esac
8636 ;;
8637 esac
8638 if test yes = "$lt_cv_apple_cc_single_mod"; then
8639 _lt_dar_single_mod='$single_module'
8640 fi
8641 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8642 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8643 else
8644 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8645 fi
8646 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8647 _lt_dsymutil='~$DSYMUTIL $lib || :'
8648 else
8649 _lt_dsymutil=
8650 fi
8651 ;;
8652 esac
8653
8654 # func_munge_path_list VARIABLE PATH
8655 # -----------------------------------
8656 # VARIABLE is name of variable containing _space_ separated list of
8657 # directories to be munged by the contents of PATH, which is string
8658 # having a format:
8659 # "DIR[:DIR]:"
8660 # string "DIR[ DIR]" will be prepended to VARIABLE
8661 # ":DIR[:DIR]"
8662 # string "DIR[ DIR]" will be appended to VARIABLE
8663 # "DIRP[:DIRP]::[DIRA:]DIRA"
8664 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8665 # "DIRA[ DIRA]" will be appended to VARIABLE
8666 # "DIR[:DIR]"
8667 # VARIABLE will be replaced by "DIR[ DIR]"
8668 func_munge_path_list ()
8669 {
8670 case x$2 in
8671 x)
8672 ;;
8673 *:)
8674 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8675 ;;
8676 x:*)
8677 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8678 ;;
8679 *::*)
8680 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8681 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8682 ;;
8683 *)
8684 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8685 ;;
8686 esac
8687 }
8688
8689 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8690 "
8691 if test "x$ac_cv_header_dlfcn_h" = xyes
8692 then :
8693 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8694
8695 fi
8696
8697
8698
8699
8700
8701 # Set options
8702 enable_win32_dll=yes
8703
8704 case $host in
8705 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8706 if test -n "$ac_tool_prefix"; then
8707 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8708 set dummy ${ac_tool_prefix}as; ac_word=$2
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710 printf %s "checking for $ac_word... " >&6; }
8711 if test ${ac_cv_prog_AS+y}
8712 then :
8713 printf %s "(cached) " >&6
8714 else case e in #(
8715 e) if test -n "$AS"; then
8716 ac_cv_prog_AS="$AS" # Let the user override the test.
8717 else
8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719 for as_dir in $PATH
8720 do
8721 IFS=$as_save_IFS
8722 case $as_dir in #(((
8723 '') as_dir=./ ;;
8724 */) ;;
8725 *) as_dir=$as_dir/ ;;
8726 esac
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8729 ac_cv_prog_AS="${ac_tool_prefix}as"
8730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8731 break 2
8732 fi
8733 done
8734 done
8735 IFS=$as_save_IFS
8736
8737 fi ;;
8738 esac
8739 fi
8740 AS=$ac_cv_prog_AS
8741 if test -n "$AS"; then
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8743 printf "%s\n" "$AS" >&6; }
8744 else
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 printf "%s\n" "no" >&6; }
8747 fi
8748
8749
8750 fi
8751 if test -z "$ac_cv_prog_AS"; then
8752 ac_ct_AS=$AS
8753 # Extract the first word of "as", so it can be a program name with args.
8754 set dummy as; ac_word=$2
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756 printf %s "checking for $ac_word... " >&6; }
8757 if test ${ac_cv_prog_ac_ct_AS+y}
8758 then :
8759 printf %s "(cached) " >&6
8760 else case e in #(
8761 e) if test -n "$ac_ct_AS"; then
8762 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8763 else
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8766 do
8767 IFS=$as_save_IFS
8768 case $as_dir in #(((
8769 '') as_dir=./ ;;
8770 */) ;;
8771 *) as_dir=$as_dir/ ;;
8772 esac
8773 for ac_exec_ext in '' $ac_executable_extensions; do
8774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8775 ac_cv_prog_ac_ct_AS="as"
8776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8777 break 2
8778 fi
8779 done
8780 done
8781 IFS=$as_save_IFS
8782
8783 fi ;;
8784 esac
8785 fi
8786 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8787 if test -n "$ac_ct_AS"; then
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8789 printf "%s\n" "$ac_ct_AS" >&6; }
8790 else
8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 printf "%s\n" "no" >&6; }
8793 fi
8794
8795 if test "x$ac_ct_AS" = x; then
8796 AS="false"
8797 else
8798 case $cross_compiling:$ac_tool_warned in
8799 yes:)
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8801 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8802 ac_tool_warned=yes ;;
8803 esac
8804 AS=$ac_ct_AS
8805 fi
8806 else
8807 AS="$ac_cv_prog_AS"
8808 fi
8809
8810 if test -n "$ac_tool_prefix"; then
8811 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8812 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 printf %s "checking for $ac_word... " >&6; }
8815 if test ${ac_cv_prog_DLLTOOL+y}
8816 then :
8817 printf %s "(cached) " >&6
8818 else case e in #(
8819 e) if test -n "$DLLTOOL"; then
8820 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8821 else
8822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823 for as_dir in $PATH
8824 do
8825 IFS=$as_save_IFS
8826 case $as_dir in #(((
8827 '') as_dir=./ ;;
8828 */) ;;
8829 *) as_dir=$as_dir/ ;;
8830 esac
8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8833 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8835 break 2
8836 fi
8837 done
8838 done
8839 IFS=$as_save_IFS
8840
8841 fi ;;
8842 esac
8843 fi
8844 DLLTOOL=$ac_cv_prog_DLLTOOL
8845 if test -n "$DLLTOOL"; then
8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8847 printf "%s\n" "$DLLTOOL" >&6; }
8848 else
8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 printf "%s\n" "no" >&6; }
8851 fi
8852
8853
8854 fi
8855 if test -z "$ac_cv_prog_DLLTOOL"; then
8856 ac_ct_DLLTOOL=$DLLTOOL
8857 # Extract the first word of "dlltool", so it can be a program name with args.
8858 set dummy dlltool; ac_word=$2
8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860 printf %s "checking for $ac_word... " >&6; }
8861 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8862 then :
8863 printf %s "(cached) " >&6
8864 else case e in #(
8865 e) if test -n "$ac_ct_DLLTOOL"; then
8866 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8867 else
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8870 do
8871 IFS=$as_save_IFS
8872 case $as_dir in #(((
8873 '') as_dir=./ ;;
8874 */) ;;
8875 *) as_dir=$as_dir/ ;;
8876 esac
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8879 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8881 break 2
8882 fi
8883 done
8884 done
8885 IFS=$as_save_IFS
8886
8887 fi ;;
8888 esac
8889 fi
8890 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8891 if test -n "$ac_ct_DLLTOOL"; then
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8893 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8894 else
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 printf "%s\n" "no" >&6; }
8897 fi
8898
8899 if test "x$ac_ct_DLLTOOL" = x; then
8900 DLLTOOL="false"
8901 else
8902 case $cross_compiling:$ac_tool_warned in
8903 yes:)
8904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8906 ac_tool_warned=yes ;;
8907 esac
8908 DLLTOOL=$ac_ct_DLLTOOL
8909 fi
8910 else
8911 DLLTOOL="$ac_cv_prog_DLLTOOL"
8912 fi
8913
8914 if test -n "$ac_tool_prefix"; then
8915 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8916 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918 printf %s "checking for $ac_word... " >&6; }
8919 if test ${ac_cv_prog_OBJDUMP+y}
8920 then :
8921 printf %s "(cached) " >&6
8922 else case e in #(
8923 e) if test -n "$OBJDUMP"; then
8924 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8928 do
8929 IFS=$as_save_IFS
8930 case $as_dir in #(((
8931 '') as_dir=./ ;;
8932 */) ;;
8933 *) as_dir=$as_dir/ ;;
8934 esac
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8937 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8939 break 2
8940 fi
8941 done
8942 done
8943 IFS=$as_save_IFS
8944
8945 fi ;;
8946 esac
8947 fi
8948 OBJDUMP=$ac_cv_prog_OBJDUMP
8949 if test -n "$OBJDUMP"; then
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8951 printf "%s\n" "$OBJDUMP" >&6; }
8952 else
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 printf "%s\n" "no" >&6; }
8955 fi
8956
8957
8958 fi
8959 if test -z "$ac_cv_prog_OBJDUMP"; then
8960 ac_ct_OBJDUMP=$OBJDUMP
8961 # Extract the first word of "objdump", so it can be a program name with args.
8962 set dummy objdump; ac_word=$2
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 printf %s "checking for $ac_word... " >&6; }
8965 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8966 then :
8967 printf %s "(cached) " >&6
8968 else case e in #(
8969 e) if test -n "$ac_ct_OBJDUMP"; then
8970 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8971 else
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8974 do
8975 IFS=$as_save_IFS
8976 case $as_dir in #(((
8977 '') as_dir=./ ;;
8978 */) ;;
8979 *) as_dir=$as_dir/ ;;
8980 esac
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8983 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8985 break 2
8986 fi
8987 done
8988 done
8989 IFS=$as_save_IFS
8990
8991 fi ;;
8992 esac
8993 fi
8994 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8995 if test -n "$ac_ct_OBJDUMP"; then
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8997 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8998 else
8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 printf "%s\n" "no" >&6; }
9001 fi
9002
9003 if test "x$ac_ct_OBJDUMP" = x; then
9004 OBJDUMP="false"
9005 else
9006 case $cross_compiling:$ac_tool_warned in
9007 yes:)
9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9009 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9010 ac_tool_warned=yes ;;
9011 esac
9012 OBJDUMP=$ac_ct_OBJDUMP
9013 fi
9014 else
9015 OBJDUMP="$ac_cv_prog_OBJDUMP"
9016 fi
9017
9018 ;;
9019 esac
9020
9021 test -z "$AS" && AS=as
9022
9023
9024
9025
9026
9027 test -z "$DLLTOOL" && DLLTOOL=dlltool
9028
9029
9030
9031
9032
9033 test -z "$OBJDUMP" && OBJDUMP=objdump
9034
9035
9036
9037
9038
9039
9040
9041 enable_dlopen=no
9042
9043
9044
9045 # Check whether --enable-shared was given.
9046 if test ${enable_shared+y}
9047 then :
9048 enableval=$enable_shared; p=${PACKAGE-default}
9049 case $enableval in
9050 yes) enable_shared=yes ;;
9051 no) enable_shared=no ;;
9052 *)
9053 enable_shared=no
9054 # Look at the argument we got. We use all the common list separators.
9055 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9056 for pkg in $enableval; do
9057 IFS=$lt_save_ifs
9058 if test "X$pkg" = "X$p"; then
9059 enable_shared=yes
9060 fi
9061 done
9062 IFS=$lt_save_ifs
9063 ;;
9064 esac
9065 else case e in #(
9066 e) enable_shared=yes ;;
9067 esac
9068 fi
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078 # Check whether --enable-static was given.
9079 if test ${enable_static+y}
9080 then :
9081 enableval=$enable_static; p=${PACKAGE-default}
9082 case $enableval in
9083 yes) enable_static=yes ;;
9084 no) enable_static=no ;;
9085 *)
9086 enable_static=no
9087 # Look at the argument we got. We use all the common list separators.
9088 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9089 for pkg in $enableval; do
9090 IFS=$lt_save_ifs
9091 if test "X$pkg" = "X$p"; then
9092 enable_static=yes
9093 fi
9094 done
9095 IFS=$lt_save_ifs
9096 ;;
9097 esac
9098 else case e in #(
9099 e) enable_static=yes ;;
9100 esac
9101 fi
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112 # Check whether --with-pic was given.
9113 if test ${with_pic+y}
9114 then :
9115 withval=$with_pic; lt_p=${PACKAGE-default}
9116 case $withval in
9117 yes|no) pic_mode=$withval ;;
9118 *)
9119 pic_mode=default
9120 # Look at the argument we got. We use all the common list separators.
9121 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9122 for lt_pkg in $withval; do
9123 IFS=$lt_save_ifs
9124 if test "X$lt_pkg" = "X$lt_p"; then
9125 pic_mode=yes
9126 fi
9127 done
9128 IFS=$lt_save_ifs
9129 ;;
9130 esac
9131 else case e in #(
9132 e) pic_mode=default ;;
9133 esac
9134 fi
9135
9136
9137
9138
9139
9140
9141
9142
9143 # Check whether --enable-fast-install was given.
9144 if test ${enable_fast_install+y}
9145 then :
9146 enableval=$enable_fast_install; p=${PACKAGE-default}
9147 case $enableval in
9148 yes) enable_fast_install=yes ;;
9149 no) enable_fast_install=no ;;
9150 *)
9151 enable_fast_install=no
9152 # Look at the argument we got. We use all the common list separators.
9153 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9154 for pkg in $enableval; do
9155 IFS=$lt_save_ifs
9156 if test "X$pkg" = "X$p"; then
9157 enable_fast_install=yes
9158 fi
9159 done
9160 IFS=$lt_save_ifs
9161 ;;
9162 esac
9163 else case e in #(
9164 e) enable_fast_install=yes ;;
9165 esac
9166 fi
9167
9168
9169
9170
9171
9172
9173
9174
9175 shared_archive_member_spec=
9176 case $host,$enable_shared in
9177 power*-*-aix[5-9]*,yes)
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9179 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9180
9181 # Check whether --with-aix-soname was given.
9182 if test ${with_aix_soname+y}
9183 then :
9184 withval=$with_aix_soname; case $withval in
9185 aix|svr4|both)
9186 ;;
9187 *)
9188 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9189 ;;
9190 esac
9191 lt_cv_with_aix_soname=$with_aix_soname
9192 else case e in #(
9193 e) if test ${lt_cv_with_aix_soname+y}
9194 then :
9195 printf %s "(cached) " >&6
9196 else case e in #(
9197 e) lt_cv_with_aix_soname=aix ;;
9198 esac
9199 fi
9200
9201 with_aix_soname=$lt_cv_with_aix_soname ;;
9202 esac
9203 fi
9204
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9206 printf "%s\n" "$with_aix_soname" >&6; }
9207 if test aix != "$with_aix_soname"; then
9208 # For the AIX way of multilib, we name the shared archive member
9209 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9210 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9211 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9212 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9213 if test 64 = "${OBJECT_MODE-32}"; then
9214 shared_archive_member_spec=shr_64
9215 else
9216 shared_archive_member_spec=shr
9217 fi
9218 fi
9219 ;;
9220 *)
9221 with_aix_soname=aix
9222 ;;
9223 esac
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234 # This can be used to rebuild libtool when needed
9235 LIBTOOL_DEPS=$ltmain
9236
9237 # Always use our own libtool.
9238 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269 test -z "$LN_S" && LN_S="ln -s"
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284 if test -n "${ZSH_VERSION+set}"; then
9285 setopt NO_GLOB_SUBST
9286 fi
9287
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9289 printf %s "checking for objdir... " >&6; }
9290 if test ${lt_cv_objdir+y}
9291 then :
9292 printf %s "(cached) " >&6
9293 else case e in #(
9294 e) rm -f .libs 2>/dev/null
9295 mkdir .libs 2>/dev/null
9296 if test -d .libs; then
9297 lt_cv_objdir=.libs
9298 else
9299 # MS-DOS does not allow filenames that begin with a dot.
9300 lt_cv_objdir=_libs
9301 fi
9302 rmdir .libs 2>/dev/null ;;
9303 esac
9304 fi
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9306 printf "%s\n" "$lt_cv_objdir" >&6; }
9307 objdir=$lt_cv_objdir
9308
9309
9310
9311
9312
9313 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9314
9315
9316
9317
9318 case $host_os in
9319 aix3*)
9320 # AIX sometimes has problems with the GCC collect2 program. For some
9321 # reason, if we set the COLLECT_NAMES environment variable, the problems
9322 # vanish in a puff of smoke.
9323 if test set != "${COLLECT_NAMES+set}"; then
9324 COLLECT_NAMES=
9325 export COLLECT_NAMES
9326 fi
9327 ;;
9328 esac
9329
9330 # Global variables:
9331 ofile=libtool
9332 can_build_shared=yes
9333
9334 # All known linkers require a '.a' archive for static linking (except MSVC and
9335 # ICC, which need '.lib').
9336 libext=a
9337
9338 with_gnu_ld=$lt_cv_prog_gnu_ld
9339
9340 old_CC=$CC
9341 old_CFLAGS=$CFLAGS
9342
9343 # Set sane defaults for various variables
9344 test -z "$CC" && CC=cc
9345 test -z "$LTCC" && LTCC=$CC
9346 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9347 test -z "$LD" && LD=ld
9348 test -z "$ac_objext" && ac_objext=o
9349
9350 func_cc_basename $compiler
9351 cc_basename=$func_cc_basename_result
9352
9353
9354 # Only perform the check for file, if the check method requires it
9355 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9356 case $deplibs_check_method in
9357 file_magic*)
9358 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9360 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9361 if test ${lt_cv_path_MAGIC_CMD+y}
9362 then :
9363 printf %s "(cached) " >&6
9364 else case e in #(
9365 e) case $MAGIC_CMD in
9366 [\\/*] | ?:[\\/]*)
9367 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9368 ;;
9369 *)
9370 lt_save_MAGIC_CMD=$MAGIC_CMD
9371 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9372 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9373 for ac_dir in $ac_dummy; do
9374 IFS=$lt_save_ifs
9375 test -z "$ac_dir" && ac_dir=.
9376 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9377 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9378 if test -n "$file_magic_test_file"; then
9379 case $deplibs_check_method in
9380 "file_magic "*)
9381 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9382 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9383 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9384 $EGREP "$file_magic_regex" > /dev/null; then
9385 :
9386 else
9387 cat <<_LT_EOF 1>&2
9388
9389 *** Warning: the command libtool uses to detect shared libraries,
9390 *** $file_magic_cmd, produces output that libtool cannot recognize.
9391 *** The result is that libtool may fail to recognize shared libraries
9392 *** as such. This will affect the creation of libtool libraries that
9393 *** depend on shared libraries, but programs linked with such libtool
9394 *** libraries will work regardless of this problem. Nevertheless, you
9395 *** may want to report the problem to your system manager and/or to
9396 *** bug-libtool@gnu.org
9397
9398 _LT_EOF
9399 fi ;;
9400 esac
9401 fi
9402 break
9403 fi
9404 done
9405 IFS=$lt_save_ifs
9406 MAGIC_CMD=$lt_save_MAGIC_CMD
9407 ;;
9408 esac ;;
9409 esac
9410 fi
9411
9412 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9413 if test -n "$MAGIC_CMD"; then
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9415 printf "%s\n" "$MAGIC_CMD" >&6; }
9416 else
9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 printf "%s\n" "no" >&6; }
9419 fi
9420
9421
9422
9423
9424
9425 if test -z "$lt_cv_path_MAGIC_CMD"; then
9426 if test -n "$ac_tool_prefix"; then
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9428 printf %s "checking for file... " >&6; }
9429 if test ${lt_cv_path_MAGIC_CMD+y}
9430 then :
9431 printf %s "(cached) " >&6
9432 else case e in #(
9433 e) case $MAGIC_CMD in
9434 [\\/*] | ?:[\\/]*)
9435 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9436 ;;
9437 *)
9438 lt_save_MAGIC_CMD=$MAGIC_CMD
9439 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9440 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9441 for ac_dir in $ac_dummy; do
9442 IFS=$lt_save_ifs
9443 test -z "$ac_dir" && ac_dir=.
9444 if test -f "$ac_dir/file"; then
9445 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9446 if test -n "$file_magic_test_file"; then
9447 case $deplibs_check_method in
9448 "file_magic "*)
9449 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9450 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9451 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9452 $EGREP "$file_magic_regex" > /dev/null; then
9453 :
9454 else
9455 cat <<_LT_EOF 1>&2
9456
9457 *** Warning: the command libtool uses to detect shared libraries,
9458 *** $file_magic_cmd, produces output that libtool cannot recognize.
9459 *** The result is that libtool may fail to recognize shared libraries
9460 *** as such. This will affect the creation of libtool libraries that
9461 *** depend on shared libraries, but programs linked with such libtool
9462 *** libraries will work regardless of this problem. Nevertheless, you
9463 *** may want to report the problem to your system manager and/or to
9464 *** bug-libtool@gnu.org
9465
9466 _LT_EOF
9467 fi ;;
9468 esac
9469 fi
9470 break
9471 fi
9472 done
9473 IFS=$lt_save_ifs
9474 MAGIC_CMD=$lt_save_MAGIC_CMD
9475 ;;
9476 esac ;;
9477 esac
9478 fi
9479
9480 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9481 if test -n "$MAGIC_CMD"; then
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9483 printf "%s\n" "$MAGIC_CMD" >&6; }
9484 else
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 printf "%s\n" "no" >&6; }
9487 fi
9488
9489
9490 else
9491 MAGIC_CMD=:
9492 fi
9493 fi
9494
9495 fi
9496 ;;
9497 esac
9498
9499 # Use C for the default configuration in the libtool script
9500
9501 lt_save_CC=$CC
9502 ac_ext=c
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507
9508
9509 # Source file extension for C test sources.
9510 ac_ext=c
9511
9512 # Object file extension for compiled C test sources.
9513 objext=o
9514 objext=$objext
9515
9516 # Code to be used in simple compile tests
9517 lt_simple_compile_test_code="int some_variable = 0;"
9518
9519 # Code to be used in simple link tests
9520 lt_simple_link_test_code='int main(){return(0);}'
9521
9522
9523
9524
9525
9526
9527
9528 # If no C compiler was specified, use CC.
9529 LTCC=${LTCC-"$CC"}
9530
9531 # If no C compiler flags were specified, use CFLAGS.
9532 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9533
9534 # Allow CC to be a program name with arguments.
9535 compiler=$CC
9536
9537 # Save the default compiler, since it gets overwritten when the other
9538 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9539 compiler_DEFAULT=$CC
9540
9541 # save warnings/boilerplate of simple test code
9542 ac_outfile=conftest.$ac_objext
9543 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9545 _lt_compiler_boilerplate=`cat conftest.err`
9546 $RM conftest*
9547
9548 ac_outfile=conftest.$ac_objext
9549 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9550 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9551 _lt_linker_boilerplate=`cat conftest.err`
9552 $RM -r conftest*
9553
9554
9555 ## CAVEAT EMPTOR:
9556 ## There is no encapsulation within the following macros, do not change
9557 ## the running order or otherwise move them around unless you know exactly
9558 ## what you are doing...
9559 if test -n "$compiler"; then
9560
9561 lt_prog_compiler_no_builtin_flag=
9562
9563 if test yes = "$GCC"; then
9564 case $cc_basename in
9565 nvcc*)
9566 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9567 *)
9568 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9569 esac
9570
9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9572 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9573 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9574 then :
9575 printf %s "(cached) " >&6
9576 else case e in #(
9577 e) lt_cv_prog_compiler_rtti_exceptions=no
9578 ac_outfile=conftest.$ac_objext
9579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9580 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9581 # Insert the option either (1) after the last *FLAGS variable, or
9582 # (2) before a word containing "conftest.", or (3) at the end.
9583 # Note that $ac_compile itself does not contain backslashes and begins
9584 # with a dollar sign (not a hyphen), so the echo should work correctly.
9585 # The option is referenced via a variable to avoid confusing sed.
9586 lt_compile=`echo "$ac_compile" | $SED \
9587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9589 -e 's:$: $lt_compiler_flag:'`
9590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9591 (eval "$lt_compile" 2>conftest.err)
9592 ac_status=$?
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 if (exit $ac_status) && test -s "$ac_outfile"; then
9596 # The compiler can only warn and ignore the option if not recognized
9597 # So say no if there are warnings other than the usual output.
9598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9601 lt_cv_prog_compiler_rtti_exceptions=yes
9602 fi
9603 fi
9604 $RM conftest*
9605 ;;
9606 esac
9607 fi
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9609 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9610
9611 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9612 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9613 else
9614 :
9615 fi
9616
9617 fi
9618
9619
9620
9621
9622
9623
9624 lt_prog_compiler_wl=
9625 lt_prog_compiler_pic=
9626 lt_prog_compiler_static=
9627
9628
9629 if test yes = "$GCC"; then
9630 lt_prog_compiler_wl='-Wl,'
9631 lt_prog_compiler_static='-static'
9632
9633 case $host_os in
9634 aix*)
9635 # All AIX code is PIC.
9636 if test ia64 = "$host_cpu"; then
9637 # AIX 5 now supports IA64 processor
9638 lt_prog_compiler_static='-Bstatic'
9639 fi
9640 lt_prog_compiler_pic='-fPIC'
9641 ;;
9642
9643 amigaos*)
9644 case $host_cpu in
9645 powerpc)
9646 # see comment about AmigaOS4 .so support
9647 lt_prog_compiler_pic='-fPIC'
9648 ;;
9649 m68k)
9650 # FIXME: we need at least 68020 code to build shared libraries, but
9651 # adding the '-m68020' flag to GCC prevents building anything better,
9652 # like '-m68040'.
9653 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9654 ;;
9655 esac
9656 ;;
9657
9658 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9659 # PIC is the default for these OSes.
9660 ;;
9661
9662 mingw* | cygwin* | pw32* | os2* | cegcc*)
9663 # This hack is so that the source file can tell whether it is being
9664 # built for inclusion in a dll (and should export symbols for example).
9665 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9666 # (--disable-auto-import) libraries
9667 lt_prog_compiler_pic='-DDLL_EXPORT'
9668 case $host_os in
9669 os2*)
9670 lt_prog_compiler_static='$wl-static'
9671 ;;
9672 esac
9673 ;;
9674
9675 darwin* | rhapsody*)
9676 # PIC is the default on this platform
9677 # Common symbols not allowed in MH_DYLIB files
9678 lt_prog_compiler_pic='-fno-common'
9679 ;;
9680
9681 haiku*)
9682 # PIC is the default for Haiku.
9683 # The "-static" flag exists, but is broken.
9684 lt_prog_compiler_static=
9685 ;;
9686
9687 hpux*)
9688 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9689 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9690 # sets the default TLS model and affects inlining.
9691 case $host_cpu in
9692 hppa*64*)
9693 # +Z the default
9694 ;;
9695 *)
9696 lt_prog_compiler_pic='-fPIC'
9697 ;;
9698 esac
9699 ;;
9700
9701 interix[3-9]*)
9702 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9703 # Instead, we relocate shared libraries at runtime.
9704 ;;
9705
9706 msdosdjgpp*)
9707 # Just because we use GCC doesn't mean we suddenly get shared libraries
9708 # on systems that don't support them.
9709 lt_prog_compiler_can_build_shared=no
9710 enable_shared=no
9711 ;;
9712
9713 *nto* | *qnx*)
9714 # QNX uses GNU C++, but need to define -shared option too, otherwise
9715 # it will coredump.
9716 lt_prog_compiler_pic='-fPIC -shared'
9717 ;;
9718
9719 sysv4*MP*)
9720 if test -d /usr/nec; then
9721 lt_prog_compiler_pic=-Kconform_pic
9722 fi
9723 ;;
9724
9725 *)
9726 lt_prog_compiler_pic='-fPIC'
9727 ;;
9728 esac
9729
9730 case $cc_basename in
9731 nvcc*) # Cuda Compiler Driver 2.2
9732 lt_prog_compiler_wl='-Xlinker '
9733 if test -n "$lt_prog_compiler_pic"; then
9734 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9735 fi
9736 ;;
9737 esac
9738 else
9739 # PORTME Check for flag to pass linker flags through the system compiler.
9740 case $host_os in
9741 aix*)
9742 lt_prog_compiler_wl='-Wl,'
9743 if test ia64 = "$host_cpu"; then
9744 # AIX 5 now supports IA64 processor
9745 lt_prog_compiler_static='-Bstatic'
9746 else
9747 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9748 fi
9749 ;;
9750
9751 darwin* | rhapsody*)
9752 # PIC is the default on this platform
9753 # Common symbols not allowed in MH_DYLIB files
9754 lt_prog_compiler_pic='-fno-common'
9755 case $cc_basename in
9756 nagfor*)
9757 # NAG Fortran compiler
9758 lt_prog_compiler_wl='-Wl,-Wl,,'
9759 lt_prog_compiler_pic='-PIC'
9760 lt_prog_compiler_static='-Bstatic'
9761 ;;
9762 esac
9763 ;;
9764
9765 mingw* | cygwin* | pw32* | os2* | cegcc*)
9766 # This hack is so that the source file can tell whether it is being
9767 # built for inclusion in a dll (and should export symbols for example).
9768 lt_prog_compiler_pic='-DDLL_EXPORT'
9769 case $host_os in
9770 os2*)
9771 lt_prog_compiler_static='$wl-static'
9772 ;;
9773 esac
9774 ;;
9775
9776 hpux9* | hpux10* | hpux11*)
9777 lt_prog_compiler_wl='-Wl,'
9778 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9779 # not for PA HP-UX.
9780 case $host_cpu in
9781 hppa*64*|ia64*)
9782 # +Z the default
9783 ;;
9784 *)
9785 lt_prog_compiler_pic='+Z'
9786 ;;
9787 esac
9788 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9789 lt_prog_compiler_static='$wl-a ${wl}archive'
9790 ;;
9791
9792 irix5* | irix6* | nonstopux*)
9793 lt_prog_compiler_wl='-Wl,'
9794 # PIC (with -KPIC) is the default.
9795 lt_prog_compiler_static='-non_shared'
9796 ;;
9797
9798 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9799 case $cc_basename in
9800 # old Intel for x86_64, which still supported -KPIC.
9801 ecc*)
9802 lt_prog_compiler_wl='-Wl,'
9803 lt_prog_compiler_pic='-KPIC'
9804 lt_prog_compiler_static='-static'
9805 ;;
9806 # icc used to be incompatible with GCC.
9807 # ICC 10 doesn't accept -KPIC any more.
9808 icc* | ifort*)
9809 lt_prog_compiler_wl='-Wl,'
9810 lt_prog_compiler_pic='-fPIC'
9811 lt_prog_compiler_static='-static'
9812 ;;
9813 # Lahey Fortran 8.1.
9814 lf95*)
9815 lt_prog_compiler_wl='-Wl,'
9816 lt_prog_compiler_pic='--shared'
9817 lt_prog_compiler_static='--static'
9818 ;;
9819 nagfor*)
9820 # NAG Fortran compiler
9821 lt_prog_compiler_wl='-Wl,-Wl,,'
9822 lt_prog_compiler_pic='-PIC'
9823 lt_prog_compiler_static='-Bstatic'
9824 ;;
9825 tcc*)
9826 # Fabrice Bellard et al's Tiny C Compiler
9827 lt_prog_compiler_wl='-Wl,'
9828 lt_prog_compiler_pic='-fPIC'
9829 lt_prog_compiler_static='-static'
9830 ;;
9831 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9832 # Portland Group compilers (*not* the Pentium gcc compiler,
9833 # which looks to be a dead project)
9834 lt_prog_compiler_wl='-Wl,'
9835 lt_prog_compiler_pic='-fpic'
9836 lt_prog_compiler_static='-Bstatic'
9837 ;;
9838 ccc*)
9839 lt_prog_compiler_wl='-Wl,'
9840 # All Alpha code is PIC.
9841 lt_prog_compiler_static='-non_shared'
9842 ;;
9843 xl* | bgxl* | bgf* | mpixl*)
9844 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9845 lt_prog_compiler_wl='-Wl,'
9846 lt_prog_compiler_pic='-qpic'
9847 lt_prog_compiler_static='-qstaticlink'
9848 ;;
9849 *)
9850 case `$CC -V 2>&1 | $SED 5q` in
9851 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9852 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9853 lt_prog_compiler_pic='-KPIC'
9854 lt_prog_compiler_static='-Bstatic'
9855 lt_prog_compiler_wl=''
9856 ;;
9857 *Sun\ F* | *Sun*Fortran*)
9858 lt_prog_compiler_pic='-KPIC'
9859 lt_prog_compiler_static='-Bstatic'
9860 lt_prog_compiler_wl='-Qoption ld '
9861 ;;
9862 *Sun\ C*)
9863 # Sun C 5.9
9864 lt_prog_compiler_pic='-KPIC'
9865 lt_prog_compiler_static='-Bstatic'
9866 lt_prog_compiler_wl='-Wl,'
9867 ;;
9868 *Intel*\ [CF]*Compiler*)
9869 lt_prog_compiler_wl='-Wl,'
9870 lt_prog_compiler_pic='-fPIC'
9871 lt_prog_compiler_static='-static'
9872 ;;
9873 *Portland\ Group*)
9874 lt_prog_compiler_wl='-Wl,'
9875 lt_prog_compiler_pic='-fpic'
9876 lt_prog_compiler_static='-Bstatic'
9877 ;;
9878 esac
9879 ;;
9880 esac
9881 ;;
9882
9883 newsos6)
9884 lt_prog_compiler_pic='-KPIC'
9885 lt_prog_compiler_static='-Bstatic'
9886 ;;
9887
9888 *nto* | *qnx*)
9889 # QNX uses GNU C++, but need to define -shared option too, otherwise
9890 # it will coredump.
9891 lt_prog_compiler_pic='-fPIC -shared'
9892 ;;
9893
9894 osf3* | osf4* | osf5*)
9895 lt_prog_compiler_wl='-Wl,'
9896 # All OSF/1 code is PIC.
9897 lt_prog_compiler_static='-non_shared'
9898 ;;
9899
9900 rdos*)
9901 lt_prog_compiler_static='-non_shared'
9902 ;;
9903
9904 solaris*)
9905 lt_prog_compiler_pic='-KPIC'
9906 lt_prog_compiler_static='-Bstatic'
9907 case $cc_basename in
9908 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9909 lt_prog_compiler_wl='-Qoption ld ';;
9910 *)
9911 lt_prog_compiler_wl='-Wl,';;
9912 esac
9913 ;;
9914
9915 sunos4*)
9916 lt_prog_compiler_wl='-Qoption ld '
9917 lt_prog_compiler_pic='-PIC'
9918 lt_prog_compiler_static='-Bstatic'
9919 ;;
9920
9921 sysv4 | sysv4.2uw2* | sysv4.3*)
9922 lt_prog_compiler_wl='-Wl,'
9923 lt_prog_compiler_pic='-KPIC'
9924 lt_prog_compiler_static='-Bstatic'
9925 ;;
9926
9927 sysv4*MP*)
9928 if test -d /usr/nec; then
9929 lt_prog_compiler_pic='-Kconform_pic'
9930 lt_prog_compiler_static='-Bstatic'
9931 fi
9932 ;;
9933
9934 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9935 lt_prog_compiler_wl='-Wl,'
9936 lt_prog_compiler_pic='-KPIC'
9937 lt_prog_compiler_static='-Bstatic'
9938 ;;
9939
9940 unicos*)
9941 lt_prog_compiler_wl='-Wl,'
9942 lt_prog_compiler_can_build_shared=no
9943 ;;
9944
9945 uts4*)
9946 lt_prog_compiler_pic='-pic'
9947 lt_prog_compiler_static='-Bstatic'
9948 ;;
9949
9950 *)
9951 lt_prog_compiler_can_build_shared=no
9952 ;;
9953 esac
9954 fi
9955
9956 case $host_os in
9957 # For platforms that do not support PIC, -DPIC is meaningless:
9958 *djgpp*)
9959 lt_prog_compiler_pic=
9960 ;;
9961 *)
9962 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9963 ;;
9964 esac
9965
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9967 printf %s "checking for $compiler option to produce PIC... " >&6; }
9968 if test ${lt_cv_prog_compiler_pic+y}
9969 then :
9970 printf %s "(cached) " >&6
9971 else case e in #(
9972 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9973 esac
9974 fi
9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9976 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9977 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9978
9979 #
9980 # Check to make sure the PIC flag actually works.
9981 #
9982 if test -n "$lt_prog_compiler_pic"; then
9983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9984 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9985 if test ${lt_cv_prog_compiler_pic_works+y}
9986 then :
9987 printf %s "(cached) " >&6
9988 else case e in #(
9989 e) lt_cv_prog_compiler_pic_works=no
9990 ac_outfile=conftest.$ac_objext
9991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9992 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9993 # Insert the option either (1) after the last *FLAGS variable, or
9994 # (2) before a word containing "conftest.", or (3) at the end.
9995 # Note that $ac_compile itself does not contain backslashes and begins
9996 # with a dollar sign (not a hyphen), so the echo should work correctly.
9997 # The option is referenced via a variable to avoid confusing sed.
9998 lt_compile=`echo "$ac_compile" | $SED \
9999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10001 -e 's:$: $lt_compiler_flag:'`
10002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10003 (eval "$lt_compile" 2>conftest.err)
10004 ac_status=$?
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 if (exit $ac_status) && test -s "$ac_outfile"; then
10008 # The compiler can only warn and ignore the option if not recognized
10009 # So say no if there are warnings other than the usual output.
10010 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10013 lt_cv_prog_compiler_pic_works=yes
10014 fi
10015 fi
10016 $RM conftest*
10017 ;;
10018 esac
10019 fi
10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10021 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10022
10023 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10024 case $lt_prog_compiler_pic in
10025 "" | " "*) ;;
10026 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10027 esac
10028 else
10029 lt_prog_compiler_pic=
10030 lt_prog_compiler_can_build_shared=no
10031 fi
10032
10033 fi
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045 #
10046 # Check to make sure the static flag actually works.
10047 #
10048 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10050 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10051 if test ${lt_cv_prog_compiler_static_works+y}
10052 then :
10053 printf %s "(cached) " >&6
10054 else case e in #(
10055 e) lt_cv_prog_compiler_static_works=no
10056 save_LDFLAGS=$LDFLAGS
10057 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10058 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10060 # The linker can only warn and ignore the option if not recognized
10061 # So say no if there are warnings
10062 if test -s conftest.err; then
10063 # Append any errors to the config.log.
10064 cat conftest.err 1>&5
10065 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10067 if diff conftest.exp conftest.er2 >/dev/null; then
10068 lt_cv_prog_compiler_static_works=yes
10069 fi
10070 else
10071 lt_cv_prog_compiler_static_works=yes
10072 fi
10073 fi
10074 $RM -r conftest*
10075 LDFLAGS=$save_LDFLAGS
10076 ;;
10077 esac
10078 fi
10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10080 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10081
10082 if test yes = "$lt_cv_prog_compiler_static_works"; then
10083 :
10084 else
10085 lt_prog_compiler_static=
10086 fi
10087
10088
10089
10090
10091
10092
10093
10094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10095 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10096 if test ${lt_cv_prog_compiler_c_o+y}
10097 then :
10098 printf %s "(cached) " >&6
10099 else case e in #(
10100 e) lt_cv_prog_compiler_c_o=no
10101 $RM -r conftest 2>/dev/null
10102 mkdir conftest
10103 cd conftest
10104 mkdir out
10105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10106
10107 lt_compiler_flag="-o out/conftest2.$ac_objext"
10108 # Insert the option either (1) after the last *FLAGS variable, or
10109 # (2) before a word containing "conftest.", or (3) at the end.
10110 # Note that $ac_compile itself does not contain backslashes and begins
10111 # with a dollar sign (not a hyphen), so the echo should work correctly.
10112 lt_compile=`echo "$ac_compile" | $SED \
10113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10115 -e 's:$: $lt_compiler_flag:'`
10116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10117 (eval "$lt_compile" 2>out/conftest.err)
10118 ac_status=$?
10119 cat out/conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10122 then
10123 # The compiler can only warn and ignore the option if not recognized
10124 # So say no if there are warnings
10125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10128 lt_cv_prog_compiler_c_o=yes
10129 fi
10130 fi
10131 chmod u+w . 2>&5
10132 $RM conftest*
10133 # SGI C++ compiler will create directory out/ii_files/ for
10134 # template instantiation
10135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10136 $RM out/* && rmdir out
10137 cd ..
10138 $RM -r conftest
10139 $RM conftest*
10140 ;;
10141 esac
10142 fi
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10144 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10145
10146
10147
10148
10149
10150
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10152 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10153 if test ${lt_cv_prog_compiler_c_o+y}
10154 then :
10155 printf %s "(cached) " >&6
10156 else case e in #(
10157 e) lt_cv_prog_compiler_c_o=no
10158 $RM -r conftest 2>/dev/null
10159 mkdir conftest
10160 cd conftest
10161 mkdir out
10162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10163
10164 lt_compiler_flag="-o out/conftest2.$ac_objext"
10165 # Insert the option either (1) after the last *FLAGS variable, or
10166 # (2) before a word containing "conftest.", or (3) at the end.
10167 # Note that $ac_compile itself does not contain backslashes and begins
10168 # with a dollar sign (not a hyphen), so the echo should work correctly.
10169 lt_compile=`echo "$ac_compile" | $SED \
10170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10172 -e 's:$: $lt_compiler_flag:'`
10173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10174 (eval "$lt_compile" 2>out/conftest.err)
10175 ac_status=$?
10176 cat out/conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10179 then
10180 # The compiler can only warn and ignore the option if not recognized
10181 # So say no if there are warnings
10182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10185 lt_cv_prog_compiler_c_o=yes
10186 fi
10187 fi
10188 chmod u+w . 2>&5
10189 $RM conftest*
10190 # SGI C++ compiler will create directory out/ii_files/ for
10191 # template instantiation
10192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10193 $RM out/* && rmdir out
10194 cd ..
10195 $RM -r conftest
10196 $RM conftest*
10197 ;;
10198 esac
10199 fi
10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10201 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10202
10203
10204
10205
10206 hard_links=nottested
10207 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10208 # do not overwrite the value of need_locks provided by the user
10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10210 printf %s "checking if we can lock with hard links... " >&6; }
10211 hard_links=yes
10212 $RM conftest*
10213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10214 touch conftest.a
10215 ln conftest.a conftest.b 2>&5 || hard_links=no
10216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10218 printf "%s\n" "$hard_links" >&6; }
10219 if test no = "$hard_links"; then
10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10221 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10222 need_locks=warn
10223 fi
10224 else
10225 need_locks=no
10226 fi
10227
10228
10229
10230
10231
10232
10233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10234 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10235
10236 runpath_var=
10237 allow_undefined_flag=
10238 always_export_symbols=no
10239 archive_cmds=
10240 archive_expsym_cmds=
10241 compiler_needs_object=no
10242 enable_shared_with_static_runtimes=no
10243 export_dynamic_flag_spec=
10244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10245 hardcode_automatic=no
10246 hardcode_direct=no
10247 hardcode_direct_absolute=no
10248 hardcode_libdir_flag_spec=
10249 hardcode_libdir_separator=
10250 hardcode_minus_L=no
10251 hardcode_shlibpath_var=unsupported
10252 inherit_rpath=no
10253 link_all_deplibs=unknown
10254 module_cmds=
10255 module_expsym_cmds=
10256 old_archive_from_new_cmds=
10257 old_archive_from_expsyms_cmds=
10258 thread_safe_flag_spec=
10259 whole_archive_flag_spec=
10260 # include_expsyms should be a list of space-separated symbols to be *always*
10261 # included in the symbol list
10262 include_expsyms=
10263 # exclude_expsyms can be an extended regexp of symbols to exclude
10264 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10265 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10266 # as well as any symbol that contains 'd'.
10267 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10269 # platforms (ab)use it in PIC code, but their linkers get confused if
10270 # the symbol is explicitly referenced. Since portable code cannot
10271 # rely on this symbol name, it's probably fine to never include it in
10272 # preloaded symbol tables.
10273 # Exclude shared library initialization/finalization symbols.
10274 extract_expsyms_cmds=
10275
10276 case $host_os in
10277 cygwin* | mingw* | pw32* | cegcc*)
10278 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10279 # When not using gcc, we currently assume that we are using
10280 # Microsoft Visual C++ or Intel C++ Compiler.
10281 if test yes != "$GCC"; then
10282 with_gnu_ld=no
10283 fi
10284 ;;
10285 interix*)
10286 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10287 with_gnu_ld=yes
10288 ;;
10289 openbsd* | bitrig*)
10290 with_gnu_ld=no
10291 ;;
10292 esac
10293
10294 ld_shlibs=yes
10295
10296 # On some targets, GNU ld is compatible enough with the native linker
10297 # that we're better off using the native interface for both.
10298 lt_use_gnu_ld_interface=no
10299 if test yes = "$with_gnu_ld"; then
10300 case $host_os in
10301 aix*)
10302 # The AIX port of GNU ld has always aspired to compatibility
10303 # with the native linker. However, as the warning in the GNU ld
10304 # block says, versions before 2.19.5* couldn't really create working
10305 # shared libraries, regardless of the interface used.
10306 case `$LD -v 2>&1` in
10307 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10308 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10309 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10310 *)
10311 lt_use_gnu_ld_interface=yes
10312 ;;
10313 esac
10314 ;;
10315 *)
10316 lt_use_gnu_ld_interface=yes
10317 ;;
10318 esac
10319 fi
10320
10321 if test yes = "$lt_use_gnu_ld_interface"; then
10322 # If archive_cmds runs LD, not CC, wlarc should be empty
10323 wlarc='$wl'
10324
10325 # Set some defaults for GNU ld with shared library support. These
10326 # are reset later if shared libraries are not supported. Putting them
10327 # here allows them to be overridden if necessary.
10328 runpath_var=LD_RUN_PATH
10329 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10330 export_dynamic_flag_spec='$wl--export-dynamic'
10331 # ancient GNU ld didn't support --whole-archive et. al.
10332 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10333 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10334 else
10335 whole_archive_flag_spec=
10336 fi
10337 supports_anon_versioning=no
10338 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10339 *GNU\ gold*) supports_anon_versioning=yes ;;
10340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10343 *\ 2.11.*) ;; # other 2.11 versions
10344 *) supports_anon_versioning=yes ;;
10345 esac
10346
10347 # See if GNU ld supports shared libraries.
10348 case $host_os in
10349 aix[3-9]*)
10350 # On AIX/PPC, the GNU linker is very broken
10351 if test ia64 != "$host_cpu"; then
10352 ld_shlibs=no
10353 cat <<_LT_EOF 1>&2
10354
10355 *** Warning: the GNU linker, at least up to release 2.19, is reported
10356 *** to be unable to reliably create shared libraries on AIX.
10357 *** Therefore, libtool is disabling shared libraries support. If you
10358 *** really care for shared libraries, you may want to install binutils
10359 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10360 *** You will then need to restart the configuration process.
10361
10362 _LT_EOF
10363 fi
10364 ;;
10365
10366 amigaos*)
10367 case $host_cpu in
10368 powerpc)
10369 # see comment about AmigaOS4 .so support
10370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10371 archive_expsym_cmds=''
10372 ;;
10373 m68k)
10374 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)'
10375 hardcode_libdir_flag_spec='-L$libdir'
10376 hardcode_minus_L=yes
10377 ;;
10378 esac
10379 ;;
10380
10381 beos*)
10382 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10383 allow_undefined_flag=unsupported
10384 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10385 # support --undefined. This deserves some investigation. FIXME
10386 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10387 else
10388 ld_shlibs=no
10389 fi
10390 ;;
10391
10392 cygwin* | mingw* | pw32* | cegcc*)
10393 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10394 # as there is no search path for DLLs.
10395 hardcode_libdir_flag_spec='-L$libdir'
10396 export_dynamic_flag_spec='$wl--export-all-symbols'
10397 allow_undefined_flag=unsupported
10398 always_export_symbols=no
10399 enable_shared_with_static_runtimes=yes
10400 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'
10401 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10402
10403 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10405 # If the export-symbols file already is a .def file, use it as
10406 # is; otherwise, prepend EXPORTS...
10407 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10408 cp $export_symbols $output_objdir/$soname.def;
10409 else
10410 echo EXPORTS > $output_objdir/$soname.def;
10411 cat $export_symbols >> $output_objdir/$soname.def;
10412 fi~
10413 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10414 else
10415 ld_shlibs=no
10416 fi
10417 ;;
10418
10419 haiku*)
10420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10421 link_all_deplibs=yes
10422 ;;
10423
10424 os2*)
10425 hardcode_libdir_flag_spec='-L$libdir'
10426 hardcode_minus_L=yes
10427 allow_undefined_flag=unsupported
10428 shrext_cmds=.dll
10429 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10430 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10431 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10432 $ECHO EXPORTS >> $output_objdir/$libname.def~
10433 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10434 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10435 emximp -o $lib $output_objdir/$libname.def'
10436 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10437 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10438 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10439 $ECHO EXPORTS >> $output_objdir/$libname.def~
10440 prefix_cmds="$SED"~
10441 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10442 prefix_cmds="$prefix_cmds -e 1d";
10443 fi~
10444 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10445 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10446 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10447 emximp -o $lib $output_objdir/$libname.def'
10448 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10449 enable_shared_with_static_runtimes=yes
10450 file_list_spec='@'
10451 ;;
10452
10453 interix[3-9]*)
10454 hardcode_direct=no
10455 hardcode_shlibpath_var=no
10456 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10457 export_dynamic_flag_spec='$wl-E'
10458 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10459 # Instead, shared libraries are loaded at an image base (0x10000000 by
10460 # default) and relocated if they conflict, which is a slow very memory
10461 # consuming and fragmenting process. To avoid this, we pick a random,
10462 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10463 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10464 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10465 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'
10466 ;;
10467
10468 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10469 tmp_diet=no
10470 if test linux-dietlibc = "$host_os"; then
10471 case $cc_basename in
10472 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10473 esac
10474 fi
10475 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10476 && test no = "$tmp_diet"
10477 then
10478 tmp_addflag=' $pic_flag'
10479 tmp_sharedflag='-shared'
10480 case $cc_basename,$host_cpu in
10481 pgcc*) # Portland Group C compiler
10482 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'
10483 tmp_addflag=' $pic_flag'
10484 ;;
10485 pgf77* | pgf90* | pgf95* | pgfortran*)
10486 # Portland Group f77 and f90 compilers
10487 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'
10488 tmp_addflag=' $pic_flag -Mnomain' ;;
10489 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10490 tmp_addflag=' -i_dynamic' ;;
10491 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10492 tmp_addflag=' -i_dynamic -nofor_main' ;;
10493 ifc* | ifort*) # Intel Fortran compiler
10494 tmp_addflag=' -nofor_main' ;;
10495 lf95*) # Lahey Fortran 8.1
10496 whole_archive_flag_spec=
10497 tmp_sharedflag='--shared' ;;
10498 nagfor*) # NAGFOR 5.3
10499 tmp_sharedflag='-Wl,-shared' ;;
10500 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10501 tmp_sharedflag='-qmkshrobj'
10502 tmp_addflag= ;;
10503 nvcc*) # Cuda Compiler Driver 2.2
10504 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'
10505 compiler_needs_object=yes
10506 ;;
10507 esac
10508 case `$CC -V 2>&1 | $SED 5q` in
10509 *Sun\ C*) # Sun C 5.9
10510 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'
10511 compiler_needs_object=yes
10512 tmp_sharedflag='-G' ;;
10513 *Sun\ F*) # Sun Fortran 8.3
10514 tmp_sharedflag='-G' ;;
10515 esac
10516 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10517
10518 if test yes = "$supports_anon_versioning"; then
10519 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10520 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10521 echo "local: *; };" >> $output_objdir/$libname.ver~
10522 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10523 fi
10524
10525 case $cc_basename in
10526 tcc*)
10527 export_dynamic_flag_spec='-rdynamic'
10528 ;;
10529 xlf* | bgf* | bgxlf* | mpixlf*)
10530 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10531 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10532 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10533 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10534 if test yes = "$supports_anon_versioning"; then
10535 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10536 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10537 echo "local: *; };" >> $output_objdir/$libname.ver~
10538 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10539 fi
10540 ;;
10541 esac
10542 else
10543 ld_shlibs=no
10544 fi
10545 ;;
10546
10547 netbsd*)
10548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10549 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10550 wlarc=
10551 else
10552 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10553 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10554 fi
10555 ;;
10556
10557 solaris*)
10558 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10559 ld_shlibs=no
10560 cat <<_LT_EOF 1>&2
10561
10562 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10563 *** create shared libraries on Solaris systems. Therefore, libtool
10564 *** is disabling shared libraries support. We urge you to upgrade GNU
10565 *** binutils to release 2.9.1 or newer. Another option is to modify
10566 *** your PATH or compiler configuration so that the native linker is
10567 *** used, and then restart.
10568
10569 _LT_EOF
10570 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10571 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10572 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10573 else
10574 ld_shlibs=no
10575 fi
10576 ;;
10577
10578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10579 case `$LD -v 2>&1` in
10580 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10581 ld_shlibs=no
10582 cat <<_LT_EOF 1>&2
10583
10584 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10585 *** reliably create shared libraries on SCO systems. Therefore, libtool
10586 *** is disabling shared libraries support. We urge you to upgrade GNU
10587 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10588 *** your PATH or compiler configuration so that the native linker is
10589 *** used, and then restart.
10590
10591 _LT_EOF
10592 ;;
10593 *)
10594 # For security reasons, it is highly recommended that you always
10595 # use absolute paths for naming shared libraries, and exclude the
10596 # DT_RUNPATH tag from executables and libraries. But doing so
10597 # requires that you compile everything twice, which is a pain.
10598 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10599 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10601 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10602 else
10603 ld_shlibs=no
10604 fi
10605 ;;
10606 esac
10607 ;;
10608
10609 sunos4*)
10610 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10611 wlarc=
10612 hardcode_direct=yes
10613 hardcode_shlibpath_var=no
10614 ;;
10615
10616 *)
10617 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10618 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10619 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10620 else
10621 ld_shlibs=no
10622 fi
10623 ;;
10624 esac
10625
10626 if test no = "$ld_shlibs"; then
10627 runpath_var=
10628 hardcode_libdir_flag_spec=
10629 export_dynamic_flag_spec=
10630 whole_archive_flag_spec=
10631 fi
10632 else
10633 # PORTME fill in a description of your system's linker (not GNU ld)
10634 case $host_os in
10635 aix3*)
10636 allow_undefined_flag=unsupported
10637 always_export_symbols=yes
10638 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'
10639 # Note: this linker hardcodes the directories in LIBPATH if there
10640 # are no directories specified by -L.
10641 hardcode_minus_L=yes
10642 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10643 # Neither direct hardcoding nor static linking is supported with a
10644 # broken collect2.
10645 hardcode_direct=unsupported
10646 fi
10647 ;;
10648
10649 aix[4-9]*)
10650 if test ia64 = "$host_cpu"; then
10651 # On IA64, the linker does run time linking by default, so we don't
10652 # have to do anything special.
10653 aix_use_runtimelinking=no
10654 exp_sym_flag='-Bexport'
10655 no_entry_flag=
10656 else
10657 # If we're using GNU nm, then we don't want the "-C" option.
10658 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10659 # Without the "-l" option, or with the "-B" option, AIX nm treats
10660 # weak defined symbols like other global defined symbols, whereas
10661 # GNU nm marks them as "W".
10662 # While the 'weak' keyword is ignored in the Export File, we need
10663 # it in the Import File for the 'aix-soname' feature, so we have
10664 # to replace the "-B" option with "-P" for AIX nm.
10665 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10666 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'
10667 else
10668 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10669 fi
10670 aix_use_runtimelinking=no
10671
10672 # Test if we are trying to use run time linking or normal
10673 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10674 # have runtime linking enabled, and use it for executables.
10675 # For shared libraries, we enable/disable runtime linking
10676 # depending on the kind of the shared library created -
10677 # when "with_aix_soname,aix_use_runtimelinking" is:
10678 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10679 # "aix,yes" lib.so shared, rtl:yes, for executables
10680 # lib.a static archive
10681 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10682 # lib.a(lib.so.V) shared, rtl:no, for executables
10683 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10684 # lib.a(lib.so.V) shared, rtl:no
10685 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10686 # lib.a static archive
10687 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10688 for ld_flag in $LDFLAGS; do
10689 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10690 aix_use_runtimelinking=yes
10691 break
10692 fi
10693 done
10694 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10695 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10696 # so we don't have lib.a shared libs to link our executables.
10697 # We have to force runtime linking in this case.
10698 aix_use_runtimelinking=yes
10699 LDFLAGS="$LDFLAGS -Wl,-brtl"
10700 fi
10701 ;;
10702 esac
10703
10704 exp_sym_flag='-bexport'
10705 no_entry_flag='-bnoentry'
10706 fi
10707
10708 # When large executables or shared objects are built, AIX ld can
10709 # have problems creating the table of contents. If linking a library
10710 # or program results in "error TOC overflow" add -mminimal-toc to
10711 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10712 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10713
10714 archive_cmds=''
10715 hardcode_direct=yes
10716 hardcode_direct_absolute=yes
10717 hardcode_libdir_separator=':'
10718 link_all_deplibs=yes
10719 file_list_spec='$wl-f,'
10720 case $with_aix_soname,$aix_use_runtimelinking in
10721 aix,*) ;; # traditional, no import file
10722 svr4,* | *,yes) # use import file
10723 # The Import File defines what to hardcode.
10724 hardcode_direct=no
10725 hardcode_direct_absolute=no
10726 ;;
10727 esac
10728
10729 if test yes = "$GCC"; then
10730 case $host_os in aix4.[012]|aix4.[012].*)
10731 # We only want to do this on AIX 4.2 and lower, the check
10732 # below for broken collect2 doesn't work under 4.3+
10733 collect2name=`$CC -print-prog-name=collect2`
10734 if test -f "$collect2name" &&
10735 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10736 then
10737 # We have reworked collect2
10738 :
10739 else
10740 # We have old collect2
10741 hardcode_direct=unsupported
10742 # It fails to find uninstalled libraries when the uninstalled
10743 # path is not listed in the libpath. Setting hardcode_minus_L
10744 # to unsupported forces relinking
10745 hardcode_minus_L=yes
10746 hardcode_libdir_flag_spec='-L$libdir'
10747 hardcode_libdir_separator=
10748 fi
10749 ;;
10750 esac
10751 shared_flag='-shared'
10752 if test yes = "$aix_use_runtimelinking"; then
10753 shared_flag="$shared_flag "'$wl-G'
10754 fi
10755 # Need to ensure runtime linking is disabled for the traditional
10756 # shared library, or the linker may eventually find shared libraries
10757 # /with/ Import File - we do not want to mix them.
10758 shared_flag_aix='-shared'
10759 shared_flag_svr4='-shared $wl-G'
10760 else
10761 # not using gcc
10762 if test ia64 = "$host_cpu"; then
10763 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10764 # chokes on -Wl,-G. The following line is correct:
10765 shared_flag='-G'
10766 else
10767 if test yes = "$aix_use_runtimelinking"; then
10768 shared_flag='$wl-G'
10769 else
10770 shared_flag='$wl-bM:SRE'
10771 fi
10772 shared_flag_aix='$wl-bM:SRE'
10773 shared_flag_svr4='$wl-G'
10774 fi
10775 fi
10776
10777 export_dynamic_flag_spec='$wl-bexpall'
10778 # It seems that -bexpall does not export symbols beginning with
10779 # underscore (_), so it is better to generate a list of symbols to export.
10780 always_export_symbols=yes
10781 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10782 # Warning - without using the other runtime loading flags (-brtl),
10783 # -berok will link without error, but may produce a broken library.
10784 allow_undefined_flag='-berok'
10785 # Determine the default libpath from the value encoded in an
10786 # empty executable.
10787 if test set = "${lt_cv_aix_libpath+set}"; then
10788 aix_libpath=$lt_cv_aix_libpath
10789 else
10790 if test ${lt_cv_aix_libpath_+y}
10791 then :
10792 printf %s "(cached) " >&6
10793 else case e in #(
10794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10796
10797 int
10798 main (void)
10799 {
10800
10801 ;
10802 return 0;
10803 }
10804 _ACEOF
10805 if ac_fn_c_try_link "$LINENO"
10806 then :
10807
10808 lt_aix_libpath_sed='
10809 /Import File Strings/,/^$/ {
10810 /^0/ {
10811 s/^0 *\([^ ]*\) *$/\1/
10812 p
10813 }
10814 }'
10815 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10816 # Check for a 64-bit object if we didn't find anything.
10817 if test -z "$lt_cv_aix_libpath_"; then
10818 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10819 fi
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10822 conftest$ac_exeext conftest.$ac_ext
10823 if test -z "$lt_cv_aix_libpath_"; then
10824 lt_cv_aix_libpath_=/usr/lib:/lib
10825 fi
10826 ;;
10827 esac
10828 fi
10829
10830 aix_libpath=$lt_cv_aix_libpath_
10831 fi
10832
10833 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10834 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
10835 else
10836 if test ia64 = "$host_cpu"; then
10837 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10838 allow_undefined_flag="-z nodefs"
10839 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"
10840 else
10841 # Determine the default libpath from the value encoded in an
10842 # empty executable.
10843 if test set = "${lt_cv_aix_libpath+set}"; then
10844 aix_libpath=$lt_cv_aix_libpath
10845 else
10846 if test ${lt_cv_aix_libpath_+y}
10847 then :
10848 printf %s "(cached) " >&6
10849 else case e in #(
10850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10852
10853 int
10854 main (void)
10855 {
10856
10857 ;
10858 return 0;
10859 }
10860 _ACEOF
10861 if ac_fn_c_try_link "$LINENO"
10862 then :
10863
10864 lt_aix_libpath_sed='
10865 /Import File Strings/,/^$/ {
10866 /^0/ {
10867 s/^0 *\([^ ]*\) *$/\1/
10868 p
10869 }
10870 }'
10871 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10872 # Check for a 64-bit object if we didn't find anything.
10873 if test -z "$lt_cv_aix_libpath_"; then
10874 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10875 fi
10876 fi
10877 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10878 conftest$ac_exeext conftest.$ac_ext
10879 if test -z "$lt_cv_aix_libpath_"; then
10880 lt_cv_aix_libpath_=/usr/lib:/lib
10881 fi
10882 ;;
10883 esac
10884 fi
10885
10886 aix_libpath=$lt_cv_aix_libpath_
10887 fi
10888
10889 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10890 # Warning - without using the other run time loading flags,
10891 # -berok will link without error, but may produce a broken library.
10892 no_undefined_flag=' $wl-bernotok'
10893 allow_undefined_flag=' $wl-berok'
10894 if test yes = "$with_gnu_ld"; then
10895 # We only use this code for GNU lds that support --whole-archive.
10896 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10897 else
10898 # Exported symbols can be pulled into shared objects from archives
10899 whole_archive_flag_spec='$convenience'
10900 fi
10901 archive_cmds_need_lc=yes
10902 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10903 # -brtl affects multiple linker settings, -berok does not and is overridden later
10904 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10905 if test svr4 != "$with_aix_soname"; then
10906 # This is similar to how AIX traditionally builds its shared libraries.
10907 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'
10908 fi
10909 if test aix != "$with_aix_soname"; then
10910 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'
10911 else
10912 # used by -dlpreopen to get the symbols
10913 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10914 fi
10915 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10916 fi
10917 fi
10918 ;;
10919
10920 amigaos*)
10921 case $host_cpu in
10922 powerpc)
10923 # see comment about AmigaOS4 .so support
10924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10925 archive_expsym_cmds=''
10926 ;;
10927 m68k)
10928 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)'
10929 hardcode_libdir_flag_spec='-L$libdir'
10930 hardcode_minus_L=yes
10931 ;;
10932 esac
10933 ;;
10934
10935 bsdi[45]*)
10936 export_dynamic_flag_spec=-rdynamic
10937 ;;
10938
10939 cygwin* | mingw* | pw32* | cegcc*)
10940 # When not using gcc, we currently assume that we are using
10941 # Microsoft Visual C++ or Intel C++ Compiler.
10942 # hardcode_libdir_flag_spec is actually meaningless, as there is
10943 # no search path for DLLs.
10944 case $cc_basename in
10945 cl* | icl*)
10946 # Native MSVC or ICC
10947 hardcode_libdir_flag_spec=' '
10948 allow_undefined_flag=unsupported
10949 always_export_symbols=yes
10950 file_list_spec='@'
10951 # Tell ltmain to make .lib files, not .a files.
10952 libext=lib
10953 # Tell ltmain to make .dll files, not .so files.
10954 shrext_cmds=.dll
10955 # FIXME: Setting linknames here is a bad hack.
10956 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10957 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10958 cp "$export_symbols" "$output_objdir/$soname.def";
10959 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10960 else
10961 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10962 fi~
10963 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10964 linknames='
10965 # The linker will not automatically build a static lib if we build a DLL.
10966 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10967 enable_shared_with_static_runtimes=yes
10968 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10970 # Don't use ranlib
10971 old_postinstall_cmds='chmod 644 $oldlib'
10972 postlink_cmds='lt_outputfile="@OUTPUT@"~
10973 lt_tool_outputfile="@TOOL_OUTPUT@"~
10974 case $lt_outputfile in
10975 *.exe|*.EXE) ;;
10976 *)
10977 lt_outputfile=$lt_outputfile.exe
10978 lt_tool_outputfile=$lt_tool_outputfile.exe
10979 ;;
10980 esac~
10981 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10982 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10983 $RM "$lt_outputfile.manifest";
10984 fi'
10985 ;;
10986 *)
10987 # Assume MSVC and ICC wrapper
10988 hardcode_libdir_flag_spec=' '
10989 allow_undefined_flag=unsupported
10990 # Tell ltmain to make .lib files, not .a files.
10991 libext=lib
10992 # Tell ltmain to make .dll files, not .so files.
10993 shrext_cmds=.dll
10994 # FIXME: Setting linknames here is a bad hack.
10995 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10996 # The linker will automatically build a .lib file if we build a DLL.
10997 old_archive_from_new_cmds='true'
10998 # FIXME: Should let the user specify the lib program.
10999 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11000 enable_shared_with_static_runtimes=yes
11001 ;;
11002 esac
11003 ;;
11004
11005 darwin* | rhapsody*)
11006
11007
11008 archive_cmds_need_lc=no
11009 hardcode_direct=no
11010 hardcode_automatic=yes
11011 hardcode_shlibpath_var=unsupported
11012 if test yes = "$lt_cv_ld_force_load"; then
11013 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\"`'
11014
11015 else
11016 whole_archive_flag_spec=''
11017 fi
11018 link_all_deplibs=yes
11019 allow_undefined_flag=$_lt_dar_allow_undefined
11020 case $cc_basename in
11021 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11022 *) _lt_dar_can_shared=$GCC ;;
11023 esac
11024 if test yes = "$_lt_dar_can_shared"; then
11025 output_verbose_link_cmd=func_echo_all
11026 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11027 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11028 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"
11029 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"
11030
11031 else
11032 ld_shlibs=no
11033 fi
11034
11035 ;;
11036
11037 dgux*)
11038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_libdir_flag_spec='-L$libdir'
11040 hardcode_shlibpath_var=no
11041 ;;
11042
11043 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11044 # support. Future versions do this automatically, but an explicit c++rt0.o
11045 # does not break anything, and helps significantly (at the cost of a little
11046 # extra space).
11047 freebsd2.2*)
11048 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11049 hardcode_libdir_flag_spec='-R$libdir'
11050 hardcode_direct=yes
11051 hardcode_shlibpath_var=no
11052 ;;
11053
11054 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11055 freebsd2.*)
11056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11057 hardcode_direct=yes
11058 hardcode_minus_L=yes
11059 hardcode_shlibpath_var=no
11060 ;;
11061
11062 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11063 freebsd* | dragonfly* | midnightbsd*)
11064 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11065 hardcode_libdir_flag_spec='-R$libdir'
11066 hardcode_direct=yes
11067 hardcode_shlibpath_var=no
11068 ;;
11069
11070 hpux9*)
11071 if test yes = "$GCC"; then
11072 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'
11073 else
11074 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'
11075 fi
11076 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11077 hardcode_libdir_separator=:
11078 hardcode_direct=yes
11079
11080 # hardcode_minus_L: Not really in the search PATH,
11081 # but as the default location of the library.
11082 hardcode_minus_L=yes
11083 export_dynamic_flag_spec='$wl-E'
11084 ;;
11085
11086 hpux10*)
11087 if test yes,no = "$GCC,$with_gnu_ld"; then
11088 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11089 else
11090 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11091 fi
11092 if test no = "$with_gnu_ld"; then
11093 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11094 hardcode_libdir_separator=:
11095 hardcode_direct=yes
11096 hardcode_direct_absolute=yes
11097 export_dynamic_flag_spec='$wl-E'
11098 # hardcode_minus_L: Not really in the search PATH,
11099 # but as the default location of the library.
11100 hardcode_minus_L=yes
11101 fi
11102 ;;
11103
11104 hpux11*)
11105 if test yes,no = "$GCC,$with_gnu_ld"; then
11106 case $host_cpu in
11107 hppa*64*)
11108 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11109 ;;
11110 ia64*)
11111 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11112 ;;
11113 *)
11114 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11115 ;;
11116 esac
11117 else
11118 case $host_cpu in
11119 hppa*64*)
11120 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11121 ;;
11122 ia64*)
11123 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11124 ;;
11125 *)
11126
11127 # Older versions of the 11.00 compiler do not understand -b yet
11128 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11130 printf %s "checking if $CC understands -b... " >&6; }
11131 if test ${lt_cv_prog_compiler__b+y}
11132 then :
11133 printf %s "(cached) " >&6
11134 else case e in #(
11135 e) lt_cv_prog_compiler__b=no
11136 save_LDFLAGS=$LDFLAGS
11137 LDFLAGS="$LDFLAGS -b"
11138 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11140 # The linker can only warn and ignore the option if not recognized
11141 # So say no if there are warnings
11142 if test -s conftest.err; then
11143 # Append any errors to the config.log.
11144 cat conftest.err 1>&5
11145 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11147 if diff conftest.exp conftest.er2 >/dev/null; then
11148 lt_cv_prog_compiler__b=yes
11149 fi
11150 else
11151 lt_cv_prog_compiler__b=yes
11152 fi
11153 fi
11154 $RM -r conftest*
11155 LDFLAGS=$save_LDFLAGS
11156 ;;
11157 esac
11158 fi
11159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11160 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11161
11162 if test yes = "$lt_cv_prog_compiler__b"; then
11163 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11164 else
11165 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11166 fi
11167
11168 ;;
11169 esac
11170 fi
11171 if test no = "$with_gnu_ld"; then
11172 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11173 hardcode_libdir_separator=:
11174
11175 case $host_cpu in
11176 hppa*64*|ia64*)
11177 hardcode_direct=no
11178 hardcode_shlibpath_var=no
11179 ;;
11180 *)
11181 hardcode_direct=yes
11182 hardcode_direct_absolute=yes
11183 export_dynamic_flag_spec='$wl-E'
11184
11185 # hardcode_minus_L: Not really in the search PATH,
11186 # but as the default location of the library.
11187 hardcode_minus_L=yes
11188 ;;
11189 esac
11190 fi
11191 ;;
11192
11193 irix5* | irix6* | nonstopux*)
11194 if test yes = "$GCC"; then
11195 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'
11196 # Try to use the -exported_symbol ld option, if it does not
11197 # work, assume that -exports_file does not work either and
11198 # implicitly export all symbols.
11199 # This should be the same for all languages, so no per-tag cache variable.
11200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11201 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11202 if test ${lt_cv_irix_exported_symbol+y}
11203 then :
11204 printf %s "(cached) " >&6
11205 else case e in #(
11206 e) save_LDFLAGS=$LDFLAGS
11207 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210 int foo (void) { return 0; }
11211 _ACEOF
11212 if ac_fn_c_try_link "$LINENO"
11213 then :
11214 lt_cv_irix_exported_symbol=yes
11215 else case e in #(
11216 e) lt_cv_irix_exported_symbol=no ;;
11217 esac
11218 fi
11219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11220 conftest$ac_exeext conftest.$ac_ext
11221 LDFLAGS=$save_LDFLAGS ;;
11222 esac
11223 fi
11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11225 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11226 if test yes = "$lt_cv_irix_exported_symbol"; then
11227 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'
11228 fi
11229 else
11230 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'
11231 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'
11232 fi
11233 archive_cmds_need_lc='no'
11234 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11235 hardcode_libdir_separator=:
11236 inherit_rpath=yes
11237 link_all_deplibs=yes
11238 ;;
11239
11240 linux*)
11241 case $cc_basename in
11242 tcc*)
11243 # Fabrice Bellard et al's Tiny C Compiler
11244 ld_shlibs=yes
11245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11246 ;;
11247 esac
11248 ;;
11249
11250 netbsd*)
11251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11253 else
11254 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11255 fi
11256 hardcode_libdir_flag_spec='-R$libdir'
11257 hardcode_direct=yes
11258 hardcode_shlibpath_var=no
11259 ;;
11260
11261 newsos6)
11262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11263 hardcode_direct=yes
11264 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11265 hardcode_libdir_separator=:
11266 hardcode_shlibpath_var=no
11267 ;;
11268
11269 *nto* | *qnx*)
11270 ;;
11271
11272 openbsd* | bitrig*)
11273 if test -f /usr/libexec/ld.so; then
11274 hardcode_direct=yes
11275 hardcode_shlibpath_var=no
11276 hardcode_direct_absolute=yes
11277 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11279 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11280 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11281 export_dynamic_flag_spec='$wl-E'
11282 else
11283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11284 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11285 fi
11286 else
11287 ld_shlibs=no
11288 fi
11289 ;;
11290
11291 os2*)
11292 hardcode_libdir_flag_spec='-L$libdir'
11293 hardcode_minus_L=yes
11294 allow_undefined_flag=unsupported
11295 shrext_cmds=.dll
11296 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11297 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11298 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11299 $ECHO EXPORTS >> $output_objdir/$libname.def~
11300 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11301 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11302 emximp -o $lib $output_objdir/$libname.def'
11303 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11304 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11305 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11306 $ECHO EXPORTS >> $output_objdir/$libname.def~
11307 prefix_cmds="$SED"~
11308 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11309 prefix_cmds="$prefix_cmds -e 1d";
11310 fi~
11311 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11312 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11313 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11314 emximp -o $lib $output_objdir/$libname.def'
11315 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11316 enable_shared_with_static_runtimes=yes
11317 file_list_spec='@'
11318 ;;
11319
11320 osf3*)
11321 if test yes = "$GCC"; then
11322 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11323 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'
11324 else
11325 allow_undefined_flag=' -expect_unresolved \*'
11326 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'
11327 fi
11328 archive_cmds_need_lc='no'
11329 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11330 hardcode_libdir_separator=:
11331 ;;
11332
11333 osf4* | osf5*) # as osf3* with the addition of -msym flag
11334 if test yes = "$GCC"; then
11335 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11336 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'
11337 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11338 else
11339 allow_undefined_flag=' -expect_unresolved \*'
11340 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'
11341 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~
11342 $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'
11343
11344 # Both c and cxx compiler support -rpath directly
11345 hardcode_libdir_flag_spec='-rpath $libdir'
11346 fi
11347 archive_cmds_need_lc='no'
11348 hardcode_libdir_separator=:
11349 ;;
11350
11351 solaris*)
11352 no_undefined_flag=' -z defs'
11353 if test yes = "$GCC"; then
11354 wlarc='$wl'
11355 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11356 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11357 $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'
11358 else
11359 case `$CC -V 2>&1` in
11360 *"Compilers 5.0"*)
11361 wlarc=''
11362 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11363 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11364 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11365 ;;
11366 *)
11367 wlarc='$wl'
11368 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11369 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11370 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11371 ;;
11372 esac
11373 fi
11374 hardcode_libdir_flag_spec='-R$libdir'
11375 hardcode_shlibpath_var=no
11376 case $host_os in
11377 solaris2.[0-5] | solaris2.[0-5].*) ;;
11378 *)
11379 # The compiler driver will combine and reorder linker options,
11380 # but understands '-z linker_flag'. GCC discards it without '$wl',
11381 # but is careful enough not to reorder.
11382 # Supported since Solaris 2.6 (maybe 2.5.1?)
11383 if test yes = "$GCC"; then
11384 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11385 else
11386 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11387 fi
11388 ;;
11389 esac
11390 link_all_deplibs=yes
11391 ;;
11392
11393 sunos4*)
11394 if test sequent = "$host_vendor"; then
11395 # Use $CC to link under sequent, because it throws in some extra .o
11396 # files that make .init and .fini sections work.
11397 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11398 else
11399 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11400 fi
11401 hardcode_libdir_flag_spec='-L$libdir'
11402 hardcode_direct=yes
11403 hardcode_minus_L=yes
11404 hardcode_shlibpath_var=no
11405 ;;
11406
11407 sysv4)
11408 case $host_vendor in
11409 sni)
11410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11411 hardcode_direct=yes # is this really true???
11412 ;;
11413 siemens)
11414 ## LD is ld it makes a PLAMLIB
11415 ## CC just makes a GrossModule.
11416 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11417 reload_cmds='$CC -r -o $output$reload_objs'
11418 hardcode_direct=no
11419 ;;
11420 motorola)
11421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11422 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11423 ;;
11424 esac
11425 runpath_var='LD_RUN_PATH'
11426 hardcode_shlibpath_var=no
11427 ;;
11428
11429 sysv4.3*)
11430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11431 hardcode_shlibpath_var=no
11432 export_dynamic_flag_spec='-Bexport'
11433 ;;
11434
11435 sysv4*MP*)
11436 if test -d /usr/nec; then
11437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11438 hardcode_shlibpath_var=no
11439 runpath_var=LD_RUN_PATH
11440 hardcode_runpath_var=yes
11441 ld_shlibs=yes
11442 fi
11443 ;;
11444
11445 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11446 no_undefined_flag='$wl-z,text'
11447 archive_cmds_need_lc=no
11448 hardcode_shlibpath_var=no
11449 runpath_var='LD_RUN_PATH'
11450
11451 if test yes = "$GCC"; then
11452 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11453 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11454 else
11455 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11456 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11457 fi
11458 ;;
11459
11460 sysv5* | sco3.2v5* | sco5v6*)
11461 # Note: We CANNOT use -z defs as we might desire, because we do not
11462 # link with -lc, and that would cause any symbols used from libc to
11463 # always be unresolved, which means just about no library would
11464 # ever link correctly. If we're not using GNU ld we use -z text
11465 # though, which does catch some bad symbols but isn't as heavy-handed
11466 # as -z defs.
11467 no_undefined_flag='$wl-z,text'
11468 allow_undefined_flag='$wl-z,nodefs'
11469 archive_cmds_need_lc=no
11470 hardcode_shlibpath_var=no
11471 hardcode_libdir_flag_spec='$wl-R,$libdir'
11472 hardcode_libdir_separator=':'
11473 link_all_deplibs=yes
11474 export_dynamic_flag_spec='$wl-Bexport'
11475 runpath_var='LD_RUN_PATH'
11476
11477 if test yes = "$GCC"; then
11478 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11479 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11480 else
11481 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11482 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11483 fi
11484 ;;
11485
11486 uts4*)
11487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11488 hardcode_libdir_flag_spec='-L$libdir'
11489 hardcode_shlibpath_var=no
11490 ;;
11491
11492 *)
11493 ld_shlibs=no
11494 ;;
11495 esac
11496
11497 if test sni = "$host_vendor"; then
11498 case $host in
11499 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11500 export_dynamic_flag_spec='$wl-Blargedynsym'
11501 ;;
11502 esac
11503 fi
11504 fi
11505
11506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11507 printf "%s\n" "$ld_shlibs" >&6; }
11508 test no = "$ld_shlibs" && can_build_shared=no
11509
11510 with_gnu_ld=$with_gnu_ld
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526 #
11527 # Do we need to explicitly link libc?
11528 #
11529 case "x$archive_cmds_need_lc" in
11530 x|xyes)
11531 # Assume -lc should be added
11532 archive_cmds_need_lc=yes
11533
11534 if test yes,yes = "$GCC,$enable_shared"; then
11535 case $archive_cmds in
11536 *'~'*)
11537 # FIXME: we may have to deal with multi-command sequences.
11538 ;;
11539 '$CC '*)
11540 # Test whether the compiler implicitly links with -lc since on some
11541 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11542 # to ld, don't add -lc before -lgcc.
11543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11544 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11545 if test ${lt_cv_archive_cmds_need_lc+y}
11546 then :
11547 printf %s "(cached) " >&6
11548 else case e in #(
11549 e) $RM conftest*
11550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11551
11552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11553 (eval $ac_compile) 2>&5
11554 ac_status=$?
11555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11556 test $ac_status = 0; } 2>conftest.err; then
11557 soname=conftest
11558 lib=conftest
11559 libobjs=conftest.$ac_objext
11560 deplibs=
11561 wl=$lt_prog_compiler_wl
11562 pic_flag=$lt_prog_compiler_pic
11563 compiler_flags=-v
11564 linker_flags=-v
11565 verstring=
11566 output_objdir=.
11567 libname=conftest
11568 lt_save_allow_undefined_flag=$allow_undefined_flag
11569 allow_undefined_flag=
11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11571 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11572 ac_status=$?
11573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; }
11575 then
11576 lt_cv_archive_cmds_need_lc=no
11577 else
11578 lt_cv_archive_cmds_need_lc=yes
11579 fi
11580 allow_undefined_flag=$lt_save_allow_undefined_flag
11581 else
11582 cat conftest.err 1>&5
11583 fi
11584 $RM conftest*
11585 ;;
11586 esac
11587 fi
11588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11589 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11590 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11591 ;;
11592 esac
11593 fi
11594 ;;
11595 esac
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11749 printf %s "checking dynamic linker characteristics... " >&6; }
11750
11751 if test yes = "$GCC"; then
11752 case $host_os in
11753 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11754 *) lt_awk_arg='/^libraries:/' ;;
11755 esac
11756 case $host_os in
11757 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11758 *) lt_sed_strip_eq='s|=/|/|g' ;;
11759 esac
11760 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11761 case $lt_search_path_spec in
11762 *\;*)
11763 # if the path contains ";" then we assume it to be the separator
11764 # otherwise default to the standard path separator (i.e. ":") - it is
11765 # assumed that no part of a normal pathname contains ";" but that should
11766 # okay in the real world where ";" in dirpaths is itself problematic.
11767 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11768 ;;
11769 *)
11770 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11771 ;;
11772 esac
11773 # Ok, now we have the path, separated by spaces, we can step through it
11774 # and add multilib dir if necessary...
11775 lt_tmp_lt_search_path_spec=
11776 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11777 # ...but if some path component already ends with the multilib dir we assume
11778 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11779 case "$lt_multi_os_dir; $lt_search_path_spec " in
11780 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11781 lt_multi_os_dir=
11782 ;;
11783 esac
11784 for lt_sys_path in $lt_search_path_spec; do
11785 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11786 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11787 elif test -n "$lt_multi_os_dir"; then
11788 test -d "$lt_sys_path" && \
11789 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11790 fi
11791 done
11792 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11793 BEGIN {RS = " "; FS = "/|\n";} {
11794 lt_foo = "";
11795 lt_count = 0;
11796 for (lt_i = NF; lt_i > 0; lt_i--) {
11797 if ($lt_i != "" && $lt_i != ".") {
11798 if ($lt_i == "..") {
11799 lt_count++;
11800 } else {
11801 if (lt_count == 0) {
11802 lt_foo = "/" $lt_i lt_foo;
11803 } else {
11804 lt_count--;
11805 }
11806 }
11807 }
11808 }
11809 if (lt_foo != "") { lt_freq[lt_foo]++; }
11810 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11811 }'`
11812 # AWK program above erroneously prepends '/' to C:/dos/paths
11813 # for these hosts.
11814 case $host_os in
11815 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11816 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11817 esac
11818 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11819 else
11820 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11821 fi
11822 library_names_spec=
11823 libname_spec='lib$name'
11824 soname_spec=
11825 shrext_cmds=.so
11826 postinstall_cmds=
11827 postuninstall_cmds=
11828 finish_cmds=
11829 finish_eval=
11830 shlibpath_var=
11831 shlibpath_overrides_runpath=unknown
11832 version_type=none
11833 dynamic_linker="$host_os ld.so"
11834 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11835 need_lib_prefix=unknown
11836 hardcode_into_libs=no
11837
11838 # when you set need_version to no, make sure it does not cause -set_version
11839 # flags to be left without arguments
11840 need_version=unknown
11841
11842
11843
11844 case $host_os in
11845 aix3*)
11846 version_type=linux # correct to gnu/linux during the next big refactor
11847 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11848 shlibpath_var=LIBPATH
11849
11850 # AIX 3 has no versioning support, so we append a major version to the name.
11851 soname_spec='$libname$release$shared_ext$major'
11852 ;;
11853
11854 aix[4-9]*)
11855 version_type=linux # correct to gnu/linux during the next big refactor
11856 need_lib_prefix=no
11857 need_version=no
11858 hardcode_into_libs=yes
11859 if test ia64 = "$host_cpu"; then
11860 # AIX 5 supports IA64
11861 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 else
11864 # With GCC up to 2.95.x, collect2 would create an import file
11865 # for dependence libraries. The import file would start with
11866 # the line '#! .'. This would cause the generated library to
11867 # depend on '.', always an invalid library. This was fixed in
11868 # development snapshots of GCC prior to 3.0.
11869 case $host_os in
11870 aix4 | aix4.[01] | aix4.[01].*)
11871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11872 echo ' yes '
11873 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11874 :
11875 else
11876 can_build_shared=no
11877 fi
11878 ;;
11879 esac
11880 # Using Import Files as archive members, it is possible to support
11881 # filename-based versioning of shared library archives on AIX. While
11882 # this would work for both with and without runtime linking, it will
11883 # prevent static linking of such archives. So we do filename-based
11884 # shared library versioning with .so extension only, which is used
11885 # when both runtime linking and shared linking is enabled.
11886 # Unfortunately, runtime linking may impact performance, so we do
11887 # not want this to be the default eventually. Also, we use the
11888 # versioned .so libs for executables only if there is the -brtl
11889 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11890 # To allow for filename-based versioning support, we need to create
11891 # libNAME.so.V as an archive file, containing:
11892 # *) an Import File, referring to the versioned filename of the
11893 # archive as well as the shared archive member, telling the
11894 # bitwidth (32 or 64) of that shared object, and providing the
11895 # list of exported symbols of that shared object, eventually
11896 # decorated with the 'weak' keyword
11897 # *) the shared object with the F_LOADONLY flag set, to really avoid
11898 # it being seen by the linker.
11899 # At run time we better use the real file rather than another symlink,
11900 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11901
11902 case $with_aix_soname,$aix_use_runtimelinking in
11903 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11904 # soname into executable. Probably we can add versioning support to
11905 # collect2, so additional links can be useful in future.
11906 aix,yes) # traditional libtool
11907 dynamic_linker='AIX unversionable lib.so'
11908 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11909 # instead of lib<name>.a to let people know that these are not
11910 # typical AIX shared libraries.
11911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11912 ;;
11913 aix,no) # traditional AIX only
11914 dynamic_linker='AIX lib.a(lib.so.V)'
11915 # We preserve .a as extension for shared libraries through AIX4.2
11916 # and later when we are not doing run time linking.
11917 library_names_spec='$libname$release.a $libname.a'
11918 soname_spec='$libname$release$shared_ext$major'
11919 ;;
11920 svr4,*) # full svr4 only
11921 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11922 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11923 # We do not specify a path in Import Files, so LIBPATH fires.
11924 shlibpath_overrides_runpath=yes
11925 ;;
11926 *,yes) # both, prefer svr4
11927 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11928 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11929 # unpreferred sharedlib libNAME.a needs extra handling
11930 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"'
11931 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"'
11932 # We do not specify a path in Import Files, so LIBPATH fires.
11933 shlibpath_overrides_runpath=yes
11934 ;;
11935 *,no) # both, prefer aix
11936 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11937 library_names_spec='$libname$release.a $libname.a'
11938 soname_spec='$libname$release$shared_ext$major'
11939 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11940 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)'
11941 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"'
11942 ;;
11943 esac
11944 shlibpath_var=LIBPATH
11945 fi
11946 ;;
11947
11948 amigaos*)
11949 case $host_cpu in
11950 powerpc)
11951 # Since July 2007 AmigaOS4 officially supports .so libraries.
11952 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11954 ;;
11955 m68k)
11956 library_names_spec='$libname.ixlibrary $libname.a'
11957 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11958 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'
11959 ;;
11960 esac
11961 ;;
11962
11963 beos*)
11964 library_names_spec='$libname$shared_ext'
11965 dynamic_linker="$host_os ld.so"
11966 shlibpath_var=LIBRARY_PATH
11967 ;;
11968
11969 bsdi[45]*)
11970 version_type=linux # correct to gnu/linux during the next big refactor
11971 need_version=no
11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11973 soname_spec='$libname$release$shared_ext$major'
11974 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11975 shlibpath_var=LD_LIBRARY_PATH
11976 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11977 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11978 # the default ld.so.conf also contains /usr/contrib/lib and
11979 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11980 # libtool to hard-code these into programs
11981 ;;
11982
11983 cygwin* | mingw* | pw32* | cegcc*)
11984 version_type=windows
11985 shrext_cmds=.dll
11986 need_version=no
11987 need_lib_prefix=no
11988
11989 case $GCC,$cc_basename in
11990 yes,*)
11991 # gcc
11992 library_names_spec='$libname.dll.a'
11993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11994 postinstall_cmds='base_file=`basename \$file`~
11995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11996 dldir=$destdir/`dirname \$dlpath`~
11997 test -d \$dldir || mkdir -p \$dldir~
11998 $install_prog $dir/$dlname \$dldir/$dlname~
11999 chmod a+x \$dldir/$dlname~
12000 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12001 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12002 fi'
12003 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12004 dlpath=$dir/\$dldll~
12005 $RM \$dlpath'
12006 shlibpath_overrides_runpath=yes
12007
12008 case $host_os in
12009 cygwin*)
12010 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12011 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12012
12013 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12014 ;;
12015 mingw* | cegcc*)
12016 # MinGW DLLs use traditional 'lib' prefix
12017 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12018 ;;
12019 pw32*)
12020 # pw32 DLLs use 'pw' prefix rather than 'lib'
12021 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12022 ;;
12023 esac
12024 dynamic_linker='Win32 ld.exe'
12025 ;;
12026
12027 *,cl* | *,icl*)
12028 # Native MSVC or ICC
12029 libname_spec='$name'
12030 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12031 library_names_spec='$libname.dll.lib'
12032
12033 case $build_os in
12034 mingw*)
12035 sys_lib_search_path_spec=
12036 lt_save_ifs=$IFS
12037 IFS=';'
12038 for lt_path in $LIB
12039 do
12040 IFS=$lt_save_ifs
12041 # Let DOS variable expansion print the short 8.3 style file name.
12042 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12043 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12044 done
12045 IFS=$lt_save_ifs
12046 # Convert to MSYS style.
12047 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12048 ;;
12049 cygwin*)
12050 # Convert to unix form, then to dos form, then back to unix form
12051 # but this time dos style (no spaces!) so that the unix form looks
12052 # like /cygdrive/c/PROGRA~1:/cygdr...
12053 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12054 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12055 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12056 ;;
12057 *)
12058 sys_lib_search_path_spec=$LIB
12059 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12060 # It is most probably a Windows format PATH.
12061 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12062 else
12063 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12064 fi
12065 # FIXME: find the short name or the path components, as spaces are
12066 # common. (e.g. "Program Files" -> "PROGRA~1")
12067 ;;
12068 esac
12069
12070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12071 postinstall_cmds='base_file=`basename \$file`~
12072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12073 dldir=$destdir/`dirname \$dlpath`~
12074 test -d \$dldir || mkdir -p \$dldir~
12075 $install_prog $dir/$dlname \$dldir/$dlname'
12076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12077 dlpath=$dir/\$dldll~
12078 $RM \$dlpath'
12079 shlibpath_overrides_runpath=yes
12080 dynamic_linker='Win32 link.exe'
12081 ;;
12082
12083 *)
12084 # Assume MSVC and ICC wrapper
12085 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12086 dynamic_linker='Win32 ld.exe'
12087 ;;
12088 esac
12089 # FIXME: first we should search . and the directory the executable is in
12090 shlibpath_var=PATH
12091 ;;
12092
12093 darwin* | rhapsody*)
12094 dynamic_linker="$host_os dyld"
12095 version_type=darwin
12096 need_lib_prefix=no
12097 need_version=no
12098 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12099 soname_spec='$libname$release$major$shared_ext'
12100 shlibpath_overrides_runpath=yes
12101 shlibpath_var=DYLD_LIBRARY_PATH
12102 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12103
12104 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12105 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12106 ;;
12107
12108 dgux*)
12109 version_type=linux # correct to gnu/linux during the next big refactor
12110 need_lib_prefix=no
12111 need_version=no
12112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12113 soname_spec='$libname$release$shared_ext$major'
12114 shlibpath_var=LD_LIBRARY_PATH
12115 ;;
12116
12117 freebsd* | dragonfly* | midnightbsd*)
12118 # DragonFly does not have aout. When/if they implement a new
12119 # versioning mechanism, adjust this.
12120 if test -x /usr/bin/objformat; then
12121 objformat=`/usr/bin/objformat`
12122 else
12123 case $host_os in
12124 freebsd[23].*) objformat=aout ;;
12125 *) objformat=elf ;;
12126 esac
12127 fi
12128 version_type=freebsd-$objformat
12129 case $version_type in
12130 freebsd-elf*)
12131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12132 soname_spec='$libname$release$shared_ext$major'
12133 need_version=no
12134 need_lib_prefix=no
12135 ;;
12136 freebsd-*)
12137 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12138 need_version=yes
12139 ;;
12140 esac
12141 shlibpath_var=LD_LIBRARY_PATH
12142 case $host_os in
12143 freebsd2.*)
12144 shlibpath_overrides_runpath=yes
12145 ;;
12146 freebsd3.[01]* | freebsdelf3.[01]*)
12147 shlibpath_overrides_runpath=yes
12148 hardcode_into_libs=yes
12149 ;;
12150 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12151 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12152 shlibpath_overrides_runpath=no
12153 hardcode_into_libs=yes
12154 ;;
12155 *) # from 4.6 on, and DragonFly
12156 shlibpath_overrides_runpath=yes
12157 hardcode_into_libs=yes
12158 ;;
12159 esac
12160 ;;
12161
12162 haiku*)
12163 version_type=linux # correct to gnu/linux during the next big refactor
12164 need_lib_prefix=no
12165 need_version=no
12166 dynamic_linker="$host_os runtime_loader"
12167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12168 soname_spec='$libname$release$shared_ext$major'
12169 shlibpath_var=LIBRARY_PATH
12170 shlibpath_overrides_runpath=no
12171 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12172 hardcode_into_libs=yes
12173 ;;
12174
12175 hpux9* | hpux10* | hpux11*)
12176 # Give a soname corresponding to the major version so that dld.sl refuses to
12177 # link against other versions.
12178 version_type=sunos
12179 need_lib_prefix=no
12180 need_version=no
12181 case $host_cpu in
12182 ia64*)
12183 shrext_cmds='.so'
12184 hardcode_into_libs=yes
12185 dynamic_linker="$host_os dld.so"
12186 shlibpath_var=LD_LIBRARY_PATH
12187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12189 soname_spec='$libname$release$shared_ext$major'
12190 if test 32 = "$HPUX_IA64_MODE"; then
12191 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12192 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12193 else
12194 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12195 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12196 fi
12197 ;;
12198 hppa*64*)
12199 shrext_cmds='.sl'
12200 hardcode_into_libs=yes
12201 dynamic_linker="$host_os dld.sl"
12202 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12205 soname_spec='$libname$release$shared_ext$major'
12206 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12208 ;;
12209 *)
12210 shrext_cmds='.sl'
12211 dynamic_linker="$host_os dld.sl"
12212 shlibpath_var=SHLIB_PATH
12213 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12215 soname_spec='$libname$release$shared_ext$major'
12216 ;;
12217 esac
12218 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12219 postinstall_cmds='chmod 555 $lib'
12220 # or fails outright, so override atomically:
12221 install_override_mode=555
12222 ;;
12223
12224 interix[3-9]*)
12225 version_type=linux # correct to gnu/linux during the next big refactor
12226 need_lib_prefix=no
12227 need_version=no
12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229 soname_spec='$libname$release$shared_ext$major'
12230 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12231 shlibpath_var=LD_LIBRARY_PATH
12232 shlibpath_overrides_runpath=no
12233 hardcode_into_libs=yes
12234 ;;
12235
12236 irix5* | irix6* | nonstopux*)
12237 case $host_os in
12238 nonstopux*) version_type=nonstopux ;;
12239 *)
12240 if test yes = "$lt_cv_prog_gnu_ld"; then
12241 version_type=linux # correct to gnu/linux during the next big refactor
12242 else
12243 version_type=irix
12244 fi ;;
12245 esac
12246 need_lib_prefix=no
12247 need_version=no
12248 soname_spec='$libname$release$shared_ext$major'
12249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12250 case $host_os in
12251 irix5* | nonstopux*)
12252 libsuff= shlibsuff=
12253 ;;
12254 *)
12255 case $LD in # libtool.m4 will add one of these switches to LD
12256 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12257 libsuff= shlibsuff= libmagic=32-bit;;
12258 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12259 libsuff=32 shlibsuff=N32 libmagic=N32;;
12260 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12261 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12262 *) libsuff= shlibsuff= libmagic=never-match;;
12263 esac
12264 ;;
12265 esac
12266 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12267 shlibpath_overrides_runpath=no
12268 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12269 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12270 hardcode_into_libs=yes
12271 ;;
12272
12273 # No shared lib support for Linux oldld, aout, or coff.
12274 linux*oldld* | linux*aout* | linux*coff*)
12275 dynamic_linker=no
12276 ;;
12277
12278 linux*android*)
12279 version_type=none # Android doesn't support versioned libraries.
12280 need_lib_prefix=no
12281 need_version=no
12282 library_names_spec='$libname$release$shared_ext'
12283 soname_spec='$libname$release$shared_ext'
12284 finish_cmds=
12285 shlibpath_var=LD_LIBRARY_PATH
12286 shlibpath_overrides_runpath=yes
12287
12288 # This implies no fast_install, which is unacceptable.
12289 # Some rework will be needed to allow for fast_install
12290 # before this can be enabled.
12291 hardcode_into_libs=yes
12292
12293 dynamic_linker='Android linker'
12294 # Don't embed -rpath directories since the linker doesn't support them.
12295 hardcode_libdir_flag_spec='-L$libdir'
12296 ;;
12297
12298 # This must be glibc/ELF.
12299 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12300 version_type=linux # correct to gnu/linux during the next big refactor
12301 need_lib_prefix=no
12302 need_version=no
12303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12304 soname_spec='$libname$release$shared_ext$major'
12305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12306 shlibpath_var=LD_LIBRARY_PATH
12307 shlibpath_overrides_runpath=no
12308
12309 # Some binutils ld are patched to set DT_RUNPATH
12310 if test ${lt_cv_shlibpath_overrides_runpath+y}
12311 then :
12312 printf %s "(cached) " >&6
12313 else case e in #(
12314 e) lt_cv_shlibpath_overrides_runpath=no
12315 save_LDFLAGS=$LDFLAGS
12316 save_libdir=$libdir
12317 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12318 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321
12322 int
12323 main (void)
12324 {
12325
12326 ;
12327 return 0;
12328 }
12329 _ACEOF
12330 if ac_fn_c_try_link "$LINENO"
12331 then :
12332 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12333 then :
12334 lt_cv_shlibpath_overrides_runpath=yes
12335 fi
12336 fi
12337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12338 conftest$ac_exeext conftest.$ac_ext
12339 LDFLAGS=$save_LDFLAGS
12340 libdir=$save_libdir
12341 ;;
12342 esac
12343 fi
12344
12345 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12346
12347 # This implies no fast_install, which is unacceptable.
12348 # Some rework will be needed to allow for fast_install
12349 # before this can be enabled.
12350 hardcode_into_libs=yes
12351
12352 # Ideally, we could use ldconfig to report *all* directores which are
12353 # searched for libraries, however this is still not possible. Aside from not
12354 # being certain /sbin/ldconfig is available, command
12355 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12356 # even though it is searched at run-time. Try to do the best guess by
12357 # appending ld.so.conf contents (and includes) to the search path.
12358 if test -f /etc/ld.so.conf; then
12359 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' ' '`
12360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12361 fi
12362
12363 # We used to test for /lib/ld.so.1 and disable shared libraries on
12364 # powerpc, because MkLinux only supported shared libraries with the
12365 # GNU dynamic linker. Since this was broken with cross compilers,
12366 # most powerpc-linux boxes support dynamic linking these days and
12367 # people can always --disable-shared, the test was removed, and we
12368 # assume the GNU/Linux dynamic linker is in use.
12369 dynamic_linker='GNU/Linux ld.so'
12370 ;;
12371
12372 netbsd*)
12373 version_type=sunos
12374 need_lib_prefix=no
12375 need_version=no
12376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12377 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12379 dynamic_linker='NetBSD (a.out) ld.so'
12380 else
12381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12382 soname_spec='$libname$release$shared_ext$major'
12383 dynamic_linker='NetBSD ld.elf_so'
12384 fi
12385 shlibpath_var=LD_LIBRARY_PATH
12386 shlibpath_overrides_runpath=yes
12387 hardcode_into_libs=yes
12388 ;;
12389
12390 newsos6)
12391 version_type=linux # correct to gnu/linux during the next big refactor
12392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12393 shlibpath_var=LD_LIBRARY_PATH
12394 shlibpath_overrides_runpath=yes
12395 ;;
12396
12397 *nto* | *qnx*)
12398 version_type=qnx
12399 need_lib_prefix=no
12400 need_version=no
12401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12402 soname_spec='$libname$release$shared_ext$major'
12403 shlibpath_var=LD_LIBRARY_PATH
12404 shlibpath_overrides_runpath=no
12405 hardcode_into_libs=yes
12406 dynamic_linker='ldqnx.so'
12407 ;;
12408
12409 openbsd* | bitrig*)
12410 version_type=sunos
12411 sys_lib_dlsearch_path_spec=/usr/lib
12412 need_lib_prefix=no
12413 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12414 need_version=no
12415 else
12416 need_version=yes
12417 fi
12418 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12420 shlibpath_var=LD_LIBRARY_PATH
12421 shlibpath_overrides_runpath=yes
12422 ;;
12423
12424 os2*)
12425 libname_spec='$name'
12426 version_type=windows
12427 shrext_cmds=.dll
12428 need_version=no
12429 need_lib_prefix=no
12430 # OS/2 can only load a DLL with a base name of 8 characters or less.
12431 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12432 v=$($ECHO $release$versuffix | tr -d .-);
12433 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12434 $ECHO $n$v`$shared_ext'
12435 library_names_spec='${libname}_dll.$libext'
12436 dynamic_linker='OS/2 ld.exe'
12437 shlibpath_var=BEGINLIBPATH
12438 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12440 postinstall_cmds='base_file=`basename \$file`~
12441 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12442 dldir=$destdir/`dirname \$dlpath`~
12443 test -d \$dldir || mkdir -p \$dldir~
12444 $install_prog $dir/$dlname \$dldir/$dlname~
12445 chmod a+x \$dldir/$dlname~
12446 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12447 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12448 fi'
12449 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12450 dlpath=$dir/\$dldll~
12451 $RM \$dlpath'
12452 ;;
12453
12454 osf3* | osf4* | osf5*)
12455 version_type=osf
12456 need_lib_prefix=no
12457 need_version=no
12458 soname_spec='$libname$release$shared_ext$major'
12459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12463 ;;
12464
12465 rdos*)
12466 dynamic_linker=no
12467 ;;
12468
12469 solaris*)
12470 version_type=linux # correct to gnu/linux during the next big refactor
12471 need_lib_prefix=no
12472 need_version=no
12473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12474 soname_spec='$libname$release$shared_ext$major'
12475 shlibpath_var=LD_LIBRARY_PATH
12476 shlibpath_overrides_runpath=yes
12477 hardcode_into_libs=yes
12478 # ldd complains unless libraries are executable
12479 postinstall_cmds='chmod +x $lib'
12480 ;;
12481
12482 sunos4*)
12483 version_type=sunos
12484 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12486 shlibpath_var=LD_LIBRARY_PATH
12487 shlibpath_overrides_runpath=yes
12488 if test yes = "$with_gnu_ld"; then
12489 need_lib_prefix=no
12490 fi
12491 need_version=yes
12492 ;;
12493
12494 sysv4 | sysv4.3*)
12495 version_type=linux # correct to gnu/linux during the next big refactor
12496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497 soname_spec='$libname$release$shared_ext$major'
12498 shlibpath_var=LD_LIBRARY_PATH
12499 case $host_vendor in
12500 sni)
12501 shlibpath_overrides_runpath=no
12502 need_lib_prefix=no
12503 runpath_var=LD_RUN_PATH
12504 ;;
12505 siemens)
12506 need_lib_prefix=no
12507 ;;
12508 motorola)
12509 need_lib_prefix=no
12510 need_version=no
12511 shlibpath_overrides_runpath=no
12512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12513 ;;
12514 esac
12515 ;;
12516
12517 sysv4*MP*)
12518 if test -d /usr/nec; then
12519 version_type=linux # correct to gnu/linux during the next big refactor
12520 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12521 soname_spec='$libname$shared_ext.$major'
12522 shlibpath_var=LD_LIBRARY_PATH
12523 fi
12524 ;;
12525
12526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12527 version_type=sco
12528 need_lib_prefix=no
12529 need_version=no
12530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12531 soname_spec='$libname$release$shared_ext$major'
12532 shlibpath_var=LD_LIBRARY_PATH
12533 shlibpath_overrides_runpath=yes
12534 hardcode_into_libs=yes
12535 if test yes = "$with_gnu_ld"; then
12536 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12537 else
12538 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12539 case $host_os in
12540 sco3.2v5*)
12541 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12542 ;;
12543 esac
12544 fi
12545 sys_lib_dlsearch_path_spec='/usr/lib'
12546 ;;
12547
12548 tpf*)
12549 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12550 version_type=linux # correct to gnu/linux during the next big refactor
12551 need_lib_prefix=no
12552 need_version=no
12553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath=no
12556 hardcode_into_libs=yes
12557 ;;
12558
12559 uts4*)
12560 version_type=linux # correct to gnu/linux during the next big refactor
12561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12562 soname_spec='$libname$release$shared_ext$major'
12563 shlibpath_var=LD_LIBRARY_PATH
12564 ;;
12565
12566 *)
12567 dynamic_linker=no
12568 ;;
12569 esac
12570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12571 printf "%s\n" "$dynamic_linker" >&6; }
12572 test no = "$dynamic_linker" && can_build_shared=no
12573
12574 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12575 if test yes = "$GCC"; then
12576 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12577 fi
12578
12579 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12580 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12581 fi
12582
12583 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12584 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12585 fi
12586
12587 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12588 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12589
12590 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12591 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12592
12593 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12594 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12693 printf %s "checking how to hardcode library paths into programs... " >&6; }
12694 hardcode_action=
12695 if test -n "$hardcode_libdir_flag_spec" ||
12696 test -n "$runpath_var" ||
12697 test yes = "$hardcode_automatic"; then
12698
12699 # We can hardcode non-existent directories.
12700 if test no != "$hardcode_direct" &&
12701 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12702 # have to relink, otherwise we might link with an installed library
12703 # when we should be linking with a yet-to-be-installed one
12704 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12705 test no != "$hardcode_minus_L"; then
12706 # Linking always hardcodes the temporary library directory.
12707 hardcode_action=relink
12708 else
12709 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12710 hardcode_action=immediate
12711 fi
12712 else
12713 # We cannot hardcode anything, or else we can only hardcode existing
12714 # directories.
12715 hardcode_action=unsupported
12716 fi
12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12718 printf "%s\n" "$hardcode_action" >&6; }
12719
12720 if test relink = "$hardcode_action" ||
12721 test yes = "$inherit_rpath"; then
12722 # Fast installation is not supported
12723 enable_fast_install=no
12724 elif test yes = "$shlibpath_overrides_runpath" ||
12725 test no = "$enable_shared"; then
12726 # Fast installation is not necessary
12727 enable_fast_install=needless
12728 fi
12729
12730
12731
12732
12733
12734
12735 if test yes != "$enable_dlopen"; then
12736 enable_dlopen=unknown
12737 enable_dlopen_self=unknown
12738 enable_dlopen_self_static=unknown
12739 else
12740 lt_cv_dlopen=no
12741 lt_cv_dlopen_libs=
12742
12743 case $host_os in
12744 beos*)
12745 lt_cv_dlopen=load_add_on
12746 lt_cv_dlopen_libs=
12747 lt_cv_dlopen_self=yes
12748 ;;
12749
12750 mingw* | pw32* | cegcc*)
12751 lt_cv_dlopen=LoadLibrary
12752 lt_cv_dlopen_libs=
12753 ;;
12754
12755 cygwin*)
12756 lt_cv_dlopen=dlopen
12757 lt_cv_dlopen_libs=
12758 ;;
12759
12760 darwin*)
12761 # if libdl is installed we need to link against it
12762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12763 printf %s "checking for dlopen in -ldl... " >&6; }
12764 if test ${ac_cv_lib_dl_dlopen+y}
12765 then :
12766 printf %s "(cached) " >&6
12767 else case e in #(
12768 e) ac_check_lib_save_LIBS=$LIBS
12769 LIBS="-ldl $LIBS"
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772
12773 /* Override any GCC internal prototype to avoid an error.
12774 Use char because int might match the return type of a GCC
12775 builtin and then its argument prototype would still apply.
12776 The 'extern "C"' is for builds by C++ compilers;
12777 although this is not generally supported in C code supporting it here
12778 has little cost and some practical benefit (sr 110532). */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 char dlopen (void);
12783 int
12784 main (void)
12785 {
12786 return dlopen ();
12787 ;
12788 return 0;
12789 }
12790 _ACEOF
12791 if ac_fn_c_try_link "$LINENO"
12792 then :
12793 ac_cv_lib_dl_dlopen=yes
12794 else case e in #(
12795 e) ac_cv_lib_dl_dlopen=no ;;
12796 esac
12797 fi
12798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12799 conftest$ac_exeext conftest.$ac_ext
12800 LIBS=$ac_check_lib_save_LIBS ;;
12801 esac
12802 fi
12803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12804 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12805 if test "x$ac_cv_lib_dl_dlopen" = xyes
12806 then :
12807 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12808 else case e in #(
12809 e)
12810 lt_cv_dlopen=dyld
12811 lt_cv_dlopen_libs=
12812 lt_cv_dlopen_self=yes
12813 ;;
12814 esac
12815 fi
12816
12817 ;;
12818
12819 tpf*)
12820 # Don't try to run any link tests for TPF. We know it's impossible
12821 # because TPF is a cross-compiler, and we know how we open DSOs.
12822 lt_cv_dlopen=dlopen
12823 lt_cv_dlopen_libs=
12824 lt_cv_dlopen_self=no
12825 ;;
12826
12827 *)
12828 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12829 if test "x$ac_cv_func_shl_load" = xyes
12830 then :
12831 lt_cv_dlopen=shl_load
12832 else case e in #(
12833 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12834 printf %s "checking for shl_load in -ldld... " >&6; }
12835 if test ${ac_cv_lib_dld_shl_load+y}
12836 then :
12837 printf %s "(cached) " >&6
12838 else case e in #(
12839 e) ac_check_lib_save_LIBS=$LIBS
12840 LIBS="-ldld $LIBS"
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12843
12844 /* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply.
12847 The 'extern "C"' is for builds by C++ compilers;
12848 although this is not generally supported in C code supporting it here
12849 has little cost and some practical benefit (sr 110532). */
12850 #ifdef __cplusplus
12851 extern "C"
12852 #endif
12853 char shl_load (void);
12854 int
12855 main (void)
12856 {
12857 return shl_load ();
12858 ;
12859 return 0;
12860 }
12861 _ACEOF
12862 if ac_fn_c_try_link "$LINENO"
12863 then :
12864 ac_cv_lib_dld_shl_load=yes
12865 else case e in #(
12866 e) ac_cv_lib_dld_shl_load=no ;;
12867 esac
12868 fi
12869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12870 conftest$ac_exeext conftest.$ac_ext
12871 LIBS=$ac_check_lib_save_LIBS ;;
12872 esac
12873 fi
12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12875 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12876 if test "x$ac_cv_lib_dld_shl_load" = xyes
12877 then :
12878 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12879 else case e in #(
12880 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12881 if test "x$ac_cv_func_dlopen" = xyes
12882 then :
12883 lt_cv_dlopen=dlopen
12884 else case e in #(
12885 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12886 printf %s "checking for dlopen in -ldl... " >&6; }
12887 if test ${ac_cv_lib_dl_dlopen+y}
12888 then :
12889 printf %s "(cached) " >&6
12890 else case e in #(
12891 e) ac_check_lib_save_LIBS=$LIBS
12892 LIBS="-ldl $LIBS"
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12895
12896 /* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply.
12899 The 'extern "C"' is for builds by C++ compilers;
12900 although this is not generally supported in C code supporting it here
12901 has little cost and some practical benefit (sr 110532). */
12902 #ifdef __cplusplus
12903 extern "C"
12904 #endif
12905 char dlopen (void);
12906 int
12907 main (void)
12908 {
12909 return dlopen ();
12910 ;
12911 return 0;
12912 }
12913 _ACEOF
12914 if ac_fn_c_try_link "$LINENO"
12915 then :
12916 ac_cv_lib_dl_dlopen=yes
12917 else case e in #(
12918 e) ac_cv_lib_dl_dlopen=no ;;
12919 esac
12920 fi
12921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12922 conftest$ac_exeext conftest.$ac_ext
12923 LIBS=$ac_check_lib_save_LIBS ;;
12924 esac
12925 fi
12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12927 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12928 if test "x$ac_cv_lib_dl_dlopen" = xyes
12929 then :
12930 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12931 else case e in #(
12932 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12933 printf %s "checking for dlopen in -lsvld... " >&6; }
12934 if test ${ac_cv_lib_svld_dlopen+y}
12935 then :
12936 printf %s "(cached) " >&6
12937 else case e in #(
12938 e) ac_check_lib_save_LIBS=$LIBS
12939 LIBS="-lsvld $LIBS"
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12942
12943 /* Override any GCC internal prototype to avoid an error.
12944 Use char because int might match the return type of a GCC
12945 builtin and then its argument prototype would still apply.
12946 The 'extern "C"' is for builds by C++ compilers;
12947 although this is not generally supported in C code supporting it here
12948 has little cost and some practical benefit (sr 110532). */
12949 #ifdef __cplusplus
12950 extern "C"
12951 #endif
12952 char dlopen (void);
12953 int
12954 main (void)
12955 {
12956 return dlopen ();
12957 ;
12958 return 0;
12959 }
12960 _ACEOF
12961 if ac_fn_c_try_link "$LINENO"
12962 then :
12963 ac_cv_lib_svld_dlopen=yes
12964 else case e in #(
12965 e) ac_cv_lib_svld_dlopen=no ;;
12966 esac
12967 fi
12968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12969 conftest$ac_exeext conftest.$ac_ext
12970 LIBS=$ac_check_lib_save_LIBS ;;
12971 esac
12972 fi
12973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12974 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12975 if test "x$ac_cv_lib_svld_dlopen" = xyes
12976 then :
12977 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12978 else case e in #(
12979 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12980 printf %s "checking for dld_link in -ldld... " >&6; }
12981 if test ${ac_cv_lib_dld_dld_link+y}
12982 then :
12983 printf %s "(cached) " >&6
12984 else case e in #(
12985 e) ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-ldld $LIBS"
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply.
12993 The 'extern "C"' is for builds by C++ compilers;
12994 although this is not generally supported in C code supporting it here
12995 has little cost and some practical benefit (sr 110532). */
12996 #ifdef __cplusplus
12997 extern "C"
12998 #endif
12999 char dld_link (void);
13000 int
13001 main (void)
13002 {
13003 return dld_link ();
13004 ;
13005 return 0;
13006 }
13007 _ACEOF
13008 if ac_fn_c_try_link "$LINENO"
13009 then :
13010 ac_cv_lib_dld_dld_link=yes
13011 else case e in #(
13012 e) ac_cv_lib_dld_dld_link=no ;;
13013 esac
13014 fi
13015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13016 conftest$ac_exeext conftest.$ac_ext
13017 LIBS=$ac_check_lib_save_LIBS ;;
13018 esac
13019 fi
13020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13021 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13022 if test "x$ac_cv_lib_dld_dld_link" = xyes
13023 then :
13024 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13025 fi
13026
13027 ;;
13028 esac
13029 fi
13030
13031 ;;
13032 esac
13033 fi
13034
13035 ;;
13036 esac
13037 fi
13038
13039 ;;
13040 esac
13041 fi
13042
13043 ;;
13044 esac
13045 fi
13046
13047 ;;
13048 esac
13049
13050 if test no = "$lt_cv_dlopen"; then
13051 enable_dlopen=no
13052 else
13053 enable_dlopen=yes
13054 fi
13055
13056 case $lt_cv_dlopen in
13057 dlopen)
13058 save_CPPFLAGS=$CPPFLAGS
13059 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13060
13061 save_LDFLAGS=$LDFLAGS
13062 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13063
13064 save_LIBS=$LIBS
13065 LIBS="$lt_cv_dlopen_libs $LIBS"
13066
13067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13068 printf %s "checking whether a program can dlopen itself... " >&6; }
13069 if test ${lt_cv_dlopen_self+y}
13070 then :
13071 printf %s "(cached) " >&6
13072 else case e in #(
13073 e) if test yes = "$cross_compiling"; then :
13074 lt_cv_dlopen_self=cross
13075 else
13076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13077 lt_status=$lt_dlunknown
13078 cat > conftest.$ac_ext <<_LT_EOF
13079 #line $LINENO "configure"
13080 #include "confdefs.h"
13081
13082 #if HAVE_DLFCN_H
13083 #include <dlfcn.h>
13084 #endif
13085
13086 #include <stdio.h>
13087
13088 #ifdef RTLD_GLOBAL
13089 # define LT_DLGLOBAL RTLD_GLOBAL
13090 #else
13091 # ifdef DL_GLOBAL
13092 # define LT_DLGLOBAL DL_GLOBAL
13093 # else
13094 # define LT_DLGLOBAL 0
13095 # endif
13096 #endif
13097
13098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13099 find out it does not work in some platform. */
13100 #ifndef LT_DLLAZY_OR_NOW
13101 # ifdef RTLD_LAZY
13102 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13103 # else
13104 # ifdef DL_LAZY
13105 # define LT_DLLAZY_OR_NOW DL_LAZY
13106 # else
13107 # ifdef RTLD_NOW
13108 # define LT_DLLAZY_OR_NOW RTLD_NOW
13109 # else
13110 # ifdef DL_NOW
13111 # define LT_DLLAZY_OR_NOW DL_NOW
13112 # else
13113 # define LT_DLLAZY_OR_NOW 0
13114 # endif
13115 # endif
13116 # endif
13117 # endif
13118 #endif
13119
13120 /* When -fvisibility=hidden is used, assume the code has been annotated
13121 correspondingly for the symbols needed. */
13122 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13123 int fnord () __attribute__((visibility("default")));
13124 #endif
13125
13126 int fnord () { return 42; }
13127 int main ()
13128 {
13129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13130 int status = $lt_dlunknown;
13131
13132 if (self)
13133 {
13134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13135 else
13136 {
13137 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13138 else puts (dlerror ());
13139 }
13140 /* dlclose (self); */
13141 }
13142 else
13143 puts (dlerror ());
13144
13145 return status;
13146 }
13147 _LT_EOF
13148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13149 (eval $ac_link) 2>&5
13150 ac_status=$?
13151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13152 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13153 (./conftest; exit; ) >&5 2>/dev/null
13154 lt_status=$?
13155 case x$lt_status in
13156 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13157 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13158 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13159 esac
13160 else :
13161 # compilation failed
13162 lt_cv_dlopen_self=no
13163 fi
13164 fi
13165 rm -fr conftest*
13166
13167 ;;
13168 esac
13169 fi
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13171 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13172
13173 if test yes = "$lt_cv_dlopen_self"; then
13174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13176 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13177 if test ${lt_cv_dlopen_self_static+y}
13178 then :
13179 printf %s "(cached) " >&6
13180 else case e in #(
13181 e) if test yes = "$cross_compiling"; then :
13182 lt_cv_dlopen_self_static=cross
13183 else
13184 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13185 lt_status=$lt_dlunknown
13186 cat > conftest.$ac_ext <<_LT_EOF
13187 #line $LINENO "configure"
13188 #include "confdefs.h"
13189
13190 #if HAVE_DLFCN_H
13191 #include <dlfcn.h>
13192 #endif
13193
13194 #include <stdio.h>
13195
13196 #ifdef RTLD_GLOBAL
13197 # define LT_DLGLOBAL RTLD_GLOBAL
13198 #else
13199 # ifdef DL_GLOBAL
13200 # define LT_DLGLOBAL DL_GLOBAL
13201 # else
13202 # define LT_DLGLOBAL 0
13203 # endif
13204 #endif
13205
13206 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13207 find out it does not work in some platform. */
13208 #ifndef LT_DLLAZY_OR_NOW
13209 # ifdef RTLD_LAZY
13210 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13211 # else
13212 # ifdef DL_LAZY
13213 # define LT_DLLAZY_OR_NOW DL_LAZY
13214 # else
13215 # ifdef RTLD_NOW
13216 # define LT_DLLAZY_OR_NOW RTLD_NOW
13217 # else
13218 # ifdef DL_NOW
13219 # define LT_DLLAZY_OR_NOW DL_NOW
13220 # else
13221 # define LT_DLLAZY_OR_NOW 0
13222 # endif
13223 # endif
13224 # endif
13225 # endif
13226 #endif
13227
13228 /* When -fvisibility=hidden is used, assume the code has been annotated
13229 correspondingly for the symbols needed. */
13230 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13231 int fnord () __attribute__((visibility("default")));
13232 #endif
13233
13234 int fnord () { return 42; }
13235 int main ()
13236 {
13237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13238 int status = $lt_dlunknown;
13239
13240 if (self)
13241 {
13242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13243 else
13244 {
13245 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13246 else puts (dlerror ());
13247 }
13248 /* dlclose (self); */
13249 }
13250 else
13251 puts (dlerror ());
13252
13253 return status;
13254 }
13255 _LT_EOF
13256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13257 (eval $ac_link) 2>&5
13258 ac_status=$?
13259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13260 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13261 (./conftest; exit; ) >&5 2>/dev/null
13262 lt_status=$?
13263 case x$lt_status in
13264 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13265 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13266 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13267 esac
13268 else :
13269 # compilation failed
13270 lt_cv_dlopen_self_static=no
13271 fi
13272 fi
13273 rm -fr conftest*
13274
13275 ;;
13276 esac
13277 fi
13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13279 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13280 fi
13281
13282 CPPFLAGS=$save_CPPFLAGS
13283 LDFLAGS=$save_LDFLAGS
13284 LIBS=$save_LIBS
13285 ;;
13286 esac
13287
13288 case $lt_cv_dlopen_self in
13289 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13290 *) enable_dlopen_self=unknown ;;
13291 esac
13292
13293 case $lt_cv_dlopen_self_static in
13294 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13295 *) enable_dlopen_self_static=unknown ;;
13296 esac
13297 fi
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315 striplib=
13316 old_striplib=
13317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13318 printf %s "checking whether stripping libraries is possible... " >&6; }
13319 if test -z "$STRIP"; then
13320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321 printf "%s\n" "no" >&6; }
13322 else
13323 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13324 old_striplib="$STRIP --strip-debug"
13325 striplib="$STRIP --strip-unneeded"
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13327 printf "%s\n" "yes" >&6; }
13328 else
13329 case $host_os in
13330 darwin*)
13331 # FIXME - insert some real tests, host_os isn't really good enough
13332 striplib="$STRIP -x"
13333 old_striplib="$STRIP -S"
13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13335 printf "%s\n" "yes" >&6; }
13336 ;;
13337 freebsd*)
13338 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13339 old_striplib="$STRIP --strip-debug"
13340 striplib="$STRIP --strip-unneeded"
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13342 printf "%s\n" "yes" >&6; }
13343 else
13344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345 printf "%s\n" "no" >&6; }
13346 fi
13347 ;;
13348 *)
13349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 printf "%s\n" "no" >&6; }
13351 ;;
13352 esac
13353 fi
13354 fi
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367 # Report what library types will actually be built
13368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13369 printf %s "checking if libtool supports shared libraries... " >&6; }
13370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13371 printf "%s\n" "$can_build_shared" >&6; }
13372
13373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13374 printf %s "checking whether to build shared libraries... " >&6; }
13375 test no = "$can_build_shared" && enable_shared=no
13376
13377 # On AIX, shared libraries and static libraries use the same namespace, and
13378 # are all built from PIC.
13379 case $host_os in
13380 aix3*)
13381 test yes = "$enable_shared" && enable_static=no
13382 if test -n "$RANLIB"; then
13383 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13384 postinstall_cmds='$RANLIB $lib'
13385 fi
13386 ;;
13387
13388 aix[4-9]*)
13389 if test ia64 != "$host_cpu"; then
13390 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13391 yes,aix,yes) ;; # shared object as lib.so file only
13392 yes,svr4,*) ;; # shared object as lib.so archive member only
13393 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13394 esac
13395 fi
13396 ;;
13397 esac
13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13399 printf "%s\n" "$enable_shared" >&6; }
13400
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13402 printf %s "checking whether to build static libraries... " >&6; }
13403 # Make sure either enable_shared or enable_static is yes.
13404 test yes = "$enable_shared" || enable_static=yes
13405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13406 printf "%s\n" "$enable_static" >&6; }
13407
13408
13409
13410
13411 fi
13412 ac_ext=c
13413 ac_cpp='$CPP $CPPFLAGS'
13414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13417
13418 CC=$lt_save_CC
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434 ac_config_commands="$ac_config_commands libtool"
13435
13436
13437
13438
13439 # Only expand once:
13440
13441
13442
13443 # Require xorg-macros minimum of 1.16 for unit testing with memory checks
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13456 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13457 if test ${ac_cv_c_undeclared_builtin_options+y}
13458 then :
13459 printf %s "(cached) " >&6
13460 else case e in #(
13461 e) ac_save_CFLAGS=$CFLAGS
13462 ac_cv_c_undeclared_builtin_options='cannot detect'
13463 for ac_arg in '' -fno-builtin; do
13464 CFLAGS="$ac_save_CFLAGS $ac_arg"
13465 # This test program should *not* compile successfully.
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468
13469 int
13470 main (void)
13471 {
13472 (void) strchr;
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 if ac_fn_c_try_compile "$LINENO"
13478 then :
13479
13480 else case e in #(
13481 e) # This test program should compile successfully.
13482 # No library function is consistently available on
13483 # freestanding implementations, so test against a dummy
13484 # declaration. Include always-available headers on the
13485 # off chance that they somehow elicit warnings.
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 #include <float.h>
13489 #include <limits.h>
13490 #include <stdarg.h>
13491 #include <stddef.h>
13492 extern void ac_decl (int, char *);
13493
13494 int
13495 main (void)
13496 {
13497 (void) ac_decl (0, (char *) 0);
13498 (void) ac_decl;
13499
13500 ;
13501 return 0;
13502 }
13503 _ACEOF
13504 if ac_fn_c_try_compile "$LINENO"
13505 then :
13506 if test x"$ac_arg" = x
13507 then :
13508 ac_cv_c_undeclared_builtin_options='none needed'
13509 else case e in #(
13510 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13511 esac
13512 fi
13513 break
13514 fi
13515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13516 esac
13517 fi
13518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13519 done
13520 CFLAGS=$ac_save_CFLAGS
13521 ;;
13522 esac
13523 fi
13524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13525 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13526 case $ac_cv_c_undeclared_builtin_options in #(
13527 'cannot detect') :
13528 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13529 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13530 as_fn_error $? "cannot make $CC report undeclared builtins
13531 See 'config.log' for more details" "$LINENO" 5; } ;; #(
13532 'none needed') :
13533 ac_c_undeclared_builtin_options='' ;; #(
13534 *) :
13535 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13536 esac
13537
13538
13539
13540
13541
13542 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13543 if test "x$ac_cv_have_decl___clang__" = xyes
13544 then :
13545 CLANGCC="yes"
13546 else case e in #(
13547 e) CLANGCC="no" ;;
13548 esac
13549 fi
13550 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13551 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13552 then :
13553 INTELCC="yes"
13554 else case e in #(
13555 e) INTELCC="no" ;;
13556 esac
13557 fi
13558 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13559 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13560 then :
13561 SUNCC="yes"
13562 else case e in #(
13563 e) SUNCC="no" ;;
13564 esac
13565 fi
13566
13567
13568
13569
13570
13571
13572
13573
13574 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13575 if test -n "$ac_tool_prefix"; then
13576 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13577 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579 printf %s "checking for $ac_word... " >&6; }
13580 if test ${ac_cv_path_PKG_CONFIG+y}
13581 then :
13582 printf %s "(cached) " >&6
13583 else case e in #(
13584 e) case $PKG_CONFIG in
13585 [\\/]* | ?:[\\/]*)
13586 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13587 ;;
13588 *)
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13591 do
13592 IFS=$as_save_IFS
13593 case $as_dir in #(((
13594 '') as_dir=./ ;;
13595 */) ;;
13596 *) as_dir=$as_dir/ ;;
13597 esac
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13600 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13602 break 2
13603 fi
13604 done
13605 done
13606 IFS=$as_save_IFS
13607
13608 ;;
13609 esac ;;
13610 esac
13611 fi
13612 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13613 if test -n "$PKG_CONFIG"; then
13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13615 printf "%s\n" "$PKG_CONFIG" >&6; }
13616 else
13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 printf "%s\n" "no" >&6; }
13619 fi
13620
13621
13622 fi
13623 if test -z "$ac_cv_path_PKG_CONFIG"; then
13624 ac_pt_PKG_CONFIG=$PKG_CONFIG
13625 # Extract the first word of "pkg-config", so it can be a program name with args.
13626 set dummy pkg-config; ac_word=$2
13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13628 printf %s "checking for $ac_word... " >&6; }
13629 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13630 then :
13631 printf %s "(cached) " >&6
13632 else case e in #(
13633 e) case $ac_pt_PKG_CONFIG in
13634 [\\/]* | ?:[\\/]*)
13635 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13636 ;;
13637 *)
13638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639 for as_dir in $PATH
13640 do
13641 IFS=$as_save_IFS
13642 case $as_dir in #(((
13643 '') as_dir=./ ;;
13644 */) ;;
13645 *) as_dir=$as_dir/ ;;
13646 esac
13647 for ac_exec_ext in '' $ac_executable_extensions; do
13648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13649 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13651 break 2
13652 fi
13653 done
13654 done
13655 IFS=$as_save_IFS
13656
13657 ;;
13658 esac ;;
13659 esac
13660 fi
13661 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13662 if test -n "$ac_pt_PKG_CONFIG"; then
13663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13664 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13665 else
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667 printf "%s\n" "no" >&6; }
13668 fi
13669
13670 if test "x$ac_pt_PKG_CONFIG" = x; then
13671 PKG_CONFIG=""
13672 else
13673 case $cross_compiling:$ac_tool_warned in
13674 yes:)
13675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13676 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13677 ac_tool_warned=yes ;;
13678 esac
13679 PKG_CONFIG=$ac_pt_PKG_CONFIG
13680 fi
13681 else
13682 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13683 fi
13684
13685 fi
13686 if test -n "$PKG_CONFIG"; then
13687 _pkg_min_version=0.9.0
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13689 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13690 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13692 printf "%s\n" "yes" >&6; }
13693 else
13694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 printf "%s\n" "no" >&6; }
13696 PKG_CONFIG=""
13697 fi
13698 fi
13699
13700
13701
13702
13703
13704 # Check whether --enable-selective-werror was given.
13705 if test ${enable_selective_werror+y}
13706 then :
13707 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13708 else case e in #(
13709 e) SELECTIVE_WERROR=yes ;;
13710 esac
13711 fi
13712
13713
13714
13715
13716
13717 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13718 if test "x$SUNCC" = "xyes"; then
13719 BASE_CFLAGS="-v"
13720 else
13721 BASE_CFLAGS=""
13722 fi
13723
13724 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738 xorg_testset_save_CFLAGS="$CFLAGS"
13739
13740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13743 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13744 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13745 then :
13746 printf %s "(cached) " >&6
13747 else case e in #(
13748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 int i;
13751 _ACEOF
13752 if ac_fn_c_try_compile "$LINENO"
13753 then :
13754 xorg_cv_cc_flag_unknown_warning_option=yes
13755 else case e in #(
13756 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13757 esac
13758 fi
13759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13760 esac
13761 fi
13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13763 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13765 CFLAGS="$xorg_testset_save_CFLAGS"
13766 fi
13767
13768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13771 fi
13772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13775 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13776 then :
13777 printf %s "(cached) " >&6
13778 else case e in #(
13779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781 int i;
13782 _ACEOF
13783 if ac_fn_c_try_compile "$LINENO"
13784 then :
13785 xorg_cv_cc_flag_unused_command_line_argument=yes
13786 else case e in #(
13787 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13788 esac
13789 fi
13790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13791 esac
13792 fi
13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13794 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13796 CFLAGS="$xorg_testset_save_CFLAGS"
13797 fi
13798
13799 found="no"
13800
13801 if test $found = "no" ; then
13802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13804 fi
13805
13806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13808 fi
13809
13810 CFLAGS="$CFLAGS -Wall"
13811
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13813 printf %s "checking if $CC supports -Wall... " >&6; }
13814 cacheid=xorg_cv_cc_flag__Wall
13815 if eval test \${$cacheid+y}
13816 then :
13817 printf %s "(cached) " >&6
13818 else case e in #(
13819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 int i;
13822 int
13823 main (void)
13824 {
13825
13826 ;
13827 return 0;
13828 }
13829 _ACEOF
13830 if ac_fn_c_try_link "$LINENO"
13831 then :
13832 eval $cacheid=yes
13833 else case e in #(
13834 e) eval $cacheid=no ;;
13835 esac
13836 fi
13837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13838 conftest$ac_exeext conftest.$ac_ext ;;
13839 esac
13840 fi
13841
13842
13843 CFLAGS="$xorg_testset_save_CFLAGS"
13844
13845 eval supported=\$$cacheid
13846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13847 printf "%s\n" "$supported" >&6; }
13848 if test "$supported" = "yes" ; then
13849 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13850 found="yes"
13851 fi
13852 fi
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868 xorg_testset_save_CFLAGS="$CFLAGS"
13869
13870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13873 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13874 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13875 then :
13876 printf %s "(cached) " >&6
13877 else case e in #(
13878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 int i;
13881 _ACEOF
13882 if ac_fn_c_try_compile "$LINENO"
13883 then :
13884 xorg_cv_cc_flag_unknown_warning_option=yes
13885 else case e in #(
13886 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13887 esac
13888 fi
13889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13890 esac
13891 fi
13892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13893 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13895 CFLAGS="$xorg_testset_save_CFLAGS"
13896 fi
13897
13898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13901 fi
13902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13904 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13905 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13906 then :
13907 printf %s "(cached) " >&6
13908 else case e in #(
13909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13911 int i;
13912 _ACEOF
13913 if ac_fn_c_try_compile "$LINENO"
13914 then :
13915 xorg_cv_cc_flag_unused_command_line_argument=yes
13916 else case e in #(
13917 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13918 esac
13919 fi
13920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13921 esac
13922 fi
13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13924 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13926 CFLAGS="$xorg_testset_save_CFLAGS"
13927 fi
13928
13929 found="no"
13930
13931 if test $found = "no" ; then
13932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13934 fi
13935
13936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13938 fi
13939
13940 CFLAGS="$CFLAGS -Wpointer-arith"
13941
13942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13943 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13944 cacheid=xorg_cv_cc_flag__Wpointer_arith
13945 if eval test \${$cacheid+y}
13946 then :
13947 printf %s "(cached) " >&6
13948 else case e in #(
13949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13951 int i;
13952 int
13953 main (void)
13954 {
13955
13956 ;
13957 return 0;
13958 }
13959 _ACEOF
13960 if ac_fn_c_try_link "$LINENO"
13961 then :
13962 eval $cacheid=yes
13963 else case e in #(
13964 e) eval $cacheid=no ;;
13965 esac
13966 fi
13967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13968 conftest$ac_exeext conftest.$ac_ext ;;
13969 esac
13970 fi
13971
13972
13973 CFLAGS="$xorg_testset_save_CFLAGS"
13974
13975 eval supported=\$$cacheid
13976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13977 printf "%s\n" "$supported" >&6; }
13978 if test "$supported" = "yes" ; then
13979 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13980 found="yes"
13981 fi
13982 fi
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998 xorg_testset_save_CFLAGS="$CFLAGS"
13999
14000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14003 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14004 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14005 then :
14006 printf %s "(cached) " >&6
14007 else case e in #(
14008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14010 int i;
14011 _ACEOF
14012 if ac_fn_c_try_compile "$LINENO"
14013 then :
14014 xorg_cv_cc_flag_unknown_warning_option=yes
14015 else case e in #(
14016 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14017 esac
14018 fi
14019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14020 esac
14021 fi
14022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14023 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14025 CFLAGS="$xorg_testset_save_CFLAGS"
14026 fi
14027
14028 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14031 fi
14032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14034 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14035 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14036 then :
14037 printf %s "(cached) " >&6
14038 else case e in #(
14039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041 int i;
14042 _ACEOF
14043 if ac_fn_c_try_compile "$LINENO"
14044 then :
14045 xorg_cv_cc_flag_unused_command_line_argument=yes
14046 else case e in #(
14047 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14048 esac
14049 fi
14050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14051 esac
14052 fi
14053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14054 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14056 CFLAGS="$xorg_testset_save_CFLAGS"
14057 fi
14058
14059 found="no"
14060
14061 if test $found = "no" ; then
14062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14064 fi
14065
14066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14068 fi
14069
14070 CFLAGS="$CFLAGS -Wmissing-declarations"
14071
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14073 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14074 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14075 if eval test \${$cacheid+y}
14076 then :
14077 printf %s "(cached) " >&6
14078 else case e in #(
14079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081 int i;
14082 int
14083 main (void)
14084 {
14085
14086 ;
14087 return 0;
14088 }
14089 _ACEOF
14090 if ac_fn_c_try_link "$LINENO"
14091 then :
14092 eval $cacheid=yes
14093 else case e in #(
14094 e) eval $cacheid=no ;;
14095 esac
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14098 conftest$ac_exeext conftest.$ac_ext ;;
14099 esac
14100 fi
14101
14102
14103 CFLAGS="$xorg_testset_save_CFLAGS"
14104
14105 eval supported=\$$cacheid
14106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14107 printf "%s\n" "$supported" >&6; }
14108 if test "$supported" = "yes" ; then
14109 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14110 found="yes"
14111 fi
14112 fi
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128 xorg_testset_save_CFLAGS="$CFLAGS"
14129
14130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14133 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14134 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14135 then :
14136 printf %s "(cached) " >&6
14137 else case e in #(
14138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14140 int i;
14141 _ACEOF
14142 if ac_fn_c_try_compile "$LINENO"
14143 then :
14144 xorg_cv_cc_flag_unknown_warning_option=yes
14145 else case e in #(
14146 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14147 esac
14148 fi
14149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14150 esac
14151 fi
14152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14153 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14155 CFLAGS="$xorg_testset_save_CFLAGS"
14156 fi
14157
14158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14161 fi
14162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14164 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14165 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14166 then :
14167 printf %s "(cached) " >&6
14168 else case e in #(
14169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 int i;
14172 _ACEOF
14173 if ac_fn_c_try_compile "$LINENO"
14174 then :
14175 xorg_cv_cc_flag_unused_command_line_argument=yes
14176 else case e in #(
14177 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14178 esac
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14181 esac
14182 fi
14183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14184 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14186 CFLAGS="$xorg_testset_save_CFLAGS"
14187 fi
14188
14189 found="no"
14190
14191 if test $found = "no" ; then
14192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14194 fi
14195
14196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14198 fi
14199
14200 CFLAGS="$CFLAGS -Wformat=2"
14201
14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14203 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14204 cacheid=xorg_cv_cc_flag__Wformat_2
14205 if eval test \${$cacheid+y}
14206 then :
14207 printf %s "(cached) " >&6
14208 else case e in #(
14209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211 int i;
14212 int
14213 main (void)
14214 {
14215
14216 ;
14217 return 0;
14218 }
14219 _ACEOF
14220 if ac_fn_c_try_link "$LINENO"
14221 then :
14222 eval $cacheid=yes
14223 else case e in #(
14224 e) eval $cacheid=no ;;
14225 esac
14226 fi
14227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14228 conftest$ac_exeext conftest.$ac_ext ;;
14229 esac
14230 fi
14231
14232
14233 CFLAGS="$xorg_testset_save_CFLAGS"
14234
14235 eval supported=\$$cacheid
14236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14237 printf "%s\n" "$supported" >&6; }
14238 if test "$supported" = "yes" ; then
14239 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14240 found="yes"
14241 fi
14242 fi
14243
14244 if test $found = "no" ; then
14245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14247 fi
14248
14249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14251 fi
14252
14253 CFLAGS="$CFLAGS -Wformat"
14254
14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14256 printf %s "checking if $CC supports -Wformat... " >&6; }
14257 cacheid=xorg_cv_cc_flag__Wformat
14258 if eval test \${$cacheid+y}
14259 then :
14260 printf %s "(cached) " >&6
14261 else case e in #(
14262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14264 int i;
14265 int
14266 main (void)
14267 {
14268
14269 ;
14270 return 0;
14271 }
14272 _ACEOF
14273 if ac_fn_c_try_link "$LINENO"
14274 then :
14275 eval $cacheid=yes
14276 else case e in #(
14277 e) eval $cacheid=no ;;
14278 esac
14279 fi
14280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14281 conftest$ac_exeext conftest.$ac_ext ;;
14282 esac
14283 fi
14284
14285
14286 CFLAGS="$xorg_testset_save_CFLAGS"
14287
14288 eval supported=\$$cacheid
14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14290 printf "%s\n" "$supported" >&6; }
14291 if test "$supported" = "yes" ; then
14292 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14293 found="yes"
14294 fi
14295 fi
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313 xorg_testset_save_CFLAGS="$CFLAGS"
14314
14315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14318 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14319 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14320 then :
14321 printf %s "(cached) " >&6
14322 else case e in #(
14323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 int i;
14326 _ACEOF
14327 if ac_fn_c_try_compile "$LINENO"
14328 then :
14329 xorg_cv_cc_flag_unknown_warning_option=yes
14330 else case e in #(
14331 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14332 esac
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14335 esac
14336 fi
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14338 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14340 CFLAGS="$xorg_testset_save_CFLAGS"
14341 fi
14342
14343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14346 fi
14347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14349 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14350 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14351 then :
14352 printf %s "(cached) " >&6
14353 else case e in #(
14354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14356 int i;
14357 _ACEOF
14358 if ac_fn_c_try_compile "$LINENO"
14359 then :
14360 xorg_cv_cc_flag_unused_command_line_argument=yes
14361 else case e in #(
14362 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14363 esac
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14366 esac
14367 fi
14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14369 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14371 CFLAGS="$xorg_testset_save_CFLAGS"
14372 fi
14373
14374 found="no"
14375
14376 if test $found = "no" ; then
14377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14379 fi
14380
14381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14383 fi
14384
14385 CFLAGS="$CFLAGS -Wstrict-prototypes"
14386
14387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14388 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14389 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14390 if eval test \${$cacheid+y}
14391 then :
14392 printf %s "(cached) " >&6
14393 else case e in #(
14394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396 int i;
14397 int
14398 main (void)
14399 {
14400
14401 ;
14402 return 0;
14403 }
14404 _ACEOF
14405 if ac_fn_c_try_link "$LINENO"
14406 then :
14407 eval $cacheid=yes
14408 else case e in #(
14409 e) eval $cacheid=no ;;
14410 esac
14411 fi
14412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14413 conftest$ac_exeext conftest.$ac_ext ;;
14414 esac
14415 fi
14416
14417
14418 CFLAGS="$xorg_testset_save_CFLAGS"
14419
14420 eval supported=\$$cacheid
14421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14422 printf "%s\n" "$supported" >&6; }
14423 if test "$supported" = "yes" ; then
14424 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14425 found="yes"
14426 fi
14427 fi
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443 xorg_testset_save_CFLAGS="$CFLAGS"
14444
14445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14448 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14449 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14450 then :
14451 printf %s "(cached) " >&6
14452 else case e in #(
14453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455 int i;
14456 _ACEOF
14457 if ac_fn_c_try_compile "$LINENO"
14458 then :
14459 xorg_cv_cc_flag_unknown_warning_option=yes
14460 else case e in #(
14461 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14462 esac
14463 fi
14464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14465 esac
14466 fi
14467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14468 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14470 CFLAGS="$xorg_testset_save_CFLAGS"
14471 fi
14472
14473 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14476 fi
14477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14479 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14480 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14481 then :
14482 printf %s "(cached) " >&6
14483 else case e in #(
14484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486 int i;
14487 _ACEOF
14488 if ac_fn_c_try_compile "$LINENO"
14489 then :
14490 xorg_cv_cc_flag_unused_command_line_argument=yes
14491 else case e in #(
14492 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14493 esac
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14496 esac
14497 fi
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14499 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14501 CFLAGS="$xorg_testset_save_CFLAGS"
14502 fi
14503
14504 found="no"
14505
14506 if test $found = "no" ; then
14507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14509 fi
14510
14511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14513 fi
14514
14515 CFLAGS="$CFLAGS -Wmissing-prototypes"
14516
14517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14518 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14519 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14520 if eval test \${$cacheid+y}
14521 then :
14522 printf %s "(cached) " >&6
14523 else case e in #(
14524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 int i;
14527 int
14528 main (void)
14529 {
14530
14531 ;
14532 return 0;
14533 }
14534 _ACEOF
14535 if ac_fn_c_try_link "$LINENO"
14536 then :
14537 eval $cacheid=yes
14538 else case e in #(
14539 e) eval $cacheid=no ;;
14540 esac
14541 fi
14542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14543 conftest$ac_exeext conftest.$ac_ext ;;
14544 esac
14545 fi
14546
14547
14548 CFLAGS="$xorg_testset_save_CFLAGS"
14549
14550 eval supported=\$$cacheid
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14552 printf "%s\n" "$supported" >&6; }
14553 if test "$supported" = "yes" ; then
14554 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14555 found="yes"
14556 fi
14557 fi
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573 xorg_testset_save_CFLAGS="$CFLAGS"
14574
14575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14578 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14579 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14580 then :
14581 printf %s "(cached) " >&6
14582 else case e in #(
14583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585 int i;
14586 _ACEOF
14587 if ac_fn_c_try_compile "$LINENO"
14588 then :
14589 xorg_cv_cc_flag_unknown_warning_option=yes
14590 else case e in #(
14591 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14592 esac
14593 fi
14594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14595 esac
14596 fi
14597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14598 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14600 CFLAGS="$xorg_testset_save_CFLAGS"
14601 fi
14602
14603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14606 fi
14607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14609 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14610 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14611 then :
14612 printf %s "(cached) " >&6
14613 else case e in #(
14614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14616 int i;
14617 _ACEOF
14618 if ac_fn_c_try_compile "$LINENO"
14619 then :
14620 xorg_cv_cc_flag_unused_command_line_argument=yes
14621 else case e in #(
14622 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14623 esac
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14626 esac
14627 fi
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14629 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14631 CFLAGS="$xorg_testset_save_CFLAGS"
14632 fi
14633
14634 found="no"
14635
14636 if test $found = "no" ; then
14637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14639 fi
14640
14641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14643 fi
14644
14645 CFLAGS="$CFLAGS -Wnested-externs"
14646
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14648 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14649 cacheid=xorg_cv_cc_flag__Wnested_externs
14650 if eval test \${$cacheid+y}
14651 then :
14652 printf %s "(cached) " >&6
14653 else case e in #(
14654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14655 /* end confdefs.h. */
14656 int i;
14657 int
14658 main (void)
14659 {
14660
14661 ;
14662 return 0;
14663 }
14664 _ACEOF
14665 if ac_fn_c_try_link "$LINENO"
14666 then :
14667 eval $cacheid=yes
14668 else case e in #(
14669 e) eval $cacheid=no ;;
14670 esac
14671 fi
14672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14673 conftest$ac_exeext conftest.$ac_ext ;;
14674 esac
14675 fi
14676
14677
14678 CFLAGS="$xorg_testset_save_CFLAGS"
14679
14680 eval supported=\$$cacheid
14681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14682 printf "%s\n" "$supported" >&6; }
14683 if test "$supported" = "yes" ; then
14684 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14685 found="yes"
14686 fi
14687 fi
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703 xorg_testset_save_CFLAGS="$CFLAGS"
14704
14705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14708 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14709 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14710 then :
14711 printf %s "(cached) " >&6
14712 else case e in #(
14713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 /* end confdefs.h. */
14715 int i;
14716 _ACEOF
14717 if ac_fn_c_try_compile "$LINENO"
14718 then :
14719 xorg_cv_cc_flag_unknown_warning_option=yes
14720 else case e in #(
14721 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14722 esac
14723 fi
14724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14725 esac
14726 fi
14727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14728 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14730 CFLAGS="$xorg_testset_save_CFLAGS"
14731 fi
14732
14733 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14736 fi
14737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14739 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14740 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14741 then :
14742 printf %s "(cached) " >&6
14743 else case e in #(
14744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h. */
14746 int i;
14747 _ACEOF
14748 if ac_fn_c_try_compile "$LINENO"
14749 then :
14750 xorg_cv_cc_flag_unused_command_line_argument=yes
14751 else case e in #(
14752 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14753 esac
14754 fi
14755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14756 esac
14757 fi
14758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14759 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14761 CFLAGS="$xorg_testset_save_CFLAGS"
14762 fi
14763
14764 found="no"
14765
14766 if test $found = "no" ; then
14767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14769 fi
14770
14771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14773 fi
14774
14775 CFLAGS="$CFLAGS -Wbad-function-cast"
14776
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14778 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14779 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14780 if eval test \${$cacheid+y}
14781 then :
14782 printf %s "(cached) " >&6
14783 else case e in #(
14784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786 int i;
14787 int
14788 main (void)
14789 {
14790
14791 ;
14792 return 0;
14793 }
14794 _ACEOF
14795 if ac_fn_c_try_link "$LINENO"
14796 then :
14797 eval $cacheid=yes
14798 else case e in #(
14799 e) eval $cacheid=no ;;
14800 esac
14801 fi
14802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14803 conftest$ac_exeext conftest.$ac_ext ;;
14804 esac
14805 fi
14806
14807
14808 CFLAGS="$xorg_testset_save_CFLAGS"
14809
14810 eval supported=\$$cacheid
14811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14812 printf "%s\n" "$supported" >&6; }
14813 if test "$supported" = "yes" ; then
14814 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14815 found="yes"
14816 fi
14817 fi
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833 xorg_testset_save_CFLAGS="$CFLAGS"
14834
14835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14840 then :
14841 printf %s "(cached) " >&6
14842 else case e in #(
14843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845 int i;
14846 _ACEOF
14847 if ac_fn_c_try_compile "$LINENO"
14848 then :
14849 xorg_cv_cc_flag_unknown_warning_option=yes
14850 else case e in #(
14851 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14852 esac
14853 fi
14854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14855 esac
14856 fi
14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14860 CFLAGS="$xorg_testset_save_CFLAGS"
14861 fi
14862
14863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14866 fi
14867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14871 then :
14872 printf %s "(cached) " >&6
14873 else case e in #(
14874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876 int i;
14877 _ACEOF
14878 if ac_fn_c_try_compile "$LINENO"
14879 then :
14880 xorg_cv_cc_flag_unused_command_line_argument=yes
14881 else case e in #(
14882 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14883 esac
14884 fi
14885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14886 esac
14887 fi
14888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14889 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14891 CFLAGS="$xorg_testset_save_CFLAGS"
14892 fi
14893
14894 found="no"
14895
14896 if test $found = "no" ; then
14897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14899 fi
14900
14901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14903 fi
14904
14905 CFLAGS="$CFLAGS -Wold-style-definition"
14906
14907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14908 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14909 cacheid=xorg_cv_cc_flag__Wold_style_definition
14910 if eval test \${$cacheid+y}
14911 then :
14912 printf %s "(cached) " >&6
14913 else case e in #(
14914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916 int i;
14917 int
14918 main (void)
14919 {
14920
14921 ;
14922 return 0;
14923 }
14924 _ACEOF
14925 if ac_fn_c_try_link "$LINENO"
14926 then :
14927 eval $cacheid=yes
14928 else case e in #(
14929 e) eval $cacheid=no ;;
14930 esac
14931 fi
14932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14933 conftest$ac_exeext conftest.$ac_ext ;;
14934 esac
14935 fi
14936
14937
14938 CFLAGS="$xorg_testset_save_CFLAGS"
14939
14940 eval supported=\$$cacheid
14941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14942 printf "%s\n" "$supported" >&6; }
14943 if test "$supported" = "yes" ; then
14944 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14945 found="yes"
14946 fi
14947 fi
14948
14949 if test $found = "no" ; then
14950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14952 fi
14953
14954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14956 fi
14957
14958 CFLAGS="$CFLAGS -fd"
14959
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14961 printf %s "checking if $CC supports -fd... " >&6; }
14962 cacheid=xorg_cv_cc_flag__fd
14963 if eval test \${$cacheid+y}
14964 then :
14965 printf %s "(cached) " >&6
14966 else case e in #(
14967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 int i;
14970 int
14971 main (void)
14972 {
14973
14974 ;
14975 return 0;
14976 }
14977 _ACEOF
14978 if ac_fn_c_try_link "$LINENO"
14979 then :
14980 eval $cacheid=yes
14981 else case e in #(
14982 e) eval $cacheid=no ;;
14983 esac
14984 fi
14985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14986 conftest$ac_exeext conftest.$ac_ext ;;
14987 esac
14988 fi
14989
14990
14991 CFLAGS="$xorg_testset_save_CFLAGS"
14992
14993 eval supported=\$$cacheid
14994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14995 printf "%s\n" "$supported" >&6; }
14996 if test "$supported" = "yes" ; then
14997 BASE_CFLAGS="$BASE_CFLAGS -fd"
14998 found="yes"
14999 fi
15000 fi
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016 xorg_testset_save_CFLAGS="$CFLAGS"
15017
15018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15021 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15022 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15023 then :
15024 printf %s "(cached) " >&6
15025 else case e in #(
15026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028 int i;
15029 _ACEOF
15030 if ac_fn_c_try_compile "$LINENO"
15031 then :
15032 xorg_cv_cc_flag_unknown_warning_option=yes
15033 else case e in #(
15034 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15035 esac
15036 fi
15037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15038 esac
15039 fi
15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15041 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15043 CFLAGS="$xorg_testset_save_CFLAGS"
15044 fi
15045
15046 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15049 fi
15050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15052 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15053 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15054 then :
15055 printf %s "(cached) " >&6
15056 else case e in #(
15057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15059 int i;
15060 _ACEOF
15061 if ac_fn_c_try_compile "$LINENO"
15062 then :
15063 xorg_cv_cc_flag_unused_command_line_argument=yes
15064 else case e in #(
15065 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15066 esac
15067 fi
15068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15069 esac
15070 fi
15071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15072 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15074 CFLAGS="$xorg_testset_save_CFLAGS"
15075 fi
15076
15077 found="no"
15078
15079 if test $found = "no" ; then
15080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15082 fi
15083
15084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15086 fi
15087
15088 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15089
15090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
15091 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
15092 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
15093 if eval test \${$cacheid+y}
15094 then :
15095 printf %s "(cached) " >&6
15096 else case e in #(
15097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098 /* end confdefs.h. */
15099 int i;
15100 int
15101 main (void)
15102 {
15103
15104 ;
15105 return 0;
15106 }
15107 _ACEOF
15108 if ac_fn_c_try_link "$LINENO"
15109 then :
15110 eval $cacheid=yes
15111 else case e in #(
15112 e) eval $cacheid=no ;;
15113 esac
15114 fi
15115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15116 conftest$ac_exeext conftest.$ac_ext ;;
15117 esac
15118 fi
15119
15120
15121 CFLAGS="$xorg_testset_save_CFLAGS"
15122
15123 eval supported=\$$cacheid
15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15125 printf "%s\n" "$supported" >&6; }
15126 if test "$supported" = "yes" ; then
15127 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
15128 found="yes"
15129 fi
15130 fi
15131
15132
15133
15134
15135
15136 # This chunk adds additional warnings that could catch undesired effects.
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150 xorg_testset_save_CFLAGS="$CFLAGS"
15151
15152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15155 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15156 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15157 then :
15158 printf %s "(cached) " >&6
15159 else case e in #(
15160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 int i;
15163 _ACEOF
15164 if ac_fn_c_try_compile "$LINENO"
15165 then :
15166 xorg_cv_cc_flag_unknown_warning_option=yes
15167 else case e in #(
15168 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15169 esac
15170 fi
15171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15172 esac
15173 fi
15174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15175 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15177 CFLAGS="$xorg_testset_save_CFLAGS"
15178 fi
15179
15180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15183 fi
15184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15186 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15187 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15188 then :
15189 printf %s "(cached) " >&6
15190 else case e in #(
15191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15193 int i;
15194 _ACEOF
15195 if ac_fn_c_try_compile "$LINENO"
15196 then :
15197 xorg_cv_cc_flag_unused_command_line_argument=yes
15198 else case e in #(
15199 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15200 esac
15201 fi
15202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15203 esac
15204 fi
15205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15206 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15208 CFLAGS="$xorg_testset_save_CFLAGS"
15209 fi
15210
15211 found="no"
15212
15213 if test $found = "no" ; then
15214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15216 fi
15217
15218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15220 fi
15221
15222 CFLAGS="$CFLAGS -Wunused"
15223
15224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15225 printf %s "checking if $CC supports -Wunused... " >&6; }
15226 cacheid=xorg_cv_cc_flag__Wunused
15227 if eval test \${$cacheid+y}
15228 then :
15229 printf %s "(cached) " >&6
15230 else case e in #(
15231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15233 int i;
15234 int
15235 main (void)
15236 {
15237
15238 ;
15239 return 0;
15240 }
15241 _ACEOF
15242 if ac_fn_c_try_link "$LINENO"
15243 then :
15244 eval $cacheid=yes
15245 else case e in #(
15246 e) eval $cacheid=no ;;
15247 esac
15248 fi
15249 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15250 conftest$ac_exeext conftest.$ac_ext ;;
15251 esac
15252 fi
15253
15254
15255 CFLAGS="$xorg_testset_save_CFLAGS"
15256
15257 eval supported=\$$cacheid
15258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15259 printf "%s\n" "$supported" >&6; }
15260 if test "$supported" = "yes" ; then
15261 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15262 found="yes"
15263 fi
15264 fi
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280 xorg_testset_save_CFLAGS="$CFLAGS"
15281
15282 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15285 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15286 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15287 then :
15288 printf %s "(cached) " >&6
15289 else case e in #(
15290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15292 int i;
15293 _ACEOF
15294 if ac_fn_c_try_compile "$LINENO"
15295 then :
15296 xorg_cv_cc_flag_unknown_warning_option=yes
15297 else case e in #(
15298 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15299 esac
15300 fi
15301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15302 esac
15303 fi
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15305 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15307 CFLAGS="$xorg_testset_save_CFLAGS"
15308 fi
15309
15310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15313 fi
15314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15316 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15317 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15318 then :
15319 printf %s "(cached) " >&6
15320 else case e in #(
15321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15323 int i;
15324 _ACEOF
15325 if ac_fn_c_try_compile "$LINENO"
15326 then :
15327 xorg_cv_cc_flag_unused_command_line_argument=yes
15328 else case e in #(
15329 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15330 esac
15331 fi
15332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15333 esac
15334 fi
15335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15336 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15338 CFLAGS="$xorg_testset_save_CFLAGS"
15339 fi
15340
15341 found="no"
15342
15343 if test $found = "no" ; then
15344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15346 fi
15347
15348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15350 fi
15351
15352 CFLAGS="$CFLAGS -Wuninitialized"
15353
15354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15355 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15356 cacheid=xorg_cv_cc_flag__Wuninitialized
15357 if eval test \${$cacheid+y}
15358 then :
15359 printf %s "(cached) " >&6
15360 else case e in #(
15361 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15363 int i;
15364 int
15365 main (void)
15366 {
15367
15368 ;
15369 return 0;
15370 }
15371 _ACEOF
15372 if ac_fn_c_try_link "$LINENO"
15373 then :
15374 eval $cacheid=yes
15375 else case e in #(
15376 e) eval $cacheid=no ;;
15377 esac
15378 fi
15379 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15380 conftest$ac_exeext conftest.$ac_ext ;;
15381 esac
15382 fi
15383
15384
15385 CFLAGS="$xorg_testset_save_CFLAGS"
15386
15387 eval supported=\$$cacheid
15388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15389 printf "%s\n" "$supported" >&6; }
15390 if test "$supported" = "yes" ; then
15391 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15392 found="yes"
15393 fi
15394 fi
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410 xorg_testset_save_CFLAGS="$CFLAGS"
15411
15412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15415 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15416 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15417 then :
15418 printf %s "(cached) " >&6
15419 else case e in #(
15420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15422 int i;
15423 _ACEOF
15424 if ac_fn_c_try_compile "$LINENO"
15425 then :
15426 xorg_cv_cc_flag_unknown_warning_option=yes
15427 else case e in #(
15428 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15429 esac
15430 fi
15431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15432 esac
15433 fi
15434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15435 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15437 CFLAGS="$xorg_testset_save_CFLAGS"
15438 fi
15439
15440 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15443 fi
15444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15446 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15447 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15448 then :
15449 printf %s "(cached) " >&6
15450 else case e in #(
15451 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15453 int i;
15454 _ACEOF
15455 if ac_fn_c_try_compile "$LINENO"
15456 then :
15457 xorg_cv_cc_flag_unused_command_line_argument=yes
15458 else case e in #(
15459 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15460 esac
15461 fi
15462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15463 esac
15464 fi
15465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15466 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15468 CFLAGS="$xorg_testset_save_CFLAGS"
15469 fi
15470
15471 found="no"
15472
15473 if test $found = "no" ; then
15474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15476 fi
15477
15478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15480 fi
15481
15482 CFLAGS="$CFLAGS -Wshadow"
15483
15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15485 printf %s "checking if $CC supports -Wshadow... " >&6; }
15486 cacheid=xorg_cv_cc_flag__Wshadow
15487 if eval test \${$cacheid+y}
15488 then :
15489 printf %s "(cached) " >&6
15490 else case e in #(
15491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15493 int i;
15494 int
15495 main (void)
15496 {
15497
15498 ;
15499 return 0;
15500 }
15501 _ACEOF
15502 if ac_fn_c_try_link "$LINENO"
15503 then :
15504 eval $cacheid=yes
15505 else case e in #(
15506 e) eval $cacheid=no ;;
15507 esac
15508 fi
15509 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15510 conftest$ac_exeext conftest.$ac_ext ;;
15511 esac
15512 fi
15513
15514
15515 CFLAGS="$xorg_testset_save_CFLAGS"
15516
15517 eval supported=\$$cacheid
15518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15519 printf "%s\n" "$supported" >&6; }
15520 if test "$supported" = "yes" ; then
15521 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15522 found="yes"
15523 fi
15524 fi
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540 xorg_testset_save_CFLAGS="$CFLAGS"
15541
15542 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15545 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15546 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15547 then :
15548 printf %s "(cached) " >&6
15549 else case e in #(
15550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15552 int i;
15553 _ACEOF
15554 if ac_fn_c_try_compile "$LINENO"
15555 then :
15556 xorg_cv_cc_flag_unknown_warning_option=yes
15557 else case e in #(
15558 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15559 esac
15560 fi
15561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15562 esac
15563 fi
15564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15565 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15567 CFLAGS="$xorg_testset_save_CFLAGS"
15568 fi
15569
15570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15573 fi
15574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15576 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15577 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15578 then :
15579 printf %s "(cached) " >&6
15580 else case e in #(
15581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583 int i;
15584 _ACEOF
15585 if ac_fn_c_try_compile "$LINENO"
15586 then :
15587 xorg_cv_cc_flag_unused_command_line_argument=yes
15588 else case e in #(
15589 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15590 esac
15591 fi
15592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15593 esac
15594 fi
15595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15596 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15598 CFLAGS="$xorg_testset_save_CFLAGS"
15599 fi
15600
15601 found="no"
15602
15603 if test $found = "no" ; then
15604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606 fi
15607
15608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610 fi
15611
15612 CFLAGS="$CFLAGS -Wmissing-noreturn"
15613
15614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15615 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15616 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15617 if eval test \${$cacheid+y}
15618 then :
15619 printf %s "(cached) " >&6
15620 else case e in #(
15621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15623 int i;
15624 int
15625 main (void)
15626 {
15627
15628 ;
15629 return 0;
15630 }
15631 _ACEOF
15632 if ac_fn_c_try_link "$LINENO"
15633 then :
15634 eval $cacheid=yes
15635 else case e in #(
15636 e) eval $cacheid=no ;;
15637 esac
15638 fi
15639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15640 conftest$ac_exeext conftest.$ac_ext ;;
15641 esac
15642 fi
15643
15644
15645 CFLAGS="$xorg_testset_save_CFLAGS"
15646
15647 eval supported=\$$cacheid
15648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15649 printf "%s\n" "$supported" >&6; }
15650 if test "$supported" = "yes" ; then
15651 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15652 found="yes"
15653 fi
15654 fi
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670 xorg_testset_save_CFLAGS="$CFLAGS"
15671
15672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15675 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15676 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15677 then :
15678 printf %s "(cached) " >&6
15679 else case e in #(
15680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h. */
15682 int i;
15683 _ACEOF
15684 if ac_fn_c_try_compile "$LINENO"
15685 then :
15686 xorg_cv_cc_flag_unknown_warning_option=yes
15687 else case e in #(
15688 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15689 esac
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15692 esac
15693 fi
15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15695 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15697 CFLAGS="$xorg_testset_save_CFLAGS"
15698 fi
15699
15700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703 fi
15704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15706 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15707 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15708 then :
15709 printf %s "(cached) " >&6
15710 else case e in #(
15711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15713 int i;
15714 _ACEOF
15715 if ac_fn_c_try_compile "$LINENO"
15716 then :
15717 xorg_cv_cc_flag_unused_command_line_argument=yes
15718 else case e in #(
15719 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15720 esac
15721 fi
15722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15723 esac
15724 fi
15725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15726 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15728 CFLAGS="$xorg_testset_save_CFLAGS"
15729 fi
15730
15731 found="no"
15732
15733 if test $found = "no" ; then
15734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15736 fi
15737
15738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15740 fi
15741
15742 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15743
15744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15745 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15746 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15747 if eval test \${$cacheid+y}
15748 then :
15749 printf %s "(cached) " >&6
15750 else case e in #(
15751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15753 int i;
15754 int
15755 main (void)
15756 {
15757
15758 ;
15759 return 0;
15760 }
15761 _ACEOF
15762 if ac_fn_c_try_link "$LINENO"
15763 then :
15764 eval $cacheid=yes
15765 else case e in #(
15766 e) eval $cacheid=no ;;
15767 esac
15768 fi
15769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15770 conftest$ac_exeext conftest.$ac_ext ;;
15771 esac
15772 fi
15773
15774
15775 CFLAGS="$xorg_testset_save_CFLAGS"
15776
15777 eval supported=\$$cacheid
15778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15779 printf "%s\n" "$supported" >&6; }
15780 if test "$supported" = "yes" ; then
15781 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15782 found="yes"
15783 fi
15784 fi
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800 xorg_testset_save_CFLAGS="$CFLAGS"
15801
15802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15805 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15806 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15807 then :
15808 printf %s "(cached) " >&6
15809 else case e in #(
15810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15811 /* end confdefs.h. */
15812 int i;
15813 _ACEOF
15814 if ac_fn_c_try_compile "$LINENO"
15815 then :
15816 xorg_cv_cc_flag_unknown_warning_option=yes
15817 else case e in #(
15818 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15819 esac
15820 fi
15821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15822 esac
15823 fi
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15825 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15827 CFLAGS="$xorg_testset_save_CFLAGS"
15828 fi
15829
15830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15833 fi
15834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15836 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15837 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15838 then :
15839 printf %s "(cached) " >&6
15840 else case e in #(
15841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 int i;
15844 _ACEOF
15845 if ac_fn_c_try_compile "$LINENO"
15846 then :
15847 xorg_cv_cc_flag_unused_command_line_argument=yes
15848 else case e in #(
15849 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15850 esac
15851 fi
15852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15853 esac
15854 fi
15855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15856 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15858 CFLAGS="$xorg_testset_save_CFLAGS"
15859 fi
15860
15861 found="no"
15862
15863 if test $found = "no" ; then
15864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15866 fi
15867
15868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15870 fi
15871
15872 CFLAGS="$CFLAGS -Wredundant-decls"
15873
15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15875 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15876 cacheid=xorg_cv_cc_flag__Wredundant_decls
15877 if eval test \${$cacheid+y}
15878 then :
15879 printf %s "(cached) " >&6
15880 else case e in #(
15881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883 int i;
15884 int
15885 main (void)
15886 {
15887
15888 ;
15889 return 0;
15890 }
15891 _ACEOF
15892 if ac_fn_c_try_link "$LINENO"
15893 then :
15894 eval $cacheid=yes
15895 else case e in #(
15896 e) eval $cacheid=no ;;
15897 esac
15898 fi
15899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15900 conftest$ac_exeext conftest.$ac_ext ;;
15901 esac
15902 fi
15903
15904
15905 CFLAGS="$xorg_testset_save_CFLAGS"
15906
15907 eval supported=\$$cacheid
15908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15909 printf "%s\n" "$supported" >&6; }
15910 if test "$supported" = "yes" ; then
15911 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15912 found="yes"
15913 fi
15914 fi
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930 xorg_testset_save_CFLAGS="$CFLAGS"
15931
15932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15935 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15936 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15937 then :
15938 printf %s "(cached) " >&6
15939 else case e in #(
15940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15942 int i;
15943 _ACEOF
15944 if ac_fn_c_try_compile "$LINENO"
15945 then :
15946 xorg_cv_cc_flag_unknown_warning_option=yes
15947 else case e in #(
15948 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15949 esac
15950 fi
15951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15952 esac
15953 fi
15954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15955 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15957 CFLAGS="$xorg_testset_save_CFLAGS"
15958 fi
15959
15960 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15963 fi
15964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15966 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15967 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15968 then :
15969 printf %s "(cached) " >&6
15970 else case e in #(
15971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15973 int i;
15974 _ACEOF
15975 if ac_fn_c_try_compile "$LINENO"
15976 then :
15977 xorg_cv_cc_flag_unused_command_line_argument=yes
15978 else case e in #(
15979 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15980 esac
15981 fi
15982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15983 esac
15984 fi
15985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15986 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15988 CFLAGS="$xorg_testset_save_CFLAGS"
15989 fi
15990
15991 found="no"
15992
15993 if test $found = "no" ; then
15994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15996 fi
15997
15998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16000 fi
16001
16002 CFLAGS="$CFLAGS -Wlogical-op"
16003
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16005 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16006 cacheid=xorg_cv_cc_flag__Wlogical_op
16007 if eval test \${$cacheid+y}
16008 then :
16009 printf %s "(cached) " >&6
16010 else case e in #(
16011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 int i;
16014 int
16015 main (void)
16016 {
16017
16018 ;
16019 return 0;
16020 }
16021 _ACEOF
16022 if ac_fn_c_try_link "$LINENO"
16023 then :
16024 eval $cacheid=yes
16025 else case e in #(
16026 e) eval $cacheid=no ;;
16027 esac
16028 fi
16029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16030 conftest$ac_exeext conftest.$ac_ext ;;
16031 esac
16032 fi
16033
16034
16035 CFLAGS="$xorg_testset_save_CFLAGS"
16036
16037 eval supported=\$$cacheid
16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16039 printf "%s\n" "$supported" >&6; }
16040 if test "$supported" = "yes" ; then
16041 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16042 found="yes"
16043 fi
16044 fi
16045
16046
16047
16048 # These are currently disabled because they are noisy. They will be enabled
16049 # in the future once the codebase is sufficiently modernized to silence
16050 # them. For now, I don't want them to drown out the other warnings.
16051 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16052 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16053 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16054
16055 # Turn some warnings into errors, so we don't accidentally get successful builds
16056 # when there are problems that should be fixed.
16057
16058 if test "x$SELECTIVE_WERROR" = "xyes" ; then
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072 xorg_testset_save_CFLAGS="$CFLAGS"
16073
16074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16077 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16078 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16079 then :
16080 printf %s "(cached) " >&6
16081 else case e in #(
16082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 int i;
16085 _ACEOF
16086 if ac_fn_c_try_compile "$LINENO"
16087 then :
16088 xorg_cv_cc_flag_unknown_warning_option=yes
16089 else case e in #(
16090 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16091 esac
16092 fi
16093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16094 esac
16095 fi
16096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16097 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16099 CFLAGS="$xorg_testset_save_CFLAGS"
16100 fi
16101
16102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16105 fi
16106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16108 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16109 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16110 then :
16111 printf %s "(cached) " >&6
16112 else case e in #(
16113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 int i;
16116 _ACEOF
16117 if ac_fn_c_try_compile "$LINENO"
16118 then :
16119 xorg_cv_cc_flag_unused_command_line_argument=yes
16120 else case e in #(
16121 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16122 esac
16123 fi
16124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16125 esac
16126 fi
16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16128 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16130 CFLAGS="$xorg_testset_save_CFLAGS"
16131 fi
16132
16133 found="no"
16134
16135 if test $found = "no" ; then
16136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16138 fi
16139
16140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16142 fi
16143
16144 CFLAGS="$CFLAGS -Werror=implicit"
16145
16146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16147 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16148 cacheid=xorg_cv_cc_flag__Werror_implicit
16149 if eval test \${$cacheid+y}
16150 then :
16151 printf %s "(cached) " >&6
16152 else case e in #(
16153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16155 int i;
16156 int
16157 main (void)
16158 {
16159
16160 ;
16161 return 0;
16162 }
16163 _ACEOF
16164 if ac_fn_c_try_link "$LINENO"
16165 then :
16166 eval $cacheid=yes
16167 else case e in #(
16168 e) eval $cacheid=no ;;
16169 esac
16170 fi
16171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16172 conftest$ac_exeext conftest.$ac_ext ;;
16173 esac
16174 fi
16175
16176
16177 CFLAGS="$xorg_testset_save_CFLAGS"
16178
16179 eval supported=\$$cacheid
16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16181 printf "%s\n" "$supported" >&6; }
16182 if test "$supported" = "yes" ; then
16183 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16184 found="yes"
16185 fi
16186 fi
16187
16188 if test $found = "no" ; then
16189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16191 fi
16192
16193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16195 fi
16196
16197 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16198
16199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
16200 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16201 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16202 if eval test \${$cacheid+y}
16203 then :
16204 printf %s "(cached) " >&6
16205 else case e in #(
16206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h. */
16208 int i;
16209 int
16210 main (void)
16211 {
16212
16213 ;
16214 return 0;
16215 }
16216 _ACEOF
16217 if ac_fn_c_try_link "$LINENO"
16218 then :
16219 eval $cacheid=yes
16220 else case e in #(
16221 e) eval $cacheid=no ;;
16222 esac
16223 fi
16224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16225 conftest$ac_exeext conftest.$ac_ext ;;
16226 esac
16227 fi
16228
16229
16230 CFLAGS="$xorg_testset_save_CFLAGS"
16231
16232 eval supported=\$$cacheid
16233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16234 printf "%s\n" "$supported" >&6; }
16235 if test "$supported" = "yes" ; then
16236 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16237 found="yes"
16238 fi
16239 fi
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255 xorg_testset_save_CFLAGS="$CFLAGS"
16256
16257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16260 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16261 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16262 then :
16263 printf %s "(cached) " >&6
16264 else case e in #(
16265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16267 int i;
16268 _ACEOF
16269 if ac_fn_c_try_compile "$LINENO"
16270 then :
16271 xorg_cv_cc_flag_unknown_warning_option=yes
16272 else case e in #(
16273 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16274 esac
16275 fi
16276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16277 esac
16278 fi
16279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16280 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16282 CFLAGS="$xorg_testset_save_CFLAGS"
16283 fi
16284
16285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16288 fi
16289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16291 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16292 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16293 then :
16294 printf %s "(cached) " >&6
16295 else case e in #(
16296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16298 int i;
16299 _ACEOF
16300 if ac_fn_c_try_compile "$LINENO"
16301 then :
16302 xorg_cv_cc_flag_unused_command_line_argument=yes
16303 else case e in #(
16304 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16305 esac
16306 fi
16307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16308 esac
16309 fi
16310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16311 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16313 CFLAGS="$xorg_testset_save_CFLAGS"
16314 fi
16315
16316 found="no"
16317
16318 if test $found = "no" ; then
16319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16321 fi
16322
16323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16325 fi
16326
16327 CFLAGS="$CFLAGS -Werror=nonnull"
16328
16329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16330 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16331 cacheid=xorg_cv_cc_flag__Werror_nonnull
16332 if eval test \${$cacheid+y}
16333 then :
16334 printf %s "(cached) " >&6
16335 else case e in #(
16336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h. */
16338 int i;
16339 int
16340 main (void)
16341 {
16342
16343 ;
16344 return 0;
16345 }
16346 _ACEOF
16347 if ac_fn_c_try_link "$LINENO"
16348 then :
16349 eval $cacheid=yes
16350 else case e in #(
16351 e) eval $cacheid=no ;;
16352 esac
16353 fi
16354 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16355 conftest$ac_exeext conftest.$ac_ext ;;
16356 esac
16357 fi
16358
16359
16360 CFLAGS="$xorg_testset_save_CFLAGS"
16361
16362 eval supported=\$$cacheid
16363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16364 printf "%s\n" "$supported" >&6; }
16365 if test "$supported" = "yes" ; then
16366 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16367 found="yes"
16368 fi
16369 fi
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385 xorg_testset_save_CFLAGS="$CFLAGS"
16386
16387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16390 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16391 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16392 then :
16393 printf %s "(cached) " >&6
16394 else case e in #(
16395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h. */
16397 int i;
16398 _ACEOF
16399 if ac_fn_c_try_compile "$LINENO"
16400 then :
16401 xorg_cv_cc_flag_unknown_warning_option=yes
16402 else case e in #(
16403 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16404 esac
16405 fi
16406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16407 esac
16408 fi
16409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16410 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16412 CFLAGS="$xorg_testset_save_CFLAGS"
16413 fi
16414
16415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16418 fi
16419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16421 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16422 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16423 then :
16424 printf %s "(cached) " >&6
16425 else case e in #(
16426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428 int i;
16429 _ACEOF
16430 if ac_fn_c_try_compile "$LINENO"
16431 then :
16432 xorg_cv_cc_flag_unused_command_line_argument=yes
16433 else case e in #(
16434 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16435 esac
16436 fi
16437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16438 esac
16439 fi
16440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16441 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16443 CFLAGS="$xorg_testset_save_CFLAGS"
16444 fi
16445
16446 found="no"
16447
16448 if test $found = "no" ; then
16449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16451 fi
16452
16453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16455 fi
16456
16457 CFLAGS="$CFLAGS -Werror=init-self"
16458
16459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16460 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16461 cacheid=xorg_cv_cc_flag__Werror_init_self
16462 if eval test \${$cacheid+y}
16463 then :
16464 printf %s "(cached) " >&6
16465 else case e in #(
16466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16468 int i;
16469 int
16470 main (void)
16471 {
16472
16473 ;
16474 return 0;
16475 }
16476 _ACEOF
16477 if ac_fn_c_try_link "$LINENO"
16478 then :
16479 eval $cacheid=yes
16480 else case e in #(
16481 e) eval $cacheid=no ;;
16482 esac
16483 fi
16484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16485 conftest$ac_exeext conftest.$ac_ext ;;
16486 esac
16487 fi
16488
16489
16490 CFLAGS="$xorg_testset_save_CFLAGS"
16491
16492 eval supported=\$$cacheid
16493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16494 printf "%s\n" "$supported" >&6; }
16495 if test "$supported" = "yes" ; then
16496 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16497 found="yes"
16498 fi
16499 fi
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515 xorg_testset_save_CFLAGS="$CFLAGS"
16516
16517 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16520 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16521 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16522 then :
16523 printf %s "(cached) " >&6
16524 else case e in #(
16525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h. */
16527 int i;
16528 _ACEOF
16529 if ac_fn_c_try_compile "$LINENO"
16530 then :
16531 xorg_cv_cc_flag_unknown_warning_option=yes
16532 else case e in #(
16533 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16534 esac
16535 fi
16536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16537 esac
16538 fi
16539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16540 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16542 CFLAGS="$xorg_testset_save_CFLAGS"
16543 fi
16544
16545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16548 fi
16549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16551 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16552 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16553 then :
16554 printf %s "(cached) " >&6
16555 else case e in #(
16556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h. */
16558 int i;
16559 _ACEOF
16560 if ac_fn_c_try_compile "$LINENO"
16561 then :
16562 xorg_cv_cc_flag_unused_command_line_argument=yes
16563 else case e in #(
16564 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16565 esac
16566 fi
16567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16568 esac
16569 fi
16570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16571 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16573 CFLAGS="$xorg_testset_save_CFLAGS"
16574 fi
16575
16576 found="no"
16577
16578 if test $found = "no" ; then
16579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16581 fi
16582
16583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16585 fi
16586
16587 CFLAGS="$CFLAGS -Werror=main"
16588
16589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16590 printf %s "checking if $CC supports -Werror=main... " >&6; }
16591 cacheid=xorg_cv_cc_flag__Werror_main
16592 if eval test \${$cacheid+y}
16593 then :
16594 printf %s "(cached) " >&6
16595 else case e in #(
16596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597 /* end confdefs.h. */
16598 int i;
16599 int
16600 main (void)
16601 {
16602
16603 ;
16604 return 0;
16605 }
16606 _ACEOF
16607 if ac_fn_c_try_link "$LINENO"
16608 then :
16609 eval $cacheid=yes
16610 else case e in #(
16611 e) eval $cacheid=no ;;
16612 esac
16613 fi
16614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16615 conftest$ac_exeext conftest.$ac_ext ;;
16616 esac
16617 fi
16618
16619
16620 CFLAGS="$xorg_testset_save_CFLAGS"
16621
16622 eval supported=\$$cacheid
16623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16624 printf "%s\n" "$supported" >&6; }
16625 if test "$supported" = "yes" ; then
16626 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16627 found="yes"
16628 fi
16629 fi
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645 xorg_testset_save_CFLAGS="$CFLAGS"
16646
16647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16651 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16652 then :
16653 printf %s "(cached) " >&6
16654 else case e in #(
16655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16657 int i;
16658 _ACEOF
16659 if ac_fn_c_try_compile "$LINENO"
16660 then :
16661 xorg_cv_cc_flag_unknown_warning_option=yes
16662 else case e in #(
16663 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16664 esac
16665 fi
16666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16667 esac
16668 fi
16669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16670 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16672 CFLAGS="$xorg_testset_save_CFLAGS"
16673 fi
16674
16675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16678 fi
16679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16681 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16682 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16683 then :
16684 printf %s "(cached) " >&6
16685 else case e in #(
16686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16688 int i;
16689 _ACEOF
16690 if ac_fn_c_try_compile "$LINENO"
16691 then :
16692 xorg_cv_cc_flag_unused_command_line_argument=yes
16693 else case e in #(
16694 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16695 esac
16696 fi
16697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16698 esac
16699 fi
16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16701 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16703 CFLAGS="$xorg_testset_save_CFLAGS"
16704 fi
16705
16706 found="no"
16707
16708 if test $found = "no" ; then
16709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16711 fi
16712
16713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16715 fi
16716
16717 CFLAGS="$CFLAGS -Werror=missing-braces"
16718
16719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16720 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16721 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16722 if eval test \${$cacheid+y}
16723 then :
16724 printf %s "(cached) " >&6
16725 else case e in #(
16726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16728 int i;
16729 int
16730 main (void)
16731 {
16732
16733 ;
16734 return 0;
16735 }
16736 _ACEOF
16737 if ac_fn_c_try_link "$LINENO"
16738 then :
16739 eval $cacheid=yes
16740 else case e in #(
16741 e) eval $cacheid=no ;;
16742 esac
16743 fi
16744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16745 conftest$ac_exeext conftest.$ac_ext ;;
16746 esac
16747 fi
16748
16749
16750 CFLAGS="$xorg_testset_save_CFLAGS"
16751
16752 eval supported=\$$cacheid
16753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16754 printf "%s\n" "$supported" >&6; }
16755 if test "$supported" = "yes" ; then
16756 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16757 found="yes"
16758 fi
16759 fi
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775 xorg_testset_save_CFLAGS="$CFLAGS"
16776
16777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16780 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16781 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16782 then :
16783 printf %s "(cached) " >&6
16784 else case e in #(
16785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h. */
16787 int i;
16788 _ACEOF
16789 if ac_fn_c_try_compile "$LINENO"
16790 then :
16791 xorg_cv_cc_flag_unknown_warning_option=yes
16792 else case e in #(
16793 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16794 esac
16795 fi
16796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16797 esac
16798 fi
16799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16800 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16802 CFLAGS="$xorg_testset_save_CFLAGS"
16803 fi
16804
16805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16808 fi
16809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16811 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16812 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16813 then :
16814 printf %s "(cached) " >&6
16815 else case e in #(
16816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16818 int i;
16819 _ACEOF
16820 if ac_fn_c_try_compile "$LINENO"
16821 then :
16822 xorg_cv_cc_flag_unused_command_line_argument=yes
16823 else case e in #(
16824 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16825 esac
16826 fi
16827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16828 esac
16829 fi
16830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16831 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16833 CFLAGS="$xorg_testset_save_CFLAGS"
16834 fi
16835
16836 found="no"
16837
16838 if test $found = "no" ; then
16839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16841 fi
16842
16843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16845 fi
16846
16847 CFLAGS="$CFLAGS -Werror=sequence-point"
16848
16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16850 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16851 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16852 if eval test \${$cacheid+y}
16853 then :
16854 printf %s "(cached) " >&6
16855 else case e in #(
16856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16858 int i;
16859 int
16860 main (void)
16861 {
16862
16863 ;
16864 return 0;
16865 }
16866 _ACEOF
16867 if ac_fn_c_try_link "$LINENO"
16868 then :
16869 eval $cacheid=yes
16870 else case e in #(
16871 e) eval $cacheid=no ;;
16872 esac
16873 fi
16874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16875 conftest$ac_exeext conftest.$ac_ext ;;
16876 esac
16877 fi
16878
16879
16880 CFLAGS="$xorg_testset_save_CFLAGS"
16881
16882 eval supported=\$$cacheid
16883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16884 printf "%s\n" "$supported" >&6; }
16885 if test "$supported" = "yes" ; then
16886 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16887 found="yes"
16888 fi
16889 fi
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905 xorg_testset_save_CFLAGS="$CFLAGS"
16906
16907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16910 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16911 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16912 then :
16913 printf %s "(cached) " >&6
16914 else case e in #(
16915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16917 int i;
16918 _ACEOF
16919 if ac_fn_c_try_compile "$LINENO"
16920 then :
16921 xorg_cv_cc_flag_unknown_warning_option=yes
16922 else case e in #(
16923 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16924 esac
16925 fi
16926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16927 esac
16928 fi
16929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16930 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16932 CFLAGS="$xorg_testset_save_CFLAGS"
16933 fi
16934
16935 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16938 fi
16939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16941 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16942 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16943 then :
16944 printf %s "(cached) " >&6
16945 else case e in #(
16946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16948 int i;
16949 _ACEOF
16950 if ac_fn_c_try_compile "$LINENO"
16951 then :
16952 xorg_cv_cc_flag_unused_command_line_argument=yes
16953 else case e in #(
16954 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16955 esac
16956 fi
16957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16958 esac
16959 fi
16960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16961 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16963 CFLAGS="$xorg_testset_save_CFLAGS"
16964 fi
16965
16966 found="no"
16967
16968 if test $found = "no" ; then
16969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16971 fi
16972
16973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16975 fi
16976
16977 CFLAGS="$CFLAGS -Werror=return-type"
16978
16979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16980 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16981 cacheid=xorg_cv_cc_flag__Werror_return_type
16982 if eval test \${$cacheid+y}
16983 then :
16984 printf %s "(cached) " >&6
16985 else case e in #(
16986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h. */
16988 int i;
16989 int
16990 main (void)
16991 {
16992
16993 ;
16994 return 0;
16995 }
16996 _ACEOF
16997 if ac_fn_c_try_link "$LINENO"
16998 then :
16999 eval $cacheid=yes
17000 else case e in #(
17001 e) eval $cacheid=no ;;
17002 esac
17003 fi
17004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17005 conftest$ac_exeext conftest.$ac_ext ;;
17006 esac
17007 fi
17008
17009
17010 CFLAGS="$xorg_testset_save_CFLAGS"
17011
17012 eval supported=\$$cacheid
17013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17014 printf "%s\n" "$supported" >&6; }
17015 if test "$supported" = "yes" ; then
17016 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17017 found="yes"
17018 fi
17019 fi
17020
17021 if test $found = "no" ; then
17022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17024 fi
17025
17026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17028 fi
17029
17030 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17031
17032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17033 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17034 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17035 if eval test \${$cacheid+y}
17036 then :
17037 printf %s "(cached) " >&6
17038 else case e in #(
17039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17041 int i;
17042 int
17043 main (void)
17044 {
17045
17046 ;
17047 return 0;
17048 }
17049 _ACEOF
17050 if ac_fn_c_try_link "$LINENO"
17051 then :
17052 eval $cacheid=yes
17053 else case e in #(
17054 e) eval $cacheid=no ;;
17055 esac
17056 fi
17057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17058 conftest$ac_exeext conftest.$ac_ext ;;
17059 esac
17060 fi
17061
17062
17063 CFLAGS="$xorg_testset_save_CFLAGS"
17064
17065 eval supported=\$$cacheid
17066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17067 printf "%s\n" "$supported" >&6; }
17068 if test "$supported" = "yes" ; then
17069 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17070 found="yes"
17071 fi
17072 fi
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088 xorg_testset_save_CFLAGS="$CFLAGS"
17089
17090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17093 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17094 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17095 then :
17096 printf %s "(cached) " >&6
17097 else case e in #(
17098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h. */
17100 int i;
17101 _ACEOF
17102 if ac_fn_c_try_compile "$LINENO"
17103 then :
17104 xorg_cv_cc_flag_unknown_warning_option=yes
17105 else case e in #(
17106 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17107 esac
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17110 esac
17111 fi
17112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17113 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17115 CFLAGS="$xorg_testset_save_CFLAGS"
17116 fi
17117
17118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17121 fi
17122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17124 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17125 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17126 then :
17127 printf %s "(cached) " >&6
17128 else case e in #(
17129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17131 int i;
17132 _ACEOF
17133 if ac_fn_c_try_compile "$LINENO"
17134 then :
17135 xorg_cv_cc_flag_unused_command_line_argument=yes
17136 else case e in #(
17137 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17138 esac
17139 fi
17140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17141 esac
17142 fi
17143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17144 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17146 CFLAGS="$xorg_testset_save_CFLAGS"
17147 fi
17148
17149 found="no"
17150
17151 if test $found = "no" ; then
17152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17154 fi
17155
17156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17158 fi
17159
17160 CFLAGS="$CFLAGS -Werror=trigraphs"
17161
17162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17163 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17164 cacheid=xorg_cv_cc_flag__Werror_trigraphs
17165 if eval test \${$cacheid+y}
17166 then :
17167 printf %s "(cached) " >&6
17168 else case e in #(
17169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h. */
17171 int i;
17172 int
17173 main (void)
17174 {
17175
17176 ;
17177 return 0;
17178 }
17179 _ACEOF
17180 if ac_fn_c_try_link "$LINENO"
17181 then :
17182 eval $cacheid=yes
17183 else case e in #(
17184 e) eval $cacheid=no ;;
17185 esac
17186 fi
17187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17188 conftest$ac_exeext conftest.$ac_ext ;;
17189 esac
17190 fi
17191
17192
17193 CFLAGS="$xorg_testset_save_CFLAGS"
17194
17195 eval supported=\$$cacheid
17196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17197 printf "%s\n" "$supported" >&6; }
17198 if test "$supported" = "yes" ; then
17199 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17200 found="yes"
17201 fi
17202 fi
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218 xorg_testset_save_CFLAGS="$CFLAGS"
17219
17220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17223 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17224 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17225 then :
17226 printf %s "(cached) " >&6
17227 else case e in #(
17228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17230 int i;
17231 _ACEOF
17232 if ac_fn_c_try_compile "$LINENO"
17233 then :
17234 xorg_cv_cc_flag_unknown_warning_option=yes
17235 else case e in #(
17236 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17237 esac
17238 fi
17239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17240 esac
17241 fi
17242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17243 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17245 CFLAGS="$xorg_testset_save_CFLAGS"
17246 fi
17247
17248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17251 fi
17252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17254 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17255 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17256 then :
17257 printf %s "(cached) " >&6
17258 else case e in #(
17259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h. */
17261 int i;
17262 _ACEOF
17263 if ac_fn_c_try_compile "$LINENO"
17264 then :
17265 xorg_cv_cc_flag_unused_command_line_argument=yes
17266 else case e in #(
17267 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17268 esac
17269 fi
17270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17271 esac
17272 fi
17273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17274 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17276 CFLAGS="$xorg_testset_save_CFLAGS"
17277 fi
17278
17279 found="no"
17280
17281 if test $found = "no" ; then
17282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17284 fi
17285
17286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17288 fi
17289
17290 CFLAGS="$CFLAGS -Werror=array-bounds"
17291
17292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17293 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17294 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17295 if eval test \${$cacheid+y}
17296 then :
17297 printf %s "(cached) " >&6
17298 else case e in #(
17299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17301 int i;
17302 int
17303 main (void)
17304 {
17305
17306 ;
17307 return 0;
17308 }
17309 _ACEOF
17310 if ac_fn_c_try_link "$LINENO"
17311 then :
17312 eval $cacheid=yes
17313 else case e in #(
17314 e) eval $cacheid=no ;;
17315 esac
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17318 conftest$ac_exeext conftest.$ac_ext ;;
17319 esac
17320 fi
17321
17322
17323 CFLAGS="$xorg_testset_save_CFLAGS"
17324
17325 eval supported=\$$cacheid
17326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17327 printf "%s\n" "$supported" >&6; }
17328 if test "$supported" = "yes" ; then
17329 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17330 found="yes"
17331 fi
17332 fi
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348 xorg_testset_save_CFLAGS="$CFLAGS"
17349
17350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17353 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17354 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17355 then :
17356 printf %s "(cached) " >&6
17357 else case e in #(
17358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359 /* end confdefs.h. */
17360 int i;
17361 _ACEOF
17362 if ac_fn_c_try_compile "$LINENO"
17363 then :
17364 xorg_cv_cc_flag_unknown_warning_option=yes
17365 else case e in #(
17366 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17367 esac
17368 fi
17369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17370 esac
17371 fi
17372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17373 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17375 CFLAGS="$xorg_testset_save_CFLAGS"
17376 fi
17377
17378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17381 fi
17382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17384 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17385 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17386 then :
17387 printf %s "(cached) " >&6
17388 else case e in #(
17389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390 /* end confdefs.h. */
17391 int i;
17392 _ACEOF
17393 if ac_fn_c_try_compile "$LINENO"
17394 then :
17395 xorg_cv_cc_flag_unused_command_line_argument=yes
17396 else case e in #(
17397 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17398 esac
17399 fi
17400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17401 esac
17402 fi
17403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17404 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17406 CFLAGS="$xorg_testset_save_CFLAGS"
17407 fi
17408
17409 found="no"
17410
17411 if test $found = "no" ; then
17412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17414 fi
17415
17416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17418 fi
17419
17420 CFLAGS="$CFLAGS -Werror=write-strings"
17421
17422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17423 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17424 cacheid=xorg_cv_cc_flag__Werror_write_strings
17425 if eval test \${$cacheid+y}
17426 then :
17427 printf %s "(cached) " >&6
17428 else case e in #(
17429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17430 /* end confdefs.h. */
17431 int i;
17432 int
17433 main (void)
17434 {
17435
17436 ;
17437 return 0;
17438 }
17439 _ACEOF
17440 if ac_fn_c_try_link "$LINENO"
17441 then :
17442 eval $cacheid=yes
17443 else case e in #(
17444 e) eval $cacheid=no ;;
17445 esac
17446 fi
17447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17448 conftest$ac_exeext conftest.$ac_ext ;;
17449 esac
17450 fi
17451
17452
17453 CFLAGS="$xorg_testset_save_CFLAGS"
17454
17455 eval supported=\$$cacheid
17456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17457 printf "%s\n" "$supported" >&6; }
17458 if test "$supported" = "yes" ; then
17459 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17460 found="yes"
17461 fi
17462 fi
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478 xorg_testset_save_CFLAGS="$CFLAGS"
17479
17480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17484 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17485 then :
17486 printf %s "(cached) " >&6
17487 else case e in #(
17488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489 /* end confdefs.h. */
17490 int i;
17491 _ACEOF
17492 if ac_fn_c_try_compile "$LINENO"
17493 then :
17494 xorg_cv_cc_flag_unknown_warning_option=yes
17495 else case e in #(
17496 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17497 esac
17498 fi
17499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17500 esac
17501 fi
17502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17503 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17505 CFLAGS="$xorg_testset_save_CFLAGS"
17506 fi
17507
17508 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17511 fi
17512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17514 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17515 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17516 then :
17517 printf %s "(cached) " >&6
17518 else case e in #(
17519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17521 int i;
17522 _ACEOF
17523 if ac_fn_c_try_compile "$LINENO"
17524 then :
17525 xorg_cv_cc_flag_unused_command_line_argument=yes
17526 else case e in #(
17527 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17528 esac
17529 fi
17530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17531 esac
17532 fi
17533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17534 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17536 CFLAGS="$xorg_testset_save_CFLAGS"
17537 fi
17538
17539 found="no"
17540
17541 if test $found = "no" ; then
17542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17544 fi
17545
17546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17548 fi
17549
17550 CFLAGS="$CFLAGS -Werror=address"
17551
17552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17553 printf %s "checking if $CC supports -Werror=address... " >&6; }
17554 cacheid=xorg_cv_cc_flag__Werror_address
17555 if eval test \${$cacheid+y}
17556 then :
17557 printf %s "(cached) " >&6
17558 else case e in #(
17559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560 /* end confdefs.h. */
17561 int i;
17562 int
17563 main (void)
17564 {
17565
17566 ;
17567 return 0;
17568 }
17569 _ACEOF
17570 if ac_fn_c_try_link "$LINENO"
17571 then :
17572 eval $cacheid=yes
17573 else case e in #(
17574 e) eval $cacheid=no ;;
17575 esac
17576 fi
17577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17578 conftest$ac_exeext conftest.$ac_ext ;;
17579 esac
17580 fi
17581
17582
17583 CFLAGS="$xorg_testset_save_CFLAGS"
17584
17585 eval supported=\$$cacheid
17586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17587 printf "%s\n" "$supported" >&6; }
17588 if test "$supported" = "yes" ; then
17589 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17590 found="yes"
17591 fi
17592 fi
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608 xorg_testset_save_CFLAGS="$CFLAGS"
17609
17610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17613 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17614 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17615 then :
17616 printf %s "(cached) " >&6
17617 else case e in #(
17618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17620 int i;
17621 _ACEOF
17622 if ac_fn_c_try_compile "$LINENO"
17623 then :
17624 xorg_cv_cc_flag_unknown_warning_option=yes
17625 else case e in #(
17626 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17627 esac
17628 fi
17629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17630 esac
17631 fi
17632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17633 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17635 CFLAGS="$xorg_testset_save_CFLAGS"
17636 fi
17637
17638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17641 fi
17642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17644 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17645 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17646 then :
17647 printf %s "(cached) " >&6
17648 else case e in #(
17649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650 /* end confdefs.h. */
17651 int i;
17652 _ACEOF
17653 if ac_fn_c_try_compile "$LINENO"
17654 then :
17655 xorg_cv_cc_flag_unused_command_line_argument=yes
17656 else case e in #(
17657 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17658 esac
17659 fi
17660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17661 esac
17662 fi
17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17664 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17666 CFLAGS="$xorg_testset_save_CFLAGS"
17667 fi
17668
17669 found="no"
17670
17671 if test $found = "no" ; then
17672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17674 fi
17675
17676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17678 fi
17679
17680 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17681
17682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17683 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17684 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17685 if eval test \${$cacheid+y}
17686 then :
17687 printf %s "(cached) " >&6
17688 else case e in #(
17689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17690 /* end confdefs.h. */
17691 int i;
17692 int
17693 main (void)
17694 {
17695
17696 ;
17697 return 0;
17698 }
17699 _ACEOF
17700 if ac_fn_c_try_link "$LINENO"
17701 then :
17702 eval $cacheid=yes
17703 else case e in #(
17704 e) eval $cacheid=no ;;
17705 esac
17706 fi
17707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17708 conftest$ac_exeext conftest.$ac_ext ;;
17709 esac
17710 fi
17711
17712
17713 CFLAGS="$xorg_testset_save_CFLAGS"
17714
17715 eval supported=\$$cacheid
17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17717 printf "%s\n" "$supported" >&6; }
17718 if test "$supported" = "yes" ; then
17719 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17720 found="yes"
17721 fi
17722 fi
17723
17724 if test $found = "no" ; then
17725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17727 fi
17728
17729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17731 fi
17732
17733 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17734
17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17736 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17737 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17738 if eval test \${$cacheid+y}
17739 then :
17740 printf %s "(cached) " >&6
17741 else case e in #(
17742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17744 int i;
17745 int
17746 main (void)
17747 {
17748
17749 ;
17750 return 0;
17751 }
17752 _ACEOF
17753 if ac_fn_c_try_link "$LINENO"
17754 then :
17755 eval $cacheid=yes
17756 else case e in #(
17757 e) eval $cacheid=no ;;
17758 esac
17759 fi
17760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17761 conftest$ac_exeext conftest.$ac_ext ;;
17762 esac
17763 fi
17764
17765
17766 CFLAGS="$xorg_testset_save_CFLAGS"
17767
17768 eval supported=\$$cacheid
17769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17770 printf "%s\n" "$supported" >&6; }
17771 if test "$supported" = "yes" ; then
17772 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17773 found="yes"
17774 fi
17775 fi
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791 xorg_testset_save_CFLAGS="$CFLAGS"
17792
17793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17797 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17798 then :
17799 printf %s "(cached) " >&6
17800 else case e in #(
17801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17802 /* end confdefs.h. */
17803 int i;
17804 _ACEOF
17805 if ac_fn_c_try_compile "$LINENO"
17806 then :
17807 xorg_cv_cc_flag_unknown_warning_option=yes
17808 else case e in #(
17809 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17810 esac
17811 fi
17812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17813 esac
17814 fi
17815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17816 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17818 CFLAGS="$xorg_testset_save_CFLAGS"
17819 fi
17820
17821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17824 fi
17825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17827 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17828 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17829 then :
17830 printf %s "(cached) " >&6
17831 else case e in #(
17832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833 /* end confdefs.h. */
17834 int i;
17835 _ACEOF
17836 if ac_fn_c_try_compile "$LINENO"
17837 then :
17838 xorg_cv_cc_flag_unused_command_line_argument=yes
17839 else case e in #(
17840 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17841 esac
17842 fi
17843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17844 esac
17845 fi
17846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17847 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17849 CFLAGS="$xorg_testset_save_CFLAGS"
17850 fi
17851
17852 found="no"
17853
17854 if test $found = "no" ; then
17855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17857 fi
17858
17859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17861 fi
17862
17863 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17864
17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17866 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17867 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17868 if eval test \${$cacheid+y}
17869 then :
17870 printf %s "(cached) " >&6
17871 else case e in #(
17872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h. */
17874 int i;
17875 int
17876 main (void)
17877 {
17878
17879 ;
17880 return 0;
17881 }
17882 _ACEOF
17883 if ac_fn_c_try_link "$LINENO"
17884 then :
17885 eval $cacheid=yes
17886 else case e in #(
17887 e) eval $cacheid=no ;;
17888 esac
17889 fi
17890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17891 conftest$ac_exeext conftest.$ac_ext ;;
17892 esac
17893 fi
17894
17895
17896 CFLAGS="$xorg_testset_save_CFLAGS"
17897
17898 eval supported=\$$cacheid
17899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17900 printf "%s\n" "$supported" >&6; }
17901 if test "$supported" = "yes" ; then
17902 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17903 found="yes"
17904 fi
17905 fi
17906
17907 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17908 else
17909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
17910 printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924 xorg_testset_save_CFLAGS="$CFLAGS"
17925
17926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17929 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17930 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17931 then :
17932 printf %s "(cached) " >&6
17933 else case e in #(
17934 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h. */
17936 int i;
17937 _ACEOF
17938 if ac_fn_c_try_compile "$LINENO"
17939 then :
17940 xorg_cv_cc_flag_unknown_warning_option=yes
17941 else case e in #(
17942 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17943 esac
17944 fi
17945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17946 esac
17947 fi
17948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17949 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17951 CFLAGS="$xorg_testset_save_CFLAGS"
17952 fi
17953
17954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17957 fi
17958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17960 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17961 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17962 then :
17963 printf %s "(cached) " >&6
17964 else case e in #(
17965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h. */
17967 int i;
17968 _ACEOF
17969 if ac_fn_c_try_compile "$LINENO"
17970 then :
17971 xorg_cv_cc_flag_unused_command_line_argument=yes
17972 else case e in #(
17973 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17974 esac
17975 fi
17976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17977 esac
17978 fi
17979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17980 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17982 CFLAGS="$xorg_testset_save_CFLAGS"
17983 fi
17984
17985 found="no"
17986
17987 if test $found = "no" ; then
17988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17990 fi
17991
17992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17994 fi
17995
17996 CFLAGS="$CFLAGS -Wimplicit"
17997
17998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17999 printf %s "checking if $CC supports -Wimplicit... " >&6; }
18000 cacheid=xorg_cv_cc_flag__Wimplicit
18001 if eval test \${$cacheid+y}
18002 then :
18003 printf %s "(cached) " >&6
18004 else case e in #(
18005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006 /* end confdefs.h. */
18007 int i;
18008 int
18009 main (void)
18010 {
18011
18012 ;
18013 return 0;
18014 }
18015 _ACEOF
18016 if ac_fn_c_try_link "$LINENO"
18017 then :
18018 eval $cacheid=yes
18019 else case e in #(
18020 e) eval $cacheid=no ;;
18021 esac
18022 fi
18023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18024 conftest$ac_exeext conftest.$ac_ext ;;
18025 esac
18026 fi
18027
18028
18029 CFLAGS="$xorg_testset_save_CFLAGS"
18030
18031 eval supported=\$$cacheid
18032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18033 printf "%s\n" "$supported" >&6; }
18034 if test "$supported" = "yes" ; then
18035 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18036 found="yes"
18037 fi
18038 fi
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054 xorg_testset_save_CFLAGS="$CFLAGS"
18055
18056 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18059 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18060 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18061 then :
18062 printf %s "(cached) " >&6
18063 else case e in #(
18064 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18065 /* end confdefs.h. */
18066 int i;
18067 _ACEOF
18068 if ac_fn_c_try_compile "$LINENO"
18069 then :
18070 xorg_cv_cc_flag_unknown_warning_option=yes
18071 else case e in #(
18072 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18073 esac
18074 fi
18075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18076 esac
18077 fi
18078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18079 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18081 CFLAGS="$xorg_testset_save_CFLAGS"
18082 fi
18083
18084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18087 fi
18088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18090 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18091 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18092 then :
18093 printf %s "(cached) " >&6
18094 else case e in #(
18095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18097 int i;
18098 _ACEOF
18099 if ac_fn_c_try_compile "$LINENO"
18100 then :
18101 xorg_cv_cc_flag_unused_command_line_argument=yes
18102 else case e in #(
18103 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18104 esac
18105 fi
18106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18107 esac
18108 fi
18109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18110 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18112 CFLAGS="$xorg_testset_save_CFLAGS"
18113 fi
18114
18115 found="no"
18116
18117 if test $found = "no" ; then
18118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18120 fi
18121
18122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18124 fi
18125
18126 CFLAGS="$CFLAGS -Wnonnull"
18127
18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18129 printf %s "checking if $CC supports -Wnonnull... " >&6; }
18130 cacheid=xorg_cv_cc_flag__Wnonnull
18131 if eval test \${$cacheid+y}
18132 then :
18133 printf %s "(cached) " >&6
18134 else case e in #(
18135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136 /* end confdefs.h. */
18137 int i;
18138 int
18139 main (void)
18140 {
18141
18142 ;
18143 return 0;
18144 }
18145 _ACEOF
18146 if ac_fn_c_try_link "$LINENO"
18147 then :
18148 eval $cacheid=yes
18149 else case e in #(
18150 e) eval $cacheid=no ;;
18151 esac
18152 fi
18153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18154 conftest$ac_exeext conftest.$ac_ext ;;
18155 esac
18156 fi
18157
18158
18159 CFLAGS="$xorg_testset_save_CFLAGS"
18160
18161 eval supported=\$$cacheid
18162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18163 printf "%s\n" "$supported" >&6; }
18164 if test "$supported" = "yes" ; then
18165 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18166 found="yes"
18167 fi
18168 fi
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184 xorg_testset_save_CFLAGS="$CFLAGS"
18185
18186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18189 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18190 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18191 then :
18192 printf %s "(cached) " >&6
18193 else case e in #(
18194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h. */
18196 int i;
18197 _ACEOF
18198 if ac_fn_c_try_compile "$LINENO"
18199 then :
18200 xorg_cv_cc_flag_unknown_warning_option=yes
18201 else case e in #(
18202 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18203 esac
18204 fi
18205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18206 esac
18207 fi
18208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18209 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18211 CFLAGS="$xorg_testset_save_CFLAGS"
18212 fi
18213
18214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18217 fi
18218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18220 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18221 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18222 then :
18223 printf %s "(cached) " >&6
18224 else case e in #(
18225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227 int i;
18228 _ACEOF
18229 if ac_fn_c_try_compile "$LINENO"
18230 then :
18231 xorg_cv_cc_flag_unused_command_line_argument=yes
18232 else case e in #(
18233 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18234 esac
18235 fi
18236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18237 esac
18238 fi
18239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18240 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18242 CFLAGS="$xorg_testset_save_CFLAGS"
18243 fi
18244
18245 found="no"
18246
18247 if test $found = "no" ; then
18248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18250 fi
18251
18252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18254 fi
18255
18256 CFLAGS="$CFLAGS -Winit-self"
18257
18258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18259 printf %s "checking if $CC supports -Winit-self... " >&6; }
18260 cacheid=xorg_cv_cc_flag__Winit_self
18261 if eval test \${$cacheid+y}
18262 then :
18263 printf %s "(cached) " >&6
18264 else case e in #(
18265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18267 int i;
18268 int
18269 main (void)
18270 {
18271
18272 ;
18273 return 0;
18274 }
18275 _ACEOF
18276 if ac_fn_c_try_link "$LINENO"
18277 then :
18278 eval $cacheid=yes
18279 else case e in #(
18280 e) eval $cacheid=no ;;
18281 esac
18282 fi
18283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18284 conftest$ac_exeext conftest.$ac_ext ;;
18285 esac
18286 fi
18287
18288
18289 CFLAGS="$xorg_testset_save_CFLAGS"
18290
18291 eval supported=\$$cacheid
18292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18293 printf "%s\n" "$supported" >&6; }
18294 if test "$supported" = "yes" ; then
18295 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18296 found="yes"
18297 fi
18298 fi
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314 xorg_testset_save_CFLAGS="$CFLAGS"
18315
18316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18319 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18320 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18321 then :
18322 printf %s "(cached) " >&6
18323 else case e in #(
18324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 int i;
18327 _ACEOF
18328 if ac_fn_c_try_compile "$LINENO"
18329 then :
18330 xorg_cv_cc_flag_unknown_warning_option=yes
18331 else case e in #(
18332 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18333 esac
18334 fi
18335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18336 esac
18337 fi
18338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18339 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18341 CFLAGS="$xorg_testset_save_CFLAGS"
18342 fi
18343
18344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18347 fi
18348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18350 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18351 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18352 then :
18353 printf %s "(cached) " >&6
18354 else case e in #(
18355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18357 int i;
18358 _ACEOF
18359 if ac_fn_c_try_compile "$LINENO"
18360 then :
18361 xorg_cv_cc_flag_unused_command_line_argument=yes
18362 else case e in #(
18363 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18364 esac
18365 fi
18366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18367 esac
18368 fi
18369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18370 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18372 CFLAGS="$xorg_testset_save_CFLAGS"
18373 fi
18374
18375 found="no"
18376
18377 if test $found = "no" ; then
18378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18380 fi
18381
18382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18384 fi
18385
18386 CFLAGS="$CFLAGS -Wmain"
18387
18388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18389 printf %s "checking if $CC supports -Wmain... " >&6; }
18390 cacheid=xorg_cv_cc_flag__Wmain
18391 if eval test \${$cacheid+y}
18392 then :
18393 printf %s "(cached) " >&6
18394 else case e in #(
18395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396 /* end confdefs.h. */
18397 int i;
18398 int
18399 main (void)
18400 {
18401
18402 ;
18403 return 0;
18404 }
18405 _ACEOF
18406 if ac_fn_c_try_link "$LINENO"
18407 then :
18408 eval $cacheid=yes
18409 else case e in #(
18410 e) eval $cacheid=no ;;
18411 esac
18412 fi
18413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18414 conftest$ac_exeext conftest.$ac_ext ;;
18415 esac
18416 fi
18417
18418
18419 CFLAGS="$xorg_testset_save_CFLAGS"
18420
18421 eval supported=\$$cacheid
18422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18423 printf "%s\n" "$supported" >&6; }
18424 if test "$supported" = "yes" ; then
18425 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18426 found="yes"
18427 fi
18428 fi
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444 xorg_testset_save_CFLAGS="$CFLAGS"
18445
18446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18449 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18450 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18451 then :
18452 printf %s "(cached) " >&6
18453 else case e in #(
18454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456 int i;
18457 _ACEOF
18458 if ac_fn_c_try_compile "$LINENO"
18459 then :
18460 xorg_cv_cc_flag_unknown_warning_option=yes
18461 else case e in #(
18462 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18463 esac
18464 fi
18465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18466 esac
18467 fi
18468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18469 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18471 CFLAGS="$xorg_testset_save_CFLAGS"
18472 fi
18473
18474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18477 fi
18478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18480 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18481 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18482 then :
18483 printf %s "(cached) " >&6
18484 else case e in #(
18485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486 /* end confdefs.h. */
18487 int i;
18488 _ACEOF
18489 if ac_fn_c_try_compile "$LINENO"
18490 then :
18491 xorg_cv_cc_flag_unused_command_line_argument=yes
18492 else case e in #(
18493 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18494 esac
18495 fi
18496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18497 esac
18498 fi
18499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18500 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18502 CFLAGS="$xorg_testset_save_CFLAGS"
18503 fi
18504
18505 found="no"
18506
18507 if test $found = "no" ; then
18508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18510 fi
18511
18512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18514 fi
18515
18516 CFLAGS="$CFLAGS -Wmissing-braces"
18517
18518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18519 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18520 cacheid=xorg_cv_cc_flag__Wmissing_braces
18521 if eval test \${$cacheid+y}
18522 then :
18523 printf %s "(cached) " >&6
18524 else case e in #(
18525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18526 /* end confdefs.h. */
18527 int i;
18528 int
18529 main (void)
18530 {
18531
18532 ;
18533 return 0;
18534 }
18535 _ACEOF
18536 if ac_fn_c_try_link "$LINENO"
18537 then :
18538 eval $cacheid=yes
18539 else case e in #(
18540 e) eval $cacheid=no ;;
18541 esac
18542 fi
18543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18544 conftest$ac_exeext conftest.$ac_ext ;;
18545 esac
18546 fi
18547
18548
18549 CFLAGS="$xorg_testset_save_CFLAGS"
18550
18551 eval supported=\$$cacheid
18552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18553 printf "%s\n" "$supported" >&6; }
18554 if test "$supported" = "yes" ; then
18555 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18556 found="yes"
18557 fi
18558 fi
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574 xorg_testset_save_CFLAGS="$CFLAGS"
18575
18576 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18579 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18580 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18581 then :
18582 printf %s "(cached) " >&6
18583 else case e in #(
18584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h. */
18586 int i;
18587 _ACEOF
18588 if ac_fn_c_try_compile "$LINENO"
18589 then :
18590 xorg_cv_cc_flag_unknown_warning_option=yes
18591 else case e in #(
18592 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18593 esac
18594 fi
18595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18596 esac
18597 fi
18598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18599 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18601 CFLAGS="$xorg_testset_save_CFLAGS"
18602 fi
18603
18604 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18607 fi
18608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18610 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18611 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18612 then :
18613 printf %s "(cached) " >&6
18614 else case e in #(
18615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616 /* end confdefs.h. */
18617 int i;
18618 _ACEOF
18619 if ac_fn_c_try_compile "$LINENO"
18620 then :
18621 xorg_cv_cc_flag_unused_command_line_argument=yes
18622 else case e in #(
18623 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18624 esac
18625 fi
18626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18627 esac
18628 fi
18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18630 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18632 CFLAGS="$xorg_testset_save_CFLAGS"
18633 fi
18634
18635 found="no"
18636
18637 if test $found = "no" ; then
18638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18640 fi
18641
18642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18644 fi
18645
18646 CFLAGS="$CFLAGS -Wsequence-point"
18647
18648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18649 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18650 cacheid=xorg_cv_cc_flag__Wsequence_point
18651 if eval test \${$cacheid+y}
18652 then :
18653 printf %s "(cached) " >&6
18654 else case e in #(
18655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18656 /* end confdefs.h. */
18657 int i;
18658 int
18659 main (void)
18660 {
18661
18662 ;
18663 return 0;
18664 }
18665 _ACEOF
18666 if ac_fn_c_try_link "$LINENO"
18667 then :
18668 eval $cacheid=yes
18669 else case e in #(
18670 e) eval $cacheid=no ;;
18671 esac
18672 fi
18673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18674 conftest$ac_exeext conftest.$ac_ext ;;
18675 esac
18676 fi
18677
18678
18679 CFLAGS="$xorg_testset_save_CFLAGS"
18680
18681 eval supported=\$$cacheid
18682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18683 printf "%s\n" "$supported" >&6; }
18684 if test "$supported" = "yes" ; then
18685 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18686 found="yes"
18687 fi
18688 fi
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704 xorg_testset_save_CFLAGS="$CFLAGS"
18705
18706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18709 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18710 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18711 then :
18712 printf %s "(cached) " >&6
18713 else case e in #(
18714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h. */
18716 int i;
18717 _ACEOF
18718 if ac_fn_c_try_compile "$LINENO"
18719 then :
18720 xorg_cv_cc_flag_unknown_warning_option=yes
18721 else case e in #(
18722 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18723 esac
18724 fi
18725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18726 esac
18727 fi
18728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18729 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18731 CFLAGS="$xorg_testset_save_CFLAGS"
18732 fi
18733
18734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18737 fi
18738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18740 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18741 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18742 then :
18743 printf %s "(cached) " >&6
18744 else case e in #(
18745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h. */
18747 int i;
18748 _ACEOF
18749 if ac_fn_c_try_compile "$LINENO"
18750 then :
18751 xorg_cv_cc_flag_unused_command_line_argument=yes
18752 else case e in #(
18753 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18754 esac
18755 fi
18756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18757 esac
18758 fi
18759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18760 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18762 CFLAGS="$xorg_testset_save_CFLAGS"
18763 fi
18764
18765 found="no"
18766
18767 if test $found = "no" ; then
18768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18770 fi
18771
18772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18774 fi
18775
18776 CFLAGS="$CFLAGS -Wreturn-type"
18777
18778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18779 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18780 cacheid=xorg_cv_cc_flag__Wreturn_type
18781 if eval test \${$cacheid+y}
18782 then :
18783 printf %s "(cached) " >&6
18784 else case e in #(
18785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18786 /* end confdefs.h. */
18787 int i;
18788 int
18789 main (void)
18790 {
18791
18792 ;
18793 return 0;
18794 }
18795 _ACEOF
18796 if ac_fn_c_try_link "$LINENO"
18797 then :
18798 eval $cacheid=yes
18799 else case e in #(
18800 e) eval $cacheid=no ;;
18801 esac
18802 fi
18803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18804 conftest$ac_exeext conftest.$ac_ext ;;
18805 esac
18806 fi
18807
18808
18809 CFLAGS="$xorg_testset_save_CFLAGS"
18810
18811 eval supported=\$$cacheid
18812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18813 printf "%s\n" "$supported" >&6; }
18814 if test "$supported" = "yes" ; then
18815 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18816 found="yes"
18817 fi
18818 fi
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834 xorg_testset_save_CFLAGS="$CFLAGS"
18835
18836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18839 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18840 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18841 then :
18842 printf %s "(cached) " >&6
18843 else case e in #(
18844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18845 /* end confdefs.h. */
18846 int i;
18847 _ACEOF
18848 if ac_fn_c_try_compile "$LINENO"
18849 then :
18850 xorg_cv_cc_flag_unknown_warning_option=yes
18851 else case e in #(
18852 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18853 esac
18854 fi
18855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18856 esac
18857 fi
18858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18859 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18861 CFLAGS="$xorg_testset_save_CFLAGS"
18862 fi
18863
18864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18867 fi
18868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18870 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18871 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18872 then :
18873 printf %s "(cached) " >&6
18874 else case e in #(
18875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h. */
18877 int i;
18878 _ACEOF
18879 if ac_fn_c_try_compile "$LINENO"
18880 then :
18881 xorg_cv_cc_flag_unused_command_line_argument=yes
18882 else case e in #(
18883 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18884 esac
18885 fi
18886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18887 esac
18888 fi
18889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18890 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18892 CFLAGS="$xorg_testset_save_CFLAGS"
18893 fi
18894
18895 found="no"
18896
18897 if test $found = "no" ; then
18898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18900 fi
18901
18902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18904 fi
18905
18906 CFLAGS="$CFLAGS -Wtrigraphs"
18907
18908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18909 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18910 cacheid=xorg_cv_cc_flag__Wtrigraphs
18911 if eval test \${$cacheid+y}
18912 then :
18913 printf %s "(cached) " >&6
18914 else case e in #(
18915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18917 int i;
18918 int
18919 main (void)
18920 {
18921
18922 ;
18923 return 0;
18924 }
18925 _ACEOF
18926 if ac_fn_c_try_link "$LINENO"
18927 then :
18928 eval $cacheid=yes
18929 else case e in #(
18930 e) eval $cacheid=no ;;
18931 esac
18932 fi
18933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18934 conftest$ac_exeext conftest.$ac_ext ;;
18935 esac
18936 fi
18937
18938
18939 CFLAGS="$xorg_testset_save_CFLAGS"
18940
18941 eval supported=\$$cacheid
18942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18943 printf "%s\n" "$supported" >&6; }
18944 if test "$supported" = "yes" ; then
18945 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18946 found="yes"
18947 fi
18948 fi
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964 xorg_testset_save_CFLAGS="$CFLAGS"
18965
18966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18969 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18970 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18971 then :
18972 printf %s "(cached) " >&6
18973 else case e in #(
18974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18975 /* end confdefs.h. */
18976 int i;
18977 _ACEOF
18978 if ac_fn_c_try_compile "$LINENO"
18979 then :
18980 xorg_cv_cc_flag_unknown_warning_option=yes
18981 else case e in #(
18982 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18983 esac
18984 fi
18985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18986 esac
18987 fi
18988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18989 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18991 CFLAGS="$xorg_testset_save_CFLAGS"
18992 fi
18993
18994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18997 fi
18998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19000 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19001 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19002 then :
19003 printf %s "(cached) " >&6
19004 else case e in #(
19005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19006 /* end confdefs.h. */
19007 int i;
19008 _ACEOF
19009 if ac_fn_c_try_compile "$LINENO"
19010 then :
19011 xorg_cv_cc_flag_unused_command_line_argument=yes
19012 else case e in #(
19013 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19014 esac
19015 fi
19016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19017 esac
19018 fi
19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19020 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19022 CFLAGS="$xorg_testset_save_CFLAGS"
19023 fi
19024
19025 found="no"
19026
19027 if test $found = "no" ; then
19028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19030 fi
19031
19032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19034 fi
19035
19036 CFLAGS="$CFLAGS -Warray-bounds"
19037
19038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19039 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19040 cacheid=xorg_cv_cc_flag__Warray_bounds
19041 if eval test \${$cacheid+y}
19042 then :
19043 printf %s "(cached) " >&6
19044 else case e in #(
19045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19047 int i;
19048 int
19049 main (void)
19050 {
19051
19052 ;
19053 return 0;
19054 }
19055 _ACEOF
19056 if ac_fn_c_try_link "$LINENO"
19057 then :
19058 eval $cacheid=yes
19059 else case e in #(
19060 e) eval $cacheid=no ;;
19061 esac
19062 fi
19063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19064 conftest$ac_exeext conftest.$ac_ext ;;
19065 esac
19066 fi
19067
19068
19069 CFLAGS="$xorg_testset_save_CFLAGS"
19070
19071 eval supported=\$$cacheid
19072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19073 printf "%s\n" "$supported" >&6; }
19074 if test "$supported" = "yes" ; then
19075 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19076 found="yes"
19077 fi
19078 fi
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094 xorg_testset_save_CFLAGS="$CFLAGS"
19095
19096 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19099 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19100 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19101 then :
19102 printf %s "(cached) " >&6
19103 else case e in #(
19104 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19105 /* end confdefs.h. */
19106 int i;
19107 _ACEOF
19108 if ac_fn_c_try_compile "$LINENO"
19109 then :
19110 xorg_cv_cc_flag_unknown_warning_option=yes
19111 else case e in #(
19112 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19113 esac
19114 fi
19115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19116 esac
19117 fi
19118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19119 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19121 CFLAGS="$xorg_testset_save_CFLAGS"
19122 fi
19123
19124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19127 fi
19128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19130 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19131 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19132 then :
19133 printf %s "(cached) " >&6
19134 else case e in #(
19135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136 /* end confdefs.h. */
19137 int i;
19138 _ACEOF
19139 if ac_fn_c_try_compile "$LINENO"
19140 then :
19141 xorg_cv_cc_flag_unused_command_line_argument=yes
19142 else case e in #(
19143 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19144 esac
19145 fi
19146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19147 esac
19148 fi
19149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19150 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19152 CFLAGS="$xorg_testset_save_CFLAGS"
19153 fi
19154
19155 found="no"
19156
19157 if test $found = "no" ; then
19158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19160 fi
19161
19162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19164 fi
19165
19166 CFLAGS="$CFLAGS -Wwrite-strings"
19167
19168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19169 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19170 cacheid=xorg_cv_cc_flag__Wwrite_strings
19171 if eval test \${$cacheid+y}
19172 then :
19173 printf %s "(cached) " >&6
19174 else case e in #(
19175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h. */
19177 int i;
19178 int
19179 main (void)
19180 {
19181
19182 ;
19183 return 0;
19184 }
19185 _ACEOF
19186 if ac_fn_c_try_link "$LINENO"
19187 then :
19188 eval $cacheid=yes
19189 else case e in #(
19190 e) eval $cacheid=no ;;
19191 esac
19192 fi
19193 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19194 conftest$ac_exeext conftest.$ac_ext ;;
19195 esac
19196 fi
19197
19198
19199 CFLAGS="$xorg_testset_save_CFLAGS"
19200
19201 eval supported=\$$cacheid
19202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19203 printf "%s\n" "$supported" >&6; }
19204 if test "$supported" = "yes" ; then
19205 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19206 found="yes"
19207 fi
19208 fi
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224 xorg_testset_save_CFLAGS="$CFLAGS"
19225
19226 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19229 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19230 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19231 then :
19232 printf %s "(cached) " >&6
19233 else case e in #(
19234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235 /* end confdefs.h. */
19236 int i;
19237 _ACEOF
19238 if ac_fn_c_try_compile "$LINENO"
19239 then :
19240 xorg_cv_cc_flag_unknown_warning_option=yes
19241 else case e in #(
19242 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19243 esac
19244 fi
19245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19246 esac
19247 fi
19248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19249 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19251 CFLAGS="$xorg_testset_save_CFLAGS"
19252 fi
19253
19254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19257 fi
19258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19260 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19261 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19262 then :
19263 printf %s "(cached) " >&6
19264 else case e in #(
19265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19266 /* end confdefs.h. */
19267 int i;
19268 _ACEOF
19269 if ac_fn_c_try_compile "$LINENO"
19270 then :
19271 xorg_cv_cc_flag_unused_command_line_argument=yes
19272 else case e in #(
19273 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19274 esac
19275 fi
19276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19277 esac
19278 fi
19279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19280 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19282 CFLAGS="$xorg_testset_save_CFLAGS"
19283 fi
19284
19285 found="no"
19286
19287 if test $found = "no" ; then
19288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19290 fi
19291
19292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19294 fi
19295
19296 CFLAGS="$CFLAGS -Waddress"
19297
19298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19299 printf %s "checking if $CC supports -Waddress... " >&6; }
19300 cacheid=xorg_cv_cc_flag__Waddress
19301 if eval test \${$cacheid+y}
19302 then :
19303 printf %s "(cached) " >&6
19304 else case e in #(
19305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306 /* end confdefs.h. */
19307 int i;
19308 int
19309 main (void)
19310 {
19311
19312 ;
19313 return 0;
19314 }
19315 _ACEOF
19316 if ac_fn_c_try_link "$LINENO"
19317 then :
19318 eval $cacheid=yes
19319 else case e in #(
19320 e) eval $cacheid=no ;;
19321 esac
19322 fi
19323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19324 conftest$ac_exeext conftest.$ac_ext ;;
19325 esac
19326 fi
19327
19328
19329 CFLAGS="$xorg_testset_save_CFLAGS"
19330
19331 eval supported=\$$cacheid
19332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19333 printf "%s\n" "$supported" >&6; }
19334 if test "$supported" = "yes" ; then
19335 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19336 found="yes"
19337 fi
19338 fi
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354 xorg_testset_save_CFLAGS="$CFLAGS"
19355
19356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19359 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19360 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19361 then :
19362 printf %s "(cached) " >&6
19363 else case e in #(
19364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h. */
19366 int i;
19367 _ACEOF
19368 if ac_fn_c_try_compile "$LINENO"
19369 then :
19370 xorg_cv_cc_flag_unknown_warning_option=yes
19371 else case e in #(
19372 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19373 esac
19374 fi
19375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19376 esac
19377 fi
19378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19379 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19381 CFLAGS="$xorg_testset_save_CFLAGS"
19382 fi
19383
19384 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19387 fi
19388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19390 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19391 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19392 then :
19393 printf %s "(cached) " >&6
19394 else case e in #(
19395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19396 /* end confdefs.h. */
19397 int i;
19398 _ACEOF
19399 if ac_fn_c_try_compile "$LINENO"
19400 then :
19401 xorg_cv_cc_flag_unused_command_line_argument=yes
19402 else case e in #(
19403 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19404 esac
19405 fi
19406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19407 esac
19408 fi
19409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19410 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19412 CFLAGS="$xorg_testset_save_CFLAGS"
19413 fi
19414
19415 found="no"
19416
19417 if test $found = "no" ; then
19418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19420 fi
19421
19422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19424 fi
19425
19426 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19427
19428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19429 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19430 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19431 if eval test \${$cacheid+y}
19432 then :
19433 printf %s "(cached) " >&6
19434 else case e in #(
19435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436 /* end confdefs.h. */
19437 int i;
19438 int
19439 main (void)
19440 {
19441
19442 ;
19443 return 0;
19444 }
19445 _ACEOF
19446 if ac_fn_c_try_link "$LINENO"
19447 then :
19448 eval $cacheid=yes
19449 else case e in #(
19450 e) eval $cacheid=no ;;
19451 esac
19452 fi
19453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19454 conftest$ac_exeext conftest.$ac_ext ;;
19455 esac
19456 fi
19457
19458
19459 CFLAGS="$xorg_testset_save_CFLAGS"
19460
19461 eval supported=\$$cacheid
19462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19463 printf "%s\n" "$supported" >&6; }
19464 if test "$supported" = "yes" ; then
19465 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19466 found="yes"
19467 fi
19468 fi
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484 xorg_testset_save_CFLAGS="$CFLAGS"
19485
19486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19489 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19490 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19491 then :
19492 printf %s "(cached) " >&6
19493 else case e in #(
19494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19496 int i;
19497 _ACEOF
19498 if ac_fn_c_try_compile "$LINENO"
19499 then :
19500 xorg_cv_cc_flag_unknown_warning_option=yes
19501 else case e in #(
19502 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19503 esac
19504 fi
19505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19506 esac
19507 fi
19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19509 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19511 CFLAGS="$xorg_testset_save_CFLAGS"
19512 fi
19513
19514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19517 fi
19518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19520 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19521 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19522 then :
19523 printf %s "(cached) " >&6
19524 else case e in #(
19525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19526 /* end confdefs.h. */
19527 int i;
19528 _ACEOF
19529 if ac_fn_c_try_compile "$LINENO"
19530 then :
19531 xorg_cv_cc_flag_unused_command_line_argument=yes
19532 else case e in #(
19533 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19534 esac
19535 fi
19536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19537 esac
19538 fi
19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19540 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19542 CFLAGS="$xorg_testset_save_CFLAGS"
19543 fi
19544
19545 found="no"
19546
19547 if test $found = "no" ; then
19548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19550 fi
19551
19552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19554 fi
19555
19556 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19557
19558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19559 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19560 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19561 if eval test \${$cacheid+y}
19562 then :
19563 printf %s "(cached) " >&6
19564 else case e in #(
19565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566 /* end confdefs.h. */
19567 int i;
19568 int
19569 main (void)
19570 {
19571
19572 ;
19573 return 0;
19574 }
19575 _ACEOF
19576 if ac_fn_c_try_link "$LINENO"
19577 then :
19578 eval $cacheid=yes
19579 else case e in #(
19580 e) eval $cacheid=no ;;
19581 esac
19582 fi
19583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19584 conftest$ac_exeext conftest.$ac_ext ;;
19585 esac
19586 fi
19587
19588
19589 CFLAGS="$xorg_testset_save_CFLAGS"
19590
19591 eval supported=\$$cacheid
19592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19593 printf "%s\n" "$supported" >&6; }
19594 if test "$supported" = "yes" ; then
19595 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19596 found="yes"
19597 fi
19598 fi
19599
19600
19601 fi
19602
19603
19604
19605
19606
19607
19608
19609 CWARNFLAGS="$BASE_CFLAGS"
19610 if test "x$GCC" = xyes ; then
19611 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19612 fi
19613
19614
19615
19616
19617
19618
19619
19620
19621 # Check whether --enable-strict-compilation was given.
19622 if test ${enable_strict_compilation+y}
19623 then :
19624 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19625 else case e in #(
19626 e) STRICT_COMPILE=no ;;
19627 esac
19628 fi
19629
19630
19631
19632
19633
19634
19635 STRICT_CFLAGS=""
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649 xorg_testset_save_CFLAGS="$CFLAGS"
19650
19651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19654 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19655 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19656 then :
19657 printf %s "(cached) " >&6
19658 else case e in #(
19659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h. */
19661 int i;
19662 _ACEOF
19663 if ac_fn_c_try_compile "$LINENO"
19664 then :
19665 xorg_cv_cc_flag_unknown_warning_option=yes
19666 else case e in #(
19667 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19668 esac
19669 fi
19670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19671 esac
19672 fi
19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19674 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19676 CFLAGS="$xorg_testset_save_CFLAGS"
19677 fi
19678
19679 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19682 fi
19683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19685 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19686 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19687 then :
19688 printf %s "(cached) " >&6
19689 else case e in #(
19690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h. */
19692 int i;
19693 _ACEOF
19694 if ac_fn_c_try_compile "$LINENO"
19695 then :
19696 xorg_cv_cc_flag_unused_command_line_argument=yes
19697 else case e in #(
19698 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19699 esac
19700 fi
19701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19702 esac
19703 fi
19704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19705 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19707 CFLAGS="$xorg_testset_save_CFLAGS"
19708 fi
19709
19710 found="no"
19711
19712 if test $found = "no" ; then
19713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19715 fi
19716
19717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19719 fi
19720
19721 CFLAGS="$CFLAGS -pedantic"
19722
19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19724 printf %s "checking if $CC supports -pedantic... " >&6; }
19725 cacheid=xorg_cv_cc_flag__pedantic
19726 if eval test \${$cacheid+y}
19727 then :
19728 printf %s "(cached) " >&6
19729 else case e in #(
19730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19731 /* end confdefs.h. */
19732 int i;
19733 int
19734 main (void)
19735 {
19736
19737 ;
19738 return 0;
19739 }
19740 _ACEOF
19741 if ac_fn_c_try_link "$LINENO"
19742 then :
19743 eval $cacheid=yes
19744 else case e in #(
19745 e) eval $cacheid=no ;;
19746 esac
19747 fi
19748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19749 conftest$ac_exeext conftest.$ac_ext ;;
19750 esac
19751 fi
19752
19753
19754 CFLAGS="$xorg_testset_save_CFLAGS"
19755
19756 eval supported=\$$cacheid
19757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19758 printf "%s\n" "$supported" >&6; }
19759 if test "$supported" = "yes" ; then
19760 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19761 found="yes"
19762 fi
19763 fi
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779 xorg_testset_save_CFLAGS="$CFLAGS"
19780
19781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19784 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19785 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19786 then :
19787 printf %s "(cached) " >&6
19788 else case e in #(
19789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19791 int i;
19792 _ACEOF
19793 if ac_fn_c_try_compile "$LINENO"
19794 then :
19795 xorg_cv_cc_flag_unknown_warning_option=yes
19796 else case e in #(
19797 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19798 esac
19799 fi
19800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19801 esac
19802 fi
19803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19804 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19806 CFLAGS="$xorg_testset_save_CFLAGS"
19807 fi
19808
19809 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19812 fi
19813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19815 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19816 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19817 then :
19818 printf %s "(cached) " >&6
19819 else case e in #(
19820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19821 /* end confdefs.h. */
19822 int i;
19823 _ACEOF
19824 if ac_fn_c_try_compile "$LINENO"
19825 then :
19826 xorg_cv_cc_flag_unused_command_line_argument=yes
19827 else case e in #(
19828 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19829 esac
19830 fi
19831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19832 esac
19833 fi
19834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19835 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19837 CFLAGS="$xorg_testset_save_CFLAGS"
19838 fi
19839
19840 found="no"
19841
19842 if test $found = "no" ; then
19843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19845 fi
19846
19847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19849 fi
19850
19851 CFLAGS="$CFLAGS -Werror"
19852
19853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19854 printf %s "checking if $CC supports -Werror... " >&6; }
19855 cacheid=xorg_cv_cc_flag__Werror
19856 if eval test \${$cacheid+y}
19857 then :
19858 printf %s "(cached) " >&6
19859 else case e in #(
19860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19861 /* end confdefs.h. */
19862 int i;
19863 int
19864 main (void)
19865 {
19866
19867 ;
19868 return 0;
19869 }
19870 _ACEOF
19871 if ac_fn_c_try_link "$LINENO"
19872 then :
19873 eval $cacheid=yes
19874 else case e in #(
19875 e) eval $cacheid=no ;;
19876 esac
19877 fi
19878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19879 conftest$ac_exeext conftest.$ac_ext ;;
19880 esac
19881 fi
19882
19883
19884 CFLAGS="$xorg_testset_save_CFLAGS"
19885
19886 eval supported=\$$cacheid
19887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19888 printf "%s\n" "$supported" >&6; }
19889 if test "$supported" = "yes" ; then
19890 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19891 found="yes"
19892 fi
19893 fi
19894
19895 if test $found = "no" ; then
19896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19898 fi
19899
19900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19902 fi
19903
19904 CFLAGS="$CFLAGS -errwarn"
19905
19906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19907 printf %s "checking if $CC supports -errwarn... " >&6; }
19908 cacheid=xorg_cv_cc_flag__errwarn
19909 if eval test \${$cacheid+y}
19910 then :
19911 printf %s "(cached) " >&6
19912 else case e in #(
19913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914 /* end confdefs.h. */
19915 int i;
19916 int
19917 main (void)
19918 {
19919
19920 ;
19921 return 0;
19922 }
19923 _ACEOF
19924 if ac_fn_c_try_link "$LINENO"
19925 then :
19926 eval $cacheid=yes
19927 else case e in #(
19928 e) eval $cacheid=no ;;
19929 esac
19930 fi
19931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19932 conftest$ac_exeext conftest.$ac_ext ;;
19933 esac
19934 fi
19935
19936
19937 CFLAGS="$xorg_testset_save_CFLAGS"
19938
19939 eval supported=\$$cacheid
19940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19941 printf "%s\n" "$supported" >&6; }
19942 if test "$supported" = "yes" ; then
19943 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19944 found="yes"
19945 fi
19946 fi
19947
19948
19949
19950 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19951 # activate it with -Werror, so we add it here explicitly.
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965 xorg_testset_save_CFLAGS="$CFLAGS"
19966
19967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19970 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19971 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19972 then :
19973 printf %s "(cached) " >&6
19974 else case e in #(
19975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h. */
19977 int i;
19978 _ACEOF
19979 if ac_fn_c_try_compile "$LINENO"
19980 then :
19981 xorg_cv_cc_flag_unknown_warning_option=yes
19982 else case e in #(
19983 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19984 esac
19985 fi
19986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19987 esac
19988 fi
19989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19990 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19992 CFLAGS="$xorg_testset_save_CFLAGS"
19993 fi
19994
19995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19998 fi
19999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20001 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20002 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20003 then :
20004 printf %s "(cached) " >&6
20005 else case e in #(
20006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007 /* end confdefs.h. */
20008 int i;
20009 _ACEOF
20010 if ac_fn_c_try_compile "$LINENO"
20011 then :
20012 xorg_cv_cc_flag_unused_command_line_argument=yes
20013 else case e in #(
20014 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20015 esac
20016 fi
20017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20018 esac
20019 fi
20020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20021 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20023 CFLAGS="$xorg_testset_save_CFLAGS"
20024 fi
20025
20026 found="no"
20027
20028 if test $found = "no" ; then
20029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20031 fi
20032
20033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20035 fi
20036
20037 CFLAGS="$CFLAGS -Werror=attributes"
20038
20039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20040 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20041 cacheid=xorg_cv_cc_flag__Werror_attributes
20042 if eval test \${$cacheid+y}
20043 then :
20044 printf %s "(cached) " >&6
20045 else case e in #(
20046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h. */
20048 int i;
20049 int
20050 main (void)
20051 {
20052
20053 ;
20054 return 0;
20055 }
20056 _ACEOF
20057 if ac_fn_c_try_link "$LINENO"
20058 then :
20059 eval $cacheid=yes
20060 else case e in #(
20061 e) eval $cacheid=no ;;
20062 esac
20063 fi
20064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20065 conftest$ac_exeext conftest.$ac_ext ;;
20066 esac
20067 fi
20068
20069
20070 CFLAGS="$xorg_testset_save_CFLAGS"
20071
20072 eval supported=\$$cacheid
20073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20074 printf "%s\n" "$supported" >&6; }
20075 if test "$supported" = "yes" ; then
20076 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20077 found="yes"
20078 fi
20079 fi
20080
20081
20082
20083 if test "x$STRICT_COMPILE" = "xyes"; then
20084 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20085 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20086 fi
20087
20088
20089
20090
20091
20092
20093
20094
20095 cat >>confdefs.h <<_ACEOF
20096 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20097 _ACEOF
20098
20099 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20100 if test "x$PVM" = "x"; then
20101 PVM="0"
20102 fi
20103
20104 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20105
20106 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20107 if test "x$PVP" = "x"; then
20108 PVP="0"
20109 fi
20110
20111 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20112
20113
20114
20115 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20116 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20117 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20118 touch \$(top_srcdir)/ChangeLog; \
20119 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20120
20121
20122
20123
20124 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20125 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20126 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20127 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20128 touch \$(top_srcdir)/INSTALL; \
20129 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20130
20131
20132
20133
20134
20135
20136 case $host_os in
20137 solaris*)
20138 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20139 # check for a man page file found in later versions that use
20140 # traditional section numbers instead
20141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20142 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20143 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20144 then :
20145 printf %s "(cached) " >&6
20146 else case e in #(
20147 e) test "$cross_compiling" = yes &&
20148 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20149 if test -r "/usr/share/man/man7/attributes.7"; then
20150 ac_cv_file__usr_share_man_man7_attributes_7=yes
20151 else
20152 ac_cv_file__usr_share_man_man7_attributes_7=no
20153 fi ;;
20154 esac
20155 fi
20156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20157 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20158 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20159 then :
20160 SYSV_MAN_SECTIONS=false
20161 else case e in #(
20162 e) SYSV_MAN_SECTIONS=true ;;
20163 esac
20164 fi
20165
20166 ;;
20167 *) SYSV_MAN_SECTIONS=false ;;
20168 esac
20169
20170 if test x$APP_MAN_SUFFIX = x ; then
20171 APP_MAN_SUFFIX=1
20172 fi
20173 if test x$APP_MAN_DIR = x ; then
20174 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20175 fi
20176
20177 if test x$LIB_MAN_SUFFIX = x ; then
20178 LIB_MAN_SUFFIX=3
20179 fi
20180 if test x$LIB_MAN_DIR = x ; then
20181 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20182 fi
20183
20184 if test x$FILE_MAN_SUFFIX = x ; then
20185 case $SYSV_MAN_SECTIONS in
20186 true) FILE_MAN_SUFFIX=4 ;;
20187 *) FILE_MAN_SUFFIX=5 ;;
20188 esac
20189 fi
20190 if test x$FILE_MAN_DIR = x ; then
20191 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20192 fi
20193
20194 if test x$MISC_MAN_SUFFIX = x ; then
20195 case $SYSV_MAN_SECTIONS in
20196 true) MISC_MAN_SUFFIX=5 ;;
20197 *) MISC_MAN_SUFFIX=7 ;;
20198 esac
20199 fi
20200 if test x$MISC_MAN_DIR = x ; then
20201 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20202 fi
20203
20204 if test x$DRIVER_MAN_SUFFIX = x ; then
20205 case $SYSV_MAN_SECTIONS in
20206 true) DRIVER_MAN_SUFFIX=7 ;;
20207 *) DRIVER_MAN_SUFFIX=4 ;;
20208 esac
20209 fi
20210 if test x$DRIVER_MAN_DIR = x ; then
20211 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20212 fi
20213
20214 if test x$ADMIN_MAN_SUFFIX = x ; then
20215 case $SYSV_MAN_SECTIONS in
20216 true) ADMIN_MAN_SUFFIX=1m ;;
20217 *) ADMIN_MAN_SUFFIX=8 ;;
20218 esac
20219 fi
20220 if test x$ADMIN_MAN_DIR = x ; then
20221 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20222 fi
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238 XORG_MAN_PAGE="X Version 11"
20239
20240 MAN_SUBSTS="\
20241 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20242 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20243 -e 's|__xservername__|Xorg|g' \
20244 -e 's|__xconfigfile__|xorg.conf|g' \
20245 -e 's|__projectroot__|\$(prefix)|g' \
20246 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20247 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20248 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20249 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20250 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20251 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20252 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20253
20254
20255
20256 # Check whether --enable-silent-rules was given.
20257 if test ${enable_silent_rules+y}
20258 then :
20259 enableval=$enable_silent_rules;
20260 fi
20261
20262 case $enable_silent_rules in # (((
20263 yes) AM_DEFAULT_VERBOSITY=0;;
20264 no) AM_DEFAULT_VERBOSITY=1;;
20265 *) AM_DEFAULT_VERBOSITY=0;;
20266 esac
20267 am_make=${MAKE-make}
20268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
20269 printf %s "checking whether $am_make supports nested variables... " >&6; }
20270 if test ${am_cv_make_support_nested_variables+y}
20271 then :
20272 printf %s "(cached) " >&6
20273 else case e in #(
20274 e) if printf "%s\n" 'TRUE=$(BAR$(V))
20275 BAR0=false
20276 BAR1=true
20277 V=1
20278 am__doit:
20279 @$(TRUE)
20280 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
20281 am_cv_make_support_nested_variables=yes
20282 else
20283 am_cv_make_support_nested_variables=no
20284 fi ;;
20285 esac
20286 fi
20287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
20288 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
20289 if test $am_cv_make_support_nested_variables = yes; then
20290 AM_V='$(V)'
20291 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20292 else
20293 AM_V=$AM_DEFAULT_VERBOSITY
20294 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20295 fi
20296 AM_BACKSLASH='\'
20297
20298
20299
20300
20301
20302 # Check whether --enable-docs was given.
20303 if test ${enable_docs+y}
20304 then :
20305 enableval=$enable_docs; build_docs=$enableval
20306 else case e in #(
20307 e) build_docs=yes ;;
20308 esac
20309 fi
20310
20311
20312 if test x$build_docs = xyes; then
20313 ENABLE_DOCS_TRUE=
20314 ENABLE_DOCS_FALSE='#'
20315 else
20316 ENABLE_DOCS_TRUE='#'
20317 ENABLE_DOCS_FALSE=
20318 fi
20319
20320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
20321 printf %s "checking whether to build documentation... " >&6; }
20322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
20323 printf "%s\n" "$build_docs" >&6; }
20324
20325
20326
20327
20328
20329 # Check whether --with-xmlto was given.
20330 if test ${with_xmlto+y}
20331 then :
20332 withval=$with_xmlto; use_xmlto=$withval
20333 else case e in #(
20334 e) use_xmlto=auto ;;
20335 esac
20336 fi
20337
20338
20339
20340 if test "x$use_xmlto" = x"auto"; then
20341 # Extract the first word of "xmlto", so it can be a program name with args.
20342 set dummy xmlto; ac_word=$2
20343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20344 printf %s "checking for $ac_word... " >&6; }
20345 if test ${ac_cv_path_XMLTO+y}
20346 then :
20347 printf %s "(cached) " >&6
20348 else case e in #(
20349 e) case $XMLTO in
20350 [\\/]* | ?:[\\/]*)
20351 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20352 ;;
20353 *)
20354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20355 for as_dir in $PATH
20356 do
20357 IFS=$as_save_IFS
20358 case $as_dir in #(((
20359 '') as_dir=./ ;;
20360 */) ;;
20361 *) as_dir=$as_dir/ ;;
20362 esac
20363 for ac_exec_ext in '' $ac_executable_extensions; do
20364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20365 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20367 break 2
20368 fi
20369 done
20370 done
20371 IFS=$as_save_IFS
20372
20373 ;;
20374 esac ;;
20375 esac
20376 fi
20377 XMLTO=$ac_cv_path_XMLTO
20378 if test -n "$XMLTO"; then
20379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20380 printf "%s\n" "$XMLTO" >&6; }
20381 else
20382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20383 printf "%s\n" "no" >&6; }
20384 fi
20385
20386
20387 if test "x$XMLTO" = "x"; then
20388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
20389 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
20390 have_xmlto=no
20391 else
20392 have_xmlto=yes
20393 fi
20394 elif test "x$use_xmlto" = x"yes" ; then
20395 # Extract the first word of "xmlto", so it can be a program name with args.
20396 set dummy xmlto; ac_word=$2
20397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20398 printf %s "checking for $ac_word... " >&6; }
20399 if test ${ac_cv_path_XMLTO+y}
20400 then :
20401 printf %s "(cached) " >&6
20402 else case e in #(
20403 e) case $XMLTO in
20404 [\\/]* | ?:[\\/]*)
20405 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20406 ;;
20407 *)
20408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20409 for as_dir in $PATH
20410 do
20411 IFS=$as_save_IFS
20412 case $as_dir in #(((
20413 '') as_dir=./ ;;
20414 */) ;;
20415 *) as_dir=$as_dir/ ;;
20416 esac
20417 for ac_exec_ext in '' $ac_executable_extensions; do
20418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20419 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20421 break 2
20422 fi
20423 done
20424 done
20425 IFS=$as_save_IFS
20426
20427 ;;
20428 esac ;;
20429 esac
20430 fi
20431 XMLTO=$ac_cv_path_XMLTO
20432 if test -n "$XMLTO"; then
20433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20434 printf "%s\n" "$XMLTO" >&6; }
20435 else
20436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20437 printf "%s\n" "no" >&6; }
20438 fi
20439
20440
20441 if test "x$XMLTO" = "x"; then
20442 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
20443 fi
20444 have_xmlto=yes
20445 elif test "x$use_xmlto" = x"no" ; then
20446 if test "x$XMLTO" != "x"; then
20447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
20448 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
20449 fi
20450 have_xmlto=no
20451 else
20452 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
20453 fi
20454
20455 # Test for a minimum version of xmlto, if provided.
20456 if test "$have_xmlto" = yes; then
20457 # scrape the xmlto version
20458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
20459 printf %s "checking the xmlto version... " >&6; }
20460 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
20461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
20462 printf "%s\n" "$xmlto_version" >&6; }
20463 as_arg_v1=$xmlto_version
20464 as_arg_v2=0.0.22
20465 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
20466 case $? in #(
20467 1) :
20468 if test "x$use_xmlto" = xauto; then
20469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
20470 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
20471 have_xmlto=no
20472 else
20473 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
20474 fi ;; #(
20475 0) :
20476 ;; #(
20477 2) :
20478 ;; #(
20479 *) :
20480 ;;
20481 esac
20482 fi
20483
20484 # Test for the ability of xmlto to generate a text target
20485 #
20486 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
20487 # following test for empty XML docbook files.
20488 # For compatibility reasons use the following empty XML docbook file and if
20489 # it fails try it again with a non-empty XML file.
20490 have_xmlto_text=no
20491 cat > conftest.xml << "EOF"
20492 EOF
20493 if test "$have_xmlto" = yes
20494 then :
20495 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20496 then :
20497 have_xmlto_text=yes
20498 else case e in #(
20499 e) # Try it again with a non-empty XML file.
20500 cat > conftest.xml << "EOF"
20501 <x></x>
20502 EOF
20503 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20504 then :
20505 have_xmlto_text=yes
20506 else case e in #(
20507 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
20508 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;;
20509 esac
20510 fi ;;
20511 esac
20512 fi
20513 fi
20514 rm -f conftest.xml
20515 if test $have_xmlto_text = yes; then
20516 HAVE_XMLTO_TEXT_TRUE=
20517 HAVE_XMLTO_TEXT_FALSE='#'
20518 else
20519 HAVE_XMLTO_TEXT_TRUE='#'
20520 HAVE_XMLTO_TEXT_FALSE=
20521 fi
20522
20523 if test "$have_xmlto" = yes; then
20524 HAVE_XMLTO_TRUE=
20525 HAVE_XMLTO_FALSE='#'
20526 else
20527 HAVE_XMLTO_TRUE='#'
20528 HAVE_XMLTO_FALSE=
20529 fi
20530
20531
20532
20533
20534
20535
20536 # Check whether --with-fop was given.
20537 if test ${with_fop+y}
20538 then :
20539 withval=$with_fop; use_fop=$withval
20540 else case e in #(
20541 e) use_fop=auto ;;
20542 esac
20543 fi
20544
20545
20546
20547 if test "x$use_fop" = x"auto"; then
20548 # Extract the first word of "fop", so it can be a program name with args.
20549 set dummy fop; ac_word=$2
20550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20551 printf %s "checking for $ac_word... " >&6; }
20552 if test ${ac_cv_path_FOP+y}
20553 then :
20554 printf %s "(cached) " >&6
20555 else case e in #(
20556 e) case $FOP in
20557 [\\/]* | ?:[\\/]*)
20558 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20559 ;;
20560 *)
20561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20562 for as_dir in $PATH
20563 do
20564 IFS=$as_save_IFS
20565 case $as_dir in #(((
20566 '') as_dir=./ ;;
20567 */) ;;
20568 *) as_dir=$as_dir/ ;;
20569 esac
20570 for ac_exec_ext in '' $ac_executable_extensions; do
20571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20572 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20574 break 2
20575 fi
20576 done
20577 done
20578 IFS=$as_save_IFS
20579
20580 ;;
20581 esac ;;
20582 esac
20583 fi
20584 FOP=$ac_cv_path_FOP
20585 if test -n "$FOP"; then
20586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20587 printf "%s\n" "$FOP" >&6; }
20588 else
20589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20590 printf "%s\n" "no" >&6; }
20591 fi
20592
20593
20594 if test "x$FOP" = "x"; then
20595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
20596 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
20597 have_fop=no
20598 else
20599 have_fop=yes
20600 fi
20601 elif test "x$use_fop" = x"yes" ; then
20602 # Extract the first word of "fop", so it can be a program name with args.
20603 set dummy fop; ac_word=$2
20604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20605 printf %s "checking for $ac_word... " >&6; }
20606 if test ${ac_cv_path_FOP+y}
20607 then :
20608 printf %s "(cached) " >&6
20609 else case e in #(
20610 e) case $FOP in
20611 [\\/]* | ?:[\\/]*)
20612 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20613 ;;
20614 *)
20615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20616 for as_dir in $PATH
20617 do
20618 IFS=$as_save_IFS
20619 case $as_dir in #(((
20620 '') as_dir=./ ;;
20621 */) ;;
20622 *) as_dir=$as_dir/ ;;
20623 esac
20624 for ac_exec_ext in '' $ac_executable_extensions; do
20625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20626 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20628 break 2
20629 fi
20630 done
20631 done
20632 IFS=$as_save_IFS
20633
20634 ;;
20635 esac ;;
20636 esac
20637 fi
20638 FOP=$ac_cv_path_FOP
20639 if test -n "$FOP"; then
20640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20641 printf "%s\n" "$FOP" >&6; }
20642 else
20643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20644 printf "%s\n" "no" >&6; }
20645 fi
20646
20647
20648 if test "x$FOP" = "x"; then
20649 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
20650 fi
20651 have_fop=yes
20652 elif test "x$use_fop" = x"no" ; then
20653 if test "x$FOP" != "x"; then
20654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
20655 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
20656 fi
20657 have_fop=no
20658 else
20659 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
20660 fi
20661
20662 # Test for a minimum version of fop, if provided.
20663
20664 if test "$have_fop" = yes; then
20665 HAVE_FOP_TRUE=
20666 HAVE_FOP_FALSE='#'
20667 else
20668 HAVE_FOP_TRUE='#'
20669 HAVE_FOP_FALSE=
20670 fi
20671
20672
20673
20674
20675 # Preserves the interface, should it be implemented later
20676
20677
20678
20679 # Check whether --with-xsltproc was given.
20680 if test ${with_xsltproc+y}
20681 then :
20682 withval=$with_xsltproc; use_xsltproc=$withval
20683 else case e in #(
20684 e) use_xsltproc=auto ;;
20685 esac
20686 fi
20687
20688
20689
20690 if test "x$use_xsltproc" = x"auto"; then
20691 # Extract the first word of "xsltproc", so it can be a program name with args.
20692 set dummy xsltproc; ac_word=$2
20693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20694 printf %s "checking for $ac_word... " >&6; }
20695 if test ${ac_cv_path_XSLTPROC+y}
20696 then :
20697 printf %s "(cached) " >&6
20698 else case e in #(
20699 e) case $XSLTPROC in
20700 [\\/]* | ?:[\\/]*)
20701 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20702 ;;
20703 *)
20704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20705 for as_dir in $PATH
20706 do
20707 IFS=$as_save_IFS
20708 case $as_dir in #(((
20709 '') as_dir=./ ;;
20710 */) ;;
20711 *) as_dir=$as_dir/ ;;
20712 esac
20713 for ac_exec_ext in '' $ac_executable_extensions; do
20714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20715 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20717 break 2
20718 fi
20719 done
20720 done
20721 IFS=$as_save_IFS
20722
20723 ;;
20724 esac ;;
20725 esac
20726 fi
20727 XSLTPROC=$ac_cv_path_XSLTPROC
20728 if test -n "$XSLTPROC"; then
20729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20730 printf "%s\n" "$XSLTPROC" >&6; }
20731 else
20732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20733 printf "%s\n" "no" >&6; }
20734 fi
20735
20736
20737 if test "x$XSLTPROC" = "x"; then
20738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
20739 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
20740 have_xsltproc=no
20741 else
20742 have_xsltproc=yes
20743 fi
20744 elif test "x$use_xsltproc" = x"yes" ; then
20745 # Extract the first word of "xsltproc", so it can be a program name with args.
20746 set dummy xsltproc; ac_word=$2
20747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20748 printf %s "checking for $ac_word... " >&6; }
20749 if test ${ac_cv_path_XSLTPROC+y}
20750 then :
20751 printf %s "(cached) " >&6
20752 else case e in #(
20753 e) case $XSLTPROC in
20754 [\\/]* | ?:[\\/]*)
20755 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20756 ;;
20757 *)
20758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20759 for as_dir in $PATH
20760 do
20761 IFS=$as_save_IFS
20762 case $as_dir in #(((
20763 '') as_dir=./ ;;
20764 */) ;;
20765 *) as_dir=$as_dir/ ;;
20766 esac
20767 for ac_exec_ext in '' $ac_executable_extensions; do
20768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20769 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20771 break 2
20772 fi
20773 done
20774 done
20775 IFS=$as_save_IFS
20776
20777 ;;
20778 esac ;;
20779 esac
20780 fi
20781 XSLTPROC=$ac_cv_path_XSLTPROC
20782 if test -n "$XSLTPROC"; then
20783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20784 printf "%s\n" "$XSLTPROC" >&6; }
20785 else
20786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20787 printf "%s\n" "no" >&6; }
20788 fi
20789
20790
20791 if test "x$XSLTPROC" = "x"; then
20792 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
20793 fi
20794 have_xsltproc=yes
20795 elif test "x$use_xsltproc" = x"no" ; then
20796 if test "x$XSLTPROC" != "x"; then
20797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
20798 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
20799 fi
20800 have_xsltproc=no
20801 else
20802 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
20803 fi
20804
20805 if test "$have_xsltproc" = yes; then
20806 HAVE_XSLTPROC_TRUE=
20807 HAVE_XSLTPROC_FALSE='#'
20808 else
20809 HAVE_XSLTPROC_TRUE='#'
20810 HAVE_XSLTPROC_FALSE=
20811 fi
20812
20813
20814
20815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
20816 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
20817 XORG_SGML_PATH=
20818 if test -n "$PKG_CONFIG" && \
20819 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
20820 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
20821 ac_status=$?
20822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20823 test $ac_status = 0; }; then
20824 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20825 else
20826 :
20827
20828 fi
20829
20830 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20831 # the path and the name of the doc stylesheet
20832 if test "x$XORG_SGML_PATH" != "x" ; then
20833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20834 printf "%s\n" "$XORG_SGML_PATH" >&6; }
20835 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20836 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20837 else
20838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20839 printf "%s\n" "no" >&6; }
20840 fi
20841
20842
20843
20844
20845 if test "x$XSL_STYLESHEET" != "x"; then
20846 HAVE_STYLESHEETS_TRUE=
20847 HAVE_STYLESHEETS_FALSE='#'
20848 else
20849 HAVE_STYLESHEETS_TRUE='#'
20850 HAVE_STYLESHEETS_FALSE=
20851 fi
20852
20853
20854
20855 # Checks for programs.
20856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20857 printf %s "checking whether ln -s works... " >&6; }
20858 LN_S=$as_ln_s
20859 if test "$LN_S" = "ln -s"; then
20860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20861 printf "%s\n" "yes" >&6; }
20862 else
20863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20864 printf "%s\n" "no, using $LN_S" >&6; }
20865 fi
20866
20867
20868 # Checks for header files.
20869 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
20870 if test "x$ac_cv_header_sys_random_h" = xyes
20871 then :
20872 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
20873
20874 fi
20875
20876
20877 # Checks for libraries.
20878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing recvfrom" >&5
20879 printf %s "checking for library containing recvfrom... " >&6; }
20880 if test ${ac_cv_search_recvfrom+y}
20881 then :
20882 printf %s "(cached) " >&6
20883 else case e in #(
20884 e) ac_func_search_save_LIBS=$LIBS
20885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20886 /* end confdefs.h. */
20887
20888 /* Override any GCC internal prototype to avoid an error.
20889 Use char because int might match the return type of a GCC
20890 builtin and then its argument prototype would still apply.
20891 The 'extern "C"' is for builds by C++ compilers;
20892 although this is not generally supported in C code supporting it here
20893 has little cost and some practical benefit (sr 110532). */
20894 #ifdef __cplusplus
20895 extern "C"
20896 #endif
20897 char recvfrom (void);
20898 int
20899 main (void)
20900 {
20901 return recvfrom ();
20902 ;
20903 return 0;
20904 }
20905 _ACEOF
20906 for ac_lib in '' socket
20907 do
20908 if test -z "$ac_lib"; then
20909 ac_res="none required"
20910 else
20911 ac_res=-l$ac_lib
20912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20913 fi
20914 if ac_fn_c_try_link "$LINENO"
20915 then :
20916 ac_cv_search_recvfrom=$ac_res
20917 fi
20918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20919 conftest$ac_exeext
20920 if test ${ac_cv_search_recvfrom+y}
20921 then :
20922 break
20923 fi
20924 done
20925 if test ${ac_cv_search_recvfrom+y}
20926 then :
20927
20928 else case e in #(
20929 e) ac_cv_search_recvfrom=no ;;
20930 esac
20931 fi
20932 rm conftest.$ac_ext
20933 LIBS=$ac_func_search_save_LIBS ;;
20934 esac
20935 fi
20936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recvfrom" >&5
20937 printf "%s\n" "$ac_cv_search_recvfrom" >&6; }
20938 ac_res=$ac_cv_search_recvfrom
20939 if test "$ac_res" != no
20940 then :
20941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20942
20943 fi
20944
20945
20946 case $host_os in
20947 *mingw*)
20948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20949 printf %s "checking for main in -lws2_32... " >&6; }
20950 if test ${ac_cv_lib_ws2_32_main+y}
20951 then :
20952 printf %s "(cached) " >&6
20953 else case e in #(
20954 e) ac_check_lib_save_LIBS=$LIBS
20955 LIBS="-lws2_32 $LIBS"
20956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20957 /* end confdefs.h. */
20958
20959
20960 int
20961 main (void)
20962 {
20963 return main ();
20964 ;
20965 return 0;
20966 }
20967 _ACEOF
20968 if ac_fn_c_try_link "$LINENO"
20969 then :
20970 ac_cv_lib_ws2_32_main=yes
20971 else case e in #(
20972 e) ac_cv_lib_ws2_32_main=no ;;
20973 esac
20974 fi
20975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20976 conftest$ac_exeext conftest.$ac_ext
20977 LIBS=$ac_check_lib_save_LIBS ;;
20978 esac
20979 fi
20980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20981 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
20982 if test "x$ac_cv_lib_ws2_32_main" = xyes
20983 then :
20984 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
20985
20986 LIBS="-lws2_32 $LIBS"
20987
20988 fi
20989
20990 ;;
20991 *)
20992 ;;
20993 esac
20994
20995 # Checks for non-standard functions and fallback to libbsd if we can
20996 # We only check for arc4random_buf, because if we have that, we don't
20997 # need/use getentropy.
20998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20999 /* end confdefs.h. */
21000
21001 /* Override any GCC internal prototype to avoid an error.
21002 Use char because int might match the return type of a GCC
21003 builtin and then its argument prototype would still apply.
21004 The 'extern "C"' is for builds by C++ compilers;
21005 although this is not generally supported in C code supporting it here
21006 has little cost and some practical benefit (sr 110532). */
21007 #ifdef __cplusplus
21008 extern "C"
21009 #endif
21010 char arc4random_buf (void);
21011 int
21012 main (void)
21013 {
21014 return arc4random_buf ();
21015 ;
21016 return 0;
21017 }
21018 _ACEOF
21019 if ac_fn_c_try_link "$LINENO"
21020 then :
21021 TRY_LIBBSD="no"
21022 else case e in #(
21023 e) TRY_LIBBSD="yes" ;;
21024 esac
21025 fi
21026 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21027 conftest$ac_exeext conftest.$ac_ext
21028 if test "x$TRY_LIBBSD" = "xyes"
21029 then :
21030
21031 pkg_failed=no
21032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5
21033 printf %s "checking for LIBBSD... " >&6; }
21034
21035 if test -n "$LIBBSD_CFLAGS"; then
21036 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS"
21037 elif test -n "$PKG_CONFIG"; then
21038 if test -n "$PKG_CONFIG" && \
21039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
21040 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
21041 ac_status=$?
21042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21043 test $ac_status = 0; }; then
21044 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null`
21045 test "x$?" != "x0" && pkg_failed=yes
21046 else
21047 pkg_failed=yes
21048 fi
21049 else
21050 pkg_failed=untried
21051 fi
21052 if test -n "$LIBBSD_LIBS"; then
21053 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS"
21054 elif test -n "$PKG_CONFIG"; then
21055 if test -n "$PKG_CONFIG" && \
21056 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
21057 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
21058 ac_status=$?
21059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21060 test $ac_status = 0; }; then
21061 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null`
21062 test "x$?" != "x0" && pkg_failed=yes
21063 else
21064 pkg_failed=yes
21065 fi
21066 else
21067 pkg_failed=untried
21068 fi
21069
21070
21071
21072 if test $pkg_failed = yes; then
21073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21074 printf "%s\n" "no" >&6; }
21075
21076 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21077 _pkg_short_errors_supported=yes
21078 else
21079 _pkg_short_errors_supported=no
21080 fi
21081 if test $_pkg_short_errors_supported = yes; then
21082 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1`
21083 else
21084 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1`
21085 fi
21086 # Put the nasty error message in config.log where it belongs
21087 echo "$LIBBSD_PKG_ERRORS" >&5
21088
21089 :
21090 elif test $pkg_failed = untried; then
21091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21092 printf "%s\n" "no" >&6; }
21093 :
21094 else
21095 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS
21096 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS
21097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21098 printf "%s\n" "yes" >&6; }
21099
21100 CFLAGS="$CFLAGS $LIBBSD_CFLAGS"
21101 LIBS="$LIBS $LIBBSD_LIBS"
21102
21103 fi
21104 fi
21105
21106 # Checks for library functions.
21107 ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48"
21108 if test "x$ac_cv_func_srand48" = xyes
21109 then :
21110 printf "%s\n" "#define HAVE_SRAND48 1" >>confdefs.h
21111
21112 fi
21113 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
21114 if test "x$ac_cv_func_lrand48" = xyes
21115 then :
21116 printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
21117
21118 fi
21119 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
21120 if test "x$ac_cv_func_arc4random_buf" = xyes
21121 then :
21122 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
21123
21124 fi
21125 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
21126 if test "x$ac_cv_func_getentropy" = xyes
21127 then :
21128 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
21129
21130 fi
21131
21132
21133 # Obtain compiler/linker options for dependencies
21134
21135 pkg_failed=no
21136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
21137 printf %s "checking for XDMCP... " >&6; }
21138
21139 if test -n "$XDMCP_CFLAGS"; then
21140 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
21141 elif test -n "$PKG_CONFIG"; then
21142 if test -n "$PKG_CONFIG" && \
21143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
21144 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
21145 ac_status=$?
21146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21147 test $ac_status = 0; }; then
21148 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
21149 test "x$?" != "x0" && pkg_failed=yes
21150 else
21151 pkg_failed=yes
21152 fi
21153 else
21154 pkg_failed=untried
21155 fi
21156 if test -n "$XDMCP_LIBS"; then
21157 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
21158 elif test -n "$PKG_CONFIG"; then
21159 if test -n "$PKG_CONFIG" && \
21160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
21161 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
21162 ac_status=$?
21163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21164 test $ac_status = 0; }; then
21165 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
21166 test "x$?" != "x0" && pkg_failed=yes
21167 else
21168 pkg_failed=yes
21169 fi
21170 else
21171 pkg_failed=untried
21172 fi
21173
21174
21175
21176 if test $pkg_failed = yes; then
21177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21178 printf "%s\n" "no" >&6; }
21179
21180 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21181 _pkg_short_errors_supported=yes
21182 else
21183 _pkg_short_errors_supported=no
21184 fi
21185 if test $_pkg_short_errors_supported = yes; then
21186 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
21187 else
21188 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
21189 fi
21190 # Put the nasty error message in config.log where it belongs
21191 echo "$XDMCP_PKG_ERRORS" >&5
21192
21193 as_fn_error $? "Package requirements (xproto) were not met:
21194
21195 $XDMCP_PKG_ERRORS
21196
21197 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21198 installed software in a non-standard prefix.
21199
21200 Alternatively, you may set the environment variables XDMCP_CFLAGS
21201 and XDMCP_LIBS to avoid the need to call pkg-config.
21202 See the pkg-config man page for more details." "$LINENO" 5
21203 elif test $pkg_failed = untried; then
21204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21205 printf "%s\n" "no" >&6; }
21206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21207 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21208 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21209 is in your PATH or set the PKG_CONFIG environment variable to the full
21210 path to pkg-config.
21211
21212 Alternatively, you may set the environment variables XDMCP_CFLAGS
21213 and XDMCP_LIBS to avoid the need to call pkg-config.
21214 See the pkg-config man page for more details.
21215
21216 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21217 See 'config.log' for more details" "$LINENO" 5; }
21218 else
21219 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
21220 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
21221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21222 printf "%s\n" "yes" >&6; }
21223
21224 fi
21225
21226 if test -f ${srcdir}/Wraphelp.c; then
21227
21228 printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h
21229
21230 HASXDMAUTH=yes
21231 else
21232 HASXDMAUTH=no
21233 fi
21234
21235 if test x$HASXDMAUTH = xyes; then
21236 HASXDMAUTH_TRUE=
21237 HASXDMAUTH_FALSE='#'
21238 else
21239 HASXDMAUTH_TRUE='#'
21240 HASXDMAUTH_FALSE=
21241 fi
21242
21243
21244 # Allow checking code with lint, sparse, etc.
21245
21246
21247
21248
21249
21250 # Check whether --with-lint was given.
21251 if test ${with_lint+y}
21252 then :
21253 withval=$with_lint; use_lint=$withval
21254 else case e in #(
21255 e) use_lint=no ;;
21256 esac
21257 fi
21258
21259
21260 # Obtain platform specific info like program name and options
21261 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
21262 case $host_os in
21263 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21264 lint_name=splint
21265 lint_options="-badflag"
21266 ;;
21267 *freebsd* | *netbsd*)
21268 lint_name=lint
21269 lint_options="-u -b"
21270 ;;
21271 *solaris*)
21272 lint_name=lint
21273 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21274 ;;
21275 esac
21276
21277 # Test for the presence of the program (either guessed by the code or spelled out by the user)
21278 if test "x$use_lint" = x"yes" ; then
21279 # Extract the first word of "$lint_name", so it can be a program name with args.
21280 set dummy $lint_name; ac_word=$2
21281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21282 printf %s "checking for $ac_word... " >&6; }
21283 if test ${ac_cv_path_LINT+y}
21284 then :
21285 printf %s "(cached) " >&6
21286 else case e in #(
21287 e) case $LINT in
21288 [\\/]* | ?:[\\/]*)
21289 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21290 ;;
21291 *)
21292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21293 for as_dir in $PATH
21294 do
21295 IFS=$as_save_IFS
21296 case $as_dir in #(((
21297 '') as_dir=./ ;;
21298 */) ;;
21299 *) as_dir=$as_dir/ ;;
21300 esac
21301 for ac_exec_ext in '' $ac_executable_extensions; do
21302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21303 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
21304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21305 break 2
21306 fi
21307 done
21308 done
21309 IFS=$as_save_IFS
21310
21311 ;;
21312 esac ;;
21313 esac
21314 fi
21315 LINT=$ac_cv_path_LINT
21316 if test -n "$LINT"; then
21317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21318 printf "%s\n" "$LINT" >&6; }
21319 else
21320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21321 printf "%s\n" "no" >&6; }
21322 fi
21323
21324
21325 if test "x$LINT" = "x"; then
21326 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21327 fi
21328 elif test "x$use_lint" = x"no" ; then
21329 if test "x$LINT" != "x"; then
21330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21331 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21332 fi
21333 else
21334 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21335 fi
21336
21337 # User supplied flags override default flags
21338 if test "x$LINT_FLAGS" != "x"; then
21339 lint_options=$LINT_FLAGS
21340 fi
21341
21342 LINT_FLAGS=$lint_options
21343
21344 if test "x$LINT" != x; then
21345 LINT_TRUE=
21346 LINT_FALSE='#'
21347 else
21348 LINT_TRUE='#'
21349 LINT_FALSE=
21350 fi
21351
21352
21353
21354
21355
21356 # Check whether --enable-lint-library was given.
21357 if test ${enable_lint_library+y}
21358 then :
21359 enableval=$enable_lint_library; make_lint_lib=$enableval
21360 else case e in #(
21361 e) make_lint_lib=no ;;
21362 esac
21363 fi
21364
21365
21366 if test "x$make_lint_lib" = x"yes" ; then
21367 LINTLIB=llib-lXdmcp.ln
21368 if test "x$LINT" = "x"; then
21369 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
21370 fi
21371 elif test "x$make_lint_lib" != x"no" ; then
21372 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
21373 fi
21374
21375
21376 if test x$make_lint_lib != xno; then
21377 MAKE_LINT_LIB_TRUE=
21378 MAKE_LINT_LIB_FALSE='#'
21379 else
21380 MAKE_LINT_LIB_TRUE='#'
21381 MAKE_LINT_LIB_FALSE=
21382 fi
21383
21384
21385
21386
21387 # --enable-unit-tests
21388
21389
21390
21391
21392
21393 # Check for different types of support on different platforms
21394 case $host_os in
21395 solaris*)
21396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
21397 printf %s "checking for umem_alloc in -lumem... " >&6; }
21398 if test ${ac_cv_lib_umem_umem_alloc+y}
21399 then :
21400 printf %s "(cached) " >&6
21401 else case e in #(
21402 e) ac_check_lib_save_LIBS=$LIBS
21403 LIBS="-lumem $LIBS"
21404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21405 /* end confdefs.h. */
21406
21407 /* Override any GCC internal prototype to avoid an error.
21408 Use char because int might match the return type of a GCC
21409 builtin and then its argument prototype would still apply.
21410 The 'extern "C"' is for builds by C++ compilers;
21411 although this is not generally supported in C code supporting it here
21412 has little cost and some practical benefit (sr 110532). */
21413 #ifdef __cplusplus
21414 extern "C"
21415 #endif
21416 char umem_alloc (void);
21417 int
21418 main (void)
21419 {
21420 return umem_alloc ();
21421 ;
21422 return 0;
21423 }
21424 _ACEOF
21425 if ac_fn_c_try_link "$LINENO"
21426 then :
21427 ac_cv_lib_umem_umem_alloc=yes
21428 else case e in #(
21429 e) ac_cv_lib_umem_umem_alloc=no ;;
21430 esac
21431 fi
21432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21433 conftest$ac_exeext conftest.$ac_ext
21434 LIBS=$ac_check_lib_save_LIBS ;;
21435 esac
21436 fi
21437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
21438 printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
21439 if test "x$ac_cv_lib_umem_umem_alloc" = xyes
21440 then :
21441 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
21442 fi
21443
21444 ;;
21445 *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
21446 # both directly and inverted, so should not be 0 or 255.
21447 malloc_debug_env='MALLOC_PERTURB_=15'
21448 ;;
21449 darwin*)
21450 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
21451 ;;
21452 *bsd*)
21453 malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
21454 ;;
21455 esac
21456
21457 # User supplied flags override default flags
21458 if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
21459 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
21460 fi
21461
21462 XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
21463
21464
21465
21466
21467
21468
21469
21470 # Check whether --enable-unit-tests was given.
21471 if test ${enable_unit_tests+y}
21472 then :
21473 enableval=$enable_unit_tests; enable_unit_tests=$enableval
21474 else case e in #(
21475 e) enable_unit_tests=yes ;;
21476 esac
21477 fi
21478
21479
21480 if test "x$enable_unit_tests" != xno; then
21481 ENABLE_UNIT_TESTS_TRUE=
21482 ENABLE_UNIT_TESTS_FALSE='#'
21483 else
21484 ENABLE_UNIT_TESTS_TRUE='#'
21485 ENABLE_UNIT_TESTS_FALSE=
21486 fi
21487
21488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
21489 printf %s "checking whether to build unit test cases... " >&6; }
21490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
21491 printf "%s\n" "$enable_unit_tests" >&6; }
21492
21493
21494 ac_config_files="$ac_config_files Makefile doc/Makefile test/Makefile xdmcp.pc"
21495
21496 cat >confcache <<\_ACEOF
21497 # This file is a shell script that caches the results of configure
21498 # tests run on this system so they can be shared between configure
21499 # scripts and configure runs, see configure's option --config-cache.
21500 # It is not useful on other systems. If it contains results you don't
21501 # want to keep, you may remove or edit it.
21502 #
21503 # config.status only pays attention to the cache file if you give it
21504 # the --recheck option to rerun configure.
21505 #
21506 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
21507 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
21508 # following values.
21509
21510 _ACEOF
21511
21512 # The following way of writing the cache mishandles newlines in values,
21513 # but we know of no workaround that is simple, portable, and efficient.
21514 # So, we kill variables containing newlines.
21515 # Ultrix sh set writes to stderr and can't be redirected directly,
21516 # and sets the high bit in the cache file unless we assign to the vars.
21517 (
21518 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21519 eval ac_val=\$$ac_var
21520 case $ac_val in #(
21521 *${as_nl}*)
21522 case $ac_var in #(
21523 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21524 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21525 esac
21526 case $ac_var in #(
21527 _ | IFS | as_nl) ;; #(
21528 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21529 *) { eval $ac_var=; unset $ac_var;} ;;
21530 esac ;;
21531 esac
21532 done
21533
21534 (set) 2>&1 |
21535 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21536 *${as_nl}ac_space=\ *)
21537 # 'set' does not quote correctly, so add quotes: double-quote
21538 # substitution turns \\\\ into \\, and sed turns \\ into \.
21539 sed -n \
21540 "s/'/'\\\\''/g;
21541 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21542 ;; #(
21543 *)
21544 # 'set' quotes correctly as required by POSIX, so do not add quotes.
21545 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21546 ;;
21547 esac |
21548 sort
21549 ) |
21550 sed '
21551 /^ac_cv_env_/b end
21552 t clear
21553 :clear
21554 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21555 t end
21556 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21557 :end' >>confcache
21558 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21559 if test -w "$cache_file"; then
21560 if test "x$cache_file" != "x/dev/null"; then
21561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21562 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21563 if test ! -f "$cache_file" || test -h "$cache_file"; then
21564 cat confcache >"$cache_file"
21565 else
21566 case $cache_file in #(
21567 */* | ?:*)
21568 mv -f confcache "$cache_file"$$ &&
21569 mv -f "$cache_file"$$ "$cache_file" ;; #(
21570 *)
21571 mv -f confcache "$cache_file" ;;
21572 esac
21573 fi
21574 fi
21575 else
21576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21577 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21578 fi
21579 fi
21580 rm -f confcache
21581
21582 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21583 # Let make expand exec_prefix.
21584 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21585
21586 DEFS=-DHAVE_CONFIG_H
21587
21588 ac_libobjs=
21589 ac_ltlibobjs=
21590 U=
21591 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21592 # 1. Remove the extension, and $U if already installed.
21593 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21594 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21595 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21596 # will be set to the directory where LIBOBJS objects are built.
21597 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21598 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21599 done
21600 LIBOBJS=$ac_libobjs
21601
21602 LTLIBOBJS=$ac_ltlibobjs
21603
21604
21605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21606 printf %s "checking that generated files are newer than configure... " >&6; }
21607 if test -n "$am_sleep_pid"; then
21608 # Hide warnings about reused PIDs.
21609 wait $am_sleep_pid 2>/dev/null
21610 fi
21611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21612 printf "%s\n" "done" >&6; }
21613 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21614 as_fn_error $? "conditional \"AMDEP\" was never defined.
21615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21616 fi
21617 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21618 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21620 fi
21621 if test -n "$EXEEXT"; then
21622 am__EXEEXT_TRUE=
21623 am__EXEEXT_FALSE='#'
21624 else
21625 am__EXEEXT_TRUE='#'
21626 am__EXEEXT_FALSE=
21627 fi
21628
21629 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
21630 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
21631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21632 fi
21633 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21634 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21636 fi
21637 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21638 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21640 fi
21641 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21642 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21644 fi
21645 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
21646 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
21647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21648 fi
21649 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21650 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21652 fi
21653 if test -z "${HASXDMAUTH_TRUE}" && test -z "${HASXDMAUTH_FALSE}"; then
21654 as_fn_error $? "conditional \"HASXDMAUTH\" was never defined.
21655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21656 fi
21657 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21658 as_fn_error $? "conditional \"LINT\" was never defined.
21659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21660 fi
21661 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21662 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21664 fi
21665 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
21666 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
21667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21668 fi
21669
21670 : "${CONFIG_STATUS=./config.status}"
21671 ac_write_fail=0
21672 ac_clean_files_save=$ac_clean_files
21673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21675 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21676 as_write_fail=0
21677 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21678 #! $SHELL
21679 # Generated by $as_me.
21680 # Run this file to recreate the current configuration.
21681 # Compiler output produced by configure, useful for debugging
21682 # configure, is in config.log if it exists.
21683
21684 debug=false
21685 ac_cs_recheck=false
21686 ac_cs_silent=false
21687
21688 SHELL=\${CONFIG_SHELL-$SHELL}
21689 export SHELL
21690 _ASEOF
21691 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21692 ## -------------------- ##
21693 ## M4sh Initialization. ##
21694 ## -------------------- ##
21695
21696 # Be more Bourne compatible
21697 DUALCASE=1; export DUALCASE # for MKS sh
21698 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21699 then :
21700 emulate sh
21701 NULLCMD=:
21702 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21703 # is contrary to our usage. Disable this feature.
21704 alias -g '${1+"$@"}'='"$@"'
21705 setopt NO_GLOB_SUBST
21706 else case e in #(
21707 e) case `(set -o) 2>/dev/null` in #(
21708 *posix*) :
21709 set -o posix ;; #(
21710 *) :
21711 ;;
21712 esac ;;
21713 esac
21714 fi
21715
21716
21717
21718 # Reset variables that may have inherited troublesome values from
21719 # the environment.
21720
21721 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21722 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21723 # side effect of setting IFS to empty, thus disabling word splitting.)
21724 # Quoting is to prevent editors from complaining about space-tab.
21725 as_nl='
21726 '
21727 export as_nl
21728 IFS=" "" $as_nl"
21729
21730 PS1='$ '
21731 PS2='> '
21732 PS4='+ '
21733
21734 # Ensure predictable behavior from utilities with locale-dependent output.
21735 LC_ALL=C
21736 export LC_ALL
21737 LANGUAGE=C
21738 export LANGUAGE
21739
21740 # We cannot yet rely on "unset" to work, but we need these variables
21741 # to be unset--not just set to an empty or harmless value--now, to
21742 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21743 # also avoids known problems related to "unset" and subshell syntax
21744 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21745 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21746 do eval test \${$as_var+y} \
21747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21748 done
21749
21750 # Ensure that fds 0, 1, and 2 are open.
21751 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21752 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21753 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21754
21755 # The user is always right.
21756 if ${PATH_SEPARATOR+false} :; then
21757 PATH_SEPARATOR=:
21758 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21759 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21760 PATH_SEPARATOR=';'
21761 }
21762 fi
21763
21764
21765 # Find who we are. Look in the path if we contain no directory separator.
21766 as_myself=
21767 case $0 in #((
21768 *[\\/]* ) as_myself=$0 ;;
21769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21770 for as_dir in $PATH
21771 do
21772 IFS=$as_save_IFS
21773 case $as_dir in #(((
21774 '') as_dir=./ ;;
21775 */) ;;
21776 *) as_dir=$as_dir/ ;;
21777 esac
21778 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21779 done
21780 IFS=$as_save_IFS
21781
21782 ;;
21783 esac
21784 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21785 # in which case we are not to be found in the path.
21786 if test "x$as_myself" = x; then
21787 as_myself=$0
21788 fi
21789 if test ! -f "$as_myself"; then
21790 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21791 exit 1
21792 fi
21793
21794
21795
21796 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21797 # ----------------------------------------
21798 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21799 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21800 # script with STATUS, using 1 if that was 0.
21801 as_fn_error ()
21802 {
21803 as_status=$1; test $as_status -eq 0 && as_status=1
21804 if test "$4"; then
21805 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21807 fi
21808 printf "%s\n" "$as_me: error: $2" >&2
21809 as_fn_exit $as_status
21810 } # as_fn_error
21811
21812
21813 # as_fn_set_status STATUS
21814 # -----------------------
21815 # Set $? to STATUS, without forking.
21816 as_fn_set_status ()
21817 {
21818 return $1
21819 } # as_fn_set_status
21820
21821 # as_fn_exit STATUS
21822 # -----------------
21823 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21824 as_fn_exit ()
21825 {
21826 set +e
21827 as_fn_set_status $1
21828 exit $1
21829 } # as_fn_exit
21830
21831 # as_fn_unset VAR
21832 # ---------------
21833 # Portably unset VAR.
21834 as_fn_unset ()
21835 {
21836 { eval $1=; unset $1;}
21837 }
21838 as_unset=as_fn_unset
21839
21840 # as_fn_append VAR VALUE
21841 # ----------------------
21842 # Append the text in VALUE to the end of the definition contained in VAR. Take
21843 # advantage of any shell optimizations that allow amortized linear growth over
21844 # repeated appends, instead of the typical quadratic growth present in naive
21845 # implementations.
21846 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21847 then :
21848 eval 'as_fn_append ()
21849 {
21850 eval $1+=\$2
21851 }'
21852 else case e in #(
21853 e) as_fn_append ()
21854 {
21855 eval $1=\$$1\$2
21856 } ;;
21857 esac
21858 fi # as_fn_append
21859
21860 # as_fn_arith ARG...
21861 # ------------------
21862 # Perform arithmetic evaluation on the ARGs, and store the result in the
21863 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21864 # must be portable across $(()) and expr.
21865 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21866 then :
21867 eval 'as_fn_arith ()
21868 {
21869 as_val=$(( $* ))
21870 }'
21871 else case e in #(
21872 e) as_fn_arith ()
21873 {
21874 as_val=`expr "$@" || test $? -eq 1`
21875 } ;;
21876 esac
21877 fi # as_fn_arith
21878
21879
21880 if expr a : '\(a\)' >/dev/null 2>&1 &&
21881 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21882 as_expr=expr
21883 else
21884 as_expr=false
21885 fi
21886
21887 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21888 as_basename=basename
21889 else
21890 as_basename=false
21891 fi
21892
21893 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21894 as_dirname=dirname
21895 else
21896 as_dirname=false
21897 fi
21898
21899 as_me=`$as_basename -- "$0" ||
21900 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21901 X"$0" : 'X\(//\)$' \| \
21902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21903 printf "%s\n" X/"$0" |
21904 sed '/^.*\/\([^/][^/]*\)\/*$/{
21905 s//\1/
21906 q
21907 }
21908 /^X\/\(\/\/\)$/{
21909 s//\1/
21910 q
21911 }
21912 /^X\/\(\/\).*/{
21913 s//\1/
21914 q
21915 }
21916 s/.*/./; q'`
21917
21918 # Avoid depending upon Character Ranges.
21919 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21920 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21921 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21922 as_cr_digits='0123456789'
21923 as_cr_alnum=$as_cr_Letters$as_cr_digits
21924
21925
21926 # Determine whether it's possible to make 'echo' print without a newline.
21927 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21928 # for compatibility with existing Makefiles.
21929 ECHO_C= ECHO_N= ECHO_T=
21930 case `echo -n x` in #(((((
21931 -n*)
21932 case `echo 'xy\c'` in
21933 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21934 xy) ECHO_C='\c';;
21935 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21936 ECHO_T=' ';;
21937 esac;;
21938 *)
21939 ECHO_N='-n';;
21940 esac
21941
21942 # For backward compatibility with old third-party macros, we provide
21943 # the shell variables $as_echo and $as_echo_n. New code should use
21944 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21945 as_echo='printf %s\n'
21946 as_echo_n='printf %s'
21947
21948 rm -f conf$$ conf$$.exe conf$$.file
21949 if test -d conf$$.dir; then
21950 rm -f conf$$.dir/conf$$.file
21951 else
21952 rm -f conf$$.dir
21953 mkdir conf$$.dir 2>/dev/null
21954 fi
21955 if (echo >conf$$.file) 2>/dev/null; then
21956 if ln -s conf$$.file conf$$ 2>/dev/null; then
21957 as_ln_s='ln -s'
21958 # ... but there are two gotchas:
21959 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21960 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21961 # In both cases, we have to default to 'cp -pR'.
21962 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21963 as_ln_s='cp -pR'
21964 elif ln conf$$.file conf$$ 2>/dev/null; then
21965 as_ln_s=ln
21966 else
21967 as_ln_s='cp -pR'
21968 fi
21969 else
21970 as_ln_s='cp -pR'
21971 fi
21972 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21973 rmdir conf$$.dir 2>/dev/null
21974
21975
21976 # as_fn_mkdir_p
21977 # -------------
21978 # Create "$as_dir" as a directory, including parents if necessary.
21979 as_fn_mkdir_p ()
21980 {
21981
21982 case $as_dir in #(
21983 -*) as_dir=./$as_dir;;
21984 esac
21985 test -d "$as_dir" || eval $as_mkdir_p || {
21986 as_dirs=
21987 while :; do
21988 case $as_dir in #(
21989 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21990 *) as_qdir=$as_dir;;
21991 esac
21992 as_dirs="'$as_qdir' $as_dirs"
21993 as_dir=`$as_dirname -- "$as_dir" ||
21994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21995 X"$as_dir" : 'X\(//\)[^/]' \| \
21996 X"$as_dir" : 'X\(//\)$' \| \
21997 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21998 printf "%s\n" X"$as_dir" |
21999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22000 s//\1/
22001 q
22002 }
22003 /^X\(\/\/\)[^/].*/{
22004 s//\1/
22005 q
22006 }
22007 /^X\(\/\/\)$/{
22008 s//\1/
22009 q
22010 }
22011 /^X\(\/\).*/{
22012 s//\1/
22013 q
22014 }
22015 s/.*/./; q'`
22016 test -d "$as_dir" && break
22017 done
22018 test -z "$as_dirs" || eval "mkdir $as_dirs"
22019 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22020
22021
22022 } # as_fn_mkdir_p
22023 if mkdir -p . 2>/dev/null; then
22024 as_mkdir_p='mkdir -p "$as_dir"'
22025 else
22026 test -d ./-p && rmdir ./-p
22027 as_mkdir_p=false
22028 fi
22029
22030
22031 # as_fn_executable_p FILE
22032 # -----------------------
22033 # Test if FILE is an executable regular file.
22034 as_fn_executable_p ()
22035 {
22036 test -f "$1" && test -x "$1"
22037 } # as_fn_executable_p
22038 as_test_x='test -x'
22039 as_executable_p=as_fn_executable_p
22040
22041 # Sed expression to map a string onto a valid CPP name.
22042 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22043 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
22044
22045 # Sed expression to map a string onto a valid variable name.
22046 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22047 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
22048
22049
22050 exec 6>&1
22051 ## ----------------------------------- ##
22052 ## Main body of $CONFIG_STATUS script. ##
22053 ## ----------------------------------- ##
22054 _ASEOF
22055 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22056
22057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22058 # Save the log message, to keep $0 and so on meaningful, and to
22059 # report actual input values of CONFIG_FILES etc. instead of their
22060 # values after options handling.
22061 ac_log="
22062 This file was extended by libXdmcp $as_me 1.1.5, which was
22063 generated by GNU Autoconf 2.72. Invocation command line was
22064
22065 CONFIG_FILES = $CONFIG_FILES
22066 CONFIG_HEADERS = $CONFIG_HEADERS
22067 CONFIG_LINKS = $CONFIG_LINKS
22068 CONFIG_COMMANDS = $CONFIG_COMMANDS
22069 $ $0 $@
22070
22071 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22072 "
22073
22074 _ACEOF
22075
22076 case $ac_config_files in *"
22077 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22078 esac
22079
22080 case $ac_config_headers in *"
22081 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22082 esac
22083
22084
22085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22086 # Files that config.status was made for.
22087 config_files="$ac_config_files"
22088 config_headers="$ac_config_headers"
22089 config_commands="$ac_config_commands"
22090
22091 _ACEOF
22092
22093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22094 ac_cs_usage="\
22095 '$as_me' instantiates files and other configuration actions
22096 from templates according to the current configuration. Unless the files
22097 and actions are specified as TAGs, all are instantiated by default.
22098
22099 Usage: $0 [OPTION]... [TAG]...
22100
22101 -h, --help print this help, then exit
22102 -V, --version print version number and configuration settings, then exit
22103 --config print configuration, then exit
22104 -q, --quiet, --silent
22105 do not print progress messages
22106 -d, --debug don't remove temporary files
22107 --recheck update $as_me by reconfiguring in the same conditions
22108 --file=FILE[:TEMPLATE]
22109 instantiate the configuration file FILE
22110 --header=FILE[:TEMPLATE]
22111 instantiate the configuration header FILE
22112
22113 Configuration files:
22114 $config_files
22115
22116 Configuration headers:
22117 $config_headers
22118
22119 Configuration commands:
22120 $config_commands
22121
22122 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxdmcp/-/issues>."
22123
22124 _ACEOF
22125 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22126 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22128 ac_cs_config='$ac_cs_config_escaped'
22129 ac_cs_version="\\
22130 libXdmcp config.status 1.1.5
22131 configured by $0, generated by GNU Autoconf 2.72,
22132 with options \\"\$ac_cs_config\\"
22133
22134 Copyright (C) 2023 Free Software Foundation, Inc.
22135 This config.status script is free software; the Free Software Foundation
22136 gives unlimited permission to copy, distribute and modify it."
22137
22138 ac_pwd='$ac_pwd'
22139 srcdir='$srcdir'
22140 INSTALL='$INSTALL'
22141 MKDIR_P='$MKDIR_P'
22142 AWK='$AWK'
22143 test -n "\$AWK" || AWK=awk
22144 _ACEOF
22145
22146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22147 # The default lists apply if the user does not specify any file.
22148 ac_need_defaults=:
22149 while test $# != 0
22150 do
22151 case $1 in
22152 --*=?*)
22153 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22154 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22155 ac_shift=:
22156 ;;
22157 --*=)
22158 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22159 ac_optarg=
22160 ac_shift=:
22161 ;;
22162 *)
22163 ac_option=$1
22164 ac_optarg=$2
22165 ac_shift=shift
22166 ;;
22167 esac
22168
22169 case $ac_option in
22170 # Handling of the options.
22171 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22172 ac_cs_recheck=: ;;
22173 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22174 printf "%s\n" "$ac_cs_version"; exit ;;
22175 --config | --confi | --conf | --con | --co | --c )
22176 printf "%s\n" "$ac_cs_config"; exit ;;
22177 --debug | --debu | --deb | --de | --d | -d )
22178 debug=: ;;
22179 --file | --fil | --fi | --f )
22180 $ac_shift
22181 case $ac_optarg in
22182 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22183 '') as_fn_error $? "missing file argument" ;;
22184 esac
22185 as_fn_append CONFIG_FILES " '$ac_optarg'"
22186 ac_need_defaults=false;;
22187 --header | --heade | --head | --hea )
22188 $ac_shift
22189 case $ac_optarg in
22190 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22191 esac
22192 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22193 ac_need_defaults=false;;
22194 --he | --h)
22195 # Conflict between --help and --header
22196 as_fn_error $? "ambiguous option: '$1'
22197 Try '$0 --help' for more information.";;
22198 --help | --hel | -h )
22199 printf "%s\n" "$ac_cs_usage"; exit ;;
22200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22202 ac_cs_silent=: ;;
22203
22204 # This is an error.
22205 -*) as_fn_error $? "unrecognized option: '$1'
22206 Try '$0 --help' for more information." ;;
22207
22208 *) as_fn_append ac_config_targets " $1"
22209 ac_need_defaults=false ;;
22210
22211 esac
22212 shift
22213 done
22214
22215 ac_configure_extra_args=
22216
22217 if $ac_cs_silent; then
22218 exec 6>/dev/null
22219 ac_configure_extra_args="$ac_configure_extra_args --silent"
22220 fi
22221
22222 _ACEOF
22223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22224 if \$ac_cs_recheck; then
22225 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22226 shift
22227 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22228 CONFIG_SHELL='$SHELL'
22229 export CONFIG_SHELL
22230 exec "\$@"
22231 fi
22232
22233 _ACEOF
22234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22235 exec 5>>config.log
22236 {
22237 echo
22238 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22239 ## Running $as_me. ##
22240 _ASBOX
22241 printf "%s\n" "$ac_log"
22242 } >&5
22243
22244 _ACEOF
22245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22246 #
22247 # INIT-COMMANDS
22248 #
22249 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22250
22251
22252 # The HP-UX ksh and POSIX shell print the target directory to stdout
22253 # if CDPATH is set.
22254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22255
22256 sed_quote_subst='$sed_quote_subst'
22257 double_quote_subst='$double_quote_subst'
22258 delay_variable_subst='$delay_variable_subst'
22259 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22260 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22261 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22262 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22263 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22264 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22265 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22266 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22267 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22268 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22269 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22270 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22271 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22272 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22273 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22274 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22275 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22276 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22277 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22278 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22279 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22280 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22281 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22282 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22283 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22284 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22285 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22286 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22287 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22288 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22289 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22290 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22291 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22292 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22293 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22294 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22295 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22296 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22297 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22298 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22299 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22300 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22301 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22302 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22303 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22304 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22305 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22306 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22307 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22308 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22309 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22310 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22311 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22312 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22313 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22314 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22315 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22316 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22317 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22318 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22319 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22320 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"`'
22321 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22322 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22323 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22324 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22325 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22326 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22327 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22328 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22329 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22330 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22331 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22332 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22333 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22334 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22335 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22336 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22337 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22338 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22339 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22340 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22341 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22342 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22343 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22344 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22345 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22346 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22347 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22348 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22349 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22350 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22351 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22352 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22353 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22354 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22355 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22356 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22357 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22358 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22359 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22360 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22361 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22362 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22363 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22364 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22365 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22366 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22367 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22368 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22369 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22370 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22371 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22372 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22373 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22374 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22375 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22376 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22377 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22378 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22379 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22380 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22381 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22382 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22383 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22384 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22385 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22386 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22387 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22388 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22389 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22390 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22391 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22392 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22393 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22394 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22395 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22396 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22397
22398 LTCC='$LTCC'
22399 LTCFLAGS='$LTCFLAGS'
22400 compiler='$compiler_DEFAULT'
22401
22402 # A function that is used when there is no print builtin or printf.
22403 func_fallback_echo ()
22404 {
22405 eval 'cat <<_LTECHO_EOF
22406 \$1
22407 _LTECHO_EOF'
22408 }
22409
22410 # Quote evaled strings.
22411 for var in AS \
22412 DLLTOOL \
22413 OBJDUMP \
22414 SHELL \
22415 ECHO \
22416 PATH_SEPARATOR \
22417 SED \
22418 GREP \
22419 EGREP \
22420 FGREP \
22421 LD \
22422 NM \
22423 LN_S \
22424 lt_SP2NL \
22425 lt_NL2SP \
22426 reload_flag \
22427 FILECMD \
22428 deplibs_check_method \
22429 file_magic_cmd \
22430 file_magic_glob \
22431 want_nocaseglob \
22432 sharedlib_from_linklib_cmd \
22433 AR \
22434 archiver_list_spec \
22435 STRIP \
22436 RANLIB \
22437 CC \
22438 CFLAGS \
22439 compiler \
22440 lt_cv_sys_global_symbol_pipe \
22441 lt_cv_sys_global_symbol_to_cdecl \
22442 lt_cv_sys_global_symbol_to_import \
22443 lt_cv_sys_global_symbol_to_c_name_address \
22444 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22445 lt_cv_nm_interface \
22446 nm_file_list_spec \
22447 lt_cv_truncate_bin \
22448 lt_prog_compiler_no_builtin_flag \
22449 lt_prog_compiler_pic \
22450 lt_prog_compiler_wl \
22451 lt_prog_compiler_static \
22452 lt_cv_prog_compiler_c_o \
22453 need_locks \
22454 MANIFEST_TOOL \
22455 DSYMUTIL \
22456 NMEDIT \
22457 LIPO \
22458 OTOOL \
22459 OTOOL64 \
22460 shrext_cmds \
22461 export_dynamic_flag_spec \
22462 whole_archive_flag_spec \
22463 compiler_needs_object \
22464 with_gnu_ld \
22465 allow_undefined_flag \
22466 no_undefined_flag \
22467 hardcode_libdir_flag_spec \
22468 hardcode_libdir_separator \
22469 exclude_expsyms \
22470 include_expsyms \
22471 file_list_spec \
22472 variables_saved_for_relink \
22473 libname_spec \
22474 library_names_spec \
22475 soname_spec \
22476 install_override_mode \
22477 finish_eval \
22478 old_striplib \
22479 striplib; do
22480 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22481 *[\\\\\\\`\\"\\\$]*)
22482 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22483 ;;
22484 *)
22485 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22486 ;;
22487 esac
22488 done
22489
22490 # Double-quote double-evaled strings.
22491 for var in reload_cmds \
22492 old_postinstall_cmds \
22493 old_postuninstall_cmds \
22494 old_archive_cmds \
22495 extract_expsyms_cmds \
22496 old_archive_from_new_cmds \
22497 old_archive_from_expsyms_cmds \
22498 archive_cmds \
22499 archive_expsym_cmds \
22500 module_cmds \
22501 module_expsym_cmds \
22502 export_symbols_cmds \
22503 prelink_cmds \
22504 postlink_cmds \
22505 postinstall_cmds \
22506 postuninstall_cmds \
22507 finish_cmds \
22508 sys_lib_search_path_spec \
22509 configure_time_dlsearch_path \
22510 configure_time_lt_sys_library_path; do
22511 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22512 *[\\\\\\\`\\"\\\$]*)
22513 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22514 ;;
22515 *)
22516 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22517 ;;
22518 esac
22519 done
22520
22521 ac_aux_dir='$ac_aux_dir'
22522
22523 # See if we are running on zsh, and set the options that allow our
22524 # commands through without removal of \ escapes INIT.
22525 if test -n "\${ZSH_VERSION+set}"; then
22526 setopt NO_GLOB_SUBST
22527 fi
22528
22529
22530 PACKAGE='$PACKAGE'
22531 VERSION='$VERSION'
22532 RM='$RM'
22533 ofile='$ofile'
22534
22535
22536
22537
22538 _ACEOF
22539
22540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22541
22542 # Handling of arguments.
22543 for ac_config_target in $ac_config_targets
22544 do
22545 case $ac_config_target in
22546 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22547 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22548 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22549 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22550 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22551 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22552 "xdmcp.pc") CONFIG_FILES="$CONFIG_FILES xdmcp.pc" ;;
22553
22554 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22555 esac
22556 done
22557
22558
22559 # If the user did not use the arguments to specify the items to instantiate,
22560 # then the envvar interface is used. Set only those that are not.
22561 # We use the long form for the default assignment because of an extremely
22562 # bizarre bug on SunOS 4.1.3.
22563 if $ac_need_defaults; then
22564 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22565 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22566 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22567 fi
22568
22569 # Have a temporary directory for convenience. Make it in the build tree
22570 # simply because there is no reason against having it here, and in addition,
22571 # creating and moving files from /tmp can sometimes cause problems.
22572 # Hook for its removal unless debugging.
22573 # Note that there is a small window in which the directory will not be cleaned:
22574 # after its creation but before its name has been assigned to '$tmp'.
22575 $debug ||
22576 {
22577 tmp= ac_tmp=
22578 trap 'exit_status=$?
22579 : "${ac_tmp:=$tmp}"
22580 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22581 ' 0
22582 trap 'as_fn_exit 1' 1 2 13 15
22583 }
22584 # Create a (secure) tmp directory for tmp files.
22585
22586 {
22587 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22588 test -d "$tmp"
22589 } ||
22590 {
22591 tmp=./conf$$-$RANDOM
22592 (umask 077 && mkdir "$tmp")
22593 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22594 ac_tmp=$tmp
22595
22596 # Set up the scripts for CONFIG_FILES section.
22597 # No need to generate them if there are no CONFIG_FILES.
22598 # This happens for instance with './config.status config.h'.
22599 if test -n "$CONFIG_FILES"; then
22600
22601
22602 ac_cr=`echo X | tr X '\015'`
22603 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22604 # But we know of no other shell where ac_cr would be empty at this
22605 # point, so we can use a bashism as a fallback.
22606 if test "x$ac_cr" = x; then
22607 eval ac_cr=\$\'\\r\'
22608 fi
22609 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22610 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22611 ac_cs_awk_cr='\\r'
22612 else
22613 ac_cs_awk_cr=$ac_cr
22614 fi
22615
22616 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22617 _ACEOF
22618
22619
22620 {
22621 echo "cat >conf$$subs.awk <<_ACEOF" &&
22622 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22623 echo "_ACEOF"
22624 } >conf$$subs.sh ||
22625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22626 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22627 ac_delim='%!_!# '
22628 for ac_last_try in false false false false false :; do
22629 . ./conf$$subs.sh ||
22630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22631
22632 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22633 if test $ac_delim_n = $ac_delim_num; then
22634 break
22635 elif $ac_last_try; then
22636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22637 else
22638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22639 fi
22640 done
22641 rm -f conf$$subs.sh
22642
22643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22644 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22645 _ACEOF
22646 sed -n '
22647 h
22648 s/^/S["/; s/!.*/"]=/
22649 p
22650 g
22651 s/^[^!]*!//
22652 :repl
22653 t repl
22654 s/'"$ac_delim"'$//
22655 t delim
22656 :nl
22657 h
22658 s/\(.\{148\}\)..*/\1/
22659 t more1
22660 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22661 p
22662 n
22663 b repl
22664 :more1
22665 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22666 p
22667 g
22668 s/.\{148\}//
22669 t nl
22670 :delim
22671 h
22672 s/\(.\{148\}\)..*/\1/
22673 t more2
22674 s/["\\]/\\&/g; s/^/"/; s/$/"/
22675 p
22676 b
22677 :more2
22678 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22679 p
22680 g
22681 s/.\{148\}//
22682 t delim
22683 ' <conf$$subs.awk | sed '
22684 /^[^""]/{
22685 N
22686 s/\n//
22687 }
22688 ' >>$CONFIG_STATUS || ac_write_fail=1
22689 rm -f conf$$subs.awk
22690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22691 _ACAWK
22692 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22693 for (key in S) S_is_set[key] = 1
22694 FS = ""
22695
22696 }
22697 {
22698 line = $ 0
22699 nfields = split(line, field, "@")
22700 substed = 0
22701 len = length(field[1])
22702 for (i = 2; i < nfields; i++) {
22703 key = field[i]
22704 keylen = length(key)
22705 if (S_is_set[key]) {
22706 value = S[key]
22707 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22708 len += length(value) + length(field[++i])
22709 substed = 1
22710 } else
22711 len += 1 + keylen
22712 }
22713
22714 print line
22715 }
22716
22717 _ACAWK
22718 _ACEOF
22719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22720 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22721 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22722 else
22723 cat
22724 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22725 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22726 _ACEOF
22727
22728 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22729 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22730 # trailing colons and then remove the whole line if VPATH becomes empty
22731 # (actually we leave an empty line to preserve line numbers).
22732 if test "x$srcdir" = x.; then
22733 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22734 h
22735 s///
22736 s/^/:/
22737 s/[ ]*$/:/
22738 s/:\$(srcdir):/:/g
22739 s/:\${srcdir}:/:/g
22740 s/:@srcdir@:/:/g
22741 s/^:*//
22742 s/:*$//
22743 x
22744 s/\(=[ ]*\).*/\1/
22745 G
22746 s/\n//
22747 s/^[^=]*=[ ]*$//
22748 }'
22749 fi
22750
22751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22752 fi # test -n "$CONFIG_FILES"
22753
22754 # Set up the scripts for CONFIG_HEADERS section.
22755 # No need to generate them if there are no CONFIG_HEADERS.
22756 # This happens for instance with './config.status Makefile'.
22757 if test -n "$CONFIG_HEADERS"; then
22758 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22759 BEGIN {
22760 _ACEOF
22761
22762 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22763 # here-document in config.status, that substitutes the proper values into
22764 # config.h.in to produce config.h.
22765
22766 # Create a delimiter string that does not exist in confdefs.h, to ease
22767 # handling of long lines.
22768 ac_delim='%!_!# '
22769 for ac_last_try in false false :; do
22770 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22771 if test -z "$ac_tt"; then
22772 break
22773 elif $ac_last_try; then
22774 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22775 else
22776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22777 fi
22778 done
22779
22780 # For the awk script, D is an array of macro values keyed by name,
22781 # likewise P contains macro parameters if any. Preserve backslash
22782 # newline sequences.
22783
22784 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22785 sed -n '
22786 s/.\{148\}/&'"$ac_delim"'/g
22787 t rset
22788 :rset
22789 s/^[ ]*#[ ]*define[ ][ ]*/ /
22790 t def
22791 d
22792 :def
22793 s/\\$//
22794 t bsnl
22795 s/["\\]/\\&/g
22796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22797 D["\1"]=" \3"/p
22798 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22799 d
22800 :bsnl
22801 s/["\\]/\\&/g
22802 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22803 D["\1"]=" \3\\\\\\n"\\/p
22804 t cont
22805 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22806 t cont
22807 d
22808 :cont
22809 n
22810 s/.\{148\}/&'"$ac_delim"'/g
22811 t clear
22812 :clear
22813 s/\\$//
22814 t bsnlc
22815 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22816 d
22817 :bsnlc
22818 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22819 b cont
22820 ' <confdefs.h | sed '
22821 s/'"$ac_delim"'/"\\\
22822 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22823
22824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22825 for (key in D) D_is_set[key] = 1
22826 FS = ""
22827 }
22828 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22829 line = \$ 0
22830 split(line, arg, " ")
22831 if (arg[1] == "#") {
22832 defundef = arg[2]
22833 mac1 = arg[3]
22834 } else {
22835 defundef = substr(arg[1], 2)
22836 mac1 = arg[2]
22837 }
22838 split(mac1, mac2, "(") #)
22839 macro = mac2[1]
22840 prefix = substr(line, 1, index(line, defundef) - 1)
22841 if (D_is_set[macro]) {
22842 # Preserve the white space surrounding the "#".
22843 print prefix "define", macro P[macro] D[macro]
22844 next
22845 } else {
22846 # Replace #undef with comments. This is necessary, for example,
22847 # in the case of _POSIX_SOURCE, which is predefined and required
22848 # on some systems where configure will not decide to define it.
22849 if (defundef == "undef") {
22850 print "/*", prefix defundef, macro, "*/"
22851 next
22852 }
22853 }
22854 }
22855 { print }
22856 _ACAWK
22857 _ACEOF
22858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22859 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22860 fi # test -n "$CONFIG_HEADERS"
22861
22862
22863 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22864 shift
22865 for ac_tag
22866 do
22867 case $ac_tag in
22868 :[FHLC]) ac_mode=$ac_tag; continue;;
22869 esac
22870 case $ac_mode$ac_tag in
22871 :[FHL]*:*);;
22872 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22873 :[FH]-) ac_tag=-:-;;
22874 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22875 esac
22876 ac_save_IFS=$IFS
22877 IFS=:
22878 set x $ac_tag
22879 IFS=$ac_save_IFS
22880 shift
22881 ac_file=$1
22882 shift
22883
22884 case $ac_mode in
22885 :L) ac_source=$1;;
22886 :[FH])
22887 ac_file_inputs=
22888 for ac_f
22889 do
22890 case $ac_f in
22891 -) ac_f="$ac_tmp/stdin";;
22892 *) # Look for the file first in the build tree, then in the source tree
22893 # (if the path is not absolute). The absolute path cannot be DOS-style,
22894 # because $ac_f cannot contain ':'.
22895 test -f "$ac_f" ||
22896 case $ac_f in
22897 [\\/$]*) false;;
22898 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22899 esac ||
22900 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22901 esac
22902 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22903 as_fn_append ac_file_inputs " '$ac_f'"
22904 done
22905
22906 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22907 # use $as_me), people would be surprised to read:
22908 # /* config.h. Generated by config.status. */
22909 configure_input='Generated from '`
22910 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22911 `' by configure.'
22912 if test x"$ac_file" != x-; then
22913 configure_input="$ac_file. $configure_input"
22914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22915 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22916 fi
22917 # Neutralize special characters interpreted by sed in replacement strings.
22918 case $configure_input in #(
22919 *\&* | *\|* | *\\* )
22920 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22921 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22922 *) ac_sed_conf_input=$configure_input;;
22923 esac
22924
22925 case $ac_tag in
22926 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22928 esac
22929 ;;
22930 esac
22931
22932 ac_dir=`$as_dirname -- "$ac_file" ||
22933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22934 X"$ac_file" : 'X\(//\)[^/]' \| \
22935 X"$ac_file" : 'X\(//\)$' \| \
22936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22937 printf "%s\n" X"$ac_file" |
22938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22939 s//\1/
22940 q
22941 }
22942 /^X\(\/\/\)[^/].*/{
22943 s//\1/
22944 q
22945 }
22946 /^X\(\/\/\)$/{
22947 s//\1/
22948 q
22949 }
22950 /^X\(\/\).*/{
22951 s//\1/
22952 q
22953 }
22954 s/.*/./; q'`
22955 as_dir="$ac_dir"; as_fn_mkdir_p
22956 ac_builddir=.
22957
22958 case "$ac_dir" in
22959 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22960 *)
22961 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22962 # A ".." for each directory in $ac_dir_suffix.
22963 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22964 case $ac_top_builddir_sub in
22965 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22966 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22967 esac ;;
22968 esac
22969 ac_abs_top_builddir=$ac_pwd
22970 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22971 # for backward compatibility:
22972 ac_top_builddir=$ac_top_build_prefix
22973
22974 case $srcdir in
22975 .) # We are building in place.
22976 ac_srcdir=.
22977 ac_top_srcdir=$ac_top_builddir_sub
22978 ac_abs_top_srcdir=$ac_pwd ;;
22979 [\\/]* | ?:[\\/]* ) # Absolute name.
22980 ac_srcdir=$srcdir$ac_dir_suffix;
22981 ac_top_srcdir=$srcdir
22982 ac_abs_top_srcdir=$srcdir ;;
22983 *) # Relative name.
22984 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22985 ac_top_srcdir=$ac_top_build_prefix$srcdir
22986 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22987 esac
22988 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22989
22990
22991 case $ac_mode in
22992 :F)
22993 #
22994 # CONFIG_FILE
22995 #
22996
22997 case $INSTALL in
22998 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22999 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23000 esac
23001 ac_MKDIR_P=$MKDIR_P
23002 case $MKDIR_P in
23003 [\\/$]* | ?:[\\/]* ) ;;
23004 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23005 esac
23006 _ACEOF
23007
23008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23009 # If the template does not know about datarootdir, expand it.
23010 # FIXME: This hack should be removed a few years after 2.60.
23011 ac_datarootdir_hack=; ac_datarootdir_seen=
23012 ac_sed_dataroot='
23013 /datarootdir/ {
23014 p
23015 q
23016 }
23017 /@datadir@/p
23018 /@docdir@/p
23019 /@infodir@/p
23020 /@localedir@/p
23021 /@mandir@/p'
23022 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23023 *datarootdir*) ac_datarootdir_seen=yes;;
23024 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23026 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23027 _ACEOF
23028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23029 ac_datarootdir_hack='
23030 s&@datadir@&$datadir&g
23031 s&@docdir@&$docdir&g
23032 s&@infodir@&$infodir&g
23033 s&@localedir@&$localedir&g
23034 s&@mandir@&$mandir&g
23035 s&\\\${datarootdir}&$datarootdir&g' ;;
23036 esac
23037 _ACEOF
23038
23039 # Neutralize VPATH when '$srcdir' = '.'.
23040 # Shell code in configure.ac might set extrasub.
23041 # FIXME: do we really want to maintain this feature?
23042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23043 ac_sed_extra="$ac_vpsub
23044 $extrasub
23045 _ACEOF
23046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23047 :t
23048 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23049 s|@configure_input@|$ac_sed_conf_input|;t t
23050 s&@top_builddir@&$ac_top_builddir_sub&;t t
23051 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23052 s&@srcdir@&$ac_srcdir&;t t
23053 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23054 s&@top_srcdir@&$ac_top_srcdir&;t t
23055 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23056 s&@builddir@&$ac_builddir&;t t
23057 s&@abs_builddir@&$ac_abs_builddir&;t t
23058 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23059 s&@INSTALL@&$ac_INSTALL&;t t
23060 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23061 $ac_datarootdir_hack
23062 "
23063 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23064 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23065
23066 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23067 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23068 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23069 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23071 which seems to be undefined. Please make sure it is defined" >&5
23072 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23073 which seems to be undefined. Please make sure it is defined" >&2;}
23074
23075 rm -f "$ac_tmp/stdin"
23076 case $ac_file in
23077 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23078 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23079 esac \
23080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23081 ;;
23082 :H)
23083 #
23084 # CONFIG_HEADER
23085 #
23086 if test x"$ac_file" != x-; then
23087 {
23088 printf "%s\n" "/* $configure_input */" >&1 \
23089 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23090 } >"$ac_tmp/config.h" \
23091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23092 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23094 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23095 else
23096 rm -f "$ac_file"
23097 mv "$ac_tmp/config.h" "$ac_file" \
23098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23099 fi
23100 else
23101 printf "%s\n" "/* $configure_input */" >&1 \
23102 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23103 || as_fn_error $? "could not create -" "$LINENO" 5
23104 fi
23105 # Compute "$ac_file"'s index in $config_headers.
23106 _am_arg="$ac_file"
23107 _am_stamp_count=1
23108 for _am_header in $config_headers :; do
23109 case $_am_header in
23110 $_am_arg | $_am_arg:* )
23111 break ;;
23112 * )
23113 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23114 esac
23115 done
23116 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23117 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23118 X"$_am_arg" : 'X\(//\)[^/]' \| \
23119 X"$_am_arg" : 'X\(//\)$' \| \
23120 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23121 printf "%s\n" X"$_am_arg" |
23122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23123 s//\1/
23124 q
23125 }
23126 /^X\(\/\/\)[^/].*/{
23127 s//\1/
23128 q
23129 }
23130 /^X\(\/\/\)$/{
23131 s//\1/
23132 q
23133 }
23134 /^X\(\/\).*/{
23135 s//\1/
23136 q
23137 }
23138 s/.*/./; q'`/stamp-h$_am_stamp_count
23139 ;;
23140
23141 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23142 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23143 ;;
23144 esac
23145
23146
23147 case $ac_file$ac_mode in
23148 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23149 # Older Autoconf quotes --file arguments for eval, but not when files
23150 # are listed without --file. Let's play safe and only enable the eval
23151 # if we detect the quoting.
23152 # TODO: see whether this extra hack can be removed once we start
23153 # requiring Autoconf 2.70 or later.
23154 case $CONFIG_FILES in #(
23155 *\'*) :
23156 eval set x "$CONFIG_FILES" ;; #(
23157 *) :
23158 set x $CONFIG_FILES ;; #(
23159 *) :
23160 ;;
23161 esac
23162 shift
23163 # Used to flag and report bootstrapping failures.
23164 am_rc=0
23165 for am_mf
23166 do
23167 # Strip MF so we end up with the name of the file.
23168 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23169 # Check whether this is an Automake generated Makefile which includes
23170 # dependency-tracking related rules and includes.
23171 # Grep'ing the whole file directly is not great: AIX grep has a line
23172 # limit of 2048, but all sed's we know have understand at least 4000.
23173 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23174 || continue
23175 am_dirpart=`$as_dirname -- "$am_mf" ||
23176 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23177 X"$am_mf" : 'X\(//\)[^/]' \| \
23178 X"$am_mf" : 'X\(//\)$' \| \
23179 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23180 printf "%s\n" X"$am_mf" |
23181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23182 s//\1/
23183 q
23184 }
23185 /^X\(\/\/\)[^/].*/{
23186 s//\1/
23187 q
23188 }
23189 /^X\(\/\/\)$/{
23190 s//\1/
23191 q
23192 }
23193 /^X\(\/\).*/{
23194 s//\1/
23195 q
23196 }
23197 s/.*/./; q'`
23198 am_filepart=`$as_basename -- "$am_mf" ||
23199 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23200 X"$am_mf" : 'X\(//\)$' \| \
23201 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23202 printf "%s\n" X/"$am_mf" |
23203 sed '/^.*\/\([^/][^/]*\)\/*$/{
23204 s//\1/
23205 q
23206 }
23207 /^X\/\(\/\/\)$/{
23208 s//\1/
23209 q
23210 }
23211 /^X\/\(\/\).*/{
23212 s//\1/
23213 q
23214 }
23215 s/.*/./; q'`
23216 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23217 && sed -e '/# am--include-marker/d' "$am_filepart" \
23218 | $MAKE -f - am--depfiles" >&5
23219 (cd "$am_dirpart" \
23220 && sed -e '/# am--include-marker/d' "$am_filepart" \
23221 | $MAKE -f - am--depfiles) >&5 2>&5
23222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } || am_rc=$?
23225 done
23226 if test $am_rc -ne 0; then
23227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23228 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23229 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23230 for automatic dependency tracking. If GNU make was not used, consider
23231 re-running the configure script with MAKE=\"gmake\" (or whatever is
23232 necessary). You can also try re-running configure with the
23233 '--disable-dependency-tracking' option to at least be able to build
23234 the package (albeit without support for automatic dependency tracking).
23235 See 'config.log' for more details" "$LINENO" 5; }
23236 fi
23237 { am_dirpart=; unset am_dirpart;}
23238 { am_filepart=; unset am_filepart;}
23239 { am_mf=; unset am_mf;}
23240 { am_rc=; unset am_rc;}
23241 rm -f conftest-deps.mk
23242 }
23243 ;;
23244 "libtool":C)
23245
23246 # See if we are running on zsh, and set the options that allow our
23247 # commands through without removal of \ escapes.
23248 if test -n "${ZSH_VERSION+set}"; then
23249 setopt NO_GLOB_SUBST
23250 fi
23251
23252 cfgfile=${ofile}T
23253 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23254 $RM "$cfgfile"
23255
23256 cat <<_LT_EOF >> "$cfgfile"
23257 #! $SHELL
23258 # Generated automatically by $as_me ($PACKAGE) $VERSION
23259 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23260 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23261
23262 # Provide generalized library-building support services.
23263 # Written by Gordon Matzigkeit, 1996
23264
23265 # Copyright (C) 2014 Free Software Foundation, Inc.
23266 # This is free software; see the source for copying conditions. There is NO
23267 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23268
23269 # GNU Libtool is free software; you can redistribute it and/or modify
23270 # it under the terms of the GNU General Public License as published by
23271 # the Free Software Foundation; either version 2 of of the License, or
23272 # (at your option) any later version.
23273 #
23274 # As a special exception to the GNU General Public License, if you
23275 # distribute this file as part of a program or library that is built
23276 # using GNU Libtool, you may include this file under the same
23277 # distribution terms that you use for the rest of that program.
23278 #
23279 # GNU Libtool is distributed in the hope that it will be useful, but
23280 # WITHOUT ANY WARRANTY; without even the implied warranty of
23281 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23282 # GNU General Public License for more details.
23283 #
23284 # You should have received a copy of the GNU General Public License
23285 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23286
23287
23288 # The names of the tagged configurations supported by this script.
23289 available_tags=''
23290
23291 # Configured defaults for sys_lib_dlsearch_path munging.
23292 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23293
23294 # ### BEGIN LIBTOOL CONFIG
23295
23296 # Which release of libtool.m4 was used?
23297 macro_version=$macro_version
23298 macro_revision=$macro_revision
23299
23300 # Assembler program.
23301 AS=$lt_AS
23302
23303 # DLL creation program.
23304 DLLTOOL=$lt_DLLTOOL
23305
23306 # Object dumper program.
23307 OBJDUMP=$lt_OBJDUMP
23308
23309 # Whether or not to build shared libraries.
23310 build_libtool_libs=$enable_shared
23311
23312 # Whether or not to build static libraries.
23313 build_old_libs=$enable_static
23314
23315 # What type of objects to build.
23316 pic_mode=$pic_mode
23317
23318 # Whether or not to optimize for fast installation.
23319 fast_install=$enable_fast_install
23320
23321 # Shared archive member basename,for filename based shared library versioning on AIX.
23322 shared_archive_member_spec=$shared_archive_member_spec
23323
23324 # Shell to use when invoking shell scripts.
23325 SHELL=$lt_SHELL
23326
23327 # An echo program that protects backslashes.
23328 ECHO=$lt_ECHO
23329
23330 # The PATH separator for the build system.
23331 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23332
23333 # The host system.
23334 host_alias=$host_alias
23335 host=$host
23336 host_os=$host_os
23337
23338 # The build system.
23339 build_alias=$build_alias
23340 build=$build
23341 build_os=$build_os
23342
23343 # A sed program that does not truncate output.
23344 SED=$lt_SED
23345
23346 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23347 Xsed="\$SED -e 1s/^X//"
23348
23349 # A grep program that handles long lines.
23350 GREP=$lt_GREP
23351
23352 # An ERE matcher.
23353 EGREP=$lt_EGREP
23354
23355 # A literal string matcher.
23356 FGREP=$lt_FGREP
23357
23358 # A BSD- or MS-compatible name lister.
23359 NM=$lt_NM
23360
23361 # Whether we need soft or hard links.
23362 LN_S=$lt_LN_S
23363
23364 # What is the maximum length of a command?
23365 max_cmd_len=$max_cmd_len
23366
23367 # Object file suffix (normally "o").
23368 objext=$ac_objext
23369
23370 # Executable file suffix (normally "").
23371 exeext=$exeext
23372
23373 # whether the shell understands "unset".
23374 lt_unset=$lt_unset
23375
23376 # turn spaces into newlines.
23377 SP2NL=$lt_lt_SP2NL
23378
23379 # turn newlines into spaces.
23380 NL2SP=$lt_lt_NL2SP
23381
23382 # convert \$build file names to \$host format.
23383 to_host_file_cmd=$lt_cv_to_host_file_cmd
23384
23385 # convert \$build files to toolchain format.
23386 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23387
23388 # A file(cmd) program that detects file types.
23389 FILECMD=$lt_FILECMD
23390
23391 # Method to check whether dependent libraries are shared objects.
23392 deplibs_check_method=$lt_deplibs_check_method
23393
23394 # Command to use when deplibs_check_method = "file_magic".
23395 file_magic_cmd=$lt_file_magic_cmd
23396
23397 # How to find potential files when deplibs_check_method = "file_magic".
23398 file_magic_glob=$lt_file_magic_glob
23399
23400 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23401 want_nocaseglob=$lt_want_nocaseglob
23402
23403 # Command to associate shared and link libraries.
23404 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23405
23406 # The archiver.
23407 AR=$lt_AR
23408
23409 # Flags to create an archive (by configure).
23410 lt_ar_flags=$lt_ar_flags
23411
23412 # Flags to create an archive.
23413 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23414
23415 # How to feed a file listing to the archiver.
23416 archiver_list_spec=$lt_archiver_list_spec
23417
23418 # A symbol stripping program.
23419 STRIP=$lt_STRIP
23420
23421 # Commands used to install an old-style archive.
23422 RANLIB=$lt_RANLIB
23423 old_postinstall_cmds=$lt_old_postinstall_cmds
23424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23425
23426 # Whether to use a lock for old archive extraction.
23427 lock_old_archive_extraction=$lock_old_archive_extraction
23428
23429 # A C compiler.
23430 LTCC=$lt_CC
23431
23432 # LTCC compiler flags.
23433 LTCFLAGS=$lt_CFLAGS
23434
23435 # Take the output of nm and produce a listing of raw symbols and C names.
23436 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23437
23438 # Transform the output of nm in a proper C declaration.
23439 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23440
23441 # Transform the output of nm into a list of symbols to manually relocate.
23442 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23443
23444 # Transform the output of nm in a C name address pair.
23445 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23446
23447 # Transform the output of nm in a C name address pair when lib prefix is needed.
23448 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23449
23450 # The name lister interface.
23451 nm_interface=$lt_lt_cv_nm_interface
23452
23453 # Specify filename containing input files for \$NM.
23454 nm_file_list_spec=$lt_nm_file_list_spec
23455
23456 # The root where to search for dependent libraries,and where our libraries should be installed.
23457 lt_sysroot=$lt_sysroot
23458
23459 # Command to truncate a binary pipe.
23460 lt_truncate_bin=$lt_lt_cv_truncate_bin
23461
23462 # The name of the directory that contains temporary libtool files.
23463 objdir=$objdir
23464
23465 # Used to examine libraries when file_magic_cmd begins with "file".
23466 MAGIC_CMD=$MAGIC_CMD
23467
23468 # Must we lock files when doing compilation?
23469 need_locks=$lt_need_locks
23470
23471 # Manifest tool.
23472 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23473
23474 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23475 DSYMUTIL=$lt_DSYMUTIL
23476
23477 # Tool to change global to local symbols on Mac OS X.
23478 NMEDIT=$lt_NMEDIT
23479
23480 # Tool to manipulate fat objects and archives on Mac OS X.
23481 LIPO=$lt_LIPO
23482
23483 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23484 OTOOL=$lt_OTOOL
23485
23486 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23487 OTOOL64=$lt_OTOOL64
23488
23489 # Old archive suffix (normally "a").
23490 libext=$libext
23491
23492 # Shared library suffix (normally ".so").
23493 shrext_cmds=$lt_shrext_cmds
23494
23495 # The commands to extract the exported symbol list from a shared archive.
23496 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23497
23498 # Variables whose values should be saved in libtool wrapper scripts and
23499 # restored at link time.
23500 variables_saved_for_relink=$lt_variables_saved_for_relink
23501
23502 # Do we need the "lib" prefix for modules?
23503 need_lib_prefix=$need_lib_prefix
23504
23505 # Do we need a version for libraries?
23506 need_version=$need_version
23507
23508 # Library versioning type.
23509 version_type=$version_type
23510
23511 # Shared library runtime path variable.
23512 runpath_var=$runpath_var
23513
23514 # Shared library path variable.
23515 shlibpath_var=$shlibpath_var
23516
23517 # Is shlibpath searched before the hard-coded library search path?
23518 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23519
23520 # Format of library name prefix.
23521 libname_spec=$lt_libname_spec
23522
23523 # List of archive names. First name is the real one, the rest are links.
23524 # The last name is the one that the linker finds with -lNAME
23525 library_names_spec=$lt_library_names_spec
23526
23527 # The coded name of the library, if different from the real name.
23528 soname_spec=$lt_soname_spec
23529
23530 # Permission mode override for installation of shared libraries.
23531 install_override_mode=$lt_install_override_mode
23532
23533 # Command to use after installation of a shared archive.
23534 postinstall_cmds=$lt_postinstall_cmds
23535
23536 # Command to use after uninstallation of a shared archive.
23537 postuninstall_cmds=$lt_postuninstall_cmds
23538
23539 # Commands used to finish a libtool library installation in a directory.
23540 finish_cmds=$lt_finish_cmds
23541
23542 # As "finish_cmds", except a single script fragment to be evaled but
23543 # not shown.
23544 finish_eval=$lt_finish_eval
23545
23546 # Whether we should hardcode library paths into libraries.
23547 hardcode_into_libs=$hardcode_into_libs
23548
23549 # Compile-time system search path for libraries.
23550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23551
23552 # Detected run-time system search path for libraries.
23553 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23554
23555 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23556 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23557
23558 # Whether dlopen is supported.
23559 dlopen_support=$enable_dlopen
23560
23561 # Whether dlopen of programs is supported.
23562 dlopen_self=$enable_dlopen_self
23563
23564 # Whether dlopen of statically linked programs is supported.
23565 dlopen_self_static=$enable_dlopen_self_static
23566
23567 # Commands to strip libraries.
23568 old_striplib=$lt_old_striplib
23569 striplib=$lt_striplib
23570
23571
23572 # The linker used to build libraries.
23573 LD=$lt_LD
23574
23575 # How to create reloadable object files.
23576 reload_flag=$lt_reload_flag
23577 reload_cmds=$lt_reload_cmds
23578
23579 # Commands used to build an old-style archive.
23580 old_archive_cmds=$lt_old_archive_cmds
23581
23582 # A language specific compiler.
23583 CC=$lt_compiler
23584
23585 # Is the compiler the GNU compiler?
23586 with_gcc=$GCC
23587
23588 # Compiler flag to turn off builtin functions.
23589 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23590
23591 # Additional compiler flags for building library objects.
23592 pic_flag=$lt_lt_prog_compiler_pic
23593
23594 # How to pass a linker flag through the compiler.
23595 wl=$lt_lt_prog_compiler_wl
23596
23597 # Compiler flag to prevent dynamic linking.
23598 link_static_flag=$lt_lt_prog_compiler_static
23599
23600 # Does compiler simultaneously support -c and -o options?
23601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23602
23603 # Whether or not to add -lc for building shared libraries.
23604 build_libtool_need_lc=$archive_cmds_need_lc
23605
23606 # Whether or not to disallow shared libs when runtime libs are static.
23607 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23608
23609 # Compiler flag to allow reflexive dlopens.
23610 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23611
23612 # Compiler flag to generate shared objects directly from archives.
23613 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23614
23615 # Whether the compiler copes with passing no objects directly.
23616 compiler_needs_object=$lt_compiler_needs_object
23617
23618 # Create an old-style archive from a shared archive.
23619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23620
23621 # Create a temporary old-style archive to link instead of a shared archive.
23622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23623
23624 # Commands used to build a shared archive.
23625 archive_cmds=$lt_archive_cmds
23626 archive_expsym_cmds=$lt_archive_expsym_cmds
23627
23628 # Commands used to build a loadable module if different from building
23629 # a shared archive.
23630 module_cmds=$lt_module_cmds
23631 module_expsym_cmds=$lt_module_expsym_cmds
23632
23633 # Whether we are building with GNU ld or not.
23634 with_gnu_ld=$lt_with_gnu_ld
23635
23636 # Flag that allows shared libraries with undefined symbols to be built.
23637 allow_undefined_flag=$lt_allow_undefined_flag
23638
23639 # Flag that enforces no undefined symbols.
23640 no_undefined_flag=$lt_no_undefined_flag
23641
23642 # Flag to hardcode \$libdir into a binary during linking.
23643 # This must work even if \$libdir does not exist
23644 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23645
23646 # Whether we need a single "-rpath" flag with a separated argument.
23647 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23648
23649 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23650 # DIR into the resulting binary.
23651 hardcode_direct=$hardcode_direct
23652
23653 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23654 # DIR into the resulting binary and the resulting library dependency is
23655 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23656 # library is relocated.
23657 hardcode_direct_absolute=$hardcode_direct_absolute
23658
23659 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23660 # into the resulting binary.
23661 hardcode_minus_L=$hardcode_minus_L
23662
23663 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23664 # into the resulting binary.
23665 hardcode_shlibpath_var=$hardcode_shlibpath_var
23666
23667 # Set to "yes" if building a shared library automatically hardcodes DIR
23668 # into the library and all subsequent libraries and executables linked
23669 # against it.
23670 hardcode_automatic=$hardcode_automatic
23671
23672 # Set to yes if linker adds runtime paths of dependent libraries
23673 # to runtime path list.
23674 inherit_rpath=$inherit_rpath
23675
23676 # Whether libtool must link a program against all its dependency libraries.
23677 link_all_deplibs=$link_all_deplibs
23678
23679 # Set to "yes" if exported symbols are required.
23680 always_export_symbols=$always_export_symbols
23681
23682 # The commands to list exported symbols.
23683 export_symbols_cmds=$lt_export_symbols_cmds
23684
23685 # Symbols that should not be listed in the preloaded symbols.
23686 exclude_expsyms=$lt_exclude_expsyms
23687
23688 # Symbols that must always be exported.
23689 include_expsyms=$lt_include_expsyms
23690
23691 # Commands necessary for linking programs (against libraries) with templates.
23692 prelink_cmds=$lt_prelink_cmds
23693
23694 # Commands necessary for finishing linking programs.
23695 postlink_cmds=$lt_postlink_cmds
23696
23697 # Specify filename containing input files.
23698 file_list_spec=$lt_file_list_spec
23699
23700 # How to hardcode a shared library path into an executable.
23701 hardcode_action=$hardcode_action
23702
23703 # ### END LIBTOOL CONFIG
23704
23705 _LT_EOF
23706
23707 cat <<'_LT_EOF' >> "$cfgfile"
23708
23709 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23710
23711 # func_munge_path_list VARIABLE PATH
23712 # -----------------------------------
23713 # VARIABLE is name of variable containing _space_ separated list of
23714 # directories to be munged by the contents of PATH, which is string
23715 # having a format:
23716 # "DIR[:DIR]:"
23717 # string "DIR[ DIR]" will be prepended to VARIABLE
23718 # ":DIR[:DIR]"
23719 # string "DIR[ DIR]" will be appended to VARIABLE
23720 # "DIRP[:DIRP]::[DIRA:]DIRA"
23721 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23722 # "DIRA[ DIRA]" will be appended to VARIABLE
23723 # "DIR[:DIR]"
23724 # VARIABLE will be replaced by "DIR[ DIR]"
23725 func_munge_path_list ()
23726 {
23727 case x$2 in
23728 x)
23729 ;;
23730 *:)
23731 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23732 ;;
23733 x:*)
23734 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23735 ;;
23736 *::*)
23737 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23738 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23739 ;;
23740 *)
23741 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23742 ;;
23743 esac
23744 }
23745
23746
23747 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23748 func_cc_basename ()
23749 {
23750 for cc_temp in $*""; do
23751 case $cc_temp in
23752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23754 \-*) ;;
23755 *) break;;
23756 esac
23757 done
23758 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23759 }
23760
23761
23762 # ### END FUNCTIONS SHARED WITH CONFIGURE
23763
23764 _LT_EOF
23765
23766 case $host_os in
23767 aix3*)
23768 cat <<\_LT_EOF >> "$cfgfile"
23769 # AIX sometimes has problems with the GCC collect2 program. For some
23770 # reason, if we set the COLLECT_NAMES environment variable, the problems
23771 # vanish in a puff of smoke.
23772 if test set != "${COLLECT_NAMES+set}"; then
23773 COLLECT_NAMES=
23774 export COLLECT_NAMES
23775 fi
23776 _LT_EOF
23777 ;;
23778 esac
23779
23780
23781
23782 ltmain=$ac_aux_dir/ltmain.sh
23783
23784
23785 # We use sed instead of cat because bash on DJGPP gets confused if
23786 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23787 # text mode, it properly converts lines to CR/LF. This bash problem
23788 # is reportedly fixed, but why not run on old versions too?
23789 $SED '$q' "$ltmain" >> "$cfgfile" \
23790 || (rm -f "$cfgfile"; exit 1)
23791
23792 mv -f "$cfgfile" "$ofile" ||
23793 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23794 chmod +x "$ofile"
23795
23796 ;;
23797
23798 esac
23799 done # for ac_tag
23800
23801
23802 as_fn_exit 0
23803 _ACEOF
23804 ac_clean_files=$ac_clean_files_save
23805
23806 test $ac_write_fail = 0 ||
23807 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23808
23809
23810 # configure is writing to config.log, and then calls config.status.
23811 # config.status does its own redirection, appending to config.log.
23812 # Unfortunately, on DOS this fails, as config.log is still kept open
23813 # by configure, so config.status won't be able to write to it; its
23814 # output is simply discarded. So we exec the FD to /dev/null,
23815 # effectively closing config.log, so it can be properly (re)opened and
23816 # appended to by config.status. When coming back to configure, we
23817 # need to make the FD available again.
23818 if test "$no_create" != yes; then
23819 ac_cs_success=:
23820 ac_config_status_args=
23821 test "$silent" = yes &&
23822 ac_config_status_args="$ac_config_status_args --quiet"
23823 exec 5>/dev/null
23824 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23825 exec 5>>config.log
23826 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23827 # would make configure fail if this is the last instruction.
23828 $ac_cs_success || as_fn_exit 1
23829 fi
23830 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23832 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23833 fi
23834
23835
23836