configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXmu 1.1.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/lib/libxmu/-/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601 as_awk_strverscmp='
602 # Use only awk features that work with 7th edition Unix awk (1978).
603 # My, what an old awk you have, Mr. Solaris!
604 END {
605 while (length(v1) && length(v2)) {
606 # Set d1 to be the next thing to compare from v1, and likewise for d2.
607 # Normally this is a single character, but if v1 and v2 contain digits,
608 # compare them as integers and fractions as strverscmp does.
609 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
610 # Split v1 and v2 into their leading digit string components d1 and d2,
611 # and advance v1 and v2 past the leading digit strings.
612 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
613 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
614 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
615 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
616 if (d1 ~ /^0/) {
617 if (d2 ~ /^0/) {
618 # Compare two fractions.
619 while (d1 ~ /^0/ && d2 ~ /^0/) {
620 d1 = substr(d1, 2); len1--
621 d2 = substr(d2, 2); len2--
622 }
623 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
624 # The two components differ in length, and the common prefix
625 # contains only leading zeros. Consider the longer to be less.
626 d1 = -len1
627 d2 = -len2
628 } else {
629 # Otherwise, compare as strings.
630 d1 = "x" d1
631 d2 = "x" d2
632 }
633 } else {
634 # A fraction is less than an integer.
635 exit 1
636 }
637 } else {
638 if (d2 ~ /^0/) {
639 # An integer is greater than a fraction.
640 exit 2
641 } else {
642 # Compare two integers.
643 d1 += 0
644 d2 += 0
645 }
646 }
647 } else {
648 # The normal case, without worrying about digits.
649 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
650 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
651 }
652 if (d1 < d2) exit 1
653 if (d1 > d2) exit 2
654 }
655 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
656 # which mishandles some comparisons of empty strings to integers.
657 if (length(v2)) exit 1
658 if (length(v1)) exit 2
659 }
660 '
661
662 test -n "$DJDIR" || exec 7<&0 </dev/null
663 exec 6>&1
664
665 # Name of the host.
666 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
667 # so uname gets run too.
668 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
669
670 #
671 # Initializations.
672 #
673 ac_default_prefix=/usr/local
674 ac_clean_files=
675 ac_config_libobj_dir=.
676 LIBOBJS=
677 cross_compiling=no
678 subdirs=
679 MFLAGS=
680 MAKEFLAGS=
681
682 # Identity of this package.
683 PACKAGE_NAME='libXmu'
684 PACKAGE_TARNAME='libXmu'
685 PACKAGE_VERSION='1.1.4'
686 PACKAGE_STRING='libXmu 1.1.4'
687 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxmu/-/issues'
688 PACKAGE_URL=''
689
690 ac_unique_file="Makefile.am"
691 # Factoring default headers for most tests.
692 ac_includes_default="\
693 #include <stddef.h>
694 #ifdef HAVE_STDIO_H
695 # include <stdio.h>
696 #endif
697 #ifdef HAVE_STDLIB_H
698 # include <stdlib.h>
699 #endif
700 #ifdef HAVE_STRING_H
701 # include <string.h>
702 #endif
703 #ifdef HAVE_INTTYPES_H
704 # include <inttypes.h>
705 #endif
706 #ifdef HAVE_STDINT_H
707 # include <stdint.h>
708 #endif
709 #ifdef HAVE_STRINGS_H
710 # include <strings.h>
711 #endif
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef HAVE_UNISTD_H
719 # include <unistd.h>
720 #endif"
721
722 ac_header_c_list=
723 ac_subst_vars='am__EXEEXT_FALSE
724 am__EXEEXT_TRUE
725 LTLIBOBJS
726 LINTLIBUU
727 MAKE_LINT_LIB_FALSE
728 MAKE_LINT_LIB_TRUE
729 LINTLIB
730 LINT_FALSE
731 LINT_TRUE
732 LINT_FLAGS
733 LINT
734 LIBOBJS
735 XMUU_LIBS
736 XMUU_CFLAGS
737 XMU_LIBS
738 XMU_CFLAGS
739 HAVE_STYLESHEETS_FALSE
740 HAVE_STYLESHEETS_TRUE
741 XSL_STYLESHEET
742 STYLESHEET_SRCDIR
743 XORG_SGML_PATH
744 HAVE_XSLTPROC_FALSE
745 HAVE_XSLTPROC_TRUE
746 XSLTPROC
747 HAVE_FOP_FALSE
748 HAVE_FOP_TRUE
749 FOP
750 HAVE_XMLTO_FALSE
751 HAVE_XMLTO_TRUE
752 HAVE_XMLTO_TEXT_FALSE
753 HAVE_XMLTO_TEXT_TRUE
754 XMLTO
755 ENABLE_DOCS_FALSE
756 ENABLE_DOCS_TRUE
757 MAN_SUBSTS
758 XORG_MAN_PAGE
759 ADMIN_MAN_DIR
760 DRIVER_MAN_DIR
761 MISC_MAN_DIR
762 FILE_MAN_DIR
763 LIB_MAN_DIR
764 APP_MAN_DIR
765 ADMIN_MAN_SUFFIX
766 DRIVER_MAN_SUFFIX
767 MISC_MAN_SUFFIX
768 FILE_MAN_SUFFIX
769 LIB_MAN_SUFFIX
770 APP_MAN_SUFFIX
771 INSTALL_CMD
772 PKG_CONFIG_LIBDIR
773 PKG_CONFIG_PATH
774 PKG_CONFIG
775 CHANGELOG_CMD
776 STRICT_CFLAGS
777 CWARNFLAGS
778 BASE_CFLAGS
779 LT_SYS_LIBRARY_PATH
780 OTOOL64
781 OTOOL
782 LIPO
783 NMEDIT
784 DSYMUTIL
785 MANIFEST_TOOL
786 RANLIB
787 ac_ct_AR
788 AR
789 DLLTOOL
790 OBJDUMP
791 FILECMD
792 LN_S
793 NM
794 ac_ct_DUMPBIN
795 DUMPBIN
796 LD
797 FGREP
798 EGREP
799 GREP
800 SED
801 host_os
802 host_vendor
803 host_cpu
804 host
805 build_os
806 build_vendor
807 build_cpu
808 build
809 LIBTOOL
810 AM_BACKSLASH
811 AM_DEFAULT_VERBOSITY
812 AM_DEFAULT_V
813 AM_V
814 CSCOPE
815 ETAGS
816 CTAGS
817 am__fastdepCC_FALSE
818 am__fastdepCC_TRUE
819 CCDEPMODE
820 am__nodep
821 AMDEPBACKSLASH
822 AMDEP_FALSE
823 AMDEP_TRUE
824 am__include
825 DEPDIR
826 am__untar
827 am__tar
828 AMTAR
829 am__leading_dot
830 SET_MAKE
831 AWK
832 mkdir_p
833 MKDIR_P
834 INSTALL_STRIP_PROGRAM
835 STRIP
836 install_sh
837 MAKEINFO
838 AUTOHEADER
839 AUTOMAKE
840 AUTOCONF
841 ACLOCAL
842 VERSION
843 PACKAGE
844 CYGPATH_W
845 am__isrc
846 INSTALL_DATA
847 INSTALL_SCRIPT
848 INSTALL_PROGRAM
849 OBJEXT
850 EXEEXT
851 ac_ct_CC
852 CPPFLAGS
853 LDFLAGS
854 CFLAGS
855 CC
856 target_alias
857 host_alias
858 build_alias
859 LIBS
860 ECHO_T
861 ECHO_N
862 ECHO_C
863 DEFS
864 mandir
865 localedir
866 libdir
867 psdir
868 pdfdir
869 dvidir
870 htmldir
871 infodir
872 docdir
873 oldincludedir
874 includedir
875 runstatedir
876 localstatedir
877 sharedstatedir
878 sysconfdir
879 datadir
880 datarootdir
881 libexecdir
882 sbindir
883 bindir
884 program_transform_name
885 prefix
886 exec_prefix
887 PACKAGE_URL
888 PACKAGE_BUGREPORT
889 PACKAGE_STRING
890 PACKAGE_VERSION
891 PACKAGE_TARNAME
892 PACKAGE_NAME
893 PATH_SEPARATOR
894 SHELL
895 am__quote'
896 ac_subst_files=''
897 ac_user_opts='
898 enable_option_checking
899 enable_dependency_tracking
900 enable_silent_rules
901 enable_shared
902 enable_static
903 with_pic
904 enable_fast_install
905 with_aix_soname
906 with_gnu_ld
907 with_sysroot
908 enable_libtool_lock
909 enable_selective_werror
910 enable_strict_compilation
911 enable_docs
912 with_xmlto
913 with_fop
914 with_xsltproc
915 with_lint
916 enable_lint_library
917 '
918 ac_precious_vars='build_alias
919 host_alias
920 target_alias
921 CC
922 CFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
926 LT_SYS_LIBRARY_PATH
927 PKG_CONFIG
928 PKG_CONFIG_PATH
929 PKG_CONFIG_LIBDIR
930 XMLTO
931 FOP
932 XSLTPROC
933 XMU_CFLAGS
934 XMU_LIBS
935 XMUU_CFLAGS
936 XMUU_LIBS
937 LINT
938 LINT_FLAGS'
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 libXmu 1.1.4 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/libXmu]
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 libXmu 1.1.4:";;
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
1586 Optional Packages:
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1589 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1590 both]
1591 --with-aix-soname=aix|svr4|both
1592 shared library versioning (aka "SONAME") variant to
1593 provide on AIX, [default=aix].
1594 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1595 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1596 compiler's sysroot if not specified).
1597 --with-xmlto Use xmlto to regenerate documentation (default:
1598 auto)
1599 --with-fop Use fop to regenerate documentation (default: auto)
1600 --with-xsltproc Use xsltproc for the transformation of XML documents
1601 (default: auto)
1602 --with-lint Use a lint-style source code checker (default:
1603 disabled)
1604
1605 Some influential environment variables:
1606 CC C compiler command
1607 CFLAGS C compiler flags
1608 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609 nonstandard directory <lib dir>
1610 LIBS libraries to pass to the linker, e.g. -l<library>
1611 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1613 LT_SYS_LIBRARY_PATH
1614 User-defined run-time library search path.
1615 PKG_CONFIG path to pkg-config utility
1616 PKG_CONFIG_PATH
1617 directories to add to pkg-config's search path
1618 PKG_CONFIG_LIBDIR
1619 path overriding pkg-config's built-in search path
1620 XMLTO Path to xmlto command
1621 FOP Path to fop command
1622 XSLTPROC Path to xsltproc command
1623 XMU_CFLAGS C compiler flags for XMU, overriding pkg-config
1624 XMU_LIBS linker flags for XMU, overriding pkg-config
1625 XMUU_CFLAGS C compiler flags for XMUU, overriding pkg-config
1626 XMUU_LIBS linker flags for XMUU, overriding pkg-config
1627 LINT Path to a lint-style command
1628 LINT_FLAGS Flags for the lint-style command
1629
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1632
1633 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/issues>.
1634 _ACEOF
1635 ac_status=$?
1636 fi
1637
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1645
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *)
1649 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1661
1662 case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for configure.gnu first; this name is used for a wrapper for
1680 # Metaconfig's "Configure" on case-insensitive file systems.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1687 else
1688 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1691 done
1692 fi
1693
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1696 cat <<\_ACEOF
1697 libXmu configure 1.1.4
1698 generated by GNU Autoconf 2.71
1699
1700 Copyright (C) 2021 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1703 _ACEOF
1704 exit
1705 fi
1706
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1710
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest.beam
1718 if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 printf "%s\n" "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext
1737 then :
1738 ac_retval=0
1739 else $as_nop
1740 printf "%s\n" "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_compile
1749
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 printf %s "checking for $2... " >&6; }
1759 if eval test \${$3+y}
1760 then :
1761 printf %s "(cached) " >&6
1762 else $as_nop
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 $4
1766 #include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"
1769 then :
1770 eval "$3=yes"
1771 else $as_nop
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 printf "%s\n" "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_header_compile
1782
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_link ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 printf "%s\n" "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 test -x conftest$ac_exeext
1811 }
1812 then :
1813 ac_retval=0
1814 else $as_nop
1815 printf "%s\n" "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=1
1819 fi
1820 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822 # interfere with the next link command; also delete a directory that is
1823 # left behind by Apple's compiler. We do this before executing the actions.
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_link
1829
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 printf %s "checking for $2... " >&6; }
1838 if eval test \${$3+y}
1839 then :
1840 printf %s "(cached) " >&6
1841 else $as_nop
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1847
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below. */
1850
1851 #include <limits.h>
1852 #undef $2
1853
1854 /* Override any GCC internal prototype to avoid an error.
1855 Use char because int might match the return type of a GCC
1856 builtin and then its argument prototype would still apply. */
1857 #ifdef __cplusplus
1858 extern "C"
1859 #endif
1860 char $2 ();
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined __stub_$2 || defined __stub___$2
1865 choke me
1866 #endif
1867
1868 int
1869 main (void)
1870 {
1871 return $2 ();
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_link "$LINENO"
1877 then :
1878 eval "$3=yes"
1879 else $as_nop
1880 eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1883 conftest$ac_exeext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 printf "%s\n" "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_func
1891
1892 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1893 # ------------------------------------------------------------------
1894 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1895 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1896 ac_fn_check_decl ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 as_decl_name=`echo $2|sed 's/ *(.*//'`
1900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1901 printf %s "checking whether $as_decl_name is declared... " >&6; }
1902 if eval test \${$3+y}
1903 then :
1904 printf %s "(cached) " >&6
1905 else $as_nop
1906 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1907 eval ac_save_FLAGS=\$$6
1908 as_fn_append $6 " $5"
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 $4
1912 int
1913 main (void)
1914 {
1915 #ifndef $as_decl_name
1916 #ifdef __cplusplus
1917 (void) $as_decl_use;
1918 #else
1919 (void) $as_decl_name;
1920 #endif
1921 #endif
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"
1928 then :
1929 eval "$3=yes"
1930 else $as_nop
1931 eval "$3=no"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1934 eval $6=\$ac_save_FLAGS
1935
1936 fi
1937 eval ac_res=\$$3
1938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 printf "%s\n" "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_check_decl
1943 ac_configure_args_raw=
1944 for ac_arg
1945 do
1946 case $ac_arg in
1947 *\'*)
1948 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949 esac
1950 as_fn_append ac_configure_args_raw " '$ac_arg'"
1951 done
1952
1953 case $ac_configure_args_raw in
1954 *$as_nl*)
1955 ac_safe_unquote= ;;
1956 *)
1957 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1958 ac_unsafe_a="$ac_unsafe_z#~"
1959 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1960 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1961 esac
1962
1963 cat >config.log <<_ACEOF
1964 This file contains any messages produced by compilers while
1965 running configure, to aid debugging if configure makes a mistake.
1966
1967 It was created by libXmu $as_me 1.1.4, which was
1968 generated by GNU Autoconf 2.71. Invocation command line was
1969
1970 $ $0$ac_configure_args_raw
1971
1972 _ACEOF
1973 exec 5>>config.log
1974 {
1975 cat <<_ASUNAME
1976 ## --------- ##
1977 ## Platform. ##
1978 ## --------- ##
1979
1980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985
1986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1988
1989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1992 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1996
1997 _ASUNAME
1998
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002 IFS=$as_save_IFS
2003 case $as_dir in #(((
2004 '') as_dir=./ ;;
2005 */) ;;
2006 *) as_dir=$as_dir/ ;;
2007 esac
2008 printf "%s\n" "PATH: $as_dir"
2009 done
2010 IFS=$as_save_IFS
2011
2012 } >&5
2013
2014 cat >&5 <<_ACEOF
2015
2016
2017 ## ----------- ##
2018 ## Core tests. ##
2019 ## ----------- ##
2020
2021 _ACEOF
2022
2023
2024 # Keep a trace of the command line.
2025 # Strip out --no-create and --no-recursion so they do not pile up.
2026 # Strip out --silent because we don't want to record it for future runs.
2027 # Also quote any args containing shell meta-characters.
2028 # Make two passes to allow for proper duplicate-argument suppression.
2029 ac_configure_args=
2030 ac_configure_args0=
2031 ac_configure_args1=
2032 ac_must_keep_next=false
2033 for ac_pass in 1 2
2034 do
2035 for ac_arg
2036 do
2037 case $ac_arg in
2038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2040 | -silent | --silent | --silen | --sile | --sil)
2041 continue ;;
2042 *\'*)
2043 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2044 esac
2045 case $ac_pass in
2046 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2047 2)
2048 as_fn_append ac_configure_args1 " '$ac_arg'"
2049 if test $ac_must_keep_next = true; then
2050 ac_must_keep_next=false # Got value, back to normal.
2051 else
2052 case $ac_arg in
2053 *=* | --config-cache | -C | -disable-* | --disable-* \
2054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2056 | -with-* | --with-* | -without-* | --without-* | --x)
2057 case "$ac_configure_args0 " in
2058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059 esac
2060 ;;
2061 -* ) ac_must_keep_next=true ;;
2062 esac
2063 fi
2064 as_fn_append ac_configure_args " '$ac_arg'"
2065 ;;
2066 esac
2067 done
2068 done
2069 { ac_configure_args0=; unset ac_configure_args0;}
2070 { ac_configure_args1=; unset ac_configure_args1;}
2071
2072 # When interrupted or exit'd, cleanup temporary files, and complete
2073 # config.log. We remove comments because anyway the quotes in there
2074 # would cause problems or look ugly.
2075 # WARNING: Use '\'' to represent an apostrophe within the trap.
2076 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2077 trap 'exit_status=$?
2078 # Sanitize IFS.
2079 IFS=" "" $as_nl"
2080 # Save into config.log some information that might help in debugging.
2081 {
2082 echo
2083
2084 printf "%s\n" "## ---------------- ##
2085 ## Cache variables. ##
2086 ## ---------------- ##"
2087 echo
2088 # The following way of writing the cache mishandles newlines in values,
2089 (
2090 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2091 eval ac_val=\$$ac_var
2092 case $ac_val in #(
2093 *${as_nl}*)
2094 case $ac_var in #(
2095 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2096 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2097 esac
2098 case $ac_var in #(
2099 _ | IFS | as_nl) ;; #(
2100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2101 *) { eval $ac_var=; unset $ac_var;} ;;
2102 esac ;;
2103 esac
2104 done
2105 (set) 2>&1 |
2106 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2107 *${as_nl}ac_space=\ *)
2108 sed -n \
2109 "s/'\''/'\''\\\\'\'''\''/g;
2110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2111 ;; #(
2112 *)
2113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2114 ;;
2115 esac |
2116 sort
2117 )
2118 echo
2119
2120 printf "%s\n" "## ----------------- ##
2121 ## Output variables. ##
2122 ## ----------------- ##"
2123 echo
2124 for ac_var in $ac_subst_vars
2125 do
2126 eval ac_val=\$$ac_var
2127 case $ac_val in
2128 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 esac
2130 printf "%s\n" "$ac_var='\''$ac_val'\''"
2131 done | sort
2132 echo
2133
2134 if test -n "$ac_subst_files"; then
2135 printf "%s\n" "## ------------------- ##
2136 ## File substitutions. ##
2137 ## ------------------- ##"
2138 echo
2139 for ac_var in $ac_subst_files
2140 do
2141 eval ac_val=\$$ac_var
2142 case $ac_val in
2143 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 esac
2145 printf "%s\n" "$ac_var='\''$ac_val'\''"
2146 done | sort
2147 echo
2148 fi
2149
2150 if test -s confdefs.h; then
2151 printf "%s\n" "## ----------- ##
2152 ## confdefs.h. ##
2153 ## ----------- ##"
2154 echo
2155 cat confdefs.h
2156 echo
2157 fi
2158 test "$ac_signal" != 0 &&
2159 printf "%s\n" "$as_me: caught signal $ac_signal"
2160 printf "%s\n" "$as_me: exit $exit_status"
2161 } >&5
2162 rm -f core *.core core.conftest.* &&
2163 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2164 exit $exit_status
2165 ' 0
2166 for ac_signal in 1 2 13 15; do
2167 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2168 done
2169 ac_signal=0
2170
2171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2172 rm -f -r conftest* confdefs.h
2173
2174 printf "%s\n" "/* confdefs.h */" > confdefs.h
2175
2176 # Predefined preprocessor variables.
2177
2178 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2179
2180 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2181
2182 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2183
2184 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2185
2186 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2187
2188 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2189
2190
2191 # Let the site file select an alternate cache file if it wants to.
2192 # Prefer an explicitly selected file to automatically selected ones.
2193 if test -n "$CONFIG_SITE"; then
2194 ac_site_files="$CONFIG_SITE"
2195 elif test "x$prefix" != xNONE; then
2196 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2197 else
2198 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2199 fi
2200
2201 for ac_site_file in $ac_site_files
2202 do
2203 case $ac_site_file in #(
2204 */*) :
2205 ;; #(
2206 *) :
2207 ac_site_file=./$ac_site_file ;;
2208 esac
2209 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2211 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2212 sed 's/^/| /' "$ac_site_file" >&5
2213 . "$ac_site_file" \
2214 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2216 as_fn_error $? "failed to load site script $ac_site_file
2217 See \`config.log' for more details" "$LINENO" 5; }
2218 fi
2219 done
2220
2221 if test -r "$cache_file"; then
2222 # Some versions of bash will fail to source /dev/null (special files
2223 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2226 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2227 case $cache_file in
2228 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229 *) . "./$cache_file";;
2230 esac
2231 fi
2232 else
2233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2235 >$cache_file
2236 fi
2237
2238 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2239 # Test code for whether the C compiler supports C89 (global declarations)
2240 ac_c_conftest_c89_globals='
2241 /* Does the compiler advertise C89 conformance?
2242 Do not test the value of __STDC__, because some compilers set it to 0
2243 while being otherwise adequately conformant. */
2244 #if !defined __STDC__
2245 # error "Compiler does not advertise C89 conformance"
2246 #endif
2247
2248 #include <stddef.h>
2249 #include <stdarg.h>
2250 struct stat;
2251 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2252 struct buf { int x; };
2253 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2254 static char *e (p, i)
2255 char **p;
2256 int i;
2257 {
2258 return p[i];
2259 }
2260 static char *f (char * (*g) (char **, int), char **p, ...)
2261 {
2262 char *s;
2263 va_list v;
2264 va_start (v,p);
2265 s = g (p, va_arg (v,int));
2266 va_end (v);
2267 return s;
2268 }
2269
2270 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2271 function prototypes and stuff, but not \xHH hex character constants.
2272 These do not provoke an error unfortunately, instead are silently treated
2273 as an "x". The following induces an error, until -std is added to get
2274 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2275 array size at least. It is necessary to write \x00 == 0 to get something
2276 that is true only with -std. */
2277 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2278
2279 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2280 inside strings and character constants. */
2281 #define FOO(x) '\''x'\''
2282 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2283
2284 int test (int i, double x);
2285 struct s1 {int (*f) (int a);};
2286 struct s2 {int (*f) (double a);};
2287 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2288 int, int);'
2289
2290 # Test code for whether the C compiler supports C89 (body of main).
2291 ac_c_conftest_c89_main='
2292 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2293 '
2294
2295 # Test code for whether the C compiler supports C99 (global declarations)
2296 ac_c_conftest_c99_globals='
2297 // Does the compiler advertise C99 conformance?
2298 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2299 # error "Compiler does not advertise C99 conformance"
2300 #endif
2301
2302 #include <stdbool.h>
2303 extern int puts (const char *);
2304 extern int printf (const char *, ...);
2305 extern int dprintf (int, const char *, ...);
2306 extern void *malloc (size_t);
2307
2308 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2309 // dprintf is used instead of fprintf to avoid needing to declare
2310 // FILE and stderr.
2311 #define debug(...) dprintf (2, __VA_ARGS__)
2312 #define showlist(...) puts (#__VA_ARGS__)
2313 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2314 static void
2315 test_varargs_macros (void)
2316 {
2317 int x = 1234;
2318 int y = 5678;
2319 debug ("Flag");
2320 debug ("X = %d\n", x);
2321 showlist (The first, second, and third items.);
2322 report (x>y, "x is %d but y is %d", x, y);
2323 }
2324
2325 // Check long long types.
2326 #define BIG64 18446744073709551615ull
2327 #define BIG32 4294967295ul
2328 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2329 #if !BIG_OK
2330 #error "your preprocessor is broken"
2331 #endif
2332 #if BIG_OK
2333 #else
2334 #error "your preprocessor is broken"
2335 #endif
2336 static long long int bignum = -9223372036854775807LL;
2337 static unsigned long long int ubignum = BIG64;
2338
2339 struct incomplete_array
2340 {
2341 int datasize;
2342 double data[];
2343 };
2344
2345 struct named_init {
2346 int number;
2347 const wchar_t *name;
2348 double average;
2349 };
2350
2351 typedef const char *ccp;
2352
2353 static inline int
2354 test_restrict (ccp restrict text)
2355 {
2356 // See if C++-style comments work.
2357 // Iterate through items via the restricted pointer.
2358 // Also check for declarations in for loops.
2359 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2360 continue;
2361 return 0;
2362 }
2363
2364 // Check varargs and va_copy.
2365 static bool
2366 test_varargs (const char *format, ...)
2367 {
2368 va_list args;
2369 va_start (args, format);
2370 va_list args_copy;
2371 va_copy (args_copy, args);
2372
2373 const char *str = "";
2374 int number = 0;
2375 float fnumber = 0;
2376
2377 while (*format)
2378 {
2379 switch (*format++)
2380 {
2381 case '\''s'\'': // string
2382 str = va_arg (args_copy, const char *);
2383 break;
2384 case '\''d'\'': // int
2385 number = va_arg (args_copy, int);
2386 break;
2387 case '\''f'\'': // float
2388 fnumber = va_arg (args_copy, double);
2389 break;
2390 default:
2391 break;
2392 }
2393 }
2394 va_end (args_copy);
2395 va_end (args);
2396
2397 return *str && number && fnumber;
2398 }
2399 '
2400
2401 # Test code for whether the C compiler supports C99 (body of main).
2402 ac_c_conftest_c99_main='
2403 // Check bool.
2404 _Bool success = false;
2405 success |= (argc != 0);
2406
2407 // Check restrict.
2408 if (test_restrict ("String literal") == 0)
2409 success = true;
2410 char *restrict newvar = "Another string";
2411
2412 // Check varargs.
2413 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2414 test_varargs_macros ();
2415
2416 // Check flexible array members.
2417 struct incomplete_array *ia =
2418 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2419 ia->datasize = 10;
2420 for (int i = 0; i < ia->datasize; ++i)
2421 ia->data[i] = i * 1.234;
2422
2423 // Check named initializers.
2424 struct named_init ni = {
2425 .number = 34,
2426 .name = L"Test wide string",
2427 .average = 543.34343,
2428 };
2429
2430 ni.number = 58;
2431
2432 int dynamic_array[ni.number];
2433 dynamic_array[0] = argv[0][0];
2434 dynamic_array[ni.number - 1] = 543;
2435
2436 // work around unused variable warnings
2437 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2438 || dynamic_array[ni.number - 1] != 543);
2439 '
2440
2441 # Test code for whether the C compiler supports C11 (global declarations)
2442 ac_c_conftest_c11_globals='
2443 // Does the compiler advertise C11 conformance?
2444 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2445 # error "Compiler does not advertise C11 conformance"
2446 #endif
2447
2448 // Check _Alignas.
2449 char _Alignas (double) aligned_as_double;
2450 char _Alignas (0) no_special_alignment;
2451 extern char aligned_as_int;
2452 char _Alignas (0) _Alignas (int) aligned_as_int;
2453
2454 // Check _Alignof.
2455 enum
2456 {
2457 int_alignment = _Alignof (int),
2458 int_array_alignment = _Alignof (int[100]),
2459 char_alignment = _Alignof (char)
2460 };
2461 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2462
2463 // Check _Noreturn.
2464 int _Noreturn does_not_return (void) { for (;;) continue; }
2465
2466 // Check _Static_assert.
2467 struct test_static_assert
2468 {
2469 int x;
2470 _Static_assert (sizeof (int) <= sizeof (long int),
2471 "_Static_assert does not work in struct");
2472 long int y;
2473 };
2474
2475 // Check UTF-8 literals.
2476 #define u8 syntax error!
2477 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2478
2479 // Check duplicate typedefs.
2480 typedef long *long_ptr;
2481 typedef long int *long_ptr;
2482 typedef long_ptr long_ptr;
2483
2484 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2485 struct anonymous
2486 {
2487 union {
2488 struct { int i; int j; };
2489 struct { int k; long int l; } w;
2490 };
2491 int m;
2492 } v1;
2493 '
2494
2495 # Test code for whether the C compiler supports C11 (body of main).
2496 ac_c_conftest_c11_main='
2497 _Static_assert ((offsetof (struct anonymous, i)
2498 == offsetof (struct anonymous, w.k)),
2499 "Anonymous union alignment botch");
2500 v1.i = 2;
2501 v1.w.k = 5;
2502 ok |= v1.i != 5;
2503 '
2504
2505 # Test code for whether the C compiler supports C11 (complete).
2506 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2507 ${ac_c_conftest_c99_globals}
2508 ${ac_c_conftest_c11_globals}
2509
2510 int
2511 main (int argc, char **argv)
2512 {
2513 int ok = 0;
2514 ${ac_c_conftest_c89_main}
2515 ${ac_c_conftest_c99_main}
2516 ${ac_c_conftest_c11_main}
2517 return ok;
2518 }
2519 "
2520
2521 # Test code for whether the C compiler supports C99 (complete).
2522 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2523 ${ac_c_conftest_c99_globals}
2524
2525 int
2526 main (int argc, char **argv)
2527 {
2528 int ok = 0;
2529 ${ac_c_conftest_c89_main}
2530 ${ac_c_conftest_c99_main}
2531 return ok;
2532 }
2533 "
2534
2535 # Test code for whether the C compiler supports C89 (complete).
2536 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2537
2538 int
2539 main (int argc, char **argv)
2540 {
2541 int ok = 0;
2542 ${ac_c_conftest_c89_main}
2543 return ok;
2544 }
2545 "
2546
2547 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2548 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2549 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2550 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2551 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2552 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2553 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2554 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2555 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2556 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2557
2558 # Auxiliary files required by this configure script.
2559 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2560
2561 # Locations in which to look for auxiliary files.
2562 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2563
2564 # Search for a directory containing all of the required auxiliary files,
2565 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2566 # If we don't find one directory that contains all the files we need,
2567 # we report the set of missing files from the *first* directory in
2568 # $ac_aux_dir_candidates and give up.
2569 ac_missing_aux_files=""
2570 ac_first_candidate=:
2571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 as_found=false
2574 for as_dir in $ac_aux_dir_candidates
2575 do
2576 IFS=$as_save_IFS
2577 case $as_dir in #(((
2578 '') as_dir=./ ;;
2579 */) ;;
2580 *) as_dir=$as_dir/ ;;
2581 esac
2582 as_found=:
2583
2584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2585 ac_aux_dir_found=yes
2586 ac_install_sh=
2587 for ac_aux in $ac_aux_files
2588 do
2589 # As a special case, if "install-sh" is required, that requirement
2590 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2591 # and $ac_install_sh is set appropriately for whichever one is found.
2592 if test x"$ac_aux" = x"install-sh"
2593 then
2594 if test -f "${as_dir}install-sh"; then
2595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2596 ac_install_sh="${as_dir}install-sh -c"
2597 elif test -f "${as_dir}install.sh"; then
2598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2599 ac_install_sh="${as_dir}install.sh -c"
2600 elif test -f "${as_dir}shtool"; then
2601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2602 ac_install_sh="${as_dir}shtool install -c"
2603 else
2604 ac_aux_dir_found=no
2605 if $ac_first_candidate; then
2606 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2607 else
2608 break
2609 fi
2610 fi
2611 else
2612 if test -f "${as_dir}${ac_aux}"; then
2613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2614 else
2615 ac_aux_dir_found=no
2616 if $ac_first_candidate; then
2617 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2618 else
2619 break
2620 fi
2621 fi
2622 fi
2623 done
2624 if test "$ac_aux_dir_found" = yes; then
2625 ac_aux_dir="$as_dir"
2626 break
2627 fi
2628 ac_first_candidate=false
2629
2630 as_found=false
2631 done
2632 IFS=$as_save_IFS
2633 if $as_found
2634 then :
2635
2636 else $as_nop
2637 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2638 fi
2639
2640
2641 # These three variables are undocumented and unsupported,
2642 # and are intended to be withdrawn in a future Autoconf release.
2643 # They can cause serious problems if a builder's source tree is in a directory
2644 # whose full name contains unusual characters.
2645 if test -f "${ac_aux_dir}config.guess"; then
2646 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2647 fi
2648 if test -f "${ac_aux_dir}config.sub"; then
2649 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2650 fi
2651 if test -f "$ac_aux_dir/configure"; then
2652 ac_configure="$SHELL ${ac_aux_dir}configure"
2653 fi
2654
2655 # Check that the precious variables saved in the cache have kept the same
2656 # value.
2657 ac_cache_corrupted=false
2658 for ac_var in $ac_precious_vars; do
2659 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2660 eval ac_new_set=\$ac_env_${ac_var}_set
2661 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2662 eval ac_new_val=\$ac_env_${ac_var}_value
2663 case $ac_old_set,$ac_new_set in
2664 set,)
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2666 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2667 ac_cache_corrupted=: ;;
2668 ,set)
2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2670 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2671 ac_cache_corrupted=: ;;
2672 ,);;
2673 *)
2674 if test "x$ac_old_val" != "x$ac_new_val"; then
2675 # differences in whitespace do not lead to failure.
2676 ac_old_val_w=`echo x $ac_old_val`
2677 ac_new_val_w=`echo x $ac_new_val`
2678 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2680 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2681 ac_cache_corrupted=:
2682 else
2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2684 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2685 eval $ac_var=\$ac_old_val
2686 fi
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2688 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2690 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2691 fi;;
2692 esac
2693 # Pass precious variables to config.status.
2694 if test "$ac_new_set" = set; then
2695 case $ac_new_val in
2696 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2697 *) ac_arg=$ac_var=$ac_new_val ;;
2698 esac
2699 case " $ac_configure_args " in
2700 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2701 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2702 esac
2703 fi
2704 done
2705 if $ac_cache_corrupted; then
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2709 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2710 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2711 and start over" "$LINENO" 5
2712 fi
2713 ## -------------------- ##
2714 ## Main body of script. ##
2715 ## -------------------- ##
2716
2717 ac_ext=c
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722
2723
2724
2725 ac_config_headers="$ac_config_headers config.h"
2726
2727
2728 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2729 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2730 # to avoid autoconf errors.
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742 # Expand $ac_aux_dir to an absolute path.
2743 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2744
2745 ac_ext=c
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2752 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 printf %s "checking for $ac_word... " >&6; }
2755 if test ${ac_cv_prog_CC+y}
2756 then :
2757 printf %s "(cached) " >&6
2758 else $as_nop
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765 IFS=$as_save_IFS
2766 case $as_dir in #(((
2767 '') as_dir=./ ;;
2768 */) ;;
2769 *) as_dir=$as_dir/ ;;
2770 esac
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 CC=$ac_cv_prog_CC
2784 if test -n "$CC"; then
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 printf "%s\n" "$CC" >&6; }
2787 else
2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 printf "%s\n" "no" >&6; }
2790 fi
2791
2792
2793 fi
2794 if test -z "$ac_cv_prog_CC"; then
2795 ac_ct_CC=$CC
2796 # Extract the first word of "gcc", so it can be a program name with args.
2797 set dummy gcc; ac_word=$2
2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 printf %s "checking for $ac_word... " >&6; }
2800 if test ${ac_cv_prog_ac_ct_CC+y}
2801 then :
2802 printf %s "(cached) " >&6
2803 else $as_nop
2804 if test -n "$ac_ct_CC"; then
2805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806 else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810 IFS=$as_save_IFS
2811 case $as_dir in #(((
2812 '') as_dir=./ ;;
2813 */) ;;
2814 *) as_dir=$as_dir/ ;;
2815 esac
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2818 ac_cv_prog_ac_ct_CC="gcc"
2819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829 if test -n "$ac_ct_CC"; then
2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2831 printf "%s\n" "$ac_ct_CC" >&6; }
2832 else
2833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 printf "%s\n" "no" >&6; }
2835 fi
2836
2837 if test "x$ac_ct_CC" = x; then
2838 CC=""
2839 else
2840 case $cross_compiling:$ac_tool_warned in
2841 yes:)
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844 ac_tool_warned=yes ;;
2845 esac
2846 CC=$ac_ct_CC
2847 fi
2848 else
2849 CC="$ac_cv_prog_CC"
2850 fi
2851
2852 if test -z "$CC"; then
2853 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2855 set dummy ${ac_tool_prefix}cc; ac_word=$2
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 printf %s "checking for $ac_word... " >&6; }
2858 if test ${ac_cv_prog_CC+y}
2859 then :
2860 printf %s "(cached) " >&6
2861 else $as_nop
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 case $as_dir in #(((
2870 '') as_dir=./ ;;
2871 */) ;;
2872 *) as_dir=$as_dir/ ;;
2873 esac
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_CC="${ac_tool_prefix}cc"
2877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 CC=$ac_cv_prog_CC
2887 if test -n "$CC"; then
2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 printf "%s\n" "$CC" >&6; }
2890 else
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 printf "%s\n" "no" >&6; }
2893 fi
2894
2895
2896 fi
2897 fi
2898 if test -z "$CC"; then
2899 # Extract the first word of "cc", so it can be a program name with args.
2900 set dummy cc; ac_word=$2
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 printf %s "checking for $ac_word... " >&6; }
2903 if test ${ac_cv_prog_CC+y}
2904 then :
2905 printf %s "(cached) " >&6
2906 else $as_nop
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909 else
2910 ac_prog_rejected=no
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914 IFS=$as_save_IFS
2915 case $as_dir in #(((
2916 '') as_dir=./ ;;
2917 */) ;;
2918 *) as_dir=$as_dir/ ;;
2919 esac
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2922 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2923 ac_prog_rejected=yes
2924 continue
2925 fi
2926 ac_cv_prog_CC="cc"
2927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 if test $ac_prog_rejected = yes; then
2935 # We found a bogon in the path, so make sure we never use it.
2936 set dummy $ac_cv_prog_CC
2937 shift
2938 if test $# != 0; then
2939 # We chose a different compiler from the bogus one.
2940 # However, it has the same basename, so the bogon will be chosen
2941 # first if we set CC to just the basename; use the full file name.
2942 shift
2943 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2944 fi
2945 fi
2946 fi
2947 fi
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 printf "%s\n" "$CC" >&6; }
2952 else
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 printf "%s\n" "no" >&6; }
2955 fi
2956
2957
2958 fi
2959 if test -z "$CC"; then
2960 if test -n "$ac_tool_prefix"; then
2961 for ac_prog in cl.exe
2962 do
2963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 printf %s "checking for $ac_word... " >&6; }
2967 if test ${ac_cv_prog_CC+y}
2968 then :
2969 printf %s "(cached) " >&6
2970 else $as_nop
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 case $as_dir in #(((
2979 '') as_dir=./ ;;
2980 */) ;;
2981 *) as_dir=$as_dir/ ;;
2982 esac
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 printf "%s\n" "$CC" >&6; }
2999 else
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 printf "%s\n" "no" >&6; }
3002 fi
3003
3004
3005 test -n "$CC" && break
3006 done
3007 fi
3008 if test -z "$CC"; then
3009 ac_ct_CC=$CC
3010 for ac_prog in cl.exe
3011 do
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013 set dummy $ac_prog; ac_word=$2
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 printf %s "checking for $ac_word... " >&6; }
3016 if test ${ac_cv_prog_ac_ct_CC+y}
3017 then :
3018 printf %s "(cached) " >&6
3019 else $as_nop
3020 if test -n "$ac_ct_CC"; then
3021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026 IFS=$as_save_IFS
3027 case $as_dir in #(((
3028 '') as_dir=./ ;;
3029 */) ;;
3030 *) as_dir=$as_dir/ ;;
3031 esac
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_ac_ct_CC="$ac_prog"
3035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3036 break 2
3037 fi
3038 done
3039 done
3040 IFS=$as_save_IFS
3041
3042 fi
3043 fi
3044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045 if test -n "$ac_ct_CC"; then
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3047 printf "%s\n" "$ac_ct_CC" >&6; }
3048 else
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 printf "%s\n" "no" >&6; }
3051 fi
3052
3053
3054 test -n "$ac_ct_CC" && break
3055 done
3056
3057 if test "x$ac_ct_CC" = x; then
3058 CC=""
3059 else
3060 case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066 CC=$ac_ct_CC
3067 fi
3068 fi
3069
3070 fi
3071 if test -z "$CC"; then
3072 if test -n "$ac_tool_prefix"; then
3073 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3074 set dummy ${ac_tool_prefix}clang; ac_word=$2
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 printf %s "checking for $ac_word... " >&6; }
3077 if test ${ac_cv_prog_CC+y}
3078 then :
3079 printf %s "(cached) " >&6
3080 else $as_nop
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 case $as_dir in #(((
3089 '') as_dir=./ ;;
3090 */) ;;
3091 *) as_dir=$as_dir/ ;;
3092 esac
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_CC="${ac_tool_prefix}clang"
3096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3097 break 2
3098 fi
3099 done
3100 done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 printf "%s\n" "$CC" >&6; }
3109 else
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 printf "%s\n" "no" >&6; }
3112 fi
3113
3114
3115 fi
3116 if test -z "$ac_cv_prog_CC"; then
3117 ac_ct_CC=$CC
3118 # Extract the first word of "clang", so it can be a program name with args.
3119 set dummy clang; ac_word=$2
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 printf %s "checking for $ac_word... " >&6; }
3122 if test ${ac_cv_prog_ac_ct_CC+y}
3123 then :
3124 printf %s "(cached) " >&6
3125 else $as_nop
3126 if test -n "$ac_ct_CC"; then
3127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 case $as_dir in #(((
3134 '') as_dir=./ ;;
3135 */) ;;
3136 *) as_dir=$as_dir/ ;;
3137 esac
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_ac_ct_CC="clang"
3141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144 done
3145 done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3151 if test -n "$ac_ct_CC"; then
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3153 printf "%s\n" "$ac_ct_CC" >&6; }
3154 else
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 printf "%s\n" "no" >&6; }
3157 fi
3158
3159 if test "x$ac_ct_CC" = x; then
3160 CC=""
3161 else
3162 case $cross_compiling:$ac_tool_warned in
3163 yes:)
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3165 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3166 ac_tool_warned=yes ;;
3167 esac
3168 CC=$ac_ct_CC
3169 fi
3170 else
3171 CC="$ac_cv_prog_CC"
3172 fi
3173
3174 fi
3175
3176
3177 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "no acceptable C compiler found in \$PATH
3180 See \`config.log' for more details" "$LINENO" 5; }
3181
3182 # Provide some information about the compiler.
3183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3184 set X $ac_compile
3185 ac_compiler=$2
3186 for ac_option in --version -v -V -qversion -version; do
3187 { { ac_try="$ac_compiler $ac_option >&5"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193 printf "%s\n" "$ac_try_echo"; } >&5
3194 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3195 ac_status=$?
3196 if test -s conftest.err; then
3197 sed '10a\
3198 ... rest of stderr output deleted ...
3199 10q' conftest.err >conftest.er1
3200 cat conftest.er1 >&5
3201 fi
3202 rm -f conftest.er1 conftest.err
3203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }
3205 done
3206
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3209
3210 int
3211 main (void)
3212 {
3213
3214 ;
3215 return 0;
3216 }
3217 _ACEOF
3218 ac_clean_files_save=$ac_clean_files
3219 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3220 # Try to create an executable without -o first, disregard a.out.
3221 # It will help us diagnose broken compilers, and finding out an intuition
3222 # of exeext.
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3224 printf %s "checking whether the C compiler works... " >&6; }
3225 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3226
3227 # The possible output files:
3228 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3229
3230 ac_rmfiles=
3231 for ac_file in $ac_files
3232 do
3233 case $ac_file in
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236 esac
3237 done
3238 rm -f $ac_rmfiles
3239
3240 if { { ac_try="$ac_link_default"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 printf "%s\n" "$ac_try_echo"; } >&5
3247 (eval "$ac_link_default") 2>&5
3248 ac_status=$?
3249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }
3251 then :
3252 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3253 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3254 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3255 # so that the user can short-circuit this test for compilers unknown to
3256 # Autoconf.
3257 for ac_file in $ac_files ''
3258 do
3259 test -f "$ac_file" || continue
3260 case $ac_file in
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3262 ;;
3263 [ab].out )
3264 # We found the default executable, but exeext='' is most
3265 # certainly right.
3266 break;;
3267 *.* )
3268 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3269 then :; else
3270 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3271 fi
3272 # We set ac_cv_exeext here because the later test for it is not
3273 # safe: cross compilers may not add the suffix if given an `-o'
3274 # argument, so we may need to know it at that point already.
3275 # Even if this section looks crufty: it has the advantage of
3276 # actually working.
3277 break;;
3278 * )
3279 break;;
3280 esac
3281 done
3282 test "$ac_cv_exeext" = no && ac_cv_exeext=
3283
3284 else $as_nop
3285 ac_file=''
3286 fi
3287 if test -z "$ac_file"
3288 then :
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 printf "%s\n" "no" >&6; }
3291 printf "%s\n" "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error 77 "C compiler cannot create executables
3297 See \`config.log' for more details" "$LINENO" 5; }
3298 else $as_nop
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3300 printf "%s\n" "yes" >&6; }
3301 fi
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3303 printf %s "checking for C compiler default output file name... " >&6; }
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3305 printf "%s\n" "$ac_file" >&6; }
3306 ac_exeext=$ac_cv_exeext
3307
3308 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3309 ac_clean_files=$ac_clean_files_save
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3311 printf %s "checking for suffix of executables... " >&6; }
3312 if { { ac_try="$ac_link"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 printf "%s\n" "$ac_try_echo"; } >&5
3319 (eval "$ac_link") 2>&5
3320 ac_status=$?
3321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }
3323 then :
3324 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3325 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3326 # work properly (i.e., refer to `conftest.exe'), while it won't with
3327 # `rm'.
3328 for ac_file in conftest.exe conftest conftest.*; do
3329 test -f "$ac_file" || continue
3330 case $ac_file in
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3332 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333 break;;
3334 * ) break;;
3335 esac
3336 done
3337 else $as_nop
3338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3341 See \`config.log' for more details" "$LINENO" 5; }
3342 fi
3343 rm -f conftest conftest$ac_cv_exeext
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3345 printf "%s\n" "$ac_cv_exeext" >&6; }
3346
3347 rm -f conftest.$ac_ext
3348 EXEEXT=$ac_cv_exeext
3349 ac_exeext=$EXEEXT
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3352 #include <stdio.h>
3353 int
3354 main (void)
3355 {
3356 FILE *f = fopen ("conftest.out", "w");
3357 return ferror (f) || fclose (f) != 0;
3358
3359 ;
3360 return 0;
3361 }
3362 _ACEOF
3363 ac_clean_files="$ac_clean_files conftest.out"
3364 # Check that the compiler produces executables we can run. If not, either
3365 # the compiler is broken, or we cross compile.
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3367 printf %s "checking whether we are cross compiling... " >&6; }
3368 if test "$cross_compiling" != yes; then
3369 { { ac_try="$ac_link"
3370 case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 printf "%s\n" "$ac_try_echo"; } >&5
3376 (eval "$ac_link") 2>&5
3377 ac_status=$?
3378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }
3380 if { ac_try='./conftest$ac_cv_exeext'
3381 { { case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 printf "%s\n" "$ac_try_echo"; } >&5
3387 (eval "$ac_try") 2>&5
3388 ac_status=$?
3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; }; then
3391 cross_compiling=no
3392 else
3393 if test "$cross_compiling" = maybe; then
3394 cross_compiling=yes
3395 else
3396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3398 as_fn_error 77 "cannot run C compiled programs.
3399 If you meant to cross compile, use \`--host'.
3400 See \`config.log' for more details" "$LINENO" 5; }
3401 fi
3402 fi
3403 fi
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3405 printf "%s\n" "$cross_compiling" >&6; }
3406
3407 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3408 ac_clean_files=$ac_clean_files_save
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3410 printf %s "checking for suffix of object files... " >&6; }
3411 if test ${ac_cv_objext+y}
3412 then :
3413 printf %s "(cached) " >&6
3414 else $as_nop
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main (void)
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 rm -f conftest.o conftest.obj
3427 if { { ac_try="$ac_compile"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 printf "%s\n" "$ac_try_echo"; } >&5
3434 (eval "$ac_compile") 2>&5
3435 ac_status=$?
3436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }
3438 then :
3439 for ac_file in conftest.o conftest.obj conftest.*; do
3440 test -f "$ac_file" || continue;
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3444 break;;
3445 esac
3446 done
3447 else $as_nop
3448 printf "%s\n" "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of object files: cannot compile
3454 See \`config.log' for more details" "$LINENO" 5; }
3455 fi
3456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3457 fi
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3459 printf "%s\n" "$ac_cv_objext" >&6; }
3460 OBJEXT=$ac_cv_objext
3461 ac_objext=$OBJEXT
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3463 printf %s "checking whether the compiler supports GNU C... " >&6; }
3464 if test ${ac_cv_c_compiler_gnu+y}
3465 then :
3466 printf %s "(cached) " >&6
3467 else $as_nop
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470
3471 int
3472 main (void)
3473 {
3474 #ifndef __GNUC__
3475 choke me
3476 #endif
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 if ac_fn_c_try_compile "$LINENO"
3483 then :
3484 ac_compiler_gnu=yes
3485 else $as_nop
3486 ac_compiler_gnu=no
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3490
3491 fi
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3493 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496 if test $ac_compiler_gnu = yes; then
3497 GCC=yes
3498 else
3499 GCC=
3500 fi
3501 ac_test_CFLAGS=${CFLAGS+y}
3502 ac_save_CFLAGS=$CFLAGS
3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3504 printf %s "checking whether $CC accepts -g... " >&6; }
3505 if test ${ac_cv_prog_cc_g+y}
3506 then :
3507 printf %s "(cached) " >&6
3508 else $as_nop
3509 ac_save_c_werror_flag=$ac_c_werror_flag
3510 ac_c_werror_flag=yes
3511 ac_cv_prog_cc_g=no
3512 CFLAGS="-g"
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3515
3516 int
3517 main (void)
3518 {
3519
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 if ac_fn_c_try_compile "$LINENO"
3525 then :
3526 ac_cv_prog_cc_g=yes
3527 else $as_nop
3528 CFLAGS=""
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3531
3532 int
3533 main (void)
3534 {
3535
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 if ac_fn_c_try_compile "$LINENO"
3541 then :
3542
3543 else $as_nop
3544 ac_c_werror_flag=$ac_save_c_werror_flag
3545 CFLAGS="-g"
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3548
3549 int
3550 main (void)
3551 {
3552
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"
3558 then :
3559 ac_cv_prog_cc_g=yes
3560 fi
3561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3562 fi
3563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3564 fi
3565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3566 ac_c_werror_flag=$ac_save_c_werror_flag
3567 fi
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3569 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3570 if test $ac_test_CFLAGS; then
3571 CFLAGS=$ac_save_CFLAGS
3572 elif test $ac_cv_prog_cc_g = yes; then
3573 if test "$GCC" = yes; then
3574 CFLAGS="-g -O2"
3575 else
3576 CFLAGS="-g"
3577 fi
3578 else
3579 if test "$GCC" = yes; then
3580 CFLAGS="-O2"
3581 else
3582 CFLAGS=
3583 fi
3584 fi
3585 ac_prog_cc_stdc=no
3586 if test x$ac_prog_cc_stdc = xno
3587 then :
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3589 printf %s "checking for $CC option to enable C11 features... " >&6; }
3590 if test ${ac_cv_prog_cc_c11+y}
3591 then :
3592 printf %s "(cached) " >&6
3593 else $as_nop
3594 ac_cv_prog_cc_c11=no
3595 ac_save_CC=$CC
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598 $ac_c_conftest_c11_program
3599 _ACEOF
3600 for ac_arg in '' -std=gnu11
3601 do
3602 CC="$ac_save_CC $ac_arg"
3603 if ac_fn_c_try_compile "$LINENO"
3604 then :
3605 ac_cv_prog_cc_c11=$ac_arg
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.beam
3608 test "x$ac_cv_prog_cc_c11" != "xno" && break
3609 done
3610 rm -f conftest.$ac_ext
3611 CC=$ac_save_CC
3612 fi
3613
3614 if test "x$ac_cv_prog_cc_c11" = xno
3615 then :
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3617 printf "%s\n" "unsupported" >&6; }
3618 else $as_nop
3619 if test "x$ac_cv_prog_cc_c11" = x
3620 then :
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3622 printf "%s\n" "none needed" >&6; }
3623 else $as_nop
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3625 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3626 CC="$CC $ac_cv_prog_cc_c11"
3627 fi
3628 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3629 ac_prog_cc_stdc=c11
3630 fi
3631 fi
3632 if test x$ac_prog_cc_stdc = xno
3633 then :
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3635 printf %s "checking for $CC option to enable C99 features... " >&6; }
3636 if test ${ac_cv_prog_cc_c99+y}
3637 then :
3638 printf %s "(cached) " >&6
3639 else $as_nop
3640 ac_cv_prog_cc_c99=no
3641 ac_save_CC=$CC
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644 $ac_c_conftest_c99_program
3645 _ACEOF
3646 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3647 do
3648 CC="$ac_save_CC $ac_arg"
3649 if ac_fn_c_try_compile "$LINENO"
3650 then :
3651 ac_cv_prog_cc_c99=$ac_arg
3652 fi
3653 rm -f core conftest.err conftest.$ac_objext conftest.beam
3654 test "x$ac_cv_prog_cc_c99" != "xno" && break
3655 done
3656 rm -f conftest.$ac_ext
3657 CC=$ac_save_CC
3658 fi
3659
3660 if test "x$ac_cv_prog_cc_c99" = xno
3661 then :
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3663 printf "%s\n" "unsupported" >&6; }
3664 else $as_nop
3665 if test "x$ac_cv_prog_cc_c99" = x
3666 then :
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668 printf "%s\n" "none needed" >&6; }
3669 else $as_nop
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3671 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3672 CC="$CC $ac_cv_prog_cc_c99"
3673 fi
3674 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3675 ac_prog_cc_stdc=c99
3676 fi
3677 fi
3678 if test x$ac_prog_cc_stdc = xno
3679 then :
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3681 printf %s "checking for $CC option to enable C89 features... " >&6; }
3682 if test ${ac_cv_prog_cc_c89+y}
3683 then :
3684 printf %s "(cached) " >&6
3685 else $as_nop
3686 ac_cv_prog_cc_c89=no
3687 ac_save_CC=$CC
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690 $ac_c_conftest_c89_program
3691 _ACEOF
3692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 do
3694 CC="$ac_save_CC $ac_arg"
3695 if ac_fn_c_try_compile "$LINENO"
3696 then :
3697 ac_cv_prog_cc_c89=$ac_arg
3698 fi
3699 rm -f core conftest.err conftest.$ac_objext conftest.beam
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
3701 done
3702 rm -f conftest.$ac_ext
3703 CC=$ac_save_CC
3704 fi
3705
3706 if test "x$ac_cv_prog_cc_c89" = xno
3707 then :
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3709 printf "%s\n" "unsupported" >&6; }
3710 else $as_nop
3711 if test "x$ac_cv_prog_cc_c89" = x
3712 then :
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3714 printf "%s\n" "none needed" >&6; }
3715 else $as_nop
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3717 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3718 CC="$CC $ac_cv_prog_cc_c89"
3719 fi
3720 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3721 ac_prog_cc_stdc=c89
3722 fi
3723 fi
3724
3725 ac_ext=c
3726 ac_cpp='$CPP $CPPFLAGS'
3727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730
3731
3732 ac_ext=c
3733 ac_cpp='$CPP $CPPFLAGS'
3734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3738 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3739 if test ${am_cv_prog_cc_c_o+y}
3740 then :
3741 printf %s "(cached) " >&6
3742 else $as_nop
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745
3746 int
3747 main (void)
3748 {
3749
3750 ;
3751 return 0;
3752 }
3753 _ACEOF
3754 # Make sure it works both with $CC and with simple cc.
3755 # Following AC_PROG_CC_C_O, we do the test twice because some
3756 # compilers refuse to overwrite an existing .o file with -o,
3757 # though they will create one.
3758 am_cv_prog_cc_c_o=yes
3759 for am_i in 1 2; do
3760 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3761 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } \
3765 && test -f conftest2.$ac_objext; then
3766 : OK
3767 else
3768 am_cv_prog_cc_c_o=no
3769 break
3770 fi
3771 done
3772 rm -f core conftest*
3773 unset am_i
3774 fi
3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3776 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3777 if test "$am_cv_prog_cc_c_o" != yes; then
3778 # Losing compiler, so override with the script.
3779 # FIXME: It is wrong to rewrite CC.
3780 # But if we don't then we get into trouble of one sort or another.
3781 # A longer-term fix would be to have automake use am__CC in this case,
3782 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3783 CC="$am_aux_dir/compile $CC"
3784 fi
3785 ac_ext=c
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790
3791
3792
3793 ac_header= ac_cache=
3794 for ac_item in $ac_header_c_list
3795 do
3796 if test $ac_cache; then
3797 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3798 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3799 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3800 fi
3801 ac_header= ac_cache=
3802 elif test $ac_header; then
3803 ac_cache=$ac_item
3804 else
3805 ac_header=$ac_item
3806 fi
3807 done
3808
3809
3810
3811
3812
3813
3814
3815
3816 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3817 then :
3818
3819 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3820
3821 fi
3822
3823
3824
3825
3826
3827
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3829 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3830 if test ${ac_cv_safe_to_define___extensions__+y}
3831 then :
3832 printf %s "(cached) " >&6
3833 else $as_nop
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836
3837 # define __EXTENSIONS__ 1
3838 $ac_includes_default
3839 int
3840 main (void)
3841 {
3842
3843 ;
3844 return 0;
3845 }
3846 _ACEOF
3847 if ac_fn_c_try_compile "$LINENO"
3848 then :
3849 ac_cv_safe_to_define___extensions__=yes
3850 else $as_nop
3851 ac_cv_safe_to_define___extensions__=no
3852 fi
3853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3854 fi
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3856 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3857
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3859 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3860 if test ${ac_cv_should_define__xopen_source+y}
3861 then :
3862 printf %s "(cached) " >&6
3863 else $as_nop
3864 ac_cv_should_define__xopen_source=no
3865 if test $ac_cv_header_wchar_h = yes
3866 then :
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869
3870 #include <wchar.h>
3871 mbstate_t x;
3872 int
3873 main (void)
3874 {
3875
3876 ;
3877 return 0;
3878 }
3879 _ACEOF
3880 if ac_fn_c_try_compile "$LINENO"
3881 then :
3882
3883 else $as_nop
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886
3887 #define _XOPEN_SOURCE 500
3888 #include <wchar.h>
3889 mbstate_t x;
3890 int
3891 main (void)
3892 {
3893
3894 ;
3895 return 0;
3896 }
3897 _ACEOF
3898 if ac_fn_c_try_compile "$LINENO"
3899 then :
3900 ac_cv_should_define__xopen_source=yes
3901 fi
3902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3905 fi
3906 fi
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3908 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3909
3910 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3911
3912 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3913
3914 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3915
3916 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3917
3918 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3919
3920 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3921
3922 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3923
3924 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3925
3926 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3927
3928 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3929
3930 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3931
3932 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3933
3934 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3935
3936 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3937
3938 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3939
3940 if test $ac_cv_header_minix_config_h = yes
3941 then :
3942 MINIX=yes
3943 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3944
3945 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3946
3947 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3948
3949 else $as_nop
3950 MINIX=
3951 fi
3952 if test $ac_cv_safe_to_define___extensions__ = yes
3953 then :
3954 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3955
3956 fi
3957 if test $ac_cv_should_define__xopen_source = yes
3958 then :
3959 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3960
3961 fi
3962
3963
3964 # Initialize Automake
3965 am__api_version='1.16'
3966
3967
3968 # Find a good install program. We prefer a C program (faster),
3969 # so one script is as good as another. But avoid the broken or
3970 # incompatible versions:
3971 # SysV /etc/install, /usr/sbin/install
3972 # SunOS /usr/etc/install
3973 # IRIX /sbin/install
3974 # AIX /bin/install
3975 # AmigaOS /C/install, which installs bootblocks on floppy discs
3976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3979 # OS/2's system install, which has a completely different semantic
3980 # ./install, which can be erroneously created by make from ./install.sh.
3981 # Reject install programs that cannot install multiple files.
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3983 printf %s "checking for a BSD-compatible install... " >&6; }
3984 if test -z "$INSTALL"; then
3985 if test ${ac_cv_path_install+y}
3986 then :
3987 printf %s "(cached) " >&6
3988 else $as_nop
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 case $as_dir in #(((
3994 '') as_dir=./ ;;
3995 */) ;;
3996 *) as_dir=$as_dir/ ;;
3997 esac
3998 # Account for fact that we put trailing slashes in our PATH walk.
3999 case $as_dir in #((
4000 ./ | /[cC]/* | \
4001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4002 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4003 /usr/ucb/* ) ;;
4004 *)
4005 # OSF1 and SCO ODT 3.0 have their own names for install.
4006 # Don't use installbsd from OSF since it installs stuff as root
4007 # by default.
4008 for ac_prog in ginstall scoinst install; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4011 if test $ac_prog = install &&
4012 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4013 # AIX install. It has an incompatible calling convention.
4014 :
4015 elif test $ac_prog = install &&
4016 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4017 # program-specific install script used by HP pwplus--don't use.
4018 :
4019 else
4020 rm -rf conftest.one conftest.two conftest.dir
4021 echo one > conftest.one
4022 echo two > conftest.two
4023 mkdir conftest.dir
4024 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4025 test -s conftest.one && test -s conftest.two &&
4026 test -s conftest.dir/conftest.one &&
4027 test -s conftest.dir/conftest.two
4028 then
4029 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4030 break 3
4031 fi
4032 fi
4033 fi
4034 done
4035 done
4036 ;;
4037 esac
4038
4039 done
4040 IFS=$as_save_IFS
4041
4042 rm -rf conftest.one conftest.two conftest.dir
4043
4044 fi
4045 if test ${ac_cv_path_install+y}; then
4046 INSTALL=$ac_cv_path_install
4047 else
4048 # As a last resort, use the slow shell script. Don't cache a
4049 # value for INSTALL within a source directory, because that will
4050 # break other packages using the cache if that directory is
4051 # removed, or if the value is a relative name.
4052 INSTALL=$ac_install_sh
4053 fi
4054 fi
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4056 printf "%s\n" "$INSTALL" >&6; }
4057
4058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4059 # It thinks the first close brace ends the variable substitution.
4060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4061
4062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4063
4064 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4065
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4067 printf %s "checking whether build environment is sane... " >&6; }
4068 # Reject unsafe characters in $srcdir or the absolute working directory
4069 # name. Accept space and tab only in the latter.
4070 am_lf='
4071 '
4072 case `pwd` in
4073 *[\\\"\#\$\&\'\`$am_lf]*)
4074 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4075 esac
4076 case $srcdir in
4077 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4078 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4079 esac
4080
4081 # Do 'set' in a subshell so we don't clobber the current shell's
4082 # arguments. Must try -L first in case configure is actually a
4083 # symlink; some systems play weird games with the mod time of symlinks
4084 # (eg FreeBSD returns the mod time of the symlink's containing
4085 # directory).
4086 if (
4087 am_has_slept=no
4088 for am_try in 1 2; do
4089 echo "timestamp, slept: $am_has_slept" > conftest.file
4090 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4091 if test "$*" = "X"; then
4092 # -L didn't work.
4093 set X `ls -t "$srcdir/configure" conftest.file`
4094 fi
4095 if test "$*" != "X $srcdir/configure conftest.file" \
4096 && test "$*" != "X conftest.file $srcdir/configure"; then
4097
4098 # If neither matched, then we have a broken ls. This can happen
4099 # if, for instance, CONFIG_SHELL is bash and it inherits a
4100 # broken ls alias from the environment. This has actually
4101 # happened. Such a system could not be considered "sane".
4102 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4103 alias in your environment" "$LINENO" 5
4104 fi
4105 if test "$2" = conftest.file || test $am_try -eq 2; then
4106 break
4107 fi
4108 # Just in case.
4109 sleep 1
4110 am_has_slept=yes
4111 done
4112 test "$2" = conftest.file
4113 )
4114 then
4115 # Ok.
4116 :
4117 else
4118 as_fn_error $? "newly created file is older than distributed files!
4119 Check your system clock" "$LINENO" 5
4120 fi
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4122 printf "%s\n" "yes" >&6; }
4123 # If we didn't sleep, we still need to ensure time stamps of config.status and
4124 # generated files are strictly newer.
4125 am_sleep_pid=
4126 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4127 ( sleep 1 ) &
4128 am_sleep_pid=$!
4129 fi
4130
4131 rm -f conftest.file
4132
4133 test "$program_prefix" != NONE &&
4134 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4135 # Use a double $ so make ignores it.
4136 test "$program_suffix" != NONE &&
4137 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4138 # Double any \ or $.
4139 # By default was `s,x,x', remove it if useless.
4140 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4141 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4142
4143
4144 if test x"${MISSING+set}" != xset; then
4145 MISSING="\${SHELL} '$am_aux_dir/missing'"
4146 fi
4147 # Use eval to expand $SHELL
4148 if eval "$MISSING --is-lightweight"; then
4149 am_missing_run="$MISSING "
4150 else
4151 am_missing_run=
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4153 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4154 fi
4155
4156 if test x"${install_sh+set}" != xset; then
4157 case $am_aux_dir in
4158 *\ * | *\ *)
4159 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4160 *)
4161 install_sh="\${SHELL} $am_aux_dir/install-sh"
4162 esac
4163 fi
4164
4165 # Installed binaries are usually stripped using 'strip' when the user
4166 # run "make install-strip". However 'strip' might not be the right
4167 # tool to use in cross-compilation environments, therefore Automake
4168 # will honor the 'STRIP' environment variable to overrule this program.
4169 if test "$cross_compiling" != no; then
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}strip; ac_word=$2
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 printf %s "checking for $ac_word... " >&6; }
4175 if test ${ac_cv_prog_STRIP+y}
4176 then :
4177 printf %s "(cached) " >&6
4178 else $as_nop
4179 if test -n "$STRIP"; then
4180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185 IFS=$as_save_IFS
4186 case $as_dir in #(((
4187 '') as_dir=./ ;;
4188 */) ;;
4189 *) as_dir=$as_dir/ ;;
4190 esac
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4195 break 2
4196 fi
4197 done
4198 done
4199 IFS=$as_save_IFS
4200
4201 fi
4202 fi
4203 STRIP=$ac_cv_prog_STRIP
4204 if test -n "$STRIP"; then
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4206 printf "%s\n" "$STRIP" >&6; }
4207 else
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 printf "%s\n" "no" >&6; }
4210 fi
4211
4212
4213 fi
4214 if test -z "$ac_cv_prog_STRIP"; then
4215 ac_ct_STRIP=$STRIP
4216 # Extract the first word of "strip", so it can be a program name with args.
4217 set dummy strip; ac_word=$2
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 printf %s "checking for $ac_word... " >&6; }
4220 if test ${ac_cv_prog_ac_ct_STRIP+y}
4221 then :
4222 printf %s "(cached) " >&6
4223 else $as_nop
4224 if test -n "$ac_ct_STRIP"; then
4225 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4229 do
4230 IFS=$as_save_IFS
4231 case $as_dir in #(((
4232 '') as_dir=./ ;;
4233 */) ;;
4234 *) as_dir=$as_dir/ ;;
4235 esac
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4238 ac_cv_prog_ac_ct_STRIP="strip"
4239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4240 break 2
4241 fi
4242 done
4243 done
4244 IFS=$as_save_IFS
4245
4246 fi
4247 fi
4248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4249 if test -n "$ac_ct_STRIP"; then
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4251 printf "%s\n" "$ac_ct_STRIP" >&6; }
4252 else
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 printf "%s\n" "no" >&6; }
4255 fi
4256
4257 if test "x$ac_ct_STRIP" = x; then
4258 STRIP=":"
4259 else
4260 case $cross_compiling:$ac_tool_warned in
4261 yes:)
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4263 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4264 ac_tool_warned=yes ;;
4265 esac
4266 STRIP=$ac_ct_STRIP
4267 fi
4268 else
4269 STRIP="$ac_cv_prog_STRIP"
4270 fi
4271
4272 fi
4273 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4274
4275
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4277 printf %s "checking for a race-free mkdir -p... " >&6; }
4278 if test -z "$MKDIR_P"; then
4279 if test ${ac_cv_path_mkdir+y}
4280 then :
4281 printf %s "(cached) " >&6
4282 else $as_nop
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4285 do
4286 IFS=$as_save_IFS
4287 case $as_dir in #(((
4288 '') as_dir=./ ;;
4289 */) ;;
4290 *) as_dir=$as_dir/ ;;
4291 esac
4292 for ac_prog in mkdir gmkdir; do
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4295 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4296 'mkdir ('*'coreutils) '* | \
4297 'BusyBox '* | \
4298 'mkdir (fileutils) '4.1*)
4299 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4300 break 3;;
4301 esac
4302 done
4303 done
4304 done
4305 IFS=$as_save_IFS
4306
4307 fi
4308
4309 test -d ./--version && rmdir ./--version
4310 if test ${ac_cv_path_mkdir+y}; then
4311 MKDIR_P="$ac_cv_path_mkdir -p"
4312 else
4313 # As a last resort, use the slow shell script. Don't cache a
4314 # value for MKDIR_P within a source directory, because that will
4315 # break other packages using the cache if that directory is
4316 # removed, or if the value is a relative name.
4317 MKDIR_P="$ac_install_sh -d"
4318 fi
4319 fi
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4321 printf "%s\n" "$MKDIR_P" >&6; }
4322
4323 for ac_prog in gawk mawk nawk awk
4324 do
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 printf %s "checking for $ac_word... " >&6; }
4329 if test ${ac_cv_prog_AWK+y}
4330 then :
4331 printf %s "(cached) " >&6
4332 else $as_nop
4333 if test -n "$AWK"; then
4334 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339 IFS=$as_save_IFS
4340 case $as_dir in #(((
4341 '') as_dir=./ ;;
4342 */) ;;
4343 *) as_dir=$as_dir/ ;;
4344 esac
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_AWK="$ac_prog"
4348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 AWK=$ac_cv_prog_AWK
4358 if test -n "$AWK"; then
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4360 printf "%s\n" "$AWK" >&6; }
4361 else
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 printf "%s\n" "no" >&6; }
4364 fi
4365
4366
4367 test -n "$AWK" && break
4368 done
4369
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4371 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4372 set x ${MAKE-make}
4373 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4374 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4375 then :
4376 printf %s "(cached) " >&6
4377 else $as_nop
4378 cat >conftest.make <<\_ACEOF
4379 SHELL = /bin/sh
4380 all:
4381 @echo '@@@%%%=$(MAKE)=@@@%%%'
4382 _ACEOF
4383 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4384 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4385 *@@@%%%=?*=@@@%%%*)
4386 eval ac_cv_prog_make_${ac_make}_set=yes;;
4387 *)
4388 eval ac_cv_prog_make_${ac_make}_set=no;;
4389 esac
4390 rm -f conftest.make
4391 fi
4392 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4394 printf "%s\n" "yes" >&6; }
4395 SET_MAKE=
4396 else
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 printf "%s\n" "no" >&6; }
4399 SET_MAKE="MAKE=${MAKE-make}"
4400 fi
4401
4402 rm -rf .tst 2>/dev/null
4403 mkdir .tst 2>/dev/null
4404 if test -d .tst; then
4405 am__leading_dot=.
4406 else
4407 am__leading_dot=_
4408 fi
4409 rmdir .tst 2>/dev/null
4410
4411 DEPDIR="${am__leading_dot}deps"
4412
4413 ac_config_commands="$ac_config_commands depfiles"
4414
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4416 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4417 cat > confinc.mk << 'END'
4418 am__doit:
4419 @echo this is the am__doit target >confinc.out
4420 .PHONY: am__doit
4421 END
4422 am__include="#"
4423 am__quote=
4424 # BSD make does it like this.
4425 echo '.include "confinc.mk" # ignored' > confmf.BSD
4426 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4427 echo 'include confinc.mk # ignored' > confmf.GNU
4428 _am_result=no
4429 for s in GNU BSD; do
4430 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4431 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }
4435 case $?:`cat confinc.out 2>/dev/null` in #(
4436 '0:this is the am__doit target') :
4437 case $s in #(
4438 BSD) :
4439 am__include='.include' am__quote='"' ;; #(
4440 *) :
4441 am__include='include' am__quote='' ;;
4442 esac ;; #(
4443 *) :
4444 ;;
4445 esac
4446 if test "$am__include" != "#"; then
4447 _am_result="yes ($s style)"
4448 break
4449 fi
4450 done
4451 rm -f confinc.* confmf.*
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4453 printf "%s\n" "${_am_result}" >&6; }
4454
4455 # Check whether --enable-dependency-tracking was given.
4456 if test ${enable_dependency_tracking+y}
4457 then :
4458 enableval=$enable_dependency_tracking;
4459 fi
4460
4461 if test "x$enable_dependency_tracking" != xno; then
4462 am_depcomp="$ac_aux_dir/depcomp"
4463 AMDEPBACKSLASH='\'
4464 am__nodep='_no'
4465 fi
4466 if test "x$enable_dependency_tracking" != xno; then
4467 AMDEP_TRUE=
4468 AMDEP_FALSE='#'
4469 else
4470 AMDEP_TRUE='#'
4471 AMDEP_FALSE=
4472 fi
4473
4474
4475 # Check whether --enable-silent-rules was given.
4476 if test ${enable_silent_rules+y}
4477 then :
4478 enableval=$enable_silent_rules;
4479 fi
4480
4481 case $enable_silent_rules in # (((
4482 yes) AM_DEFAULT_VERBOSITY=0;;
4483 no) AM_DEFAULT_VERBOSITY=1;;
4484 *) AM_DEFAULT_VERBOSITY=1;;
4485 esac
4486 am_make=${MAKE-make}
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4488 printf %s "checking whether $am_make supports nested variables... " >&6; }
4489 if test ${am_cv_make_support_nested_variables+y}
4490 then :
4491 printf %s "(cached) " >&6
4492 else $as_nop
4493 if printf "%s\n" 'TRUE=$(BAR$(V))
4494 BAR0=false
4495 BAR1=true
4496 V=1
4497 am__doit:
4498 @$(TRUE)
4499 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4500 am_cv_make_support_nested_variables=yes
4501 else
4502 am_cv_make_support_nested_variables=no
4503 fi
4504 fi
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4506 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4507 if test $am_cv_make_support_nested_variables = yes; then
4508 AM_V='$(V)'
4509 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4510 else
4511 AM_V=$AM_DEFAULT_VERBOSITY
4512 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4513 fi
4514 AM_BACKSLASH='\'
4515
4516 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4517 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4518 # is not polluted with repeated "-I."
4519 am__isrc=' -I$(srcdir)'
4520 # test to see if srcdir already configured
4521 if test -f $srcdir/config.status; then
4522 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4523 fi
4524 fi
4525
4526 # test whether we have cygpath
4527 if test -z "$CYGPATH_W"; then
4528 if (cygpath --version) >/dev/null 2>/dev/null; then
4529 CYGPATH_W='cygpath -w'
4530 else
4531 CYGPATH_W=echo
4532 fi
4533 fi
4534
4535
4536 # Define the identity of the package.
4537 PACKAGE='libXmu'
4538 VERSION='1.1.4'
4539
4540
4541 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4542
4543
4544 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4545
4546 # Some tools Automake needs.
4547
4548 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4549
4550
4551 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4552
4553
4554 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4555
4556
4557 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4558
4559
4560 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4561
4562 # For better backward compatibility. To be removed once Automake 1.9.x
4563 # dies out for good. For more background, see:
4564 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4565 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4566 mkdir_p='$(MKDIR_P)'
4567
4568 # We need awk for the "check" target (and possibly the TAP driver). The
4569 # system "awk" is bad on some platforms.
4570 # Always define AMTAR for backward compatibility. Yes, it's still used
4571 # in the wild :-( We should find a proper way to deprecate it ...
4572 AMTAR='$${TAR-tar}'
4573
4574
4575 # We'll loop over all known methods to create a tar archive until one works.
4576 _am_tools='gnutar pax cpio none'
4577
4578 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4579
4580
4581
4582
4583
4584 depcc="$CC" am_compiler_list=
4585
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4587 printf %s "checking dependency style of $depcc... " >&6; }
4588 if test ${am_cv_CC_dependencies_compiler_type+y}
4589 then :
4590 printf %s "(cached) " >&6
4591 else $as_nop
4592 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4593 # We make a subdir and do the tests there. Otherwise we can end up
4594 # making bogus files that we don't know about and never remove. For
4595 # instance it was reported that on HP-UX the gcc test will end up
4596 # making a dummy file named 'D' -- because '-MD' means "put the output
4597 # in D".
4598 rm -rf conftest.dir
4599 mkdir conftest.dir
4600 # Copy depcomp to subdir because otherwise we won't find it if we're
4601 # using a relative directory.
4602 cp "$am_depcomp" conftest.dir
4603 cd conftest.dir
4604 # We will build objects and dependencies in a subdirectory because
4605 # it helps to detect inapplicable dependency modes. For instance
4606 # both Tru64's cc and ICC support -MD to output dependencies as a
4607 # side effect of compilation, but ICC will put the dependencies in
4608 # the current directory while Tru64 will put them in the object
4609 # directory.
4610 mkdir sub
4611
4612 am_cv_CC_dependencies_compiler_type=none
4613 if test "$am_compiler_list" = ""; then
4614 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4615 fi
4616 am__universal=false
4617 case " $depcc " in #(
4618 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4619 esac
4620
4621 for depmode in $am_compiler_list; do
4622 # Setup a source with many dependencies, because some compilers
4623 # like to wrap large dependency lists on column 80 (with \), and
4624 # we should not choose a depcomp mode which is confused by this.
4625 #
4626 # We need to recreate these files for each test, as the compiler may
4627 # overwrite some of them when testing with obscure command lines.
4628 # This happens at least with the AIX C compiler.
4629 : > sub/conftest.c
4630 for i in 1 2 3 4 5 6; do
4631 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4632 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4633 # Solaris 10 /bin/sh.
4634 echo '/* dummy */' > sub/conftst$i.h
4635 done
4636 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4637
4638 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4639 # mode. It turns out that the SunPro C++ compiler does not properly
4640 # handle '-M -o', and we need to detect this. Also, some Intel
4641 # versions had trouble with output in subdirs.
4642 am__obj=sub/conftest.${OBJEXT-o}
4643 am__minus_obj="-o $am__obj"
4644 case $depmode in
4645 gcc)
4646 # This depmode causes a compiler race in universal mode.
4647 test "$am__universal" = false || continue
4648 ;;
4649 nosideeffect)
4650 # After this tag, mechanisms are not by side-effect, so they'll
4651 # only be used when explicitly requested.
4652 if test "x$enable_dependency_tracking" = xyes; then
4653 continue
4654 else
4655 break
4656 fi
4657 ;;
4658 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4659 # This compiler won't grok '-c -o', but also, the minuso test has
4660 # not run yet. These depmodes are late enough in the game, and
4661 # so weak that their functioning should not be impacted.
4662 am__obj=conftest.${OBJEXT-o}
4663 am__minus_obj=
4664 ;;
4665 none) break ;;
4666 esac
4667 if depmode=$depmode \
4668 source=sub/conftest.c object=$am__obj \
4669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4670 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4671 >/dev/null 2>conftest.err &&
4672 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4673 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4674 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4675 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4676 # icc doesn't choke on unknown options, it will just issue warnings
4677 # or remarks (even with -Werror). So we grep stderr for any message
4678 # that says an option was ignored or not supported.
4679 # When given -MP, icc 7.0 and 7.1 complain thusly:
4680 # icc: Command line warning: ignoring option '-M'; no argument required
4681 # The diagnosis changed in icc 8.0:
4682 # icc: Command line remark: option '-MP' not supported
4683 if (grep 'ignoring option' conftest.err ||
4684 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4685 am_cv_CC_dependencies_compiler_type=$depmode
4686 break
4687 fi
4688 fi
4689 done
4690
4691 cd ..
4692 rm -rf conftest.dir
4693 else
4694 am_cv_CC_dependencies_compiler_type=none
4695 fi
4696
4697 fi
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4699 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4700 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4701
4702 if
4703 test "x$enable_dependency_tracking" != xno \
4704 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4705 am__fastdepCC_TRUE=
4706 am__fastdepCC_FALSE='#'
4707 else
4708 am__fastdepCC_TRUE='#'
4709 am__fastdepCC_FALSE=
4710 fi
4711
4712
4713 # Variables for tags utilities; see am/tags.am
4714 if test -z "$CTAGS"; then
4715 CTAGS=ctags
4716 fi
4717
4718 if test -z "$ETAGS"; then
4719 ETAGS=etags
4720 fi
4721
4722 if test -z "$CSCOPE"; then
4723 CSCOPE=cscope
4724 fi
4725
4726
4727
4728 # POSIX will say in a future version that running "rm -f" with no argument
4729 # is OK; and we want to be able to make that assumption in our Makefile
4730 # recipes. So use an aggressive probe to check that the usage we want is
4731 # actually supported "in the wild" to an acceptable degree.
4732 # See automake bug#10828.
4733 # To make any issue more visible, cause the running configure to be aborted
4734 # by default if the 'rm' program in use doesn't match our expectations; the
4735 # user can still override this though.
4736 if rm -f && rm -fr && rm -rf; then : OK; else
4737 cat >&2 <<'END'
4738 Oops!
4739
4740 Your 'rm' program seems unable to run without file operands specified
4741 on the command line, even when the '-f' option is present. This is contrary
4742 to the behaviour of most rm programs out there, and not conforming with
4743 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4744
4745 Please tell bug-automake@gnu.org about your system, including the value
4746 of your $PATH and any error possibly output before this message. This
4747 can help us improve future automake versions.
4748
4749 END
4750 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4751 echo 'Configuration will proceed anyway, since you have set the' >&2
4752 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4753 echo >&2
4754 else
4755 cat >&2 <<'END'
4756 Aborting the configuration process, to ensure you take notice of the issue.
4757
4758 You can download and install GNU coreutils to get an 'rm' implementation
4759 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4760
4761 If you want to complete the configuration process using your problematic
4762 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4763 to "yes", and re-run configure.
4764
4765 END
4766 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4767 fi
4768 fi
4769
4770
4771 # Initialize libtool
4772 case `pwd` in
4773 *\ * | *\ *)
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4775 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4776 esac
4777
4778
4779
4780 macro_version='2.4.7'
4781 macro_revision='2.4.7'
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796 ltmain=$ac_aux_dir/ltmain.sh
4797
4798
4799
4800 # Make sure we can run config.sub.
4801 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4802 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4803
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4805 printf %s "checking build system type... " >&6; }
4806 if test ${ac_cv_build+y}
4807 then :
4808 printf %s "(cached) " >&6
4809 else $as_nop
4810 ac_build_alias=$build_alias
4811 test "x$ac_build_alias" = x &&
4812 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4813 test "x$ac_build_alias" = x &&
4814 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4815 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4816 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4817
4818 fi
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4820 printf "%s\n" "$ac_cv_build" >&6; }
4821 case $ac_cv_build in
4822 *-*-*) ;;
4823 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4824 esac
4825 build=$ac_cv_build
4826 ac_save_IFS=$IFS; IFS='-'
4827 set x $ac_cv_build
4828 shift
4829 build_cpu=$1
4830 build_vendor=$2
4831 shift; shift
4832 # Remember, the first character of IFS is used to create $*,
4833 # except with old shells:
4834 build_os=$*
4835 IFS=$ac_save_IFS
4836 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4837
4838
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4840 printf %s "checking host system type... " >&6; }
4841 if test ${ac_cv_host+y}
4842 then :
4843 printf %s "(cached) " >&6
4844 else $as_nop
4845 if test "x$host_alias" = x; then
4846 ac_cv_host=$ac_cv_build
4847 else
4848 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4849 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4850 fi
4851
4852 fi
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4854 printf "%s\n" "$ac_cv_host" >&6; }
4855 case $ac_cv_host in
4856 *-*-*) ;;
4857 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4858 esac
4859 host=$ac_cv_host
4860 ac_save_IFS=$IFS; IFS='-'
4861 set x $ac_cv_host
4862 shift
4863 host_cpu=$1
4864 host_vendor=$2
4865 shift; shift
4866 # Remember, the first character of IFS is used to create $*,
4867 # except with old shells:
4868 host_os=$*
4869 IFS=$ac_save_IFS
4870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4871
4872
4873 # Backslashify metacharacters that are still active within
4874 # double-quoted strings.
4875 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4876
4877 # Same as above, but do not quote variable references.
4878 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4879
4880 # Sed substitution to delay expansion of an escaped shell variable in a
4881 # double_quote_subst'ed string.
4882 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4883
4884 # Sed substitution to delay expansion of an escaped single quote.
4885 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4886
4887 # Sed substitution to avoid accidental globbing in evaled expressions
4888 no_glob_subst='s/\*/\\\*/g'
4889
4890 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4891 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4892 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4893
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4895 printf %s "checking how to print strings... " >&6; }
4896 # Test print first, because it will be a builtin if present.
4897 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4898 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4899 ECHO='print -r --'
4900 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4901 ECHO='printf %s\n'
4902 else
4903 # Use this function as a fallback that always works.
4904 func_fallback_echo ()
4905 {
4906 eval 'cat <<_LTECHO_EOF
4907 $1
4908 _LTECHO_EOF'
4909 }
4910 ECHO='func_fallback_echo'
4911 fi
4912
4913 # func_echo_all arg...
4914 # Invoke $ECHO with all args, space-separated.
4915 func_echo_all ()
4916 {
4917 $ECHO ""
4918 }
4919
4920 case $ECHO in
4921 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4922 printf "%s\n" "printf" >&6; } ;;
4923 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4924 printf "%s\n" "print -r" >&6; } ;;
4925 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4926 printf "%s\n" "cat" >&6; } ;;
4927 esac
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4943 printf %s "checking for a sed that does not truncate output... " >&6; }
4944 if test ${ac_cv_path_SED+y}
4945 then :
4946 printf %s "(cached) " >&6
4947 else $as_nop
4948 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4949 for ac_i in 1 2 3 4 5 6 7; do
4950 ac_script="$ac_script$as_nl$ac_script"
4951 done
4952 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4953 { ac_script=; unset ac_script;}
4954 if test -z "$SED"; then
4955 ac_path_SED_found=false
4956 # Loop through the user's path and test for each of PROGNAME-LIST
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960 IFS=$as_save_IFS
4961 case $as_dir in #(((
4962 '') as_dir=./ ;;
4963 */) ;;
4964 *) as_dir=$as_dir/ ;;
4965 esac
4966 for ac_prog in sed gsed
4967 do
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4970 as_fn_executable_p "$ac_path_SED" || continue
4971 # Check for GNU ac_path_SED and select it if it is found.
4972 # Check for GNU $ac_path_SED
4973 case `"$ac_path_SED" --version 2>&1` in
4974 *GNU*)
4975 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4976 *)
4977 ac_count=0
4978 printf %s 0123456789 >"conftest.in"
4979 while :
4980 do
4981 cat "conftest.in" "conftest.in" >"conftest.tmp"
4982 mv "conftest.tmp" "conftest.in"
4983 cp "conftest.in" "conftest.nl"
4984 printf "%s\n" '' >> "conftest.nl"
4985 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987 as_fn_arith $ac_count + 1 && ac_count=$as_val
4988 if test $ac_count -gt ${ac_path_SED_max-0}; then
4989 # Best one so far, save it but keep looking for a better one
4990 ac_cv_path_SED="$ac_path_SED"
4991 ac_path_SED_max=$ac_count
4992 fi
4993 # 10*(2^10) chars as input seems more than enough
4994 test $ac_count -gt 10 && break
4995 done
4996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4997 esac
4998
4999 $ac_path_SED_found && break 3
5000 done
5001 done
5002 done
5003 IFS=$as_save_IFS
5004 if test -z "$ac_cv_path_SED"; then
5005 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5006 fi
5007 else
5008 ac_cv_path_SED=$SED
5009 fi
5010
5011 fi
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5013 printf "%s\n" "$ac_cv_path_SED" >&6; }
5014 SED="$ac_cv_path_SED"
5015 rm -f conftest.sed
5016
5017 test -z "$SED" && SED=sed
5018 Xsed="$SED -e 1s/^X//"
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5031 printf %s "checking for grep that handles long lines and -e... " >&6; }
5032 if test ${ac_cv_path_GREP+y}
5033 then :
5034 printf %s "(cached) " >&6
5035 else $as_nop
5036 if test -z "$GREP"; then
5037 ac_path_GREP_found=false
5038 # Loop through the user's path and test for each of PROGNAME-LIST
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5041 do
5042 IFS=$as_save_IFS
5043 case $as_dir in #(((
5044 '') as_dir=./ ;;
5045 */) ;;
5046 *) as_dir=$as_dir/ ;;
5047 esac
5048 for ac_prog in grep ggrep
5049 do
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5052 as_fn_executable_p "$ac_path_GREP" || continue
5053 # Check for GNU ac_path_GREP and select it if it is found.
5054 # Check for GNU $ac_path_GREP
5055 case `"$ac_path_GREP" --version 2>&1` in
5056 *GNU*)
5057 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5058 *)
5059 ac_count=0
5060 printf %s 0123456789 >"conftest.in"
5061 while :
5062 do
5063 cat "conftest.in" "conftest.in" >"conftest.tmp"
5064 mv "conftest.tmp" "conftest.in"
5065 cp "conftest.in" "conftest.nl"
5066 printf "%s\n" 'GREP' >> "conftest.nl"
5067 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5069 as_fn_arith $ac_count + 1 && ac_count=$as_val
5070 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5071 # Best one so far, save it but keep looking for a better one
5072 ac_cv_path_GREP="$ac_path_GREP"
5073 ac_path_GREP_max=$ac_count
5074 fi
5075 # 10*(2^10) chars as input seems more than enough
5076 test $ac_count -gt 10 && break
5077 done
5078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5079 esac
5080
5081 $ac_path_GREP_found && break 3
5082 done
5083 done
5084 done
5085 IFS=$as_save_IFS
5086 if test -z "$ac_cv_path_GREP"; then
5087 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5088 fi
5089 else
5090 ac_cv_path_GREP=$GREP
5091 fi
5092
5093 fi
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5095 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5096 GREP="$ac_cv_path_GREP"
5097
5098
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5100 printf %s "checking for egrep... " >&6; }
5101 if test ${ac_cv_path_EGREP+y}
5102 then :
5103 printf %s "(cached) " >&6
5104 else $as_nop
5105 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5106 then ac_cv_path_EGREP="$GREP -E"
5107 else
5108 if test -z "$EGREP"; then
5109 ac_path_EGREP_found=false
5110 # Loop through the user's path and test for each of PROGNAME-LIST
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5113 do
5114 IFS=$as_save_IFS
5115 case $as_dir in #(((
5116 '') as_dir=./ ;;
5117 */) ;;
5118 *) as_dir=$as_dir/ ;;
5119 esac
5120 for ac_prog in egrep
5121 do
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5124 as_fn_executable_p "$ac_path_EGREP" || continue
5125 # Check for GNU ac_path_EGREP and select it if it is found.
5126 # Check for GNU $ac_path_EGREP
5127 case `"$ac_path_EGREP" --version 2>&1` in
5128 *GNU*)
5129 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5130 *)
5131 ac_count=0
5132 printf %s 0123456789 >"conftest.in"
5133 while :
5134 do
5135 cat "conftest.in" "conftest.in" >"conftest.tmp"
5136 mv "conftest.tmp" "conftest.in"
5137 cp "conftest.in" "conftest.nl"
5138 printf "%s\n" 'EGREP' >> "conftest.nl"
5139 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141 as_fn_arith $ac_count + 1 && ac_count=$as_val
5142 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5143 # Best one so far, save it but keep looking for a better one
5144 ac_cv_path_EGREP="$ac_path_EGREP"
5145 ac_path_EGREP_max=$ac_count
5146 fi
5147 # 10*(2^10) chars as input seems more than enough
5148 test $ac_count -gt 10 && break
5149 done
5150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5151 esac
5152
5153 $ac_path_EGREP_found && break 3
5154 done
5155 done
5156 done
5157 IFS=$as_save_IFS
5158 if test -z "$ac_cv_path_EGREP"; then
5159 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5160 fi
5161 else
5162 ac_cv_path_EGREP=$EGREP
5163 fi
5164
5165 fi
5166 fi
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5168 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5169 EGREP="$ac_cv_path_EGREP"
5170
5171
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5173 printf %s "checking for fgrep... " >&6; }
5174 if test ${ac_cv_path_FGREP+y}
5175 then :
5176 printf %s "(cached) " >&6
5177 else $as_nop
5178 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5179 then ac_cv_path_FGREP="$GREP -F"
5180 else
5181 if test -z "$FGREP"; then
5182 ac_path_FGREP_found=false
5183 # Loop through the user's path and test for each of PROGNAME-LIST
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5186 do
5187 IFS=$as_save_IFS
5188 case $as_dir in #(((
5189 '') as_dir=./ ;;
5190 */) ;;
5191 *) as_dir=$as_dir/ ;;
5192 esac
5193 for ac_prog in fgrep
5194 do
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5197 as_fn_executable_p "$ac_path_FGREP" || continue
5198 # Check for GNU ac_path_FGREP and select it if it is found.
5199 # Check for GNU $ac_path_FGREP
5200 case `"$ac_path_FGREP" --version 2>&1` in
5201 *GNU*)
5202 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5203 *)
5204 ac_count=0
5205 printf %s 0123456789 >"conftest.in"
5206 while :
5207 do
5208 cat "conftest.in" "conftest.in" >"conftest.tmp"
5209 mv "conftest.tmp" "conftest.in"
5210 cp "conftest.in" "conftest.nl"
5211 printf "%s\n" 'FGREP' >> "conftest.nl"
5212 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214 as_fn_arith $ac_count + 1 && ac_count=$as_val
5215 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5216 # Best one so far, save it but keep looking for a better one
5217 ac_cv_path_FGREP="$ac_path_FGREP"
5218 ac_path_FGREP_max=$ac_count
5219 fi
5220 # 10*(2^10) chars as input seems more than enough
5221 test $ac_count -gt 10 && break
5222 done
5223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5224 esac
5225
5226 $ac_path_FGREP_found && break 3
5227 done
5228 done
5229 done
5230 IFS=$as_save_IFS
5231 if test -z "$ac_cv_path_FGREP"; then
5232 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5233 fi
5234 else
5235 ac_cv_path_FGREP=$FGREP
5236 fi
5237
5238 fi
5239 fi
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5241 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5242 FGREP="$ac_cv_path_FGREP"
5243
5244
5245 test -z "$GREP" && GREP=grep
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265 # Check whether --with-gnu-ld was given.
5266 if test ${with_gnu_ld+y}
5267 then :
5268 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5269 else $as_nop
5270 with_gnu_ld=no
5271 fi
5272
5273 ac_prog=ld
5274 if test yes = "$GCC"; then
5275 # Check if gcc -print-prog-name=ld gives a path.
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5277 printf %s "checking for ld used by $CC... " >&6; }
5278 case $host in
5279 *-*-mingw*)
5280 # gcc leaves a trailing carriage return, which upsets mingw
5281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5282 *)
5283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5284 esac
5285 case $ac_prog in
5286 # Accept absolute paths.
5287 [\\/]* | ?:[\\/]*)
5288 re_direlt='/[^/][^/]*/\.\./'
5289 # Canonicalize the pathname of ld
5290 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5291 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5292 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5293 done
5294 test -z "$LD" && LD=$ac_prog
5295 ;;
5296 "")
5297 # If it fails, then pretend we aren't using GCC.
5298 ac_prog=ld
5299 ;;
5300 *)
5301 # If it is relative, then search for the first ld in PATH.
5302 with_gnu_ld=unknown
5303 ;;
5304 esac
5305 elif test yes = "$with_gnu_ld"; then
5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5307 printf %s "checking for GNU ld... " >&6; }
5308 else
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5310 printf %s "checking for non-GNU ld... " >&6; }
5311 fi
5312 if test ${lt_cv_path_LD+y}
5313 then :
5314 printf %s "(cached) " >&6
5315 else $as_nop
5316 if test -z "$LD"; then
5317 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5318 for ac_dir in $PATH; do
5319 IFS=$lt_save_ifs
5320 test -z "$ac_dir" && ac_dir=.
5321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5322 lt_cv_path_LD=$ac_dir/$ac_prog
5323 # Check to see if the program is GNU ld. I'd rather use --version,
5324 # but apparently some variants of GNU ld only accept -v.
5325 # Break only if it was the GNU/non-GNU ld that we prefer.
5326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5327 *GNU* | *'with BFD'*)
5328 test no != "$with_gnu_ld" && break
5329 ;;
5330 *)
5331 test yes != "$with_gnu_ld" && break
5332 ;;
5333 esac
5334 fi
5335 done
5336 IFS=$lt_save_ifs
5337 else
5338 lt_cv_path_LD=$LD # Let the user override the test with a path.
5339 fi
5340 fi
5341
5342 LD=$lt_cv_path_LD
5343 if test -n "$LD"; then
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5345 printf "%s\n" "$LD" >&6; }
5346 else
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 printf "%s\n" "no" >&6; }
5349 fi
5350 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5352 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5353 if test ${lt_cv_prog_gnu_ld+y}
5354 then :
5355 printf %s "(cached) " >&6
5356 else $as_nop
5357 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5358 case `$LD -v 2>&1 </dev/null` in
5359 *GNU* | *'with BFD'*)
5360 lt_cv_prog_gnu_ld=yes
5361 ;;
5362 *)
5363 lt_cv_prog_gnu_ld=no
5364 ;;
5365 esac
5366 fi
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5368 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5369 with_gnu_ld=$lt_cv_prog_gnu_ld
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5380 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5381 if test ${lt_cv_path_NM+y}
5382 then :
5383 printf %s "(cached) " >&6
5384 else $as_nop
5385 if test -n "$NM"; then
5386 # Let the user override the test.
5387 lt_cv_path_NM=$NM
5388 else
5389 lt_nm_to_check=${ac_tool_prefix}nm
5390 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5391 lt_nm_to_check="$lt_nm_to_check nm"
5392 fi
5393 for lt_tmp_nm in $lt_nm_to_check; do
5394 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5395 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5396 IFS=$lt_save_ifs
5397 test -z "$ac_dir" && ac_dir=.
5398 tmp_nm=$ac_dir/$lt_tmp_nm
5399 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5400 # Check to see if the nm accepts a BSD-compat flag.
5401 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5402 # nm: unknown option "B" ignored
5403 # Tru64's nm complains that /dev/null is an invalid object file
5404 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5405 case $build_os in
5406 mingw*) lt_bad_file=conftest.nm/nofile ;;
5407 *) lt_bad_file=/dev/null ;;
5408 esac
5409 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5410 *$lt_bad_file* | *'Invalid file or object type'*)
5411 lt_cv_path_NM="$tmp_nm -B"
5412 break 2
5413 ;;
5414 *)
5415 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5416 */dev/null*)
5417 lt_cv_path_NM="$tmp_nm -p"
5418 break 2
5419 ;;
5420 *)
5421 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5422 continue # so that we can try to find one that supports BSD flags
5423 ;;
5424 esac
5425 ;;
5426 esac
5427 fi
5428 done
5429 IFS=$lt_save_ifs
5430 done
5431 : ${lt_cv_path_NM=no}
5432 fi
5433 fi
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5435 printf "%s\n" "$lt_cv_path_NM" >&6; }
5436 if test no != "$lt_cv_path_NM"; then
5437 NM=$lt_cv_path_NM
5438 else
5439 # Didn't find any BSD compatible name lister, look for dumpbin.
5440 if test -n "$DUMPBIN"; then :
5441 # Let the user override the test.
5442 else
5443 if test -n "$ac_tool_prefix"; then
5444 for ac_prog in dumpbin "link -dump"
5445 do
5446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 printf %s "checking for $ac_word... " >&6; }
5450 if test ${ac_cv_prog_DUMPBIN+y}
5451 then :
5452 printf %s "(cached) " >&6
5453 else $as_nop
5454 if test -n "$DUMPBIN"; then
5455 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 case $as_dir in #(((
5462 '') as_dir=./ ;;
5463 */) ;;
5464 *) as_dir=$as_dir/ ;;
5465 esac
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5468 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472 done
5473 done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 DUMPBIN=$ac_cv_prog_DUMPBIN
5479 if test -n "$DUMPBIN"; then
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5481 printf "%s\n" "$DUMPBIN" >&6; }
5482 else
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 printf "%s\n" "no" >&6; }
5485 fi
5486
5487
5488 test -n "$DUMPBIN" && break
5489 done
5490 fi
5491 if test -z "$DUMPBIN"; then
5492 ac_ct_DUMPBIN=$DUMPBIN
5493 for ac_prog in dumpbin "link -dump"
5494 do
5495 # Extract the first word of "$ac_prog", so it can be a program name with args.
5496 set dummy $ac_prog; ac_word=$2
5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 printf %s "checking for $ac_word... " >&6; }
5499 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5500 then :
5501 printf %s "(cached) " >&6
5502 else $as_nop
5503 if test -n "$ac_ct_DUMPBIN"; then
5504 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509 IFS=$as_save_IFS
5510 case $as_dir in #(((
5511 '') as_dir=./ ;;
5512 */) ;;
5513 *) as_dir=$as_dir/ ;;
5514 esac
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521 done
5522 done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5528 if test -n "$ac_ct_DUMPBIN"; then
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5530 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5531 else
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 printf "%s\n" "no" >&6; }
5534 fi
5535
5536
5537 test -n "$ac_ct_DUMPBIN" && break
5538 done
5539
5540 if test "x$ac_ct_DUMPBIN" = x; then
5541 DUMPBIN=":"
5542 else
5543 case $cross_compiling:$ac_tool_warned in
5544 yes:)
5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5546 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5547 ac_tool_warned=yes ;;
5548 esac
5549 DUMPBIN=$ac_ct_DUMPBIN
5550 fi
5551 fi
5552
5553 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5554 *COFF*)
5555 DUMPBIN="$DUMPBIN -symbols -headers"
5556 ;;
5557 *)
5558 DUMPBIN=:
5559 ;;
5560 esac
5561 fi
5562
5563 if test : != "$DUMPBIN"; then
5564 NM=$DUMPBIN
5565 fi
5566 fi
5567 test -z "$NM" && NM=nm
5568
5569
5570
5571
5572
5573
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5575 printf %s "checking the name lister ($NM) interface... " >&6; }
5576 if test ${lt_cv_nm_interface+y}
5577 then :
5578 printf %s "(cached) " >&6
5579 else $as_nop
5580 lt_cv_nm_interface="BSD nm"
5581 echo "int some_variable = 0;" > conftest.$ac_ext
5582 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5583 (eval "$ac_compile" 2>conftest.err)
5584 cat conftest.err >&5
5585 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5586 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5587 cat conftest.err >&5
5588 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5589 cat conftest.out >&5
5590 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5591 lt_cv_nm_interface="MS dumpbin"
5592 fi
5593 rm -f conftest*
5594 fi
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5596 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5597
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5599 printf %s "checking whether ln -s works... " >&6; }
5600 LN_S=$as_ln_s
5601 if test "$LN_S" = "ln -s"; then
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5603 printf "%s\n" "yes" >&6; }
5604 else
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5606 printf "%s\n" "no, using $LN_S" >&6; }
5607 fi
5608
5609 # find the maximum length of command line arguments
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5611 printf %s "checking the maximum length of command line arguments... " >&6; }
5612 if test ${lt_cv_sys_max_cmd_len+y}
5613 then :
5614 printf %s "(cached) " >&6
5615 else $as_nop
5616 i=0
5617 teststring=ABCD
5618
5619 case $build_os in
5620 msdosdjgpp*)
5621 # On DJGPP, this test can blow up pretty badly due to problems in libc
5622 # (any single argument exceeding 2000 bytes causes a buffer overrun
5623 # during glob expansion). Even if it were fixed, the result of this
5624 # check would be larger than it should be.
5625 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5626 ;;
5627
5628 gnu*)
5629 # Under GNU Hurd, this test is not required because there is
5630 # no limit to the length of command line arguments.
5631 # Libtool will interpret -1 as no limit whatsoever
5632 lt_cv_sys_max_cmd_len=-1;
5633 ;;
5634
5635 cygwin* | mingw* | cegcc*)
5636 # On Win9x/ME, this test blows up -- it succeeds, but takes
5637 # about 5 minutes as the teststring grows exponentially.
5638 # Worse, since 9x/ME are not pre-emptively multitasking,
5639 # you end up with a "frozen" computer, even though with patience
5640 # the test eventually succeeds (with a max line length of 256k).
5641 # Instead, let's just punt: use the minimum linelength reported by
5642 # all of the supported platforms: 8192 (on NT/2K/XP).
5643 lt_cv_sys_max_cmd_len=8192;
5644 ;;
5645
5646 mint*)
5647 # On MiNT this can take a long time and run out of memory.
5648 lt_cv_sys_max_cmd_len=8192;
5649 ;;
5650
5651 amigaos*)
5652 # On AmigaOS with pdksh, this test takes hours, literally.
5653 # So we just punt and use a minimum line length of 8192.
5654 lt_cv_sys_max_cmd_len=8192;
5655 ;;
5656
5657 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5658 # This has been around since 386BSD, at least. Likely further.
5659 if test -x /sbin/sysctl; then
5660 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5661 elif test -x /usr/sbin/sysctl; then
5662 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5663 else
5664 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5665 fi
5666 # And add a safety zone
5667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5669 ;;
5670
5671 interix*)
5672 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5673 lt_cv_sys_max_cmd_len=196608
5674 ;;
5675
5676 os2*)
5677 # The test takes a long time on OS/2.
5678 lt_cv_sys_max_cmd_len=8192
5679 ;;
5680
5681 osf*)
5682 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5683 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5684 # nice to cause kernel panics so lets avoid the loop below.
5685 # First set a reasonable default.
5686 lt_cv_sys_max_cmd_len=16384
5687 #
5688 if test -x /sbin/sysconfig; then
5689 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5690 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5691 esac
5692 fi
5693 ;;
5694 sco3.2v5*)
5695 lt_cv_sys_max_cmd_len=102400
5696 ;;
5697 sysv5* | sco5v6* | sysv4.2uw2*)
5698 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5699 if test -n "$kargmax"; then
5700 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5701 else
5702 lt_cv_sys_max_cmd_len=32768
5703 fi
5704 ;;
5705 *)
5706 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5707 if test -n "$lt_cv_sys_max_cmd_len" && \
5708 test undefined != "$lt_cv_sys_max_cmd_len"; then
5709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5711 else
5712 # Make teststring a little bigger before we do anything with it.
5713 # a 1K string should be a reasonable start.
5714 for i in 1 2 3 4 5 6 7 8; do
5715 teststring=$teststring$teststring
5716 done
5717 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5718 # If test is not a shell built-in, we'll probably end up computing a
5719 # maximum length that is only half of the actual maximum length, but
5720 # we can't tell.
5721 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5722 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5723 test 17 != "$i" # 1/2 MB should be enough
5724 do
5725 i=`expr $i + 1`
5726 teststring=$teststring$teststring
5727 done
5728 # Only check the string length outside the loop.
5729 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5730 teststring=
5731 # Add a significant safety factor because C++ compilers can tack on
5732 # massive amounts of additional arguments before passing them to the
5733 # linker. It appears as though 1/2 is a usable value.
5734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5735 fi
5736 ;;
5737 esac
5738
5739 fi
5740
5741 if test -n "$lt_cv_sys_max_cmd_len"; then
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5743 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5744 else
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5746 printf "%s\n" "none" >&6; }
5747 fi
5748 max_cmd_len=$lt_cv_sys_max_cmd_len
5749
5750
5751
5752
5753
5754
5755 : ${CP="cp -f"}
5756 : ${MV="mv -f"}
5757 : ${RM="rm -f"}
5758
5759 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5760 lt_unset=unset
5761 else
5762 lt_unset=false
5763 fi
5764
5765
5766
5767
5768
5769 # test EBCDIC or ASCII
5770 case `echo X|tr X '\101'` in
5771 A) # ASCII based system
5772 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5773 lt_SP2NL='tr \040 \012'
5774 lt_NL2SP='tr \015\012 \040\040'
5775 ;;
5776 *) # EBCDIC based system
5777 lt_SP2NL='tr \100 \n'
5778 lt_NL2SP='tr \r\n \100\100'
5779 ;;
5780 esac
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5791 printf %s "checking how to convert $build file names to $host format... " >&6; }
5792 if test ${lt_cv_to_host_file_cmd+y}
5793 then :
5794 printf %s "(cached) " >&6
5795 else $as_nop
5796 case $host in
5797 *-*-mingw* )
5798 case $build in
5799 *-*-mingw* ) # actually msys
5800 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5801 ;;
5802 *-*-cygwin* )
5803 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5804 ;;
5805 * ) # otherwise, assume *nix
5806 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5807 ;;
5808 esac
5809 ;;
5810 *-*-cygwin* )
5811 case $build in
5812 *-*-mingw* ) # actually msys
5813 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5814 ;;
5815 *-*-cygwin* )
5816 lt_cv_to_host_file_cmd=func_convert_file_noop
5817 ;;
5818 * ) # otherwise, assume *nix
5819 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5820 ;;
5821 esac
5822 ;;
5823 * ) # unhandled hosts (and "normal" native builds)
5824 lt_cv_to_host_file_cmd=func_convert_file_noop
5825 ;;
5826 esac
5827
5828 fi
5829
5830 to_host_file_cmd=$lt_cv_to_host_file_cmd
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5832 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5833
5834
5835
5836
5837
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5839 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5840 if test ${lt_cv_to_tool_file_cmd+y}
5841 then :
5842 printf %s "(cached) " >&6
5843 else $as_nop
5844 #assume ordinary cross tools, or native build.
5845 lt_cv_to_tool_file_cmd=func_convert_file_noop
5846 case $host in
5847 *-*-mingw* )
5848 case $build in
5849 *-*-mingw* ) # actually msys
5850 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5851 ;;
5852 esac
5853 ;;
5854 esac
5855
5856 fi
5857
5858 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5860 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5861
5862
5863
5864
5865
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5867 printf %s "checking for $LD option to reload object files... " >&6; }
5868 if test ${lt_cv_ld_reload_flag+y}
5869 then :
5870 printf %s "(cached) " >&6
5871 else $as_nop
5872 lt_cv_ld_reload_flag='-r'
5873 fi
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5875 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5876 reload_flag=$lt_cv_ld_reload_flag
5877 case $reload_flag in
5878 "" | " "*) ;;
5879 *) reload_flag=" $reload_flag" ;;
5880 esac
5881 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5882 case $host_os in
5883 cygwin* | mingw* | pw32* | cegcc*)
5884 if test yes != "$GCC"; then
5885 reload_cmds=false
5886 fi
5887 ;;
5888 darwin*)
5889 if test yes = "$GCC"; then
5890 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5891 else
5892 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5893 fi
5894 ;;
5895 esac
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}file; ac_word=$2
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 printf %s "checking for $ac_word... " >&6; }
5910 if test ${ac_cv_prog_FILECMD+y}
5911 then :
5912 printf %s "(cached) " >&6
5913 else $as_nop
5914 if test -n "$FILECMD"; then
5915 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920 IFS=$as_save_IFS
5921 case $as_dir in #(((
5922 '') as_dir=./ ;;
5923 */) ;;
5924 *) as_dir=$as_dir/ ;;
5925 esac
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932 done
5933 done
5934 IFS=$as_save_IFS
5935
5936 fi
5937 fi
5938 FILECMD=$ac_cv_prog_FILECMD
5939 if test -n "$FILECMD"; then
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5941 printf "%s\n" "$FILECMD" >&6; }
5942 else
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 printf "%s\n" "no" >&6; }
5945 fi
5946
5947
5948 fi
5949 if test -z "$ac_cv_prog_FILECMD"; then
5950 ac_ct_FILECMD=$FILECMD
5951 # Extract the first word of "file", so it can be a program name with args.
5952 set dummy file; ac_word=$2
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 printf %s "checking for $ac_word... " >&6; }
5955 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5956 then :
5957 printf %s "(cached) " >&6
5958 else $as_nop
5959 if test -n "$ac_ct_FILECMD"; then
5960 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965 IFS=$as_save_IFS
5966 case $as_dir in #(((
5967 '') as_dir=./ ;;
5968 */) ;;
5969 *) as_dir=$as_dir/ ;;
5970 esac
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_ac_ct_FILECMD="file"
5974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5984 if test -n "$ac_ct_FILECMD"; then
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5986 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5987 else
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 printf "%s\n" "no" >&6; }
5990 fi
5991
5992 if test "x$ac_ct_FILECMD" = x; then
5993 FILECMD=":"
5994 else
5995 case $cross_compiling:$ac_tool_warned in
5996 yes:)
5997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999 ac_tool_warned=yes ;;
6000 esac
6001 FILECMD=$ac_ct_FILECMD
6002 fi
6003 else
6004 FILECMD="$ac_cv_prog_FILECMD"
6005 fi
6006
6007
6008
6009
6010
6011
6012
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 printf %s "checking for $ac_word... " >&6; }
6018 if test ${ac_cv_prog_OBJDUMP+y}
6019 then :
6020 printf %s "(cached) " >&6
6021 else $as_nop
6022 if test -n "$OBJDUMP"; then
6023 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 case $as_dir in #(((
6030 '') as_dir=./ ;;
6031 */) ;;
6032 *) as_dir=$as_dir/ ;;
6033 esac
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6036 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6038 break 2
6039 fi
6040 done
6041 done
6042 IFS=$as_save_IFS
6043
6044 fi
6045 fi
6046 OBJDUMP=$ac_cv_prog_OBJDUMP
6047 if test -n "$OBJDUMP"; then
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6049 printf "%s\n" "$OBJDUMP" >&6; }
6050 else
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052 printf "%s\n" "no" >&6; }
6053 fi
6054
6055
6056 fi
6057 if test -z "$ac_cv_prog_OBJDUMP"; then
6058 ac_ct_OBJDUMP=$OBJDUMP
6059 # Extract the first word of "objdump", so it can be a program name with args.
6060 set dummy objdump; ac_word=$2
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 printf %s "checking for $ac_word... " >&6; }
6063 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6064 then :
6065 printf %s "(cached) " >&6
6066 else $as_nop
6067 if test -n "$ac_ct_OBJDUMP"; then
6068 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073 IFS=$as_save_IFS
6074 case $as_dir in #(((
6075 '') as_dir=./ ;;
6076 */) ;;
6077 *) as_dir=$as_dir/ ;;
6078 esac
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6081 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6083 break 2
6084 fi
6085 done
6086 done
6087 IFS=$as_save_IFS
6088
6089 fi
6090 fi
6091 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6092 if test -n "$ac_ct_OBJDUMP"; then
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6094 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6095 else
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 printf "%s\n" "no" >&6; }
6098 fi
6099
6100 if test "x$ac_ct_OBJDUMP" = x; then
6101 OBJDUMP="false"
6102 else
6103 case $cross_compiling:$ac_tool_warned in
6104 yes:)
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6106 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6107 ac_tool_warned=yes ;;
6108 esac
6109 OBJDUMP=$ac_ct_OBJDUMP
6110 fi
6111 else
6112 OBJDUMP="$ac_cv_prog_OBJDUMP"
6113 fi
6114
6115 test -z "$OBJDUMP" && OBJDUMP=objdump
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6126 printf %s "checking how to recognize dependent libraries... " >&6; }
6127 if test ${lt_cv_deplibs_check_method+y}
6128 then :
6129 printf %s "(cached) " >&6
6130 else $as_nop
6131 lt_cv_file_magic_cmd='$MAGIC_CMD'
6132 lt_cv_file_magic_test_file=
6133 lt_cv_deplibs_check_method='unknown'
6134 # Need to set the preceding variable on all platforms that support
6135 # interlibrary dependencies.
6136 # 'none' -- dependencies not supported.
6137 # 'unknown' -- same as none, but documents that we really don't know.
6138 # 'pass_all' -- all dependencies passed with no checks.
6139 # 'test_compile' -- check by making test program.
6140 # 'file_magic [[regex]]' -- check by looking for files in library path
6141 # that responds to the $file_magic_cmd with a given extended regex.
6142 # If you have 'file' or equivalent on your system and you're not sure
6143 # whether 'pass_all' will *always* work, you probably want this one.
6144
6145 case $host_os in
6146 aix[4-9]*)
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
6149
6150 beos*)
6151 lt_cv_deplibs_check_method=pass_all
6152 ;;
6153
6154 bsdi[45]*)
6155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6156 lt_cv_file_magic_cmd='$FILECMD -L'
6157 lt_cv_file_magic_test_file=/shlib/libc.so
6158 ;;
6159
6160 cygwin*)
6161 # func_win32_libid is a shell function defined in ltmain.sh
6162 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6163 lt_cv_file_magic_cmd='func_win32_libid'
6164 ;;
6165
6166 mingw* | pw32*)
6167 # Base MSYS/MinGW do not provide the 'file' command needed by
6168 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6169 # unless we find 'file', for example because we are cross-compiling.
6170 if ( file / ) >/dev/null 2>&1; then
6171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6172 lt_cv_file_magic_cmd='func_win32_libid'
6173 else
6174 # Keep this pattern in sync with the one in func_win32_libid.
6175 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6176 lt_cv_file_magic_cmd='$OBJDUMP -f'
6177 fi
6178 ;;
6179
6180 cegcc*)
6181 # use the weaker test based on 'objdump'. See mingw*.
6182 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6183 lt_cv_file_magic_cmd='$OBJDUMP -f'
6184 ;;
6185
6186 darwin* | rhapsody*)
6187 lt_cv_deplibs_check_method=pass_all
6188 ;;
6189
6190 freebsd* | dragonfly* | midnightbsd*)
6191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6192 case $host_cpu in
6193 i*86 )
6194 # Not sure whether the presence of OpenBSD here was a mistake.
6195 # Let's accept both of them until this is cleared up.
6196 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6197 lt_cv_file_magic_cmd=$FILECMD
6198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6199 ;;
6200 esac
6201 else
6202 lt_cv_deplibs_check_method=pass_all
6203 fi
6204 ;;
6205
6206 haiku*)
6207 lt_cv_deplibs_check_method=pass_all
6208 ;;
6209
6210 hpux10.20* | hpux11*)
6211 lt_cv_file_magic_cmd=$FILECMD
6212 case $host_cpu in
6213 ia64*)
6214 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6215 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6216 ;;
6217 hppa*64*)
6218 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]'
6219 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6220 ;;
6221 *)
6222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6223 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6224 ;;
6225 esac
6226 ;;
6227
6228 interix[3-9]*)
6229 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6231 ;;
6232
6233 irix5* | irix6* | nonstopux*)
6234 case $LD in
6235 *-32|*"-32 ") libmagic=32-bit;;
6236 *-n32|*"-n32 ") libmagic=N32;;
6237 *-64|*"-64 ") libmagic=64-bit;;
6238 *) libmagic=never-match;;
6239 esac
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 # This must be glibc/ELF.
6244 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6245 lt_cv_deplibs_check_method=pass_all
6246 ;;
6247
6248 netbsd*)
6249 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6251 else
6252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6253 fi
6254 ;;
6255
6256 newos6*)
6257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6258 lt_cv_file_magic_cmd=$FILECMD
6259 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6260 ;;
6261
6262 *nto* | *qnx*)
6263 lt_cv_deplibs_check_method=pass_all
6264 ;;
6265
6266 openbsd* | bitrig*)
6267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6269 else
6270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6271 fi
6272 ;;
6273
6274 osf3* | osf4* | osf5*)
6275 lt_cv_deplibs_check_method=pass_all
6276 ;;
6277
6278 rdos*)
6279 lt_cv_deplibs_check_method=pass_all
6280 ;;
6281
6282 solaris*)
6283 lt_cv_deplibs_check_method=pass_all
6284 ;;
6285
6286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289
6290 sysv4 | sysv4.3*)
6291 case $host_vendor in
6292 motorola)
6293 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]'
6294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6295 ;;
6296 ncr)
6297 lt_cv_deplibs_check_method=pass_all
6298 ;;
6299 sequent)
6300 lt_cv_file_magic_cmd='/bin/file'
6301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6302 ;;
6303 sni)
6304 lt_cv_file_magic_cmd='/bin/file'
6305 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6306 lt_cv_file_magic_test_file=/lib/libc.so
6307 ;;
6308 siemens)
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
6311 pc)
6312 lt_cv_deplibs_check_method=pass_all
6313 ;;
6314 esac
6315 ;;
6316
6317 tpf*)
6318 lt_cv_deplibs_check_method=pass_all
6319 ;;
6320 os2*)
6321 lt_cv_deplibs_check_method=pass_all
6322 ;;
6323 esac
6324
6325 fi
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6327 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6328
6329 file_magic_glob=
6330 want_nocaseglob=no
6331 if test "$build" = "$host"; then
6332 case $host_os in
6333 mingw* | pw32*)
6334 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6335 want_nocaseglob=yes
6336 else
6337 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6338 fi
6339 ;;
6340 esac
6341 fi
6342
6343 file_magic_cmd=$lt_cv_file_magic_cmd
6344 deplibs_check_method=$lt_cv_deplibs_check_method
6345 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368 if test -n "$ac_tool_prefix"; then
6369 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6370 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 printf %s "checking for $ac_word... " >&6; }
6373 if test ${ac_cv_prog_DLLTOOL+y}
6374 then :
6375 printf %s "(cached) " >&6
6376 else $as_nop
6377 if test -n "$DLLTOOL"; then
6378 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383 IFS=$as_save_IFS
6384 case $as_dir in #(((
6385 '') as_dir=./ ;;
6386 */) ;;
6387 *) as_dir=$as_dir/ ;;
6388 esac
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6391 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6393 break 2
6394 fi
6395 done
6396 done
6397 IFS=$as_save_IFS
6398
6399 fi
6400 fi
6401 DLLTOOL=$ac_cv_prog_DLLTOOL
6402 if test -n "$DLLTOOL"; then
6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6404 printf "%s\n" "$DLLTOOL" >&6; }
6405 else
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 printf "%s\n" "no" >&6; }
6408 fi
6409
6410
6411 fi
6412 if test -z "$ac_cv_prog_DLLTOOL"; then
6413 ac_ct_DLLTOOL=$DLLTOOL
6414 # Extract the first word of "dlltool", so it can be a program name with args.
6415 set dummy dlltool; ac_word=$2
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 printf %s "checking for $ac_word... " >&6; }
6418 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6419 then :
6420 printf %s "(cached) " >&6
6421 else $as_nop
6422 if test -n "$ac_ct_DLLTOOL"; then
6423 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428 IFS=$as_save_IFS
6429 case $as_dir in #(((
6430 '') as_dir=./ ;;
6431 */) ;;
6432 *) as_dir=$as_dir/ ;;
6433 esac
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6447 if test -n "$ac_ct_DLLTOOL"; then
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6449 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6450 else
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 printf "%s\n" "no" >&6; }
6453 fi
6454
6455 if test "x$ac_ct_DLLTOOL" = x; then
6456 DLLTOOL="false"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464 DLLTOOL=$ac_ct_DLLTOOL
6465 fi
6466 else
6467 DLLTOOL="$ac_cv_prog_DLLTOOL"
6468 fi
6469
6470 test -z "$DLLTOOL" && DLLTOOL=dlltool
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6482 printf %s "checking how to associate runtime and link libraries... " >&6; }
6483 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6484 then :
6485 printf %s "(cached) " >&6
6486 else $as_nop
6487 lt_cv_sharedlib_from_linklib_cmd='unknown'
6488
6489 case $host_os in
6490 cygwin* | mingw* | pw32* | cegcc*)
6491 # two different shell functions defined in ltmain.sh;
6492 # decide which one to use based on capabilities of $DLLTOOL
6493 case `$DLLTOOL --help 2>&1` in
6494 *--identify-strict*)
6495 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6496 ;;
6497 *)
6498 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6499 ;;
6500 esac
6501 ;;
6502 *)
6503 # fallback: assume linklib IS sharedlib
6504 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6505 ;;
6506 esac
6507
6508 fi
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6510 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6511 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6512 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6513
6514
6515
6516
6517
6518
6519
6520 if test -n "$ac_tool_prefix"; then
6521 for ac_prog in ar
6522 do
6523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 printf %s "checking for $ac_word... " >&6; }
6527 if test ${ac_cv_prog_AR+y}
6528 then :
6529 printf %s "(cached) " >&6
6530 else $as_nop
6531 if test -n "$AR"; then
6532 ac_cv_prog_AR="$AR" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537 IFS=$as_save_IFS
6538 case $as_dir in #(((
6539 '') as_dir=./ ;;
6540 */) ;;
6541 *) as_dir=$as_dir/ ;;
6542 esac
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 AR=$ac_cv_prog_AR
6556 if test -n "$AR"; then
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6558 printf "%s\n" "$AR" >&6; }
6559 else
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 printf "%s\n" "no" >&6; }
6562 fi
6563
6564
6565 test -n "$AR" && break
6566 done
6567 fi
6568 if test -z "$AR"; then
6569 ac_ct_AR=$AR
6570 for ac_prog in ar
6571 do
6572 # Extract the first word of "$ac_prog", so it can be a program name with args.
6573 set dummy $ac_prog; ac_word=$2
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 printf %s "checking for $ac_word... " >&6; }
6576 if test ${ac_cv_prog_ac_ct_AR+y}
6577 then :
6578 printf %s "(cached) " >&6
6579 else $as_nop
6580 if test -n "$ac_ct_AR"; then
6581 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586 IFS=$as_save_IFS
6587 case $as_dir in #(((
6588 '') as_dir=./ ;;
6589 */) ;;
6590 *) as_dir=$as_dir/ ;;
6591 esac
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6594 ac_cv_prog_ac_ct_AR="$ac_prog"
6595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6601
6602 fi
6603 fi
6604 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6605 if test -n "$ac_ct_AR"; then
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6607 printf "%s\n" "$ac_ct_AR" >&6; }
6608 else
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 printf "%s\n" "no" >&6; }
6611 fi
6612
6613
6614 test -n "$ac_ct_AR" && break
6615 done
6616
6617 if test "x$ac_ct_AR" = x; then
6618 AR="false"
6619 else
6620 case $cross_compiling:$ac_tool_warned in
6621 yes:)
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6625 esac
6626 AR=$ac_ct_AR
6627 fi
6628 fi
6629
6630 : ${AR=ar}
6631
6632
6633
6634
6635
6636
6637 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6638 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6639 # higher priority because thats what people were doing historically (setting
6640 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6641 # variable obsoleted/removed.
6642
6643 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6644 lt_ar_flags=$AR_FLAGS
6645
6646
6647
6648
6649
6650
6651 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6652 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6653
6654
6655
6656
6657
6658
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6660 printf %s "checking for archiver @FILE support... " >&6; }
6661 if test ${lt_cv_ar_at_file+y}
6662 then :
6663 printf %s "(cached) " >&6
6664 else $as_nop
6665 lt_cv_ar_at_file=no
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668
6669 int
6670 main (void)
6671 {
6672
6673 ;
6674 return 0;
6675 }
6676 _ACEOF
6677 if ac_fn_c_try_compile "$LINENO"
6678 then :
6679 echo conftest.$ac_objext > conftest.lst
6680 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6682 (eval $lt_ar_try) 2>&5
6683 ac_status=$?
6684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; }
6686 if test 0 -eq "$ac_status"; then
6687 # Ensure the archiver fails upon bogus file names.
6688 rm -f conftest.$ac_objext libconftest.a
6689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6690 (eval $lt_ar_try) 2>&5
6691 ac_status=$?
6692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6693 test $ac_status = 0; }
6694 if test 0 -ne "$ac_status"; then
6695 lt_cv_ar_at_file=@
6696 fi
6697 fi
6698 rm -f conftest.* libconftest.a
6699
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6702
6703 fi
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6705 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6706
6707 if test no = "$lt_cv_ar_at_file"; then
6708 archiver_list_spec=
6709 else
6710 archiver_list_spec=$lt_cv_ar_at_file
6711 fi
6712
6713
6714
6715
6716
6717
6718
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}strip; ac_word=$2
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 printf %s "checking for $ac_word... " >&6; }
6724 if test ${ac_cv_prog_STRIP+y}
6725 then :
6726 printf %s "(cached) " >&6
6727 else $as_nop
6728 if test -n "$STRIP"; then
6729 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 case $as_dir in #(((
6736 '') as_dir=./ ;;
6737 */) ;;
6738 *) as_dir=$as_dir/ ;;
6739 esac
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 STRIP=$ac_cv_prog_STRIP
6753 if test -n "$STRIP"; then
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6755 printf "%s\n" "$STRIP" >&6; }
6756 else
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 printf "%s\n" "no" >&6; }
6759 fi
6760
6761
6762 fi
6763 if test -z "$ac_cv_prog_STRIP"; then
6764 ac_ct_STRIP=$STRIP
6765 # Extract the first word of "strip", so it can be a program name with args.
6766 set dummy strip; ac_word=$2
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 printf %s "checking for $ac_word... " >&6; }
6769 if test ${ac_cv_prog_ac_ct_STRIP+y}
6770 then :
6771 printf %s "(cached) " >&6
6772 else $as_nop
6773 if test -n "$ac_ct_STRIP"; then
6774 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779 IFS=$as_save_IFS
6780 case $as_dir in #(((
6781 '') as_dir=./ ;;
6782 */) ;;
6783 *) as_dir=$as_dir/ ;;
6784 esac
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6787 ac_cv_prog_ac_ct_STRIP="strip"
6788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6798 if test -n "$ac_ct_STRIP"; then
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6800 printf "%s\n" "$ac_ct_STRIP" >&6; }
6801 else
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 printf "%s\n" "no" >&6; }
6804 fi
6805
6806 if test "x$ac_ct_STRIP" = x; then
6807 STRIP=":"
6808 else
6809 case $cross_compiling:$ac_tool_warned in
6810 yes:)
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815 STRIP=$ac_ct_STRIP
6816 fi
6817 else
6818 STRIP="$ac_cv_prog_STRIP"
6819 fi
6820
6821 test -z "$STRIP" && STRIP=:
6822
6823
6824
6825
6826
6827
6828 if test -n "$ac_tool_prefix"; then
6829 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6830 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 printf %s "checking for $ac_word... " >&6; }
6833 if test ${ac_cv_prog_RANLIB+y}
6834 then :
6835 printf %s "(cached) " >&6
6836 else $as_nop
6837 if test -n "$RANLIB"; then
6838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 case $as_dir in #(((
6845 '') as_dir=./ ;;
6846 */) ;;
6847 *) as_dir=$as_dir/ ;;
6848 esac
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 RANLIB=$ac_cv_prog_RANLIB
6862 if test -n "$RANLIB"; then
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6864 printf "%s\n" "$RANLIB" >&6; }
6865 else
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 printf "%s\n" "no" >&6; }
6868 fi
6869
6870
6871 fi
6872 if test -z "$ac_cv_prog_RANLIB"; then
6873 ac_ct_RANLIB=$RANLIB
6874 # Extract the first word of "ranlib", so it can be a program name with args.
6875 set dummy ranlib; ac_word=$2
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 printf %s "checking for $ac_word... " >&6; }
6878 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6879 then :
6880 printf %s "(cached) " >&6
6881 else $as_nop
6882 if test -n "$ac_ct_RANLIB"; then
6883 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888 IFS=$as_save_IFS
6889 case $as_dir in #(((
6890 '') as_dir=./ ;;
6891 */) ;;
6892 *) as_dir=$as_dir/ ;;
6893 esac
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_ac_ct_RANLIB="ranlib"
6897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6907 if test -n "$ac_ct_RANLIB"; then
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6909 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6910 else
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 printf "%s\n" "no" >&6; }
6913 fi
6914
6915 if test "x$ac_ct_RANLIB" = x; then
6916 RANLIB=":"
6917 else
6918 case $cross_compiling:$ac_tool_warned in
6919 yes:)
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6923 esac
6924 RANLIB=$ac_ct_RANLIB
6925 fi
6926 else
6927 RANLIB="$ac_cv_prog_RANLIB"
6928 fi
6929
6930 test -z "$RANLIB" && RANLIB=:
6931
6932
6933
6934
6935
6936
6937 # Determine commands to create old-style static archives.
6938 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6939 old_postinstall_cmds='chmod 644 $oldlib'
6940 old_postuninstall_cmds=
6941
6942 if test -n "$RANLIB"; then
6943 case $host_os in
6944 bitrig* | openbsd*)
6945 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6946 ;;
6947 *)
6948 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6949 ;;
6950 esac
6951 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6952 fi
6953
6954 case $host_os in
6955 darwin*)
6956 lock_old_archive_extraction=yes ;;
6957 *)
6958 lock_old_archive_extraction=no ;;
6959 esac
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999 # If no C compiler was specified, use CC.
7000 LTCC=${LTCC-"$CC"}
7001
7002 # If no C compiler flags were specified, use CFLAGS.
7003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7004
7005 # Allow CC to be a program name with arguments.
7006 compiler=$CC
7007
7008
7009 # Check for command to grab the raw symbol name followed by C symbol from nm.
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7011 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7012 if test ${lt_cv_sys_global_symbol_pipe+y}
7013 then :
7014 printf %s "(cached) " >&6
7015 else $as_nop
7016
7017 # These are sane defaults that work on at least a few old systems.
7018 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7019
7020 # Character class describing NM global symbol codes.
7021 symcode='[BCDEGRST]'
7022
7023 # Regexp to match symbols that can be accessed directly from C.
7024 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7025
7026 # Define system-specific variables.
7027 case $host_os in
7028 aix*)
7029 symcode='[BCDT]'
7030 ;;
7031 cygwin* | mingw* | pw32* | cegcc*)
7032 symcode='[ABCDGISTW]'
7033 ;;
7034 hpux*)
7035 if test ia64 = "$host_cpu"; then
7036 symcode='[ABCDEGRST]'
7037 fi
7038 ;;
7039 irix* | nonstopux*)
7040 symcode='[BCDEGRST]'
7041 ;;
7042 osf*)
7043 symcode='[BCDEGQRST]'
7044 ;;
7045 solaris*)
7046 symcode='[BDRT]'
7047 ;;
7048 sco3.2v5*)
7049 symcode='[DT]'
7050 ;;
7051 sysv4.2uw2*)
7052 symcode='[DT]'
7053 ;;
7054 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7055 symcode='[ABDT]'
7056 ;;
7057 sysv4)
7058 symcode='[DFNSTU]'
7059 ;;
7060 esac
7061
7062 # If we're using GNU nm, then use its standard symbol codes.
7063 case `$NM -V 2>&1` in
7064 *GNU* | *'with BFD'*)
7065 symcode='[ABCDGIRSTW]' ;;
7066 esac
7067
7068 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7069 # Gets list of data symbols to import.
7070 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7071 # Adjust the below global symbol transforms to fixup imported variables.
7072 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7073 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7074 lt_c_name_lib_hook="\
7075 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7076 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7077 else
7078 # Disable hooks by default.
7079 lt_cv_sys_global_symbol_to_import=
7080 lt_cdecl_hook=
7081 lt_c_name_hook=
7082 lt_c_name_lib_hook=
7083 fi
7084
7085 # Transform an extracted symbol line into a proper C declaration.
7086 # Some systems (esp. on ia64) link data and code symbols differently,
7087 # so use this general approach.
7088 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7089 $lt_cdecl_hook\
7090 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7091 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7092
7093 # Transform an extracted symbol line into symbol name and symbol address
7094 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7095 $lt_c_name_hook\
7096 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7097 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7098
7099 # Transform an extracted symbol line into symbol name with lib prefix and
7100 # symbol address.
7101 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7102 $lt_c_name_lib_hook\
7103 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7104 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7105 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7106
7107 # Handle CRLF in mingw tool chain
7108 opt_cr=
7109 case $build_os in
7110 mingw*)
7111 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7112 ;;
7113 esac
7114
7115 # Try without a prefix underscore, then with it.
7116 for ac_symprfx in "" "_"; do
7117
7118 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7119 symxfrm="\\1 $ac_symprfx\\2 \\2"
7120
7121 # Write the raw and C identifiers.
7122 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7123 # Fake it for dumpbin and say T for any non-static function,
7124 # D for any global variable and I for any imported variable.
7125 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7126 # which start with @ or ?.
7127 lt_cv_sys_global_symbol_pipe="$AWK '"\
7128 " {last_section=section; section=\$ 3};"\
7129 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7130 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7131 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7132 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7133 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7134 " \$ 0!~/External *\|/{next};"\
7135 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7136 " {if(hide[section]) next};"\
7137 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7138 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7139 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7140 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7141 " ' prfx=^$ac_symprfx"
7142 else
7143 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7144 fi
7145 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7146
7147 # Check to see that the pipe works correctly.
7148 pipe_works=no
7149
7150 rm -f conftest*
7151 cat > conftest.$ac_ext <<_LT_EOF
7152 #ifdef __cplusplus
7153 extern "C" {
7154 #endif
7155 char nm_test_var;
7156 void nm_test_func(void);
7157 void nm_test_func(void){}
7158 #ifdef __cplusplus
7159 }
7160 #endif
7161 int main(){nm_test_var='a';nm_test_func();return(0);}
7162 _LT_EOF
7163
7164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7165 (eval $ac_compile) 2>&5
7166 ac_status=$?
7167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7168 test $ac_status = 0; }; then
7169 # Now try to grab the symbols.
7170 nlist=conftest.nm
7171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7172 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7173 ac_status=$?
7174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7175 test $ac_status = 0; } && test -s "$nlist"; then
7176 # Try sorting and uniquifying the output.
7177 if sort "$nlist" | uniq > "$nlist"T; then
7178 mv -f "$nlist"T "$nlist"
7179 else
7180 rm -f "$nlist"T
7181 fi
7182
7183 # Make sure that we snagged all the symbols we need.
7184 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7185 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7186 cat <<_LT_EOF > conftest.$ac_ext
7187 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7188 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7189 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7190 relocations are performed -- see ld's documentation on pseudo-relocs. */
7191 # define LT_DLSYM_CONST
7192 #elif defined __osf__
7193 /* This system does not cope well with relocations in const data. */
7194 # define LT_DLSYM_CONST
7195 #else
7196 # define LT_DLSYM_CONST const
7197 #endif
7198
7199 #ifdef __cplusplus
7200 extern "C" {
7201 #endif
7202
7203 _LT_EOF
7204 # Now generate the symbol file.
7205 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7206
7207 cat <<_LT_EOF >> conftest.$ac_ext
7208
7209 /* The mapping between symbol names and symbols. */
7210 LT_DLSYM_CONST struct {
7211 const char *name;
7212 void *address;
7213 }
7214 lt__PROGRAM__LTX_preloaded_symbols[] =
7215 {
7216 { "@PROGRAM@", (void *) 0 },
7217 _LT_EOF
7218 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7219 cat <<\_LT_EOF >> conftest.$ac_ext
7220 {0, (void *) 0}
7221 };
7222
7223 /* This works around a problem in FreeBSD linker */
7224 #ifdef FREEBSD_WORKAROUND
7225 static const void *lt_preloaded_setup() {
7226 return lt__PROGRAM__LTX_preloaded_symbols;
7227 }
7228 #endif
7229
7230 #ifdef __cplusplus
7231 }
7232 #endif
7233 _LT_EOF
7234 # Now try linking the two files.
7235 mv conftest.$ac_objext conftstm.$ac_objext
7236 lt_globsym_save_LIBS=$LIBS
7237 lt_globsym_save_CFLAGS=$CFLAGS
7238 LIBS=conftstm.$ac_objext
7239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7241 (eval $ac_link) 2>&5
7242 ac_status=$?
7243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7244 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7245 pipe_works=yes
7246 fi
7247 LIBS=$lt_globsym_save_LIBS
7248 CFLAGS=$lt_globsym_save_CFLAGS
7249 else
7250 echo "cannot find nm_test_func in $nlist" >&5
7251 fi
7252 else
7253 echo "cannot find nm_test_var in $nlist" >&5
7254 fi
7255 else
7256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7257 fi
7258 else
7259 echo "$progname: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7261 fi
7262 rm -rf conftest* conftst*
7263
7264 # Do not use the global_symbol_pipe unless it works.
7265 if test yes = "$pipe_works"; then
7266 break
7267 else
7268 lt_cv_sys_global_symbol_pipe=
7269 fi
7270 done
7271
7272 fi
7273
7274 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7275 lt_cv_sys_global_symbol_to_cdecl=
7276 fi
7277 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7279 printf "%s\n" "failed" >&6; }
7280 else
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7282 printf "%s\n" "ok" >&6; }
7283 fi
7284
7285 # Response file support.
7286 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7287 nm_file_list_spec='@'
7288 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7289 nm_file_list_spec='@'
7290 fi
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7329 printf %s "checking for sysroot... " >&6; }
7330
7331 # Check whether --with-sysroot was given.
7332 if test ${with_sysroot+y}
7333 then :
7334 withval=$with_sysroot;
7335 else $as_nop
7336 with_sysroot=no
7337 fi
7338
7339
7340 lt_sysroot=
7341 case $with_sysroot in #(
7342 yes)
7343 if test yes = "$GCC"; then
7344 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7345 fi
7346 ;; #(
7347 /*)
7348 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7349 ;; #(
7350 no|'')
7351 ;; #(
7352 *)
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7354 printf "%s\n" "$with_sysroot" >&6; }
7355 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7356 ;;
7357 esac
7358
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7360 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7361
7362
7363
7364
7365
7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7367 printf %s "checking for a working dd... " >&6; }
7368 if test ${ac_cv_path_lt_DD+y}
7369 then :
7370 printf %s "(cached) " >&6
7371 else $as_nop
7372 printf 0123456789abcdef0123456789abcdef >conftest.i
7373 cat conftest.i conftest.i >conftest2.i
7374 : ${lt_DD:=$DD}
7375 if test -z "$lt_DD"; then
7376 ac_path_lt_DD_found=false
7377 # Loop through the user's path and test for each of PROGNAME-LIST
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381 IFS=$as_save_IFS
7382 case $as_dir in #(((
7383 '') as_dir=./ ;;
7384 */) ;;
7385 *) as_dir=$as_dir/ ;;
7386 esac
7387 for ac_prog in dd
7388 do
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7391 as_fn_executable_p "$ac_path_lt_DD" || continue
7392 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7393 cmp -s conftest.i conftest.out \
7394 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7395 fi
7396 $ac_path_lt_DD_found && break 3
7397 done
7398 done
7399 done
7400 IFS=$as_save_IFS
7401 if test -z "$ac_cv_path_lt_DD"; then
7402 :
7403 fi
7404 else
7405 ac_cv_path_lt_DD=$lt_DD
7406 fi
7407
7408 rm -f conftest.i conftest2.i conftest.out
7409 fi
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7411 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7412
7413
7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7415 printf %s "checking how to truncate binary pipes... " >&6; }
7416 if test ${lt_cv_truncate_bin+y}
7417 then :
7418 printf %s "(cached) " >&6
7419 else $as_nop
7420 printf 0123456789abcdef0123456789abcdef >conftest.i
7421 cat conftest.i conftest.i >conftest2.i
7422 lt_cv_truncate_bin=
7423 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7424 cmp -s conftest.i conftest.out \
7425 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7426 fi
7427 rm -f conftest.i conftest2.i conftest.out
7428 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7429 fi
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7431 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7432
7433
7434
7435
7436
7437
7438
7439 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7440 func_cc_basename ()
7441 {
7442 for cc_temp in $*""; do
7443 case $cc_temp in
7444 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7445 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7446 \-*) ;;
7447 *) break;;
7448 esac
7449 done
7450 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7451 }
7452
7453 # Check whether --enable-libtool-lock was given.
7454 if test ${enable_libtool_lock+y}
7455 then :
7456 enableval=$enable_libtool_lock;
7457 fi
7458
7459 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7460
7461 # Some flags need to be propagated to the compiler or linker for good
7462 # libtool support.
7463 case $host in
7464 ia64-*-hpux*)
7465 # Find out what ABI is being produced by ac_compile, and set mode
7466 # options accordingly.
7467 echo 'int i;' > conftest.$ac_ext
7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7469 (eval $ac_compile) 2>&5
7470 ac_status=$?
7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; }; then
7473 case `$FILECMD conftest.$ac_objext` in
7474 *ELF-32*)
7475 HPUX_IA64_MODE=32
7476 ;;
7477 *ELF-64*)
7478 HPUX_IA64_MODE=64
7479 ;;
7480 esac
7481 fi
7482 rm -rf conftest*
7483 ;;
7484 *-*-irix6*)
7485 # Find out what ABI is being produced by ac_compile, and set linker
7486 # options accordingly.
7487 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7489 (eval $ac_compile) 2>&5
7490 ac_status=$?
7491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7492 test $ac_status = 0; }; then
7493 if test yes = "$lt_cv_prog_gnu_ld"; then
7494 case `$FILECMD conftest.$ac_objext` in
7495 *32-bit*)
7496 LD="${LD-ld} -melf32bsmip"
7497 ;;
7498 *N32*)
7499 LD="${LD-ld} -melf32bmipn32"
7500 ;;
7501 *64-bit*)
7502 LD="${LD-ld} -melf64bmip"
7503 ;;
7504 esac
7505 else
7506 case `$FILECMD conftest.$ac_objext` in
7507 *32-bit*)
7508 LD="${LD-ld} -32"
7509 ;;
7510 *N32*)
7511 LD="${LD-ld} -n32"
7512 ;;
7513 *64-bit*)
7514 LD="${LD-ld} -64"
7515 ;;
7516 esac
7517 fi
7518 fi
7519 rm -rf conftest*
7520 ;;
7521
7522 mips64*-*linux*)
7523 # Find out what ABI is being produced by ac_compile, and set linker
7524 # options accordingly.
7525 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527 (eval $ac_compile) 2>&5
7528 ac_status=$?
7529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }; then
7531 emul=elf
7532 case `$FILECMD conftest.$ac_objext` in
7533 *32-bit*)
7534 emul="${emul}32"
7535 ;;
7536 *64-bit*)
7537 emul="${emul}64"
7538 ;;
7539 esac
7540 case `$FILECMD conftest.$ac_objext` in
7541 *MSB*)
7542 emul="${emul}btsmip"
7543 ;;
7544 *LSB*)
7545 emul="${emul}ltsmip"
7546 ;;
7547 esac
7548 case `$FILECMD conftest.$ac_objext` in
7549 *N32*)
7550 emul="${emul}n32"
7551 ;;
7552 esac
7553 LD="${LD-ld} -m $emul"
7554 fi
7555 rm -rf conftest*
7556 ;;
7557
7558 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7559 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7560 # Find out what ABI is being produced by ac_compile, and set linker
7561 # options accordingly. Note that the listed cases only cover the
7562 # situations where additional linker options are needed (such as when
7563 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7564 # vice versa); the common cases where no linker options are needed do
7565 # not appear in the list.
7566 echo 'int i;' > conftest.$ac_ext
7567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7568 (eval $ac_compile) 2>&5
7569 ac_status=$?
7570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; }; then
7572 case `$FILECMD conftest.o` in
7573 *32-bit*)
7574 case $host in
7575 x86_64-*kfreebsd*-gnu)
7576 LD="${LD-ld} -m elf_i386_fbsd"
7577 ;;
7578 x86_64-*linux*)
7579 case `$FILECMD conftest.o` in
7580 *x86-64*)
7581 LD="${LD-ld} -m elf32_x86_64"
7582 ;;
7583 *)
7584 LD="${LD-ld} -m elf_i386"
7585 ;;
7586 esac
7587 ;;
7588 powerpc64le-*linux*)
7589 LD="${LD-ld} -m elf32lppclinux"
7590 ;;
7591 powerpc64-*linux*)
7592 LD="${LD-ld} -m elf32ppclinux"
7593 ;;
7594 s390x-*linux*)
7595 LD="${LD-ld} -m elf_s390"
7596 ;;
7597 sparc64-*linux*)
7598 LD="${LD-ld} -m elf32_sparc"
7599 ;;
7600 esac
7601 ;;
7602 *64-bit*)
7603 case $host in
7604 x86_64-*kfreebsd*-gnu)
7605 LD="${LD-ld} -m elf_x86_64_fbsd"
7606 ;;
7607 x86_64-*linux*)
7608 LD="${LD-ld} -m elf_x86_64"
7609 ;;
7610 powerpcle-*linux*)
7611 LD="${LD-ld} -m elf64lppc"
7612 ;;
7613 powerpc-*linux*)
7614 LD="${LD-ld} -m elf64ppc"
7615 ;;
7616 s390*-*linux*|s390*-*tpf*)
7617 LD="${LD-ld} -m elf64_s390"
7618 ;;
7619 sparc*-*linux*)
7620 LD="${LD-ld} -m elf64_sparc"
7621 ;;
7622 esac
7623 ;;
7624 esac
7625 fi
7626 rm -rf conftest*
7627 ;;
7628
7629 *-*-sco3.2v5*)
7630 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7631 SAVE_CFLAGS=$CFLAGS
7632 CFLAGS="$CFLAGS -belf"
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7634 printf %s "checking whether the C compiler needs -belf... " >&6; }
7635 if test ${lt_cv_cc_needs_belf+y}
7636 then :
7637 printf %s "(cached) " >&6
7638 else $as_nop
7639 ac_ext=c
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647
7648 int
7649 main (void)
7650 {
7651
7652 ;
7653 return 0;
7654 }
7655 _ACEOF
7656 if ac_fn_c_try_link "$LINENO"
7657 then :
7658 lt_cv_cc_needs_belf=yes
7659 else $as_nop
7660 lt_cv_cc_needs_belf=no
7661 fi
7662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7663 conftest$ac_exeext conftest.$ac_ext
7664 ac_ext=c
7665 ac_cpp='$CPP $CPPFLAGS'
7666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7669
7670 fi
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7672 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7673 if test yes != "$lt_cv_cc_needs_belf"; then
7674 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7675 CFLAGS=$SAVE_CFLAGS
7676 fi
7677 ;;
7678 *-*solaris*)
7679 # Find out what ABI is being produced by ac_compile, and set linker
7680 # options accordingly.
7681 echo 'int i;' > conftest.$ac_ext
7682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7683 (eval $ac_compile) 2>&5
7684 ac_status=$?
7685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7686 test $ac_status = 0; }; then
7687 case `$FILECMD conftest.o` in
7688 *64-bit*)
7689 case $lt_cv_prog_gnu_ld in
7690 yes*)
7691 case $host in
7692 i?86-*-solaris*|x86_64-*-solaris*)
7693 LD="${LD-ld} -m elf_x86_64"
7694 ;;
7695 sparc*-*-solaris*)
7696 LD="${LD-ld} -m elf64_sparc"
7697 ;;
7698 esac
7699 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7700 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7701 LD=${LD-ld}_sol2
7702 fi
7703 ;;
7704 *)
7705 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7706 LD="${LD-ld} -64"
7707 fi
7708 ;;
7709 esac
7710 ;;
7711 esac
7712 fi
7713 rm -rf conftest*
7714 ;;
7715 esac
7716
7717 need_locks=$enable_libtool_lock
7718
7719 if test -n "$ac_tool_prefix"; then
7720 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7721 set dummy ${ac_tool_prefix}mt; ac_word=$2
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 printf %s "checking for $ac_word... " >&6; }
7724 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7725 then :
7726 printf %s "(cached) " >&6
7727 else $as_nop
7728 if test -n "$MANIFEST_TOOL"; then
7729 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7733 do
7734 IFS=$as_save_IFS
7735 case $as_dir in #(((
7736 '') as_dir=./ ;;
7737 */) ;;
7738 *) as_dir=$as_dir/ ;;
7739 esac
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746 done
7747 done
7748 IFS=$as_save_IFS
7749
7750 fi
7751 fi
7752 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7753 if test -n "$MANIFEST_TOOL"; then
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7755 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7756 else
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 printf "%s\n" "no" >&6; }
7759 fi
7760
7761
7762 fi
7763 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7764 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7765 # Extract the first word of "mt", so it can be a program name with args.
7766 set dummy mt; ac_word=$2
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 printf %s "checking for $ac_word... " >&6; }
7769 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else $as_nop
7773 if test -n "$ac_ct_MANIFEST_TOOL"; then
7774 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779 IFS=$as_save_IFS
7780 case $as_dir in #(((
7781 '') as_dir=./ ;;
7782 */) ;;
7783 *) as_dir=$as_dir/ ;;
7784 esac
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7798 if test -n "$ac_ct_MANIFEST_TOOL"; then
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7800 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7801 else
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 printf "%s\n" "no" >&6; }
7804 fi
7805
7806 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7807 MANIFEST_TOOL=":"
7808 else
7809 case $cross_compiling:$ac_tool_warned in
7810 yes:)
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813 ac_tool_warned=yes ;;
7814 esac
7815 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7816 fi
7817 else
7818 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7819 fi
7820
7821 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7823 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7824 if test ${lt_cv_path_mainfest_tool+y}
7825 then :
7826 printf %s "(cached) " >&6
7827 else $as_nop
7828 lt_cv_path_mainfest_tool=no
7829 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7830 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7831 cat conftest.err >&5
7832 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7833 lt_cv_path_mainfest_tool=yes
7834 fi
7835 rm -f conftest*
7836 fi
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7838 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7839 if test yes != "$lt_cv_path_mainfest_tool"; then
7840 MANIFEST_TOOL=:
7841 fi
7842
7843
7844
7845
7846
7847
7848 case $host_os in
7849 rhapsody* | darwin*)
7850 if test -n "$ac_tool_prefix"; then
7851 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7852 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 printf %s "checking for $ac_word... " >&6; }
7855 if test ${ac_cv_prog_DSYMUTIL+y}
7856 then :
7857 printf %s "(cached) " >&6
7858 else $as_nop
7859 if test -n "$DSYMUTIL"; then
7860 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865 IFS=$as_save_IFS
7866 case $as_dir in #(((
7867 '') as_dir=./ ;;
7868 */) ;;
7869 *) as_dir=$as_dir/ ;;
7870 esac
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877 done
7878 done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7884 if test -n "$DSYMUTIL"; then
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7886 printf "%s\n" "$DSYMUTIL" >&6; }
7887 else
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 printf "%s\n" "no" >&6; }
7890 fi
7891
7892
7893 fi
7894 if test -z "$ac_cv_prog_DSYMUTIL"; then
7895 ac_ct_DSYMUTIL=$DSYMUTIL
7896 # Extract the first word of "dsymutil", so it can be a program name with args.
7897 set dummy dsymutil; ac_word=$2
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 printf %s "checking for $ac_word... " >&6; }
7900 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7901 then :
7902 printf %s "(cached) " >&6
7903 else $as_nop
7904 if test -n "$ac_ct_DSYMUTIL"; then
7905 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910 IFS=$as_save_IFS
7911 case $as_dir in #(((
7912 '') as_dir=./ ;;
7913 */) ;;
7914 *) as_dir=$as_dir/ ;;
7915 esac
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7918 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922 done
7923 done
7924 IFS=$as_save_IFS
7925
7926 fi
7927 fi
7928 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7929 if test -n "$ac_ct_DSYMUTIL"; then
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7931 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7932 else
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 printf "%s\n" "no" >&6; }
7935 fi
7936
7937 if test "x$ac_ct_DSYMUTIL" = x; then
7938 DSYMUTIL=":"
7939 else
7940 case $cross_compiling:$ac_tool_warned in
7941 yes:)
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7943 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7944 ac_tool_warned=yes ;;
7945 esac
7946 DSYMUTIL=$ac_ct_DSYMUTIL
7947 fi
7948 else
7949 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7950 fi
7951
7952 if test -n "$ac_tool_prefix"; then
7953 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7954 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 printf %s "checking for $ac_word... " >&6; }
7957 if test ${ac_cv_prog_NMEDIT+y}
7958 then :
7959 printf %s "(cached) " >&6
7960 else $as_nop
7961 if test -n "$NMEDIT"; then
7962 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967 IFS=$as_save_IFS
7968 case $as_dir in #(((
7969 '') as_dir=./ ;;
7970 */) ;;
7971 *) as_dir=$as_dir/ ;;
7972 esac
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983 fi
7984 fi
7985 NMEDIT=$ac_cv_prog_NMEDIT
7986 if test -n "$NMEDIT"; then
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7988 printf "%s\n" "$NMEDIT" >&6; }
7989 else
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 printf "%s\n" "no" >&6; }
7992 fi
7993
7994
7995 fi
7996 if test -z "$ac_cv_prog_NMEDIT"; then
7997 ac_ct_NMEDIT=$NMEDIT
7998 # Extract the first word of "nmedit", so it can be a program name with args.
7999 set dummy nmedit; ac_word=$2
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 printf %s "checking for $ac_word... " >&6; }
8002 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8003 then :
8004 printf %s "(cached) " >&6
8005 else $as_nop
8006 if test -n "$ac_ct_NMEDIT"; then
8007 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8008 else
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 for as_dir in $PATH
8011 do
8012 IFS=$as_save_IFS
8013 case $as_dir in #(((
8014 '') as_dir=./ ;;
8015 */) ;;
8016 *) as_dir=$as_dir/ ;;
8017 esac
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8020 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8022 break 2
8023 fi
8024 done
8025 done
8026 IFS=$as_save_IFS
8027
8028 fi
8029 fi
8030 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8031 if test -n "$ac_ct_NMEDIT"; then
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8033 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8034 else
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 printf "%s\n" "no" >&6; }
8037 fi
8038
8039 if test "x$ac_ct_NMEDIT" = x; then
8040 NMEDIT=":"
8041 else
8042 case $cross_compiling:$ac_tool_warned in
8043 yes:)
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8045 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8046 ac_tool_warned=yes ;;
8047 esac
8048 NMEDIT=$ac_ct_NMEDIT
8049 fi
8050 else
8051 NMEDIT="$ac_cv_prog_NMEDIT"
8052 fi
8053
8054 if test -n "$ac_tool_prefix"; then
8055 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8056 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058 printf %s "checking for $ac_word... " >&6; }
8059 if test ${ac_cv_prog_LIPO+y}
8060 then :
8061 printf %s "(cached) " >&6
8062 else $as_nop
8063 if test -n "$LIPO"; then
8064 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069 IFS=$as_save_IFS
8070 case $as_dir in #(((
8071 '') as_dir=./ ;;
8072 */) ;;
8073 *) as_dir=$as_dir/ ;;
8074 esac
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8077 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8079 break 2
8080 fi
8081 done
8082 done
8083 IFS=$as_save_IFS
8084
8085 fi
8086 fi
8087 LIPO=$ac_cv_prog_LIPO
8088 if test -n "$LIPO"; then
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8090 printf "%s\n" "$LIPO" >&6; }
8091 else
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 printf "%s\n" "no" >&6; }
8094 fi
8095
8096
8097 fi
8098 if test -z "$ac_cv_prog_LIPO"; then
8099 ac_ct_LIPO=$LIPO
8100 # Extract the first word of "lipo", so it can be a program name with args.
8101 set dummy lipo; ac_word=$2
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 printf %s "checking for $ac_word... " >&6; }
8104 if test ${ac_cv_prog_ac_ct_LIPO+y}
8105 then :
8106 printf %s "(cached) " >&6
8107 else $as_nop
8108 if test -n "$ac_ct_LIPO"; then
8109 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8110 else
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114 IFS=$as_save_IFS
8115 case $as_dir in #(((
8116 '') as_dir=./ ;;
8117 */) ;;
8118 *) as_dir=$as_dir/ ;;
8119 esac
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8122 ac_cv_prog_ac_ct_LIPO="lipo"
8123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126 done
8127 done
8128 IFS=$as_save_IFS
8129
8130 fi
8131 fi
8132 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8133 if test -n "$ac_ct_LIPO"; then
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8135 printf "%s\n" "$ac_ct_LIPO" >&6; }
8136 else
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 printf "%s\n" "no" >&6; }
8139 fi
8140
8141 if test "x$ac_ct_LIPO" = x; then
8142 LIPO=":"
8143 else
8144 case $cross_compiling:$ac_tool_warned in
8145 yes:)
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148 ac_tool_warned=yes ;;
8149 esac
8150 LIPO=$ac_ct_LIPO
8151 fi
8152 else
8153 LIPO="$ac_cv_prog_LIPO"
8154 fi
8155
8156 if test -n "$ac_tool_prefix"; then
8157 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8158 set dummy ${ac_tool_prefix}otool; ac_word=$2
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 printf %s "checking for $ac_word... " >&6; }
8161 if test ${ac_cv_prog_OTOOL+y}
8162 then :
8163 printf %s "(cached) " >&6
8164 else $as_nop
8165 if test -n "$OTOOL"; then
8166 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8170 do
8171 IFS=$as_save_IFS
8172 case $as_dir in #(((
8173 '') as_dir=./ ;;
8174 */) ;;
8175 *) as_dir=$as_dir/ ;;
8176 esac
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183 done
8184 done
8185 IFS=$as_save_IFS
8186
8187 fi
8188 fi
8189 OTOOL=$ac_cv_prog_OTOOL
8190 if test -n "$OTOOL"; then
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8192 printf "%s\n" "$OTOOL" >&6; }
8193 else
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 printf "%s\n" "no" >&6; }
8196 fi
8197
8198
8199 fi
8200 if test -z "$ac_cv_prog_OTOOL"; then
8201 ac_ct_OTOOL=$OTOOL
8202 # Extract the first word of "otool", so it can be a program name with args.
8203 set dummy otool; ac_word=$2
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 printf %s "checking for $ac_word... " >&6; }
8206 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8207 then :
8208 printf %s "(cached) " >&6
8209 else $as_nop
8210 if test -n "$ac_ct_OTOOL"; then
8211 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8212 else
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in $PATH
8215 do
8216 IFS=$as_save_IFS
8217 case $as_dir in #(((
8218 '') as_dir=./ ;;
8219 */) ;;
8220 *) as_dir=$as_dir/ ;;
8221 esac
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8224 ac_cv_prog_ac_ct_OTOOL="otool"
8225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8226 break 2
8227 fi
8228 done
8229 done
8230 IFS=$as_save_IFS
8231
8232 fi
8233 fi
8234 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8235 if test -n "$ac_ct_OTOOL"; then
8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8237 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8238 else
8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 printf "%s\n" "no" >&6; }
8241 fi
8242
8243 if test "x$ac_ct_OTOOL" = x; then
8244 OTOOL=":"
8245 else
8246 case $cross_compiling:$ac_tool_warned in
8247 yes:)
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8249 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8250 ac_tool_warned=yes ;;
8251 esac
8252 OTOOL=$ac_ct_OTOOL
8253 fi
8254 else
8255 OTOOL="$ac_cv_prog_OTOOL"
8256 fi
8257
8258 if test -n "$ac_tool_prefix"; then
8259 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8260 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 printf %s "checking for $ac_word... " >&6; }
8263 if test ${ac_cv_prog_OTOOL64+y}
8264 then :
8265 printf %s "(cached) " >&6
8266 else $as_nop
8267 if test -n "$OTOOL64"; then
8268 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273 IFS=$as_save_IFS
8274 case $as_dir in #(((
8275 '') as_dir=./ ;;
8276 */) ;;
8277 *) as_dir=$as_dir/ ;;
8278 esac
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285 done
8286 done
8287 IFS=$as_save_IFS
8288
8289 fi
8290 fi
8291 OTOOL64=$ac_cv_prog_OTOOL64
8292 if test -n "$OTOOL64"; then
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8294 printf "%s\n" "$OTOOL64" >&6; }
8295 else
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 printf "%s\n" "no" >&6; }
8298 fi
8299
8300
8301 fi
8302 if test -z "$ac_cv_prog_OTOOL64"; then
8303 ac_ct_OTOOL64=$OTOOL64
8304 # Extract the first word of "otool64", so it can be a program name with args.
8305 set dummy otool64; ac_word=$2
8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 printf %s "checking for $ac_word... " >&6; }
8308 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8309 then :
8310 printf %s "(cached) " >&6
8311 else $as_nop
8312 if test -n "$ac_ct_OTOOL64"; then
8313 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318 IFS=$as_save_IFS
8319 case $as_dir in #(((
8320 '') as_dir=./ ;;
8321 */) ;;
8322 *) as_dir=$as_dir/ ;;
8323 esac
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8326 ac_cv_prog_ac_ct_OTOOL64="otool64"
8327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8328 break 2
8329 fi
8330 done
8331 done
8332 IFS=$as_save_IFS
8333
8334 fi
8335 fi
8336 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8337 if test -n "$ac_ct_OTOOL64"; then
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8339 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8340 else
8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 printf "%s\n" "no" >&6; }
8343 fi
8344
8345 if test "x$ac_ct_OTOOL64" = x; then
8346 OTOOL64=":"
8347 else
8348 case $cross_compiling:$ac_tool_warned in
8349 yes:)
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8351 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8352 ac_tool_warned=yes ;;
8353 esac
8354 OTOOL64=$ac_ct_OTOOL64
8355 fi
8356 else
8357 OTOOL64="$ac_cv_prog_OTOOL64"
8358 fi
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8387 printf %s "checking for -single_module linker flag... " >&6; }
8388 if test ${lt_cv_apple_cc_single_mod+y}
8389 then :
8390 printf %s "(cached) " >&6
8391 else $as_nop
8392 lt_cv_apple_cc_single_mod=no
8393 if test -z "$LT_MULTI_MODULE"; then
8394 # By default we will add the -single_module flag. You can override
8395 # by either setting the environment variable LT_MULTI_MODULE
8396 # non-empty at configure time, or by adding -multi_module to the
8397 # link flags.
8398 rm -rf libconftest.dylib*
8399 echo "int foo(void){return 1;}" > conftest.c
8400 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8401 -dynamiclib -Wl,-single_module conftest.c" >&5
8402 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8403 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8404 _lt_result=$?
8405 # If there is a non-empty error log, and "single_module"
8406 # appears in it, assume the flag caused a linker warning
8407 if test -s conftest.err && $GREP single_module conftest.err; then
8408 cat conftest.err >&5
8409 # Otherwise, if the output was created with a 0 exit code from
8410 # the compiler, it worked.
8411 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8412 lt_cv_apple_cc_single_mod=yes
8413 else
8414 cat conftest.err >&5
8415 fi
8416 rm -rf libconftest.dylib*
8417 rm -f conftest.*
8418 fi
8419 fi
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8421 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8422
8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8424 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8425 if test ${lt_cv_ld_exported_symbols_list+y}
8426 then :
8427 printf %s "(cached) " >&6
8428 else $as_nop
8429 lt_cv_ld_exported_symbols_list=no
8430 save_LDFLAGS=$LDFLAGS
8431 echo "_main" > conftest.sym
8432 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435
8436 int
8437 main (void)
8438 {
8439
8440 ;
8441 return 0;
8442 }
8443 _ACEOF
8444 if ac_fn_c_try_link "$LINENO"
8445 then :
8446 lt_cv_ld_exported_symbols_list=yes
8447 else $as_nop
8448 lt_cv_ld_exported_symbols_list=no
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8451 conftest$ac_exeext conftest.$ac_ext
8452 LDFLAGS=$save_LDFLAGS
8453
8454 fi
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8456 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8457
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8459 printf %s "checking for -force_load linker flag... " >&6; }
8460 if test ${lt_cv_ld_force_load+y}
8461 then :
8462 printf %s "(cached) " >&6
8463 else $as_nop
8464 lt_cv_ld_force_load=no
8465 cat > conftest.c << _LT_EOF
8466 int forced_loaded() { return 2;}
8467 _LT_EOF
8468 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8469 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8470 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8471 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8472 echo "$RANLIB libconftest.a" >&5
8473 $RANLIB libconftest.a 2>&5
8474 cat > conftest.c << _LT_EOF
8475 int main() { return 0;}
8476 _LT_EOF
8477 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8478 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8479 _lt_result=$?
8480 if test -s conftest.err && $GREP force_load conftest.err; then
8481 cat conftest.err >&5
8482 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8483 lt_cv_ld_force_load=yes
8484 else
8485 cat conftest.err >&5
8486 fi
8487 rm -f conftest.err libconftest.a conftest conftest.c
8488 rm -rf conftest.dSYM
8489
8490 fi
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8492 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8493 case $host_os in
8494 rhapsody* | darwin1.[012])
8495 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8496 darwin1.*)
8497 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8498 darwin*)
8499 case $MACOSX_DEPLOYMENT_TARGET,$host in
8500 10.[012],*|,*powerpc*-darwin[5-8]*)
8501 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8502 *)
8503 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8504 esac
8505 ;;
8506 esac
8507 if test yes = "$lt_cv_apple_cc_single_mod"; then
8508 _lt_dar_single_mod='$single_module'
8509 fi
8510 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8511 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8512 else
8513 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8514 fi
8515 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8516 _lt_dsymutil='~$DSYMUTIL $lib || :'
8517 else
8518 _lt_dsymutil=
8519 fi
8520 ;;
8521 esac
8522
8523 # func_munge_path_list VARIABLE PATH
8524 # -----------------------------------
8525 # VARIABLE is name of variable containing _space_ separated list of
8526 # directories to be munged by the contents of PATH, which is string
8527 # having a format:
8528 # "DIR[:DIR]:"
8529 # string "DIR[ DIR]" will be prepended to VARIABLE
8530 # ":DIR[:DIR]"
8531 # string "DIR[ DIR]" will be appended to VARIABLE
8532 # "DIRP[:DIRP]::[DIRA:]DIRA"
8533 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8534 # "DIRA[ DIRA]" will be appended to VARIABLE
8535 # "DIR[:DIR]"
8536 # VARIABLE will be replaced by "DIR[ DIR]"
8537 func_munge_path_list ()
8538 {
8539 case x$2 in
8540 x)
8541 ;;
8542 *:)
8543 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8544 ;;
8545 x:*)
8546 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8547 ;;
8548 *::*)
8549 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8550 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8551 ;;
8552 *)
8553 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8554 ;;
8555 esac
8556 }
8557
8558 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8559 "
8560 if test "x$ac_cv_header_dlfcn_h" = xyes
8561 then :
8562 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8563
8564 fi
8565
8566
8567
8568
8569
8570 # Set options
8571
8572
8573
8574 enable_dlopen=no
8575
8576
8577 enable_win32_dll=no
8578
8579
8580 # Check whether --enable-shared was given.
8581 if test ${enable_shared+y}
8582 then :
8583 enableval=$enable_shared; p=${PACKAGE-default}
8584 case $enableval in
8585 yes) enable_shared=yes ;;
8586 no) enable_shared=no ;;
8587 *)
8588 enable_shared=no
8589 # Look at the argument we got. We use all the common list separators.
8590 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8591 for pkg in $enableval; do
8592 IFS=$lt_save_ifs
8593 if test "X$pkg" = "X$p"; then
8594 enable_shared=yes
8595 fi
8596 done
8597 IFS=$lt_save_ifs
8598 ;;
8599 esac
8600 else $as_nop
8601 enable_shared=yes
8602 fi
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612 # Check whether --enable-static was given.
8613 if test ${enable_static+y}
8614 then :
8615 enableval=$enable_static; p=${PACKAGE-default}
8616 case $enableval in
8617 yes) enable_static=yes ;;
8618 no) enable_static=no ;;
8619 *)
8620 enable_static=no
8621 # Look at the argument we got. We use all the common list separators.
8622 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8623 for pkg in $enableval; do
8624 IFS=$lt_save_ifs
8625 if test "X$pkg" = "X$p"; then
8626 enable_static=yes
8627 fi
8628 done
8629 IFS=$lt_save_ifs
8630 ;;
8631 esac
8632 else $as_nop
8633 enable_static=yes
8634 fi
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645 # Check whether --with-pic was given.
8646 if test ${with_pic+y}
8647 then :
8648 withval=$with_pic; lt_p=${PACKAGE-default}
8649 case $withval in
8650 yes|no) pic_mode=$withval ;;
8651 *)
8652 pic_mode=default
8653 # Look at the argument we got. We use all the common list separators.
8654 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8655 for lt_pkg in $withval; do
8656 IFS=$lt_save_ifs
8657 if test "X$lt_pkg" = "X$lt_p"; then
8658 pic_mode=yes
8659 fi
8660 done
8661 IFS=$lt_save_ifs
8662 ;;
8663 esac
8664 else $as_nop
8665 pic_mode=default
8666 fi
8667
8668
8669
8670
8671
8672
8673
8674
8675 # Check whether --enable-fast-install was given.
8676 if test ${enable_fast_install+y}
8677 then :
8678 enableval=$enable_fast_install; p=${PACKAGE-default}
8679 case $enableval in
8680 yes) enable_fast_install=yes ;;
8681 no) enable_fast_install=no ;;
8682 *)
8683 enable_fast_install=no
8684 # Look at the argument we got. We use all the common list separators.
8685 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8686 for pkg in $enableval; do
8687 IFS=$lt_save_ifs
8688 if test "X$pkg" = "X$p"; then
8689 enable_fast_install=yes
8690 fi
8691 done
8692 IFS=$lt_save_ifs
8693 ;;
8694 esac
8695 else $as_nop
8696 enable_fast_install=yes
8697 fi
8698
8699
8700
8701
8702
8703
8704
8705
8706 shared_archive_member_spec=
8707 case $host,$enable_shared in
8708 power*-*-aix[5-9]*,yes)
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8710 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8711
8712 # Check whether --with-aix-soname was given.
8713 if test ${with_aix_soname+y}
8714 then :
8715 withval=$with_aix_soname; case $withval in
8716 aix|svr4|both)
8717 ;;
8718 *)
8719 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8720 ;;
8721 esac
8722 lt_cv_with_aix_soname=$with_aix_soname
8723 else $as_nop
8724 if test ${lt_cv_with_aix_soname+y}
8725 then :
8726 printf %s "(cached) " >&6
8727 else $as_nop
8728 lt_cv_with_aix_soname=aix
8729 fi
8730
8731 with_aix_soname=$lt_cv_with_aix_soname
8732 fi
8733
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8735 printf "%s\n" "$with_aix_soname" >&6; }
8736 if test aix != "$with_aix_soname"; then
8737 # For the AIX way of multilib, we name the shared archive member
8738 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8739 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8740 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8741 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8742 if test 64 = "${OBJECT_MODE-32}"; then
8743 shared_archive_member_spec=shr_64
8744 else
8745 shared_archive_member_spec=shr
8746 fi
8747 fi
8748 ;;
8749 *)
8750 with_aix_soname=aix
8751 ;;
8752 esac
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763 # This can be used to rebuild libtool when needed
8764 LIBTOOL_DEPS=$ltmain
8765
8766 # Always use our own libtool.
8767 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 test -z "$LN_S" && LN_S="ln -s"
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813 if test -n "${ZSH_VERSION+set}"; then
8814 setopt NO_GLOB_SUBST
8815 fi
8816
8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8818 printf %s "checking for objdir... " >&6; }
8819 if test ${lt_cv_objdir+y}
8820 then :
8821 printf %s "(cached) " >&6
8822 else $as_nop
8823 rm -f .libs 2>/dev/null
8824 mkdir .libs 2>/dev/null
8825 if test -d .libs; then
8826 lt_cv_objdir=.libs
8827 else
8828 # MS-DOS does not allow filenames that begin with a dot.
8829 lt_cv_objdir=_libs
8830 fi
8831 rmdir .libs 2>/dev/null
8832 fi
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8834 printf "%s\n" "$lt_cv_objdir" >&6; }
8835 objdir=$lt_cv_objdir
8836
8837
8838
8839
8840
8841 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8842
8843
8844
8845
8846 case $host_os in
8847 aix3*)
8848 # AIX sometimes has problems with the GCC collect2 program. For some
8849 # reason, if we set the COLLECT_NAMES environment variable, the problems
8850 # vanish in a puff of smoke.
8851 if test set != "${COLLECT_NAMES+set}"; then
8852 COLLECT_NAMES=
8853 export COLLECT_NAMES
8854 fi
8855 ;;
8856 esac
8857
8858 # Global variables:
8859 ofile=libtool
8860 can_build_shared=yes
8861
8862 # All known linkers require a '.a' archive for static linking (except MSVC and
8863 # ICC, which need '.lib').
8864 libext=a
8865
8866 with_gnu_ld=$lt_cv_prog_gnu_ld
8867
8868 old_CC=$CC
8869 old_CFLAGS=$CFLAGS
8870
8871 # Set sane defaults for various variables
8872 test -z "$CC" && CC=cc
8873 test -z "$LTCC" && LTCC=$CC
8874 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8875 test -z "$LD" && LD=ld
8876 test -z "$ac_objext" && ac_objext=o
8877
8878 func_cc_basename $compiler
8879 cc_basename=$func_cc_basename_result
8880
8881
8882 # Only perform the check for file, if the check method requires it
8883 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8884 case $deplibs_check_method in
8885 file_magic*)
8886 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8888 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8889 if test ${lt_cv_path_MAGIC_CMD+y}
8890 then :
8891 printf %s "(cached) " >&6
8892 else $as_nop
8893 case $MAGIC_CMD in
8894 [\\/*] | ?:[\\/]*)
8895 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8896 ;;
8897 *)
8898 lt_save_MAGIC_CMD=$MAGIC_CMD
8899 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8900 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8901 for ac_dir in $ac_dummy; do
8902 IFS=$lt_save_ifs
8903 test -z "$ac_dir" && ac_dir=.
8904 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8905 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8906 if test -n "$file_magic_test_file"; then
8907 case $deplibs_check_method in
8908 "file_magic "*)
8909 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8910 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8911 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8912 $EGREP "$file_magic_regex" > /dev/null; then
8913 :
8914 else
8915 cat <<_LT_EOF 1>&2
8916
8917 *** Warning: the command libtool uses to detect shared libraries,
8918 *** $file_magic_cmd, produces output that libtool cannot recognize.
8919 *** The result is that libtool may fail to recognize shared libraries
8920 *** as such. This will affect the creation of libtool libraries that
8921 *** depend on shared libraries, but programs linked with such libtool
8922 *** libraries will work regardless of this problem. Nevertheless, you
8923 *** may want to report the problem to your system manager and/or to
8924 *** bug-libtool@gnu.org
8925
8926 _LT_EOF
8927 fi ;;
8928 esac
8929 fi
8930 break
8931 fi
8932 done
8933 IFS=$lt_save_ifs
8934 MAGIC_CMD=$lt_save_MAGIC_CMD
8935 ;;
8936 esac
8937 fi
8938
8939 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8940 if test -n "$MAGIC_CMD"; then
8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8942 printf "%s\n" "$MAGIC_CMD" >&6; }
8943 else
8944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 printf "%s\n" "no" >&6; }
8946 fi
8947
8948
8949
8950
8951
8952 if test -z "$lt_cv_path_MAGIC_CMD"; then
8953 if test -n "$ac_tool_prefix"; then
8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8955 printf %s "checking for file... " >&6; }
8956 if test ${lt_cv_path_MAGIC_CMD+y}
8957 then :
8958 printf %s "(cached) " >&6
8959 else $as_nop
8960 case $MAGIC_CMD in
8961 [\\/*] | ?:[\\/]*)
8962 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8963 ;;
8964 *)
8965 lt_save_MAGIC_CMD=$MAGIC_CMD
8966 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8967 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8968 for ac_dir in $ac_dummy; do
8969 IFS=$lt_save_ifs
8970 test -z "$ac_dir" && ac_dir=.
8971 if test -f "$ac_dir/file"; then
8972 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8973 if test -n "$file_magic_test_file"; then
8974 case $deplibs_check_method in
8975 "file_magic "*)
8976 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8977 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8978 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8979 $EGREP "$file_magic_regex" > /dev/null; then
8980 :
8981 else
8982 cat <<_LT_EOF 1>&2
8983
8984 *** Warning: the command libtool uses to detect shared libraries,
8985 *** $file_magic_cmd, produces output that libtool cannot recognize.
8986 *** The result is that libtool may fail to recognize shared libraries
8987 *** as such. This will affect the creation of libtool libraries that
8988 *** depend on shared libraries, but programs linked with such libtool
8989 *** libraries will work regardless of this problem. Nevertheless, you
8990 *** may want to report the problem to your system manager and/or to
8991 *** bug-libtool@gnu.org
8992
8993 _LT_EOF
8994 fi ;;
8995 esac
8996 fi
8997 break
8998 fi
8999 done
9000 IFS=$lt_save_ifs
9001 MAGIC_CMD=$lt_save_MAGIC_CMD
9002 ;;
9003 esac
9004 fi
9005
9006 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9007 if test -n "$MAGIC_CMD"; then
9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9009 printf "%s\n" "$MAGIC_CMD" >&6; }
9010 else
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 printf "%s\n" "no" >&6; }
9013 fi
9014
9015
9016 else
9017 MAGIC_CMD=:
9018 fi
9019 fi
9020
9021 fi
9022 ;;
9023 esac
9024
9025 # Use C for the default configuration in the libtool script
9026
9027 lt_save_CC=$CC
9028 ac_ext=c
9029 ac_cpp='$CPP $CPPFLAGS'
9030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9033
9034
9035 # Source file extension for C test sources.
9036 ac_ext=c
9037
9038 # Object file extension for compiled C test sources.
9039 objext=o
9040 objext=$objext
9041
9042 # Code to be used in simple compile tests
9043 lt_simple_compile_test_code="int some_variable = 0;"
9044
9045 # Code to be used in simple link tests
9046 lt_simple_link_test_code='int main(){return(0);}'
9047
9048
9049
9050
9051
9052
9053
9054 # If no C compiler was specified, use CC.
9055 LTCC=${LTCC-"$CC"}
9056
9057 # If no C compiler flags were specified, use CFLAGS.
9058 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9059
9060 # Allow CC to be a program name with arguments.
9061 compiler=$CC
9062
9063 # Save the default compiler, since it gets overwritten when the other
9064 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9065 compiler_DEFAULT=$CC
9066
9067 # save warnings/boilerplate of simple test code
9068 ac_outfile=conftest.$ac_objext
9069 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9071 _lt_compiler_boilerplate=`cat conftest.err`
9072 $RM conftest*
9073
9074 ac_outfile=conftest.$ac_objext
9075 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9077 _lt_linker_boilerplate=`cat conftest.err`
9078 $RM -r conftest*
9079
9080
9081 if test -n "$compiler"; then
9082
9083 lt_prog_compiler_no_builtin_flag=
9084
9085 if test yes = "$GCC"; then
9086 case $cc_basename in
9087 nvcc*)
9088 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9089 *)
9090 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9091 esac
9092
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9094 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9095 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9096 then :
9097 printf %s "(cached) " >&6
9098 else $as_nop
9099 lt_cv_prog_compiler_rtti_exceptions=no
9100 ac_outfile=conftest.$ac_objext
9101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9102 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9103 # Insert the option either (1) after the last *FLAGS variable, or
9104 # (2) before a word containing "conftest.", or (3) at the end.
9105 # Note that $ac_compile itself does not contain backslashes and begins
9106 # with a dollar sign (not a hyphen), so the echo should work correctly.
9107 # The option is referenced via a variable to avoid confusing sed.
9108 lt_compile=`echo "$ac_compile" | $SED \
9109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9111 -e 's:$: $lt_compiler_flag:'`
9112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9113 (eval "$lt_compile" 2>conftest.err)
9114 ac_status=$?
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 if (exit $ac_status) && test -s "$ac_outfile"; then
9118 # The compiler can only warn and ignore the option if not recognized
9119 # So say no if there are warnings other than the usual output.
9120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9123 lt_cv_prog_compiler_rtti_exceptions=yes
9124 fi
9125 fi
9126 $RM conftest*
9127
9128 fi
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9130 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9131
9132 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9133 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9134 else
9135 :
9136 fi
9137
9138 fi
9139
9140
9141
9142
9143
9144
9145 lt_prog_compiler_wl=
9146 lt_prog_compiler_pic=
9147 lt_prog_compiler_static=
9148
9149
9150 if test yes = "$GCC"; then
9151 lt_prog_compiler_wl='-Wl,'
9152 lt_prog_compiler_static='-static'
9153
9154 case $host_os in
9155 aix*)
9156 # All AIX code is PIC.
9157 if test ia64 = "$host_cpu"; then
9158 # AIX 5 now supports IA64 processor
9159 lt_prog_compiler_static='-Bstatic'
9160 fi
9161 lt_prog_compiler_pic='-fPIC'
9162 ;;
9163
9164 amigaos*)
9165 case $host_cpu in
9166 powerpc)
9167 # see comment about AmigaOS4 .so support
9168 lt_prog_compiler_pic='-fPIC'
9169 ;;
9170 m68k)
9171 # FIXME: we need at least 68020 code to build shared libraries, but
9172 # adding the '-m68020' flag to GCC prevents building anything better,
9173 # like '-m68040'.
9174 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9175 ;;
9176 esac
9177 ;;
9178
9179 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9180 # PIC is the default for these OSes.
9181 ;;
9182
9183 mingw* | cygwin* | pw32* | os2* | cegcc*)
9184 # This hack is so that the source file can tell whether it is being
9185 # built for inclusion in a dll (and should export symbols for example).
9186 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9187 # (--disable-auto-import) libraries
9188 lt_prog_compiler_pic='-DDLL_EXPORT'
9189 case $host_os in
9190 os2*)
9191 lt_prog_compiler_static='$wl-static'
9192 ;;
9193 esac
9194 ;;
9195
9196 darwin* | rhapsody*)
9197 # PIC is the default on this platform
9198 # Common symbols not allowed in MH_DYLIB files
9199 lt_prog_compiler_pic='-fno-common'
9200 ;;
9201
9202 haiku*)
9203 # PIC is the default for Haiku.
9204 # The "-static" flag exists, but is broken.
9205 lt_prog_compiler_static=
9206 ;;
9207
9208 hpux*)
9209 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9210 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9211 # sets the default TLS model and affects inlining.
9212 case $host_cpu in
9213 hppa*64*)
9214 # +Z the default
9215 ;;
9216 *)
9217 lt_prog_compiler_pic='-fPIC'
9218 ;;
9219 esac
9220 ;;
9221
9222 interix[3-9]*)
9223 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9224 # Instead, we relocate shared libraries at runtime.
9225 ;;
9226
9227 msdosdjgpp*)
9228 # Just because we use GCC doesn't mean we suddenly get shared libraries
9229 # on systems that don't support them.
9230 lt_prog_compiler_can_build_shared=no
9231 enable_shared=no
9232 ;;
9233
9234 *nto* | *qnx*)
9235 # QNX uses GNU C++, but need to define -shared option too, otherwise
9236 # it will coredump.
9237 lt_prog_compiler_pic='-fPIC -shared'
9238 ;;
9239
9240 sysv4*MP*)
9241 if test -d /usr/nec; then
9242 lt_prog_compiler_pic=-Kconform_pic
9243 fi
9244 ;;
9245
9246 *)
9247 lt_prog_compiler_pic='-fPIC'
9248 ;;
9249 esac
9250
9251 case $cc_basename in
9252 nvcc*) # Cuda Compiler Driver 2.2
9253 lt_prog_compiler_wl='-Xlinker '
9254 if test -n "$lt_prog_compiler_pic"; then
9255 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9256 fi
9257 ;;
9258 esac
9259 else
9260 # PORTME Check for flag to pass linker flags through the system compiler.
9261 case $host_os in
9262 aix*)
9263 lt_prog_compiler_wl='-Wl,'
9264 if test ia64 = "$host_cpu"; then
9265 # AIX 5 now supports IA64 processor
9266 lt_prog_compiler_static='-Bstatic'
9267 else
9268 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9269 fi
9270 ;;
9271
9272 darwin* | rhapsody*)
9273 # PIC is the default on this platform
9274 # Common symbols not allowed in MH_DYLIB files
9275 lt_prog_compiler_pic='-fno-common'
9276 case $cc_basename in
9277 nagfor*)
9278 # NAG Fortran compiler
9279 lt_prog_compiler_wl='-Wl,-Wl,,'
9280 lt_prog_compiler_pic='-PIC'
9281 lt_prog_compiler_static='-Bstatic'
9282 ;;
9283 esac
9284 ;;
9285
9286 mingw* | cygwin* | pw32* | os2* | cegcc*)
9287 # This hack is so that the source file can tell whether it is being
9288 # built for inclusion in a dll (and should export symbols for example).
9289 lt_prog_compiler_pic='-DDLL_EXPORT'
9290 case $host_os in
9291 os2*)
9292 lt_prog_compiler_static='$wl-static'
9293 ;;
9294 esac
9295 ;;
9296
9297 hpux9* | hpux10* | hpux11*)
9298 lt_prog_compiler_wl='-Wl,'
9299 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9300 # not for PA HP-UX.
9301 case $host_cpu in
9302 hppa*64*|ia64*)
9303 # +Z the default
9304 ;;
9305 *)
9306 lt_prog_compiler_pic='+Z'
9307 ;;
9308 esac
9309 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9310 lt_prog_compiler_static='$wl-a ${wl}archive'
9311 ;;
9312
9313 irix5* | irix6* | nonstopux*)
9314 lt_prog_compiler_wl='-Wl,'
9315 # PIC (with -KPIC) is the default.
9316 lt_prog_compiler_static='-non_shared'
9317 ;;
9318
9319 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9320 case $cc_basename in
9321 # old Intel for x86_64, which still supported -KPIC.
9322 ecc*)
9323 lt_prog_compiler_wl='-Wl,'
9324 lt_prog_compiler_pic='-KPIC'
9325 lt_prog_compiler_static='-static'
9326 ;;
9327 # icc used to be incompatible with GCC.
9328 # ICC 10 doesn't accept -KPIC any more.
9329 icc* | ifort*)
9330 lt_prog_compiler_wl='-Wl,'
9331 lt_prog_compiler_pic='-fPIC'
9332 lt_prog_compiler_static='-static'
9333 ;;
9334 # Lahey Fortran 8.1.
9335 lf95*)
9336 lt_prog_compiler_wl='-Wl,'
9337 lt_prog_compiler_pic='--shared'
9338 lt_prog_compiler_static='--static'
9339 ;;
9340 nagfor*)
9341 # NAG Fortran compiler
9342 lt_prog_compiler_wl='-Wl,-Wl,,'
9343 lt_prog_compiler_pic='-PIC'
9344 lt_prog_compiler_static='-Bstatic'
9345 ;;
9346 tcc*)
9347 # Fabrice Bellard et al's Tiny C Compiler
9348 lt_prog_compiler_wl='-Wl,'
9349 lt_prog_compiler_pic='-fPIC'
9350 lt_prog_compiler_static='-static'
9351 ;;
9352 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9353 # Portland Group compilers (*not* the Pentium gcc compiler,
9354 # which looks to be a dead project)
9355 lt_prog_compiler_wl='-Wl,'
9356 lt_prog_compiler_pic='-fpic'
9357 lt_prog_compiler_static='-Bstatic'
9358 ;;
9359 ccc*)
9360 lt_prog_compiler_wl='-Wl,'
9361 # All Alpha code is PIC.
9362 lt_prog_compiler_static='-non_shared'
9363 ;;
9364 xl* | bgxl* | bgf* | mpixl*)
9365 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_pic='-qpic'
9368 lt_prog_compiler_static='-qstaticlink'
9369 ;;
9370 *)
9371 case `$CC -V 2>&1 | $SED 5q` in
9372 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9373 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9374 lt_prog_compiler_pic='-KPIC'
9375 lt_prog_compiler_static='-Bstatic'
9376 lt_prog_compiler_wl=''
9377 ;;
9378 *Sun\ F* | *Sun*Fortran*)
9379 lt_prog_compiler_pic='-KPIC'
9380 lt_prog_compiler_static='-Bstatic'
9381 lt_prog_compiler_wl='-Qoption ld '
9382 ;;
9383 *Sun\ C*)
9384 # Sun C 5.9
9385 lt_prog_compiler_pic='-KPIC'
9386 lt_prog_compiler_static='-Bstatic'
9387 lt_prog_compiler_wl='-Wl,'
9388 ;;
9389 *Intel*\ [CF]*Compiler*)
9390 lt_prog_compiler_wl='-Wl,'
9391 lt_prog_compiler_pic='-fPIC'
9392 lt_prog_compiler_static='-static'
9393 ;;
9394 *Portland\ Group*)
9395 lt_prog_compiler_wl='-Wl,'
9396 lt_prog_compiler_pic='-fpic'
9397 lt_prog_compiler_static='-Bstatic'
9398 ;;
9399 esac
9400 ;;
9401 esac
9402 ;;
9403
9404 newsos6)
9405 lt_prog_compiler_pic='-KPIC'
9406 lt_prog_compiler_static='-Bstatic'
9407 ;;
9408
9409 *nto* | *qnx*)
9410 # QNX uses GNU C++, but need to define -shared option too, otherwise
9411 # it will coredump.
9412 lt_prog_compiler_pic='-fPIC -shared'
9413 ;;
9414
9415 osf3* | osf4* | osf5*)
9416 lt_prog_compiler_wl='-Wl,'
9417 # All OSF/1 code is PIC.
9418 lt_prog_compiler_static='-non_shared'
9419 ;;
9420
9421 rdos*)
9422 lt_prog_compiler_static='-non_shared'
9423 ;;
9424
9425 solaris*)
9426 lt_prog_compiler_pic='-KPIC'
9427 lt_prog_compiler_static='-Bstatic'
9428 case $cc_basename in
9429 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9430 lt_prog_compiler_wl='-Qoption ld ';;
9431 *)
9432 lt_prog_compiler_wl='-Wl,';;
9433 esac
9434 ;;
9435
9436 sunos4*)
9437 lt_prog_compiler_wl='-Qoption ld '
9438 lt_prog_compiler_pic='-PIC'
9439 lt_prog_compiler_static='-Bstatic'
9440 ;;
9441
9442 sysv4 | sysv4.2uw2* | sysv4.3*)
9443 lt_prog_compiler_wl='-Wl,'
9444 lt_prog_compiler_pic='-KPIC'
9445 lt_prog_compiler_static='-Bstatic'
9446 ;;
9447
9448 sysv4*MP*)
9449 if test -d /usr/nec; then
9450 lt_prog_compiler_pic='-Kconform_pic'
9451 lt_prog_compiler_static='-Bstatic'
9452 fi
9453 ;;
9454
9455 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9456 lt_prog_compiler_wl='-Wl,'
9457 lt_prog_compiler_pic='-KPIC'
9458 lt_prog_compiler_static='-Bstatic'
9459 ;;
9460
9461 unicos*)
9462 lt_prog_compiler_wl='-Wl,'
9463 lt_prog_compiler_can_build_shared=no
9464 ;;
9465
9466 uts4*)
9467 lt_prog_compiler_pic='-pic'
9468 lt_prog_compiler_static='-Bstatic'
9469 ;;
9470
9471 *)
9472 lt_prog_compiler_can_build_shared=no
9473 ;;
9474 esac
9475 fi
9476
9477 case $host_os in
9478 # For platforms that do not support PIC, -DPIC is meaningless:
9479 *djgpp*)
9480 lt_prog_compiler_pic=
9481 ;;
9482 *)
9483 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9484 ;;
9485 esac
9486
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9488 printf %s "checking for $compiler option to produce PIC... " >&6; }
9489 if test ${lt_cv_prog_compiler_pic+y}
9490 then :
9491 printf %s "(cached) " >&6
9492 else $as_nop
9493 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9494 fi
9495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9496 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9497 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9498
9499 #
9500 # Check to make sure the PIC flag actually works.
9501 #
9502 if test -n "$lt_prog_compiler_pic"; then
9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9504 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9505 if test ${lt_cv_prog_compiler_pic_works+y}
9506 then :
9507 printf %s "(cached) " >&6
9508 else $as_nop
9509 lt_cv_prog_compiler_pic_works=no
9510 ac_outfile=conftest.$ac_objext
9511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9512 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9513 # Insert the option either (1) after the last *FLAGS variable, or
9514 # (2) before a word containing "conftest.", or (3) at the end.
9515 # Note that $ac_compile itself does not contain backslashes and begins
9516 # with a dollar sign (not a hyphen), so the echo should work correctly.
9517 # The option is referenced via a variable to avoid confusing sed.
9518 lt_compile=`echo "$ac_compile" | $SED \
9519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9521 -e 's:$: $lt_compiler_flag:'`
9522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9523 (eval "$lt_compile" 2>conftest.err)
9524 ac_status=$?
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 if (exit $ac_status) && test -s "$ac_outfile"; then
9528 # The compiler can only warn and ignore the option if not recognized
9529 # So say no if there are warnings other than the usual output.
9530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9532 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9533 lt_cv_prog_compiler_pic_works=yes
9534 fi
9535 fi
9536 $RM conftest*
9537
9538 fi
9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9540 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9541
9542 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9543 case $lt_prog_compiler_pic in
9544 "" | " "*) ;;
9545 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9546 esac
9547 else
9548 lt_prog_compiler_pic=
9549 lt_prog_compiler_can_build_shared=no
9550 fi
9551
9552 fi
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564 #
9565 # Check to make sure the static flag actually works.
9566 #
9567 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9569 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9570 if test ${lt_cv_prog_compiler_static_works+y}
9571 then :
9572 printf %s "(cached) " >&6
9573 else $as_nop
9574 lt_cv_prog_compiler_static_works=no
9575 save_LDFLAGS=$LDFLAGS
9576 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9577 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9579 # The linker can only warn and ignore the option if not recognized
9580 # So say no if there are warnings
9581 if test -s conftest.err; then
9582 # Append any errors to the config.log.
9583 cat conftest.err 1>&5
9584 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9586 if diff conftest.exp conftest.er2 >/dev/null; then
9587 lt_cv_prog_compiler_static_works=yes
9588 fi
9589 else
9590 lt_cv_prog_compiler_static_works=yes
9591 fi
9592 fi
9593 $RM -r conftest*
9594 LDFLAGS=$save_LDFLAGS
9595
9596 fi
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9598 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9599
9600 if test yes = "$lt_cv_prog_compiler_static_works"; then
9601 :
9602 else
9603 lt_prog_compiler_static=
9604 fi
9605
9606
9607
9608
9609
9610
9611
9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9613 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9614 if test ${lt_cv_prog_compiler_c_o+y}
9615 then :
9616 printf %s "(cached) " >&6
9617 else $as_nop
9618 lt_cv_prog_compiler_c_o=no
9619 $RM -r conftest 2>/dev/null
9620 mkdir conftest
9621 cd conftest
9622 mkdir out
9623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9624
9625 lt_compiler_flag="-o out/conftest2.$ac_objext"
9626 # Insert the option either (1) after the last *FLAGS variable, or
9627 # (2) before a word containing "conftest.", or (3) at the end.
9628 # Note that $ac_compile itself does not contain backslashes and begins
9629 # with a dollar sign (not a hyphen), so the echo should work correctly.
9630 lt_compile=`echo "$ac_compile" | $SED \
9631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9633 -e 's:$: $lt_compiler_flag:'`
9634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9635 (eval "$lt_compile" 2>out/conftest.err)
9636 ac_status=$?
9637 cat out/conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9640 then
9641 # The compiler can only warn and ignore the option if not recognized
9642 # So say no if there are warnings
9643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9646 lt_cv_prog_compiler_c_o=yes
9647 fi
9648 fi
9649 chmod u+w . 2>&5
9650 $RM conftest*
9651 # SGI C++ compiler will create directory out/ii_files/ for
9652 # template instantiation
9653 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9654 $RM out/* && rmdir out
9655 cd ..
9656 $RM -r conftest
9657 $RM conftest*
9658
9659 fi
9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9661 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9662
9663
9664
9665
9666
9667
9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9669 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9670 if test ${lt_cv_prog_compiler_c_o+y}
9671 then :
9672 printf %s "(cached) " >&6
9673 else $as_nop
9674 lt_cv_prog_compiler_c_o=no
9675 $RM -r conftest 2>/dev/null
9676 mkdir conftest
9677 cd conftest
9678 mkdir out
9679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9680
9681 lt_compiler_flag="-o out/conftest2.$ac_objext"
9682 # Insert the option either (1) after the last *FLAGS variable, or
9683 # (2) before a word containing "conftest.", or (3) at the end.
9684 # Note that $ac_compile itself does not contain backslashes and begins
9685 # with a dollar sign (not a hyphen), so the echo should work correctly.
9686 lt_compile=`echo "$ac_compile" | $SED \
9687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9689 -e 's:$: $lt_compiler_flag:'`
9690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9691 (eval "$lt_compile" 2>out/conftest.err)
9692 ac_status=$?
9693 cat out/conftest.err >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9696 then
9697 # The compiler can only warn and ignore the option if not recognized
9698 # So say no if there are warnings
9699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9702 lt_cv_prog_compiler_c_o=yes
9703 fi
9704 fi
9705 chmod u+w . 2>&5
9706 $RM conftest*
9707 # SGI C++ compiler will create directory out/ii_files/ for
9708 # template instantiation
9709 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9710 $RM out/* && rmdir out
9711 cd ..
9712 $RM -r conftest
9713 $RM conftest*
9714
9715 fi
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9717 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9718
9719
9720
9721
9722 hard_links=nottested
9723 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9724 # do not overwrite the value of need_locks provided by the user
9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9726 printf %s "checking if we can lock with hard links... " >&6; }
9727 hard_links=yes
9728 $RM conftest*
9729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9730 touch conftest.a
9731 ln conftest.a conftest.b 2>&5 || hard_links=no
9732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9734 printf "%s\n" "$hard_links" >&6; }
9735 if test no = "$hard_links"; then
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9737 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9738 need_locks=warn
9739 fi
9740 else
9741 need_locks=no
9742 fi
9743
9744
9745
9746
9747
9748
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9750 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9751
9752 runpath_var=
9753 allow_undefined_flag=
9754 always_export_symbols=no
9755 archive_cmds=
9756 archive_expsym_cmds=
9757 compiler_needs_object=no
9758 enable_shared_with_static_runtimes=no
9759 export_dynamic_flag_spec=
9760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9761 hardcode_automatic=no
9762 hardcode_direct=no
9763 hardcode_direct_absolute=no
9764 hardcode_libdir_flag_spec=
9765 hardcode_libdir_separator=
9766 hardcode_minus_L=no
9767 hardcode_shlibpath_var=unsupported
9768 inherit_rpath=no
9769 link_all_deplibs=unknown
9770 module_cmds=
9771 module_expsym_cmds=
9772 old_archive_from_new_cmds=
9773 old_archive_from_expsyms_cmds=
9774 thread_safe_flag_spec=
9775 whole_archive_flag_spec=
9776 # include_expsyms should be a list of space-separated symbols to be *always*
9777 # included in the symbol list
9778 include_expsyms=
9779 # exclude_expsyms can be an extended regexp of symbols to exclude
9780 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9781 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9782 # as well as any symbol that contains 'd'.
9783 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9784 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9785 # platforms (ab)use it in PIC code, but their linkers get confused if
9786 # the symbol is explicitly referenced. Since portable code cannot
9787 # rely on this symbol name, it's probably fine to never include it in
9788 # preloaded symbol tables.
9789 # Exclude shared library initialization/finalization symbols.
9790 extract_expsyms_cmds=
9791
9792 case $host_os in
9793 cygwin* | mingw* | pw32* | cegcc*)
9794 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9795 # When not using gcc, we currently assume that we are using
9796 # Microsoft Visual C++ or Intel C++ Compiler.
9797 if test yes != "$GCC"; then
9798 with_gnu_ld=no
9799 fi
9800 ;;
9801 interix*)
9802 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9803 with_gnu_ld=yes
9804 ;;
9805 openbsd* | bitrig*)
9806 with_gnu_ld=no
9807 ;;
9808 esac
9809
9810 ld_shlibs=yes
9811
9812 # On some targets, GNU ld is compatible enough with the native linker
9813 # that we're better off using the native interface for both.
9814 lt_use_gnu_ld_interface=no
9815 if test yes = "$with_gnu_ld"; then
9816 case $host_os in
9817 aix*)
9818 # The AIX port of GNU ld has always aspired to compatibility
9819 # with the native linker. However, as the warning in the GNU ld
9820 # block says, versions before 2.19.5* couldn't really create working
9821 # shared libraries, regardless of the interface used.
9822 case `$LD -v 2>&1` in
9823 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9824 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9825 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9826 *)
9827 lt_use_gnu_ld_interface=yes
9828 ;;
9829 esac
9830 ;;
9831 *)
9832 lt_use_gnu_ld_interface=yes
9833 ;;
9834 esac
9835 fi
9836
9837 if test yes = "$lt_use_gnu_ld_interface"; then
9838 # If archive_cmds runs LD, not CC, wlarc should be empty
9839 wlarc='$wl'
9840
9841 # Set some defaults for GNU ld with shared library support. These
9842 # are reset later if shared libraries are not supported. Putting them
9843 # here allows them to be overridden if necessary.
9844 runpath_var=LD_RUN_PATH
9845 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9846 export_dynamic_flag_spec='$wl--export-dynamic'
9847 # ancient GNU ld didn't support --whole-archive et. al.
9848 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9849 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9850 else
9851 whole_archive_flag_spec=
9852 fi
9853 supports_anon_versioning=no
9854 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9855 *GNU\ gold*) supports_anon_versioning=yes ;;
9856 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9857 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9858 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9859 *\ 2.11.*) ;; # other 2.11 versions
9860 *) supports_anon_versioning=yes ;;
9861 esac
9862
9863 # See if GNU ld supports shared libraries.
9864 case $host_os in
9865 aix[3-9]*)
9866 # On AIX/PPC, the GNU linker is very broken
9867 if test ia64 != "$host_cpu"; then
9868 ld_shlibs=no
9869 cat <<_LT_EOF 1>&2
9870
9871 *** Warning: the GNU linker, at least up to release 2.19, is reported
9872 *** to be unable to reliably create shared libraries on AIX.
9873 *** Therefore, libtool is disabling shared libraries support. If you
9874 *** really care for shared libraries, you may want to install binutils
9875 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9876 *** You will then need to restart the configuration process.
9877
9878 _LT_EOF
9879 fi
9880 ;;
9881
9882 amigaos*)
9883 case $host_cpu in
9884 powerpc)
9885 # see comment about AmigaOS4 .so support
9886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9887 archive_expsym_cmds=''
9888 ;;
9889 m68k)
9890 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)'
9891 hardcode_libdir_flag_spec='-L$libdir'
9892 hardcode_minus_L=yes
9893 ;;
9894 esac
9895 ;;
9896
9897 beos*)
9898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9899 allow_undefined_flag=unsupported
9900 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9901 # support --undefined. This deserves some investigation. FIXME
9902 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9903 else
9904 ld_shlibs=no
9905 fi
9906 ;;
9907
9908 cygwin* | mingw* | pw32* | cegcc*)
9909 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9910 # as there is no search path for DLLs.
9911 hardcode_libdir_flag_spec='-L$libdir'
9912 export_dynamic_flag_spec='$wl--export-all-symbols'
9913 allow_undefined_flag=unsupported
9914 always_export_symbols=no
9915 enable_shared_with_static_runtimes=yes
9916 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'
9917 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9918
9919 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9921 # If the export-symbols file already is a .def file, use it as
9922 # is; otherwise, prepend EXPORTS...
9923 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9924 cp $export_symbols $output_objdir/$soname.def;
9925 else
9926 echo EXPORTS > $output_objdir/$soname.def;
9927 cat $export_symbols >> $output_objdir/$soname.def;
9928 fi~
9929 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9930 else
9931 ld_shlibs=no
9932 fi
9933 ;;
9934
9935 haiku*)
9936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9937 link_all_deplibs=yes
9938 ;;
9939
9940 os2*)
9941 hardcode_libdir_flag_spec='-L$libdir'
9942 hardcode_minus_L=yes
9943 allow_undefined_flag=unsupported
9944 shrext_cmds=.dll
9945 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9946 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9947 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9948 $ECHO EXPORTS >> $output_objdir/$libname.def~
9949 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9950 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9951 emximp -o $lib $output_objdir/$libname.def'
9952 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9953 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9954 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9955 $ECHO EXPORTS >> $output_objdir/$libname.def~
9956 prefix_cmds="$SED"~
9957 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9958 prefix_cmds="$prefix_cmds -e 1d";
9959 fi~
9960 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9961 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9962 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9963 emximp -o $lib $output_objdir/$libname.def'
9964 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9965 enable_shared_with_static_runtimes=yes
9966 file_list_spec='@'
9967 ;;
9968
9969 interix[3-9]*)
9970 hardcode_direct=no
9971 hardcode_shlibpath_var=no
9972 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9973 export_dynamic_flag_spec='$wl-E'
9974 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9975 # Instead, shared libraries are loaded at an image base (0x10000000 by
9976 # default) and relocated if they conflict, which is a slow very memory
9977 # consuming and fragmenting process. To avoid this, we pick a random,
9978 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9979 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9981 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'
9982 ;;
9983
9984 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9985 tmp_diet=no
9986 if test linux-dietlibc = "$host_os"; then
9987 case $cc_basename in
9988 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9989 esac
9990 fi
9991 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9992 && test no = "$tmp_diet"
9993 then
9994 tmp_addflag=' $pic_flag'
9995 tmp_sharedflag='-shared'
9996 case $cc_basename,$host_cpu in
9997 pgcc*) # Portland Group C compiler
9998 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'
9999 tmp_addflag=' $pic_flag'
10000 ;;
10001 pgf77* | pgf90* | pgf95* | pgfortran*)
10002 # Portland Group f77 and f90 compilers
10003 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'
10004 tmp_addflag=' $pic_flag -Mnomain' ;;
10005 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10006 tmp_addflag=' -i_dynamic' ;;
10007 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10008 tmp_addflag=' -i_dynamic -nofor_main' ;;
10009 ifc* | ifort*) # Intel Fortran compiler
10010 tmp_addflag=' -nofor_main' ;;
10011 lf95*) # Lahey Fortran 8.1
10012 whole_archive_flag_spec=
10013 tmp_sharedflag='--shared' ;;
10014 nagfor*) # NAGFOR 5.3
10015 tmp_sharedflag='-Wl,-shared' ;;
10016 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10017 tmp_sharedflag='-qmkshrobj'
10018 tmp_addflag= ;;
10019 nvcc*) # Cuda Compiler Driver 2.2
10020 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'
10021 compiler_needs_object=yes
10022 ;;
10023 esac
10024 case `$CC -V 2>&1 | $SED 5q` in
10025 *Sun\ C*) # Sun C 5.9
10026 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'
10027 compiler_needs_object=yes
10028 tmp_sharedflag='-G' ;;
10029 *Sun\ F*) # Sun Fortran 8.3
10030 tmp_sharedflag='-G' ;;
10031 esac
10032 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10033
10034 if test yes = "$supports_anon_versioning"; then
10035 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10036 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10037 echo "local: *; };" >> $output_objdir/$libname.ver~
10038 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10039 fi
10040
10041 case $cc_basename in
10042 tcc*)
10043 export_dynamic_flag_spec='-rdynamic'
10044 ;;
10045 xlf* | bgf* | bgxlf* | mpixlf*)
10046 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10047 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10048 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10049 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10050 if test yes = "$supports_anon_versioning"; then
10051 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10052 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10053 echo "local: *; };" >> $output_objdir/$libname.ver~
10054 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10055 fi
10056 ;;
10057 esac
10058 else
10059 ld_shlibs=no
10060 fi
10061 ;;
10062
10063 netbsd*)
10064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10065 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10066 wlarc=
10067 else
10068 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10069 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10070 fi
10071 ;;
10072
10073 solaris*)
10074 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10075 ld_shlibs=no
10076 cat <<_LT_EOF 1>&2
10077
10078 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10079 *** create shared libraries on Solaris systems. Therefore, libtool
10080 *** is disabling shared libraries support. We urge you to upgrade GNU
10081 *** binutils to release 2.9.1 or newer. Another option is to modify
10082 *** your PATH or compiler configuration so that the native linker is
10083 *** used, and then restart.
10084
10085 _LT_EOF
10086 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10087 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10088 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10089 else
10090 ld_shlibs=no
10091 fi
10092 ;;
10093
10094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10095 case `$LD -v 2>&1` in
10096 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10097 ld_shlibs=no
10098 cat <<_LT_EOF 1>&2
10099
10100 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10101 *** reliably create shared libraries on SCO systems. Therefore, libtool
10102 *** is disabling shared libraries support. We urge you to upgrade GNU
10103 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10104 *** your PATH or compiler configuration so that the native linker is
10105 *** used, and then restart.
10106
10107 _LT_EOF
10108 ;;
10109 *)
10110 # For security reasons, it is highly recommended that you always
10111 # use absolute paths for naming shared libraries, and exclude the
10112 # DT_RUNPATH tag from executables and libraries. But doing so
10113 # requires that you compile everything twice, which is a pain.
10114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10115 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10117 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10118 else
10119 ld_shlibs=no
10120 fi
10121 ;;
10122 esac
10123 ;;
10124
10125 sunos4*)
10126 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10127 wlarc=
10128 hardcode_direct=yes
10129 hardcode_shlibpath_var=no
10130 ;;
10131
10132 *)
10133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10135 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10136 else
10137 ld_shlibs=no
10138 fi
10139 ;;
10140 esac
10141
10142 if test no = "$ld_shlibs"; then
10143 runpath_var=
10144 hardcode_libdir_flag_spec=
10145 export_dynamic_flag_spec=
10146 whole_archive_flag_spec=
10147 fi
10148 else
10149 # PORTME fill in a description of your system's linker (not GNU ld)
10150 case $host_os in
10151 aix3*)
10152 allow_undefined_flag=unsupported
10153 always_export_symbols=yes
10154 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'
10155 # Note: this linker hardcodes the directories in LIBPATH if there
10156 # are no directories specified by -L.
10157 hardcode_minus_L=yes
10158 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10159 # Neither direct hardcoding nor static linking is supported with a
10160 # broken collect2.
10161 hardcode_direct=unsupported
10162 fi
10163 ;;
10164
10165 aix[4-9]*)
10166 if test ia64 = "$host_cpu"; then
10167 # On IA64, the linker does run time linking by default, so we don't
10168 # have to do anything special.
10169 aix_use_runtimelinking=no
10170 exp_sym_flag='-Bexport'
10171 no_entry_flag=
10172 else
10173 # If we're using GNU nm, then we don't want the "-C" option.
10174 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10175 # Without the "-l" option, or with the "-B" option, AIX nm treats
10176 # weak defined symbols like other global defined symbols, whereas
10177 # GNU nm marks them as "W".
10178 # While the 'weak' keyword is ignored in the Export File, we need
10179 # it in the Import File for the 'aix-soname' feature, so we have
10180 # to replace the "-B" option with "-P" for AIX nm.
10181 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10182 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'
10183 else
10184 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'
10185 fi
10186 aix_use_runtimelinking=no
10187
10188 # Test if we are trying to use run time linking or normal
10189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10190 # have runtime linking enabled, and use it for executables.
10191 # For shared libraries, we enable/disable runtime linking
10192 # depending on the kind of the shared library created -
10193 # when "with_aix_soname,aix_use_runtimelinking" is:
10194 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10195 # "aix,yes" lib.so shared, rtl:yes, for executables
10196 # lib.a static archive
10197 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10198 # lib.a(lib.so.V) shared, rtl:no, for executables
10199 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10200 # lib.a(lib.so.V) shared, rtl:no
10201 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10202 # lib.a static archive
10203 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10204 for ld_flag in $LDFLAGS; do
10205 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10206 aix_use_runtimelinking=yes
10207 break
10208 fi
10209 done
10210 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10211 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10212 # so we don't have lib.a shared libs to link our executables.
10213 # We have to force runtime linking in this case.
10214 aix_use_runtimelinking=yes
10215 LDFLAGS="$LDFLAGS -Wl,-brtl"
10216 fi
10217 ;;
10218 esac
10219
10220 exp_sym_flag='-bexport'
10221 no_entry_flag='-bnoentry'
10222 fi
10223
10224 # When large executables or shared objects are built, AIX ld can
10225 # have problems creating the table of contents. If linking a library
10226 # or program results in "error TOC overflow" add -mminimal-toc to
10227 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10228 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10229
10230 archive_cmds=''
10231 hardcode_direct=yes
10232 hardcode_direct_absolute=yes
10233 hardcode_libdir_separator=':'
10234 link_all_deplibs=yes
10235 file_list_spec='$wl-f,'
10236 case $with_aix_soname,$aix_use_runtimelinking in
10237 aix,*) ;; # traditional, no import file
10238 svr4,* | *,yes) # use import file
10239 # The Import File defines what to hardcode.
10240 hardcode_direct=no
10241 hardcode_direct_absolute=no
10242 ;;
10243 esac
10244
10245 if test yes = "$GCC"; then
10246 case $host_os in aix4.[012]|aix4.[012].*)
10247 # We only want to do this on AIX 4.2 and lower, the check
10248 # below for broken collect2 doesn't work under 4.3+
10249 collect2name=`$CC -print-prog-name=collect2`
10250 if test -f "$collect2name" &&
10251 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10252 then
10253 # We have reworked collect2
10254 :
10255 else
10256 # We have old collect2
10257 hardcode_direct=unsupported
10258 # It fails to find uninstalled libraries when the uninstalled
10259 # path is not listed in the libpath. Setting hardcode_minus_L
10260 # to unsupported forces relinking
10261 hardcode_minus_L=yes
10262 hardcode_libdir_flag_spec='-L$libdir'
10263 hardcode_libdir_separator=
10264 fi
10265 ;;
10266 esac
10267 shared_flag='-shared'
10268 if test yes = "$aix_use_runtimelinking"; then
10269 shared_flag="$shared_flag "'$wl-G'
10270 fi
10271 # Need to ensure runtime linking is disabled for the traditional
10272 # shared library, or the linker may eventually find shared libraries
10273 # /with/ Import File - we do not want to mix them.
10274 shared_flag_aix='-shared'
10275 shared_flag_svr4='-shared $wl-G'
10276 else
10277 # not using gcc
10278 if test ia64 = "$host_cpu"; then
10279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10280 # chokes on -Wl,-G. The following line is correct:
10281 shared_flag='-G'
10282 else
10283 if test yes = "$aix_use_runtimelinking"; then
10284 shared_flag='$wl-G'
10285 else
10286 shared_flag='$wl-bM:SRE'
10287 fi
10288 shared_flag_aix='$wl-bM:SRE'
10289 shared_flag_svr4='$wl-G'
10290 fi
10291 fi
10292
10293 export_dynamic_flag_spec='$wl-bexpall'
10294 # It seems that -bexpall does not export symbols beginning with
10295 # underscore (_), so it is better to generate a list of symbols to export.
10296 always_export_symbols=yes
10297 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10298 # Warning - without using the other runtime loading flags (-brtl),
10299 # -berok will link without error, but may produce a broken library.
10300 allow_undefined_flag='-berok'
10301 # Determine the default libpath from the value encoded in an
10302 # empty executable.
10303 if test set = "${lt_cv_aix_libpath+set}"; then
10304 aix_libpath=$lt_cv_aix_libpath
10305 else
10306 if test ${lt_cv_aix_libpath_+y}
10307 then :
10308 printf %s "(cached) " >&6
10309 else $as_nop
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10312
10313 int
10314 main (void)
10315 {
10316
10317 ;
10318 return 0;
10319 }
10320 _ACEOF
10321 if ac_fn_c_try_link "$LINENO"
10322 then :
10323
10324 lt_aix_libpath_sed='
10325 /Import File Strings/,/^$/ {
10326 /^0/ {
10327 s/^0 *\([^ ]*\) *$/\1/
10328 p
10329 }
10330 }'
10331 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10332 # Check for a 64-bit object if we didn't find anything.
10333 if test -z "$lt_cv_aix_libpath_"; then
10334 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10335 fi
10336 fi
10337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10338 conftest$ac_exeext conftest.$ac_ext
10339 if test -z "$lt_cv_aix_libpath_"; then
10340 lt_cv_aix_libpath_=/usr/lib:/lib
10341 fi
10342
10343 fi
10344
10345 aix_libpath=$lt_cv_aix_libpath_
10346 fi
10347
10348 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10349 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
10350 else
10351 if test ia64 = "$host_cpu"; then
10352 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10353 allow_undefined_flag="-z nodefs"
10354 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"
10355 else
10356 # Determine the default libpath from the value encoded in an
10357 # empty executable.
10358 if test set = "${lt_cv_aix_libpath+set}"; then
10359 aix_libpath=$lt_cv_aix_libpath
10360 else
10361 if test ${lt_cv_aix_libpath_+y}
10362 then :
10363 printf %s "(cached) " >&6
10364 else $as_nop
10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10367
10368 int
10369 main (void)
10370 {
10371
10372 ;
10373 return 0;
10374 }
10375 _ACEOF
10376 if ac_fn_c_try_link "$LINENO"
10377 then :
10378
10379 lt_aix_libpath_sed='
10380 /Import File Strings/,/^$/ {
10381 /^0/ {
10382 s/^0 *\([^ ]*\) *$/\1/
10383 p
10384 }
10385 }'
10386 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10387 # Check for a 64-bit object if we didn't find anything.
10388 if test -z "$lt_cv_aix_libpath_"; then
10389 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10390 fi
10391 fi
10392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10393 conftest$ac_exeext conftest.$ac_ext
10394 if test -z "$lt_cv_aix_libpath_"; then
10395 lt_cv_aix_libpath_=/usr/lib:/lib
10396 fi
10397
10398 fi
10399
10400 aix_libpath=$lt_cv_aix_libpath_
10401 fi
10402
10403 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10404 # Warning - without using the other run time loading flags,
10405 # -berok will link without error, but may produce a broken library.
10406 no_undefined_flag=' $wl-bernotok'
10407 allow_undefined_flag=' $wl-berok'
10408 if test yes = "$with_gnu_ld"; then
10409 # We only use this code for GNU lds that support --whole-archive.
10410 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10411 else
10412 # Exported symbols can be pulled into shared objects from archives
10413 whole_archive_flag_spec='$convenience'
10414 fi
10415 archive_cmds_need_lc=yes
10416 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10417 # -brtl affects multiple linker settings, -berok does not and is overridden later
10418 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10419 if test svr4 != "$with_aix_soname"; then
10420 # This is similar to how AIX traditionally builds its shared libraries.
10421 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'
10422 fi
10423 if test aix != "$with_aix_soname"; then
10424 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'
10425 else
10426 # used by -dlpreopen to get the symbols
10427 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10428 fi
10429 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10430 fi
10431 fi
10432 ;;
10433
10434 amigaos*)
10435 case $host_cpu in
10436 powerpc)
10437 # see comment about AmigaOS4 .so support
10438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10439 archive_expsym_cmds=''
10440 ;;
10441 m68k)
10442 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)'
10443 hardcode_libdir_flag_spec='-L$libdir'
10444 hardcode_minus_L=yes
10445 ;;
10446 esac
10447 ;;
10448
10449 bsdi[45]*)
10450 export_dynamic_flag_spec=-rdynamic
10451 ;;
10452
10453 cygwin* | mingw* | pw32* | cegcc*)
10454 # When not using gcc, we currently assume that we are using
10455 # Microsoft Visual C++ or Intel C++ Compiler.
10456 # hardcode_libdir_flag_spec is actually meaningless, as there is
10457 # no search path for DLLs.
10458 case $cc_basename in
10459 cl* | icl*)
10460 # Native MSVC or ICC
10461 hardcode_libdir_flag_spec=' '
10462 allow_undefined_flag=unsupported
10463 always_export_symbols=yes
10464 file_list_spec='@'
10465 # Tell ltmain to make .lib files, not .a files.
10466 libext=lib
10467 # Tell ltmain to make .dll files, not .so files.
10468 shrext_cmds=.dll
10469 # FIXME: Setting linknames here is a bad hack.
10470 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10471 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10472 cp "$export_symbols" "$output_objdir/$soname.def";
10473 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10474 else
10475 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10476 fi~
10477 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10478 linknames='
10479 # The linker will not automatically build a static lib if we build a DLL.
10480 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10481 enable_shared_with_static_runtimes=yes
10482 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10483 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10484 # Don't use ranlib
10485 old_postinstall_cmds='chmod 644 $oldlib'
10486 postlink_cmds='lt_outputfile="@OUTPUT@"~
10487 lt_tool_outputfile="@TOOL_OUTPUT@"~
10488 case $lt_outputfile in
10489 *.exe|*.EXE) ;;
10490 *)
10491 lt_outputfile=$lt_outputfile.exe
10492 lt_tool_outputfile=$lt_tool_outputfile.exe
10493 ;;
10494 esac~
10495 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10496 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10497 $RM "$lt_outputfile.manifest";
10498 fi'
10499 ;;
10500 *)
10501 # Assume MSVC and ICC wrapper
10502 hardcode_libdir_flag_spec=' '
10503 allow_undefined_flag=unsupported
10504 # Tell ltmain to make .lib files, not .a files.
10505 libext=lib
10506 # Tell ltmain to make .dll files, not .so files.
10507 shrext_cmds=.dll
10508 # FIXME: Setting linknames here is a bad hack.
10509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10510 # The linker will automatically build a .lib file if we build a DLL.
10511 old_archive_from_new_cmds='true'
10512 # FIXME: Should let the user specify the lib program.
10513 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10514 enable_shared_with_static_runtimes=yes
10515 ;;
10516 esac
10517 ;;
10518
10519 darwin* | rhapsody*)
10520
10521
10522 archive_cmds_need_lc=no
10523 hardcode_direct=no
10524 hardcode_automatic=yes
10525 hardcode_shlibpath_var=unsupported
10526 if test yes = "$lt_cv_ld_force_load"; then
10527 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\"`'
10528
10529 else
10530 whole_archive_flag_spec=''
10531 fi
10532 link_all_deplibs=yes
10533 allow_undefined_flag=$_lt_dar_allow_undefined
10534 case $cc_basename in
10535 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10536 *) _lt_dar_can_shared=$GCC ;;
10537 esac
10538 if test yes = "$_lt_dar_can_shared"; then
10539 output_verbose_link_cmd=func_echo_all
10540 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10541 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10542 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"
10543 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"
10544
10545 else
10546 ld_shlibs=no
10547 fi
10548
10549 ;;
10550
10551 dgux*)
10552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_libdir_flag_spec='-L$libdir'
10554 hardcode_shlibpath_var=no
10555 ;;
10556
10557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10558 # support. Future versions do this automatically, but an explicit c++rt0.o
10559 # does not break anything, and helps significantly (at the cost of a little
10560 # extra space).
10561 freebsd2.2*)
10562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10563 hardcode_libdir_flag_spec='-R$libdir'
10564 hardcode_direct=yes
10565 hardcode_shlibpath_var=no
10566 ;;
10567
10568 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10569 freebsd2.*)
10570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10571 hardcode_direct=yes
10572 hardcode_minus_L=yes
10573 hardcode_shlibpath_var=no
10574 ;;
10575
10576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10577 freebsd* | dragonfly* | midnightbsd*)
10578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10579 hardcode_libdir_flag_spec='-R$libdir'
10580 hardcode_direct=yes
10581 hardcode_shlibpath_var=no
10582 ;;
10583
10584 hpux9*)
10585 if test yes = "$GCC"; then
10586 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'
10587 else
10588 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'
10589 fi
10590 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10591 hardcode_libdir_separator=:
10592 hardcode_direct=yes
10593
10594 # hardcode_minus_L: Not really in the search PATH,
10595 # but as the default location of the library.
10596 hardcode_minus_L=yes
10597 export_dynamic_flag_spec='$wl-E'
10598 ;;
10599
10600 hpux10*)
10601 if test yes,no = "$GCC,$with_gnu_ld"; then
10602 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10603 else
10604 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10605 fi
10606 if test no = "$with_gnu_ld"; then
10607 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10608 hardcode_libdir_separator=:
10609 hardcode_direct=yes
10610 hardcode_direct_absolute=yes
10611 export_dynamic_flag_spec='$wl-E'
10612 # hardcode_minus_L: Not really in the search PATH,
10613 # but as the default location of the library.
10614 hardcode_minus_L=yes
10615 fi
10616 ;;
10617
10618 hpux11*)
10619 if test yes,no = "$GCC,$with_gnu_ld"; then
10620 case $host_cpu in
10621 hppa*64*)
10622 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10623 ;;
10624 ia64*)
10625 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10626 ;;
10627 *)
10628 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10629 ;;
10630 esac
10631 else
10632 case $host_cpu in
10633 hppa*64*)
10634 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10635 ;;
10636 ia64*)
10637 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10638 ;;
10639 *)
10640
10641 # Older versions of the 11.00 compiler do not understand -b yet
10642 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10644 printf %s "checking if $CC understands -b... " >&6; }
10645 if test ${lt_cv_prog_compiler__b+y}
10646 then :
10647 printf %s "(cached) " >&6
10648 else $as_nop
10649 lt_cv_prog_compiler__b=no
10650 save_LDFLAGS=$LDFLAGS
10651 LDFLAGS="$LDFLAGS -b"
10652 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10654 # The linker can only warn and ignore the option if not recognized
10655 # So say no if there are warnings
10656 if test -s conftest.err; then
10657 # Append any errors to the config.log.
10658 cat conftest.err 1>&5
10659 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10661 if diff conftest.exp conftest.er2 >/dev/null; then
10662 lt_cv_prog_compiler__b=yes
10663 fi
10664 else
10665 lt_cv_prog_compiler__b=yes
10666 fi
10667 fi
10668 $RM -r conftest*
10669 LDFLAGS=$save_LDFLAGS
10670
10671 fi
10672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10673 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10674
10675 if test yes = "$lt_cv_prog_compiler__b"; then
10676 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10677 else
10678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10679 fi
10680
10681 ;;
10682 esac
10683 fi
10684 if test no = "$with_gnu_ld"; then
10685 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10686 hardcode_libdir_separator=:
10687
10688 case $host_cpu in
10689 hppa*64*|ia64*)
10690 hardcode_direct=no
10691 hardcode_shlibpath_var=no
10692 ;;
10693 *)
10694 hardcode_direct=yes
10695 hardcode_direct_absolute=yes
10696 export_dynamic_flag_spec='$wl-E'
10697
10698 # hardcode_minus_L: Not really in the search PATH,
10699 # but as the default location of the library.
10700 hardcode_minus_L=yes
10701 ;;
10702 esac
10703 fi
10704 ;;
10705
10706 irix5* | irix6* | nonstopux*)
10707 if test yes = "$GCC"; then
10708 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'
10709 # Try to use the -exported_symbol ld option, if it does not
10710 # work, assume that -exports_file does not work either and
10711 # implicitly export all symbols.
10712 # This should be the same for all languages, so no per-tag cache variable.
10713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10714 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10715 if test ${lt_cv_irix_exported_symbol+y}
10716 then :
10717 printf %s "(cached) " >&6
10718 else $as_nop
10719 save_LDFLAGS=$LDFLAGS
10720 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723 int foo (void) { return 0; }
10724 _ACEOF
10725 if ac_fn_c_try_link "$LINENO"
10726 then :
10727 lt_cv_irix_exported_symbol=yes
10728 else $as_nop
10729 lt_cv_irix_exported_symbol=no
10730 fi
10731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10732 conftest$ac_exeext conftest.$ac_ext
10733 LDFLAGS=$save_LDFLAGS
10734 fi
10735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10736 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10737 if test yes = "$lt_cv_irix_exported_symbol"; then
10738 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'
10739 fi
10740 else
10741 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'
10742 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'
10743 fi
10744 archive_cmds_need_lc='no'
10745 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10746 hardcode_libdir_separator=:
10747 inherit_rpath=yes
10748 link_all_deplibs=yes
10749 ;;
10750
10751 linux*)
10752 case $cc_basename in
10753 tcc*)
10754 # Fabrice Bellard et al's Tiny C Compiler
10755 ld_shlibs=yes
10756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10757 ;;
10758 esac
10759 ;;
10760
10761 netbsd*)
10762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10764 else
10765 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10766 fi
10767 hardcode_libdir_flag_spec='-R$libdir'
10768 hardcode_direct=yes
10769 hardcode_shlibpath_var=no
10770 ;;
10771
10772 newsos6)
10773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10774 hardcode_direct=yes
10775 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10776 hardcode_libdir_separator=:
10777 hardcode_shlibpath_var=no
10778 ;;
10779
10780 *nto* | *qnx*)
10781 ;;
10782
10783 openbsd* | bitrig*)
10784 if test -f /usr/libexec/ld.so; then
10785 hardcode_direct=yes
10786 hardcode_shlibpath_var=no
10787 hardcode_direct_absolute=yes
10788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10790 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10791 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10792 export_dynamic_flag_spec='$wl-E'
10793 else
10794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10795 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10796 fi
10797 else
10798 ld_shlibs=no
10799 fi
10800 ;;
10801
10802 os2*)
10803 hardcode_libdir_flag_spec='-L$libdir'
10804 hardcode_minus_L=yes
10805 allow_undefined_flag=unsupported
10806 shrext_cmds=.dll
10807 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10808 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10809 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10810 $ECHO EXPORTS >> $output_objdir/$libname.def~
10811 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10812 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10813 emximp -o $lib $output_objdir/$libname.def'
10814 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10815 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10816 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10817 $ECHO EXPORTS >> $output_objdir/$libname.def~
10818 prefix_cmds="$SED"~
10819 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10820 prefix_cmds="$prefix_cmds -e 1d";
10821 fi~
10822 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10823 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10824 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10825 emximp -o $lib $output_objdir/$libname.def'
10826 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10827 enable_shared_with_static_runtimes=yes
10828 file_list_spec='@'
10829 ;;
10830
10831 osf3*)
10832 if test yes = "$GCC"; then
10833 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10834 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'
10835 else
10836 allow_undefined_flag=' -expect_unresolved \*'
10837 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'
10838 fi
10839 archive_cmds_need_lc='no'
10840 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10841 hardcode_libdir_separator=:
10842 ;;
10843
10844 osf4* | osf5*) # as osf3* with the addition of -msym flag
10845 if test yes = "$GCC"; then
10846 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10847 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'
10848 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10849 else
10850 allow_undefined_flag=' -expect_unresolved \*'
10851 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'
10852 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~
10853 $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'
10854
10855 # Both c and cxx compiler support -rpath directly
10856 hardcode_libdir_flag_spec='-rpath $libdir'
10857 fi
10858 archive_cmds_need_lc='no'
10859 hardcode_libdir_separator=:
10860 ;;
10861
10862 solaris*)
10863 no_undefined_flag=' -z defs'
10864 if test yes = "$GCC"; then
10865 wlarc='$wl'
10866 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10867 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10868 $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'
10869 else
10870 case `$CC -V 2>&1` in
10871 *"Compilers 5.0"*)
10872 wlarc=''
10873 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10874 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10875 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10876 ;;
10877 *)
10878 wlarc='$wl'
10879 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10881 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10882 ;;
10883 esac
10884 fi
10885 hardcode_libdir_flag_spec='-R$libdir'
10886 hardcode_shlibpath_var=no
10887 case $host_os in
10888 solaris2.[0-5] | solaris2.[0-5].*) ;;
10889 *)
10890 # The compiler driver will combine and reorder linker options,
10891 # but understands '-z linker_flag'. GCC discards it without '$wl',
10892 # but is careful enough not to reorder.
10893 # Supported since Solaris 2.6 (maybe 2.5.1?)
10894 if test yes = "$GCC"; then
10895 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10896 else
10897 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10898 fi
10899 ;;
10900 esac
10901 link_all_deplibs=yes
10902 ;;
10903
10904 sunos4*)
10905 if test sequent = "$host_vendor"; then
10906 # Use $CC to link under sequent, because it throws in some extra .o
10907 # files that make .init and .fini sections work.
10908 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10909 else
10910 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10911 fi
10912 hardcode_libdir_flag_spec='-L$libdir'
10913 hardcode_direct=yes
10914 hardcode_minus_L=yes
10915 hardcode_shlibpath_var=no
10916 ;;
10917
10918 sysv4)
10919 case $host_vendor in
10920 sni)
10921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10922 hardcode_direct=yes # is this really true???
10923 ;;
10924 siemens)
10925 ## LD is ld it makes a PLAMLIB
10926 ## CC just makes a GrossModule.
10927 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10928 reload_cmds='$CC -r -o $output$reload_objs'
10929 hardcode_direct=no
10930 ;;
10931 motorola)
10932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10934 ;;
10935 esac
10936 runpath_var='LD_RUN_PATH'
10937 hardcode_shlibpath_var=no
10938 ;;
10939
10940 sysv4.3*)
10941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10942 hardcode_shlibpath_var=no
10943 export_dynamic_flag_spec='-Bexport'
10944 ;;
10945
10946 sysv4*MP*)
10947 if test -d /usr/nec; then
10948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10949 hardcode_shlibpath_var=no
10950 runpath_var=LD_RUN_PATH
10951 hardcode_runpath_var=yes
10952 ld_shlibs=yes
10953 fi
10954 ;;
10955
10956 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10957 no_undefined_flag='$wl-z,text'
10958 archive_cmds_need_lc=no
10959 hardcode_shlibpath_var=no
10960 runpath_var='LD_RUN_PATH'
10961
10962 if test yes = "$GCC"; then
10963 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10965 else
10966 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10967 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10968 fi
10969 ;;
10970
10971 sysv5* | sco3.2v5* | sco5v6*)
10972 # Note: We CANNOT use -z defs as we might desire, because we do not
10973 # link with -lc, and that would cause any symbols used from libc to
10974 # always be unresolved, which means just about no library would
10975 # ever link correctly. If we're not using GNU ld we use -z text
10976 # though, which does catch some bad symbols but isn't as heavy-handed
10977 # as -z defs.
10978 no_undefined_flag='$wl-z,text'
10979 allow_undefined_flag='$wl-z,nodefs'
10980 archive_cmds_need_lc=no
10981 hardcode_shlibpath_var=no
10982 hardcode_libdir_flag_spec='$wl-R,$libdir'
10983 hardcode_libdir_separator=':'
10984 link_all_deplibs=yes
10985 export_dynamic_flag_spec='$wl-Bexport'
10986 runpath_var='LD_RUN_PATH'
10987
10988 if test yes = "$GCC"; then
10989 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10991 else
10992 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10993 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10994 fi
10995 ;;
10996
10997 uts4*)
10998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999 hardcode_libdir_flag_spec='-L$libdir'
11000 hardcode_shlibpath_var=no
11001 ;;
11002
11003 *)
11004 ld_shlibs=no
11005 ;;
11006 esac
11007
11008 if test sni = "$host_vendor"; then
11009 case $host in
11010 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11011 export_dynamic_flag_spec='$wl-Blargedynsym'
11012 ;;
11013 esac
11014 fi
11015 fi
11016
11017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11018 printf "%s\n" "$ld_shlibs" >&6; }
11019 test no = "$ld_shlibs" && can_build_shared=no
11020
11021 with_gnu_ld=$with_gnu_ld
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037 #
11038 # Do we need to explicitly link libc?
11039 #
11040 case "x$archive_cmds_need_lc" in
11041 x|xyes)
11042 # Assume -lc should be added
11043 archive_cmds_need_lc=yes
11044
11045 if test yes,yes = "$GCC,$enable_shared"; then
11046 case $archive_cmds in
11047 *'~'*)
11048 # FIXME: we may have to deal with multi-command sequences.
11049 ;;
11050 '$CC '*)
11051 # Test whether the compiler implicitly links with -lc since on some
11052 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11053 # to ld, don't add -lc before -lgcc.
11054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11055 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11056 if test ${lt_cv_archive_cmds_need_lc+y}
11057 then :
11058 printf %s "(cached) " >&6
11059 else $as_nop
11060 $RM conftest*
11061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11062
11063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11064 (eval $ac_compile) 2>&5
11065 ac_status=$?
11066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11067 test $ac_status = 0; } 2>conftest.err; then
11068 soname=conftest
11069 lib=conftest
11070 libobjs=conftest.$ac_objext
11071 deplibs=
11072 wl=$lt_prog_compiler_wl
11073 pic_flag=$lt_prog_compiler_pic
11074 compiler_flags=-v
11075 linker_flags=-v
11076 verstring=
11077 output_objdir=.
11078 libname=conftest
11079 lt_save_allow_undefined_flag=$allow_undefined_flag
11080 allow_undefined_flag=
11081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11082 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11083 ac_status=$?
11084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11085 test $ac_status = 0; }
11086 then
11087 lt_cv_archive_cmds_need_lc=no
11088 else
11089 lt_cv_archive_cmds_need_lc=yes
11090 fi
11091 allow_undefined_flag=$lt_save_allow_undefined_flag
11092 else
11093 cat conftest.err 1>&5
11094 fi
11095 $RM conftest*
11096
11097 fi
11098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11099 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11100 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11101 ;;
11102 esac
11103 fi
11104 ;;
11105 esac
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11259 printf %s "checking dynamic linker characteristics... " >&6; }
11260
11261 if test yes = "$GCC"; then
11262 case $host_os in
11263 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11264 *) lt_awk_arg='/^libraries:/' ;;
11265 esac
11266 case $host_os in
11267 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11268 *) lt_sed_strip_eq='s|=/|/|g' ;;
11269 esac
11270 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11271 case $lt_search_path_spec in
11272 *\;*)
11273 # if the path contains ";" then we assume it to be the separator
11274 # otherwise default to the standard path separator (i.e. ":") - it is
11275 # assumed that no part of a normal pathname contains ";" but that should
11276 # okay in the real world where ";" in dirpaths is itself problematic.
11277 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11278 ;;
11279 *)
11280 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11281 ;;
11282 esac
11283 # Ok, now we have the path, separated by spaces, we can step through it
11284 # and add multilib dir if necessary...
11285 lt_tmp_lt_search_path_spec=
11286 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11287 # ...but if some path component already ends with the multilib dir we assume
11288 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11289 case "$lt_multi_os_dir; $lt_search_path_spec " in
11290 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11291 lt_multi_os_dir=
11292 ;;
11293 esac
11294 for lt_sys_path in $lt_search_path_spec; do
11295 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11296 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11297 elif test -n "$lt_multi_os_dir"; then
11298 test -d "$lt_sys_path" && \
11299 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11300 fi
11301 done
11302 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11303 BEGIN {RS = " "; FS = "/|\n";} {
11304 lt_foo = "";
11305 lt_count = 0;
11306 for (lt_i = NF; lt_i > 0; lt_i--) {
11307 if ($lt_i != "" && $lt_i != ".") {
11308 if ($lt_i == "..") {
11309 lt_count++;
11310 } else {
11311 if (lt_count == 0) {
11312 lt_foo = "/" $lt_i lt_foo;
11313 } else {
11314 lt_count--;
11315 }
11316 }
11317 }
11318 }
11319 if (lt_foo != "") { lt_freq[lt_foo]++; }
11320 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11321 }'`
11322 # AWK program above erroneously prepends '/' to C:/dos/paths
11323 # for these hosts.
11324 case $host_os in
11325 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11326 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11327 esac
11328 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11329 else
11330 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11331 fi
11332 library_names_spec=
11333 libname_spec='lib$name'
11334 soname_spec=
11335 shrext_cmds=.so
11336 postinstall_cmds=
11337 postuninstall_cmds=
11338 finish_cmds=
11339 finish_eval=
11340 shlibpath_var=
11341 shlibpath_overrides_runpath=unknown
11342 version_type=none
11343 dynamic_linker="$host_os ld.so"
11344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11345 need_lib_prefix=unknown
11346 hardcode_into_libs=no
11347
11348 # when you set need_version to no, make sure it does not cause -set_version
11349 # flags to be left without arguments
11350 need_version=unknown
11351
11352
11353
11354 case $host_os in
11355 aix3*)
11356 version_type=linux # correct to gnu/linux during the next big refactor
11357 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11358 shlibpath_var=LIBPATH
11359
11360 # AIX 3 has no versioning support, so we append a major version to the name.
11361 soname_spec='$libname$release$shared_ext$major'
11362 ;;
11363
11364 aix[4-9]*)
11365 version_type=linux # correct to gnu/linux during the next big refactor
11366 need_lib_prefix=no
11367 need_version=no
11368 hardcode_into_libs=yes
11369 if test ia64 = "$host_cpu"; then
11370 # AIX 5 supports IA64
11371 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11372 shlibpath_var=LD_LIBRARY_PATH
11373 else
11374 # With GCC up to 2.95.x, collect2 would create an import file
11375 # for dependence libraries. The import file would start with
11376 # the line '#! .'. This would cause the generated library to
11377 # depend on '.', always an invalid library. This was fixed in
11378 # development snapshots of GCC prior to 3.0.
11379 case $host_os in
11380 aix4 | aix4.[01] | aix4.[01].*)
11381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11382 echo ' yes '
11383 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11384 :
11385 else
11386 can_build_shared=no
11387 fi
11388 ;;
11389 esac
11390 # Using Import Files as archive members, it is possible to support
11391 # filename-based versioning of shared library archives on AIX. While
11392 # this would work for both with and without runtime linking, it will
11393 # prevent static linking of such archives. So we do filename-based
11394 # shared library versioning with .so extension only, which is used
11395 # when both runtime linking and shared linking is enabled.
11396 # Unfortunately, runtime linking may impact performance, so we do
11397 # not want this to be the default eventually. Also, we use the
11398 # versioned .so libs for executables only if there is the -brtl
11399 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11400 # To allow for filename-based versioning support, we need to create
11401 # libNAME.so.V as an archive file, containing:
11402 # *) an Import File, referring to the versioned filename of the
11403 # archive as well as the shared archive member, telling the
11404 # bitwidth (32 or 64) of that shared object, and providing the
11405 # list of exported symbols of that shared object, eventually
11406 # decorated with the 'weak' keyword
11407 # *) the shared object with the F_LOADONLY flag set, to really avoid
11408 # it being seen by the linker.
11409 # At run time we better use the real file rather than another symlink,
11410 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11411
11412 case $with_aix_soname,$aix_use_runtimelinking in
11413 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11414 # soname into executable. Probably we can add versioning support to
11415 # collect2, so additional links can be useful in future.
11416 aix,yes) # traditional libtool
11417 dynamic_linker='AIX unversionable lib.so'
11418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11419 # instead of lib<name>.a to let people know that these are not
11420 # typical AIX shared libraries.
11421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11422 ;;
11423 aix,no) # traditional AIX only
11424 dynamic_linker='AIX lib.a(lib.so.V)'
11425 # We preserve .a as extension for shared libraries through AIX4.2
11426 # and later when we are not doing run time linking.
11427 library_names_spec='$libname$release.a $libname.a'
11428 soname_spec='$libname$release$shared_ext$major'
11429 ;;
11430 svr4,*) # full svr4 only
11431 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11432 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11433 # We do not specify a path in Import Files, so LIBPATH fires.
11434 shlibpath_overrides_runpath=yes
11435 ;;
11436 *,yes) # both, prefer svr4
11437 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11438 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11439 # unpreferred sharedlib libNAME.a needs extra handling
11440 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"'
11441 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"'
11442 # We do not specify a path in Import Files, so LIBPATH fires.
11443 shlibpath_overrides_runpath=yes
11444 ;;
11445 *,no) # both, prefer aix
11446 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11447 library_names_spec='$libname$release.a $libname.a'
11448 soname_spec='$libname$release$shared_ext$major'
11449 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11450 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)'
11451 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"'
11452 ;;
11453 esac
11454 shlibpath_var=LIBPATH
11455 fi
11456 ;;
11457
11458 amigaos*)
11459 case $host_cpu in
11460 powerpc)
11461 # Since July 2007 AmigaOS4 officially supports .so libraries.
11462 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11464 ;;
11465 m68k)
11466 library_names_spec='$libname.ixlibrary $libname.a'
11467 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11468 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'
11469 ;;
11470 esac
11471 ;;
11472
11473 beos*)
11474 library_names_spec='$libname$shared_ext'
11475 dynamic_linker="$host_os ld.so"
11476 shlibpath_var=LIBRARY_PATH
11477 ;;
11478
11479 bsdi[45]*)
11480 version_type=linux # correct to gnu/linux during the next big refactor
11481 need_version=no
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11488 # the default ld.so.conf also contains /usr/contrib/lib and
11489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11490 # libtool to hard-code these into programs
11491 ;;
11492
11493 cygwin* | mingw* | pw32* | cegcc*)
11494 version_type=windows
11495 shrext_cmds=.dll
11496 need_version=no
11497 need_lib_prefix=no
11498
11499 case $GCC,$cc_basename in
11500 yes,*)
11501 # gcc
11502 library_names_spec='$libname.dll.a'
11503 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11504 postinstall_cmds='base_file=`basename \$file`~
11505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11506 dldir=$destdir/`dirname \$dlpath`~
11507 test -d \$dldir || mkdir -p \$dldir~
11508 $install_prog $dir/$dlname \$dldir/$dlname~
11509 chmod a+x \$dldir/$dlname~
11510 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11511 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11512 fi'
11513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11514 dlpath=$dir/\$dldll~
11515 $RM \$dlpath'
11516 shlibpath_overrides_runpath=yes
11517
11518 case $host_os in
11519 cygwin*)
11520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11521 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11522
11523 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11524 ;;
11525 mingw* | cegcc*)
11526 # MinGW DLLs use traditional 'lib' prefix
11527 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11528 ;;
11529 pw32*)
11530 # pw32 DLLs use 'pw' prefix rather than 'lib'
11531 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11532 ;;
11533 esac
11534 dynamic_linker='Win32 ld.exe'
11535 ;;
11536
11537 *,cl* | *,icl*)
11538 # Native MSVC or ICC
11539 libname_spec='$name'
11540 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11541 library_names_spec='$libname.dll.lib'
11542
11543 case $build_os in
11544 mingw*)
11545 sys_lib_search_path_spec=
11546 lt_save_ifs=$IFS
11547 IFS=';'
11548 for lt_path in $LIB
11549 do
11550 IFS=$lt_save_ifs
11551 # Let DOS variable expansion print the short 8.3 style file name.
11552 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11553 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11554 done
11555 IFS=$lt_save_ifs
11556 # Convert to MSYS style.
11557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11558 ;;
11559 cygwin*)
11560 # Convert to unix form, then to dos form, then back to unix form
11561 # but this time dos style (no spaces!) so that the unix form looks
11562 # like /cygdrive/c/PROGRA~1:/cygdr...
11563 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11564 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11565 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11566 ;;
11567 *)
11568 sys_lib_search_path_spec=$LIB
11569 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11570 # It is most probably a Windows format PATH.
11571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11572 else
11573 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11574 fi
11575 # FIXME: find the short name or the path components, as spaces are
11576 # common. (e.g. "Program Files" -> "PROGRA~1")
11577 ;;
11578 esac
11579
11580 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11581 postinstall_cmds='base_file=`basename \$file`~
11582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11583 dldir=$destdir/`dirname \$dlpath`~
11584 test -d \$dldir || mkdir -p \$dldir~
11585 $install_prog $dir/$dlname \$dldir/$dlname'
11586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11587 dlpath=$dir/\$dldll~
11588 $RM \$dlpath'
11589 shlibpath_overrides_runpath=yes
11590 dynamic_linker='Win32 link.exe'
11591 ;;
11592
11593 *)
11594 # Assume MSVC and ICC wrapper
11595 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11596 dynamic_linker='Win32 ld.exe'
11597 ;;
11598 esac
11599 # FIXME: first we should search . and the directory the executable is in
11600 shlibpath_var=PATH
11601 ;;
11602
11603 darwin* | rhapsody*)
11604 dynamic_linker="$host_os dyld"
11605 version_type=darwin
11606 need_lib_prefix=no
11607 need_version=no
11608 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11609 soname_spec='$libname$release$major$shared_ext'
11610 shlibpath_overrides_runpath=yes
11611 shlibpath_var=DYLD_LIBRARY_PATH
11612 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11613
11614 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11616 ;;
11617
11618 dgux*)
11619 version_type=linux # correct to gnu/linux during the next big refactor
11620 need_lib_prefix=no
11621 need_version=no
11622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623 soname_spec='$libname$release$shared_ext$major'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 ;;
11626
11627 freebsd* | dragonfly* | midnightbsd*)
11628 # DragonFly does not have aout. When/if they implement a new
11629 # versioning mechanism, adjust this.
11630 if test -x /usr/bin/objformat; then
11631 objformat=`/usr/bin/objformat`
11632 else
11633 case $host_os in
11634 freebsd[23].*) objformat=aout ;;
11635 *) objformat=elf ;;
11636 esac
11637 fi
11638 version_type=freebsd-$objformat
11639 case $version_type in
11640 freebsd-elf*)
11641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11642 soname_spec='$libname$release$shared_ext$major'
11643 need_version=no
11644 need_lib_prefix=no
11645 ;;
11646 freebsd-*)
11647 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11648 need_version=yes
11649 ;;
11650 esac
11651 shlibpath_var=LD_LIBRARY_PATH
11652 case $host_os in
11653 freebsd2.*)
11654 shlibpath_overrides_runpath=yes
11655 ;;
11656 freebsd3.[01]* | freebsdelf3.[01]*)
11657 shlibpath_overrides_runpath=yes
11658 hardcode_into_libs=yes
11659 ;;
11660 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11661 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11662 shlibpath_overrides_runpath=no
11663 hardcode_into_libs=yes
11664 ;;
11665 *) # from 4.6 on, and DragonFly
11666 shlibpath_overrides_runpath=yes
11667 hardcode_into_libs=yes
11668 ;;
11669 esac
11670 ;;
11671
11672 haiku*)
11673 version_type=linux # correct to gnu/linux during the next big refactor
11674 need_lib_prefix=no
11675 need_version=no
11676 dynamic_linker="$host_os runtime_loader"
11677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11678 soname_spec='$libname$release$shared_ext$major'
11679 shlibpath_var=LIBRARY_PATH
11680 shlibpath_overrides_runpath=no
11681 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11682 hardcode_into_libs=yes
11683 ;;
11684
11685 hpux9* | hpux10* | hpux11*)
11686 # Give a soname corresponding to the major version so that dld.sl refuses to
11687 # link against other versions.
11688 version_type=sunos
11689 need_lib_prefix=no
11690 need_version=no
11691 case $host_cpu in
11692 ia64*)
11693 shrext_cmds='.so'
11694 hardcode_into_libs=yes
11695 dynamic_linker="$host_os dld.so"
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11699 soname_spec='$libname$release$shared_ext$major'
11700 if test 32 = "$HPUX_IA64_MODE"; then
11701 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11702 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11703 else
11704 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11705 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11706 fi
11707 ;;
11708 hppa*64*)
11709 shrext_cmds='.sl'
11710 hardcode_into_libs=yes
11711 dynamic_linker="$host_os dld.sl"
11712 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11715 soname_spec='$libname$release$shared_ext$major'
11716 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11718 ;;
11719 *)
11720 shrext_cmds='.sl'
11721 dynamic_linker="$host_os dld.sl"
11722 shlibpath_var=SHLIB_PATH
11723 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11725 soname_spec='$libname$release$shared_ext$major'
11726 ;;
11727 esac
11728 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11729 postinstall_cmds='chmod 555 $lib'
11730 # or fails outright, so override atomically:
11731 install_override_mode=555
11732 ;;
11733
11734 interix[3-9]*)
11735 version_type=linux # correct to gnu/linux during the next big refactor
11736 need_lib_prefix=no
11737 need_version=no
11738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11739 soname_spec='$libname$release$shared_ext$major'
11740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=no
11743 hardcode_into_libs=yes
11744 ;;
11745
11746 irix5* | irix6* | nonstopux*)
11747 case $host_os in
11748 nonstopux*) version_type=nonstopux ;;
11749 *)
11750 if test yes = "$lt_cv_prog_gnu_ld"; then
11751 version_type=linux # correct to gnu/linux during the next big refactor
11752 else
11753 version_type=irix
11754 fi ;;
11755 esac
11756 need_lib_prefix=no
11757 need_version=no
11758 soname_spec='$libname$release$shared_ext$major'
11759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11760 case $host_os in
11761 irix5* | nonstopux*)
11762 libsuff= shlibsuff=
11763 ;;
11764 *)
11765 case $LD in # libtool.m4 will add one of these switches to LD
11766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11767 libsuff= shlibsuff= libmagic=32-bit;;
11768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11769 libsuff=32 shlibsuff=N32 libmagic=N32;;
11770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11772 *) libsuff= shlibsuff= libmagic=never-match;;
11773 esac
11774 ;;
11775 esac
11776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11777 shlibpath_overrides_runpath=no
11778 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11779 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11780 hardcode_into_libs=yes
11781 ;;
11782
11783 # No shared lib support for Linux oldld, aout, or coff.
11784 linux*oldld* | linux*aout* | linux*coff*)
11785 dynamic_linker=no
11786 ;;
11787
11788 linux*android*)
11789 version_type=none # Android doesn't support versioned libraries.
11790 need_lib_prefix=no
11791 need_version=no
11792 library_names_spec='$libname$release$shared_ext'
11793 soname_spec='$libname$release$shared_ext'
11794 finish_cmds=
11795 shlibpath_var=LD_LIBRARY_PATH
11796 shlibpath_overrides_runpath=yes
11797
11798 # This implies no fast_install, which is unacceptable.
11799 # Some rework will be needed to allow for fast_install
11800 # before this can be enabled.
11801 hardcode_into_libs=yes
11802
11803 dynamic_linker='Android linker'
11804 # Don't embed -rpath directories since the linker doesn't support them.
11805 hardcode_libdir_flag_spec='-L$libdir'
11806 ;;
11807
11808 # This must be glibc/ELF.
11809 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11810 version_type=linux # correct to gnu/linux during the next big refactor
11811 need_lib_prefix=no
11812 need_version=no
11813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11814 soname_spec='$libname$release$shared_ext$major'
11815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11816 shlibpath_var=LD_LIBRARY_PATH
11817 shlibpath_overrides_runpath=no
11818
11819 # Some binutils ld are patched to set DT_RUNPATH
11820 if test ${lt_cv_shlibpath_overrides_runpath+y}
11821 then :
11822 printf %s "(cached) " >&6
11823 else $as_nop
11824 lt_cv_shlibpath_overrides_runpath=no
11825 save_LDFLAGS=$LDFLAGS
11826 save_libdir=$libdir
11827 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11828 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831
11832 int
11833 main (void)
11834 {
11835
11836 ;
11837 return 0;
11838 }
11839 _ACEOF
11840 if ac_fn_c_try_link "$LINENO"
11841 then :
11842 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11843 then :
11844 lt_cv_shlibpath_overrides_runpath=yes
11845 fi
11846 fi
11847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11848 conftest$ac_exeext conftest.$ac_ext
11849 LDFLAGS=$save_LDFLAGS
11850 libdir=$save_libdir
11851
11852 fi
11853
11854 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11855
11856 # This implies no fast_install, which is unacceptable.
11857 # Some rework will be needed to allow for fast_install
11858 # before this can be enabled.
11859 hardcode_into_libs=yes
11860
11861 # Ideally, we could use ldconfig to report *all* directores which are
11862 # searched for libraries, however this is still not possible. Aside from not
11863 # being certain /sbin/ldconfig is available, command
11864 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11865 # even though it is searched at run-time. Try to do the best guess by
11866 # appending ld.so.conf contents (and includes) to the search path.
11867 if test -f /etc/ld.so.conf; then
11868 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' ' '`
11869 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11870 fi
11871
11872 # We used to test for /lib/ld.so.1 and disable shared libraries on
11873 # powerpc, because MkLinux only supported shared libraries with the
11874 # GNU dynamic linker. Since this was broken with cross compilers,
11875 # most powerpc-linux boxes support dynamic linking these days and
11876 # people can always --disable-shared, the test was removed, and we
11877 # assume the GNU/Linux dynamic linker is in use.
11878 dynamic_linker='GNU/Linux ld.so'
11879 ;;
11880
11881 netbsd*)
11882 version_type=sunos
11883 need_lib_prefix=no
11884 need_version=no
11885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11888 dynamic_linker='NetBSD (a.out) ld.so'
11889 else
11890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11891 soname_spec='$libname$release$shared_ext$major'
11892 dynamic_linker='NetBSD ld.elf_so'
11893 fi
11894 shlibpath_var=LD_LIBRARY_PATH
11895 shlibpath_overrides_runpath=yes
11896 hardcode_into_libs=yes
11897 ;;
11898
11899 newsos6)
11900 version_type=linux # correct to gnu/linux during the next big refactor
11901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11902 shlibpath_var=LD_LIBRARY_PATH
11903 shlibpath_overrides_runpath=yes
11904 ;;
11905
11906 *nto* | *qnx*)
11907 version_type=qnx
11908 need_lib_prefix=no
11909 need_version=no
11910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11911 soname_spec='$libname$release$shared_ext$major'
11912 shlibpath_var=LD_LIBRARY_PATH
11913 shlibpath_overrides_runpath=no
11914 hardcode_into_libs=yes
11915 dynamic_linker='ldqnx.so'
11916 ;;
11917
11918 openbsd* | bitrig*)
11919 version_type=sunos
11920 sys_lib_dlsearch_path_spec=/usr/lib
11921 need_lib_prefix=no
11922 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11923 need_version=no
11924 else
11925 need_version=yes
11926 fi
11927 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11929 shlibpath_var=LD_LIBRARY_PATH
11930 shlibpath_overrides_runpath=yes
11931 ;;
11932
11933 os2*)
11934 libname_spec='$name'
11935 version_type=windows
11936 shrext_cmds=.dll
11937 need_version=no
11938 need_lib_prefix=no
11939 # OS/2 can only load a DLL with a base name of 8 characters or less.
11940 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11941 v=$($ECHO $release$versuffix | tr -d .-);
11942 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11943 $ECHO $n$v`$shared_ext'
11944 library_names_spec='${libname}_dll.$libext'
11945 dynamic_linker='OS/2 ld.exe'
11946 shlibpath_var=BEGINLIBPATH
11947 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11949 postinstall_cmds='base_file=`basename \$file`~
11950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11951 dldir=$destdir/`dirname \$dlpath`~
11952 test -d \$dldir || mkdir -p \$dldir~
11953 $install_prog $dir/$dlname \$dldir/$dlname~
11954 chmod a+x \$dldir/$dlname~
11955 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11956 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11957 fi'
11958 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11959 dlpath=$dir/\$dldll~
11960 $RM \$dlpath'
11961 ;;
11962
11963 osf3* | osf4* | osf5*)
11964 version_type=osf
11965 need_lib_prefix=no
11966 need_version=no
11967 soname_spec='$libname$release$shared_ext$major'
11968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11969 shlibpath_var=LD_LIBRARY_PATH
11970 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11972 ;;
11973
11974 rdos*)
11975 dynamic_linker=no
11976 ;;
11977
11978 solaris*)
11979 version_type=linux # correct to gnu/linux during the next big refactor
11980 need_lib_prefix=no
11981 need_version=no
11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11983 soname_spec='$libname$release$shared_ext$major'
11984 shlibpath_var=LD_LIBRARY_PATH
11985 shlibpath_overrides_runpath=yes
11986 hardcode_into_libs=yes
11987 # ldd complains unless libraries are executable
11988 postinstall_cmds='chmod +x $lib'
11989 ;;
11990
11991 sunos4*)
11992 version_type=sunos
11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11994 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 shlibpath_overrides_runpath=yes
11997 if test yes = "$with_gnu_ld"; then
11998 need_lib_prefix=no
11999 fi
12000 need_version=yes
12001 ;;
12002
12003 sysv4 | sysv4.3*)
12004 version_type=linux # correct to gnu/linux during the next big refactor
12005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12006 soname_spec='$libname$release$shared_ext$major'
12007 shlibpath_var=LD_LIBRARY_PATH
12008 case $host_vendor in
12009 sni)
12010 shlibpath_overrides_runpath=no
12011 need_lib_prefix=no
12012 runpath_var=LD_RUN_PATH
12013 ;;
12014 siemens)
12015 need_lib_prefix=no
12016 ;;
12017 motorola)
12018 need_lib_prefix=no
12019 need_version=no
12020 shlibpath_overrides_runpath=no
12021 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12022 ;;
12023 esac
12024 ;;
12025
12026 sysv4*MP*)
12027 if test -d /usr/nec; then
12028 version_type=linux # correct to gnu/linux during the next big refactor
12029 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12030 soname_spec='$libname$shared_ext.$major'
12031 shlibpath_var=LD_LIBRARY_PATH
12032 fi
12033 ;;
12034
12035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12036 version_type=sco
12037 need_lib_prefix=no
12038 need_version=no
12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12040 soname_spec='$libname$release$shared_ext$major'
12041 shlibpath_var=LD_LIBRARY_PATH
12042 shlibpath_overrides_runpath=yes
12043 hardcode_into_libs=yes
12044 if test yes = "$with_gnu_ld"; then
12045 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12046 else
12047 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12048 case $host_os in
12049 sco3.2v5*)
12050 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12051 ;;
12052 esac
12053 fi
12054 sys_lib_dlsearch_path_spec='/usr/lib'
12055 ;;
12056
12057 tpf*)
12058 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12059 version_type=linux # correct to gnu/linux during the next big refactor
12060 need_lib_prefix=no
12061 need_version=no
12062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 shlibpath_overrides_runpath=no
12065 hardcode_into_libs=yes
12066 ;;
12067
12068 uts4*)
12069 version_type=linux # correct to gnu/linux during the next big refactor
12070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12071 soname_spec='$libname$release$shared_ext$major'
12072 shlibpath_var=LD_LIBRARY_PATH
12073 ;;
12074
12075 *)
12076 dynamic_linker=no
12077 ;;
12078 esac
12079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12080 printf "%s\n" "$dynamic_linker" >&6; }
12081 test no = "$dynamic_linker" && can_build_shared=no
12082
12083 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12084 if test yes = "$GCC"; then
12085 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12086 fi
12087
12088 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12089 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12090 fi
12091
12092 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12093 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12094 fi
12095
12096 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12097 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12098
12099 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12100 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12101
12102 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12103 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12202 printf %s "checking how to hardcode library paths into programs... " >&6; }
12203 hardcode_action=
12204 if test -n "$hardcode_libdir_flag_spec" ||
12205 test -n "$runpath_var" ||
12206 test yes = "$hardcode_automatic"; then
12207
12208 # We can hardcode non-existent directories.
12209 if test no != "$hardcode_direct" &&
12210 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12211 # have to relink, otherwise we might link with an installed library
12212 # when we should be linking with a yet-to-be-installed one
12213 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12214 test no != "$hardcode_minus_L"; then
12215 # Linking always hardcodes the temporary library directory.
12216 hardcode_action=relink
12217 else
12218 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12219 hardcode_action=immediate
12220 fi
12221 else
12222 # We cannot hardcode anything, or else we can only hardcode existing
12223 # directories.
12224 hardcode_action=unsupported
12225 fi
12226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12227 printf "%s\n" "$hardcode_action" >&6; }
12228
12229 if test relink = "$hardcode_action" ||
12230 test yes = "$inherit_rpath"; then
12231 # Fast installation is not supported
12232 enable_fast_install=no
12233 elif test yes = "$shlibpath_overrides_runpath" ||
12234 test no = "$enable_shared"; then
12235 # Fast installation is not necessary
12236 enable_fast_install=needless
12237 fi
12238
12239
12240
12241
12242
12243
12244 if test yes != "$enable_dlopen"; then
12245 enable_dlopen=unknown
12246 enable_dlopen_self=unknown
12247 enable_dlopen_self_static=unknown
12248 else
12249 lt_cv_dlopen=no
12250 lt_cv_dlopen_libs=
12251
12252 case $host_os in
12253 beos*)
12254 lt_cv_dlopen=load_add_on
12255 lt_cv_dlopen_libs=
12256 lt_cv_dlopen_self=yes
12257 ;;
12258
12259 mingw* | pw32* | cegcc*)
12260 lt_cv_dlopen=LoadLibrary
12261 lt_cv_dlopen_libs=
12262 ;;
12263
12264 cygwin*)
12265 lt_cv_dlopen=dlopen
12266 lt_cv_dlopen_libs=
12267 ;;
12268
12269 darwin*)
12270 # if libdl is installed we need to link against it
12271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12272 printf %s "checking for dlopen in -ldl... " >&6; }
12273 if test ${ac_cv_lib_dl_dlopen+y}
12274 then :
12275 printf %s "(cached) " >&6
12276 else $as_nop
12277 ac_check_lib_save_LIBS=$LIBS
12278 LIBS="-ldl $LIBS"
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281
12282 /* Override any GCC internal prototype to avoid an error.
12283 Use char because int might match the return type of a GCC
12284 builtin and then its argument prototype would still apply. */
12285 char dlopen ();
12286 int
12287 main (void)
12288 {
12289 return dlopen ();
12290 ;
12291 return 0;
12292 }
12293 _ACEOF
12294 if ac_fn_c_try_link "$LINENO"
12295 then :
12296 ac_cv_lib_dl_dlopen=yes
12297 else $as_nop
12298 ac_cv_lib_dl_dlopen=no
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12303 fi
12304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12305 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12306 if test "x$ac_cv_lib_dl_dlopen" = xyes
12307 then :
12308 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12309 else $as_nop
12310
12311 lt_cv_dlopen=dyld
12312 lt_cv_dlopen_libs=
12313 lt_cv_dlopen_self=yes
12314
12315 fi
12316
12317 ;;
12318
12319 tpf*)
12320 # Don't try to run any link tests for TPF. We know it's impossible
12321 # because TPF is a cross-compiler, and we know how we open DSOs.
12322 lt_cv_dlopen=dlopen
12323 lt_cv_dlopen_libs=
12324 lt_cv_dlopen_self=no
12325 ;;
12326
12327 *)
12328 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12329 if test "x$ac_cv_func_shl_load" = xyes
12330 then :
12331 lt_cv_dlopen=shl_load
12332 else $as_nop
12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12334 printf %s "checking for shl_load in -ldld... " >&6; }
12335 if test ${ac_cv_lib_dld_shl_load+y}
12336 then :
12337 printf %s "(cached) " >&6
12338 else $as_nop
12339 ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-ldld $LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 char shl_load ();
12348 int
12349 main (void)
12350 {
12351 return shl_load ();
12352 ;
12353 return 0;
12354 }
12355 _ACEOF
12356 if ac_fn_c_try_link "$LINENO"
12357 then :
12358 ac_cv_lib_dld_shl_load=yes
12359 else $as_nop
12360 ac_cv_lib_dld_shl_load=no
12361 fi
12362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12363 conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS
12365 fi
12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12367 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12368 if test "x$ac_cv_lib_dld_shl_load" = xyes
12369 then :
12370 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12371 else $as_nop
12372 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12373 if test "x$ac_cv_func_dlopen" = xyes
12374 then :
12375 lt_cv_dlopen=dlopen
12376 else $as_nop
12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12378 printf %s "checking for dlopen in -ldl... " >&6; }
12379 if test ${ac_cv_lib_dl_dlopen+y}
12380 then :
12381 printf %s "(cached) " >&6
12382 else $as_nop
12383 ac_check_lib_save_LIBS=$LIBS
12384 LIBS="-ldl $LIBS"
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387
12388 /* Override any GCC internal prototype to avoid an error.
12389 Use char because int might match the return type of a GCC
12390 builtin and then its argument prototype would still apply. */
12391 char dlopen ();
12392 int
12393 main (void)
12394 {
12395 return dlopen ();
12396 ;
12397 return 0;
12398 }
12399 _ACEOF
12400 if ac_fn_c_try_link "$LINENO"
12401 then :
12402 ac_cv_lib_dl_dlopen=yes
12403 else $as_nop
12404 ac_cv_lib_dl_dlopen=no
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12409 fi
12410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12411 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12412 if test "x$ac_cv_lib_dl_dlopen" = xyes
12413 then :
12414 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12415 else $as_nop
12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12417 printf %s "checking for dlopen in -lsvld... " >&6; }
12418 if test ${ac_cv_lib_svld_dlopen+y}
12419 then :
12420 printf %s "(cached) " >&6
12421 else $as_nop
12422 ac_check_lib_save_LIBS=$LIBS
12423 LIBS="-lsvld $LIBS"
12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426
12427 /* Override any GCC internal prototype to avoid an error.
12428 Use char because int might match the return type of a GCC
12429 builtin and then its argument prototype would still apply. */
12430 char dlopen ();
12431 int
12432 main (void)
12433 {
12434 return dlopen ();
12435 ;
12436 return 0;
12437 }
12438 _ACEOF
12439 if ac_fn_c_try_link "$LINENO"
12440 then :
12441 ac_cv_lib_svld_dlopen=yes
12442 else $as_nop
12443 ac_cv_lib_svld_dlopen=no
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12446 conftest$ac_exeext conftest.$ac_ext
12447 LIBS=$ac_check_lib_save_LIBS
12448 fi
12449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12450 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12451 if test "x$ac_cv_lib_svld_dlopen" = xyes
12452 then :
12453 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12454 else $as_nop
12455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12456 printf %s "checking for dld_link in -ldld... " >&6; }
12457 if test ${ac_cv_lib_dld_dld_link+y}
12458 then :
12459 printf %s "(cached) " >&6
12460 else $as_nop
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-ldld $LIBS"
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12469 char dld_link ();
12470 int
12471 main (void)
12472 {
12473 return dld_link ();
12474 ;
12475 return 0;
12476 }
12477 _ACEOF
12478 if ac_fn_c_try_link "$LINENO"
12479 then :
12480 ac_cv_lib_dld_dld_link=yes
12481 else $as_nop
12482 ac_cv_lib_dld_dld_link=no
12483 fi
12484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12485 conftest$ac_exeext conftest.$ac_ext
12486 LIBS=$ac_check_lib_save_LIBS
12487 fi
12488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12489 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12490 if test "x$ac_cv_lib_dld_dld_link" = xyes
12491 then :
12492 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12493 fi
12494
12495
12496 fi
12497
12498
12499 fi
12500
12501
12502 fi
12503
12504
12505 fi
12506
12507
12508 fi
12509
12510 ;;
12511 esac
12512
12513 if test no = "$lt_cv_dlopen"; then
12514 enable_dlopen=no
12515 else
12516 enable_dlopen=yes
12517 fi
12518
12519 case $lt_cv_dlopen in
12520 dlopen)
12521 save_CPPFLAGS=$CPPFLAGS
12522 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12523
12524 save_LDFLAGS=$LDFLAGS
12525 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12526
12527 save_LIBS=$LIBS
12528 LIBS="$lt_cv_dlopen_libs $LIBS"
12529
12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12531 printf %s "checking whether a program can dlopen itself... " >&6; }
12532 if test ${lt_cv_dlopen_self+y}
12533 then :
12534 printf %s "(cached) " >&6
12535 else $as_nop
12536 if test yes = "$cross_compiling"; then :
12537 lt_cv_dlopen_self=cross
12538 else
12539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12540 lt_status=$lt_dlunknown
12541 cat > conftest.$ac_ext <<_LT_EOF
12542 #line $LINENO "configure"
12543 #include "confdefs.h"
12544
12545 #if HAVE_DLFCN_H
12546 #include <dlfcn.h>
12547 #endif
12548
12549 #include <stdio.h>
12550
12551 #ifdef RTLD_GLOBAL
12552 # define LT_DLGLOBAL RTLD_GLOBAL
12553 #else
12554 # ifdef DL_GLOBAL
12555 # define LT_DLGLOBAL DL_GLOBAL
12556 # else
12557 # define LT_DLGLOBAL 0
12558 # endif
12559 #endif
12560
12561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12562 find out it does not work in some platform. */
12563 #ifndef LT_DLLAZY_OR_NOW
12564 # ifdef RTLD_LAZY
12565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12566 # else
12567 # ifdef DL_LAZY
12568 # define LT_DLLAZY_OR_NOW DL_LAZY
12569 # else
12570 # ifdef RTLD_NOW
12571 # define LT_DLLAZY_OR_NOW RTLD_NOW
12572 # else
12573 # ifdef DL_NOW
12574 # define LT_DLLAZY_OR_NOW DL_NOW
12575 # else
12576 # define LT_DLLAZY_OR_NOW 0
12577 # endif
12578 # endif
12579 # endif
12580 # endif
12581 #endif
12582
12583 /* When -fvisibility=hidden is used, assume the code has been annotated
12584 correspondingly for the symbols needed. */
12585 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12586 int fnord () __attribute__((visibility("default")));
12587 #endif
12588
12589 int fnord () { return 42; }
12590 int main ()
12591 {
12592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12593 int status = $lt_dlunknown;
12594
12595 if (self)
12596 {
12597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12598 else
12599 {
12600 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12601 else puts (dlerror ());
12602 }
12603 /* dlclose (self); */
12604 }
12605 else
12606 puts (dlerror ());
12607
12608 return status;
12609 }
12610 _LT_EOF
12611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12612 (eval $ac_link) 2>&5
12613 ac_status=$?
12614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12615 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12616 (./conftest; exit; ) >&5 2>/dev/null
12617 lt_status=$?
12618 case x$lt_status in
12619 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12620 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12621 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12622 esac
12623 else :
12624 # compilation failed
12625 lt_cv_dlopen_self=no
12626 fi
12627 fi
12628 rm -fr conftest*
12629
12630
12631 fi
12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12633 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12634
12635 if test yes = "$lt_cv_dlopen_self"; then
12636 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12638 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12639 if test ${lt_cv_dlopen_self_static+y}
12640 then :
12641 printf %s "(cached) " >&6
12642 else $as_nop
12643 if test yes = "$cross_compiling"; then :
12644 lt_cv_dlopen_self_static=cross
12645 else
12646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12647 lt_status=$lt_dlunknown
12648 cat > conftest.$ac_ext <<_LT_EOF
12649 #line $LINENO "configure"
12650 #include "confdefs.h"
12651
12652 #if HAVE_DLFCN_H
12653 #include <dlfcn.h>
12654 #endif
12655
12656 #include <stdio.h>
12657
12658 #ifdef RTLD_GLOBAL
12659 # define LT_DLGLOBAL RTLD_GLOBAL
12660 #else
12661 # ifdef DL_GLOBAL
12662 # define LT_DLGLOBAL DL_GLOBAL
12663 # else
12664 # define LT_DLGLOBAL 0
12665 # endif
12666 #endif
12667
12668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12669 find out it does not work in some platform. */
12670 #ifndef LT_DLLAZY_OR_NOW
12671 # ifdef RTLD_LAZY
12672 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12673 # else
12674 # ifdef DL_LAZY
12675 # define LT_DLLAZY_OR_NOW DL_LAZY
12676 # else
12677 # ifdef RTLD_NOW
12678 # define LT_DLLAZY_OR_NOW RTLD_NOW
12679 # else
12680 # ifdef DL_NOW
12681 # define LT_DLLAZY_OR_NOW DL_NOW
12682 # else
12683 # define LT_DLLAZY_OR_NOW 0
12684 # endif
12685 # endif
12686 # endif
12687 # endif
12688 #endif
12689
12690 /* When -fvisibility=hidden is used, assume the code has been annotated
12691 correspondingly for the symbols needed. */
12692 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12693 int fnord () __attribute__((visibility("default")));
12694 #endif
12695
12696 int fnord () { return 42; }
12697 int main ()
12698 {
12699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12700 int status = $lt_dlunknown;
12701
12702 if (self)
12703 {
12704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12705 else
12706 {
12707 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12708 else puts (dlerror ());
12709 }
12710 /* dlclose (self); */
12711 }
12712 else
12713 puts (dlerror ());
12714
12715 return status;
12716 }
12717 _LT_EOF
12718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12719 (eval $ac_link) 2>&5
12720 ac_status=$?
12721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12722 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12723 (./conftest; exit; ) >&5 2>/dev/null
12724 lt_status=$?
12725 case x$lt_status in
12726 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12727 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12728 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12729 esac
12730 else :
12731 # compilation failed
12732 lt_cv_dlopen_self_static=no
12733 fi
12734 fi
12735 rm -fr conftest*
12736
12737
12738 fi
12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12740 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12741 fi
12742
12743 CPPFLAGS=$save_CPPFLAGS
12744 LDFLAGS=$save_LDFLAGS
12745 LIBS=$save_LIBS
12746 ;;
12747 esac
12748
12749 case $lt_cv_dlopen_self in
12750 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12751 *) enable_dlopen_self=unknown ;;
12752 esac
12753
12754 case $lt_cv_dlopen_self_static in
12755 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12756 *) enable_dlopen_self_static=unknown ;;
12757 esac
12758 fi
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776 striplib=
12777 old_striplib=
12778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12779 printf %s "checking whether stripping libraries is possible... " >&6; }
12780 if test -z "$STRIP"; then
12781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 printf "%s\n" "no" >&6; }
12783 else
12784 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12785 old_striplib="$STRIP --strip-debug"
12786 striplib="$STRIP --strip-unneeded"
12787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12788 printf "%s\n" "yes" >&6; }
12789 else
12790 case $host_os in
12791 darwin*)
12792 # FIXME - insert some real tests, host_os isn't really good enough
12793 striplib="$STRIP -x"
12794 old_striplib="$STRIP -S"
12795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12796 printf "%s\n" "yes" >&6; }
12797 ;;
12798 freebsd*)
12799 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12800 old_striplib="$STRIP --strip-debug"
12801 striplib="$STRIP --strip-unneeded"
12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12803 printf "%s\n" "yes" >&6; }
12804 else
12805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 printf "%s\n" "no" >&6; }
12807 fi
12808 ;;
12809 *)
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 printf "%s\n" "no" >&6; }
12812 ;;
12813 esac
12814 fi
12815 fi
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828 # Report what library types will actually be built
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12830 printf %s "checking if libtool supports shared libraries... " >&6; }
12831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12832 printf "%s\n" "$can_build_shared" >&6; }
12833
12834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12835 printf %s "checking whether to build shared libraries... " >&6; }
12836 test no = "$can_build_shared" && enable_shared=no
12837
12838 # On AIX, shared libraries and static libraries use the same namespace, and
12839 # are all built from PIC.
12840 case $host_os in
12841 aix3*)
12842 test yes = "$enable_shared" && enable_static=no
12843 if test -n "$RANLIB"; then
12844 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12845 postinstall_cmds='$RANLIB $lib'
12846 fi
12847 ;;
12848
12849 aix[4-9]*)
12850 if test ia64 != "$host_cpu"; then
12851 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12852 yes,aix,yes) ;; # shared object as lib.so file only
12853 yes,svr4,*) ;; # shared object as lib.so archive member only
12854 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12855 esac
12856 fi
12857 ;;
12858 esac
12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12860 printf "%s\n" "$enable_shared" >&6; }
12861
12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12863 printf %s "checking whether to build static libraries... " >&6; }
12864 # Make sure either enable_shared or enable_static is yes.
12865 test yes = "$enable_shared" || enable_static=yes
12866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12867 printf "%s\n" "$enable_static" >&6; }
12868
12869
12870
12871
12872 fi
12873 ac_ext=c
12874 ac_cpp='$CPP $CPPFLAGS'
12875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12878
12879 CC=$lt_save_CC
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895 ac_config_commands="$ac_config_commands libtool"
12896
12897
12898
12899
12900 # Only expand once:
12901
12902
12903
12904 # Require xorg-macros minimum of 1.12 for DocBook external references
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12918 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12919 if test ${ac_cv_c_undeclared_builtin_options+y}
12920 then :
12921 printf %s "(cached) " >&6
12922 else $as_nop
12923 ac_save_CFLAGS=$CFLAGS
12924 ac_cv_c_undeclared_builtin_options='cannot detect'
12925 for ac_arg in '' -fno-builtin; do
12926 CFLAGS="$ac_save_CFLAGS $ac_arg"
12927 # This test program should *not* compile successfully.
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12930
12931 int
12932 main (void)
12933 {
12934 (void) strchr;
12935 ;
12936 return 0;
12937 }
12938 _ACEOF
12939 if ac_fn_c_try_compile "$LINENO"
12940 then :
12941
12942 else $as_nop
12943 # This test program should compile successfully.
12944 # No library function is consistently available on
12945 # freestanding implementations, so test against a dummy
12946 # declaration. Include always-available headers on the
12947 # off chance that they somehow elicit warnings.
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12950 #include <float.h>
12951 #include <limits.h>
12952 #include <stdarg.h>
12953 #include <stddef.h>
12954 extern void ac_decl (int, char *);
12955
12956 int
12957 main (void)
12958 {
12959 (void) ac_decl (0, (char *) 0);
12960 (void) ac_decl;
12961
12962 ;
12963 return 0;
12964 }
12965 _ACEOF
12966 if ac_fn_c_try_compile "$LINENO"
12967 then :
12968 if test x"$ac_arg" = x
12969 then :
12970 ac_cv_c_undeclared_builtin_options='none needed'
12971 else $as_nop
12972 ac_cv_c_undeclared_builtin_options=$ac_arg
12973 fi
12974 break
12975 fi
12976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12977 fi
12978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12979 done
12980 CFLAGS=$ac_save_CFLAGS
12981
12982 fi
12983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12984 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12985 case $ac_cv_c_undeclared_builtin_options in #(
12986 'cannot detect') :
12987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12988 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12989 as_fn_error $? "cannot make $CC report undeclared builtins
12990 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12991 'none needed') :
12992 ac_c_undeclared_builtin_options='' ;; #(
12993 *) :
12994 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12995 esac
12996
12997
12998
12999
13000
13001 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13002 if test "x$ac_cv_have_decl___clang__" = xyes
13003 then :
13004 CLANGCC="yes"
13005 else $as_nop
13006 CLANGCC="no"
13007 fi
13008 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13009 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13010 then :
13011 INTELCC="yes"
13012 else $as_nop
13013 INTELCC="no"
13014 fi
13015 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13016 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13017 then :
13018 SUNCC="yes"
13019 else $as_nop
13020 SUNCC="no"
13021 fi
13022
13023
13024
13025
13026
13027
13028
13029
13030 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13031 if test -n "$ac_tool_prefix"; then
13032 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13033 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 printf %s "checking for $ac_word... " >&6; }
13036 if test ${ac_cv_path_PKG_CONFIG+y}
13037 then :
13038 printf %s "(cached) " >&6
13039 else $as_nop
13040 case $PKG_CONFIG in
13041 [\\/]* | ?:[\\/]*)
13042 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13043 ;;
13044 *)
13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13047 do
13048 IFS=$as_save_IFS
13049 case $as_dir in #(((
13050 '') as_dir=./ ;;
13051 */) ;;
13052 *) as_dir=$as_dir/ ;;
13053 esac
13054 for ac_exec_ext in '' $ac_executable_extensions; do
13055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13056 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13058 break 2
13059 fi
13060 done
13061 done
13062 IFS=$as_save_IFS
13063
13064 ;;
13065 esac
13066 fi
13067 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13068 if test -n "$PKG_CONFIG"; then
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13070 printf "%s\n" "$PKG_CONFIG" >&6; }
13071 else
13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073 printf "%s\n" "no" >&6; }
13074 fi
13075
13076
13077 fi
13078 if test -z "$ac_cv_path_PKG_CONFIG"; then
13079 ac_pt_PKG_CONFIG=$PKG_CONFIG
13080 # Extract the first word of "pkg-config", so it can be a program name with args.
13081 set dummy pkg-config; ac_word=$2
13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083 printf %s "checking for $ac_word... " >&6; }
13084 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13085 then :
13086 printf %s "(cached) " >&6
13087 else $as_nop
13088 case $ac_pt_PKG_CONFIG in
13089 [\\/]* | ?:[\\/]*)
13090 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13091 ;;
13092 *)
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13095 do
13096 IFS=$as_save_IFS
13097 case $as_dir in #(((
13098 '') as_dir=./ ;;
13099 */) ;;
13100 *) as_dir=$as_dir/ ;;
13101 esac
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13104 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13106 break 2
13107 fi
13108 done
13109 done
13110 IFS=$as_save_IFS
13111
13112 ;;
13113 esac
13114 fi
13115 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13116 if test -n "$ac_pt_PKG_CONFIG"; then
13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13118 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13119 else
13120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 printf "%s\n" "no" >&6; }
13122 fi
13123
13124 if test "x$ac_pt_PKG_CONFIG" = x; then
13125 PKG_CONFIG=""
13126 else
13127 case $cross_compiling:$ac_tool_warned in
13128 yes:)
13129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13131 ac_tool_warned=yes ;;
13132 esac
13133 PKG_CONFIG=$ac_pt_PKG_CONFIG
13134 fi
13135 else
13136 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13137 fi
13138
13139 fi
13140 if test -n "$PKG_CONFIG"; then
13141 _pkg_min_version=0.9.0
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13143 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13144 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13146 printf "%s\n" "yes" >&6; }
13147 else
13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 printf "%s\n" "no" >&6; }
13150 PKG_CONFIG=""
13151 fi
13152 fi
13153
13154
13155
13156
13157
13158 # Check whether --enable-selective-werror was given.
13159 if test ${enable_selective_werror+y}
13160 then :
13161 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13162 else $as_nop
13163 SELECTIVE_WERROR=yes
13164 fi
13165
13166
13167
13168
13169
13170 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13171 if test "x$SUNCC" = "xyes"; then
13172 BASE_CFLAGS="-v"
13173 else
13174 BASE_CFLAGS=""
13175 fi
13176
13177 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191 xorg_testset_save_CFLAGS="$CFLAGS"
13192
13193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13196 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13197 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13198 then :
13199 printf %s "(cached) " >&6
13200 else $as_nop
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203 int i;
13204 _ACEOF
13205 if ac_fn_c_try_compile "$LINENO"
13206 then :
13207 xorg_cv_cc_flag_unknown_warning_option=yes
13208 else $as_nop
13209 xorg_cv_cc_flag_unknown_warning_option=no
13210 fi
13211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13212 fi
13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13214 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13216 CFLAGS="$xorg_testset_save_CFLAGS"
13217 fi
13218
13219 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13222 fi
13223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13225 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13226 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13227 then :
13228 printf %s "(cached) " >&6
13229 else $as_nop
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13232 int i;
13233 _ACEOF
13234 if ac_fn_c_try_compile "$LINENO"
13235 then :
13236 xorg_cv_cc_flag_unused_command_line_argument=yes
13237 else $as_nop
13238 xorg_cv_cc_flag_unused_command_line_argument=no
13239 fi
13240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13241 fi
13242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13243 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13245 CFLAGS="$xorg_testset_save_CFLAGS"
13246 fi
13247
13248 found="no"
13249
13250 if test $found = "no" ; then
13251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13253 fi
13254
13255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13257 fi
13258
13259 CFLAGS="$CFLAGS -Wall"
13260
13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13262 printf %s "checking if $CC supports -Wall... " >&6; }
13263 cacheid=xorg_cv_cc_flag__Wall
13264 if eval test \${$cacheid+y}
13265 then :
13266 printf %s "(cached) " >&6
13267 else $as_nop
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13270 int i;
13271 int
13272 main (void)
13273 {
13274
13275 ;
13276 return 0;
13277 }
13278 _ACEOF
13279 if ac_fn_c_try_link "$LINENO"
13280 then :
13281 eval $cacheid=yes
13282 else $as_nop
13283 eval $cacheid=no
13284 fi
13285 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13286 conftest$ac_exeext conftest.$ac_ext
13287 fi
13288
13289
13290 CFLAGS="$xorg_testset_save_CFLAGS"
13291
13292 eval supported=\$$cacheid
13293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13294 printf "%s\n" "$supported" >&6; }
13295 if test "$supported" = "yes" ; then
13296 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13297 found="yes"
13298 fi
13299 fi
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315 xorg_testset_save_CFLAGS="$CFLAGS"
13316
13317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13320 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13321 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13322 then :
13323 printf %s "(cached) " >&6
13324 else $as_nop
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327 int i;
13328 _ACEOF
13329 if ac_fn_c_try_compile "$LINENO"
13330 then :
13331 xorg_cv_cc_flag_unknown_warning_option=yes
13332 else $as_nop
13333 xorg_cv_cc_flag_unknown_warning_option=no
13334 fi
13335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13336 fi
13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13338 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13340 CFLAGS="$xorg_testset_save_CFLAGS"
13341 fi
13342
13343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13346 fi
13347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13349 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13350 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13351 then :
13352 printf %s "(cached) " >&6
13353 else $as_nop
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 int i;
13357 _ACEOF
13358 if ac_fn_c_try_compile "$LINENO"
13359 then :
13360 xorg_cv_cc_flag_unused_command_line_argument=yes
13361 else $as_nop
13362 xorg_cv_cc_flag_unused_command_line_argument=no
13363 fi
13364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13365 fi
13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13367 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13369 CFLAGS="$xorg_testset_save_CFLAGS"
13370 fi
13371
13372 found="no"
13373
13374 if test $found = "no" ; then
13375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13377 fi
13378
13379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13381 fi
13382
13383 CFLAGS="$CFLAGS -Wpointer-arith"
13384
13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13386 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13387 cacheid=xorg_cv_cc_flag__Wpointer_arith
13388 if eval test \${$cacheid+y}
13389 then :
13390 printf %s "(cached) " >&6
13391 else $as_nop
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 int i;
13395 int
13396 main (void)
13397 {
13398
13399 ;
13400 return 0;
13401 }
13402 _ACEOF
13403 if ac_fn_c_try_link "$LINENO"
13404 then :
13405 eval $cacheid=yes
13406 else $as_nop
13407 eval $cacheid=no
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13410 conftest$ac_exeext conftest.$ac_ext
13411 fi
13412
13413
13414 CFLAGS="$xorg_testset_save_CFLAGS"
13415
13416 eval supported=\$$cacheid
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13418 printf "%s\n" "$supported" >&6; }
13419 if test "$supported" = "yes" ; then
13420 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13421 found="yes"
13422 fi
13423 fi
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439 xorg_testset_save_CFLAGS="$CFLAGS"
13440
13441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13444 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13445 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13446 then :
13447 printf %s "(cached) " >&6
13448 else $as_nop
13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451 int i;
13452 _ACEOF
13453 if ac_fn_c_try_compile "$LINENO"
13454 then :
13455 xorg_cv_cc_flag_unknown_warning_option=yes
13456 else $as_nop
13457 xorg_cv_cc_flag_unknown_warning_option=no
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13460 fi
13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13464 CFLAGS="$xorg_testset_save_CFLAGS"
13465 fi
13466
13467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13470 fi
13471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13475 then :
13476 printf %s "(cached) " >&6
13477 else $as_nop
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13480 int i;
13481 _ACEOF
13482 if ac_fn_c_try_compile "$LINENO"
13483 then :
13484 xorg_cv_cc_flag_unused_command_line_argument=yes
13485 else $as_nop
13486 xorg_cv_cc_flag_unused_command_line_argument=no
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13489 fi
13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13491 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13493 CFLAGS="$xorg_testset_save_CFLAGS"
13494 fi
13495
13496 found="no"
13497
13498 if test $found = "no" ; then
13499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13501 fi
13502
13503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13505 fi
13506
13507 CFLAGS="$CFLAGS -Wmissing-declarations"
13508
13509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13510 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13511 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13512 if eval test \${$cacheid+y}
13513 then :
13514 printf %s "(cached) " >&6
13515 else $as_nop
13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13518 int i;
13519 int
13520 main (void)
13521 {
13522
13523 ;
13524 return 0;
13525 }
13526 _ACEOF
13527 if ac_fn_c_try_link "$LINENO"
13528 then :
13529 eval $cacheid=yes
13530 else $as_nop
13531 eval $cacheid=no
13532 fi
13533 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13534 conftest$ac_exeext conftest.$ac_ext
13535 fi
13536
13537
13538 CFLAGS="$xorg_testset_save_CFLAGS"
13539
13540 eval supported=\$$cacheid
13541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13542 printf "%s\n" "$supported" >&6; }
13543 if test "$supported" = "yes" ; then
13544 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13545 found="yes"
13546 fi
13547 fi
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563 xorg_testset_save_CFLAGS="$CFLAGS"
13564
13565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13568 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13569 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13570 then :
13571 printf %s "(cached) " >&6
13572 else $as_nop
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13575 int i;
13576 _ACEOF
13577 if ac_fn_c_try_compile "$LINENO"
13578 then :
13579 xorg_cv_cc_flag_unknown_warning_option=yes
13580 else $as_nop
13581 xorg_cv_cc_flag_unknown_warning_option=no
13582 fi
13583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13584 fi
13585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13586 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13588 CFLAGS="$xorg_testset_save_CFLAGS"
13589 fi
13590
13591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13594 fi
13595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13597 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13598 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13599 then :
13600 printf %s "(cached) " >&6
13601 else $as_nop
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604 int i;
13605 _ACEOF
13606 if ac_fn_c_try_compile "$LINENO"
13607 then :
13608 xorg_cv_cc_flag_unused_command_line_argument=yes
13609 else $as_nop
13610 xorg_cv_cc_flag_unused_command_line_argument=no
13611 fi
13612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13613 fi
13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13615 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13617 CFLAGS="$xorg_testset_save_CFLAGS"
13618 fi
13619
13620 found="no"
13621
13622 if test $found = "no" ; then
13623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13625 fi
13626
13627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13629 fi
13630
13631 CFLAGS="$CFLAGS -Wformat=2"
13632
13633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13634 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13635 cacheid=xorg_cv_cc_flag__Wformat_2
13636 if eval test \${$cacheid+y}
13637 then :
13638 printf %s "(cached) " >&6
13639 else $as_nop
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 int i;
13643 int
13644 main (void)
13645 {
13646
13647 ;
13648 return 0;
13649 }
13650 _ACEOF
13651 if ac_fn_c_try_link "$LINENO"
13652 then :
13653 eval $cacheid=yes
13654 else $as_nop
13655 eval $cacheid=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13658 conftest$ac_exeext conftest.$ac_ext
13659 fi
13660
13661
13662 CFLAGS="$xorg_testset_save_CFLAGS"
13663
13664 eval supported=\$$cacheid
13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13666 printf "%s\n" "$supported" >&6; }
13667 if test "$supported" = "yes" ; then
13668 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13669 found="yes"
13670 fi
13671 fi
13672
13673 if test $found = "no" ; then
13674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13676 fi
13677
13678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13680 fi
13681
13682 CFLAGS="$CFLAGS -Wformat"
13683
13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13685 printf %s "checking if $CC supports -Wformat... " >&6; }
13686 cacheid=xorg_cv_cc_flag__Wformat
13687 if eval test \${$cacheid+y}
13688 then :
13689 printf %s "(cached) " >&6
13690 else $as_nop
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13693 int i;
13694 int
13695 main (void)
13696 {
13697
13698 ;
13699 return 0;
13700 }
13701 _ACEOF
13702 if ac_fn_c_try_link "$LINENO"
13703 then :
13704 eval $cacheid=yes
13705 else $as_nop
13706 eval $cacheid=no
13707 fi
13708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13709 conftest$ac_exeext conftest.$ac_ext
13710 fi
13711
13712
13713 CFLAGS="$xorg_testset_save_CFLAGS"
13714
13715 eval supported=\$$cacheid
13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13717 printf "%s\n" "$supported" >&6; }
13718 if test "$supported" = "yes" ; then
13719 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13720 found="yes"
13721 fi
13722 fi
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740 xorg_testset_save_CFLAGS="$CFLAGS"
13741
13742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13746 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13747 then :
13748 printf %s "(cached) " >&6
13749 else $as_nop
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 int i;
13753 _ACEOF
13754 if ac_fn_c_try_compile "$LINENO"
13755 then :
13756 xorg_cv_cc_flag_unknown_warning_option=yes
13757 else $as_nop
13758 xorg_cv_cc_flag_unknown_warning_option=no
13759 fi
13760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 $as_nop
13779 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 $as_nop
13787 xorg_cv_cc_flag_unused_command_line_argument=no
13788 fi
13789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13790 fi
13791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13792 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13794 CFLAGS="$xorg_testset_save_CFLAGS"
13795 fi
13796
13797 found="no"
13798
13799 if test $found = "no" ; then
13800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13802 fi
13803
13804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13806 fi
13807
13808 CFLAGS="$CFLAGS -Wstrict-prototypes"
13809
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13811 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13812 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13813 if eval test \${$cacheid+y}
13814 then :
13815 printf %s "(cached) " >&6
13816 else $as_nop
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819 int i;
13820 int
13821 main (void)
13822 {
13823
13824 ;
13825 return 0;
13826 }
13827 _ACEOF
13828 if ac_fn_c_try_link "$LINENO"
13829 then :
13830 eval $cacheid=yes
13831 else $as_nop
13832 eval $cacheid=no
13833 fi
13834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13835 conftest$ac_exeext conftest.$ac_ext
13836 fi
13837
13838
13839 CFLAGS="$xorg_testset_save_CFLAGS"
13840
13841 eval supported=\$$cacheid
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13843 printf "%s\n" "$supported" >&6; }
13844 if test "$supported" = "yes" ; then
13845 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13846 found="yes"
13847 fi
13848 fi
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864 xorg_testset_save_CFLAGS="$CFLAGS"
13865
13866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13869 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13870 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13871 then :
13872 printf %s "(cached) " >&6
13873 else $as_nop
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876 int i;
13877 _ACEOF
13878 if ac_fn_c_try_compile "$LINENO"
13879 then :
13880 xorg_cv_cc_flag_unknown_warning_option=yes
13881 else $as_nop
13882 xorg_cv_cc_flag_unknown_warning_option=no
13883 fi
13884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13885 fi
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13887 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13889 CFLAGS="$xorg_testset_save_CFLAGS"
13890 fi
13891
13892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13895 fi
13896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13898 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13899 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13900 then :
13901 printf %s "(cached) " >&6
13902 else $as_nop
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13905 int i;
13906 _ACEOF
13907 if ac_fn_c_try_compile "$LINENO"
13908 then :
13909 xorg_cv_cc_flag_unused_command_line_argument=yes
13910 else $as_nop
13911 xorg_cv_cc_flag_unused_command_line_argument=no
13912 fi
13913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13914 fi
13915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13916 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13918 CFLAGS="$xorg_testset_save_CFLAGS"
13919 fi
13920
13921 found="no"
13922
13923 if test $found = "no" ; then
13924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13926 fi
13927
13928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13930 fi
13931
13932 CFLAGS="$CFLAGS -Wmissing-prototypes"
13933
13934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13935 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13936 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13937 if eval test \${$cacheid+y}
13938 then :
13939 printf %s "(cached) " >&6
13940 else $as_nop
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943 int i;
13944 int
13945 main (void)
13946 {
13947
13948 ;
13949 return 0;
13950 }
13951 _ACEOF
13952 if ac_fn_c_try_link "$LINENO"
13953 then :
13954 eval $cacheid=yes
13955 else $as_nop
13956 eval $cacheid=no
13957 fi
13958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13959 conftest$ac_exeext conftest.$ac_ext
13960 fi
13961
13962
13963 CFLAGS="$xorg_testset_save_CFLAGS"
13964
13965 eval supported=\$$cacheid
13966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13967 printf "%s\n" "$supported" >&6; }
13968 if test "$supported" = "yes" ; then
13969 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13970 found="yes"
13971 fi
13972 fi
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988 xorg_testset_save_CFLAGS="$CFLAGS"
13989
13990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13993 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13994 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13995 then :
13996 printf %s "(cached) " >&6
13997 else $as_nop
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14000 int i;
14001 _ACEOF
14002 if ac_fn_c_try_compile "$LINENO"
14003 then :
14004 xorg_cv_cc_flag_unknown_warning_option=yes
14005 else $as_nop
14006 xorg_cv_cc_flag_unknown_warning_option=no
14007 fi
14008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14009 fi
14010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14011 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14013 CFLAGS="$xorg_testset_save_CFLAGS"
14014 fi
14015
14016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14019 fi
14020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14022 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14023 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14024 then :
14025 printf %s "(cached) " >&6
14026 else $as_nop
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14029 int i;
14030 _ACEOF
14031 if ac_fn_c_try_compile "$LINENO"
14032 then :
14033 xorg_cv_cc_flag_unused_command_line_argument=yes
14034 else $as_nop
14035 xorg_cv_cc_flag_unused_command_line_argument=no
14036 fi
14037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14038 fi
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14040 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14042 CFLAGS="$xorg_testset_save_CFLAGS"
14043 fi
14044
14045 found="no"
14046
14047 if test $found = "no" ; then
14048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14050 fi
14051
14052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14054 fi
14055
14056 CFLAGS="$CFLAGS -Wnested-externs"
14057
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14059 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14060 cacheid=xorg_cv_cc_flag__Wnested_externs
14061 if eval test \${$cacheid+y}
14062 then :
14063 printf %s "(cached) " >&6
14064 else $as_nop
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14067 int i;
14068 int
14069 main (void)
14070 {
14071
14072 ;
14073 return 0;
14074 }
14075 _ACEOF
14076 if ac_fn_c_try_link "$LINENO"
14077 then :
14078 eval $cacheid=yes
14079 else $as_nop
14080 eval $cacheid=no
14081 fi
14082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14083 conftest$ac_exeext conftest.$ac_ext
14084 fi
14085
14086
14087 CFLAGS="$xorg_testset_save_CFLAGS"
14088
14089 eval supported=\$$cacheid
14090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14091 printf "%s\n" "$supported" >&6; }
14092 if test "$supported" = "yes" ; then
14093 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14094 found="yes"
14095 fi
14096 fi
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112 xorg_testset_save_CFLAGS="$CFLAGS"
14113
14114 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14117 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14118 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14119 then :
14120 printf %s "(cached) " >&6
14121 else $as_nop
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 int i;
14125 _ACEOF
14126 if ac_fn_c_try_compile "$LINENO"
14127 then :
14128 xorg_cv_cc_flag_unknown_warning_option=yes
14129 else $as_nop
14130 xorg_cv_cc_flag_unknown_warning_option=no
14131 fi
14132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14133 fi
14134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14135 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14137 CFLAGS="$xorg_testset_save_CFLAGS"
14138 fi
14139
14140 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14143 fi
14144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14146 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14147 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14148 then :
14149 printf %s "(cached) " >&6
14150 else $as_nop
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 int i;
14154 _ACEOF
14155 if ac_fn_c_try_compile "$LINENO"
14156 then :
14157 xorg_cv_cc_flag_unused_command_line_argument=yes
14158 else $as_nop
14159 xorg_cv_cc_flag_unused_command_line_argument=no
14160 fi
14161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14162 fi
14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14164 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14166 CFLAGS="$xorg_testset_save_CFLAGS"
14167 fi
14168
14169 found="no"
14170
14171 if test $found = "no" ; then
14172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14174 fi
14175
14176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14178 fi
14179
14180 CFLAGS="$CFLAGS -Wbad-function-cast"
14181
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14183 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14184 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14185 if eval test \${$cacheid+y}
14186 then :
14187 printf %s "(cached) " >&6
14188 else $as_nop
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191 int i;
14192 int
14193 main (void)
14194 {
14195
14196 ;
14197 return 0;
14198 }
14199 _ACEOF
14200 if ac_fn_c_try_link "$LINENO"
14201 then :
14202 eval $cacheid=yes
14203 else $as_nop
14204 eval $cacheid=no
14205 fi
14206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14207 conftest$ac_exeext conftest.$ac_ext
14208 fi
14209
14210
14211 CFLAGS="$xorg_testset_save_CFLAGS"
14212
14213 eval supported=\$$cacheid
14214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14215 printf "%s\n" "$supported" >&6; }
14216 if test "$supported" = "yes" ; then
14217 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14218 found="yes"
14219 fi
14220 fi
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236 xorg_testset_save_CFLAGS="$CFLAGS"
14237
14238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14241 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14242 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14243 then :
14244 printf %s "(cached) " >&6
14245 else $as_nop
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14248 int i;
14249 _ACEOF
14250 if ac_fn_c_try_compile "$LINENO"
14251 then :
14252 xorg_cv_cc_flag_unknown_warning_option=yes
14253 else $as_nop
14254 xorg_cv_cc_flag_unknown_warning_option=no
14255 fi
14256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14257 fi
14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14259 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14261 CFLAGS="$xorg_testset_save_CFLAGS"
14262 fi
14263
14264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14267 fi
14268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14270 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14271 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14272 then :
14273 printf %s "(cached) " >&6
14274 else $as_nop
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 int i;
14278 _ACEOF
14279 if ac_fn_c_try_compile "$LINENO"
14280 then :
14281 xorg_cv_cc_flag_unused_command_line_argument=yes
14282 else $as_nop
14283 xorg_cv_cc_flag_unused_command_line_argument=no
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14286 fi
14287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14288 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14290 CFLAGS="$xorg_testset_save_CFLAGS"
14291 fi
14292
14293 found="no"
14294
14295 if test $found = "no" ; then
14296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14298 fi
14299
14300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14302 fi
14303
14304 CFLAGS="$CFLAGS -Wold-style-definition"
14305
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14307 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14308 cacheid=xorg_cv_cc_flag__Wold_style_definition
14309 if eval test \${$cacheid+y}
14310 then :
14311 printf %s "(cached) " >&6
14312 else $as_nop
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315 int i;
14316 int
14317 main (void)
14318 {
14319
14320 ;
14321 return 0;
14322 }
14323 _ACEOF
14324 if ac_fn_c_try_link "$LINENO"
14325 then :
14326 eval $cacheid=yes
14327 else $as_nop
14328 eval $cacheid=no
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14331 conftest$ac_exeext conftest.$ac_ext
14332 fi
14333
14334
14335 CFLAGS="$xorg_testset_save_CFLAGS"
14336
14337 eval supported=\$$cacheid
14338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14339 printf "%s\n" "$supported" >&6; }
14340 if test "$supported" = "yes" ; then
14341 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14342 found="yes"
14343 fi
14344 fi
14345
14346 if test $found = "no" ; then
14347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14349 fi
14350
14351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14353 fi
14354
14355 CFLAGS="$CFLAGS -fd"
14356
14357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14358 printf %s "checking if $CC supports -fd... " >&6; }
14359 cacheid=xorg_cv_cc_flag__fd
14360 if eval test \${$cacheid+y}
14361 then :
14362 printf %s "(cached) " >&6
14363 else $as_nop
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 int i;
14367 int
14368 main (void)
14369 {
14370
14371 ;
14372 return 0;
14373 }
14374 _ACEOF
14375 if ac_fn_c_try_link "$LINENO"
14376 then :
14377 eval $cacheid=yes
14378 else $as_nop
14379 eval $cacheid=no
14380 fi
14381 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14382 conftest$ac_exeext conftest.$ac_ext
14383 fi
14384
14385
14386 CFLAGS="$xorg_testset_save_CFLAGS"
14387
14388 eval supported=\$$cacheid
14389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14390 printf "%s\n" "$supported" >&6; }
14391 if test "$supported" = "yes" ; then
14392 BASE_CFLAGS="$BASE_CFLAGS -fd"
14393 found="yes"
14394 fi
14395 fi
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411 xorg_testset_save_CFLAGS="$CFLAGS"
14412
14413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14416 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14417 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14418 then :
14419 printf %s "(cached) " >&6
14420 else $as_nop
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423 int i;
14424 _ACEOF
14425 if ac_fn_c_try_compile "$LINENO"
14426 then :
14427 xorg_cv_cc_flag_unknown_warning_option=yes
14428 else $as_nop
14429 xorg_cv_cc_flag_unknown_warning_option=no
14430 fi
14431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14432 fi
14433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14434 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14436 CFLAGS="$xorg_testset_save_CFLAGS"
14437 fi
14438
14439 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14442 fi
14443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14445 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14446 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14447 then :
14448 printf %s "(cached) " >&6
14449 else $as_nop
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 int i;
14453 _ACEOF
14454 if ac_fn_c_try_compile "$LINENO"
14455 then :
14456 xorg_cv_cc_flag_unused_command_line_argument=yes
14457 else $as_nop
14458 xorg_cv_cc_flag_unused_command_line_argument=no
14459 fi
14460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14461 fi
14462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14463 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14465 CFLAGS="$xorg_testset_save_CFLAGS"
14466 fi
14467
14468 found="no"
14469
14470 if test $found = "no" ; then
14471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14473 fi
14474
14475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14477 fi
14478
14479 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14480
14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14482 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14483 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14484 if eval test \${$cacheid+y}
14485 then :
14486 printf %s "(cached) " >&6
14487 else $as_nop
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14490 int i;
14491 int
14492 main (void)
14493 {
14494
14495 ;
14496 return 0;
14497 }
14498 _ACEOF
14499 if ac_fn_c_try_link "$LINENO"
14500 then :
14501 eval $cacheid=yes
14502 else $as_nop
14503 eval $cacheid=no
14504 fi
14505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14506 conftest$ac_exeext conftest.$ac_ext
14507 fi
14508
14509
14510 CFLAGS="$xorg_testset_save_CFLAGS"
14511
14512 eval supported=\$$cacheid
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14514 printf "%s\n" "$supported" >&6; }
14515 if test "$supported" = "yes" ; then
14516 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14517 found="yes"
14518 fi
14519 fi
14520
14521
14522
14523
14524
14525 # This chunk adds additional warnings that could catch undesired effects.
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539 xorg_testset_save_CFLAGS="$CFLAGS"
14540
14541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14544 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14545 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14546 then :
14547 printf %s "(cached) " >&6
14548 else $as_nop
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551 int i;
14552 _ACEOF
14553 if ac_fn_c_try_compile "$LINENO"
14554 then :
14555 xorg_cv_cc_flag_unknown_warning_option=yes
14556 else $as_nop
14557 xorg_cv_cc_flag_unknown_warning_option=no
14558 fi
14559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14560 fi
14561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14562 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14564 CFLAGS="$xorg_testset_save_CFLAGS"
14565 fi
14566
14567 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14570 fi
14571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14573 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14574 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14575 then :
14576 printf %s "(cached) " >&6
14577 else $as_nop
14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h. */
14580 int i;
14581 _ACEOF
14582 if ac_fn_c_try_compile "$LINENO"
14583 then :
14584 xorg_cv_cc_flag_unused_command_line_argument=yes
14585 else $as_nop
14586 xorg_cv_cc_flag_unused_command_line_argument=no
14587 fi
14588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14589 fi
14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14591 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14593 CFLAGS="$xorg_testset_save_CFLAGS"
14594 fi
14595
14596 found="no"
14597
14598 if test $found = "no" ; then
14599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14601 fi
14602
14603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14605 fi
14606
14607 CFLAGS="$CFLAGS -Wunused"
14608
14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14610 printf %s "checking if $CC supports -Wunused... " >&6; }
14611 cacheid=xorg_cv_cc_flag__Wunused
14612 if eval test \${$cacheid+y}
14613 then :
14614 printf %s "(cached) " >&6
14615 else $as_nop
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14618 int i;
14619 int
14620 main (void)
14621 {
14622
14623 ;
14624 return 0;
14625 }
14626 _ACEOF
14627 if ac_fn_c_try_link "$LINENO"
14628 then :
14629 eval $cacheid=yes
14630 else $as_nop
14631 eval $cacheid=no
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14634 conftest$ac_exeext conftest.$ac_ext
14635 fi
14636
14637
14638 CFLAGS="$xorg_testset_save_CFLAGS"
14639
14640 eval supported=\$$cacheid
14641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14642 printf "%s\n" "$supported" >&6; }
14643 if test "$supported" = "yes" ; then
14644 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14645 found="yes"
14646 fi
14647 fi
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663 xorg_testset_save_CFLAGS="$CFLAGS"
14664
14665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14669 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14670 then :
14671 printf %s "(cached) " >&6
14672 else $as_nop
14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674 /* end confdefs.h. */
14675 int i;
14676 _ACEOF
14677 if ac_fn_c_try_compile "$LINENO"
14678 then :
14679 xorg_cv_cc_flag_unknown_warning_option=yes
14680 else $as_nop
14681 xorg_cv_cc_flag_unknown_warning_option=no
14682 fi
14683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14684 fi
14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14686 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14688 CFLAGS="$xorg_testset_save_CFLAGS"
14689 fi
14690
14691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14694 fi
14695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14697 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14698 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14699 then :
14700 printf %s "(cached) " >&6
14701 else $as_nop
14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703 /* end confdefs.h. */
14704 int i;
14705 _ACEOF
14706 if ac_fn_c_try_compile "$LINENO"
14707 then :
14708 xorg_cv_cc_flag_unused_command_line_argument=yes
14709 else $as_nop
14710 xorg_cv_cc_flag_unused_command_line_argument=no
14711 fi
14712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14713 fi
14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14715 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14717 CFLAGS="$xorg_testset_save_CFLAGS"
14718 fi
14719
14720 found="no"
14721
14722 if test $found = "no" ; then
14723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14725 fi
14726
14727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14729 fi
14730
14731 CFLAGS="$CFLAGS -Wuninitialized"
14732
14733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14734 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14735 cacheid=xorg_cv_cc_flag__Wuninitialized
14736 if eval test \${$cacheid+y}
14737 then :
14738 printf %s "(cached) " >&6
14739 else $as_nop
14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14742 int i;
14743 int
14744 main (void)
14745 {
14746
14747 ;
14748 return 0;
14749 }
14750 _ACEOF
14751 if ac_fn_c_try_link "$LINENO"
14752 then :
14753 eval $cacheid=yes
14754 else $as_nop
14755 eval $cacheid=no
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14758 conftest$ac_exeext conftest.$ac_ext
14759 fi
14760
14761
14762 CFLAGS="$xorg_testset_save_CFLAGS"
14763
14764 eval supported=\$$cacheid
14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14766 printf "%s\n" "$supported" >&6; }
14767 if test "$supported" = "yes" ; then
14768 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14769 found="yes"
14770 fi
14771 fi
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787 xorg_testset_save_CFLAGS="$CFLAGS"
14788
14789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14792 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14793 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14794 then :
14795 printf %s "(cached) " >&6
14796 else $as_nop
14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14799 int i;
14800 _ACEOF
14801 if ac_fn_c_try_compile "$LINENO"
14802 then :
14803 xorg_cv_cc_flag_unknown_warning_option=yes
14804 else $as_nop
14805 xorg_cv_cc_flag_unknown_warning_option=no
14806 fi
14807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14808 fi
14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14810 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14812 CFLAGS="$xorg_testset_save_CFLAGS"
14813 fi
14814
14815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14818 fi
14819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14821 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14822 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14823 then :
14824 printf %s "(cached) " >&6
14825 else $as_nop
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14828 int i;
14829 _ACEOF
14830 if ac_fn_c_try_compile "$LINENO"
14831 then :
14832 xorg_cv_cc_flag_unused_command_line_argument=yes
14833 else $as_nop
14834 xorg_cv_cc_flag_unused_command_line_argument=no
14835 fi
14836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14837 fi
14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14839 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14841 CFLAGS="$xorg_testset_save_CFLAGS"
14842 fi
14843
14844 found="no"
14845
14846 if test $found = "no" ; then
14847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14849 fi
14850
14851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14853 fi
14854
14855 CFLAGS="$CFLAGS -Wshadow"
14856
14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14858 printf %s "checking if $CC supports -Wshadow... " >&6; }
14859 cacheid=xorg_cv_cc_flag__Wshadow
14860 if eval test \${$cacheid+y}
14861 then :
14862 printf %s "(cached) " >&6
14863 else $as_nop
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14866 int i;
14867 int
14868 main (void)
14869 {
14870
14871 ;
14872 return 0;
14873 }
14874 _ACEOF
14875 if ac_fn_c_try_link "$LINENO"
14876 then :
14877 eval $cacheid=yes
14878 else $as_nop
14879 eval $cacheid=no
14880 fi
14881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14882 conftest$ac_exeext conftest.$ac_ext
14883 fi
14884
14885
14886 CFLAGS="$xorg_testset_save_CFLAGS"
14887
14888 eval supported=\$$cacheid
14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14890 printf "%s\n" "$supported" >&6; }
14891 if test "$supported" = "yes" ; then
14892 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14893 found="yes"
14894 fi
14895 fi
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911 xorg_testset_save_CFLAGS="$CFLAGS"
14912
14913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14916 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14917 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14918 then :
14919 printf %s "(cached) " >&6
14920 else $as_nop
14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14923 int i;
14924 _ACEOF
14925 if ac_fn_c_try_compile "$LINENO"
14926 then :
14927 xorg_cv_cc_flag_unknown_warning_option=yes
14928 else $as_nop
14929 xorg_cv_cc_flag_unknown_warning_option=no
14930 fi
14931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14932 fi
14933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14934 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14936 CFLAGS="$xorg_testset_save_CFLAGS"
14937 fi
14938
14939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14942 fi
14943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14945 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14946 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14947 then :
14948 printf %s "(cached) " >&6
14949 else $as_nop
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14952 int i;
14953 _ACEOF
14954 if ac_fn_c_try_compile "$LINENO"
14955 then :
14956 xorg_cv_cc_flag_unused_command_line_argument=yes
14957 else $as_nop
14958 xorg_cv_cc_flag_unused_command_line_argument=no
14959 fi
14960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14961 fi
14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14963 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14965 CFLAGS="$xorg_testset_save_CFLAGS"
14966 fi
14967
14968 found="no"
14969
14970 if test $found = "no" ; then
14971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14973 fi
14974
14975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14977 fi
14978
14979 CFLAGS="$CFLAGS -Wmissing-noreturn"
14980
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14982 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14983 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14984 if eval test \${$cacheid+y}
14985 then :
14986 printf %s "(cached) " >&6
14987 else $as_nop
14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h. */
14990 int i;
14991 int
14992 main (void)
14993 {
14994
14995 ;
14996 return 0;
14997 }
14998 _ACEOF
14999 if ac_fn_c_try_link "$LINENO"
15000 then :
15001 eval $cacheid=yes
15002 else $as_nop
15003 eval $cacheid=no
15004 fi
15005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15006 conftest$ac_exeext conftest.$ac_ext
15007 fi
15008
15009
15010 CFLAGS="$xorg_testset_save_CFLAGS"
15011
15012 eval supported=\$$cacheid
15013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15014 printf "%s\n" "$supported" >&6; }
15015 if test "$supported" = "yes" ; then
15016 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15017 found="yes"
15018 fi
15019 fi
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035 xorg_testset_save_CFLAGS="$CFLAGS"
15036
15037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15040 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15041 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15042 then :
15043 printf %s "(cached) " >&6
15044 else $as_nop
15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15047 int i;
15048 _ACEOF
15049 if ac_fn_c_try_compile "$LINENO"
15050 then :
15051 xorg_cv_cc_flag_unknown_warning_option=yes
15052 else $as_nop
15053 xorg_cv_cc_flag_unknown_warning_option=no
15054 fi
15055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15056 fi
15057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15058 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15060 CFLAGS="$xorg_testset_save_CFLAGS"
15061 fi
15062
15063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15066 fi
15067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15069 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15070 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15071 then :
15072 printf %s "(cached) " >&6
15073 else $as_nop
15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15076 int i;
15077 _ACEOF
15078 if ac_fn_c_try_compile "$LINENO"
15079 then :
15080 xorg_cv_cc_flag_unused_command_line_argument=yes
15081 else $as_nop
15082 xorg_cv_cc_flag_unused_command_line_argument=no
15083 fi
15084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15085 fi
15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15087 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15089 CFLAGS="$xorg_testset_save_CFLAGS"
15090 fi
15091
15092 found="no"
15093
15094 if test $found = "no" ; then
15095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15097 fi
15098
15099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15101 fi
15102
15103 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15104
15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15106 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15107 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15108 if eval test \${$cacheid+y}
15109 then :
15110 printf %s "(cached) " >&6
15111 else $as_nop
15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h. */
15114 int i;
15115 int
15116 main (void)
15117 {
15118
15119 ;
15120 return 0;
15121 }
15122 _ACEOF
15123 if ac_fn_c_try_link "$LINENO"
15124 then :
15125 eval $cacheid=yes
15126 else $as_nop
15127 eval $cacheid=no
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15130 conftest$ac_exeext conftest.$ac_ext
15131 fi
15132
15133
15134 CFLAGS="$xorg_testset_save_CFLAGS"
15135
15136 eval supported=\$$cacheid
15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15138 printf "%s\n" "$supported" >&6; }
15139 if test "$supported" = "yes" ; then
15140 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15141 found="yes"
15142 fi
15143 fi
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159 xorg_testset_save_CFLAGS="$CFLAGS"
15160
15161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15164 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15165 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15166 then :
15167 printf %s "(cached) " >&6
15168 else $as_nop
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 int i;
15172 _ACEOF
15173 if ac_fn_c_try_compile "$LINENO"
15174 then :
15175 xorg_cv_cc_flag_unknown_warning_option=yes
15176 else $as_nop
15177 xorg_cv_cc_flag_unknown_warning_option=no
15178 fi
15179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15180 fi
15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15182 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15184 CFLAGS="$xorg_testset_save_CFLAGS"
15185 fi
15186
15187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15190 fi
15191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15193 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15194 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15195 then :
15196 printf %s "(cached) " >&6
15197 else $as_nop
15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h. */
15200 int i;
15201 _ACEOF
15202 if ac_fn_c_try_compile "$LINENO"
15203 then :
15204 xorg_cv_cc_flag_unused_command_line_argument=yes
15205 else $as_nop
15206 xorg_cv_cc_flag_unused_command_line_argument=no
15207 fi
15208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15209 fi
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15211 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15213 CFLAGS="$xorg_testset_save_CFLAGS"
15214 fi
15215
15216 found="no"
15217
15218 if test $found = "no" ; then
15219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15221 fi
15222
15223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15225 fi
15226
15227 CFLAGS="$CFLAGS -Wredundant-decls"
15228
15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15230 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15231 cacheid=xorg_cv_cc_flag__Wredundant_decls
15232 if eval test \${$cacheid+y}
15233 then :
15234 printf %s "(cached) " >&6
15235 else $as_nop
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238 int i;
15239 int
15240 main (void)
15241 {
15242
15243 ;
15244 return 0;
15245 }
15246 _ACEOF
15247 if ac_fn_c_try_link "$LINENO"
15248 then :
15249 eval $cacheid=yes
15250 else $as_nop
15251 eval $cacheid=no
15252 fi
15253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15254 conftest$ac_exeext conftest.$ac_ext
15255 fi
15256
15257
15258 CFLAGS="$xorg_testset_save_CFLAGS"
15259
15260 eval supported=\$$cacheid
15261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15262 printf "%s\n" "$supported" >&6; }
15263 if test "$supported" = "yes" ; then
15264 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15265 found="yes"
15266 fi
15267 fi
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283 xorg_testset_save_CFLAGS="$CFLAGS"
15284
15285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15288 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15289 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15290 then :
15291 printf %s "(cached) " >&6
15292 else $as_nop
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15295 int i;
15296 _ACEOF
15297 if ac_fn_c_try_compile "$LINENO"
15298 then :
15299 xorg_cv_cc_flag_unknown_warning_option=yes
15300 else $as_nop
15301 xorg_cv_cc_flag_unknown_warning_option=no
15302 fi
15303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15304 fi
15305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15306 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15308 CFLAGS="$xorg_testset_save_CFLAGS"
15309 fi
15310
15311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15314 fi
15315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15317 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15318 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15319 then :
15320 printf %s "(cached) " >&6
15321 else $as_nop
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h. */
15324 int i;
15325 _ACEOF
15326 if ac_fn_c_try_compile "$LINENO"
15327 then :
15328 xorg_cv_cc_flag_unused_command_line_argument=yes
15329 else $as_nop
15330 xorg_cv_cc_flag_unused_command_line_argument=no
15331 fi
15332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15333 fi
15334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15335 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15337 CFLAGS="$xorg_testset_save_CFLAGS"
15338 fi
15339
15340 found="no"
15341
15342 if test $found = "no" ; then
15343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15345 fi
15346
15347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15349 fi
15350
15351 CFLAGS="$CFLAGS -Wlogical-op"
15352
15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15354 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15355 cacheid=xorg_cv_cc_flag__Wlogical_op
15356 if eval test \${$cacheid+y}
15357 then :
15358 printf %s "(cached) " >&6
15359 else $as_nop
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362 int i;
15363 int
15364 main (void)
15365 {
15366
15367 ;
15368 return 0;
15369 }
15370 _ACEOF
15371 if ac_fn_c_try_link "$LINENO"
15372 then :
15373 eval $cacheid=yes
15374 else $as_nop
15375 eval $cacheid=no
15376 fi
15377 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15378 conftest$ac_exeext conftest.$ac_ext
15379 fi
15380
15381
15382 CFLAGS="$xorg_testset_save_CFLAGS"
15383
15384 eval supported=\$$cacheid
15385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15386 printf "%s\n" "$supported" >&6; }
15387 if test "$supported" = "yes" ; then
15388 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15389 found="yes"
15390 fi
15391 fi
15392
15393
15394
15395 # These are currently disabled because they are noisy. They will be enabled
15396 # in the future once the codebase is sufficiently modernized to silence
15397 # them. For now, I don't want them to drown out the other warnings.
15398 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15399 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15400 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15401
15402 # Turn some warnings into errors, so we don't accidently get successful builds
15403 # when there are problems that should be fixed.
15404
15405 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419 xorg_testset_save_CFLAGS="$CFLAGS"
15420
15421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15424 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15425 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15426 then :
15427 printf %s "(cached) " >&6
15428 else $as_nop
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15431 int i;
15432 _ACEOF
15433 if ac_fn_c_try_compile "$LINENO"
15434 then :
15435 xorg_cv_cc_flag_unknown_warning_option=yes
15436 else $as_nop
15437 xorg_cv_cc_flag_unknown_warning_option=no
15438 fi
15439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15440 fi
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15442 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15444 CFLAGS="$xorg_testset_save_CFLAGS"
15445 fi
15446
15447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15450 fi
15451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15453 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15454 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15455 then :
15456 printf %s "(cached) " >&6
15457 else $as_nop
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h. */
15460 int i;
15461 _ACEOF
15462 if ac_fn_c_try_compile "$LINENO"
15463 then :
15464 xorg_cv_cc_flag_unused_command_line_argument=yes
15465 else $as_nop
15466 xorg_cv_cc_flag_unused_command_line_argument=no
15467 fi
15468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15469 fi
15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15471 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15473 CFLAGS="$xorg_testset_save_CFLAGS"
15474 fi
15475
15476 found="no"
15477
15478 if test $found = "no" ; then
15479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15481 fi
15482
15483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15485 fi
15486
15487 CFLAGS="$CFLAGS -Werror=implicit"
15488
15489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15490 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15491 cacheid=xorg_cv_cc_flag__Werror_implicit
15492 if eval test \${$cacheid+y}
15493 then :
15494 printf %s "(cached) " >&6
15495 else $as_nop
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15498 int i;
15499 int
15500 main (void)
15501 {
15502
15503 ;
15504 return 0;
15505 }
15506 _ACEOF
15507 if ac_fn_c_try_link "$LINENO"
15508 then :
15509 eval $cacheid=yes
15510 else $as_nop
15511 eval $cacheid=no
15512 fi
15513 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15514 conftest$ac_exeext conftest.$ac_ext
15515 fi
15516
15517
15518 CFLAGS="$xorg_testset_save_CFLAGS"
15519
15520 eval supported=\$$cacheid
15521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15522 printf "%s\n" "$supported" >&6; }
15523 if test "$supported" = "yes" ; then
15524 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15525 found="yes"
15526 fi
15527 fi
15528
15529 if test $found = "no" ; then
15530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15532 fi
15533
15534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15536 fi
15537
15538 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15539
15540 { 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
15541 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15542 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15543 if eval test \${$cacheid+y}
15544 then :
15545 printf %s "(cached) " >&6
15546 else $as_nop
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15549 int i;
15550 int
15551 main (void)
15552 {
15553
15554 ;
15555 return 0;
15556 }
15557 _ACEOF
15558 if ac_fn_c_try_link "$LINENO"
15559 then :
15560 eval $cacheid=yes
15561 else $as_nop
15562 eval $cacheid=no
15563 fi
15564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15565 conftest$ac_exeext conftest.$ac_ext
15566 fi
15567
15568
15569 CFLAGS="$xorg_testset_save_CFLAGS"
15570
15571 eval supported=\$$cacheid
15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15573 printf "%s\n" "$supported" >&6; }
15574 if test "$supported" = "yes" ; then
15575 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15576 found="yes"
15577 fi
15578 fi
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594 xorg_testset_save_CFLAGS="$CFLAGS"
15595
15596 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15599 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15600 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15601 then :
15602 printf %s "(cached) " >&6
15603 else $as_nop
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 int i;
15607 _ACEOF
15608 if ac_fn_c_try_compile "$LINENO"
15609 then :
15610 xorg_cv_cc_flag_unknown_warning_option=yes
15611 else $as_nop
15612 xorg_cv_cc_flag_unknown_warning_option=no
15613 fi
15614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15615 fi
15616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15617 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15619 CFLAGS="$xorg_testset_save_CFLAGS"
15620 fi
15621
15622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15625 fi
15626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15628 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15629 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15630 then :
15631 printf %s "(cached) " >&6
15632 else $as_nop
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 int i;
15636 _ACEOF
15637 if ac_fn_c_try_compile "$LINENO"
15638 then :
15639 xorg_cv_cc_flag_unused_command_line_argument=yes
15640 else $as_nop
15641 xorg_cv_cc_flag_unused_command_line_argument=no
15642 fi
15643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15644 fi
15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15646 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15648 CFLAGS="$xorg_testset_save_CFLAGS"
15649 fi
15650
15651 found="no"
15652
15653 if test $found = "no" ; then
15654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15656 fi
15657
15658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15660 fi
15661
15662 CFLAGS="$CFLAGS -Werror=nonnull"
15663
15664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15665 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15666 cacheid=xorg_cv_cc_flag__Werror_nonnull
15667 if eval test \${$cacheid+y}
15668 then :
15669 printf %s "(cached) " >&6
15670 else $as_nop
15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15673 int i;
15674 int
15675 main (void)
15676 {
15677
15678 ;
15679 return 0;
15680 }
15681 _ACEOF
15682 if ac_fn_c_try_link "$LINENO"
15683 then :
15684 eval $cacheid=yes
15685 else $as_nop
15686 eval $cacheid=no
15687 fi
15688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15689 conftest$ac_exeext conftest.$ac_ext
15690 fi
15691
15692
15693 CFLAGS="$xorg_testset_save_CFLAGS"
15694
15695 eval supported=\$$cacheid
15696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15697 printf "%s\n" "$supported" >&6; }
15698 if test "$supported" = "yes" ; then
15699 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15700 found="yes"
15701 fi
15702 fi
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718 xorg_testset_save_CFLAGS="$CFLAGS"
15719
15720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15723 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15724 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15725 then :
15726 printf %s "(cached) " >&6
15727 else $as_nop
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15730 int i;
15731 _ACEOF
15732 if ac_fn_c_try_compile "$LINENO"
15733 then :
15734 xorg_cv_cc_flag_unknown_warning_option=yes
15735 else $as_nop
15736 xorg_cv_cc_flag_unknown_warning_option=no
15737 fi
15738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15739 fi
15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15741 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15743 CFLAGS="$xorg_testset_save_CFLAGS"
15744 fi
15745
15746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15749 fi
15750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15752 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15753 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15754 then :
15755 printf %s "(cached) " >&6
15756 else $as_nop
15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15759 int i;
15760 _ACEOF
15761 if ac_fn_c_try_compile "$LINENO"
15762 then :
15763 xorg_cv_cc_flag_unused_command_line_argument=yes
15764 else $as_nop
15765 xorg_cv_cc_flag_unused_command_line_argument=no
15766 fi
15767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15768 fi
15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15770 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15772 CFLAGS="$xorg_testset_save_CFLAGS"
15773 fi
15774
15775 found="no"
15776
15777 if test $found = "no" ; then
15778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15780 fi
15781
15782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784 fi
15785
15786 CFLAGS="$CFLAGS -Werror=init-self"
15787
15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15789 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15790 cacheid=xorg_cv_cc_flag__Werror_init_self
15791 if eval test \${$cacheid+y}
15792 then :
15793 printf %s "(cached) " >&6
15794 else $as_nop
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 int i;
15798 int
15799 main (void)
15800 {
15801
15802 ;
15803 return 0;
15804 }
15805 _ACEOF
15806 if ac_fn_c_try_link "$LINENO"
15807 then :
15808 eval $cacheid=yes
15809 else $as_nop
15810 eval $cacheid=no
15811 fi
15812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15813 conftest$ac_exeext conftest.$ac_ext
15814 fi
15815
15816
15817 CFLAGS="$xorg_testset_save_CFLAGS"
15818
15819 eval supported=\$$cacheid
15820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15821 printf "%s\n" "$supported" >&6; }
15822 if test "$supported" = "yes" ; then
15823 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15824 found="yes"
15825 fi
15826 fi
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842 xorg_testset_save_CFLAGS="$CFLAGS"
15843
15844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15847 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15848 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15849 then :
15850 printf %s "(cached) " >&6
15851 else $as_nop
15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15854 int i;
15855 _ACEOF
15856 if ac_fn_c_try_compile "$LINENO"
15857 then :
15858 xorg_cv_cc_flag_unknown_warning_option=yes
15859 else $as_nop
15860 xorg_cv_cc_flag_unknown_warning_option=no
15861 fi
15862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15863 fi
15864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15865 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15867 CFLAGS="$xorg_testset_save_CFLAGS"
15868 fi
15869
15870 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15873 fi
15874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15876 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15877 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15878 then :
15879 printf %s "(cached) " >&6
15880 else $as_nop
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883 int i;
15884 _ACEOF
15885 if ac_fn_c_try_compile "$LINENO"
15886 then :
15887 xorg_cv_cc_flag_unused_command_line_argument=yes
15888 else $as_nop
15889 xorg_cv_cc_flag_unused_command_line_argument=no
15890 fi
15891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15892 fi
15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15894 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15896 CFLAGS="$xorg_testset_save_CFLAGS"
15897 fi
15898
15899 found="no"
15900
15901 if test $found = "no" ; then
15902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15904 fi
15905
15906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15908 fi
15909
15910 CFLAGS="$CFLAGS -Werror=main"
15911
15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15913 printf %s "checking if $CC supports -Werror=main... " >&6; }
15914 cacheid=xorg_cv_cc_flag__Werror_main
15915 if eval test \${$cacheid+y}
15916 then :
15917 printf %s "(cached) " >&6
15918 else $as_nop
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15921 int i;
15922 int
15923 main (void)
15924 {
15925
15926 ;
15927 return 0;
15928 }
15929 _ACEOF
15930 if ac_fn_c_try_link "$LINENO"
15931 then :
15932 eval $cacheid=yes
15933 else $as_nop
15934 eval $cacheid=no
15935 fi
15936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15937 conftest$ac_exeext conftest.$ac_ext
15938 fi
15939
15940
15941 CFLAGS="$xorg_testset_save_CFLAGS"
15942
15943 eval supported=\$$cacheid
15944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15945 printf "%s\n" "$supported" >&6; }
15946 if test "$supported" = "yes" ; then
15947 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15948 found="yes"
15949 fi
15950 fi
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966 xorg_testset_save_CFLAGS="$CFLAGS"
15967
15968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15972 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15973 then :
15974 printf %s "(cached) " >&6
15975 else $as_nop
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15978 int i;
15979 _ACEOF
15980 if ac_fn_c_try_compile "$LINENO"
15981 then :
15982 xorg_cv_cc_flag_unknown_warning_option=yes
15983 else $as_nop
15984 xorg_cv_cc_flag_unknown_warning_option=no
15985 fi
15986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15987 fi
15988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15989 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15991 CFLAGS="$xorg_testset_save_CFLAGS"
15992 fi
15993
15994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15997 fi
15998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16000 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16001 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16002 then :
16003 printf %s "(cached) " >&6
16004 else $as_nop
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 int i;
16008 _ACEOF
16009 if ac_fn_c_try_compile "$LINENO"
16010 then :
16011 xorg_cv_cc_flag_unused_command_line_argument=yes
16012 else $as_nop
16013 xorg_cv_cc_flag_unused_command_line_argument=no
16014 fi
16015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16016 fi
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16018 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16020 CFLAGS="$xorg_testset_save_CFLAGS"
16021 fi
16022
16023 found="no"
16024
16025 if test $found = "no" ; then
16026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16028 fi
16029
16030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16032 fi
16033
16034 CFLAGS="$CFLAGS -Werror=missing-braces"
16035
16036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16037 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16038 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16039 if eval test \${$cacheid+y}
16040 then :
16041 printf %s "(cached) " >&6
16042 else $as_nop
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16045 int i;
16046 int
16047 main (void)
16048 {
16049
16050 ;
16051 return 0;
16052 }
16053 _ACEOF
16054 if ac_fn_c_try_link "$LINENO"
16055 then :
16056 eval $cacheid=yes
16057 else $as_nop
16058 eval $cacheid=no
16059 fi
16060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16061 conftest$ac_exeext conftest.$ac_ext
16062 fi
16063
16064
16065 CFLAGS="$xorg_testset_save_CFLAGS"
16066
16067 eval supported=\$$cacheid
16068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16069 printf "%s\n" "$supported" >&6; }
16070 if test "$supported" = "yes" ; then
16071 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16072 found="yes"
16073 fi
16074 fi
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090 xorg_testset_save_CFLAGS="$CFLAGS"
16091
16092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16095 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16096 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16097 then :
16098 printf %s "(cached) " >&6
16099 else $as_nop
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16102 int i;
16103 _ACEOF
16104 if ac_fn_c_try_compile "$LINENO"
16105 then :
16106 xorg_cv_cc_flag_unknown_warning_option=yes
16107 else $as_nop
16108 xorg_cv_cc_flag_unknown_warning_option=no
16109 fi
16110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16111 fi
16112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16113 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16115 CFLAGS="$xorg_testset_save_CFLAGS"
16116 fi
16117
16118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16121 fi
16122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16124 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16125 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16126 then :
16127 printf %s "(cached) " >&6
16128 else $as_nop
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16131 int i;
16132 _ACEOF
16133 if ac_fn_c_try_compile "$LINENO"
16134 then :
16135 xorg_cv_cc_flag_unused_command_line_argument=yes
16136 else $as_nop
16137 xorg_cv_cc_flag_unused_command_line_argument=no
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16140 fi
16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16142 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16144 CFLAGS="$xorg_testset_save_CFLAGS"
16145 fi
16146
16147 found="no"
16148
16149 if test $found = "no" ; then
16150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16152 fi
16153
16154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16156 fi
16157
16158 CFLAGS="$CFLAGS -Werror=sequence-point"
16159
16160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16161 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16162 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16163 if eval test \${$cacheid+y}
16164 then :
16165 printf %s "(cached) " >&6
16166 else $as_nop
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169 int i;
16170 int
16171 main (void)
16172 {
16173
16174 ;
16175 return 0;
16176 }
16177 _ACEOF
16178 if ac_fn_c_try_link "$LINENO"
16179 then :
16180 eval $cacheid=yes
16181 else $as_nop
16182 eval $cacheid=no
16183 fi
16184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16185 conftest$ac_exeext conftest.$ac_ext
16186 fi
16187
16188
16189 CFLAGS="$xorg_testset_save_CFLAGS"
16190
16191 eval supported=\$$cacheid
16192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16193 printf "%s\n" "$supported" >&6; }
16194 if test "$supported" = "yes" ; then
16195 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16196 found="yes"
16197 fi
16198 fi
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214 xorg_testset_save_CFLAGS="$CFLAGS"
16215
16216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16220 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16221 then :
16222 printf %s "(cached) " >&6
16223 else $as_nop
16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h. */
16226 int i;
16227 _ACEOF
16228 if ac_fn_c_try_compile "$LINENO"
16229 then :
16230 xorg_cv_cc_flag_unknown_warning_option=yes
16231 else $as_nop
16232 xorg_cv_cc_flag_unknown_warning_option=no
16233 fi
16234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16235 fi
16236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16239 CFLAGS="$xorg_testset_save_CFLAGS"
16240 fi
16241
16242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16245 fi
16246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16250 then :
16251 printf %s "(cached) " >&6
16252 else $as_nop
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16255 int i;
16256 _ACEOF
16257 if ac_fn_c_try_compile "$LINENO"
16258 then :
16259 xorg_cv_cc_flag_unused_command_line_argument=yes
16260 else $as_nop
16261 xorg_cv_cc_flag_unused_command_line_argument=no
16262 fi
16263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16264 fi
16265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16266 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16268 CFLAGS="$xorg_testset_save_CFLAGS"
16269 fi
16270
16271 found="no"
16272
16273 if test $found = "no" ; then
16274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16276 fi
16277
16278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16280 fi
16281
16282 CFLAGS="$CFLAGS -Werror=return-type"
16283
16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16285 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16286 cacheid=xorg_cv_cc_flag__Werror_return_type
16287 if eval test \${$cacheid+y}
16288 then :
16289 printf %s "(cached) " >&6
16290 else $as_nop
16291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292 /* end confdefs.h. */
16293 int i;
16294 int
16295 main (void)
16296 {
16297
16298 ;
16299 return 0;
16300 }
16301 _ACEOF
16302 if ac_fn_c_try_link "$LINENO"
16303 then :
16304 eval $cacheid=yes
16305 else $as_nop
16306 eval $cacheid=no
16307 fi
16308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16309 conftest$ac_exeext conftest.$ac_ext
16310 fi
16311
16312
16313 CFLAGS="$xorg_testset_save_CFLAGS"
16314
16315 eval supported=\$$cacheid
16316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16317 printf "%s\n" "$supported" >&6; }
16318 if test "$supported" = "yes" ; then
16319 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16320 found="yes"
16321 fi
16322 fi
16323
16324 if test $found = "no" ; then
16325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16327 fi
16328
16329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16331 fi
16332
16333 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16334
16335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16336 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16337 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16338 if eval test \${$cacheid+y}
16339 then :
16340 printf %s "(cached) " >&6
16341 else $as_nop
16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h. */
16344 int i;
16345 int
16346 main (void)
16347 {
16348
16349 ;
16350 return 0;
16351 }
16352 _ACEOF
16353 if ac_fn_c_try_link "$LINENO"
16354 then :
16355 eval $cacheid=yes
16356 else $as_nop
16357 eval $cacheid=no
16358 fi
16359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16360 conftest$ac_exeext conftest.$ac_ext
16361 fi
16362
16363
16364 CFLAGS="$xorg_testset_save_CFLAGS"
16365
16366 eval supported=\$$cacheid
16367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16368 printf "%s\n" "$supported" >&6; }
16369 if test "$supported" = "yes" ; then
16370 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16371 found="yes"
16372 fi
16373 fi
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389 xorg_testset_save_CFLAGS="$CFLAGS"
16390
16391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16394 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16395 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16396 then :
16397 printf %s "(cached) " >&6
16398 else $as_nop
16399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400 /* end confdefs.h. */
16401 int i;
16402 _ACEOF
16403 if ac_fn_c_try_compile "$LINENO"
16404 then :
16405 xorg_cv_cc_flag_unknown_warning_option=yes
16406 else $as_nop
16407 xorg_cv_cc_flag_unknown_warning_option=no
16408 fi
16409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16410 fi
16411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16412 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16414 CFLAGS="$xorg_testset_save_CFLAGS"
16415 fi
16416
16417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16420 fi
16421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16423 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16424 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16425 then :
16426 printf %s "(cached) " >&6
16427 else $as_nop
16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429 /* end confdefs.h. */
16430 int i;
16431 _ACEOF
16432 if ac_fn_c_try_compile "$LINENO"
16433 then :
16434 xorg_cv_cc_flag_unused_command_line_argument=yes
16435 else $as_nop
16436 xorg_cv_cc_flag_unused_command_line_argument=no
16437 fi
16438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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=trigraphs"
16458
16459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16460 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16461 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16462 if eval test \${$cacheid+y}
16463 then :
16464 printf %s "(cached) " >&6
16465 else $as_nop
16466 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 $as_nop
16481 eval $cacheid=no
16482 fi
16483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16484 conftest$ac_exeext conftest.$ac_ext
16485 fi
16486
16487
16488 CFLAGS="$xorg_testset_save_CFLAGS"
16489
16490 eval supported=\$$cacheid
16491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16492 printf "%s\n" "$supported" >&6; }
16493 if test "$supported" = "yes" ; then
16494 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16495 found="yes"
16496 fi
16497 fi
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513 xorg_testset_save_CFLAGS="$CFLAGS"
16514
16515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16518 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16519 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16520 then :
16521 printf %s "(cached) " >&6
16522 else $as_nop
16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16525 int i;
16526 _ACEOF
16527 if ac_fn_c_try_compile "$LINENO"
16528 then :
16529 xorg_cv_cc_flag_unknown_warning_option=yes
16530 else $as_nop
16531 xorg_cv_cc_flag_unknown_warning_option=no
16532 fi
16533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16534 fi
16535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16536 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16538 CFLAGS="$xorg_testset_save_CFLAGS"
16539 fi
16540
16541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16544 fi
16545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16547 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16548 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16549 then :
16550 printf %s "(cached) " >&6
16551 else $as_nop
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16554 int i;
16555 _ACEOF
16556 if ac_fn_c_try_compile "$LINENO"
16557 then :
16558 xorg_cv_cc_flag_unused_command_line_argument=yes
16559 else $as_nop
16560 xorg_cv_cc_flag_unused_command_line_argument=no
16561 fi
16562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16563 fi
16564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16565 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16567 CFLAGS="$xorg_testset_save_CFLAGS"
16568 fi
16569
16570 found="no"
16571
16572 if test $found = "no" ; then
16573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16575 fi
16576
16577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16579 fi
16580
16581 CFLAGS="$CFLAGS -Werror=array-bounds"
16582
16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16584 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16585 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16586 if eval test \${$cacheid+y}
16587 then :
16588 printf %s "(cached) " >&6
16589 else $as_nop
16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16592 int i;
16593 int
16594 main (void)
16595 {
16596
16597 ;
16598 return 0;
16599 }
16600 _ACEOF
16601 if ac_fn_c_try_link "$LINENO"
16602 then :
16603 eval $cacheid=yes
16604 else $as_nop
16605 eval $cacheid=no
16606 fi
16607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16608 conftest$ac_exeext conftest.$ac_ext
16609 fi
16610
16611
16612 CFLAGS="$xorg_testset_save_CFLAGS"
16613
16614 eval supported=\$$cacheid
16615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16616 printf "%s\n" "$supported" >&6; }
16617 if test "$supported" = "yes" ; then
16618 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16619 found="yes"
16620 fi
16621 fi
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637 xorg_testset_save_CFLAGS="$CFLAGS"
16638
16639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16642 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16643 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16644 then :
16645 printf %s "(cached) " >&6
16646 else $as_nop
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h. */
16649 int i;
16650 _ACEOF
16651 if ac_fn_c_try_compile "$LINENO"
16652 then :
16653 xorg_cv_cc_flag_unknown_warning_option=yes
16654 else $as_nop
16655 xorg_cv_cc_flag_unknown_warning_option=no
16656 fi
16657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16658 fi
16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16660 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16662 CFLAGS="$xorg_testset_save_CFLAGS"
16663 fi
16664
16665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16668 fi
16669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16671 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16672 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16673 then :
16674 printf %s "(cached) " >&6
16675 else $as_nop
16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677 /* end confdefs.h. */
16678 int i;
16679 _ACEOF
16680 if ac_fn_c_try_compile "$LINENO"
16681 then :
16682 xorg_cv_cc_flag_unused_command_line_argument=yes
16683 else $as_nop
16684 xorg_cv_cc_flag_unused_command_line_argument=no
16685 fi
16686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16687 fi
16688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16689 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16691 CFLAGS="$xorg_testset_save_CFLAGS"
16692 fi
16693
16694 found="no"
16695
16696 if test $found = "no" ; then
16697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16699 fi
16700
16701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16703 fi
16704
16705 CFLAGS="$CFLAGS -Werror=write-strings"
16706
16707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16708 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16709 cacheid=xorg_cv_cc_flag__Werror_write_strings
16710 if eval test \${$cacheid+y}
16711 then :
16712 printf %s "(cached) " >&6
16713 else $as_nop
16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715 /* end confdefs.h. */
16716 int i;
16717 int
16718 main (void)
16719 {
16720
16721 ;
16722 return 0;
16723 }
16724 _ACEOF
16725 if ac_fn_c_try_link "$LINENO"
16726 then :
16727 eval $cacheid=yes
16728 else $as_nop
16729 eval $cacheid=no
16730 fi
16731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16732 conftest$ac_exeext conftest.$ac_ext
16733 fi
16734
16735
16736 CFLAGS="$xorg_testset_save_CFLAGS"
16737
16738 eval supported=\$$cacheid
16739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16740 printf "%s\n" "$supported" >&6; }
16741 if test "$supported" = "yes" ; then
16742 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16743 found="yes"
16744 fi
16745 fi
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761 xorg_testset_save_CFLAGS="$CFLAGS"
16762
16763 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16766 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16767 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16768 then :
16769 printf %s "(cached) " >&6
16770 else $as_nop
16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772 /* end confdefs.h. */
16773 int i;
16774 _ACEOF
16775 if ac_fn_c_try_compile "$LINENO"
16776 then :
16777 xorg_cv_cc_flag_unknown_warning_option=yes
16778 else $as_nop
16779 xorg_cv_cc_flag_unknown_warning_option=no
16780 fi
16781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16782 fi
16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16784 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16786 CFLAGS="$xorg_testset_save_CFLAGS"
16787 fi
16788
16789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16792 fi
16793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16795 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16796 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16797 then :
16798 printf %s "(cached) " >&6
16799 else $as_nop
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802 int i;
16803 _ACEOF
16804 if ac_fn_c_try_compile "$LINENO"
16805 then :
16806 xorg_cv_cc_flag_unused_command_line_argument=yes
16807 else $as_nop
16808 xorg_cv_cc_flag_unused_command_line_argument=no
16809 fi
16810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16811 fi
16812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16813 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16815 CFLAGS="$xorg_testset_save_CFLAGS"
16816 fi
16817
16818 found="no"
16819
16820 if test $found = "no" ; then
16821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16823 fi
16824
16825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16827 fi
16828
16829 CFLAGS="$CFLAGS -Werror=address"
16830
16831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16832 printf %s "checking if $CC supports -Werror=address... " >&6; }
16833 cacheid=xorg_cv_cc_flag__Werror_address
16834 if eval test \${$cacheid+y}
16835 then :
16836 printf %s "(cached) " >&6
16837 else $as_nop
16838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h. */
16840 int i;
16841 int
16842 main (void)
16843 {
16844
16845 ;
16846 return 0;
16847 }
16848 _ACEOF
16849 if ac_fn_c_try_link "$LINENO"
16850 then :
16851 eval $cacheid=yes
16852 else $as_nop
16853 eval $cacheid=no
16854 fi
16855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16856 conftest$ac_exeext conftest.$ac_ext
16857 fi
16858
16859
16860 CFLAGS="$xorg_testset_save_CFLAGS"
16861
16862 eval supported=\$$cacheid
16863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16864 printf "%s\n" "$supported" >&6; }
16865 if test "$supported" = "yes" ; then
16866 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16867 found="yes"
16868 fi
16869 fi
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885 xorg_testset_save_CFLAGS="$CFLAGS"
16886
16887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16890 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16891 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16892 then :
16893 printf %s "(cached) " >&6
16894 else $as_nop
16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896 /* end confdefs.h. */
16897 int i;
16898 _ACEOF
16899 if ac_fn_c_try_compile "$LINENO"
16900 then :
16901 xorg_cv_cc_flag_unknown_warning_option=yes
16902 else $as_nop
16903 xorg_cv_cc_flag_unknown_warning_option=no
16904 fi
16905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16906 fi
16907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16908 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16910 CFLAGS="$xorg_testset_save_CFLAGS"
16911 fi
16912
16913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16916 fi
16917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16919 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16920 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16921 then :
16922 printf %s "(cached) " >&6
16923 else $as_nop
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16926 int i;
16927 _ACEOF
16928 if ac_fn_c_try_compile "$LINENO"
16929 then :
16930 xorg_cv_cc_flag_unused_command_line_argument=yes
16931 else $as_nop
16932 xorg_cv_cc_flag_unused_command_line_argument=no
16933 fi
16934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16935 fi
16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16937 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16939 CFLAGS="$xorg_testset_save_CFLAGS"
16940 fi
16941
16942 found="no"
16943
16944 if test $found = "no" ; then
16945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16947 fi
16948
16949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16951 fi
16952
16953 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16954
16955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16956 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16957 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16958 if eval test \${$cacheid+y}
16959 then :
16960 printf %s "(cached) " >&6
16961 else $as_nop
16962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963 /* end confdefs.h. */
16964 int i;
16965 int
16966 main (void)
16967 {
16968
16969 ;
16970 return 0;
16971 }
16972 _ACEOF
16973 if ac_fn_c_try_link "$LINENO"
16974 then :
16975 eval $cacheid=yes
16976 else $as_nop
16977 eval $cacheid=no
16978 fi
16979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16980 conftest$ac_exeext conftest.$ac_ext
16981 fi
16982
16983
16984 CFLAGS="$xorg_testset_save_CFLAGS"
16985
16986 eval supported=\$$cacheid
16987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16988 printf "%s\n" "$supported" >&6; }
16989 if test "$supported" = "yes" ; then
16990 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16991 found="yes"
16992 fi
16993 fi
16994
16995 if test $found = "no" ; then
16996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16998 fi
16999
17000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17002 fi
17003
17004 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17005
17006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17007 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17008 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17009 if eval test \${$cacheid+y}
17010 then :
17011 printf %s "(cached) " >&6
17012 else $as_nop
17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014 /* end confdefs.h. */
17015 int i;
17016 int
17017 main (void)
17018 {
17019
17020 ;
17021 return 0;
17022 }
17023 _ACEOF
17024 if ac_fn_c_try_link "$LINENO"
17025 then :
17026 eval $cacheid=yes
17027 else $as_nop
17028 eval $cacheid=no
17029 fi
17030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17031 conftest$ac_exeext conftest.$ac_ext
17032 fi
17033
17034
17035 CFLAGS="$xorg_testset_save_CFLAGS"
17036
17037 eval supported=\$$cacheid
17038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17039 printf "%s\n" "$supported" >&6; }
17040 if test "$supported" = "yes" ; then
17041 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17042 found="yes"
17043 fi
17044 fi
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060 xorg_testset_save_CFLAGS="$CFLAGS"
17061
17062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17065 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17066 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17067 then :
17068 printf %s "(cached) " >&6
17069 else $as_nop
17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071 /* end confdefs.h. */
17072 int i;
17073 _ACEOF
17074 if ac_fn_c_try_compile "$LINENO"
17075 then :
17076 xorg_cv_cc_flag_unknown_warning_option=yes
17077 else $as_nop
17078 xorg_cv_cc_flag_unknown_warning_option=no
17079 fi
17080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17081 fi
17082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17083 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17085 CFLAGS="$xorg_testset_save_CFLAGS"
17086 fi
17087
17088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17091 fi
17092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17094 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17095 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17096 then :
17097 printf %s "(cached) " >&6
17098 else $as_nop
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17101 int i;
17102 _ACEOF
17103 if ac_fn_c_try_compile "$LINENO"
17104 then :
17105 xorg_cv_cc_flag_unused_command_line_argument=yes
17106 else $as_nop
17107 xorg_cv_cc_flag_unused_command_line_argument=no
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17110 fi
17111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17112 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17114 CFLAGS="$xorg_testset_save_CFLAGS"
17115 fi
17116
17117 found="no"
17118
17119 if test $found = "no" ; then
17120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17122 fi
17123
17124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17126 fi
17127
17128 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17129
17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17131 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17132 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17133 if eval test \${$cacheid+y}
17134 then :
17135 printf %s "(cached) " >&6
17136 else $as_nop
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17139 int i;
17140 int
17141 main (void)
17142 {
17143
17144 ;
17145 return 0;
17146 }
17147 _ACEOF
17148 if ac_fn_c_try_link "$LINENO"
17149 then :
17150 eval $cacheid=yes
17151 else $as_nop
17152 eval $cacheid=no
17153 fi
17154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17155 conftest$ac_exeext conftest.$ac_ext
17156 fi
17157
17158
17159 CFLAGS="$xorg_testset_save_CFLAGS"
17160
17161 eval supported=\$$cacheid
17162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17163 printf "%s\n" "$supported" >&6; }
17164 if test "$supported" = "yes" ; then
17165 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17166 found="yes"
17167 fi
17168 fi
17169
17170 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17171 else
17172 { 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
17173 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;}
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187 xorg_testset_save_CFLAGS="$CFLAGS"
17188
17189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17192 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17193 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17194 then :
17195 printf %s "(cached) " >&6
17196 else $as_nop
17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17199 int i;
17200 _ACEOF
17201 if ac_fn_c_try_compile "$LINENO"
17202 then :
17203 xorg_cv_cc_flag_unknown_warning_option=yes
17204 else $as_nop
17205 xorg_cv_cc_flag_unknown_warning_option=no
17206 fi
17207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17208 fi
17209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17210 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17212 CFLAGS="$xorg_testset_save_CFLAGS"
17213 fi
17214
17215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17218 fi
17219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17221 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17222 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17223 then :
17224 printf %s "(cached) " >&6
17225 else $as_nop
17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227 /* end confdefs.h. */
17228 int i;
17229 _ACEOF
17230 if ac_fn_c_try_compile "$LINENO"
17231 then :
17232 xorg_cv_cc_flag_unused_command_line_argument=yes
17233 else $as_nop
17234 xorg_cv_cc_flag_unused_command_line_argument=no
17235 fi
17236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17237 fi
17238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17239 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17241 CFLAGS="$xorg_testset_save_CFLAGS"
17242 fi
17243
17244 found="no"
17245
17246 if test $found = "no" ; then
17247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249 fi
17250
17251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253 fi
17254
17255 CFLAGS="$CFLAGS -Wimplicit"
17256
17257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17258 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17259 cacheid=xorg_cv_cc_flag__Wimplicit
17260 if eval test \${$cacheid+y}
17261 then :
17262 printf %s "(cached) " >&6
17263 else $as_nop
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17266 int i;
17267 int
17268 main (void)
17269 {
17270
17271 ;
17272 return 0;
17273 }
17274 _ACEOF
17275 if ac_fn_c_try_link "$LINENO"
17276 then :
17277 eval $cacheid=yes
17278 else $as_nop
17279 eval $cacheid=no
17280 fi
17281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17282 conftest$ac_exeext conftest.$ac_ext
17283 fi
17284
17285
17286 CFLAGS="$xorg_testset_save_CFLAGS"
17287
17288 eval supported=\$$cacheid
17289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17290 printf "%s\n" "$supported" >&6; }
17291 if test "$supported" = "yes" ; then
17292 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17293 found="yes"
17294 fi
17295 fi
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311 xorg_testset_save_CFLAGS="$CFLAGS"
17312
17313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17317 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17318 then :
17319 printf %s "(cached) " >&6
17320 else $as_nop
17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322 /* end confdefs.h. */
17323 int i;
17324 _ACEOF
17325 if ac_fn_c_try_compile "$LINENO"
17326 then :
17327 xorg_cv_cc_flag_unknown_warning_option=yes
17328 else $as_nop
17329 xorg_cv_cc_flag_unknown_warning_option=no
17330 fi
17331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17332 fi
17333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17336 CFLAGS="$xorg_testset_save_CFLAGS"
17337 fi
17338
17339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17342 fi
17343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17347 then :
17348 printf %s "(cached) " >&6
17349 else $as_nop
17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h. */
17352 int i;
17353 _ACEOF
17354 if ac_fn_c_try_compile "$LINENO"
17355 then :
17356 xorg_cv_cc_flag_unused_command_line_argument=yes
17357 else $as_nop
17358 xorg_cv_cc_flag_unused_command_line_argument=no
17359 fi
17360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17361 fi
17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17365 CFLAGS="$xorg_testset_save_CFLAGS"
17366 fi
17367
17368 found="no"
17369
17370 if test $found = "no" ; then
17371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17373 fi
17374
17375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377 fi
17378
17379 CFLAGS="$CFLAGS -Wnonnull"
17380
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17382 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17383 cacheid=xorg_cv_cc_flag__Wnonnull
17384 if eval test \${$cacheid+y}
17385 then :
17386 printf %s "(cached) " >&6
17387 else $as_nop
17388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389 /* end confdefs.h. */
17390 int i;
17391 int
17392 main (void)
17393 {
17394
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 if ac_fn_c_try_link "$LINENO"
17400 then :
17401 eval $cacheid=yes
17402 else $as_nop
17403 eval $cacheid=no
17404 fi
17405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17406 conftest$ac_exeext conftest.$ac_ext
17407 fi
17408
17409
17410 CFLAGS="$xorg_testset_save_CFLAGS"
17411
17412 eval supported=\$$cacheid
17413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17414 printf "%s\n" "$supported" >&6; }
17415 if test "$supported" = "yes" ; then
17416 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17417 found="yes"
17418 fi
17419 fi
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435 xorg_testset_save_CFLAGS="$CFLAGS"
17436
17437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17441 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17442 then :
17443 printf %s "(cached) " >&6
17444 else $as_nop
17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17447 int i;
17448 _ACEOF
17449 if ac_fn_c_try_compile "$LINENO"
17450 then :
17451 xorg_cv_cc_flag_unknown_warning_option=yes
17452 else $as_nop
17453 xorg_cv_cc_flag_unknown_warning_option=no
17454 fi
17455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17456 fi
17457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17458 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17460 CFLAGS="$xorg_testset_save_CFLAGS"
17461 fi
17462
17463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17466 fi
17467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17469 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17470 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17471 then :
17472 printf %s "(cached) " >&6
17473 else $as_nop
17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475 /* end confdefs.h. */
17476 int i;
17477 _ACEOF
17478 if ac_fn_c_try_compile "$LINENO"
17479 then :
17480 xorg_cv_cc_flag_unused_command_line_argument=yes
17481 else $as_nop
17482 xorg_cv_cc_flag_unused_command_line_argument=no
17483 fi
17484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17485 fi
17486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17487 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17489 CFLAGS="$xorg_testset_save_CFLAGS"
17490 fi
17491
17492 found="no"
17493
17494 if test $found = "no" ; then
17495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17497 fi
17498
17499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17501 fi
17502
17503 CFLAGS="$CFLAGS -Winit-self"
17504
17505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17506 printf %s "checking if $CC supports -Winit-self... " >&6; }
17507 cacheid=xorg_cv_cc_flag__Winit_self
17508 if eval test \${$cacheid+y}
17509 then :
17510 printf %s "(cached) " >&6
17511 else $as_nop
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h. */
17514 int i;
17515 int
17516 main (void)
17517 {
17518
17519 ;
17520 return 0;
17521 }
17522 _ACEOF
17523 if ac_fn_c_try_link "$LINENO"
17524 then :
17525 eval $cacheid=yes
17526 else $as_nop
17527 eval $cacheid=no
17528 fi
17529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17530 conftest$ac_exeext conftest.$ac_ext
17531 fi
17532
17533
17534 CFLAGS="$xorg_testset_save_CFLAGS"
17535
17536 eval supported=\$$cacheid
17537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17538 printf "%s\n" "$supported" >&6; }
17539 if test "$supported" = "yes" ; then
17540 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17541 found="yes"
17542 fi
17543 fi
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559 xorg_testset_save_CFLAGS="$CFLAGS"
17560
17561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17564 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17565 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17566 then :
17567 printf %s "(cached) " >&6
17568 else $as_nop
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17571 int i;
17572 _ACEOF
17573 if ac_fn_c_try_compile "$LINENO"
17574 then :
17575 xorg_cv_cc_flag_unknown_warning_option=yes
17576 else $as_nop
17577 xorg_cv_cc_flag_unknown_warning_option=no
17578 fi
17579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17580 fi
17581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17582 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17584 CFLAGS="$xorg_testset_save_CFLAGS"
17585 fi
17586
17587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17590 fi
17591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17593 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17594 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17595 then :
17596 printf %s "(cached) " >&6
17597 else $as_nop
17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17600 int i;
17601 _ACEOF
17602 if ac_fn_c_try_compile "$LINENO"
17603 then :
17604 xorg_cv_cc_flag_unused_command_line_argument=yes
17605 else $as_nop
17606 xorg_cv_cc_flag_unused_command_line_argument=no
17607 fi
17608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17609 fi
17610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17611 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17613 CFLAGS="$xorg_testset_save_CFLAGS"
17614 fi
17615
17616 found="no"
17617
17618 if test $found = "no" ; then
17619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17621 fi
17622
17623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17625 fi
17626
17627 CFLAGS="$CFLAGS -Wmain"
17628
17629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17630 printf %s "checking if $CC supports -Wmain... " >&6; }
17631 cacheid=xorg_cv_cc_flag__Wmain
17632 if eval test \${$cacheid+y}
17633 then :
17634 printf %s "(cached) " >&6
17635 else $as_nop
17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17638 int i;
17639 int
17640 main (void)
17641 {
17642
17643 ;
17644 return 0;
17645 }
17646 _ACEOF
17647 if ac_fn_c_try_link "$LINENO"
17648 then :
17649 eval $cacheid=yes
17650 else $as_nop
17651 eval $cacheid=no
17652 fi
17653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17654 conftest$ac_exeext conftest.$ac_ext
17655 fi
17656
17657
17658 CFLAGS="$xorg_testset_save_CFLAGS"
17659
17660 eval supported=\$$cacheid
17661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17662 printf "%s\n" "$supported" >&6; }
17663 if test "$supported" = "yes" ; then
17664 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17665 found="yes"
17666 fi
17667 fi
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683 xorg_testset_save_CFLAGS="$CFLAGS"
17684
17685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17689 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17690 then :
17691 printf %s "(cached) " >&6
17692 else $as_nop
17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h. */
17695 int i;
17696 _ACEOF
17697 if ac_fn_c_try_compile "$LINENO"
17698 then :
17699 xorg_cv_cc_flag_unknown_warning_option=yes
17700 else $as_nop
17701 xorg_cv_cc_flag_unknown_warning_option=no
17702 fi
17703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17704 fi
17705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17706 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17708 CFLAGS="$xorg_testset_save_CFLAGS"
17709 fi
17710
17711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17714 fi
17715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17717 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17718 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17719 then :
17720 printf %s "(cached) " >&6
17721 else $as_nop
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17724 int i;
17725 _ACEOF
17726 if ac_fn_c_try_compile "$LINENO"
17727 then :
17728 xorg_cv_cc_flag_unused_command_line_argument=yes
17729 else $as_nop
17730 xorg_cv_cc_flag_unused_command_line_argument=no
17731 fi
17732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17733 fi
17734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17735 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17737 CFLAGS="$xorg_testset_save_CFLAGS"
17738 fi
17739
17740 found="no"
17741
17742 if test $found = "no" ; then
17743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17745 fi
17746
17747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17749 fi
17750
17751 CFLAGS="$CFLAGS -Wmissing-braces"
17752
17753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17754 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17755 cacheid=xorg_cv_cc_flag__Wmissing_braces
17756 if eval test \${$cacheid+y}
17757 then :
17758 printf %s "(cached) " >&6
17759 else $as_nop
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17762 int i;
17763 int
17764 main (void)
17765 {
17766
17767 ;
17768 return 0;
17769 }
17770 _ACEOF
17771 if ac_fn_c_try_link "$LINENO"
17772 then :
17773 eval $cacheid=yes
17774 else $as_nop
17775 eval $cacheid=no
17776 fi
17777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17778 conftest$ac_exeext conftest.$ac_ext
17779 fi
17780
17781
17782 CFLAGS="$xorg_testset_save_CFLAGS"
17783
17784 eval supported=\$$cacheid
17785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17786 printf "%s\n" "$supported" >&6; }
17787 if test "$supported" = "yes" ; then
17788 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17789 found="yes"
17790 fi
17791 fi
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807 xorg_testset_save_CFLAGS="$CFLAGS"
17808
17809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17812 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17813 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17814 then :
17815 printf %s "(cached) " >&6
17816 else $as_nop
17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17819 int i;
17820 _ACEOF
17821 if ac_fn_c_try_compile "$LINENO"
17822 then :
17823 xorg_cv_cc_flag_unknown_warning_option=yes
17824 else $as_nop
17825 xorg_cv_cc_flag_unknown_warning_option=no
17826 fi
17827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17828 fi
17829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17830 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17832 CFLAGS="$xorg_testset_save_CFLAGS"
17833 fi
17834
17835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17838 fi
17839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17841 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17842 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17843 then :
17844 printf %s "(cached) " >&6
17845 else $as_nop
17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h. */
17848 int i;
17849 _ACEOF
17850 if ac_fn_c_try_compile "$LINENO"
17851 then :
17852 xorg_cv_cc_flag_unused_command_line_argument=yes
17853 else $as_nop
17854 xorg_cv_cc_flag_unused_command_line_argument=no
17855 fi
17856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17857 fi
17858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17859 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17861 CFLAGS="$xorg_testset_save_CFLAGS"
17862 fi
17863
17864 found="no"
17865
17866 if test $found = "no" ; then
17867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17869 fi
17870
17871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17873 fi
17874
17875 CFLAGS="$CFLAGS -Wsequence-point"
17876
17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17878 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17879 cacheid=xorg_cv_cc_flag__Wsequence_point
17880 if eval test \${$cacheid+y}
17881 then :
17882 printf %s "(cached) " >&6
17883 else $as_nop
17884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h. */
17886 int i;
17887 int
17888 main (void)
17889 {
17890
17891 ;
17892 return 0;
17893 }
17894 _ACEOF
17895 if ac_fn_c_try_link "$LINENO"
17896 then :
17897 eval $cacheid=yes
17898 else $as_nop
17899 eval $cacheid=no
17900 fi
17901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17902 conftest$ac_exeext conftest.$ac_ext
17903 fi
17904
17905
17906 CFLAGS="$xorg_testset_save_CFLAGS"
17907
17908 eval supported=\$$cacheid
17909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17910 printf "%s\n" "$supported" >&6; }
17911 if test "$supported" = "yes" ; then
17912 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17913 found="yes"
17914 fi
17915 fi
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931 xorg_testset_save_CFLAGS="$CFLAGS"
17932
17933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17936 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17937 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17938 then :
17939 printf %s "(cached) " >&6
17940 else $as_nop
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17943 int i;
17944 _ACEOF
17945 if ac_fn_c_try_compile "$LINENO"
17946 then :
17947 xorg_cv_cc_flag_unknown_warning_option=yes
17948 else $as_nop
17949 xorg_cv_cc_flag_unknown_warning_option=no
17950 fi
17951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17952 fi
17953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17954 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17956 CFLAGS="$xorg_testset_save_CFLAGS"
17957 fi
17958
17959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17962 fi
17963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17965 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17966 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17967 then :
17968 printf %s "(cached) " >&6
17969 else $as_nop
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17972 int i;
17973 _ACEOF
17974 if ac_fn_c_try_compile "$LINENO"
17975 then :
17976 xorg_cv_cc_flag_unused_command_line_argument=yes
17977 else $as_nop
17978 xorg_cv_cc_flag_unused_command_line_argument=no
17979 fi
17980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17981 fi
17982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17983 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17985 CFLAGS="$xorg_testset_save_CFLAGS"
17986 fi
17987
17988 found="no"
17989
17990 if test $found = "no" ; then
17991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17993 fi
17994
17995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17997 fi
17998
17999 CFLAGS="$CFLAGS -Wreturn-type"
18000
18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18002 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18003 cacheid=xorg_cv_cc_flag__Wreturn_type
18004 if eval test \${$cacheid+y}
18005 then :
18006 printf %s "(cached) " >&6
18007 else $as_nop
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18010 int i;
18011 int
18012 main (void)
18013 {
18014
18015 ;
18016 return 0;
18017 }
18018 _ACEOF
18019 if ac_fn_c_try_link "$LINENO"
18020 then :
18021 eval $cacheid=yes
18022 else $as_nop
18023 eval $cacheid=no
18024 fi
18025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18026 conftest$ac_exeext conftest.$ac_ext
18027 fi
18028
18029
18030 CFLAGS="$xorg_testset_save_CFLAGS"
18031
18032 eval supported=\$$cacheid
18033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18034 printf "%s\n" "$supported" >&6; }
18035 if test "$supported" = "yes" ; then
18036 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18037 found="yes"
18038 fi
18039 fi
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055 xorg_testset_save_CFLAGS="$CFLAGS"
18056
18057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18060 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18061 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18062 then :
18063 printf %s "(cached) " >&6
18064 else $as_nop
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h. */
18067 int i;
18068 _ACEOF
18069 if ac_fn_c_try_compile "$LINENO"
18070 then :
18071 xorg_cv_cc_flag_unknown_warning_option=yes
18072 else $as_nop
18073 xorg_cv_cc_flag_unknown_warning_option=no
18074 fi
18075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18076 fi
18077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18078 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18080 CFLAGS="$xorg_testset_save_CFLAGS"
18081 fi
18082
18083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18086 fi
18087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18089 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18090 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18091 then :
18092 printf %s "(cached) " >&6
18093 else $as_nop
18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h. */
18096 int i;
18097 _ACEOF
18098 if ac_fn_c_try_compile "$LINENO"
18099 then :
18100 xorg_cv_cc_flag_unused_command_line_argument=yes
18101 else $as_nop
18102 xorg_cv_cc_flag_unused_command_line_argument=no
18103 fi
18104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18105 fi
18106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18107 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18109 CFLAGS="$xorg_testset_save_CFLAGS"
18110 fi
18111
18112 found="no"
18113
18114 if test $found = "no" ; then
18115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18117 fi
18118
18119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18121 fi
18122
18123 CFLAGS="$CFLAGS -Wtrigraphs"
18124
18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18126 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18127 cacheid=xorg_cv_cc_flag__Wtrigraphs
18128 if eval test \${$cacheid+y}
18129 then :
18130 printf %s "(cached) " >&6
18131 else $as_nop
18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h. */
18134 int i;
18135 int
18136 main (void)
18137 {
18138
18139 ;
18140 return 0;
18141 }
18142 _ACEOF
18143 if ac_fn_c_try_link "$LINENO"
18144 then :
18145 eval $cacheid=yes
18146 else $as_nop
18147 eval $cacheid=no
18148 fi
18149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18150 conftest$ac_exeext conftest.$ac_ext
18151 fi
18152
18153
18154 CFLAGS="$xorg_testset_save_CFLAGS"
18155
18156 eval supported=\$$cacheid
18157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18158 printf "%s\n" "$supported" >&6; }
18159 if test "$supported" = "yes" ; then
18160 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18161 found="yes"
18162 fi
18163 fi
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179 xorg_testset_save_CFLAGS="$CFLAGS"
18180
18181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18184 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18185 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18186 then :
18187 printf %s "(cached) " >&6
18188 else $as_nop
18189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18190 /* end confdefs.h. */
18191 int i;
18192 _ACEOF
18193 if ac_fn_c_try_compile "$LINENO"
18194 then :
18195 xorg_cv_cc_flag_unknown_warning_option=yes
18196 else $as_nop
18197 xorg_cv_cc_flag_unknown_warning_option=no
18198 fi
18199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18200 fi
18201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18202 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18204 CFLAGS="$xorg_testset_save_CFLAGS"
18205 fi
18206
18207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18210 fi
18211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18213 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18214 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18215 then :
18216 printf %s "(cached) " >&6
18217 else $as_nop
18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18220 int i;
18221 _ACEOF
18222 if ac_fn_c_try_compile "$LINENO"
18223 then :
18224 xorg_cv_cc_flag_unused_command_line_argument=yes
18225 else $as_nop
18226 xorg_cv_cc_flag_unused_command_line_argument=no
18227 fi
18228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18229 fi
18230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18231 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18233 CFLAGS="$xorg_testset_save_CFLAGS"
18234 fi
18235
18236 found="no"
18237
18238 if test $found = "no" ; then
18239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18241 fi
18242
18243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18245 fi
18246
18247 CFLAGS="$CFLAGS -Warray-bounds"
18248
18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18250 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18251 cacheid=xorg_cv_cc_flag__Warray_bounds
18252 if eval test \${$cacheid+y}
18253 then :
18254 printf %s "(cached) " >&6
18255 else $as_nop
18256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257 /* end confdefs.h. */
18258 int i;
18259 int
18260 main (void)
18261 {
18262
18263 ;
18264 return 0;
18265 }
18266 _ACEOF
18267 if ac_fn_c_try_link "$LINENO"
18268 then :
18269 eval $cacheid=yes
18270 else $as_nop
18271 eval $cacheid=no
18272 fi
18273 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18274 conftest$ac_exeext conftest.$ac_ext
18275 fi
18276
18277
18278 CFLAGS="$xorg_testset_save_CFLAGS"
18279
18280 eval supported=\$$cacheid
18281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18282 printf "%s\n" "$supported" >&6; }
18283 if test "$supported" = "yes" ; then
18284 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18285 found="yes"
18286 fi
18287 fi
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303 xorg_testset_save_CFLAGS="$CFLAGS"
18304
18305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18308 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18309 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18310 then :
18311 printf %s "(cached) " >&6
18312 else $as_nop
18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315 int i;
18316 _ACEOF
18317 if ac_fn_c_try_compile "$LINENO"
18318 then :
18319 xorg_cv_cc_flag_unknown_warning_option=yes
18320 else $as_nop
18321 xorg_cv_cc_flag_unknown_warning_option=no
18322 fi
18323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18324 fi
18325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18326 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18328 CFLAGS="$xorg_testset_save_CFLAGS"
18329 fi
18330
18331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18334 fi
18335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18337 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18338 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18339 then :
18340 printf %s "(cached) " >&6
18341 else $as_nop
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18344 int i;
18345 _ACEOF
18346 if ac_fn_c_try_compile "$LINENO"
18347 then :
18348 xorg_cv_cc_flag_unused_command_line_argument=yes
18349 else $as_nop
18350 xorg_cv_cc_flag_unused_command_line_argument=no
18351 fi
18352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18353 fi
18354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18355 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18357 CFLAGS="$xorg_testset_save_CFLAGS"
18358 fi
18359
18360 found="no"
18361
18362 if test $found = "no" ; then
18363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18365 fi
18366
18367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18369 fi
18370
18371 CFLAGS="$CFLAGS -Wwrite-strings"
18372
18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18374 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18375 cacheid=xorg_cv_cc_flag__Wwrite_strings
18376 if eval test \${$cacheid+y}
18377 then :
18378 printf %s "(cached) " >&6
18379 else $as_nop
18380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18381 /* end confdefs.h. */
18382 int i;
18383 int
18384 main (void)
18385 {
18386
18387 ;
18388 return 0;
18389 }
18390 _ACEOF
18391 if ac_fn_c_try_link "$LINENO"
18392 then :
18393 eval $cacheid=yes
18394 else $as_nop
18395 eval $cacheid=no
18396 fi
18397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18398 conftest$ac_exeext conftest.$ac_ext
18399 fi
18400
18401
18402 CFLAGS="$xorg_testset_save_CFLAGS"
18403
18404 eval supported=\$$cacheid
18405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18406 printf "%s\n" "$supported" >&6; }
18407 if test "$supported" = "yes" ; then
18408 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18409 found="yes"
18410 fi
18411 fi
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427 xorg_testset_save_CFLAGS="$CFLAGS"
18428
18429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18432 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18433 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18434 then :
18435 printf %s "(cached) " >&6
18436 else $as_nop
18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18439 int i;
18440 _ACEOF
18441 if ac_fn_c_try_compile "$LINENO"
18442 then :
18443 xorg_cv_cc_flag_unknown_warning_option=yes
18444 else $as_nop
18445 xorg_cv_cc_flag_unknown_warning_option=no
18446 fi
18447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18448 fi
18449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18450 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18452 CFLAGS="$xorg_testset_save_CFLAGS"
18453 fi
18454
18455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18458 fi
18459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18461 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18462 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18463 then :
18464 printf %s "(cached) " >&6
18465 else $as_nop
18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h. */
18468 int i;
18469 _ACEOF
18470 if ac_fn_c_try_compile "$LINENO"
18471 then :
18472 xorg_cv_cc_flag_unused_command_line_argument=yes
18473 else $as_nop
18474 xorg_cv_cc_flag_unused_command_line_argument=no
18475 fi
18476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18477 fi
18478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18479 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18481 CFLAGS="$xorg_testset_save_CFLAGS"
18482 fi
18483
18484 found="no"
18485
18486 if test $found = "no" ; then
18487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18489 fi
18490
18491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18493 fi
18494
18495 CFLAGS="$CFLAGS -Waddress"
18496
18497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18498 printf %s "checking if $CC supports -Waddress... " >&6; }
18499 cacheid=xorg_cv_cc_flag__Waddress
18500 if eval test \${$cacheid+y}
18501 then :
18502 printf %s "(cached) " >&6
18503 else $as_nop
18504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18505 /* end confdefs.h. */
18506 int i;
18507 int
18508 main (void)
18509 {
18510
18511 ;
18512 return 0;
18513 }
18514 _ACEOF
18515 if ac_fn_c_try_link "$LINENO"
18516 then :
18517 eval $cacheid=yes
18518 else $as_nop
18519 eval $cacheid=no
18520 fi
18521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18522 conftest$ac_exeext conftest.$ac_ext
18523 fi
18524
18525
18526 CFLAGS="$xorg_testset_save_CFLAGS"
18527
18528 eval supported=\$$cacheid
18529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18530 printf "%s\n" "$supported" >&6; }
18531 if test "$supported" = "yes" ; then
18532 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18533 found="yes"
18534 fi
18535 fi
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551 xorg_testset_save_CFLAGS="$CFLAGS"
18552
18553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18556 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18557 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18558 then :
18559 printf %s "(cached) " >&6
18560 else $as_nop
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563 int i;
18564 _ACEOF
18565 if ac_fn_c_try_compile "$LINENO"
18566 then :
18567 xorg_cv_cc_flag_unknown_warning_option=yes
18568 else $as_nop
18569 xorg_cv_cc_flag_unknown_warning_option=no
18570 fi
18571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18572 fi
18573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18574 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18576 CFLAGS="$xorg_testset_save_CFLAGS"
18577 fi
18578
18579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18582 fi
18583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18585 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18586 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18587 then :
18588 printf %s "(cached) " >&6
18589 else $as_nop
18590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18591 /* end confdefs.h. */
18592 int i;
18593 _ACEOF
18594 if ac_fn_c_try_compile "$LINENO"
18595 then :
18596 xorg_cv_cc_flag_unused_command_line_argument=yes
18597 else $as_nop
18598 xorg_cv_cc_flag_unused_command_line_argument=no
18599 fi
18600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18601 fi
18602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18603 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18605 CFLAGS="$xorg_testset_save_CFLAGS"
18606 fi
18607
18608 found="no"
18609
18610 if test $found = "no" ; then
18611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18613 fi
18614
18615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18617 fi
18618
18619 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18620
18621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18622 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18623 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18624 if eval test \${$cacheid+y}
18625 then :
18626 printf %s "(cached) " >&6
18627 else $as_nop
18628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629 /* end confdefs.h. */
18630 int i;
18631 int
18632 main (void)
18633 {
18634
18635 ;
18636 return 0;
18637 }
18638 _ACEOF
18639 if ac_fn_c_try_link "$LINENO"
18640 then :
18641 eval $cacheid=yes
18642 else $as_nop
18643 eval $cacheid=no
18644 fi
18645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18646 conftest$ac_exeext conftest.$ac_ext
18647 fi
18648
18649
18650 CFLAGS="$xorg_testset_save_CFLAGS"
18651
18652 eval supported=\$$cacheid
18653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18654 printf "%s\n" "$supported" >&6; }
18655 if test "$supported" = "yes" ; then
18656 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18657 found="yes"
18658 fi
18659 fi
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675 xorg_testset_save_CFLAGS="$CFLAGS"
18676
18677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18680 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18681 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18682 then :
18683 printf %s "(cached) " >&6
18684 else $as_nop
18685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686 /* end confdefs.h. */
18687 int i;
18688 _ACEOF
18689 if ac_fn_c_try_compile "$LINENO"
18690 then :
18691 xorg_cv_cc_flag_unknown_warning_option=yes
18692 else $as_nop
18693 xorg_cv_cc_flag_unknown_warning_option=no
18694 fi
18695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18696 fi
18697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18698 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18700 CFLAGS="$xorg_testset_save_CFLAGS"
18701 fi
18702
18703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18706 fi
18707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18709 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18710 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18711 then :
18712 printf %s "(cached) " >&6
18713 else $as_nop
18714 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_unused_command_line_argument=yes
18721 else $as_nop
18722 xorg_cv_cc_flag_unused_command_line_argument=no
18723 fi
18724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18725 fi
18726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18727 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18729 CFLAGS="$xorg_testset_save_CFLAGS"
18730 fi
18731
18732 found="no"
18733
18734 if test $found = "no" ; then
18735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18737 fi
18738
18739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18741 fi
18742
18743 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18744
18745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18746 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18747 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18748 if eval test \${$cacheid+y}
18749 then :
18750 printf %s "(cached) " >&6
18751 else $as_nop
18752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18753 /* end confdefs.h. */
18754 int i;
18755 int
18756 main (void)
18757 {
18758
18759 ;
18760 return 0;
18761 }
18762 _ACEOF
18763 if ac_fn_c_try_link "$LINENO"
18764 then :
18765 eval $cacheid=yes
18766 else $as_nop
18767 eval $cacheid=no
18768 fi
18769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18770 conftest$ac_exeext conftest.$ac_ext
18771 fi
18772
18773
18774 CFLAGS="$xorg_testset_save_CFLAGS"
18775
18776 eval supported=\$$cacheid
18777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18778 printf "%s\n" "$supported" >&6; }
18779 if test "$supported" = "yes" ; then
18780 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18781 found="yes"
18782 fi
18783 fi
18784
18785
18786 fi
18787
18788
18789
18790
18791
18792
18793
18794 CWARNFLAGS="$BASE_CFLAGS"
18795 if test "x$GCC" = xyes ; then
18796 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18797 fi
18798
18799
18800
18801
18802
18803
18804
18805
18806 # Check whether --enable-strict-compilation was given.
18807 if test ${enable_strict_compilation+y}
18808 then :
18809 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18810 else $as_nop
18811 STRICT_COMPILE=no
18812 fi
18813
18814
18815
18816
18817
18818
18819 STRICT_CFLAGS=""
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833 xorg_testset_save_CFLAGS="$CFLAGS"
18834
18835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18840 then :
18841 printf %s "(cached) " >&6
18842 else $as_nop
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18845 int i;
18846 _ACEOF
18847 if ac_fn_c_try_compile "$LINENO"
18848 then :
18849 xorg_cv_cc_flag_unknown_warning_option=yes
18850 else $as_nop
18851 xorg_cv_cc_flag_unknown_warning_option=no
18852 fi
18853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18854 fi
18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18856 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18858 CFLAGS="$xorg_testset_save_CFLAGS"
18859 fi
18860
18861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18864 fi
18865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18867 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18868 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18869 then :
18870 printf %s "(cached) " >&6
18871 else $as_nop
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18874 int i;
18875 _ACEOF
18876 if ac_fn_c_try_compile "$LINENO"
18877 then :
18878 xorg_cv_cc_flag_unused_command_line_argument=yes
18879 else $as_nop
18880 xorg_cv_cc_flag_unused_command_line_argument=no
18881 fi
18882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18883 fi
18884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18885 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18887 CFLAGS="$xorg_testset_save_CFLAGS"
18888 fi
18889
18890 found="no"
18891
18892 if test $found = "no" ; then
18893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18895 fi
18896
18897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18899 fi
18900
18901 CFLAGS="$CFLAGS -pedantic"
18902
18903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18904 printf %s "checking if $CC supports -pedantic... " >&6; }
18905 cacheid=xorg_cv_cc_flag__pedantic
18906 if eval test \${$cacheid+y}
18907 then :
18908 printf %s "(cached) " >&6
18909 else $as_nop
18910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18911 /* end confdefs.h. */
18912 int i;
18913 int
18914 main (void)
18915 {
18916
18917 ;
18918 return 0;
18919 }
18920 _ACEOF
18921 if ac_fn_c_try_link "$LINENO"
18922 then :
18923 eval $cacheid=yes
18924 else $as_nop
18925 eval $cacheid=no
18926 fi
18927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18928 conftest$ac_exeext conftest.$ac_ext
18929 fi
18930
18931
18932 CFLAGS="$xorg_testset_save_CFLAGS"
18933
18934 eval supported=\$$cacheid
18935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18936 printf "%s\n" "$supported" >&6; }
18937 if test "$supported" = "yes" ; then
18938 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18939 found="yes"
18940 fi
18941 fi
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957 xorg_testset_save_CFLAGS="$CFLAGS"
18958
18959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18963 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18964 then :
18965 printf %s "(cached) " >&6
18966 else $as_nop
18967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18968 /* end confdefs.h. */
18969 int i;
18970 _ACEOF
18971 if ac_fn_c_try_compile "$LINENO"
18972 then :
18973 xorg_cv_cc_flag_unknown_warning_option=yes
18974 else $as_nop
18975 xorg_cv_cc_flag_unknown_warning_option=no
18976 fi
18977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18978 fi
18979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18982 CFLAGS="$xorg_testset_save_CFLAGS"
18983 fi
18984
18985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18988 fi
18989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18993 then :
18994 printf %s "(cached) " >&6
18995 else $as_nop
18996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18997 /* end confdefs.h. */
18998 int i;
18999 _ACEOF
19000 if ac_fn_c_try_compile "$LINENO"
19001 then :
19002 xorg_cv_cc_flag_unused_command_line_argument=yes
19003 else $as_nop
19004 xorg_cv_cc_flag_unused_command_line_argument=no
19005 fi
19006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19007 fi
19008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19011 CFLAGS="$xorg_testset_save_CFLAGS"
19012 fi
19013
19014 found="no"
19015
19016 if test $found = "no" ; then
19017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19019 fi
19020
19021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19023 fi
19024
19025 CFLAGS="$CFLAGS -Werror"
19026
19027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19028 printf %s "checking if $CC supports -Werror... " >&6; }
19029 cacheid=xorg_cv_cc_flag__Werror
19030 if eval test \${$cacheid+y}
19031 then :
19032 printf %s "(cached) " >&6
19033 else $as_nop
19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h. */
19036 int i;
19037 int
19038 main (void)
19039 {
19040
19041 ;
19042 return 0;
19043 }
19044 _ACEOF
19045 if ac_fn_c_try_link "$LINENO"
19046 then :
19047 eval $cacheid=yes
19048 else $as_nop
19049 eval $cacheid=no
19050 fi
19051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19052 conftest$ac_exeext conftest.$ac_ext
19053 fi
19054
19055
19056 CFLAGS="$xorg_testset_save_CFLAGS"
19057
19058 eval supported=\$$cacheid
19059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19060 printf "%s\n" "$supported" >&6; }
19061 if test "$supported" = "yes" ; then
19062 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19063 found="yes"
19064 fi
19065 fi
19066
19067 if test $found = "no" ; then
19068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19070 fi
19071
19072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19074 fi
19075
19076 CFLAGS="$CFLAGS -errwarn"
19077
19078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19079 printf %s "checking if $CC supports -errwarn... " >&6; }
19080 cacheid=xorg_cv_cc_flag__errwarn
19081 if eval test \${$cacheid+y}
19082 then :
19083 printf %s "(cached) " >&6
19084 else $as_nop
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19087 int i;
19088 int
19089 main (void)
19090 {
19091
19092 ;
19093 return 0;
19094 }
19095 _ACEOF
19096 if ac_fn_c_try_link "$LINENO"
19097 then :
19098 eval $cacheid=yes
19099 else $as_nop
19100 eval $cacheid=no
19101 fi
19102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19103 conftest$ac_exeext conftest.$ac_ext
19104 fi
19105
19106
19107 CFLAGS="$xorg_testset_save_CFLAGS"
19108
19109 eval supported=\$$cacheid
19110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19111 printf "%s\n" "$supported" >&6; }
19112 if test "$supported" = "yes" ; then
19113 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19114 found="yes"
19115 fi
19116 fi
19117
19118
19119
19120 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19121 # activate it with -Werror, so we add it here explicitly.
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135 xorg_testset_save_CFLAGS="$CFLAGS"
19136
19137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19140 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19141 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19142 then :
19143 printf %s "(cached) " >&6
19144 else $as_nop
19145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19146 /* end confdefs.h. */
19147 int i;
19148 _ACEOF
19149 if ac_fn_c_try_compile "$LINENO"
19150 then :
19151 xorg_cv_cc_flag_unknown_warning_option=yes
19152 else $as_nop
19153 xorg_cv_cc_flag_unknown_warning_option=no
19154 fi
19155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19156 fi
19157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19158 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19160 CFLAGS="$xorg_testset_save_CFLAGS"
19161 fi
19162
19163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19166 fi
19167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19169 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19170 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19171 then :
19172 printf %s "(cached) " >&6
19173 else $as_nop
19174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175 /* end confdefs.h. */
19176 int i;
19177 _ACEOF
19178 if ac_fn_c_try_compile "$LINENO"
19179 then :
19180 xorg_cv_cc_flag_unused_command_line_argument=yes
19181 else $as_nop
19182 xorg_cv_cc_flag_unused_command_line_argument=no
19183 fi
19184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19185 fi
19186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19187 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19189 CFLAGS="$xorg_testset_save_CFLAGS"
19190 fi
19191
19192 found="no"
19193
19194 if test $found = "no" ; then
19195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19197 fi
19198
19199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19201 fi
19202
19203 CFLAGS="$CFLAGS -Werror=attributes"
19204
19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19206 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19207 cacheid=xorg_cv_cc_flag__Werror_attributes
19208 if eval test \${$cacheid+y}
19209 then :
19210 printf %s "(cached) " >&6
19211 else $as_nop
19212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213 /* end confdefs.h. */
19214 int i;
19215 int
19216 main (void)
19217 {
19218
19219 ;
19220 return 0;
19221 }
19222 _ACEOF
19223 if ac_fn_c_try_link "$LINENO"
19224 then :
19225 eval $cacheid=yes
19226 else $as_nop
19227 eval $cacheid=no
19228 fi
19229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19230 conftest$ac_exeext conftest.$ac_ext
19231 fi
19232
19233
19234 CFLAGS="$xorg_testset_save_CFLAGS"
19235
19236 eval supported=\$$cacheid
19237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19238 printf "%s\n" "$supported" >&6; }
19239 if test "$supported" = "yes" ; then
19240 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19241 found="yes"
19242 fi
19243 fi
19244
19245
19246
19247 if test "x$STRICT_COMPILE" = "xyes"; then
19248 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19249 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19250 fi
19251
19252
19253
19254
19255
19256
19257 cat >>confdefs.h <<_ACEOF
19258 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19259 _ACEOF
19260
19261 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19262 if test "x$PVM" = "x"; then
19263 PVM="0"
19264 fi
19265
19266 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19267
19268 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19269 if test "x$PVP" = "x"; then
19270 PVP="0"
19271 fi
19272
19273 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19274
19275
19276
19277 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19278 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19279 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19280 touch \$(top_srcdir)/ChangeLog; \
19281 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19282
19283
19284
19285
19286 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19287 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19288 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19289 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19290 touch \$(top_srcdir)/INSTALL; \
19291 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19292
19293
19294
19295
19296
19297
19298 case $host_os in
19299 solaris*)
19300 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19301 # check for a man page file found in later versions that use
19302 # traditional section numbers instead
19303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19304 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19305 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19306 then :
19307 printf %s "(cached) " >&6
19308 else $as_nop
19309 test "$cross_compiling" = yes &&
19310 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19311 if test -r "/usr/share/man/man7/attributes.7"; then
19312 ac_cv_file__usr_share_man_man7_attributes_7=yes
19313 else
19314 ac_cv_file__usr_share_man_man7_attributes_7=no
19315 fi
19316 fi
19317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19318 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19319 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19320 then :
19321 SYSV_MAN_SECTIONS=false
19322 else $as_nop
19323 SYSV_MAN_SECTIONS=true
19324 fi
19325
19326 ;;
19327 *) SYSV_MAN_SECTIONS=false ;;
19328 esac
19329
19330 if test x$APP_MAN_SUFFIX = x ; then
19331 APP_MAN_SUFFIX=1
19332 fi
19333 if test x$APP_MAN_DIR = x ; then
19334 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19335 fi
19336
19337 if test x$LIB_MAN_SUFFIX = x ; then
19338 LIB_MAN_SUFFIX=3
19339 fi
19340 if test x$LIB_MAN_DIR = x ; then
19341 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19342 fi
19343
19344 if test x$FILE_MAN_SUFFIX = x ; then
19345 case $SYSV_MAN_SECTIONS in
19346 true) FILE_MAN_SUFFIX=4 ;;
19347 *) FILE_MAN_SUFFIX=5 ;;
19348 esac
19349 fi
19350 if test x$FILE_MAN_DIR = x ; then
19351 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19352 fi
19353
19354 if test x$MISC_MAN_SUFFIX = x ; then
19355 case $SYSV_MAN_SECTIONS in
19356 true) MISC_MAN_SUFFIX=5 ;;
19357 *) MISC_MAN_SUFFIX=7 ;;
19358 esac
19359 fi
19360 if test x$MISC_MAN_DIR = x ; then
19361 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19362 fi
19363
19364 if test x$DRIVER_MAN_SUFFIX = x ; then
19365 case $SYSV_MAN_SECTIONS in
19366 true) DRIVER_MAN_SUFFIX=7 ;;
19367 *) DRIVER_MAN_SUFFIX=4 ;;
19368 esac
19369 fi
19370 if test x$DRIVER_MAN_DIR = x ; then
19371 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19372 fi
19373
19374 if test x$ADMIN_MAN_SUFFIX = x ; then
19375 case $SYSV_MAN_SECTIONS in
19376 true) ADMIN_MAN_SUFFIX=1m ;;
19377 *) ADMIN_MAN_SUFFIX=8 ;;
19378 esac
19379 fi
19380 if test x$ADMIN_MAN_DIR = x ; then
19381 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19382 fi
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398 XORG_MAN_PAGE="X Version 11"
19399
19400 MAN_SUBSTS="\
19401 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19402 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19403 -e 's|__xservername__|Xorg|g' \
19404 -e 's|__xconfigfile__|xorg.conf|g' \
19405 -e 's|__projectroot__|\$(prefix)|g' \
19406 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19407 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19408 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19409 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19410 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19411 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19412 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19413
19414
19415
19416 # Check whether --enable-silent-rules was given.
19417 if test ${enable_silent_rules+y}
19418 then :
19419 enableval=$enable_silent_rules;
19420 fi
19421
19422 case $enable_silent_rules in # (((
19423 yes) AM_DEFAULT_VERBOSITY=0;;
19424 no) AM_DEFAULT_VERBOSITY=1;;
19425 *) AM_DEFAULT_VERBOSITY=0;;
19426 esac
19427 am_make=${MAKE-make}
19428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19429 printf %s "checking whether $am_make supports nested variables... " >&6; }
19430 if test ${am_cv_make_support_nested_variables+y}
19431 then :
19432 printf %s "(cached) " >&6
19433 else $as_nop
19434 if printf "%s\n" 'TRUE=$(BAR$(V))
19435 BAR0=false
19436 BAR1=true
19437 V=1
19438 am__doit:
19439 @$(TRUE)
19440 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19441 am_cv_make_support_nested_variables=yes
19442 else
19443 am_cv_make_support_nested_variables=no
19444 fi
19445 fi
19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19447 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19448 if test $am_cv_make_support_nested_variables = yes; then
19449 AM_V='$(V)'
19450 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19451 else
19452 AM_V=$AM_DEFAULT_VERBOSITY
19453 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19454 fi
19455 AM_BACKSLASH='\'
19456
19457
19458
19459
19460 # Check whether --enable-docs was given.
19461 if test ${enable_docs+y}
19462 then :
19463 enableval=$enable_docs; build_docs=$enableval
19464 else $as_nop
19465 build_docs=yes
19466 fi
19467
19468
19469 if test x$build_docs = xyes; then
19470 ENABLE_DOCS_TRUE=
19471 ENABLE_DOCS_FALSE='#'
19472 else
19473 ENABLE_DOCS_TRUE='#'
19474 ENABLE_DOCS_FALSE=
19475 fi
19476
19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
19478 printf %s "checking whether to build documentation... " >&6; }
19479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
19480 printf "%s\n" "$build_docs" >&6; }
19481
19482
19483
19484
19485
19486 # Check whether --with-xmlto was given.
19487 if test ${with_xmlto+y}
19488 then :
19489 withval=$with_xmlto; use_xmlto=$withval
19490 else $as_nop
19491 use_xmlto=auto
19492 fi
19493
19494
19495
19496 if test "x$use_xmlto" = x"auto"; then
19497 # Extract the first word of "xmlto", so it can be a program name with args.
19498 set dummy xmlto; ac_word=$2
19499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19500 printf %s "checking for $ac_word... " >&6; }
19501 if test ${ac_cv_path_XMLTO+y}
19502 then :
19503 printf %s "(cached) " >&6
19504 else $as_nop
19505 case $XMLTO in
19506 [\\/]* | ?:[\\/]*)
19507 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19508 ;;
19509 *)
19510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511 for as_dir in $PATH
19512 do
19513 IFS=$as_save_IFS
19514 case $as_dir in #(((
19515 '') as_dir=./ ;;
19516 */) ;;
19517 *) as_dir=$as_dir/ ;;
19518 esac
19519 for ac_exec_ext in '' $ac_executable_extensions; do
19520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19521 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19523 break 2
19524 fi
19525 done
19526 done
19527 IFS=$as_save_IFS
19528
19529 ;;
19530 esac
19531 fi
19532 XMLTO=$ac_cv_path_XMLTO
19533 if test -n "$XMLTO"; then
19534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19535 printf "%s\n" "$XMLTO" >&6; }
19536 else
19537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19538 printf "%s\n" "no" >&6; }
19539 fi
19540
19541
19542 if test "x$XMLTO" = "x"; then
19543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19544 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19545 have_xmlto=no
19546 else
19547 have_xmlto=yes
19548 fi
19549 elif test "x$use_xmlto" = x"yes" ; then
19550 # Extract the first word of "xmlto", so it can be a program name with args.
19551 set dummy xmlto; ac_word=$2
19552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19553 printf %s "checking for $ac_word... " >&6; }
19554 if test ${ac_cv_path_XMLTO+y}
19555 then :
19556 printf %s "(cached) " >&6
19557 else $as_nop
19558 case $XMLTO in
19559 [\\/]* | ?:[\\/]*)
19560 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19561 ;;
19562 *)
19563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19564 for as_dir in $PATH
19565 do
19566 IFS=$as_save_IFS
19567 case $as_dir in #(((
19568 '') as_dir=./ ;;
19569 */) ;;
19570 *) as_dir=$as_dir/ ;;
19571 esac
19572 for ac_exec_ext in '' $ac_executable_extensions; do
19573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19574 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19576 break 2
19577 fi
19578 done
19579 done
19580 IFS=$as_save_IFS
19581
19582 ;;
19583 esac
19584 fi
19585 XMLTO=$ac_cv_path_XMLTO
19586 if test -n "$XMLTO"; then
19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19588 printf "%s\n" "$XMLTO" >&6; }
19589 else
19590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19591 printf "%s\n" "no" >&6; }
19592 fi
19593
19594
19595 if test "x$XMLTO" = "x"; then
19596 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19597 fi
19598 have_xmlto=yes
19599 elif test "x$use_xmlto" = x"no" ; then
19600 if test "x$XMLTO" != "x"; then
19601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19602 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19603 fi
19604 have_xmlto=no
19605 else
19606 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19607 fi
19608
19609 # Test for a minimum version of xmlto, if provided.
19610 if test "$have_xmlto" = yes; then
19611 # scrape the xmlto version
19612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19613 printf %s "checking the xmlto version... " >&6; }
19614 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19616 printf "%s\n" "$xmlto_version" >&6; }
19617 as_arg_v1=$xmlto_version
19618 as_arg_v2=0.0.22
19619 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19620 case $? in #(
19621 1) :
19622 if test "x$use_xmlto" = xauto; then
19623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19624 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19625 have_xmlto=no
19626 else
19627 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19628 fi ;; #(
19629 0) :
19630 ;; #(
19631 2) :
19632 ;; #(
19633 *) :
19634 ;;
19635 esac
19636 fi
19637
19638 # Test for the ability of xmlto to generate a text target
19639 #
19640 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19641 # following test for empty XML docbook files.
19642 # For compatibility reasons use the following empty XML docbook file and if
19643 # it fails try it again with a non-empty XML file.
19644 have_xmlto_text=no
19645 cat > conftest.xml << "EOF"
19646 EOF
19647 if test "$have_xmlto" = yes
19648 then :
19649 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19650 then :
19651 have_xmlto_text=yes
19652 else $as_nop
19653 # Try it again with a non-empty XML file.
19654 cat > conftest.xml << "EOF"
19655 <x></x>
19656 EOF
19657 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19658 then :
19659 have_xmlto_text=yes
19660 else $as_nop
19661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19662 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19663 fi
19664 fi
19665 fi
19666 rm -f conftest.xml
19667 if test $have_xmlto_text = yes; then
19668 HAVE_XMLTO_TEXT_TRUE=
19669 HAVE_XMLTO_TEXT_FALSE='#'
19670 else
19671 HAVE_XMLTO_TEXT_TRUE='#'
19672 HAVE_XMLTO_TEXT_FALSE=
19673 fi
19674
19675 if test "$have_xmlto" = yes; then
19676 HAVE_XMLTO_TRUE=
19677 HAVE_XMLTO_FALSE='#'
19678 else
19679 HAVE_XMLTO_TRUE='#'
19680 HAVE_XMLTO_FALSE=
19681 fi
19682
19683
19684
19685
19686
19687
19688 # Check whether --with-fop was given.
19689 if test ${with_fop+y}
19690 then :
19691 withval=$with_fop; use_fop=$withval
19692 else $as_nop
19693 use_fop=auto
19694 fi
19695
19696
19697
19698 if test "x$use_fop" = x"auto"; then
19699 # Extract the first word of "fop", so it can be a program name with args.
19700 set dummy fop; ac_word=$2
19701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19702 printf %s "checking for $ac_word... " >&6; }
19703 if test ${ac_cv_path_FOP+y}
19704 then :
19705 printf %s "(cached) " >&6
19706 else $as_nop
19707 case $FOP in
19708 [\\/]* | ?:[\\/]*)
19709 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19710 ;;
19711 *)
19712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19713 for as_dir in $PATH
19714 do
19715 IFS=$as_save_IFS
19716 case $as_dir in #(((
19717 '') as_dir=./ ;;
19718 */) ;;
19719 *) as_dir=$as_dir/ ;;
19720 esac
19721 for ac_exec_ext in '' $ac_executable_extensions; do
19722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19723 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19725 break 2
19726 fi
19727 done
19728 done
19729 IFS=$as_save_IFS
19730
19731 ;;
19732 esac
19733 fi
19734 FOP=$ac_cv_path_FOP
19735 if test -n "$FOP"; then
19736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19737 printf "%s\n" "$FOP" >&6; }
19738 else
19739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19740 printf "%s\n" "no" >&6; }
19741 fi
19742
19743
19744 if test "x$FOP" = "x"; then
19745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19746 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19747 have_fop=no
19748 else
19749 have_fop=yes
19750 fi
19751 elif test "x$use_fop" = x"yes" ; then
19752 # Extract the first word of "fop", so it can be a program name with args.
19753 set dummy fop; ac_word=$2
19754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19755 printf %s "checking for $ac_word... " >&6; }
19756 if test ${ac_cv_path_FOP+y}
19757 then :
19758 printf %s "(cached) " >&6
19759 else $as_nop
19760 case $FOP in
19761 [\\/]* | ?:[\\/]*)
19762 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19763 ;;
19764 *)
19765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19766 for as_dir in $PATH
19767 do
19768 IFS=$as_save_IFS
19769 case $as_dir in #(((
19770 '') as_dir=./ ;;
19771 */) ;;
19772 *) as_dir=$as_dir/ ;;
19773 esac
19774 for ac_exec_ext in '' $ac_executable_extensions; do
19775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19776 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19778 break 2
19779 fi
19780 done
19781 done
19782 IFS=$as_save_IFS
19783
19784 ;;
19785 esac
19786 fi
19787 FOP=$ac_cv_path_FOP
19788 if test -n "$FOP"; then
19789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19790 printf "%s\n" "$FOP" >&6; }
19791 else
19792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19793 printf "%s\n" "no" >&6; }
19794 fi
19795
19796
19797 if test "x$FOP" = "x"; then
19798 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19799 fi
19800 have_fop=yes
19801 elif test "x$use_fop" = x"no" ; then
19802 if test "x$FOP" != "x"; then
19803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19804 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19805 fi
19806 have_fop=no
19807 else
19808 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19809 fi
19810
19811 # Test for a minimum version of fop, if provided.
19812
19813 if test "$have_fop" = yes; then
19814 HAVE_FOP_TRUE=
19815 HAVE_FOP_FALSE='#'
19816 else
19817 HAVE_FOP_TRUE='#'
19818 HAVE_FOP_FALSE=
19819 fi
19820
19821
19822
19823
19824 # Preserves the interface, should it be implemented later
19825
19826
19827
19828 # Check whether --with-xsltproc was given.
19829 if test ${with_xsltproc+y}
19830 then :
19831 withval=$with_xsltproc; use_xsltproc=$withval
19832 else $as_nop
19833 use_xsltproc=auto
19834 fi
19835
19836
19837
19838 if test "x$use_xsltproc" = x"auto"; then
19839 # Extract the first word of "xsltproc", so it can be a program name with args.
19840 set dummy xsltproc; ac_word=$2
19841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19842 printf %s "checking for $ac_word... " >&6; }
19843 if test ${ac_cv_path_XSLTPROC+y}
19844 then :
19845 printf %s "(cached) " >&6
19846 else $as_nop
19847 case $XSLTPROC in
19848 [\\/]* | ?:[\\/]*)
19849 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19850 ;;
19851 *)
19852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19853 for as_dir in $PATH
19854 do
19855 IFS=$as_save_IFS
19856 case $as_dir in #(((
19857 '') as_dir=./ ;;
19858 */) ;;
19859 *) as_dir=$as_dir/ ;;
19860 esac
19861 for ac_exec_ext in '' $ac_executable_extensions; do
19862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19863 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19865 break 2
19866 fi
19867 done
19868 done
19869 IFS=$as_save_IFS
19870
19871 ;;
19872 esac
19873 fi
19874 XSLTPROC=$ac_cv_path_XSLTPROC
19875 if test -n "$XSLTPROC"; then
19876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19877 printf "%s\n" "$XSLTPROC" >&6; }
19878 else
19879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19880 printf "%s\n" "no" >&6; }
19881 fi
19882
19883
19884 if test "x$XSLTPROC" = "x"; then
19885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19886 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19887 have_xsltproc=no
19888 else
19889 have_xsltproc=yes
19890 fi
19891 elif test "x$use_xsltproc" = x"yes" ; then
19892 # Extract the first word of "xsltproc", so it can be a program name with args.
19893 set dummy xsltproc; ac_word=$2
19894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19895 printf %s "checking for $ac_word... " >&6; }
19896 if test ${ac_cv_path_XSLTPROC+y}
19897 then :
19898 printf %s "(cached) " >&6
19899 else $as_nop
19900 case $XSLTPROC in
19901 [\\/]* | ?:[\\/]*)
19902 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19903 ;;
19904 *)
19905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19906 for as_dir in $PATH
19907 do
19908 IFS=$as_save_IFS
19909 case $as_dir in #(((
19910 '') as_dir=./ ;;
19911 */) ;;
19912 *) as_dir=$as_dir/ ;;
19913 esac
19914 for ac_exec_ext in '' $ac_executable_extensions; do
19915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19916 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
19917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19918 break 2
19919 fi
19920 done
19921 done
19922 IFS=$as_save_IFS
19923
19924 ;;
19925 esac
19926 fi
19927 XSLTPROC=$ac_cv_path_XSLTPROC
19928 if test -n "$XSLTPROC"; then
19929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19930 printf "%s\n" "$XSLTPROC" >&6; }
19931 else
19932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19933 printf "%s\n" "no" >&6; }
19934 fi
19935
19936
19937 if test "x$XSLTPROC" = "x"; then
19938 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19939 fi
19940 have_xsltproc=yes
19941 elif test "x$use_xsltproc" = x"no" ; then
19942 if test "x$XSLTPROC" != "x"; then
19943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19944 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19945 fi
19946 have_xsltproc=no
19947 else
19948 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19949 fi
19950
19951 if test "$have_xsltproc" = yes; then
19952 HAVE_XSLTPROC_TRUE=
19953 HAVE_XSLTPROC_FALSE='#'
19954 else
19955 HAVE_XSLTPROC_TRUE='#'
19956 HAVE_XSLTPROC_FALSE=
19957 fi
19958
19959
19960
19961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
19962 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
19963 XORG_SGML_PATH=
19964 if test -n "$PKG_CONFIG" && \
19965 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
19966 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
19967 ac_status=$?
19968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19969 test $ac_status = 0; }; then
19970 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19971 else
19972 :
19973
19974 fi
19975
19976 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19977 # the path and the name of the doc stylesheet
19978 if test "x$XORG_SGML_PATH" != "x" ; then
19979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19980 printf "%s\n" "$XORG_SGML_PATH" >&6; }
19981 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19982 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19983 else
19984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19985 printf "%s\n" "no" >&6; }
19986 fi
19987
19988
19989
19990
19991 if test "x$XSL_STYLESHEET" != "x"; then
19992 HAVE_STYLESHEETS_TRUE=
19993 HAVE_STYLESHEETS_FALSE='#'
19994 else
19995 HAVE_STYLESHEETS_TRUE='#'
19996 HAVE_STYLESHEETS_FALSE=
19997 fi
19998
19999
20000
20001 # Obtain compiler/linker options for dependencies
20002
20003 pkg_failed=no
20004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMU" >&5
20005 printf %s "checking for XMU... " >&6; }
20006
20007 if test -n "$XMU_CFLAGS"; then
20008 pkg_cv_XMU_CFLAGS="$XMU_CFLAGS"
20009 elif test -n "$PKG_CONFIG"; then
20010 if test -n "$PKG_CONFIG" && \
20011 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5
20012 ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5
20013 ac_status=$?
20014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20015 test $ac_status = 0; }; then
20016 pkg_cv_XMU_CFLAGS=`$PKG_CONFIG --cflags "xt xext x11 xextproto" 2>/dev/null`
20017 test "x$?" != "x0" && pkg_failed=yes
20018 else
20019 pkg_failed=yes
20020 fi
20021 else
20022 pkg_failed=untried
20023 fi
20024 if test -n "$XMU_LIBS"; then
20025 pkg_cv_XMU_LIBS="$XMU_LIBS"
20026 elif test -n "$PKG_CONFIG"; then
20027 if test -n "$PKG_CONFIG" && \
20028 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5
20029 ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5
20030 ac_status=$?
20031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20032 test $ac_status = 0; }; then
20033 pkg_cv_XMU_LIBS=`$PKG_CONFIG --libs "xt xext x11 xextproto" 2>/dev/null`
20034 test "x$?" != "x0" && pkg_failed=yes
20035 else
20036 pkg_failed=yes
20037 fi
20038 else
20039 pkg_failed=untried
20040 fi
20041
20042
20043
20044 if test $pkg_failed = yes; then
20045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046 printf "%s\n" "no" >&6; }
20047
20048 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20049 _pkg_short_errors_supported=yes
20050 else
20051 _pkg_short_errors_supported=no
20052 fi
20053 if test $_pkg_short_errors_supported = yes; then
20054 XMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt xext x11 xextproto" 2>&1`
20055 else
20056 XMU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt xext x11 xextproto" 2>&1`
20057 fi
20058 # Put the nasty error message in config.log where it belongs
20059 echo "$XMU_PKG_ERRORS" >&5
20060
20061 as_fn_error $? "Package requirements (xt xext x11 xextproto) were not met:
20062
20063 $XMU_PKG_ERRORS
20064
20065 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20066 installed software in a non-standard prefix.
20067
20068 Alternatively, you may set the environment variables XMU_CFLAGS
20069 and XMU_LIBS to avoid the need to call pkg-config.
20070 See the pkg-config man page for more details." "$LINENO" 5
20071 elif test $pkg_failed = untried; then
20072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20073 printf "%s\n" "no" >&6; }
20074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20075 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20076 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20077 is in your PATH or set the PKG_CONFIG environment variable to the full
20078 path to pkg-config.
20079
20080 Alternatively, you may set the environment variables XMU_CFLAGS
20081 and XMU_LIBS to avoid the need to call pkg-config.
20082 See the pkg-config man page for more details.
20083
20084 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20085 See \`config.log' for more details" "$LINENO" 5; }
20086 else
20087 XMU_CFLAGS=$pkg_cv_XMU_CFLAGS
20088 XMU_LIBS=$pkg_cv_XMU_LIBS
20089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20090 printf "%s\n" "yes" >&6; }
20091
20092 fi
20093
20094 pkg_failed=no
20095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMUU" >&5
20096 printf %s "checking for XMUU... " >&6; }
20097
20098 if test -n "$XMUU_CFLAGS"; then
20099 pkg_cv_XMUU_CFLAGS="$XMUU_CFLAGS"
20100 elif test -n "$PKG_CONFIG"; then
20101 if test -n "$PKG_CONFIG" && \
20102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
20103 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
20104 ac_status=$?
20105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20106 test $ac_status = 0; }; then
20107 pkg_cv_XMUU_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
20108 test "x$?" != "x0" && pkg_failed=yes
20109 else
20110 pkg_failed=yes
20111 fi
20112 else
20113 pkg_failed=untried
20114 fi
20115 if test -n "$XMUU_LIBS"; then
20116 pkg_cv_XMUU_LIBS="$XMUU_LIBS"
20117 elif test -n "$PKG_CONFIG"; then
20118 if test -n "$PKG_CONFIG" && \
20119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
20120 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
20121 ac_status=$?
20122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20123 test $ac_status = 0; }; then
20124 pkg_cv_XMUU_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
20125 test "x$?" != "x0" && pkg_failed=yes
20126 else
20127 pkg_failed=yes
20128 fi
20129 else
20130 pkg_failed=untried
20131 fi
20132
20133
20134
20135 if test $pkg_failed = yes; then
20136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20137 printf "%s\n" "no" >&6; }
20138
20139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20140 _pkg_short_errors_supported=yes
20141 else
20142 _pkg_short_errors_supported=no
20143 fi
20144 if test $_pkg_short_errors_supported = yes; then
20145 XMUU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
20146 else
20147 XMUU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
20148 fi
20149 # Put the nasty error message in config.log where it belongs
20150 echo "$XMUU_PKG_ERRORS" >&5
20151
20152 as_fn_error $? "Package requirements (x11) were not met:
20153
20154 $XMUU_PKG_ERRORS
20155
20156 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20157 installed software in a non-standard prefix.
20158
20159 Alternatively, you may set the environment variables XMUU_CFLAGS
20160 and XMUU_LIBS to avoid the need to call pkg-config.
20161 See the pkg-config man page for more details." "$LINENO" 5
20162 elif test $pkg_failed = untried; then
20163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20164 printf "%s\n" "no" >&6; }
20165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20166 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20167 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20168 is in your PATH or set the PKG_CONFIG environment variable to the full
20169 path to pkg-config.
20170
20171 Alternatively, you may set the environment variables XMUU_CFLAGS
20172 and XMUU_LIBS to avoid the need to call pkg-config.
20173 See the pkg-config man page for more details.
20174
20175 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20176 See \`config.log' for more details" "$LINENO" 5; }
20177 else
20178 XMUU_CFLAGS=$pkg_cv_XMUU_CFLAGS
20179 XMUU_LIBS=$pkg_cv_XMUU_LIBS
20180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20181 printf "%s\n" "yes" >&6; }
20182
20183 fi
20184
20185 # Checks for library functions.
20186 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
20187 if test "x$ac_cv_func_uname" = xyes
20188 then :
20189 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
20190
20191 fi
20192
20193 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20194 if test "x$ac_cv_func_reallocarray" = xyes
20195 then :
20196 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20197
20198 else $as_nop
20199 case " $LIBOBJS " in
20200 *" reallocarray.$ac_objext "* ) ;;
20201 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20202 ;;
20203 esac
20204
20205 fi
20206
20207
20208 # Allow checking code with lint, sparse, etc.
20209
20210
20211
20212
20213
20214 # Check whether --with-lint was given.
20215 if test ${with_lint+y}
20216 then :
20217 withval=$with_lint; use_lint=$withval
20218 else $as_nop
20219 use_lint=no
20220 fi
20221
20222
20223 # Obtain platform specific info like program name and options
20224 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
20225 case $host_os in
20226 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20227 lint_name=splint
20228 lint_options="-badflag"
20229 ;;
20230 *freebsd* | *netbsd*)
20231 lint_name=lint
20232 lint_options="-u -b"
20233 ;;
20234 *solaris*)
20235 lint_name=lint
20236 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20237 ;;
20238 esac
20239
20240 # Test for the presence of the program (either guessed by the code or spelled out by the user)
20241 if test "x$use_lint" = x"yes" ; then
20242 # Extract the first word of "$lint_name", so it can be a program name with args.
20243 set dummy $lint_name; ac_word=$2
20244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20245 printf %s "checking for $ac_word... " >&6; }
20246 if test ${ac_cv_path_LINT+y}
20247 then :
20248 printf %s "(cached) " >&6
20249 else $as_nop
20250 case $LINT in
20251 [\\/]* | ?:[\\/]*)
20252 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20253 ;;
20254 *)
20255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20256 for as_dir in $PATH
20257 do
20258 IFS=$as_save_IFS
20259 case $as_dir in #(((
20260 '') as_dir=./ ;;
20261 */) ;;
20262 *) as_dir=$as_dir/ ;;
20263 esac
20264 for ac_exec_ext in '' $ac_executable_extensions; do
20265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20266 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20268 break 2
20269 fi
20270 done
20271 done
20272 IFS=$as_save_IFS
20273
20274 ;;
20275 esac
20276 fi
20277 LINT=$ac_cv_path_LINT
20278 if test -n "$LINT"; then
20279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20280 printf "%s\n" "$LINT" >&6; }
20281 else
20282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20283 printf "%s\n" "no" >&6; }
20284 fi
20285
20286
20287 if test "x$LINT" = "x"; then
20288 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20289 fi
20290 elif test "x$use_lint" = x"no" ; then
20291 if test "x$LINT" != "x"; then
20292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20293 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20294 fi
20295 else
20296 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20297 fi
20298
20299 # User supplied flags override default flags
20300 if test "x$LINT_FLAGS" != "x"; then
20301 lint_options=$LINT_FLAGS
20302 fi
20303
20304 LINT_FLAGS=$lint_options
20305
20306 if test "x$LINT" != x; then
20307 LINT_TRUE=
20308 LINT_FALSE='#'
20309 else
20310 LINT_TRUE='#'
20311 LINT_FALSE=
20312 fi
20313
20314
20315
20316
20317
20318 # Check whether --enable-lint-library was given.
20319 if test ${enable_lint_library+y}
20320 then :
20321 enableval=$enable_lint_library; make_lint_lib=$enableval
20322 else $as_nop
20323 make_lint_lib=no
20324 fi
20325
20326
20327 if test "x$make_lint_lib" = x"yes" ; then
20328 LINTLIB=llib-lXmu.ln
20329 if test "x$LINT" = "x"; then
20330 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
20331 fi
20332 elif test "x$make_lint_lib" != x"no" ; then
20333 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
20334 fi
20335
20336
20337 if test x$make_lint_lib != xno; then
20338 MAKE_LINT_LIB_TRUE=
20339 MAKE_LINT_LIB_FALSE='#'
20340 else
20341 MAKE_LINT_LIB_TRUE='#'
20342 MAKE_LINT_LIB_FALSE=
20343 fi
20344
20345
20346
20347 LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/`
20348
20349
20350 ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile src/Makefile test/Makefile xmu.pc xmuu.pc"
20351
20352 cat >confcache <<\_ACEOF
20353 # This file is a shell script that caches the results of configure
20354 # tests run on this system so they can be shared between configure
20355 # scripts and configure runs, see configure's option --config-cache.
20356 # It is not useful on other systems. If it contains results you don't
20357 # want to keep, you may remove or edit it.
20358 #
20359 # config.status only pays attention to the cache file if you give it
20360 # the --recheck option to rerun configure.
20361 #
20362 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20363 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20364 # following values.
20365
20366 _ACEOF
20367
20368 # The following way of writing the cache mishandles newlines in values,
20369 # but we know of no workaround that is simple, portable, and efficient.
20370 # So, we kill variables containing newlines.
20371 # Ultrix sh set writes to stderr and can't be redirected directly,
20372 # and sets the high bit in the cache file unless we assign to the vars.
20373 (
20374 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20375 eval ac_val=\$$ac_var
20376 case $ac_val in #(
20377 *${as_nl}*)
20378 case $ac_var in #(
20379 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20380 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20381 esac
20382 case $ac_var in #(
20383 _ | IFS | as_nl) ;; #(
20384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20385 *) { eval $ac_var=; unset $ac_var;} ;;
20386 esac ;;
20387 esac
20388 done
20389
20390 (set) 2>&1 |
20391 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20392 *${as_nl}ac_space=\ *)
20393 # `set' does not quote correctly, so add quotes: double-quote
20394 # substitution turns \\\\ into \\, and sed turns \\ into \.
20395 sed -n \
20396 "s/'/'\\\\''/g;
20397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20398 ;; #(
20399 *)
20400 # `set' quotes correctly as required by POSIX, so do not add quotes.
20401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20402 ;;
20403 esac |
20404 sort
20405 ) |
20406 sed '
20407 /^ac_cv_env_/b end
20408 t clear
20409 :clear
20410 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20411 t end
20412 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20413 :end' >>confcache
20414 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20415 if test -w "$cache_file"; then
20416 if test "x$cache_file" != "x/dev/null"; then
20417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20418 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20419 if test ! -f "$cache_file" || test -h "$cache_file"; then
20420 cat confcache >"$cache_file"
20421 else
20422 case $cache_file in #(
20423 */* | ?:*)
20424 mv -f confcache "$cache_file"$$ &&
20425 mv -f "$cache_file"$$ "$cache_file" ;; #(
20426 *)
20427 mv -f confcache "$cache_file" ;;
20428 esac
20429 fi
20430 fi
20431 else
20432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20433 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20434 fi
20435 fi
20436 rm -f confcache
20437
20438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20439 # Let make expand exec_prefix.
20440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20441
20442 DEFS=-DHAVE_CONFIG_H
20443
20444 ac_libobjs=
20445 ac_ltlibobjs=
20446 U=
20447 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20448 # 1. Remove the extension, and $U if already installed.
20449 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20450 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20451 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20452 # will be set to the directory where LIBOBJS objects are built.
20453 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20454 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20455 done
20456 LIBOBJS=$ac_libobjs
20457
20458 LTLIBOBJS=$ac_ltlibobjs
20459
20460
20461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20462 printf %s "checking that generated files are newer than configure... " >&6; }
20463 if test -n "$am_sleep_pid"; then
20464 # Hide warnings about reused PIDs.
20465 wait $am_sleep_pid 2>/dev/null
20466 fi
20467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20468 printf "%s\n" "done" >&6; }
20469 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20470 as_fn_error $? "conditional \"AMDEP\" was never defined.
20471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20472 fi
20473 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20474 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20476 fi
20477 if test -n "$EXEEXT"; then
20478 am__EXEEXT_TRUE=
20479 am__EXEEXT_FALSE='#'
20480 else
20481 am__EXEEXT_TRUE='#'
20482 am__EXEEXT_FALSE=
20483 fi
20484
20485 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
20486 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
20487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20488 fi
20489 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
20490 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
20491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20492 fi
20493 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20494 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
20495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20496 fi
20497 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
20498 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
20499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20500 fi
20501 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
20502 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
20503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20504 fi
20505 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
20506 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
20507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20508 fi
20509 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20510 as_fn_error $? "conditional \"LINT\" was never defined.
20511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20512 fi
20513 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
20514 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
20515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20516 fi
20517
20518 : "${CONFIG_STATUS=./config.status}"
20519 ac_write_fail=0
20520 ac_clean_files_save=$ac_clean_files
20521 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20523 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20524 as_write_fail=0
20525 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20526 #! $SHELL
20527 # Generated by $as_me.
20528 # Run this file to recreate the current configuration.
20529 # Compiler output produced by configure, useful for debugging
20530 # configure, is in config.log if it exists.
20531
20532 debug=false
20533 ac_cs_recheck=false
20534 ac_cs_silent=false
20535
20536 SHELL=\${CONFIG_SHELL-$SHELL}
20537 export SHELL
20538 _ASEOF
20539 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20540 ## -------------------- ##
20541 ## M4sh Initialization. ##
20542 ## -------------------- ##
20543
20544 # Be more Bourne compatible
20545 DUALCASE=1; export DUALCASE # for MKS sh
20546 as_nop=:
20547 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20548 then :
20549 emulate sh
20550 NULLCMD=:
20551 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20552 # is contrary to our usage. Disable this feature.
20553 alias -g '${1+"$@"}'='"$@"'
20554 setopt NO_GLOB_SUBST
20555 else $as_nop
20556 case `(set -o) 2>/dev/null` in #(
20557 *posix*) :
20558 set -o posix ;; #(
20559 *) :
20560 ;;
20561 esac
20562 fi
20563
20564
20565
20566 # Reset variables that may have inherited troublesome values from
20567 # the environment.
20568
20569 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20570 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20571 # side effect of setting IFS to empty, thus disabling word splitting.)
20572 # Quoting is to prevent editors from complaining about space-tab.
20573 as_nl='
20574 '
20575 export as_nl
20576 IFS=" "" $as_nl"
20577
20578 PS1='$ '
20579 PS2='> '
20580 PS4='+ '
20581
20582 # Ensure predictable behavior from utilities with locale-dependent output.
20583 LC_ALL=C
20584 export LC_ALL
20585 LANGUAGE=C
20586 export LANGUAGE
20587
20588 # We cannot yet rely on "unset" to work, but we need these variables
20589 # to be unset--not just set to an empty or harmless value--now, to
20590 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20591 # also avoids known problems related to "unset" and subshell syntax
20592 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20593 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20594 do eval test \${$as_var+y} \
20595 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20596 done
20597
20598 # Ensure that fds 0, 1, and 2 are open.
20599 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20600 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20601 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20602
20603 # The user is always right.
20604 if ${PATH_SEPARATOR+false} :; then
20605 PATH_SEPARATOR=:
20606 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20607 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20608 PATH_SEPARATOR=';'
20609 }
20610 fi
20611
20612
20613 # Find who we are. Look in the path if we contain no directory separator.
20614 as_myself=
20615 case $0 in #((
20616 *[\\/]* ) as_myself=$0 ;;
20617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20618 for as_dir in $PATH
20619 do
20620 IFS=$as_save_IFS
20621 case $as_dir in #(((
20622 '') as_dir=./ ;;
20623 */) ;;
20624 *) as_dir=$as_dir/ ;;
20625 esac
20626 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20627 done
20628 IFS=$as_save_IFS
20629
20630 ;;
20631 esac
20632 # We did not find ourselves, most probably we were run as `sh COMMAND'
20633 # in which case we are not to be found in the path.
20634 if test "x$as_myself" = x; then
20635 as_myself=$0
20636 fi
20637 if test ! -f "$as_myself"; then
20638 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20639 exit 1
20640 fi
20641
20642
20643
20644 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20645 # ----------------------------------------
20646 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20647 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20648 # script with STATUS, using 1 if that was 0.
20649 as_fn_error ()
20650 {
20651 as_status=$1; test $as_status -eq 0 && as_status=1
20652 if test "$4"; then
20653 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20655 fi
20656 printf "%s\n" "$as_me: error: $2" >&2
20657 as_fn_exit $as_status
20658 } # as_fn_error
20659
20660
20661
20662 # as_fn_set_status STATUS
20663 # -----------------------
20664 # Set $? to STATUS, without forking.
20665 as_fn_set_status ()
20666 {
20667 return $1
20668 } # as_fn_set_status
20669
20670 # as_fn_exit STATUS
20671 # -----------------
20672 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20673 as_fn_exit ()
20674 {
20675 set +e
20676 as_fn_set_status $1
20677 exit $1
20678 } # as_fn_exit
20679
20680 # as_fn_unset VAR
20681 # ---------------
20682 # Portably unset VAR.
20683 as_fn_unset ()
20684 {
20685 { eval $1=; unset $1;}
20686 }
20687 as_unset=as_fn_unset
20688
20689 # as_fn_append VAR VALUE
20690 # ----------------------
20691 # Append the text in VALUE to the end of the definition contained in VAR. Take
20692 # advantage of any shell optimizations that allow amortized linear growth over
20693 # repeated appends, instead of the typical quadratic growth present in naive
20694 # implementations.
20695 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20696 then :
20697 eval 'as_fn_append ()
20698 {
20699 eval $1+=\$2
20700 }'
20701 else $as_nop
20702 as_fn_append ()
20703 {
20704 eval $1=\$$1\$2
20705 }
20706 fi # as_fn_append
20707
20708 # as_fn_arith ARG...
20709 # ------------------
20710 # Perform arithmetic evaluation on the ARGs, and store the result in the
20711 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20712 # must be portable across $(()) and expr.
20713 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20714 then :
20715 eval 'as_fn_arith ()
20716 {
20717 as_val=$(( $* ))
20718 }'
20719 else $as_nop
20720 as_fn_arith ()
20721 {
20722 as_val=`expr "$@" || test $? -eq 1`
20723 }
20724 fi # as_fn_arith
20725
20726
20727 if expr a : '\(a\)' >/dev/null 2>&1 &&
20728 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20729 as_expr=expr
20730 else
20731 as_expr=false
20732 fi
20733
20734 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20735 as_basename=basename
20736 else
20737 as_basename=false
20738 fi
20739
20740 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20741 as_dirname=dirname
20742 else
20743 as_dirname=false
20744 fi
20745
20746 as_me=`$as_basename -- "$0" ||
20747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20748 X"$0" : 'X\(//\)$' \| \
20749 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20750 printf "%s\n" X/"$0" |
20751 sed '/^.*\/\([^/][^/]*\)\/*$/{
20752 s//\1/
20753 q
20754 }
20755 /^X\/\(\/\/\)$/{
20756 s//\1/
20757 q
20758 }
20759 /^X\/\(\/\).*/{
20760 s//\1/
20761 q
20762 }
20763 s/.*/./; q'`
20764
20765 # Avoid depending upon Character Ranges.
20766 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20767 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20768 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20769 as_cr_digits='0123456789'
20770 as_cr_alnum=$as_cr_Letters$as_cr_digits
20771
20772
20773 # Determine whether it's possible to make 'echo' print without a newline.
20774 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20775 # for compatibility with existing Makefiles.
20776 ECHO_C= ECHO_N= ECHO_T=
20777 case `echo -n x` in #(((((
20778 -n*)
20779 case `echo 'xy\c'` in
20780 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20781 xy) ECHO_C='\c';;
20782 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20783 ECHO_T=' ';;
20784 esac;;
20785 *)
20786 ECHO_N='-n';;
20787 esac
20788
20789 # For backward compatibility with old third-party macros, we provide
20790 # the shell variables $as_echo and $as_echo_n. New code should use
20791 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20792 as_echo='printf %s\n'
20793 as_echo_n='printf %s'
20794
20795 rm -f conf$$ conf$$.exe conf$$.file
20796 if test -d conf$$.dir; then
20797 rm -f conf$$.dir/conf$$.file
20798 else
20799 rm -f conf$$.dir
20800 mkdir conf$$.dir 2>/dev/null
20801 fi
20802 if (echo >conf$$.file) 2>/dev/null; then
20803 if ln -s conf$$.file conf$$ 2>/dev/null; then
20804 as_ln_s='ln -s'
20805 # ... but there are two gotchas:
20806 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20807 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20808 # In both cases, we have to default to `cp -pR'.
20809 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20810 as_ln_s='cp -pR'
20811 elif ln conf$$.file conf$$ 2>/dev/null; then
20812 as_ln_s=ln
20813 else
20814 as_ln_s='cp -pR'
20815 fi
20816 else
20817 as_ln_s='cp -pR'
20818 fi
20819 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20820 rmdir conf$$.dir 2>/dev/null
20821
20822
20823 # as_fn_mkdir_p
20824 # -------------
20825 # Create "$as_dir" as a directory, including parents if necessary.
20826 as_fn_mkdir_p ()
20827 {
20828
20829 case $as_dir in #(
20830 -*) as_dir=./$as_dir;;
20831 esac
20832 test -d "$as_dir" || eval $as_mkdir_p || {
20833 as_dirs=
20834 while :; do
20835 case $as_dir in #(
20836 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20837 *) as_qdir=$as_dir;;
20838 esac
20839 as_dirs="'$as_qdir' $as_dirs"
20840 as_dir=`$as_dirname -- "$as_dir" ||
20841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20842 X"$as_dir" : 'X\(//\)[^/]' \| \
20843 X"$as_dir" : 'X\(//\)$' \| \
20844 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20845 printf "%s\n" X"$as_dir" |
20846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20847 s//\1/
20848 q
20849 }
20850 /^X\(\/\/\)[^/].*/{
20851 s//\1/
20852 q
20853 }
20854 /^X\(\/\/\)$/{
20855 s//\1/
20856 q
20857 }
20858 /^X\(\/\).*/{
20859 s//\1/
20860 q
20861 }
20862 s/.*/./; q'`
20863 test -d "$as_dir" && break
20864 done
20865 test -z "$as_dirs" || eval "mkdir $as_dirs"
20866 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20867
20868
20869 } # as_fn_mkdir_p
20870 if mkdir -p . 2>/dev/null; then
20871 as_mkdir_p='mkdir -p "$as_dir"'
20872 else
20873 test -d ./-p && rmdir ./-p
20874 as_mkdir_p=false
20875 fi
20876
20877
20878 # as_fn_executable_p FILE
20879 # -----------------------
20880 # Test if FILE is an executable regular file.
20881 as_fn_executable_p ()
20882 {
20883 test -f "$1" && test -x "$1"
20884 } # as_fn_executable_p
20885 as_test_x='test -x'
20886 as_executable_p=as_fn_executable_p
20887
20888 # Sed expression to map a string onto a valid CPP name.
20889 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20890
20891 # Sed expression to map a string onto a valid variable name.
20892 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20893
20894
20895 exec 6>&1
20896 ## ----------------------------------- ##
20897 ## Main body of $CONFIG_STATUS script. ##
20898 ## ----------------------------------- ##
20899 _ASEOF
20900 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20901
20902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20903 # Save the log message, to keep $0 and so on meaningful, and to
20904 # report actual input values of CONFIG_FILES etc. instead of their
20905 # values after options handling.
20906 ac_log="
20907 This file was extended by libXmu $as_me 1.1.4, which was
20908 generated by GNU Autoconf 2.71. Invocation command line was
20909
20910 CONFIG_FILES = $CONFIG_FILES
20911 CONFIG_HEADERS = $CONFIG_HEADERS
20912 CONFIG_LINKS = $CONFIG_LINKS
20913 CONFIG_COMMANDS = $CONFIG_COMMANDS
20914 $ $0 $@
20915
20916 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20917 "
20918
20919 _ACEOF
20920
20921 case $ac_config_files in *"
20922 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20923 esac
20924
20925 case $ac_config_headers in *"
20926 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20927 esac
20928
20929
20930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20931 # Files that config.status was made for.
20932 config_files="$ac_config_files"
20933 config_headers="$ac_config_headers"
20934 config_commands="$ac_config_commands"
20935
20936 _ACEOF
20937
20938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20939 ac_cs_usage="\
20940 \`$as_me' instantiates files and other configuration actions
20941 from templates according to the current configuration. Unless the files
20942 and actions are specified as TAGs, all are instantiated by default.
20943
20944 Usage: $0 [OPTION]... [TAG]...
20945
20946 -h, --help print this help, then exit
20947 -V, --version print version number and configuration settings, then exit
20948 --config print configuration, then exit
20949 -q, --quiet, --silent
20950 do not print progress messages
20951 -d, --debug don't remove temporary files
20952 --recheck update $as_me by reconfiguring in the same conditions
20953 --file=FILE[:TEMPLATE]
20954 instantiate the configuration file FILE
20955 --header=FILE[:TEMPLATE]
20956 instantiate the configuration header FILE
20957
20958 Configuration files:
20959 $config_files
20960
20961 Configuration headers:
20962 $config_headers
20963
20964 Configuration commands:
20965 $config_commands
20966
20967 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/issues>."
20968
20969 _ACEOF
20970 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20971 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20973 ac_cs_config='$ac_cs_config_escaped'
20974 ac_cs_version="\\
20975 libXmu config.status 1.1.4
20976 configured by $0, generated by GNU Autoconf 2.71,
20977 with options \\"\$ac_cs_config\\"
20978
20979 Copyright (C) 2021 Free Software Foundation, Inc.
20980 This config.status script is free software; the Free Software Foundation
20981 gives unlimited permission to copy, distribute and modify it."
20982
20983 ac_pwd='$ac_pwd'
20984 srcdir='$srcdir'
20985 INSTALL='$INSTALL'
20986 MKDIR_P='$MKDIR_P'
20987 AWK='$AWK'
20988 test -n "\$AWK" || AWK=awk
20989 _ACEOF
20990
20991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20992 # The default lists apply if the user does not specify any file.
20993 ac_need_defaults=:
20994 while test $# != 0
20995 do
20996 case $1 in
20997 --*=?*)
20998 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20999 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21000 ac_shift=:
21001 ;;
21002 --*=)
21003 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21004 ac_optarg=
21005 ac_shift=:
21006 ;;
21007 *)
21008 ac_option=$1
21009 ac_optarg=$2
21010 ac_shift=shift
21011 ;;
21012 esac
21013
21014 case $ac_option in
21015 # Handling of the options.
21016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21017 ac_cs_recheck=: ;;
21018 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21019 printf "%s\n" "$ac_cs_version"; exit ;;
21020 --config | --confi | --conf | --con | --co | --c )
21021 printf "%s\n" "$ac_cs_config"; exit ;;
21022 --debug | --debu | --deb | --de | --d | -d )
21023 debug=: ;;
21024 --file | --fil | --fi | --f )
21025 $ac_shift
21026 case $ac_optarg in
21027 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21028 '') as_fn_error $? "missing file argument" ;;
21029 esac
21030 as_fn_append CONFIG_FILES " '$ac_optarg'"
21031 ac_need_defaults=false;;
21032 --header | --heade | --head | --hea )
21033 $ac_shift
21034 case $ac_optarg in
21035 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21036 esac
21037 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21038 ac_need_defaults=false;;
21039 --he | --h)
21040 # Conflict between --help and --header
21041 as_fn_error $? "ambiguous option: \`$1'
21042 Try \`$0 --help' for more information.";;
21043 --help | --hel | -h )
21044 printf "%s\n" "$ac_cs_usage"; exit ;;
21045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21046 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21047 ac_cs_silent=: ;;
21048
21049 # This is an error.
21050 -*) as_fn_error $? "unrecognized option: \`$1'
21051 Try \`$0 --help' for more information." ;;
21052
21053 *) as_fn_append ac_config_targets " $1"
21054 ac_need_defaults=false ;;
21055
21056 esac
21057 shift
21058 done
21059
21060 ac_configure_extra_args=
21061
21062 if $ac_cs_silent; then
21063 exec 6>/dev/null
21064 ac_configure_extra_args="$ac_configure_extra_args --silent"
21065 fi
21066
21067 _ACEOF
21068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21069 if \$ac_cs_recheck; then
21070 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21071 shift
21072 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21073 CONFIG_SHELL='$SHELL'
21074 export CONFIG_SHELL
21075 exec "\$@"
21076 fi
21077
21078 _ACEOF
21079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21080 exec 5>>config.log
21081 {
21082 echo
21083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21084 ## Running $as_me. ##
21085 _ASBOX
21086 printf "%s\n" "$ac_log"
21087 } >&5
21088
21089 _ACEOF
21090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21091 #
21092 # INIT-COMMANDS
21093 #
21094 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21095
21096
21097 # The HP-UX ksh and POSIX shell print the target directory to stdout
21098 # if CDPATH is set.
21099 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21100
21101 sed_quote_subst='$sed_quote_subst'
21102 double_quote_subst='$double_quote_subst'
21103 delay_variable_subst='$delay_variable_subst'
21104 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21105 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21106 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21107 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21108 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21109 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21110 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21111 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21112 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21113 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21114 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21115 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21116 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21117 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21118 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21119 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21120 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21121 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21122 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21123 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21124 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21125 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21126 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21127 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21128 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21129 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21130 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21131 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21132 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21133 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21134 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21135 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21136 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21137 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21138 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21139 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21140 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21141 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21142 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21143 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21144 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21145 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21146 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21147 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21148 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21149 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21150 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21151 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21152 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21153 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21154 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21155 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21156 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21157 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21158 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21159 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21160 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21161 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21162 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21163 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21164 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"`'
21165 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21166 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21167 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21168 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21169 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21170 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21171 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21172 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21173 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21174 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21175 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21176 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21177 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21178 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21179 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21180 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21181 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21182 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21183 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21184 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21185 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21186 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21187 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21188 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21189 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21190 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21191 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21192 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21193 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21194 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21195 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21196 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21197 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21198 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21199 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21200 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21201 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21202 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21203 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21204 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21205 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21206 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21207 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21208 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21209 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21210 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21211 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21212 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21213 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21214 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21215 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21216 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21217 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21218 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21219 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21220 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21221 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21222 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21223 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21224 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21225 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21226 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21227 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21228 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21229 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21230 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21231 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21232 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21233 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21234 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21235 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21236 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21237 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21238 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21239 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21240 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21241
21242 LTCC='$LTCC'
21243 LTCFLAGS='$LTCFLAGS'
21244 compiler='$compiler_DEFAULT'
21245
21246 # A function that is used when there is no print builtin or printf.
21247 func_fallback_echo ()
21248 {
21249 eval 'cat <<_LTECHO_EOF
21250 \$1
21251 _LTECHO_EOF'
21252 }
21253
21254 # Quote evaled strings.
21255 for var in SHELL \
21256 ECHO \
21257 PATH_SEPARATOR \
21258 SED \
21259 GREP \
21260 EGREP \
21261 FGREP \
21262 LD \
21263 NM \
21264 LN_S \
21265 lt_SP2NL \
21266 lt_NL2SP \
21267 reload_flag \
21268 FILECMD \
21269 OBJDUMP \
21270 deplibs_check_method \
21271 file_magic_cmd \
21272 file_magic_glob \
21273 want_nocaseglob \
21274 DLLTOOL \
21275 sharedlib_from_linklib_cmd \
21276 AR \
21277 archiver_list_spec \
21278 STRIP \
21279 RANLIB \
21280 CC \
21281 CFLAGS \
21282 compiler \
21283 lt_cv_sys_global_symbol_pipe \
21284 lt_cv_sys_global_symbol_to_cdecl \
21285 lt_cv_sys_global_symbol_to_import \
21286 lt_cv_sys_global_symbol_to_c_name_address \
21287 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21288 lt_cv_nm_interface \
21289 nm_file_list_spec \
21290 lt_cv_truncate_bin \
21291 lt_prog_compiler_no_builtin_flag \
21292 lt_prog_compiler_pic \
21293 lt_prog_compiler_wl \
21294 lt_prog_compiler_static \
21295 lt_cv_prog_compiler_c_o \
21296 need_locks \
21297 MANIFEST_TOOL \
21298 DSYMUTIL \
21299 NMEDIT \
21300 LIPO \
21301 OTOOL \
21302 OTOOL64 \
21303 shrext_cmds \
21304 export_dynamic_flag_spec \
21305 whole_archive_flag_spec \
21306 compiler_needs_object \
21307 with_gnu_ld \
21308 allow_undefined_flag \
21309 no_undefined_flag \
21310 hardcode_libdir_flag_spec \
21311 hardcode_libdir_separator \
21312 exclude_expsyms \
21313 include_expsyms \
21314 file_list_spec \
21315 variables_saved_for_relink \
21316 libname_spec \
21317 library_names_spec \
21318 soname_spec \
21319 install_override_mode \
21320 finish_eval \
21321 old_striplib \
21322 striplib; do
21323 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21324 *[\\\\\\\`\\"\\\$]*)
21325 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21326 ;;
21327 *)
21328 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21329 ;;
21330 esac
21331 done
21332
21333 # Double-quote double-evaled strings.
21334 for var in reload_cmds \
21335 old_postinstall_cmds \
21336 old_postuninstall_cmds \
21337 old_archive_cmds \
21338 extract_expsyms_cmds \
21339 old_archive_from_new_cmds \
21340 old_archive_from_expsyms_cmds \
21341 archive_cmds \
21342 archive_expsym_cmds \
21343 module_cmds \
21344 module_expsym_cmds \
21345 export_symbols_cmds \
21346 prelink_cmds \
21347 postlink_cmds \
21348 postinstall_cmds \
21349 postuninstall_cmds \
21350 finish_cmds \
21351 sys_lib_search_path_spec \
21352 configure_time_dlsearch_path \
21353 configure_time_lt_sys_library_path; do
21354 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21355 *[\\\\\\\`\\"\\\$]*)
21356 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21357 ;;
21358 *)
21359 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21360 ;;
21361 esac
21362 done
21363
21364 ac_aux_dir='$ac_aux_dir'
21365
21366 # See if we are running on zsh, and set the options that allow our
21367 # commands through without removal of \ escapes INIT.
21368 if test -n "\${ZSH_VERSION+set}"; then
21369 setopt NO_GLOB_SUBST
21370 fi
21371
21372
21373 PACKAGE='$PACKAGE'
21374 VERSION='$VERSION'
21375 RM='$RM'
21376 ofile='$ofile'
21377
21378
21379
21380
21381 _ACEOF
21382
21383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21384
21385 # Handling of arguments.
21386 for ac_config_target in $ac_config_targets
21387 do
21388 case $ac_config_target in
21389 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21390 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21391 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21392 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21393 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21394 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21395 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21396 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21397 "xmu.pc") CONFIG_FILES="$CONFIG_FILES xmu.pc" ;;
21398 "xmuu.pc") CONFIG_FILES="$CONFIG_FILES xmuu.pc" ;;
21399
21400 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21401 esac
21402 done
21403
21404
21405 # If the user did not use the arguments to specify the items to instantiate,
21406 # then the envvar interface is used. Set only those that are not.
21407 # We use the long form for the default assignment because of an extremely
21408 # bizarre bug on SunOS 4.1.3.
21409 if $ac_need_defaults; then
21410 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21411 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21412 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21413 fi
21414
21415 # Have a temporary directory for convenience. Make it in the build tree
21416 # simply because there is no reason against having it here, and in addition,
21417 # creating and moving files from /tmp can sometimes cause problems.
21418 # Hook for its removal unless debugging.
21419 # Note that there is a small window in which the directory will not be cleaned:
21420 # after its creation but before its name has been assigned to `$tmp'.
21421 $debug ||
21422 {
21423 tmp= ac_tmp=
21424 trap 'exit_status=$?
21425 : "${ac_tmp:=$tmp}"
21426 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21427 ' 0
21428 trap 'as_fn_exit 1' 1 2 13 15
21429 }
21430 # Create a (secure) tmp directory for tmp files.
21431
21432 {
21433 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21434 test -d "$tmp"
21435 } ||
21436 {
21437 tmp=./conf$$-$RANDOM
21438 (umask 077 && mkdir "$tmp")
21439 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21440 ac_tmp=$tmp
21441
21442 # Set up the scripts for CONFIG_FILES section.
21443 # No need to generate them if there are no CONFIG_FILES.
21444 # This happens for instance with `./config.status config.h'.
21445 if test -n "$CONFIG_FILES"; then
21446
21447
21448 ac_cr=`echo X | tr X '\015'`
21449 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21450 # But we know of no other shell where ac_cr would be empty at this
21451 # point, so we can use a bashism as a fallback.
21452 if test "x$ac_cr" = x; then
21453 eval ac_cr=\$\'\\r\'
21454 fi
21455 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21456 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21457 ac_cs_awk_cr='\\r'
21458 else
21459 ac_cs_awk_cr=$ac_cr
21460 fi
21461
21462 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21463 _ACEOF
21464
21465
21466 {
21467 echo "cat >conf$$subs.awk <<_ACEOF" &&
21468 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21469 echo "_ACEOF"
21470 } >conf$$subs.sh ||
21471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21472 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21473 ac_delim='%!_!# '
21474 for ac_last_try in false false false false false :; do
21475 . ./conf$$subs.sh ||
21476 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21477
21478 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21479 if test $ac_delim_n = $ac_delim_num; then
21480 break
21481 elif $ac_last_try; then
21482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21483 else
21484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21485 fi
21486 done
21487 rm -f conf$$subs.sh
21488
21489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21490 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21491 _ACEOF
21492 sed -n '
21493 h
21494 s/^/S["/; s/!.*/"]=/
21495 p
21496 g
21497 s/^[^!]*!//
21498 :repl
21499 t repl
21500 s/'"$ac_delim"'$//
21501 t delim
21502 :nl
21503 h
21504 s/\(.\{148\}\)..*/\1/
21505 t more1
21506 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21507 p
21508 n
21509 b repl
21510 :more1
21511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21512 p
21513 g
21514 s/.\{148\}//
21515 t nl
21516 :delim
21517 h
21518 s/\(.\{148\}\)..*/\1/
21519 t more2
21520 s/["\\]/\\&/g; s/^/"/; s/$/"/
21521 p
21522 b
21523 :more2
21524 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21525 p
21526 g
21527 s/.\{148\}//
21528 t delim
21529 ' <conf$$subs.awk | sed '
21530 /^[^""]/{
21531 N
21532 s/\n//
21533 }
21534 ' >>$CONFIG_STATUS || ac_write_fail=1
21535 rm -f conf$$subs.awk
21536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21537 _ACAWK
21538 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21539 for (key in S) S_is_set[key] = 1
21540 FS = ""
21541
21542 }
21543 {
21544 line = $ 0
21545 nfields = split(line, field, "@")
21546 substed = 0
21547 len = length(field[1])
21548 for (i = 2; i < nfields; i++) {
21549 key = field[i]
21550 keylen = length(key)
21551 if (S_is_set[key]) {
21552 value = S[key]
21553 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21554 len += length(value) + length(field[++i])
21555 substed = 1
21556 } else
21557 len += 1 + keylen
21558 }
21559
21560 print line
21561 }
21562
21563 _ACAWK
21564 _ACEOF
21565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21566 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21567 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21568 else
21569 cat
21570 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21571 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21572 _ACEOF
21573
21574 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21575 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21576 # trailing colons and then remove the whole line if VPATH becomes empty
21577 # (actually we leave an empty line to preserve line numbers).
21578 if test "x$srcdir" = x.; then
21579 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21580 h
21581 s///
21582 s/^/:/
21583 s/[ ]*$/:/
21584 s/:\$(srcdir):/:/g
21585 s/:\${srcdir}:/:/g
21586 s/:@srcdir@:/:/g
21587 s/^:*//
21588 s/:*$//
21589 x
21590 s/\(=[ ]*\).*/\1/
21591 G
21592 s/\n//
21593 s/^[^=]*=[ ]*$//
21594 }'
21595 fi
21596
21597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21598 fi # test -n "$CONFIG_FILES"
21599
21600 # Set up the scripts for CONFIG_HEADERS section.
21601 # No need to generate them if there are no CONFIG_HEADERS.
21602 # This happens for instance with `./config.status Makefile'.
21603 if test -n "$CONFIG_HEADERS"; then
21604 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21605 BEGIN {
21606 _ACEOF
21607
21608 # Transform confdefs.h into an awk script `defines.awk', embedded as
21609 # here-document in config.status, that substitutes the proper values into
21610 # config.h.in to produce config.h.
21611
21612 # Create a delimiter string that does not exist in confdefs.h, to ease
21613 # handling of long lines.
21614 ac_delim='%!_!# '
21615 for ac_last_try in false false :; do
21616 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21617 if test -z "$ac_tt"; then
21618 break
21619 elif $ac_last_try; then
21620 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21621 else
21622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21623 fi
21624 done
21625
21626 # For the awk script, D is an array of macro values keyed by name,
21627 # likewise P contains macro parameters if any. Preserve backslash
21628 # newline sequences.
21629
21630 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21631 sed -n '
21632 s/.\{148\}/&'"$ac_delim"'/g
21633 t rset
21634 :rset
21635 s/^[ ]*#[ ]*define[ ][ ]*/ /
21636 t def
21637 d
21638 :def
21639 s/\\$//
21640 t bsnl
21641 s/["\\]/\\&/g
21642 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21643 D["\1"]=" \3"/p
21644 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21645 d
21646 :bsnl
21647 s/["\\]/\\&/g
21648 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21649 D["\1"]=" \3\\\\\\n"\\/p
21650 t cont
21651 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21652 t cont
21653 d
21654 :cont
21655 n
21656 s/.\{148\}/&'"$ac_delim"'/g
21657 t clear
21658 :clear
21659 s/\\$//
21660 t bsnlc
21661 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21662 d
21663 :bsnlc
21664 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21665 b cont
21666 ' <confdefs.h | sed '
21667 s/'"$ac_delim"'/"\\\
21668 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21669
21670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21671 for (key in D) D_is_set[key] = 1
21672 FS = ""
21673 }
21674 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21675 line = \$ 0
21676 split(line, arg, " ")
21677 if (arg[1] == "#") {
21678 defundef = arg[2]
21679 mac1 = arg[3]
21680 } else {
21681 defundef = substr(arg[1], 2)
21682 mac1 = arg[2]
21683 }
21684 split(mac1, mac2, "(") #)
21685 macro = mac2[1]
21686 prefix = substr(line, 1, index(line, defundef) - 1)
21687 if (D_is_set[macro]) {
21688 # Preserve the white space surrounding the "#".
21689 print prefix "define", macro P[macro] D[macro]
21690 next
21691 } else {
21692 # Replace #undef with comments. This is necessary, for example,
21693 # in the case of _POSIX_SOURCE, which is predefined and required
21694 # on some systems where configure will not decide to define it.
21695 if (defundef == "undef") {
21696 print "/*", prefix defundef, macro, "*/"
21697 next
21698 }
21699 }
21700 }
21701 { print }
21702 _ACAWK
21703 _ACEOF
21704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21705 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21706 fi # test -n "$CONFIG_HEADERS"
21707
21708
21709 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21710 shift
21711 for ac_tag
21712 do
21713 case $ac_tag in
21714 :[FHLC]) ac_mode=$ac_tag; continue;;
21715 esac
21716 case $ac_mode$ac_tag in
21717 :[FHL]*:*);;
21718 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21719 :[FH]-) ac_tag=-:-;;
21720 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21721 esac
21722 ac_save_IFS=$IFS
21723 IFS=:
21724 set x $ac_tag
21725 IFS=$ac_save_IFS
21726 shift
21727 ac_file=$1
21728 shift
21729
21730 case $ac_mode in
21731 :L) ac_source=$1;;
21732 :[FH])
21733 ac_file_inputs=
21734 for ac_f
21735 do
21736 case $ac_f in
21737 -) ac_f="$ac_tmp/stdin";;
21738 *) # Look for the file first in the build tree, then in the source tree
21739 # (if the path is not absolute). The absolute path cannot be DOS-style,
21740 # because $ac_f cannot contain `:'.
21741 test -f "$ac_f" ||
21742 case $ac_f in
21743 [\\/$]*) false;;
21744 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21745 esac ||
21746 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21747 esac
21748 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21749 as_fn_append ac_file_inputs " '$ac_f'"
21750 done
21751
21752 # Let's still pretend it is `configure' which instantiates (i.e., don't
21753 # use $as_me), people would be surprised to read:
21754 # /* config.h. Generated by config.status. */
21755 configure_input='Generated from '`
21756 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21757 `' by configure.'
21758 if test x"$ac_file" != x-; then
21759 configure_input="$ac_file. $configure_input"
21760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21761 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21762 fi
21763 # Neutralize special characters interpreted by sed in replacement strings.
21764 case $configure_input in #(
21765 *\&* | *\|* | *\\* )
21766 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21767 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21768 *) ac_sed_conf_input=$configure_input;;
21769 esac
21770
21771 case $ac_tag in
21772 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21774 esac
21775 ;;
21776 esac
21777
21778 ac_dir=`$as_dirname -- "$ac_file" ||
21779 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21780 X"$ac_file" : 'X\(//\)[^/]' \| \
21781 X"$ac_file" : 'X\(//\)$' \| \
21782 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21783 printf "%s\n" X"$ac_file" |
21784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21785 s//\1/
21786 q
21787 }
21788 /^X\(\/\/\)[^/].*/{
21789 s//\1/
21790 q
21791 }
21792 /^X\(\/\/\)$/{
21793 s//\1/
21794 q
21795 }
21796 /^X\(\/\).*/{
21797 s//\1/
21798 q
21799 }
21800 s/.*/./; q'`
21801 as_dir="$ac_dir"; as_fn_mkdir_p
21802 ac_builddir=.
21803
21804 case "$ac_dir" in
21805 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21806 *)
21807 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21808 # A ".." for each directory in $ac_dir_suffix.
21809 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21810 case $ac_top_builddir_sub in
21811 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21812 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21813 esac ;;
21814 esac
21815 ac_abs_top_builddir=$ac_pwd
21816 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21817 # for backward compatibility:
21818 ac_top_builddir=$ac_top_build_prefix
21819
21820 case $srcdir in
21821 .) # We are building in place.
21822 ac_srcdir=.
21823 ac_top_srcdir=$ac_top_builddir_sub
21824 ac_abs_top_srcdir=$ac_pwd ;;
21825 [\\/]* | ?:[\\/]* ) # Absolute name.
21826 ac_srcdir=$srcdir$ac_dir_suffix;
21827 ac_top_srcdir=$srcdir
21828 ac_abs_top_srcdir=$srcdir ;;
21829 *) # Relative name.
21830 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21831 ac_top_srcdir=$ac_top_build_prefix$srcdir
21832 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21833 esac
21834 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21835
21836
21837 case $ac_mode in
21838 :F)
21839 #
21840 # CONFIG_FILE
21841 #
21842
21843 case $INSTALL in
21844 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21845 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21846 esac
21847 ac_MKDIR_P=$MKDIR_P
21848 case $MKDIR_P in
21849 [\\/$]* | ?:[\\/]* ) ;;
21850 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21851 esac
21852 _ACEOF
21853
21854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21855 # If the template does not know about datarootdir, expand it.
21856 # FIXME: This hack should be removed a few years after 2.60.
21857 ac_datarootdir_hack=; ac_datarootdir_seen=
21858 ac_sed_dataroot='
21859 /datarootdir/ {
21860 p
21861 q
21862 }
21863 /@datadir@/p
21864 /@docdir@/p
21865 /@infodir@/p
21866 /@localedir@/p
21867 /@mandir@/p'
21868 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21869 *datarootdir*) ac_datarootdir_seen=yes;;
21870 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21872 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21873 _ACEOF
21874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21875 ac_datarootdir_hack='
21876 s&@datadir@&$datadir&g
21877 s&@docdir@&$docdir&g
21878 s&@infodir@&$infodir&g
21879 s&@localedir@&$localedir&g
21880 s&@mandir@&$mandir&g
21881 s&\\\${datarootdir}&$datarootdir&g' ;;
21882 esac
21883 _ACEOF
21884
21885 # Neutralize VPATH when `$srcdir' = `.'.
21886 # Shell code in configure.ac might set extrasub.
21887 # FIXME: do we really want to maintain this feature?
21888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21889 ac_sed_extra="$ac_vpsub
21890 $extrasub
21891 _ACEOF
21892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21893 :t
21894 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21895 s|@configure_input@|$ac_sed_conf_input|;t t
21896 s&@top_builddir@&$ac_top_builddir_sub&;t t
21897 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21898 s&@srcdir@&$ac_srcdir&;t t
21899 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21900 s&@top_srcdir@&$ac_top_srcdir&;t t
21901 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21902 s&@builddir@&$ac_builddir&;t t
21903 s&@abs_builddir@&$ac_abs_builddir&;t t
21904 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21905 s&@INSTALL@&$ac_INSTALL&;t t
21906 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21907 $ac_datarootdir_hack
21908 "
21909 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21910 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21911
21912 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21913 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21914 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21915 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21917 which seems to be undefined. Please make sure it is defined" >&5
21918 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21919 which seems to be undefined. Please make sure it is defined" >&2;}
21920
21921 rm -f "$ac_tmp/stdin"
21922 case $ac_file in
21923 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21924 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21925 esac \
21926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21927 ;;
21928 :H)
21929 #
21930 # CONFIG_HEADER
21931 #
21932 if test x"$ac_file" != x-; then
21933 {
21934 printf "%s\n" "/* $configure_input */" >&1 \
21935 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21936 } >"$ac_tmp/config.h" \
21937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21938 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21940 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21941 else
21942 rm -f "$ac_file"
21943 mv "$ac_tmp/config.h" "$ac_file" \
21944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21945 fi
21946 else
21947 printf "%s\n" "/* $configure_input */" >&1 \
21948 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21949 || as_fn_error $? "could not create -" "$LINENO" 5
21950 fi
21951 # Compute "$ac_file"'s index in $config_headers.
21952 _am_arg="$ac_file"
21953 _am_stamp_count=1
21954 for _am_header in $config_headers :; do
21955 case $_am_header in
21956 $_am_arg | $_am_arg:* )
21957 break ;;
21958 * )
21959 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21960 esac
21961 done
21962 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21963 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21964 X"$_am_arg" : 'X\(//\)[^/]' \| \
21965 X"$_am_arg" : 'X\(//\)$' \| \
21966 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21967 printf "%s\n" X"$_am_arg" |
21968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21969 s//\1/
21970 q
21971 }
21972 /^X\(\/\/\)[^/].*/{
21973 s//\1/
21974 q
21975 }
21976 /^X\(\/\/\)$/{
21977 s//\1/
21978 q
21979 }
21980 /^X\(\/\).*/{
21981 s//\1/
21982 q
21983 }
21984 s/.*/./; q'`/stamp-h$_am_stamp_count
21985 ;;
21986
21987 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21988 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21989 ;;
21990 esac
21991
21992
21993 case $ac_file$ac_mode in
21994 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21995 # Older Autoconf quotes --file arguments for eval, but not when files
21996 # are listed without --file. Let's play safe and only enable the eval
21997 # if we detect the quoting.
21998 # TODO: see whether this extra hack can be removed once we start
21999 # requiring Autoconf 2.70 or later.
22000 case $CONFIG_FILES in #(
22001 *\'*) :
22002 eval set x "$CONFIG_FILES" ;; #(
22003 *) :
22004 set x $CONFIG_FILES ;; #(
22005 *) :
22006 ;;
22007 esac
22008 shift
22009 # Used to flag and report bootstrapping failures.
22010 am_rc=0
22011 for am_mf
22012 do
22013 # Strip MF so we end up with the name of the file.
22014 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22015 # Check whether this is an Automake generated Makefile which includes
22016 # dependency-tracking related rules and includes.
22017 # Grep'ing the whole file directly is not great: AIX grep has a line
22018 # limit of 2048, but all sed's we know have understand at least 4000.
22019 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22020 || continue
22021 am_dirpart=`$as_dirname -- "$am_mf" ||
22022 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22023 X"$am_mf" : 'X\(//\)[^/]' \| \
22024 X"$am_mf" : 'X\(//\)$' \| \
22025 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22026 printf "%s\n" X"$am_mf" |
22027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22028 s//\1/
22029 q
22030 }
22031 /^X\(\/\/\)[^/].*/{
22032 s//\1/
22033 q
22034 }
22035 /^X\(\/\/\)$/{
22036 s//\1/
22037 q
22038 }
22039 /^X\(\/\).*/{
22040 s//\1/
22041 q
22042 }
22043 s/.*/./; q'`
22044 am_filepart=`$as_basename -- "$am_mf" ||
22045 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22046 X"$am_mf" : 'X\(//\)$' \| \
22047 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22048 printf "%s\n" X/"$am_mf" |
22049 sed '/^.*\/\([^/][^/]*\)\/*$/{
22050 s//\1/
22051 q
22052 }
22053 /^X\/\(\/\/\)$/{
22054 s//\1/
22055 q
22056 }
22057 /^X\/\(\/\).*/{
22058 s//\1/
22059 q
22060 }
22061 s/.*/./; q'`
22062 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22063 && sed -e '/# am--include-marker/d' "$am_filepart" \
22064 | $MAKE -f - am--depfiles" >&5
22065 (cd "$am_dirpart" \
22066 && sed -e '/# am--include-marker/d' "$am_filepart" \
22067 | $MAKE -f - am--depfiles) >&5 2>&5
22068 ac_status=$?
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } || am_rc=$?
22071 done
22072 if test $am_rc -ne 0; then
22073 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22074 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22075 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22076 for automatic dependency tracking. If GNU make was not used, consider
22077 re-running the configure script with MAKE=\"gmake\" (or whatever is
22078 necessary). You can also try re-running configure with the
22079 '--disable-dependency-tracking' option to at least be able to build
22080 the package (albeit without support for automatic dependency tracking).
22081 See \`config.log' for more details" "$LINENO" 5; }
22082 fi
22083 { am_dirpart=; unset am_dirpart;}
22084 { am_filepart=; unset am_filepart;}
22085 { am_mf=; unset am_mf;}
22086 { am_rc=; unset am_rc;}
22087 rm -f conftest-deps.mk
22088 }
22089 ;;
22090 "libtool":C)
22091
22092 # See if we are running on zsh, and set the options that allow our
22093 # commands through without removal of \ escapes.
22094 if test -n "${ZSH_VERSION+set}"; then
22095 setopt NO_GLOB_SUBST
22096 fi
22097
22098 cfgfile=${ofile}T
22099 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22100 $RM "$cfgfile"
22101
22102 cat <<_LT_EOF >> "$cfgfile"
22103 #! $SHELL
22104 # Generated automatically by $as_me ($PACKAGE) $VERSION
22105 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22106 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22107
22108 # Provide generalized library-building support services.
22109 # Written by Gordon Matzigkeit, 1996
22110
22111 # Copyright (C) 2014 Free Software Foundation, Inc.
22112 # This is free software; see the source for copying conditions. There is NO
22113 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22114
22115 # GNU Libtool is free software; you can redistribute it and/or modify
22116 # it under the terms of the GNU General Public License as published by
22117 # the Free Software Foundation; either version 2 of of the License, or
22118 # (at your option) any later version.
22119 #
22120 # As a special exception to the GNU General Public License, if you
22121 # distribute this file as part of a program or library that is built
22122 # using GNU Libtool, you may include this file under the same
22123 # distribution terms that you use for the rest of that program.
22124 #
22125 # GNU Libtool is distributed in the hope that it will be useful, but
22126 # WITHOUT ANY WARRANTY; without even the implied warranty of
22127 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22128 # GNU General Public License for more details.
22129 #
22130 # You should have received a copy of the GNU General Public License
22131 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22132
22133
22134 # The names of the tagged configurations supported by this script.
22135 available_tags=''
22136
22137 # Configured defaults for sys_lib_dlsearch_path munging.
22138 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22139
22140 # ### BEGIN LIBTOOL CONFIG
22141
22142 # Which release of libtool.m4 was used?
22143 macro_version=$macro_version
22144 macro_revision=$macro_revision
22145
22146 # Whether or not to build shared libraries.
22147 build_libtool_libs=$enable_shared
22148
22149 # Whether or not to build static libraries.
22150 build_old_libs=$enable_static
22151
22152 # What type of objects to build.
22153 pic_mode=$pic_mode
22154
22155 # Whether or not to optimize for fast installation.
22156 fast_install=$enable_fast_install
22157
22158 # Shared archive member basename,for filename based shared library versioning on AIX.
22159 shared_archive_member_spec=$shared_archive_member_spec
22160
22161 # Shell to use when invoking shell scripts.
22162 SHELL=$lt_SHELL
22163
22164 # An echo program that protects backslashes.
22165 ECHO=$lt_ECHO
22166
22167 # The PATH separator for the build system.
22168 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22169
22170 # The host system.
22171 host_alias=$host_alias
22172 host=$host
22173 host_os=$host_os
22174
22175 # The build system.
22176 build_alias=$build_alias
22177 build=$build
22178 build_os=$build_os
22179
22180 # A sed program that does not truncate output.
22181 SED=$lt_SED
22182
22183 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22184 Xsed="\$SED -e 1s/^X//"
22185
22186 # A grep program that handles long lines.
22187 GREP=$lt_GREP
22188
22189 # An ERE matcher.
22190 EGREP=$lt_EGREP
22191
22192 # A literal string matcher.
22193 FGREP=$lt_FGREP
22194
22195 # A BSD- or MS-compatible name lister.
22196 NM=$lt_NM
22197
22198 # Whether we need soft or hard links.
22199 LN_S=$lt_LN_S
22200
22201 # What is the maximum length of a command?
22202 max_cmd_len=$max_cmd_len
22203
22204 # Object file suffix (normally "o").
22205 objext=$ac_objext
22206
22207 # Executable file suffix (normally "").
22208 exeext=$exeext
22209
22210 # whether the shell understands "unset".
22211 lt_unset=$lt_unset
22212
22213 # turn spaces into newlines.
22214 SP2NL=$lt_lt_SP2NL
22215
22216 # turn newlines into spaces.
22217 NL2SP=$lt_lt_NL2SP
22218
22219 # convert \$build file names to \$host format.
22220 to_host_file_cmd=$lt_cv_to_host_file_cmd
22221
22222 # convert \$build files to toolchain format.
22223 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22224
22225 # A file(cmd) program that detects file types.
22226 FILECMD=$lt_FILECMD
22227
22228 # An object symbol dumper.
22229 OBJDUMP=$lt_OBJDUMP
22230
22231 # Method to check whether dependent libraries are shared objects.
22232 deplibs_check_method=$lt_deplibs_check_method
22233
22234 # Command to use when deplibs_check_method = "file_magic".
22235 file_magic_cmd=$lt_file_magic_cmd
22236
22237 # How to find potential files when deplibs_check_method = "file_magic".
22238 file_magic_glob=$lt_file_magic_glob
22239
22240 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22241 want_nocaseglob=$lt_want_nocaseglob
22242
22243 # DLL creation program.
22244 DLLTOOL=$lt_DLLTOOL
22245
22246 # Command to associate shared and link libraries.
22247 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22248
22249 # The archiver.
22250 AR=$lt_AR
22251
22252 # Flags to create an archive (by configure).
22253 lt_ar_flags=$lt_ar_flags
22254
22255 # Flags to create an archive.
22256 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22257
22258 # How to feed a file listing to the archiver.
22259 archiver_list_spec=$lt_archiver_list_spec
22260
22261 # A symbol stripping program.
22262 STRIP=$lt_STRIP
22263
22264 # Commands used to install an old-style archive.
22265 RANLIB=$lt_RANLIB
22266 old_postinstall_cmds=$lt_old_postinstall_cmds
22267 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22268
22269 # Whether to use a lock for old archive extraction.
22270 lock_old_archive_extraction=$lock_old_archive_extraction
22271
22272 # A C compiler.
22273 LTCC=$lt_CC
22274
22275 # LTCC compiler flags.
22276 LTCFLAGS=$lt_CFLAGS
22277
22278 # Take the output of nm and produce a listing of raw symbols and C names.
22279 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22280
22281 # Transform the output of nm in a proper C declaration.
22282 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22283
22284 # Transform the output of nm into a list of symbols to manually relocate.
22285 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22286
22287 # Transform the output of nm in a C name address pair.
22288 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22289
22290 # Transform the output of nm in a C name address pair when lib prefix is needed.
22291 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22292
22293 # The name lister interface.
22294 nm_interface=$lt_lt_cv_nm_interface
22295
22296 # Specify filename containing input files for \$NM.
22297 nm_file_list_spec=$lt_nm_file_list_spec
22298
22299 # The root where to search for dependent libraries,and where our libraries should be installed.
22300 lt_sysroot=$lt_sysroot
22301
22302 # Command to truncate a binary pipe.
22303 lt_truncate_bin=$lt_lt_cv_truncate_bin
22304
22305 # The name of the directory that contains temporary libtool files.
22306 objdir=$objdir
22307
22308 # Used to examine libraries when file_magic_cmd begins with "file".
22309 MAGIC_CMD=$MAGIC_CMD
22310
22311 # Must we lock files when doing compilation?
22312 need_locks=$lt_need_locks
22313
22314 # Manifest tool.
22315 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22316
22317 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22318 DSYMUTIL=$lt_DSYMUTIL
22319
22320 # Tool to change global to local symbols on Mac OS X.
22321 NMEDIT=$lt_NMEDIT
22322
22323 # Tool to manipulate fat objects and archives on Mac OS X.
22324 LIPO=$lt_LIPO
22325
22326 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22327 OTOOL=$lt_OTOOL
22328
22329 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22330 OTOOL64=$lt_OTOOL64
22331
22332 # Old archive suffix (normally "a").
22333 libext=$libext
22334
22335 # Shared library suffix (normally ".so").
22336 shrext_cmds=$lt_shrext_cmds
22337
22338 # The commands to extract the exported symbol list from a shared archive.
22339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22340
22341 # Variables whose values should be saved in libtool wrapper scripts and
22342 # restored at link time.
22343 variables_saved_for_relink=$lt_variables_saved_for_relink
22344
22345 # Do we need the "lib" prefix for modules?
22346 need_lib_prefix=$need_lib_prefix
22347
22348 # Do we need a version for libraries?
22349 need_version=$need_version
22350
22351 # Library versioning type.
22352 version_type=$version_type
22353
22354 # Shared library runtime path variable.
22355 runpath_var=$runpath_var
22356
22357 # Shared library path variable.
22358 shlibpath_var=$shlibpath_var
22359
22360 # Is shlibpath searched before the hard-coded library search path?
22361 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22362
22363 # Format of library name prefix.
22364 libname_spec=$lt_libname_spec
22365
22366 # List of archive names. First name is the real one, the rest are links.
22367 # The last name is the one that the linker finds with -lNAME
22368 library_names_spec=$lt_library_names_spec
22369
22370 # The coded name of the library, if different from the real name.
22371 soname_spec=$lt_soname_spec
22372
22373 # Permission mode override for installation of shared libraries.
22374 install_override_mode=$lt_install_override_mode
22375
22376 # Command to use after installation of a shared archive.
22377 postinstall_cmds=$lt_postinstall_cmds
22378
22379 # Command to use after uninstallation of a shared archive.
22380 postuninstall_cmds=$lt_postuninstall_cmds
22381
22382 # Commands used to finish a libtool library installation in a directory.
22383 finish_cmds=$lt_finish_cmds
22384
22385 # As "finish_cmds", except a single script fragment to be evaled but
22386 # not shown.
22387 finish_eval=$lt_finish_eval
22388
22389 # Whether we should hardcode library paths into libraries.
22390 hardcode_into_libs=$hardcode_into_libs
22391
22392 # Compile-time system search path for libraries.
22393 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22394
22395 # Detected run-time system search path for libraries.
22396 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22397
22398 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22399 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22400
22401 # Whether dlopen is supported.
22402 dlopen_support=$enable_dlopen
22403
22404 # Whether dlopen of programs is supported.
22405 dlopen_self=$enable_dlopen_self
22406
22407 # Whether dlopen of statically linked programs is supported.
22408 dlopen_self_static=$enable_dlopen_self_static
22409
22410 # Commands to strip libraries.
22411 old_striplib=$lt_old_striplib
22412 striplib=$lt_striplib
22413
22414
22415 # The linker used to build libraries.
22416 LD=$lt_LD
22417
22418 # How to create reloadable object files.
22419 reload_flag=$lt_reload_flag
22420 reload_cmds=$lt_reload_cmds
22421
22422 # Commands used to build an old-style archive.
22423 old_archive_cmds=$lt_old_archive_cmds
22424
22425 # A language specific compiler.
22426 CC=$lt_compiler
22427
22428 # Is the compiler the GNU compiler?
22429 with_gcc=$GCC
22430
22431 # Compiler flag to turn off builtin functions.
22432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22433
22434 # Additional compiler flags for building library objects.
22435 pic_flag=$lt_lt_prog_compiler_pic
22436
22437 # How to pass a linker flag through the compiler.
22438 wl=$lt_lt_prog_compiler_wl
22439
22440 # Compiler flag to prevent dynamic linking.
22441 link_static_flag=$lt_lt_prog_compiler_static
22442
22443 # Does compiler simultaneously support -c and -o options?
22444 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22445
22446 # Whether or not to add -lc for building shared libraries.
22447 build_libtool_need_lc=$archive_cmds_need_lc
22448
22449 # Whether or not to disallow shared libs when runtime libs are static.
22450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22451
22452 # Compiler flag to allow reflexive dlopens.
22453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22454
22455 # Compiler flag to generate shared objects directly from archives.
22456 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22457
22458 # Whether the compiler copes with passing no objects directly.
22459 compiler_needs_object=$lt_compiler_needs_object
22460
22461 # Create an old-style archive from a shared archive.
22462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22463
22464 # Create a temporary old-style archive to link instead of a shared archive.
22465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22466
22467 # Commands used to build a shared archive.
22468 archive_cmds=$lt_archive_cmds
22469 archive_expsym_cmds=$lt_archive_expsym_cmds
22470
22471 # Commands used to build a loadable module if different from building
22472 # a shared archive.
22473 module_cmds=$lt_module_cmds
22474 module_expsym_cmds=$lt_module_expsym_cmds
22475
22476 # Whether we are building with GNU ld or not.
22477 with_gnu_ld=$lt_with_gnu_ld
22478
22479 # Flag that allows shared libraries with undefined symbols to be built.
22480 allow_undefined_flag=$lt_allow_undefined_flag
22481
22482 # Flag that enforces no undefined symbols.
22483 no_undefined_flag=$lt_no_undefined_flag
22484
22485 # Flag to hardcode \$libdir into a binary during linking.
22486 # This must work even if \$libdir does not exist
22487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22488
22489 # Whether we need a single "-rpath" flag with a separated argument.
22490 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22491
22492 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22493 # DIR into the resulting binary.
22494 hardcode_direct=$hardcode_direct
22495
22496 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22497 # DIR into the resulting binary and the resulting library dependency is
22498 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22499 # library is relocated.
22500 hardcode_direct_absolute=$hardcode_direct_absolute
22501
22502 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22503 # into the resulting binary.
22504 hardcode_minus_L=$hardcode_minus_L
22505
22506 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22507 # into the resulting binary.
22508 hardcode_shlibpath_var=$hardcode_shlibpath_var
22509
22510 # Set to "yes" if building a shared library automatically hardcodes DIR
22511 # into the library and all subsequent libraries and executables linked
22512 # against it.
22513 hardcode_automatic=$hardcode_automatic
22514
22515 # Set to yes if linker adds runtime paths of dependent libraries
22516 # to runtime path list.
22517 inherit_rpath=$inherit_rpath
22518
22519 # Whether libtool must link a program against all its dependency libraries.
22520 link_all_deplibs=$link_all_deplibs
22521
22522 # Set to "yes" if exported symbols are required.
22523 always_export_symbols=$always_export_symbols
22524
22525 # The commands to list exported symbols.
22526 export_symbols_cmds=$lt_export_symbols_cmds
22527
22528 # Symbols that should not be listed in the preloaded symbols.
22529 exclude_expsyms=$lt_exclude_expsyms
22530
22531 # Symbols that must always be exported.
22532 include_expsyms=$lt_include_expsyms
22533
22534 # Commands necessary for linking programs (against libraries) with templates.
22535 prelink_cmds=$lt_prelink_cmds
22536
22537 # Commands necessary for finishing linking programs.
22538 postlink_cmds=$lt_postlink_cmds
22539
22540 # Specify filename containing input files.
22541 file_list_spec=$lt_file_list_spec
22542
22543 # How to hardcode a shared library path into an executable.
22544 hardcode_action=$hardcode_action
22545
22546 # ### END LIBTOOL CONFIG
22547
22548 _LT_EOF
22549
22550 cat <<'_LT_EOF' >> "$cfgfile"
22551
22552 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22553
22554 # func_munge_path_list VARIABLE PATH
22555 # -----------------------------------
22556 # VARIABLE is name of variable containing _space_ separated list of
22557 # directories to be munged by the contents of PATH, which is string
22558 # having a format:
22559 # "DIR[:DIR]:"
22560 # string "DIR[ DIR]" will be prepended to VARIABLE
22561 # ":DIR[:DIR]"
22562 # string "DIR[ DIR]" will be appended to VARIABLE
22563 # "DIRP[:DIRP]::[DIRA:]DIRA"
22564 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22565 # "DIRA[ DIRA]" will be appended to VARIABLE
22566 # "DIR[:DIR]"
22567 # VARIABLE will be replaced by "DIR[ DIR]"
22568 func_munge_path_list ()
22569 {
22570 case x$2 in
22571 x)
22572 ;;
22573 *:)
22574 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22575 ;;
22576 x:*)
22577 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22578 ;;
22579 *::*)
22580 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22581 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22582 ;;
22583 *)
22584 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22585 ;;
22586 esac
22587 }
22588
22589
22590 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22591 func_cc_basename ()
22592 {
22593 for cc_temp in $*""; do
22594 case $cc_temp in
22595 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22596 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22597 \-*) ;;
22598 *) break;;
22599 esac
22600 done
22601 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22602 }
22603
22604
22605 # ### END FUNCTIONS SHARED WITH CONFIGURE
22606
22607 _LT_EOF
22608
22609 case $host_os in
22610 aix3*)
22611 cat <<\_LT_EOF >> "$cfgfile"
22612 # AIX sometimes has problems with the GCC collect2 program. For some
22613 # reason, if we set the COLLECT_NAMES environment variable, the problems
22614 # vanish in a puff of smoke.
22615 if test set != "${COLLECT_NAMES+set}"; then
22616 COLLECT_NAMES=
22617 export COLLECT_NAMES
22618 fi
22619 _LT_EOF
22620 ;;
22621 esac
22622
22623
22624
22625 ltmain=$ac_aux_dir/ltmain.sh
22626
22627
22628 # We use sed instead of cat because bash on DJGPP gets confused if
22629 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22630 # text mode, it properly converts lines to CR/LF. This bash problem
22631 # is reportedly fixed, but why not run on old versions too?
22632 $SED '$q' "$ltmain" >> "$cfgfile" \
22633 || (rm -f "$cfgfile"; exit 1)
22634
22635 mv -f "$cfgfile" "$ofile" ||
22636 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22637 chmod +x "$ofile"
22638
22639 ;;
22640
22641 esac
22642 done # for ac_tag
22643
22644
22645 as_fn_exit 0
22646 _ACEOF
22647 ac_clean_files=$ac_clean_files_save
22648
22649 test $ac_write_fail = 0 ||
22650 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22651
22652
22653 # configure is writing to config.log, and then calls config.status.
22654 # config.status does its own redirection, appending to config.log.
22655 # Unfortunately, on DOS this fails, as config.log is still kept open
22656 # by configure, so config.status won't be able to write to it; its
22657 # output is simply discarded. So we exec the FD to /dev/null,
22658 # effectively closing config.log, so it can be properly (re)opened and
22659 # appended to by config.status. When coming back to configure, we
22660 # need to make the FD available again.
22661 if test "$no_create" != yes; then
22662 ac_cs_success=:
22663 ac_config_status_args=
22664 test "$silent" = yes &&
22665 ac_config_status_args="$ac_config_status_args --quiet"
22666 exec 5>/dev/null
22667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22668 exec 5>>config.log
22669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22670 # would make configure fail if this is the last instruction.
22671 $ac_cs_success || as_fn_exit 1
22672 fi
22673 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22675 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22676 fi
22677
22678
22679