configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libfontenc 1.1.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libfontenc'
593 PACKAGE_TARNAME='libfontenc'
594 PACKAGE_VERSION='1.1.4'
595 PACKAGE_STRING='libfontenc 1.1.4'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 LINT_FALSE
641 LINT_TRUE
642 LINT_FLAGS
643 LINT
644 FONTENC_LIBS
645 FONTENC_CFLAGS
646 ENCODINGSDIR
647 FONTROOTDIR
648 MAN_SUBSTS
649 XORG_MAN_PAGE
650 ADMIN_MAN_DIR
651 DRIVER_MAN_DIR
652 MISC_MAN_DIR
653 FILE_MAN_DIR
654 LIB_MAN_DIR
655 APP_MAN_DIR
656 ADMIN_MAN_SUFFIX
657 DRIVER_MAN_SUFFIX
658 MISC_MAN_SUFFIX
659 FILE_MAN_SUFFIX
660 LIB_MAN_SUFFIX
661 APP_MAN_SUFFIX
662 INSTALL_CMD
663 PKG_CONFIG_LIBDIR
664 PKG_CONFIG_PATH
665 PKG_CONFIG
666 CHANGELOG_CMD
667 STRICT_CFLAGS
668 CWARNFLAGS
669 BASE_CFLAGS
670 CPP
671 LT_SYS_LIBRARY_PATH
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 am__fastdepCC_FALSE
693 am__fastdepCC_TRUE
694 CCDEPMODE
695 am__nodep
696 AMDEPBACKSLASH
697 AMDEP_FALSE
698 AMDEP_TRUE
699 am__quote
700 am__include
701 DEPDIR
702 OBJEXT
703 EXEEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
708 CC
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 LIBTOOL
718 AM_BACKSLASH
719 AM_DEFAULT_VERBOSITY
720 AM_DEFAULT_V
721 AM_V
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
727 AWK
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_alias
746 host_alias
747 build_alias
748 LIBS
749 ECHO_T
750 ECHO_N
751 ECHO_C
752 DEFS
753 mandir
754 localedir
755 libdir
756 psdir
757 pdfdir
758 dvidir
759 htmldir
760 infodir
761 docdir
762 oldincludedir
763 includedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_silent_rules
787 enable_shared
788 enable_static
789 with_pic
790 enable_fast_install
791 with_aix_soname
792 enable_dependency_tracking
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 enable_selective_werror
797 enable_strict_compilation
798 with_fontrootdir
799 with_encodingsdir
800 with_lint
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 LT_SYS_LIBRARY_PATH
811 CPP
812 PKG_CONFIG
813 PKG_CONFIG_PATH
814 PKG_CONFIG_LIBDIR
815 FONTENC_CFLAGS
816 FONTENC_LIBS
817 LINT
818 LINT_FLAGS'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324 else
1325 ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures libfontenc 1.1.4 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/libfontenc]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1413
1414 cat <<\_ACEOF
1415
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of libfontenc 1.1.4:";;
1430 esac
1431 cat <<\_ACEOF
1432
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-silent-rules less verbose build output (undo: "make V=1")
1438 --disable-silent-rules verbose build output (undo: "make V=0")
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --disable-selective-werror
1449 Turn off selective compiler errors. (default:
1450 enabled)
1451 --enable-strict-compilation
1452 Enable all warnings from compiler and make them
1453 errors (default: disabled)
1454
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-aix-soname=aix|svr4|both
1461 shared library versioning (aka "SONAME") variant to
1462 provide on AIX, [default=aix].
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1465 compiler's sysroot if not specified).
1466 --with-fontrootdir=DIR Path to root directory for font files
1467 --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
1468 --with-lint Use a lint-style source code checker (default:
1469 disabled)
1470
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 LT_SYS_LIBRARY_PATH
1480 User-defined run-time library search path.
1481 CPP C preprocessor
1482 PKG_CONFIG path to pkg-config utility
1483 PKG_CONFIG_PATH
1484 directories to add to pkg-config's search path
1485 PKG_CONFIG_LIBDIR
1486 path overriding pkg-config's built-in search path
1487 FONTENC_CFLAGS
1488 C compiler flags for FONTENC, overriding pkg-config
1489 FONTENC_LIBS
1490 linker flags for FONTENC, overriding pkg-config
1491 LINT Path to a lint-style command
1492 LINT_FLAGS Flags for the lint-style command
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 libfontenc configure 1.1.4
1561 generated by GNU Autoconf 2.69
1562
1563 Copyright (C) 2012 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567 exit
1568 fi
1569
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1573
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_compile
1611
1612 # ac_fn_c_try_link LINENO
1613 # -----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_link ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext conftest$ac_exeext
1619 if { { ac_try="$ac_link"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
1639 test -x conftest$ac_exeext
1640 }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647 fi
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_link
1657
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1669 else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 $4
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 eval "$3=yes"
1677 else
1678 eval "$3=no"
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 fi
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } # ac_fn_c_check_header_compile
1688
1689 # ac_fn_c_try_cpp LINENO
1690 # ----------------------
1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_cpp ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } > conftest.i && {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720 fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_cpp
1725
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=$ac_status
1761 fi
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_run
1767
1768 # ac_fn_c_check_func LINENO FUNC VAR
1769 # ----------------------------------
1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1771 ac_fn_c_check_func ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783 #define $2 innocuous_$2
1784
1785 /* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1789
1790 #ifdef __STDC__
1791 # include <limits.h>
1792 #else
1793 # include <assert.h>
1794 #endif
1795
1796 #undef $2
1797
1798 /* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801 #ifdef __cplusplus
1802 extern "C"
1803 #endif
1804 char $2 ();
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined __stub_$2 || defined __stub___$2
1809 choke me
1810 #endif
1811
1812 int
1813 main ()
1814 {
1815 return $2 ();
1816 ;
1817 return 0;
1818 }
1819 _ACEOF
1820 if ac_fn_c_try_link "$LINENO"; then :
1821 eval "$3=yes"
1822 else
1823 eval "$3=no"
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext \
1826 conftest$ac_exeext conftest.$ac_ext
1827 fi
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833 } # ac_fn_c_check_func
1834
1835 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1836 # ---------------------------------------------
1837 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1838 # accordingly.
1839 ac_fn_c_check_decl ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 as_decl_name=`echo $2|sed 's/ *(.*//'`
1843 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1845 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 $4
1852 int
1853 main ()
1854 {
1855 #ifndef $as_decl_name
1856 #ifdef __cplusplus
1857 (void) $as_decl_use;
1858 #else
1859 (void) $as_decl_name;
1860 #endif
1861 #endif
1862
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_decl
1880
1881 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1882 # -------------------------------------------------------
1883 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1884 # the include files in INCLUDES and setting the cache variable VAR
1885 # accordingly.
1886 ac_fn_c_check_header_mongrel ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if eval \${$3+:} false; then :
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1894 fi
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 else
1899 # Is the header compilable?
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1901 $as_echo_n "checking $2 usability... " >&6; }
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 #include <$2>
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 ac_header_compiler=yes
1909 else
1910 ac_header_compiler=no
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1914 $as_echo "$ac_header_compiler" >&6; }
1915
1916 # Is the header present?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1918 $as_echo_n "checking $2 presence... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 #include <$2>
1922 _ACEOF
1923 if ac_fn_c_try_cpp "$LINENO"; then :
1924 ac_header_preproc=yes
1925 else
1926 ac_header_preproc=no
1927 fi
1928 rm -f conftest.err conftest.i conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1930 $as_echo "$ac_header_preproc" >&6; }
1931
1932 # So? What about this header?
1933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1934 yes:no: )
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1936 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1938 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1939 ;;
1940 no:yes:* )
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1942 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1944 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1946 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1948 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1950 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1951 ( $as_echo "## ------------------------------------------------------------------------ ##
1952 ## Report this to https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues ##
1953 ## ------------------------------------------------------------------------ ##"
1954 ) | sed "s/^/$as_me: WARNING: /" >&2
1955 ;;
1956 esac
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1961 else
1962 eval "$3=\$ac_header_compiler"
1963 fi
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 fi
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970 } # ac_fn_c_check_header_mongrel
1971 cat >config.log <<_ACEOF
1972 This file contains any messages produced by compilers while
1973 running configure, to aid debugging if configure makes a mistake.
1974
1975 It was created by libfontenc $as_me 1.1.4, which was
1976 generated by GNU Autoconf 2.69. Invocation command line was
1977
1978 $ $0 $@
1979
1980 _ACEOF
1981 exec 5>>config.log
1982 {
1983 cat <<_ASUNAME
1984 ## --------- ##
1985 ## Platform. ##
1986 ## --------- ##
1987
1988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993
1994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1996
1997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2004
2005 _ASUNAME
2006
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 $as_echo "PATH: $as_dir"
2013 done
2014 IFS=$as_save_IFS
2015
2016 } >&5
2017
2018 cat >&5 <<_ACEOF
2019
2020
2021 ## ----------- ##
2022 ## Core tests. ##
2023 ## ----------- ##
2024
2025 _ACEOF
2026
2027
2028 # Keep a trace of the command line.
2029 # Strip out --no-create and --no-recursion so they do not pile up.
2030 # Strip out --silent because we don't want to record it for future runs.
2031 # Also quote any args containing shell meta-characters.
2032 # Make two passes to allow for proper duplicate-argument suppression.
2033 ac_configure_args=
2034 ac_configure_args0=
2035 ac_configure_args1=
2036 ac_must_keep_next=false
2037 for ac_pass in 1 2
2038 do
2039 for ac_arg
2040 do
2041 case $ac_arg in
2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2044 | -silent | --silent | --silen | --sile | --sil)
2045 continue ;;
2046 *\'*)
2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2048 esac
2049 case $ac_pass in
2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051 2)
2052 as_fn_append ac_configure_args1 " '$ac_arg'"
2053 if test $ac_must_keep_next = true; then
2054 ac_must_keep_next=false # Got value, back to normal.
2055 else
2056 case $ac_arg in
2057 *=* | --config-cache | -C | -disable-* | --disable-* \
2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2060 | -with-* | --with-* | -without-* | --without-* | --x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2063 esac
2064 ;;
2065 -* ) ac_must_keep_next=true ;;
2066 esac
2067 fi
2068 as_fn_append ac_configure_args " '$ac_arg'"
2069 ;;
2070 esac
2071 done
2072 done
2073 { ac_configure_args0=; unset ac_configure_args0;}
2074 { ac_configure_args1=; unset ac_configure_args1;}
2075
2076 # When interrupted or exit'd, cleanup temporary files, and complete
2077 # config.log. We remove comments because anyway the quotes in there
2078 # would cause problems or look ugly.
2079 # WARNING: Use '\'' to represent an apostrophe within the trap.
2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081 trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2083 {
2084 echo
2085
2086 $as_echo "## ---------------- ##
2087 ## Cache variables. ##
2088 ## ---------------- ##"
2089 echo
2090 # The following way of writing the cache mishandles newlines in values,
2091 (
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in #(
2095 *${as_nl}*)
2096 case $ac_var in #(
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2099 esac
2100 case $ac_var in #(
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2104 esac ;;
2105 esac
2106 done
2107 (set) 2>&1 |
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2110 sed -n \
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2113 ;; #(
2114 *)
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2116 ;;
2117 esac |
2118 sort
2119 )
2120 echo
2121
2122 $as_echo "## ----------------- ##
2123 ## Output variables. ##
2124 ## ----------------- ##"
2125 echo
2126 for ac_var in $ac_subst_vars
2127 do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2135
2136 if test -n "$ac_subst_files"; then
2137 $as_echo "## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##"
2140 echo
2141 for ac_var in $ac_subst_files
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150 fi
2151
2152 if test -s confdefs.h; then
2153 $as_echo "## ----------- ##
2154 ## confdefs.h. ##
2155 ## ----------- ##"
2156 echo
2157 cat confdefs.h
2158 echo
2159 fi
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2163 } >&5
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 exit $exit_status
2167 ' 0
2168 for ac_signal in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170 done
2171 ac_signal=0
2172
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest* confdefs.h
2175
2176 $as_echo "/* confdefs.h */" > confdefs.h
2177
2178 # Predefined preprocessor variables.
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2202 _ACEOF
2203
2204
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2207 ac_site_file1=NONE
2208 ac_site_file2=NONE
2209 if test -n "$CONFIG_SITE"; then
2210 # We do not want a PATH search for config.site.
2211 case $CONFIG_SITE in #((
2212 -*) ac_site_file1=./$CONFIG_SITE;;
2213 */*) ac_site_file1=$CONFIG_SITE;;
2214 *) ac_site_file1=./$CONFIG_SITE;;
2215 esac
2216 elif test "x$prefix" != xNONE; then
2217 ac_site_file1=$prefix/share/config.site
2218 ac_site_file2=$prefix/etc/config.site
2219 else
2220 ac_site_file1=$ac_default_prefix/share/config.site
2221 ac_site_file2=$ac_default_prefix/etc/config.site
2222 fi
2223 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2224 do
2225 test "x$ac_site_file" = xNONE && continue
2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229 sed 's/^/| /' "$ac_site_file" >&5
2230 . "$ac_site_file" \
2231 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 as_fn_error $? "failed to load site script $ac_site_file
2234 See \`config.log' for more details" "$LINENO" 5; }
2235 fi
2236 done
2237
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2248 fi
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2253 fi
2254
2255 # Check that the precious variables saved in the cache have kept the same
2256 # value.
2257 ac_cache_corrupted=false
2258 for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2303 fi
2304 done
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311 fi
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2315
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322
2323
2324 ac_config_headers="$ac_config_headers config.h"
2325
2326
2327 # Initialize Automake
2328 am__api_version='1.15'
2329
2330 ac_aux_dir=
2331 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2332 if test -f "$ac_dir/install-sh"; then
2333 ac_aux_dir=$ac_dir
2334 ac_install_sh="$ac_aux_dir/install-sh -c"
2335 break
2336 elif test -f "$ac_dir/install.sh"; then
2337 ac_aux_dir=$ac_dir
2338 ac_install_sh="$ac_aux_dir/install.sh -c"
2339 break
2340 elif test -f "$ac_dir/shtool"; then
2341 ac_aux_dir=$ac_dir
2342 ac_install_sh="$ac_aux_dir/shtool install -c"
2343 break
2344 fi
2345 done
2346 if test -z "$ac_aux_dir"; then
2347 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2348 fi
2349
2350 # These three variables are undocumented and unsupported,
2351 # and are intended to be withdrawn in a future Autoconf release.
2352 # They can cause serious problems if a builder's source tree is in a directory
2353 # whose full name contains unusual characters.
2354 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2355 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2356 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2357
2358
2359 # Find a good install program. We prefer a C program (faster),
2360 # so one script is as good as another. But avoid the broken or
2361 # incompatible versions:
2362 # SysV /etc/install, /usr/sbin/install
2363 # SunOS /usr/etc/install
2364 # IRIX /sbin/install
2365 # AIX /bin/install
2366 # AmigaOS /C/install, which installs bootblocks on floppy discs
2367 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2368 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2369 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2370 # OS/2's system install, which has a completely different semantic
2371 # ./install, which can be erroneously created by make from ./install.sh.
2372 # Reject install programs that cannot install multiple files.
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2374 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2375 if test -z "$INSTALL"; then
2376 if ${ac_cv_path_install+:} false; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 # Account for people who put trailing slashes in PATH elements.
2385 case $as_dir/ in #((
2386 ./ | .// | /[cC]/* | \
2387 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2388 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2389 /usr/ucb/* ) ;;
2390 *)
2391 # OSF1 and SCO ODT 3.0 have their own names for install.
2392 # Don't use installbsd from OSF since it installs stuff as root
2393 # by default.
2394 for ac_prog in ginstall scoinst install; do
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2397 if test $ac_prog = install &&
2398 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399 # AIX install. It has an incompatible calling convention.
2400 :
2401 elif test $ac_prog = install &&
2402 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2403 # program-specific install script used by HP pwplus--don't use.
2404 :
2405 else
2406 rm -rf conftest.one conftest.two conftest.dir
2407 echo one > conftest.one
2408 echo two > conftest.two
2409 mkdir conftest.dir
2410 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2411 test -s conftest.one && test -s conftest.two &&
2412 test -s conftest.dir/conftest.one &&
2413 test -s conftest.dir/conftest.two
2414 then
2415 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2416 break 3
2417 fi
2418 fi
2419 fi
2420 done
2421 done
2422 ;;
2423 esac
2424
2425 done
2426 IFS=$as_save_IFS
2427
2428 rm -rf conftest.one conftest.two conftest.dir
2429
2430 fi
2431 if test "${ac_cv_path_install+set}" = set; then
2432 INSTALL=$ac_cv_path_install
2433 else
2434 # As a last resort, use the slow shell script. Don't cache a
2435 # value for INSTALL within a source directory, because that will
2436 # break other packages using the cache if that directory is
2437 # removed, or if the value is a relative name.
2438 INSTALL=$ac_install_sh
2439 fi
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2442 $as_echo "$INSTALL" >&6; }
2443
2444 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2445 # It thinks the first close brace ends the variable substitution.
2446 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2447
2448 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2449
2450 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2451
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2453 $as_echo_n "checking whether build environment is sane... " >&6; }
2454 # Reject unsafe characters in $srcdir or the absolute working directory
2455 # name. Accept space and tab only in the latter.
2456 am_lf='
2457 '
2458 case `pwd` in
2459 *[\\\"\#\$\&\'\`$am_lf]*)
2460 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2461 esac
2462 case $srcdir in
2463 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2464 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2465 esac
2466
2467 # Do 'set' in a subshell so we don't clobber the current shell's
2468 # arguments. Must try -L first in case configure is actually a
2469 # symlink; some systems play weird games with the mod time of symlinks
2470 # (eg FreeBSD returns the mod time of the symlink's containing
2471 # directory).
2472 if (
2473 am_has_slept=no
2474 for am_try in 1 2; do
2475 echo "timestamp, slept: $am_has_slept" > conftest.file
2476 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2477 if test "$*" = "X"; then
2478 # -L didn't work.
2479 set X `ls -t "$srcdir/configure" conftest.file`
2480 fi
2481 if test "$*" != "X $srcdir/configure conftest.file" \
2482 && test "$*" != "X conftest.file $srcdir/configure"; then
2483
2484 # If neither matched, then we have a broken ls. This can happen
2485 # if, for instance, CONFIG_SHELL is bash and it inherits a
2486 # broken ls alias from the environment. This has actually
2487 # happened. Such a system could not be considered "sane".
2488 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2489 alias in your environment" "$LINENO" 5
2490 fi
2491 if test "$2" = conftest.file || test $am_try -eq 2; then
2492 break
2493 fi
2494 # Just in case.
2495 sleep 1
2496 am_has_slept=yes
2497 done
2498 test "$2" = conftest.file
2499 )
2500 then
2501 # Ok.
2502 :
2503 else
2504 as_fn_error $? "newly created file is older than distributed files!
2505 Check your system clock" "$LINENO" 5
2506 fi
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508 $as_echo "yes" >&6; }
2509 # If we didn't sleep, we still need to ensure time stamps of config.status and
2510 # generated files are strictly newer.
2511 am_sleep_pid=
2512 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2513 ( sleep 1 ) &
2514 am_sleep_pid=$!
2515 fi
2516
2517 rm -f conftest.file
2518
2519 test "$program_prefix" != NONE &&
2520 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2521 # Use a double $ so make ignores it.
2522 test "$program_suffix" != NONE &&
2523 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2524 # Double any \ or $.
2525 # By default was `s,x,x', remove it if useless.
2526 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2527 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2528
2529 # Expand $ac_aux_dir to an absolute path.
2530 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2531
2532 if test x"${MISSING+set}" != xset; then
2533 case $am_aux_dir in
2534 *\ * | *\ *)
2535 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2536 *)
2537 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2538 esac
2539 fi
2540 # Use eval to expand $SHELL
2541 if eval "$MISSING --is-lightweight"; then
2542 am_missing_run="$MISSING "
2543 else
2544 am_missing_run=
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2546 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2547 fi
2548
2549 if test x"${install_sh+set}" != xset; then
2550 case $am_aux_dir in
2551 *\ * | *\ *)
2552 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2553 *)
2554 install_sh="\${SHELL} $am_aux_dir/install-sh"
2555 esac
2556 fi
2557
2558 # Installed binaries are usually stripped using 'strip' when the user
2559 # run "make install-strip". However 'strip' might not be the right
2560 # tool to use in cross-compilation environments, therefore Automake
2561 # will honor the 'STRIP' environment variable to overrule this program.
2562 if test "$cross_compiling" != no; then
2563 if test -n "$ac_tool_prefix"; then
2564 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2565 set dummy ${ac_tool_prefix}strip; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if ${ac_cv_prog_STRIP+:} false; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if test -n "$STRIP"; then
2572 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2581 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 STRIP=$ac_cv_prog_STRIP
2592 if test -n "$STRIP"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2594 $as_echo "$STRIP" >&6; }
2595 else
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599
2600
2601 fi
2602 if test -z "$ac_cv_prog_STRIP"; then
2603 ac_ct_STRIP=$STRIP
2604 # Extract the first word of "strip", so it can be a program name with args.
2605 set dummy strip; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 if test -n "$ac_ct_STRIP"; then
2612 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621 ac_cv_prog_ac_ct_STRIP="strip"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625 done
2626 done
2627 IFS=$as_save_IFS
2628
2629 fi
2630 fi
2631 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2632 if test -n "$ac_ct_STRIP"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2634 $as_echo "$ac_ct_STRIP" >&6; }
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2638 fi
2639
2640 if test "x$ac_ct_STRIP" = x; then
2641 STRIP=":"
2642 else
2643 case $cross_compiling:$ac_tool_warned in
2644 yes:)
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2647 ac_tool_warned=yes ;;
2648 esac
2649 STRIP=$ac_ct_STRIP
2650 fi
2651 else
2652 STRIP="$ac_cv_prog_STRIP"
2653 fi
2654
2655 fi
2656 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2659 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2660 if test -z "$MKDIR_P"; then
2661 if ${ac_cv_path_mkdir+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_prog in mkdir gmkdir; do
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2672 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2673 'mkdir (GNU coreutils) '* | \
2674 'mkdir (coreutils) '* | \
2675 'mkdir (fileutils) '4.1*)
2676 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2677 break 3;;
2678 esac
2679 done
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685
2686 test -d ./--version && rmdir ./--version
2687 if test "${ac_cv_path_mkdir+set}" = set; then
2688 MKDIR_P="$ac_cv_path_mkdir -p"
2689 else
2690 # As a last resort, use the slow shell script. Don't cache a
2691 # value for MKDIR_P within a source directory, because that will
2692 # break other packages using the cache if that directory is
2693 # removed, or if the value is a relative name.
2694 MKDIR_P="$ac_install_sh -d"
2695 fi
2696 fi
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2698 $as_echo "$MKDIR_P" >&6; }
2699
2700 for ac_prog in gawk mawk nawk awk
2701 do
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2703 set dummy $ac_prog; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_AWK+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$AWK"; then
2710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_prog_AWK="$ac_prog"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 AWK=$ac_cv_prog_AWK
2730 if test -n "$AWK"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2732 $as_echo "$AWK" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738
2739 test -n "$AWK" && break
2740 done
2741
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2743 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2744 set x ${MAKE-make}
2745 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2746 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 cat >conftest.make <<\_ACEOF
2750 SHELL = /bin/sh
2751 all:
2752 @echo '@@@%%%=$(MAKE)=@@@%%%'
2753 _ACEOF
2754 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2755 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2756 *@@@%%%=?*=@@@%%%*)
2757 eval ac_cv_prog_make_${ac_make}_set=yes;;
2758 *)
2759 eval ac_cv_prog_make_${ac_make}_set=no;;
2760 esac
2761 rm -f conftest.make
2762 fi
2763 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2765 $as_echo "yes" >&6; }
2766 SET_MAKE=
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 SET_MAKE="MAKE=${MAKE-make}"
2771 fi
2772
2773 rm -rf .tst 2>/dev/null
2774 mkdir .tst 2>/dev/null
2775 if test -d .tst; then
2776 am__leading_dot=.
2777 else
2778 am__leading_dot=_
2779 fi
2780 rmdir .tst 2>/dev/null
2781
2782 # Check whether --enable-silent-rules was given.
2783 if test "${enable_silent_rules+set}" = set; then :
2784 enableval=$enable_silent_rules;
2785 fi
2786
2787 case $enable_silent_rules in # (((
2788 yes) AM_DEFAULT_VERBOSITY=0;;
2789 no) AM_DEFAULT_VERBOSITY=1;;
2790 *) AM_DEFAULT_VERBOSITY=1;;
2791 esac
2792 am_make=${MAKE-make}
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2794 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2795 if ${am_cv_make_support_nested_variables+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if $as_echo 'TRUE=$(BAR$(V))
2799 BAR0=false
2800 BAR1=true
2801 V=1
2802 am__doit:
2803 @$(TRUE)
2804 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2805 am_cv_make_support_nested_variables=yes
2806 else
2807 am_cv_make_support_nested_variables=no
2808 fi
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2811 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2812 if test $am_cv_make_support_nested_variables = yes; then
2813 AM_V='$(V)'
2814 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2815 else
2816 AM_V=$AM_DEFAULT_VERBOSITY
2817 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2818 fi
2819 AM_BACKSLASH='\'
2820
2821 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2822 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2823 # is not polluted with repeated "-I."
2824 am__isrc=' -I$(srcdir)'
2825 # test to see if srcdir already configured
2826 if test -f $srcdir/config.status; then
2827 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2828 fi
2829 fi
2830
2831 # test whether we have cygpath
2832 if test -z "$CYGPATH_W"; then
2833 if (cygpath --version) >/dev/null 2>/dev/null; then
2834 CYGPATH_W='cygpath -w'
2835 else
2836 CYGPATH_W=echo
2837 fi
2838 fi
2839
2840
2841 # Define the identity of the package.
2842 PACKAGE='libfontenc'
2843 VERSION='1.1.4'
2844
2845
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE "$PACKAGE"
2848 _ACEOF
2849
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define VERSION "$VERSION"
2853 _ACEOF
2854
2855 # Some tools Automake needs.
2856
2857 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2858
2859
2860 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2861
2862
2863 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2864
2865
2866 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2867
2868
2869 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2870
2871 # For better backward compatibility. To be removed once Automake 1.9.x
2872 # dies out for good. For more background, see:
2873 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2874 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2875 mkdir_p='$(MKDIR_P)'
2876
2877 # We need awk for the "check" target (and possibly the TAP driver). The
2878 # system "awk" is bad on some platforms.
2879 # Always define AMTAR for backward compatibility. Yes, it's still used
2880 # in the wild :-( We should find a proper way to deprecate it ...
2881 AMTAR='$${TAR-tar}'
2882
2883
2884 # We'll loop over all known methods to create a tar archive until one works.
2885 _am_tools='gnutar pax cpio none'
2886
2887 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2888
2889
2890
2891
2892
2893
2894 # POSIX will say in a future version that running "rm -f" with no argument
2895 # is OK; and we want to be able to make that assumption in our Makefile
2896 # recipes. So use an aggressive probe to check that the usage we want is
2897 # actually supported "in the wild" to an acceptable degree.
2898 # See automake bug#10828.
2899 # To make any issue more visible, cause the running configure to be aborted
2900 # by default if the 'rm' program in use doesn't match our expectations; the
2901 # user can still override this though.
2902 if rm -f && rm -fr && rm -rf; then : OK; else
2903 cat >&2 <<'END'
2904 Oops!
2905
2906 Your 'rm' program seems unable to run without file operands specified
2907 on the command line, even when the '-f' option is present. This is contrary
2908 to the behaviour of most rm programs out there, and not conforming with
2909 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2910
2911 Please tell bug-automake@gnu.org about your system, including the value
2912 of your $PATH and any error possibly output before this message. This
2913 can help us improve future automake versions.
2914
2915 END
2916 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2917 echo 'Configuration will proceed anyway, since you have set the' >&2
2918 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2919 echo >&2
2920 else
2921 cat >&2 <<'END'
2922 Aborting the configuration process, to ensure you take notice of the issue.
2923
2924 You can download and install GNU coreutils to get an 'rm' implementation
2925 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2926
2927 If you want to complete the configuration process using your problematic
2928 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2929 to "yes", and re-run configure.
2930
2931 END
2932 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2933 fi
2934 fi
2935
2936
2937 # Initialize libtool
2938 case `pwd` in
2939 *\ * | *\ *)
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2941 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2942 esac
2943
2944
2945
2946 macro_version='2.4.6'
2947 macro_revision='2.4.6'
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961 ltmain=$ac_aux_dir/ltmain.sh
2962
2963 # Make sure we can run config.sub.
2964 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2965 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2966
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2968 $as_echo_n "checking build system type... " >&6; }
2969 if ${ac_cv_build+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 ac_build_alias=$build_alias
2973 test "x$ac_build_alias" = x &&
2974 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2975 test "x$ac_build_alias" = x &&
2976 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2977 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2978 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2979
2980 fi
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2982 $as_echo "$ac_cv_build" >&6; }
2983 case $ac_cv_build in
2984 *-*-*) ;;
2985 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2986 esac
2987 build=$ac_cv_build
2988 ac_save_IFS=$IFS; IFS='-'
2989 set x $ac_cv_build
2990 shift
2991 build_cpu=$1
2992 build_vendor=$2
2993 shift; shift
2994 # Remember, the first character of IFS is used to create $*,
2995 # except with old shells:
2996 build_os=$*
2997 IFS=$ac_save_IFS
2998 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2999
3000
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3002 $as_echo_n "checking host system type... " >&6; }
3003 if ${ac_cv_host+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if test "x$host_alias" = x; then
3007 ac_cv_host=$ac_cv_build
3008 else
3009 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3010 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3011 fi
3012
3013 fi
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3015 $as_echo "$ac_cv_host" >&6; }
3016 case $ac_cv_host in
3017 *-*-*) ;;
3018 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3019 esac
3020 host=$ac_cv_host
3021 ac_save_IFS=$IFS; IFS='-'
3022 set x $ac_cv_host
3023 shift
3024 host_cpu=$1
3025 host_vendor=$2
3026 shift; shift
3027 # Remember, the first character of IFS is used to create $*,
3028 # except with old shells:
3029 host_os=$*
3030 IFS=$ac_save_IFS
3031 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3032
3033
3034 # Backslashify metacharacters that are still active within
3035 # double-quoted strings.
3036 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3037
3038 # Same as above, but do not quote variable references.
3039 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3040
3041 # Sed substitution to delay expansion of an escaped shell variable in a
3042 # double_quote_subst'ed string.
3043 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3044
3045 # Sed substitution to delay expansion of an escaped single quote.
3046 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3047
3048 # Sed substitution to avoid accidental globbing in evaled expressions
3049 no_glob_subst='s/\*/\\\*/g'
3050
3051 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3052 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3053 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3054
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3056 $as_echo_n "checking how to print strings... " >&6; }
3057 # Test print first, because it will be a builtin if present.
3058 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3059 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3060 ECHO='print -r --'
3061 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3062 ECHO='printf %s\n'
3063 else
3064 # Use this function as a fallback that always works.
3065 func_fallback_echo ()
3066 {
3067 eval 'cat <<_LTECHO_EOF
3068 $1
3069 _LTECHO_EOF'
3070 }
3071 ECHO='func_fallback_echo'
3072 fi
3073
3074 # func_echo_all arg...
3075 # Invoke $ECHO with all args, space-separated.
3076 func_echo_all ()
3077 {
3078 $ECHO ""
3079 }
3080
3081 case $ECHO in
3082 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3083 $as_echo "printf" >&6; } ;;
3084 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3085 $as_echo "print -r" >&6; } ;;
3086 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3087 $as_echo "cat" >&6; } ;;
3088 esac
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103 DEPDIR="${am__leading_dot}deps"
3104
3105 ac_config_commands="$ac_config_commands depfiles"
3106
3107
3108 am_make=${MAKE-make}
3109 cat > confinc << 'END'
3110 am__doit:
3111 @echo this is the am__doit target
3112 .PHONY: am__doit
3113 END
3114 # If we don't find an include directive, just comment out the code.
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3116 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3117 am__include="#"
3118 am__quote=
3119 _am_result=none
3120 # First try GNU make style include.
3121 echo "include confinc" > confmf
3122 # Ignore all kinds of additional output from 'make'.
3123 case `$am_make -s -f confmf 2> /dev/null` in #(
3124 *the\ am__doit\ target*)
3125 am__include=include
3126 am__quote=
3127 _am_result=GNU
3128 ;;
3129 esac
3130 # Now try BSD make style include.
3131 if test "$am__include" = "#"; then
3132 echo '.include "confinc"' > confmf
3133 case `$am_make -s -f confmf 2> /dev/null` in #(
3134 *the\ am__doit\ target*)
3135 am__include=.include
3136 am__quote="\""
3137 _am_result=BSD
3138 ;;
3139 esac
3140 fi
3141
3142
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3144 $as_echo "$_am_result" >&6; }
3145 rm -f confinc confmf
3146
3147 # Check whether --enable-dependency-tracking was given.
3148 if test "${enable_dependency_tracking+set}" = set; then :
3149 enableval=$enable_dependency_tracking;
3150 fi
3151
3152 if test "x$enable_dependency_tracking" != xno; then
3153 am_depcomp="$ac_aux_dir/depcomp"
3154 AMDEPBACKSLASH='\'
3155 am__nodep='_no'
3156 fi
3157 if test "x$enable_dependency_tracking" != xno; then
3158 AMDEP_TRUE=
3159 AMDEP_FALSE='#'
3160 else
3161 AMDEP_TRUE='#'
3162 AMDEP_FALSE=
3163 fi
3164
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 if test -n "$ac_tool_prefix"; then
3172 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_CC+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3192 fi
3193 done
3194 done
3195 IFS=$as_save_IFS
3196
3197 fi
3198 fi
3199 CC=$ac_cv_prog_CC
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 fi
3207
3208
3209 fi
3210 if test -z "$ac_cv_prog_CC"; then
3211 ac_ct_CC=$CC
3212 # Extract the first word of "gcc", so it can be a program name with args.
3213 set dummy gcc; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 if test -n "$ac_ct_CC"; then
3220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_ac_ct_CC="gcc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3232 fi
3233 done
3234 done
3235 IFS=$as_save_IFS
3236
3237 fi
3238 fi
3239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3240 if test -n "$ac_ct_CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3242 $as_echo "$ac_ct_CC" >&6; }
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 fi
3247
3248 if test "x$ac_ct_CC" = x; then
3249 CC=""
3250 else
3251 case $cross_compiling:$ac_tool_warned in
3252 yes:)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255 ac_tool_warned=yes ;;
3256 esac
3257 CC=$ac_ct_CC
3258 fi
3259 else
3260 CC="$ac_cv_prog_CC"
3261 fi
3262
3263 if test -z "$CC"; then
3264 if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3266 set dummy ${ac_tool_prefix}cc; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_CC+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_CC="${ac_tool_prefix}cc"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286 done
3287 done
3288 IFS=$as_save_IFS
3289
3290 fi
3291 fi
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295 $as_echo "$CC" >&6; }
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 fi
3300
3301
3302 fi
3303 fi
3304 if test -z "$CC"; then
3305 # Extract the first word of "cc", so it can be a program name with args.
3306 set dummy cc; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_CC+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 if test -n "$CC"; then
3313 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 else
3315 ac_prog_rejected=no
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3324 ac_prog_rejected=yes
3325 continue
3326 fi
3327 ac_cv_prog_CC="cc"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 if test $ac_prog_rejected = yes; then
3336 # We found a bogon in the path, so make sure we never use it.
3337 set dummy $ac_cv_prog_CC
3338 shift
3339 if test $# != 0; then
3340 # We chose a different compiler from the bogus one.
3341 # However, it has the same basename, so the bogon will be chosen
3342 # first if we set CC to just the basename; use the full file name.
3343 shift
3344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3345 fi
3346 fi
3347 fi
3348 fi
3349 CC=$ac_cv_prog_CC
3350 if test -n "$CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352 $as_echo "$CC" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3356 fi
3357
3358
3359 fi
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 for ac_prog in cl.exe
3363 do
3364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_CC+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
3391 CC=$ac_cv_prog_CC
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3395 else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3398 fi
3399
3400
3401 test -n "$CC" && break
3402 done
3403 fi
3404 if test -z "$CC"; then
3405 ac_ct_CC=$CC
3406 for ac_prog in cl.exe
3407 do
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy $ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$ac_ct_CC"; then
3416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_ac_ct_CC="$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429 done
3430 done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438 $as_echo "$ac_ct_CC" >&6; }
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444
3445 test -n "$ac_ct_CC" && break
3446 done
3447
3448 if test "x$ac_ct_CC" = x; then
3449 CC=""
3450 else
3451 case $cross_compiling:$ac_tool_warned in
3452 yes:)
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3455 ac_tool_warned=yes ;;
3456 esac
3457 CC=$ac_ct_CC
3458 fi
3459 fi
3460
3461 fi
3462
3463
3464 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "no acceptable C compiler found in \$PATH
3467 See \`config.log' for more details" "$LINENO" 5; }
3468
3469 # Provide some information about the compiler.
3470 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3471 set X $ac_compile
3472 ac_compiler=$2
3473 for ac_option in --version -v -V -qversion; do
3474 { { ac_try="$ac_compiler $ac_option >&5"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3482 ac_status=$?
3483 if test -s conftest.err; then
3484 sed '10a\
3485 ... rest of stderr output deleted ...
3486 10q' conftest.err >conftest.er1
3487 cat conftest.er1 >&5
3488 fi
3489 rm -f conftest.er1 conftest.err
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }
3492 done
3493
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 ac_clean_files_save=$ac_clean_files
3506 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3507 # Try to create an executable without -o first, disregard a.out.
3508 # It will help us diagnose broken compilers, and finding out an intuition
3509 # of exeext.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3511 $as_echo_n "checking whether the C compiler works... " >&6; }
3512 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3513
3514 # The possible output files:
3515 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516
3517 ac_rmfiles=
3518 for ac_file in $ac_files
3519 do
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3523 esac
3524 done
3525 rm -f $ac_rmfiles
3526
3527 if { { ac_try="$ac_link_default"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_link_default") 2>&5
3535 ac_status=$?
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }; then :
3538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3539 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3540 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3541 # so that the user can short-circuit this test for compilers unknown to
3542 # Autoconf.
3543 for ac_file in $ac_files ''
3544 do
3545 test -f "$ac_file" || continue
3546 case $ac_file in
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3548 ;;
3549 [ab].out )
3550 # We found the default executable, but exeext='' is most
3551 # certainly right.
3552 break;;
3553 *.* )
3554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3555 then :; else
3556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557 fi
3558 # We set ac_cv_exeext here because the later test for it is not
3559 # safe: cross compilers may not add the suffix if given an `-o'
3560 # argument, so we may need to know it at that point already.
3561 # Even if this section looks crufty: it has the advantage of
3562 # actually working.
3563 break;;
3564 * )
3565 break;;
3566 esac
3567 done
3568 test "$ac_cv_exeext" = no && ac_cv_exeext=
3569
3570 else
3571 ac_file=''
3572 fi
3573 if test -z "$ac_file"; then :
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 $as_echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error 77 "C compiler cannot create executables
3582 See \`config.log' for more details" "$LINENO" 5; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3585 $as_echo "yes" >&6; }
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3588 $as_echo_n "checking for C compiler default output file name... " >&6; }
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3590 $as_echo "$ac_file" >&6; }
3591 ac_exeext=$ac_cv_exeext
3592
3593 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3594 ac_clean_files=$ac_clean_files_save
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3596 $as_echo_n "checking for suffix of executables... " >&6; }
3597 if { { ac_try="$ac_link"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_link") 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }; then :
3608 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3609 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3610 # work properly (i.e., refer to `conftest.exe'), while it won't with
3611 # `rm'.
3612 for ac_file in conftest.exe conftest conftest.*; do
3613 test -f "$ac_file" || continue
3614 case $ac_file in
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3616 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3617 break;;
3618 * ) break;;
3619 esac
3620 done
3621 else
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3625 See \`config.log' for more details" "$LINENO" 5; }
3626 fi
3627 rm -f conftest conftest$ac_cv_exeext
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3629 $as_echo "$ac_cv_exeext" >&6; }
3630
3631 rm -f conftest.$ac_ext
3632 EXEEXT=$ac_cv_exeext
3633 ac_exeext=$EXEEXT
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3636 #include <stdio.h>
3637 int
3638 main ()
3639 {
3640 FILE *f = fopen ("conftest.out", "w");
3641 return ferror (f) || fclose (f) != 0;
3642
3643 ;
3644 return 0;
3645 }
3646 _ACEOF
3647 ac_clean_files="$ac_clean_files conftest.out"
3648 # Check that the compiler produces executables we can run. If not, either
3649 # the compiler is broken, or we cross compile.
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3651 $as_echo_n "checking whether we are cross compiling... " >&6; }
3652 if test "$cross_compiling" != yes; then
3653 { { ac_try="$ac_link"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_link") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }
3664 if { ac_try='./conftest$ac_cv_exeext'
3665 { { case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_try") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; }; then
3675 cross_compiling=no
3676 else
3677 if test "$cross_compiling" = maybe; then
3678 cross_compiling=yes
3679 else
3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error $? "cannot run C compiled programs.
3683 If you meant to cross compile, use \`--host'.
3684 See \`config.log' for more details" "$LINENO" 5; }
3685 fi
3686 fi
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3689 $as_echo "$cross_compiling" >&6; }
3690
3691 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3692 ac_clean_files=$ac_clean_files_save
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3694 $as_echo_n "checking for suffix of object files... " >&6; }
3695 if ${ac_cv_objext+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700
3701 int
3702 main ()
3703 {
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 rm -f conftest.o conftest.obj
3710 if { { ac_try="$ac_compile"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_compile") 2>&5
3718 ac_status=$?
3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720 test $ac_status = 0; }; then :
3721 for ac_file in conftest.o conftest.obj conftest.*; do
3722 test -f "$ac_file" || continue;
3723 case $ac_file in
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3725 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3726 break;;
3727 esac
3728 done
3729 else
3730 $as_echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735 as_fn_error $? "cannot compute suffix of object files: cannot compile
3736 See \`config.log' for more details" "$LINENO" 5; }
3737 fi
3738 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3741 $as_echo "$ac_cv_objext" >&6; }
3742 OBJEXT=$ac_cv_objext
3743 ac_objext=$OBJEXT
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3745 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3746 if ${ac_cv_c_compiler_gnu+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751
3752 int
3753 main ()
3754 {
3755 #ifndef __GNUC__
3756 choke me
3757 #endif
3758
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764 ac_compiler_gnu=yes
3765 else
3766 ac_compiler_gnu=no
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3770
3771 fi
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3773 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3774 if test $ac_compiler_gnu = yes; then
3775 GCC=yes
3776 else
3777 GCC=
3778 fi
3779 ac_test_CFLAGS=${CFLAGS+set}
3780 ac_save_CFLAGS=$CFLAGS
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3782 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3783 if ${ac_cv_prog_cc_g+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 ac_save_c_werror_flag=$ac_c_werror_flag
3787 ac_c_werror_flag=yes
3788 ac_cv_prog_cc_g=no
3789 CFLAGS="-g"
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792
3793 int
3794 main ()
3795 {
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802 ac_cv_prog_cc_g=yes
3803 else
3804 CFLAGS=""
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3807
3808 int
3809 main ()
3810 {
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 if ac_fn_c_try_compile "$LINENO"; then :
3817
3818 else
3819 ac_c_werror_flag=$ac_save_c_werror_flag
3820 CFLAGS="-g"
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823
3824 int
3825 main ()
3826 {
3827
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833 ac_cv_prog_cc_g=yes
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 fi
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 ac_c_werror_flag=$ac_save_c_werror_flag
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3843 $as_echo "$ac_cv_prog_cc_g" >&6; }
3844 if test "$ac_test_CFLAGS" = set; then
3845 CFLAGS=$ac_save_CFLAGS
3846 elif test $ac_cv_prog_cc_g = yes; then
3847 if test "$GCC" = yes; then
3848 CFLAGS="-g -O2"
3849 else
3850 CFLAGS="-g"
3851 fi
3852 else
3853 if test "$GCC" = yes; then
3854 CFLAGS="-O2"
3855 else
3856 CFLAGS=
3857 fi
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3860 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3861 if ${ac_cv_prog_cc_c89+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 ac_cv_prog_cc_c89=no
3865 ac_save_CC=$CC
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868 #include <stdarg.h>
3869 #include <stdio.h>
3870 struct stat;
3871 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3872 struct buf { int x; };
3873 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3874 static char *e (p, i)
3875 char **p;
3876 int i;
3877 {
3878 return p[i];
3879 }
3880 static char *f (char * (*g) (char **, int), char **p, ...)
3881 {
3882 char *s;
3883 va_list v;
3884 va_start (v,p);
3885 s = g (p, va_arg (v,int));
3886 va_end (v);
3887 return s;
3888 }
3889
3890 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3891 function prototypes and stuff, but not '\xHH' hex character constants.
3892 These don't provoke an error unfortunately, instead are silently treated
3893 as 'x'. The following induces an error, until -std is added to get
3894 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3895 array size at least. It's necessary to write '\x00'==0 to get something
3896 that's true only with -std. */
3897 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3898
3899 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3900 inside strings and character constants. */
3901 #define FOO(x) 'x'
3902 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3903
3904 int test (int i, double x);
3905 struct s1 {int (*f) (int a);};
3906 struct s2 {int (*f) (double a);};
3907 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3908 int argc;
3909 char **argv;
3910 int
3911 main ()
3912 {
3913 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3914 ;
3915 return 0;
3916 }
3917 _ACEOF
3918 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3919 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3920 do
3921 CC="$ac_save_CC $ac_arg"
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923 ac_cv_prog_cc_c89=$ac_arg
3924 fi
3925 rm -f core conftest.err conftest.$ac_objext
3926 test "x$ac_cv_prog_cc_c89" != "xno" && break
3927 done
3928 rm -f conftest.$ac_ext
3929 CC=$ac_save_CC
3930
3931 fi
3932 # AC_CACHE_VAL
3933 case "x$ac_cv_prog_cc_c89" in
3934 x)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3936 $as_echo "none needed" >&6; } ;;
3937 xno)
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3939 $as_echo "unsupported" >&6; } ;;
3940 *)
3941 CC="$CC $ac_cv_prog_cc_c89"
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3943 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3944 esac
3945 if test "x$ac_cv_prog_cc_c89" != xno; then :
3946
3947 fi
3948
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954
3955 ac_ext=c
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3961 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3962 if ${am_cv_prog_cc_c_o+:} false; then :
3963 $as_echo_n "(cached) " >&6
3964 else
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967
3968 int
3969 main ()
3970 {
3971
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 # Make sure it works both with $CC and with simple cc.
3977 # Following AC_PROG_CC_C_O, we do the test twice because some
3978 # compilers refuse to overwrite an existing .o file with -o,
3979 # though they will create one.
3980 am_cv_prog_cc_c_o=yes
3981 for am_i in 1 2; do
3982 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3983 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } \
3987 && test -f conftest2.$ac_objext; then
3988 : OK
3989 else
3990 am_cv_prog_cc_c_o=no
3991 break
3992 fi
3993 done
3994 rm -f core conftest*
3995 unset am_i
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3998 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3999 if test "$am_cv_prog_cc_c_o" != yes; then
4000 # Losing compiler, so override with the script.
4001 # FIXME: It is wrong to rewrite CC.
4002 # But if we don't then we get into trouble of one sort or another.
4003 # A longer-term fix would be to have automake use am__CC in this case,
4004 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4005 CC="$am_aux_dir/compile $CC"
4006 fi
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012
4013
4014 depcc="$CC" am_compiler_list=
4015
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4017 $as_echo_n "checking dependency style of $depcc... " >&6; }
4018 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4022 # We make a subdir and do the tests there. Otherwise we can end up
4023 # making bogus files that we don't know about and never remove. For
4024 # instance it was reported that on HP-UX the gcc test will end up
4025 # making a dummy file named 'D' -- because '-MD' means "put the output
4026 # in D".
4027 rm -rf conftest.dir
4028 mkdir conftest.dir
4029 # Copy depcomp to subdir because otherwise we won't find it if we're
4030 # using a relative directory.
4031 cp "$am_depcomp" conftest.dir
4032 cd conftest.dir
4033 # We will build objects and dependencies in a subdirectory because
4034 # it helps to detect inapplicable dependency modes. For instance
4035 # both Tru64's cc and ICC support -MD to output dependencies as a
4036 # side effect of compilation, but ICC will put the dependencies in
4037 # the current directory while Tru64 will put them in the object
4038 # directory.
4039 mkdir sub
4040
4041 am_cv_CC_dependencies_compiler_type=none
4042 if test "$am_compiler_list" = ""; then
4043 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4044 fi
4045 am__universal=false
4046 case " $depcc " in #(
4047 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4048 esac
4049
4050 for depmode in $am_compiler_list; do
4051 # Setup a source with many dependencies, because some compilers
4052 # like to wrap large dependency lists on column 80 (with \), and
4053 # we should not choose a depcomp mode which is confused by this.
4054 #
4055 # We need to recreate these files for each test, as the compiler may
4056 # overwrite some of them when testing with obscure command lines.
4057 # This happens at least with the AIX C compiler.
4058 : > sub/conftest.c
4059 for i in 1 2 3 4 5 6; do
4060 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4061 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4062 # Solaris 10 /bin/sh.
4063 echo '/* dummy */' > sub/conftst$i.h
4064 done
4065 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4066
4067 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4068 # mode. It turns out that the SunPro C++ compiler does not properly
4069 # handle '-M -o', and we need to detect this. Also, some Intel
4070 # versions had trouble with output in subdirs.
4071 am__obj=sub/conftest.${OBJEXT-o}
4072 am__minus_obj="-o $am__obj"
4073 case $depmode in
4074 gcc)
4075 # This depmode causes a compiler race in universal mode.
4076 test "$am__universal" = false || continue
4077 ;;
4078 nosideeffect)
4079 # After this tag, mechanisms are not by side-effect, so they'll
4080 # only be used when explicitly requested.
4081 if test "x$enable_dependency_tracking" = xyes; then
4082 continue
4083 else
4084 break
4085 fi
4086 ;;
4087 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4088 # This compiler won't grok '-c -o', but also, the minuso test has
4089 # not run yet. These depmodes are late enough in the game, and
4090 # so weak that their functioning should not be impacted.
4091 am__obj=conftest.${OBJEXT-o}
4092 am__minus_obj=
4093 ;;
4094 none) break ;;
4095 esac
4096 if depmode=$depmode \
4097 source=sub/conftest.c object=$am__obj \
4098 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4099 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4100 >/dev/null 2>conftest.err &&
4101 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4102 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4103 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4104 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4105 # icc doesn't choke on unknown options, it will just issue warnings
4106 # or remarks (even with -Werror). So we grep stderr for any message
4107 # that says an option was ignored or not supported.
4108 # When given -MP, icc 7.0 and 7.1 complain thusly:
4109 # icc: Command line warning: ignoring option '-M'; no argument required
4110 # The diagnosis changed in icc 8.0:
4111 # icc: Command line remark: option '-MP' not supported
4112 if (grep 'ignoring option' conftest.err ||
4113 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4114 am_cv_CC_dependencies_compiler_type=$depmode
4115 break
4116 fi
4117 fi
4118 done
4119
4120 cd ..
4121 rm -rf conftest.dir
4122 else
4123 am_cv_CC_dependencies_compiler_type=none
4124 fi
4125
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4128 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4129 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4130
4131 if
4132 test "x$enable_dependency_tracking" != xno \
4133 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4134 am__fastdepCC_TRUE=
4135 am__fastdepCC_FALSE='#'
4136 else
4137 am__fastdepCC_TRUE='#'
4138 am__fastdepCC_FALSE=
4139 fi
4140
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4143 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4144 if ${ac_cv_path_SED+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4148 for ac_i in 1 2 3 4 5 6 7; do
4149 ac_script="$ac_script$as_nl$ac_script"
4150 done
4151 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4152 { ac_script=; unset ac_script;}
4153 if test -z "$SED"; then
4154 ac_path_SED_found=false
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4158 do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_prog in sed gsed; do
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4164 as_fn_executable_p "$ac_path_SED" || continue
4165 # Check for GNU ac_path_SED and select it if it is found.
4166 # Check for GNU $ac_path_SED
4167 case `"$ac_path_SED" --version 2>&1` in
4168 *GNU*)
4169 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4170 *)
4171 ac_count=0
4172 $as_echo_n 0123456789 >"conftest.in"
4173 while :
4174 do
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
4178 $as_echo '' >> "conftest.nl"
4179 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4181 as_fn_arith $ac_count + 1 && ac_count=$as_val
4182 if test $ac_count -gt ${ac_path_SED_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_SED="$ac_path_SED"
4185 ac_path_SED_max=$ac_count
4186 fi
4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4189 done
4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4191 esac
4192
4193 $ac_path_SED_found && break 3
4194 done
4195 done
4196 done
4197 IFS=$as_save_IFS
4198 if test -z "$ac_cv_path_SED"; then
4199 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4200 fi
4201 else
4202 ac_cv_path_SED=$SED
4203 fi
4204
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4207 $as_echo "$ac_cv_path_SED" >&6; }
4208 SED="$ac_cv_path_SED"
4209 rm -f conftest.sed
4210
4211 test -z "$SED" && SED=sed
4212 Xsed="$SED -e 1s/^X//"
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4225 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4226 if ${ac_cv_path_GREP+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -z "$GREP"; then
4230 ac_path_GREP_found=false
4231 # Loop through the user's path and test for each of PROGNAME-LIST
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4234 do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_prog in grep ggrep; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4240 as_fn_executable_p "$ac_path_GREP" || continue
4241 # Check for GNU ac_path_GREP and select it if it is found.
4242 # Check for GNU $ac_path_GREP
4243 case `"$ac_path_GREP" --version 2>&1` in
4244 *GNU*)
4245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4246 *)
4247 ac_count=0
4248 $as_echo_n 0123456789 >"conftest.in"
4249 while :
4250 do
4251 cat "conftest.in" "conftest.in" >"conftest.tmp"
4252 mv "conftest.tmp" "conftest.in"
4253 cp "conftest.in" "conftest.nl"
4254 $as_echo 'GREP' >> "conftest.nl"
4255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4257 as_fn_arith $ac_count + 1 && ac_count=$as_val
4258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4259 # Best one so far, save it but keep looking for a better one
4260 ac_cv_path_GREP="$ac_path_GREP"
4261 ac_path_GREP_max=$ac_count
4262 fi
4263 # 10*(2^10) chars as input seems more than enough
4264 test $ac_count -gt 10 && break
4265 done
4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4267 esac
4268
4269 $ac_path_GREP_found && break 3
4270 done
4271 done
4272 done
4273 IFS=$as_save_IFS
4274 if test -z "$ac_cv_path_GREP"; then
4275 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4276 fi
4277 else
4278 ac_cv_path_GREP=$GREP
4279 fi
4280
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4283 $as_echo "$ac_cv_path_GREP" >&6; }
4284 GREP="$ac_cv_path_GREP"
4285
4286
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4288 $as_echo_n "checking for egrep... " >&6; }
4289 if ${ac_cv_path_EGREP+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4293 then ac_cv_path_EGREP="$GREP -E"
4294 else
4295 if test -z "$EGREP"; then
4296 ac_path_EGREP_found=false
4297 # Loop through the user's path and test for each of PROGNAME-LIST
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4300 do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_prog in egrep; do
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4306 as_fn_executable_p "$ac_path_EGREP" || continue
4307 # Check for GNU ac_path_EGREP and select it if it is found.
4308 # Check for GNU $ac_path_EGREP
4309 case `"$ac_path_EGREP" --version 2>&1` in
4310 *GNU*)
4311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4312 *)
4313 ac_count=0
4314 $as_echo_n 0123456789 >"conftest.in"
4315 while :
4316 do
4317 cat "conftest.in" "conftest.in" >"conftest.tmp"
4318 mv "conftest.tmp" "conftest.in"
4319 cp "conftest.in" "conftest.nl"
4320 $as_echo 'EGREP' >> "conftest.nl"
4321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4323 as_fn_arith $ac_count + 1 && ac_count=$as_val
4324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4325 # Best one so far, save it but keep looking for a better one
4326 ac_cv_path_EGREP="$ac_path_EGREP"
4327 ac_path_EGREP_max=$ac_count
4328 fi
4329 # 10*(2^10) chars as input seems more than enough
4330 test $ac_count -gt 10 && break
4331 done
4332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333 esac
4334
4335 $ac_path_EGREP_found && break 3
4336 done
4337 done
4338 done
4339 IFS=$as_save_IFS
4340 if test -z "$ac_cv_path_EGREP"; then
4341 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4342 fi
4343 else
4344 ac_cv_path_EGREP=$EGREP
4345 fi
4346
4347 fi
4348 fi
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4350 $as_echo "$ac_cv_path_EGREP" >&6; }
4351 EGREP="$ac_cv_path_EGREP"
4352
4353
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4355 $as_echo_n "checking for fgrep... " >&6; }
4356 if ${ac_cv_path_FGREP+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4360 then ac_cv_path_FGREP="$GREP -F"
4361 else
4362 if test -z "$FGREP"; then
4363 ac_path_FGREP_found=false
4364 # Loop through the user's path and test for each of PROGNAME-LIST
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367 do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_prog in fgrep; do
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4373 as_fn_executable_p "$ac_path_FGREP" || continue
4374 # Check for GNU ac_path_FGREP and select it if it is found.
4375 # Check for GNU $ac_path_FGREP
4376 case `"$ac_path_FGREP" --version 2>&1` in
4377 *GNU*)
4378 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4379 *)
4380 ac_count=0
4381 $as_echo_n 0123456789 >"conftest.in"
4382 while :
4383 do
4384 cat "conftest.in" "conftest.in" >"conftest.tmp"
4385 mv "conftest.tmp" "conftest.in"
4386 cp "conftest.in" "conftest.nl"
4387 $as_echo 'FGREP' >> "conftest.nl"
4388 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390 as_fn_arith $ac_count + 1 && ac_count=$as_val
4391 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4392 # Best one so far, save it but keep looking for a better one
4393 ac_cv_path_FGREP="$ac_path_FGREP"
4394 ac_path_FGREP_max=$ac_count
4395 fi
4396 # 10*(2^10) chars as input seems more than enough
4397 test $ac_count -gt 10 && break
4398 done
4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 esac
4401
4402 $ac_path_FGREP_found && break 3
4403 done
4404 done
4405 done
4406 IFS=$as_save_IFS
4407 if test -z "$ac_cv_path_FGREP"; then
4408 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4409 fi
4410 else
4411 ac_cv_path_FGREP=$FGREP
4412 fi
4413
4414 fi
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4417 $as_echo "$ac_cv_path_FGREP" >&6; }
4418 FGREP="$ac_cv_path_FGREP"
4419
4420
4421 test -z "$GREP" && GREP=grep
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441 # Check whether --with-gnu-ld was given.
4442 if test "${with_gnu_ld+set}" = set; then :
4443 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4444 else
4445 with_gnu_ld=no
4446 fi
4447
4448 ac_prog=ld
4449 if test yes = "$GCC"; then
4450 # Check if gcc -print-prog-name=ld gives a path.
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4452 $as_echo_n "checking for ld used by $CC... " >&6; }
4453 case $host in
4454 *-*-mingw*)
4455 # gcc leaves a trailing carriage return, which upsets mingw
4456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4457 *)
4458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4459 esac
4460 case $ac_prog in
4461 # Accept absolute paths.
4462 [\\/]* | ?:[\\/]*)
4463 re_direlt='/[^/][^/]*/\.\./'
4464 # Canonicalize the pathname of ld
4465 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4466 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4467 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4468 done
4469 test -z "$LD" && LD=$ac_prog
4470 ;;
4471 "")
4472 # If it fails, then pretend we aren't using GCC.
4473 ac_prog=ld
4474 ;;
4475 *)
4476 # If it is relative, then search for the first ld in PATH.
4477 with_gnu_ld=unknown
4478 ;;
4479 esac
4480 elif test yes = "$with_gnu_ld"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4482 $as_echo_n "checking for GNU ld... " >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4485 $as_echo_n "checking for non-GNU ld... " >&6; }
4486 fi
4487 if ${lt_cv_path_LD+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -z "$LD"; then
4491 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4492 for ac_dir in $PATH; do
4493 IFS=$lt_save_ifs
4494 test -z "$ac_dir" && ac_dir=.
4495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4496 lt_cv_path_LD=$ac_dir/$ac_prog
4497 # Check to see if the program is GNU ld. I'd rather use --version,
4498 # but apparently some variants of GNU ld only accept -v.
4499 # Break only if it was the GNU/non-GNU ld that we prefer.
4500 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4501 *GNU* | *'with BFD'*)
4502 test no != "$with_gnu_ld" && break
4503 ;;
4504 *)
4505 test yes != "$with_gnu_ld" && break
4506 ;;
4507 esac
4508 fi
4509 done
4510 IFS=$lt_save_ifs
4511 else
4512 lt_cv_path_LD=$LD # Let the user override the test with a path.
4513 fi
4514 fi
4515
4516 LD=$lt_cv_path_LD
4517 if test -n "$LD"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4519 $as_echo "$LD" >&6; }
4520 else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4523 fi
4524 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4526 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4527 if ${lt_cv_prog_gnu_ld+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4531 case `$LD -v 2>&1 </dev/null` in
4532 *GNU* | *'with BFD'*)
4533 lt_cv_prog_gnu_ld=yes
4534 ;;
4535 *)
4536 lt_cv_prog_gnu_ld=no
4537 ;;
4538 esac
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4541 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4542 with_gnu_ld=$lt_cv_prog_gnu_ld
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4553 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4554 if ${lt_cv_path_NM+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 if test -n "$NM"; then
4558 # Let the user override the test.
4559 lt_cv_path_NM=$NM
4560 else
4561 lt_nm_to_check=${ac_tool_prefix}nm
4562 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4563 lt_nm_to_check="$lt_nm_to_check nm"
4564 fi
4565 for lt_tmp_nm in $lt_nm_to_check; do
4566 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4567 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4568 IFS=$lt_save_ifs
4569 test -z "$ac_dir" && ac_dir=.
4570 tmp_nm=$ac_dir/$lt_tmp_nm
4571 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4572 # Check to see if the nm accepts a BSD-compat flag.
4573 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4574 # nm: unknown option "B" ignored
4575 # Tru64's nm complains that /dev/null is an invalid object file
4576 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4577 case $build_os in
4578 mingw*) lt_bad_file=conftest.nm/nofile ;;
4579 *) lt_bad_file=/dev/null ;;
4580 esac
4581 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4582 *$lt_bad_file* | *'Invalid file or object type'*)
4583 lt_cv_path_NM="$tmp_nm -B"
4584 break 2
4585 ;;
4586 *)
4587 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4588 */dev/null*)
4589 lt_cv_path_NM="$tmp_nm -p"
4590 break 2
4591 ;;
4592 *)
4593 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4594 continue # so that we can try to find one that supports BSD flags
4595 ;;
4596 esac
4597 ;;
4598 esac
4599 fi
4600 done
4601 IFS=$lt_save_ifs
4602 done
4603 : ${lt_cv_path_NM=no}
4604 fi
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4607 $as_echo "$lt_cv_path_NM" >&6; }
4608 if test no != "$lt_cv_path_NM"; then
4609 NM=$lt_cv_path_NM
4610 else
4611 # Didn't find any BSD compatible name lister, look for dumpbin.
4612 if test -n "$DUMPBIN"; then :
4613 # Let the user override the test.
4614 else
4615 if test -n "$ac_tool_prefix"; then
4616 for ac_prog in dumpbin "link -dump"
4617 do
4618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_prog_DUMPBIN+:} false; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -n "$DUMPBIN"; then
4626 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 DUMPBIN=$ac_cv_prog_DUMPBIN
4646 if test -n "$DUMPBIN"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4648 $as_echo "$DUMPBIN" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4652 fi
4653
4654
4655 test -n "$DUMPBIN" && break
4656 done
4657 fi
4658 if test -z "$DUMPBIN"; then
4659 ac_ct_DUMPBIN=$DUMPBIN
4660 for ac_prog in dumpbin "link -dump"
4661 do
4662 # Extract the first word of "$ac_prog", so it can be a program name with args.
4663 set dummy $ac_prog; ac_word=$2
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 if test -n "$ac_ct_DUMPBIN"; then
4670 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4682 fi
4683 done
4684 done
4685 IFS=$as_save_IFS
4686
4687 fi
4688 fi
4689 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4690 if test -n "$ac_ct_DUMPBIN"; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4692 $as_echo "$ac_ct_DUMPBIN" >&6; }
4693 else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4696 fi
4697
4698
4699 test -n "$ac_ct_DUMPBIN" && break
4700 done
4701
4702 if test "x$ac_ct_DUMPBIN" = x; then
4703 DUMPBIN=":"
4704 else
4705 case $cross_compiling:$ac_tool_warned in
4706 yes:)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4709 ac_tool_warned=yes ;;
4710 esac
4711 DUMPBIN=$ac_ct_DUMPBIN
4712 fi
4713 fi
4714
4715 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4716 *COFF*)
4717 DUMPBIN="$DUMPBIN -symbols -headers"
4718 ;;
4719 *)
4720 DUMPBIN=:
4721 ;;
4722 esac
4723 fi
4724
4725 if test : != "$DUMPBIN"; then
4726 NM=$DUMPBIN
4727 fi
4728 fi
4729 test -z "$NM" && NM=nm
4730
4731
4732
4733
4734
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4737 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4738 if ${lt_cv_nm_interface+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 lt_cv_nm_interface="BSD nm"
4742 echo "int some_variable = 0;" > conftest.$ac_ext
4743 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4744 (eval "$ac_compile" 2>conftest.err)
4745 cat conftest.err >&5
4746 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4747 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4748 cat conftest.err >&5
4749 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4750 cat conftest.out >&5
4751 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4752 lt_cv_nm_interface="MS dumpbin"
4753 fi
4754 rm -f conftest*
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4757 $as_echo "$lt_cv_nm_interface" >&6; }
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4760 $as_echo_n "checking whether ln -s works... " >&6; }
4761 LN_S=$as_ln_s
4762 if test "$LN_S" = "ln -s"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4764 $as_echo "yes" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4767 $as_echo "no, using $LN_S" >&6; }
4768 fi
4769
4770 # find the maximum length of command line arguments
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4772 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4773 if ${lt_cv_sys_max_cmd_len+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 i=0
4777 teststring=ABCD
4778
4779 case $build_os in
4780 msdosdjgpp*)
4781 # On DJGPP, this test can blow up pretty badly due to problems in libc
4782 # (any single argument exceeding 2000 bytes causes a buffer overrun
4783 # during glob expansion). Even if it were fixed, the result of this
4784 # check would be larger than it should be.
4785 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4786 ;;
4787
4788 gnu*)
4789 # Under GNU Hurd, this test is not required because there is
4790 # no limit to the length of command line arguments.
4791 # Libtool will interpret -1 as no limit whatsoever
4792 lt_cv_sys_max_cmd_len=-1;
4793 ;;
4794
4795 cygwin* | mingw* | cegcc*)
4796 # On Win9x/ME, this test blows up -- it succeeds, but takes
4797 # about 5 minutes as the teststring grows exponentially.
4798 # Worse, since 9x/ME are not pre-emptively multitasking,
4799 # you end up with a "frozen" computer, even though with patience
4800 # the test eventually succeeds (with a max line length of 256k).
4801 # Instead, let's just punt: use the minimum linelength reported by
4802 # all of the supported platforms: 8192 (on NT/2K/XP).
4803 lt_cv_sys_max_cmd_len=8192;
4804 ;;
4805
4806 mint*)
4807 # On MiNT this can take a long time and run out of memory.
4808 lt_cv_sys_max_cmd_len=8192;
4809 ;;
4810
4811 amigaos*)
4812 # On AmigaOS with pdksh, this test takes hours, literally.
4813 # So we just punt and use a minimum line length of 8192.
4814 lt_cv_sys_max_cmd_len=8192;
4815 ;;
4816
4817 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4818 # This has been around since 386BSD, at least. Likely further.
4819 if test -x /sbin/sysctl; then
4820 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4821 elif test -x /usr/sbin/sysctl; then
4822 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4823 else
4824 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4825 fi
4826 # And add a safety zone
4827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4829 ;;
4830
4831 interix*)
4832 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4833 lt_cv_sys_max_cmd_len=196608
4834 ;;
4835
4836 os2*)
4837 # The test takes a long time on OS/2.
4838 lt_cv_sys_max_cmd_len=8192
4839 ;;
4840
4841 osf*)
4842 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4843 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4844 # nice to cause kernel panics so lets avoid the loop below.
4845 # First set a reasonable default.
4846 lt_cv_sys_max_cmd_len=16384
4847 #
4848 if test -x /sbin/sysconfig; then
4849 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4850 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4851 esac
4852 fi
4853 ;;
4854 sco3.2v5*)
4855 lt_cv_sys_max_cmd_len=102400
4856 ;;
4857 sysv5* | sco5v6* | sysv4.2uw2*)
4858 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4859 if test -n "$kargmax"; then
4860 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4861 else
4862 lt_cv_sys_max_cmd_len=32768
4863 fi
4864 ;;
4865 *)
4866 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4867 if test -n "$lt_cv_sys_max_cmd_len" && \
4868 test undefined != "$lt_cv_sys_max_cmd_len"; then
4869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4871 else
4872 # Make teststring a little bigger before we do anything with it.
4873 # a 1K string should be a reasonable start.
4874 for i in 1 2 3 4 5 6 7 8; do
4875 teststring=$teststring$teststring
4876 done
4877 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4878 # If test is not a shell built-in, we'll probably end up computing a
4879 # maximum length that is only half of the actual maximum length, but
4880 # we can't tell.
4881 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4882 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4883 test 17 != "$i" # 1/2 MB should be enough
4884 do
4885 i=`expr $i + 1`
4886 teststring=$teststring$teststring
4887 done
4888 # Only check the string length outside the loop.
4889 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4890 teststring=
4891 # Add a significant safety factor because C++ compilers can tack on
4892 # massive amounts of additional arguments before passing them to the
4893 # linker. It appears as though 1/2 is a usable value.
4894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4895 fi
4896 ;;
4897 esac
4898
4899 fi
4900
4901 if test -n "$lt_cv_sys_max_cmd_len"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4903 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4904 else
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4906 $as_echo "none" >&6; }
4907 fi
4908 max_cmd_len=$lt_cv_sys_max_cmd_len
4909
4910
4911
4912
4913
4914
4915 : ${CP="cp -f"}
4916 : ${MV="mv -f"}
4917 : ${RM="rm -f"}
4918
4919 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4920 lt_unset=unset
4921 else
4922 lt_unset=false
4923 fi
4924
4925
4926
4927
4928
4929 # test EBCDIC or ASCII
4930 case `echo X|tr X '\101'` in
4931 A) # ASCII based system
4932 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4933 lt_SP2NL='tr \040 \012'
4934 lt_NL2SP='tr \015\012 \040\040'
4935 ;;
4936 *) # EBCDIC based system
4937 lt_SP2NL='tr \100 \n'
4938 lt_NL2SP='tr \r\n \100\100'
4939 ;;
4940 esac
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4951 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4952 if ${lt_cv_to_host_file_cmd+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 case $host in
4956 *-*-mingw* )
4957 case $build in
4958 *-*-mingw* ) # actually msys
4959 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4960 ;;
4961 *-*-cygwin* )
4962 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4963 ;;
4964 * ) # otherwise, assume *nix
4965 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4966 ;;
4967 esac
4968 ;;
4969 *-*-cygwin* )
4970 case $build in
4971 *-*-mingw* ) # actually msys
4972 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4973 ;;
4974 *-*-cygwin* )
4975 lt_cv_to_host_file_cmd=func_convert_file_noop
4976 ;;
4977 * ) # otherwise, assume *nix
4978 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4979 ;;
4980 esac
4981 ;;
4982 * ) # unhandled hosts (and "normal" native builds)
4983 lt_cv_to_host_file_cmd=func_convert_file_noop
4984 ;;
4985 esac
4986
4987 fi
4988
4989 to_host_file_cmd=$lt_cv_to_host_file_cmd
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4991 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4992
4993
4994
4995
4996
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4998 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4999 if ${lt_cv_to_tool_file_cmd+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 #assume ordinary cross tools, or native build.
5003 lt_cv_to_tool_file_cmd=func_convert_file_noop
5004 case $host in
5005 *-*-mingw* )
5006 case $build in
5007 *-*-mingw* ) # actually msys
5008 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5009 ;;
5010 esac
5011 ;;
5012 esac
5013
5014 fi
5015
5016 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5018 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5019
5020
5021
5022
5023
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5025 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5026 if ${lt_cv_ld_reload_flag+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 lt_cv_ld_reload_flag='-r'
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5032 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5033 reload_flag=$lt_cv_ld_reload_flag
5034 case $reload_flag in
5035 "" | " "*) ;;
5036 *) reload_flag=" $reload_flag" ;;
5037 esac
5038 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5039 case $host_os in
5040 cygwin* | mingw* | pw32* | cegcc*)
5041 if test yes != "$GCC"; then
5042 reload_cmds=false
5043 fi
5044 ;;
5045 darwin*)
5046 if test yes = "$GCC"; then
5047 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5048 else
5049 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5050 fi
5051 ;;
5052 esac
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062 if test -n "$ac_tool_prefix"; then
5063 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5064 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_OBJDUMP+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if test -n "$OBJDUMP"; then
5071 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5083 fi
5084 done
5085 done
5086 IFS=$as_save_IFS
5087
5088 fi
5089 fi
5090 OBJDUMP=$ac_cv_prog_OBJDUMP
5091 if test -n "$OBJDUMP"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5093 $as_echo "$OBJDUMP" >&6; }
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098
5099
5100 fi
5101 if test -z "$ac_cv_prog_OBJDUMP"; then
5102 ac_ct_OBJDUMP=$OBJDUMP
5103 # Extract the first word of "objdump", so it can be a program name with args.
5104 set dummy objdump; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$ac_ct_OBJDUMP"; then
5111 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124 done
5125 done
5126 IFS=$as_save_IFS
5127
5128 fi
5129 fi
5130 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5131 if test -n "$ac_ct_OBJDUMP"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5133 $as_echo "$ac_ct_OBJDUMP" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138
5139 if test "x$ac_ct_OBJDUMP" = x; then
5140 OBJDUMP="false"
5141 else
5142 case $cross_compiling:$ac_tool_warned in
5143 yes:)
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5146 ac_tool_warned=yes ;;
5147 esac
5148 OBJDUMP=$ac_ct_OBJDUMP
5149 fi
5150 else
5151 OBJDUMP="$ac_cv_prog_OBJDUMP"
5152 fi
5153
5154 test -z "$OBJDUMP" && OBJDUMP=objdump
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5165 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5166 if ${lt_cv_deplibs_check_method+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 lt_cv_file_magic_cmd='$MAGIC_CMD'
5170 lt_cv_file_magic_test_file=
5171 lt_cv_deplibs_check_method='unknown'
5172 # Need to set the preceding variable on all platforms that support
5173 # interlibrary dependencies.
5174 # 'none' -- dependencies not supported.
5175 # 'unknown' -- same as none, but documents that we really don't know.
5176 # 'pass_all' -- all dependencies passed with no checks.
5177 # 'test_compile' -- check by making test program.
5178 # 'file_magic [[regex]]' -- check by looking for files in library path
5179 # that responds to the $file_magic_cmd with a given extended regex.
5180 # If you have 'file' or equivalent on your system and you're not sure
5181 # whether 'pass_all' will *always* work, you probably want this one.
5182
5183 case $host_os in
5184 aix[4-9]*)
5185 lt_cv_deplibs_check_method=pass_all
5186 ;;
5187
5188 beos*)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5191
5192 bsdi[45]*)
5193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5194 lt_cv_file_magic_cmd='/usr/bin/file -L'
5195 lt_cv_file_magic_test_file=/shlib/libc.so
5196 ;;
5197
5198 cygwin*)
5199 # func_win32_libid is a shell function defined in ltmain.sh
5200 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5201 lt_cv_file_magic_cmd='func_win32_libid'
5202 ;;
5203
5204 mingw* | pw32*)
5205 # Base MSYS/MinGW do not provide the 'file' command needed by
5206 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5207 # unless we find 'file', for example because we are cross-compiling.
5208 if ( file / ) >/dev/null 2>&1; then
5209 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5210 lt_cv_file_magic_cmd='func_win32_libid'
5211 else
5212 # Keep this pattern in sync with the one in func_win32_libid.
5213 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5214 lt_cv_file_magic_cmd='$OBJDUMP -f'
5215 fi
5216 ;;
5217
5218 cegcc*)
5219 # use the weaker test based on 'objdump'. See mingw*.
5220 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5221 lt_cv_file_magic_cmd='$OBJDUMP -f'
5222 ;;
5223
5224 darwin* | rhapsody*)
5225 lt_cv_deplibs_check_method=pass_all
5226 ;;
5227
5228 freebsd* | dragonfly*)
5229 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5230 case $host_cpu in
5231 i*86 )
5232 # Not sure whether the presence of OpenBSD here was a mistake.
5233 # Let's accept both of them until this is cleared up.
5234 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5235 lt_cv_file_magic_cmd=/usr/bin/file
5236 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5237 ;;
5238 esac
5239 else
5240 lt_cv_deplibs_check_method=pass_all
5241 fi
5242 ;;
5243
5244 haiku*)
5245 lt_cv_deplibs_check_method=pass_all
5246 ;;
5247
5248 hpux10.20* | hpux11*)
5249 lt_cv_file_magic_cmd=/usr/bin/file
5250 case $host_cpu in
5251 ia64*)
5252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5253 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5254 ;;
5255 hppa*64*)
5256 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]'
5257 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5258 ;;
5259 *)
5260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5261 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5262 ;;
5263 esac
5264 ;;
5265
5266 interix[3-9]*)
5267 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5269 ;;
5270
5271 irix5* | irix6* | nonstopux*)
5272 case $LD in
5273 *-32|*"-32 ") libmagic=32-bit;;
5274 *-n32|*"-n32 ") libmagic=N32;;
5275 *-64|*"-64 ") libmagic=64-bit;;
5276 *) libmagic=never-match;;
5277 esac
5278 lt_cv_deplibs_check_method=pass_all
5279 ;;
5280
5281 # This must be glibc/ELF.
5282 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285
5286 netbsd*)
5287 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5289 else
5290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5291 fi
5292 ;;
5293
5294 newos6*)
5295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5296 lt_cv_file_magic_cmd=/usr/bin/file
5297 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5298 ;;
5299
5300 *nto* | *qnx*)
5301 lt_cv_deplibs_check_method=pass_all
5302 ;;
5303
5304 openbsd* | bitrig*)
5305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5307 else
5308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5309 fi
5310 ;;
5311
5312 osf3* | osf4* | osf5*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316 rdos*)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319
5320 solaris*)
5321 lt_cv_deplibs_check_method=pass_all
5322 ;;
5323
5324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327
5328 sysv4 | sysv4.3*)
5329 case $host_vendor in
5330 motorola)
5331 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]'
5332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5333 ;;
5334 ncr)
5335 lt_cv_deplibs_check_method=pass_all
5336 ;;
5337 sequent)
5338 lt_cv_file_magic_cmd='/bin/file'
5339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5340 ;;
5341 sni)
5342 lt_cv_file_magic_cmd='/bin/file'
5343 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5344 lt_cv_file_magic_test_file=/lib/libc.so
5345 ;;
5346 siemens)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349 pc)
5350 lt_cv_deplibs_check_method=pass_all
5351 ;;
5352 esac
5353 ;;
5354
5355 tpf*)
5356 lt_cv_deplibs_check_method=pass_all
5357 ;;
5358 os2*)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361 esac
5362
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5365 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5366
5367 file_magic_glob=
5368 want_nocaseglob=no
5369 if test "$build" = "$host"; then
5370 case $host_os in
5371 mingw* | pw32*)
5372 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5373 want_nocaseglob=yes
5374 else
5375 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5376 fi
5377 ;;
5378 esac
5379 fi
5380
5381 file_magic_cmd=$lt_cv_file_magic_cmd
5382 deplibs_check_method=$lt_cv_deplibs_check_method
5383 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406 if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5408 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_DLLTOOL+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$DLLTOOL"; then
5415 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428 done
5429 done
5430 IFS=$as_save_IFS
5431
5432 fi
5433 fi
5434 DLLTOOL=$ac_cv_prog_DLLTOOL
5435 if test -n "$DLLTOOL"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5437 $as_echo "$DLLTOOL" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5441 fi
5442
5443
5444 fi
5445 if test -z "$ac_cv_prog_DLLTOOL"; then
5446 ac_ct_DLLTOOL=$DLLTOOL
5447 # Extract the first word of "dlltool", so it can be a program name with args.
5448 set dummy dlltool; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$ac_ct_DLLTOOL"; then
5455 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5475 if test -n "$ac_ct_DLLTOOL"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5477 $as_echo "$ac_ct_DLLTOOL" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483 if test "x$ac_ct_DLLTOOL" = x; then
5484 DLLTOOL="false"
5485 else
5486 case $cross_compiling:$ac_tool_warned in
5487 yes:)
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490 ac_tool_warned=yes ;;
5491 esac
5492 DLLTOOL=$ac_ct_DLLTOOL
5493 fi
5494 else
5495 DLLTOOL="$ac_cv_prog_DLLTOOL"
5496 fi
5497
5498 test -z "$DLLTOOL" && DLLTOOL=dlltool
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5510 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5511 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 lt_cv_sharedlib_from_linklib_cmd='unknown'
5515
5516 case $host_os in
5517 cygwin* | mingw* | pw32* | cegcc*)
5518 # two different shell functions defined in ltmain.sh;
5519 # decide which one to use based on capabilities of $DLLTOOL
5520 case `$DLLTOOL --help 2>&1` in
5521 *--identify-strict*)
5522 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5523 ;;
5524 *)
5525 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5526 ;;
5527 esac
5528 ;;
5529 *)
5530 # fallback: assume linklib IS sharedlib
5531 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5532 ;;
5533 esac
5534
5535 fi
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5537 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5538 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5539 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5540
5541
5542
5543
5544
5545
5546
5547
5548 if test -n "$ac_tool_prefix"; then
5549 for ac_prog in ar
5550 do
5551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if ${ac_cv_prog_AR+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 if test -n "$AR"; then
5559 ac_cv_prog_AR="$AR" # Let the user override the test.
5560 else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5563 do
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 break 2
5571 fi
5572 done
5573 done
5574 IFS=$as_save_IFS
5575
5576 fi
5577 fi
5578 AR=$ac_cv_prog_AR
5579 if test -n "$AR"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5581 $as_echo "$AR" >&6; }
5582 else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5585 fi
5586
5587
5588 test -n "$AR" && break
5589 done
5590 fi
5591 if test -z "$AR"; then
5592 ac_ct_AR=$AR
5593 for ac_prog in ar
5594 do
5595 # Extract the first word of "$ac_prog", so it can be a program name with args.
5596 set dummy $ac_prog; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 if test -n "$ac_ct_AR"; then
5603 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5604 else
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5607 do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612 ac_cv_prog_ac_ct_AR="$ac_prog"
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5615 fi
5616 done
5617 done
5618 IFS=$as_save_IFS
5619
5620 fi
5621 fi
5622 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5623 if test -n "$ac_ct_AR"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5625 $as_echo "$ac_ct_AR" >&6; }
5626 else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }
5629 fi
5630
5631
5632 test -n "$ac_ct_AR" && break
5633 done
5634
5635 if test "x$ac_ct_AR" = x; then
5636 AR="false"
5637 else
5638 case $cross_compiling:$ac_tool_warned in
5639 yes:)
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5642 ac_tool_warned=yes ;;
5643 esac
5644 AR=$ac_ct_AR
5645 fi
5646 fi
5647
5648 : ${AR=ar}
5649 : ${AR_FLAGS=cru}
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5662 $as_echo_n "checking for archiver @FILE support... " >&6; }
5663 if ${lt_cv_ar_at_file+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 lt_cv_ar_at_file=no
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669
5670 int
5671 main ()
5672 {
5673
5674 ;
5675 return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_compile "$LINENO"; then :
5679 echo conftest.$ac_objext > conftest.lst
5680 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5682 (eval $lt_ar_try) 2>&5
5683 ac_status=$?
5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685 test $ac_status = 0; }
5686 if test 0 -eq "$ac_status"; then
5687 # Ensure the archiver fails upon bogus file names.
5688 rm -f conftest.$ac_objext libconftest.a
5689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5690 (eval $lt_ar_try) 2>&5
5691 ac_status=$?
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; }
5694 if test 0 -ne "$ac_status"; then
5695 lt_cv_ar_at_file=@
5696 fi
5697 fi
5698 rm -f conftest.* libconftest.a
5699
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5705 $as_echo "$lt_cv_ar_at_file" >&6; }
5706
5707 if test no = "$lt_cv_ar_at_file"; then
5708 archiver_list_spec=
5709 else
5710 archiver_list_spec=$lt_cv_ar_at_file
5711 fi
5712
5713
5714
5715
5716
5717
5718
5719 if test -n "$ac_tool_prefix"; then
5720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5721 set dummy ${ac_tool_prefix}strip; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_STRIP+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 if test -n "$STRIP"; then
5728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5732 do
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5740 fi
5741 done
5742 done
5743 IFS=$as_save_IFS
5744
5745 fi
5746 fi
5747 STRIP=$ac_cv_prog_STRIP
5748 if test -n "$STRIP"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5750 $as_echo "$STRIP" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5754 fi
5755
5756
5757 fi
5758 if test -z "$ac_cv_prog_STRIP"; then
5759 ac_ct_STRIP=$STRIP
5760 # Extract the first word of "strip", so it can be a program name with args.
5761 set dummy strip; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test -n "$ac_ct_STRIP"; then
5768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_ac_ct_STRIP="strip"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5780 fi
5781 done
5782 done
5783 IFS=$as_save_IFS
5784
5785 fi
5786 fi
5787 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5788 if test -n "$ac_ct_STRIP"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5790 $as_echo "$ac_ct_STRIP" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 fi
5795
5796 if test "x$ac_ct_STRIP" = x; then
5797 STRIP=":"
5798 else
5799 case $cross_compiling:$ac_tool_warned in
5800 yes:)
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5803 ac_tool_warned=yes ;;
5804 esac
5805 STRIP=$ac_ct_STRIP
5806 fi
5807 else
5808 STRIP="$ac_cv_prog_STRIP"
5809 fi
5810
5811 test -z "$STRIP" && STRIP=:
5812
5813
5814
5815
5816
5817
5818 if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if ${ac_cv_prog_RANLIB+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 if test -n "$RANLIB"; then
5827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840 done
5841 done
5842 IFS=$as_save_IFS
5843
5844 fi
5845 fi
5846 RANLIB=$ac_cv_prog_RANLIB
5847 if test -n "$RANLIB"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5849 $as_echo "$RANLIB" >&6; }
5850 else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 fi
5854
5855
5856 fi
5857 if test -z "$ac_cv_prog_RANLIB"; then
5858 ac_ct_RANLIB=$RANLIB
5859 # Extract the first word of "ranlib", so it can be a program name with args.
5860 set dummy ranlib; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test -n "$ac_ct_RANLIB"; then
5867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876 ac_cv_prog_ac_ct_RANLIB="ranlib"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883
5884 fi
5885 fi
5886 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5887 if test -n "$ac_ct_RANLIB"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5889 $as_echo "$ac_ct_RANLIB" >&6; }
5890 else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894
5895 if test "x$ac_ct_RANLIB" = x; then
5896 RANLIB=":"
5897 else
5898 case $cross_compiling:$ac_tool_warned in
5899 yes:)
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902 ac_tool_warned=yes ;;
5903 esac
5904 RANLIB=$ac_ct_RANLIB
5905 fi
5906 else
5907 RANLIB="$ac_cv_prog_RANLIB"
5908 fi
5909
5910 test -z "$RANLIB" && RANLIB=:
5911
5912
5913
5914
5915
5916
5917 # Determine commands to create old-style static archives.
5918 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5919 old_postinstall_cmds='chmod 644 $oldlib'
5920 old_postuninstall_cmds=
5921
5922 if test -n "$RANLIB"; then
5923 case $host_os in
5924 bitrig* | openbsd*)
5925 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5926 ;;
5927 *)
5928 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5929 ;;
5930 esac
5931 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5932 fi
5933
5934 case $host_os in
5935 darwin*)
5936 lock_old_archive_extraction=yes ;;
5937 *)
5938 lock_old_archive_extraction=no ;;
5939 esac
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979 # If no C compiler was specified, use CC.
5980 LTCC=${LTCC-"$CC"}
5981
5982 # If no C compiler flags were specified, use CFLAGS.
5983 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5984
5985 # Allow CC to be a program name with arguments.
5986 compiler=$CC
5987
5988
5989 # Check for command to grab the raw symbol name followed by C symbol from nm.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5991 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5992 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995
5996 # These are sane defaults that work on at least a few old systems.
5997 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5998
5999 # Character class describing NM global symbol codes.
6000 symcode='[BCDEGRST]'
6001
6002 # Regexp to match symbols that can be accessed directly from C.
6003 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6004
6005 # Define system-specific variables.
6006 case $host_os in
6007 aix*)
6008 symcode='[BCDT]'
6009 ;;
6010 cygwin* | mingw* | pw32* | cegcc*)
6011 symcode='[ABCDGISTW]'
6012 ;;
6013 hpux*)
6014 if test ia64 = "$host_cpu"; then
6015 symcode='[ABCDEGRST]'
6016 fi
6017 ;;
6018 irix* | nonstopux*)
6019 symcode='[BCDEGRST]'
6020 ;;
6021 osf*)
6022 symcode='[BCDEGQRST]'
6023 ;;
6024 solaris*)
6025 symcode='[BDRT]'
6026 ;;
6027 sco3.2v5*)
6028 symcode='[DT]'
6029 ;;
6030 sysv4.2uw2*)
6031 symcode='[DT]'
6032 ;;
6033 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6034 symcode='[ABDT]'
6035 ;;
6036 sysv4)
6037 symcode='[DFNSTU]'
6038 ;;
6039 esac
6040
6041 # If we're using GNU nm, then use its standard symbol codes.
6042 case `$NM -V 2>&1` in
6043 *GNU* | *'with BFD'*)
6044 symcode='[ABCDGIRSTW]' ;;
6045 esac
6046
6047 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6048 # Gets list of data symbols to import.
6049 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6050 # Adjust the below global symbol transforms to fixup imported variables.
6051 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6052 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6053 lt_c_name_lib_hook="\
6054 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6055 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6056 else
6057 # Disable hooks by default.
6058 lt_cv_sys_global_symbol_to_import=
6059 lt_cdecl_hook=
6060 lt_c_name_hook=
6061 lt_c_name_lib_hook=
6062 fi
6063
6064 # Transform an extracted symbol line into a proper C declaration.
6065 # Some systems (esp. on ia64) link data and code symbols differently,
6066 # so use this general approach.
6067 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6068 $lt_cdecl_hook\
6069 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6070 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6071
6072 # Transform an extracted symbol line into symbol name and symbol address
6073 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6074 $lt_c_name_hook\
6075 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6076 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6077
6078 # Transform an extracted symbol line into symbol name with lib prefix and
6079 # symbol address.
6080 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6081 $lt_c_name_lib_hook\
6082 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6083 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6084 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6085
6086 # Handle CRLF in mingw tool chain
6087 opt_cr=
6088 case $build_os in
6089 mingw*)
6090 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6091 ;;
6092 esac
6093
6094 # Try without a prefix underscore, then with it.
6095 for ac_symprfx in "" "_"; do
6096
6097 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6098 symxfrm="\\1 $ac_symprfx\\2 \\2"
6099
6100 # Write the raw and C identifiers.
6101 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6102 # Fake it for dumpbin and say T for any non-static function,
6103 # D for any global variable and I for any imported variable.
6104 # Also find C++ and __fastcall symbols from MSVC++,
6105 # which start with @ or ?.
6106 lt_cv_sys_global_symbol_pipe="$AWK '"\
6107 " {last_section=section; section=\$ 3};"\
6108 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6109 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6110 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6111 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6112 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6113 " \$ 0!~/External *\|/{next};"\
6114 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6115 " {if(hide[section]) next};"\
6116 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6117 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6118 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6119 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6120 " ' prfx=^$ac_symprfx"
6121 else
6122 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6123 fi
6124 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6125
6126 # Check to see that the pipe works correctly.
6127 pipe_works=no
6128
6129 rm -f conftest*
6130 cat > conftest.$ac_ext <<_LT_EOF
6131 #ifdef __cplusplus
6132 extern "C" {
6133 #endif
6134 char nm_test_var;
6135 void nm_test_func(void);
6136 void nm_test_func(void){}
6137 #ifdef __cplusplus
6138 }
6139 #endif
6140 int main(){nm_test_var='a';nm_test_func();return(0);}
6141 _LT_EOF
6142
6143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6144 (eval $ac_compile) 2>&5
6145 ac_status=$?
6146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6147 test $ac_status = 0; }; then
6148 # Now try to grab the symbols.
6149 nlist=conftest.nm
6150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6151 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6152 ac_status=$?
6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; } && test -s "$nlist"; then
6155 # Try sorting and uniquifying the output.
6156 if sort "$nlist" | uniq > "$nlist"T; then
6157 mv -f "$nlist"T "$nlist"
6158 else
6159 rm -f "$nlist"T
6160 fi
6161
6162 # Make sure that we snagged all the symbols we need.
6163 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6164 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6165 cat <<_LT_EOF > conftest.$ac_ext
6166 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6167 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6168 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6169 relocations are performed -- see ld's documentation on pseudo-relocs. */
6170 # define LT_DLSYM_CONST
6171 #elif defined __osf__
6172 /* This system does not cope well with relocations in const data. */
6173 # define LT_DLSYM_CONST
6174 #else
6175 # define LT_DLSYM_CONST const
6176 #endif
6177
6178 #ifdef __cplusplus
6179 extern "C" {
6180 #endif
6181
6182 _LT_EOF
6183 # Now generate the symbol file.
6184 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6185
6186 cat <<_LT_EOF >> conftest.$ac_ext
6187
6188 /* The mapping between symbol names and symbols. */
6189 LT_DLSYM_CONST struct {
6190 const char *name;
6191 void *address;
6192 }
6193 lt__PROGRAM__LTX_preloaded_symbols[] =
6194 {
6195 { "@PROGRAM@", (void *) 0 },
6196 _LT_EOF
6197 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6198 cat <<\_LT_EOF >> conftest.$ac_ext
6199 {0, (void *) 0}
6200 };
6201
6202 /* This works around a problem in FreeBSD linker */
6203 #ifdef FREEBSD_WORKAROUND
6204 static const void *lt_preloaded_setup() {
6205 return lt__PROGRAM__LTX_preloaded_symbols;
6206 }
6207 #endif
6208
6209 #ifdef __cplusplus
6210 }
6211 #endif
6212 _LT_EOF
6213 # Now try linking the two files.
6214 mv conftest.$ac_objext conftstm.$ac_objext
6215 lt_globsym_save_LIBS=$LIBS
6216 lt_globsym_save_CFLAGS=$CFLAGS
6217 LIBS=conftstm.$ac_objext
6218 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6220 (eval $ac_link) 2>&5
6221 ac_status=$?
6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6224 pipe_works=yes
6225 fi
6226 LIBS=$lt_globsym_save_LIBS
6227 CFLAGS=$lt_globsym_save_CFLAGS
6228 else
6229 echo "cannot find nm_test_func in $nlist" >&5
6230 fi
6231 else
6232 echo "cannot find nm_test_var in $nlist" >&5
6233 fi
6234 else
6235 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6236 fi
6237 else
6238 echo "$progname: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6240 fi
6241 rm -rf conftest* conftst*
6242
6243 # Do not use the global_symbol_pipe unless it works.
6244 if test yes = "$pipe_works"; then
6245 break
6246 else
6247 lt_cv_sys_global_symbol_pipe=
6248 fi
6249 done
6250
6251 fi
6252
6253 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6254 lt_cv_sys_global_symbol_to_cdecl=
6255 fi
6256 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6258 $as_echo "failed" >&6; }
6259 else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6261 $as_echo "ok" >&6; }
6262 fi
6263
6264 # Response file support.
6265 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6266 nm_file_list_spec='@'
6267 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6268 nm_file_list_spec='@'
6269 fi
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6308 $as_echo_n "checking for sysroot... " >&6; }
6309
6310 # Check whether --with-sysroot was given.
6311 if test "${with_sysroot+set}" = set; then :
6312 withval=$with_sysroot;
6313 else
6314 with_sysroot=no
6315 fi
6316
6317
6318 lt_sysroot=
6319 case $with_sysroot in #(
6320 yes)
6321 if test yes = "$GCC"; then
6322 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6323 fi
6324 ;; #(
6325 /*)
6326 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6327 ;; #(
6328 no|'')
6329 ;; #(
6330 *)
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6332 $as_echo "$with_sysroot" >&6; }
6333 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6334 ;;
6335 esac
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6338 $as_echo "${lt_sysroot:-no}" >&6; }
6339
6340
6341
6342
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6345 $as_echo_n "checking for a working dd... " >&6; }
6346 if ${ac_cv_path_lt_DD+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 printf 0123456789abcdef0123456789abcdef >conftest.i
6350 cat conftest.i conftest.i >conftest2.i
6351 : ${lt_DD:=$DD}
6352 if test -z "$lt_DD"; then
6353 ac_path_lt_DD_found=false
6354 # Loop through the user's path and test for each of PROGNAME-LIST
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_prog in dd; do
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6363 as_fn_executable_p "$ac_path_lt_DD" || continue
6364 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6365 cmp -s conftest.i conftest.out \
6366 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6367 fi
6368 $ac_path_lt_DD_found && break 3
6369 done
6370 done
6371 done
6372 IFS=$as_save_IFS
6373 if test -z "$ac_cv_path_lt_DD"; then
6374 :
6375 fi
6376 else
6377 ac_cv_path_lt_DD=$lt_DD
6378 fi
6379
6380 rm -f conftest.i conftest2.i conftest.out
6381 fi
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6383 $as_echo "$ac_cv_path_lt_DD" >&6; }
6384
6385
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6387 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6388 if ${lt_cv_truncate_bin+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 printf 0123456789abcdef0123456789abcdef >conftest.i
6392 cat conftest.i conftest.i >conftest2.i
6393 lt_cv_truncate_bin=
6394 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6395 cmp -s conftest.i conftest.out \
6396 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6397 fi
6398 rm -f conftest.i conftest2.i conftest.out
6399 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6402 $as_echo "$lt_cv_truncate_bin" >&6; }
6403
6404
6405
6406
6407
6408
6409
6410 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6411 func_cc_basename ()
6412 {
6413 for cc_temp in $*""; do
6414 case $cc_temp in
6415 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6416 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6417 \-*) ;;
6418 *) break;;
6419 esac
6420 done
6421 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6422 }
6423
6424 # Check whether --enable-libtool-lock was given.
6425 if test "${enable_libtool_lock+set}" = set; then :
6426 enableval=$enable_libtool_lock;
6427 fi
6428
6429 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6430
6431 # Some flags need to be propagated to the compiler or linker for good
6432 # libtool support.
6433 case $host in
6434 ia64-*-hpux*)
6435 # Find out what ABI is being produced by ac_compile, and set mode
6436 # options accordingly.
6437 echo 'int i;' > conftest.$ac_ext
6438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6439 (eval $ac_compile) 2>&5
6440 ac_status=$?
6441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6442 test $ac_status = 0; }; then
6443 case `/usr/bin/file conftest.$ac_objext` in
6444 *ELF-32*)
6445 HPUX_IA64_MODE=32
6446 ;;
6447 *ELF-64*)
6448 HPUX_IA64_MODE=64
6449 ;;
6450 esac
6451 fi
6452 rm -rf conftest*
6453 ;;
6454 *-*-irix6*)
6455 # Find out what ABI is being produced by ac_compile, and set linker
6456 # options accordingly.
6457 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6459 (eval $ac_compile) 2>&5
6460 ac_status=$?
6461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462 test $ac_status = 0; }; then
6463 if test yes = "$lt_cv_prog_gnu_ld"; then
6464 case `/usr/bin/file conftest.$ac_objext` in
6465 *32-bit*)
6466 LD="${LD-ld} -melf32bsmip"
6467 ;;
6468 *N32*)
6469 LD="${LD-ld} -melf32bmipn32"
6470 ;;
6471 *64-bit*)
6472 LD="${LD-ld} -melf64bmip"
6473 ;;
6474 esac
6475 else
6476 case `/usr/bin/file conftest.$ac_objext` in
6477 *32-bit*)
6478 LD="${LD-ld} -32"
6479 ;;
6480 *N32*)
6481 LD="${LD-ld} -n32"
6482 ;;
6483 *64-bit*)
6484 LD="${LD-ld} -64"
6485 ;;
6486 esac
6487 fi
6488 fi
6489 rm -rf conftest*
6490 ;;
6491
6492 mips64*-*linux*)
6493 # Find out what ABI is being produced by ac_compile, and set linker
6494 # options accordingly.
6495 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6497 (eval $ac_compile) 2>&5
6498 ac_status=$?
6499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500 test $ac_status = 0; }; then
6501 emul=elf
6502 case `/usr/bin/file conftest.$ac_objext` in
6503 *32-bit*)
6504 emul="${emul}32"
6505 ;;
6506 *64-bit*)
6507 emul="${emul}64"
6508 ;;
6509 esac
6510 case `/usr/bin/file conftest.$ac_objext` in
6511 *MSB*)
6512 emul="${emul}btsmip"
6513 ;;
6514 *LSB*)
6515 emul="${emul}ltsmip"
6516 ;;
6517 esac
6518 case `/usr/bin/file conftest.$ac_objext` in
6519 *N32*)
6520 emul="${emul}n32"
6521 ;;
6522 esac
6523 LD="${LD-ld} -m $emul"
6524 fi
6525 rm -rf conftest*
6526 ;;
6527
6528 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6529 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6530 # Find out what ABI is being produced by ac_compile, and set linker
6531 # options accordingly. Note that the listed cases only cover the
6532 # situations where additional linker options are needed (such as when
6533 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6534 # vice versa); the common cases where no linker options are needed do
6535 # not appear in the list.
6536 echo 'int i;' > conftest.$ac_ext
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6538 (eval $ac_compile) 2>&5
6539 ac_status=$?
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; }; then
6542 case `/usr/bin/file conftest.o` in
6543 *32-bit*)
6544 case $host in
6545 x86_64-*kfreebsd*-gnu)
6546 LD="${LD-ld} -m elf_i386_fbsd"
6547 ;;
6548 x86_64-*linux*)
6549 case `/usr/bin/file conftest.o` in
6550 *x86-64*)
6551 LD="${LD-ld} -m elf32_x86_64"
6552 ;;
6553 *)
6554 LD="${LD-ld} -m elf_i386"
6555 ;;
6556 esac
6557 ;;
6558 powerpc64le-*linux*)
6559 LD="${LD-ld} -m elf32lppclinux"
6560 ;;
6561 powerpc64-*linux*)
6562 LD="${LD-ld} -m elf32ppclinux"
6563 ;;
6564 s390x-*linux*)
6565 LD="${LD-ld} -m elf_s390"
6566 ;;
6567 sparc64-*linux*)
6568 LD="${LD-ld} -m elf32_sparc"
6569 ;;
6570 esac
6571 ;;
6572 *64-bit*)
6573 case $host in
6574 x86_64-*kfreebsd*-gnu)
6575 LD="${LD-ld} -m elf_x86_64_fbsd"
6576 ;;
6577 x86_64-*linux*)
6578 LD="${LD-ld} -m elf_x86_64"
6579 ;;
6580 powerpcle-*linux*)
6581 LD="${LD-ld} -m elf64lppc"
6582 ;;
6583 powerpc-*linux*)
6584 LD="${LD-ld} -m elf64ppc"
6585 ;;
6586 s390*-*linux*|s390*-*tpf*)
6587 LD="${LD-ld} -m elf64_s390"
6588 ;;
6589 sparc*-*linux*)
6590 LD="${LD-ld} -m elf64_sparc"
6591 ;;
6592 esac
6593 ;;
6594 esac
6595 fi
6596 rm -rf conftest*
6597 ;;
6598
6599 *-*-sco3.2v5*)
6600 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6601 SAVE_CFLAGS=$CFLAGS
6602 CFLAGS="$CFLAGS -belf"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6604 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6605 if ${lt_cv_cc_needs_belf+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 ac_ext=c
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6616
6617 int
6618 main ()
6619 {
6620
6621 ;
6622 return 0;
6623 }
6624 _ACEOF
6625 if ac_fn_c_try_link "$LINENO"; then :
6626 lt_cv_cc_needs_belf=yes
6627 else
6628 lt_cv_cc_needs_belf=no
6629 fi
6630 rm -f core conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6632 ac_ext=c
6633 ac_cpp='$CPP $CPPFLAGS'
6634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6637
6638 fi
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6640 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6641 if test yes != "$lt_cv_cc_needs_belf"; then
6642 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6643 CFLAGS=$SAVE_CFLAGS
6644 fi
6645 ;;
6646 *-*solaris*)
6647 # Find out what ABI is being produced by ac_compile, and set linker
6648 # options accordingly.
6649 echo 'int i;' > conftest.$ac_ext
6650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6651 (eval $ac_compile) 2>&5
6652 ac_status=$?
6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654 test $ac_status = 0; }; then
6655 case `/usr/bin/file conftest.o` in
6656 *64-bit*)
6657 case $lt_cv_prog_gnu_ld in
6658 yes*)
6659 case $host in
6660 i?86-*-solaris*|x86_64-*-solaris*)
6661 LD="${LD-ld} -m elf_x86_64"
6662 ;;
6663 sparc*-*-solaris*)
6664 LD="${LD-ld} -m elf64_sparc"
6665 ;;
6666 esac
6667 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6668 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6669 LD=${LD-ld}_sol2
6670 fi
6671 ;;
6672 *)
6673 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6674 LD="${LD-ld} -64"
6675 fi
6676 ;;
6677 esac
6678 ;;
6679 esac
6680 fi
6681 rm -rf conftest*
6682 ;;
6683 esac
6684
6685 need_locks=$enable_libtool_lock
6686
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}mt; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 if test -n "$MANIFEST_TOOL"; then
6696 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709 done
6710 done
6711 IFS=$as_save_IFS
6712
6713 fi
6714 fi
6715 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6716 if test -n "$MANIFEST_TOOL"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6718 $as_echo "$MANIFEST_TOOL" >&6; }
6719 else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6722 fi
6723
6724
6725 fi
6726 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6727 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6728 # Extract the first word of "mt", so it can be a program name with args.
6729 set dummy mt; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 if test -n "$ac_ct_MANIFEST_TOOL"; then
6736 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749 done
6750 done
6751 IFS=$as_save_IFS
6752
6753 fi
6754 fi
6755 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6756 if test -n "$ac_ct_MANIFEST_TOOL"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6758 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6765 MANIFEST_TOOL=":"
6766 else
6767 case $cross_compiling:$ac_tool_warned in
6768 yes:)
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771 ac_tool_warned=yes ;;
6772 esac
6773 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6774 fi
6775 else
6776 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6777 fi
6778
6779 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6781 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6782 if ${lt_cv_path_mainfest_tool+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 lt_cv_path_mainfest_tool=no
6786 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6787 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6788 cat conftest.err >&5
6789 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6790 lt_cv_path_mainfest_tool=yes
6791 fi
6792 rm -f conftest*
6793 fi
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6795 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6796 if test yes != "$lt_cv_path_mainfest_tool"; then
6797 MANIFEST_TOOL=:
6798 fi
6799
6800
6801
6802
6803
6804
6805 case $host_os in
6806 rhapsody* | darwin*)
6807 if test -n "$ac_tool_prefix"; then
6808 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$DSYMUTIL"; then
6816 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6836 if test -n "$DSYMUTIL"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6838 $as_echo "$DSYMUTIL" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844
6845 fi
6846 if test -z "$ac_cv_prog_DSYMUTIL"; then
6847 ac_ct_DSYMUTIL=$DSYMUTIL
6848 # Extract the first word of "dsymutil", so it can be a program name with args.
6849 set dummy dsymutil; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 $as_echo_n "checking for $ac_word... " >&6; }
6852 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 if test -n "$ac_ct_DSYMUTIL"; then
6856 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6857 else
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 break 2
6868 fi
6869 done
6870 done
6871 IFS=$as_save_IFS
6872
6873 fi
6874 fi
6875 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6876 if test -n "$ac_ct_DSYMUTIL"; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6878 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6879 else
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6882 fi
6883
6884 if test "x$ac_ct_DSYMUTIL" = x; then
6885 DSYMUTIL=":"
6886 else
6887 case $cross_compiling:$ac_tool_warned in
6888 yes:)
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893 DSYMUTIL=$ac_ct_DSYMUTIL
6894 fi
6895 else
6896 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6897 fi
6898
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_prog_NMEDIT+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$NMEDIT"; then
6908 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 NMEDIT=$ac_cv_prog_NMEDIT
6928 if test -n "$NMEDIT"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6930 $as_echo "$NMEDIT" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936
6937 fi
6938 if test -z "$ac_cv_prog_NMEDIT"; then
6939 ac_ct_NMEDIT=$NMEDIT
6940 # Extract the first word of "nmedit", so it can be a program name with args.
6941 set dummy nmedit; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 if test -n "$ac_ct_NMEDIT"; then
6948 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6968 if test -n "$ac_ct_NMEDIT"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6970 $as_echo "$ac_ct_NMEDIT" >&6; }
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976 if test "x$ac_ct_NMEDIT" = x; then
6977 NMEDIT=":"
6978 else
6979 case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned=yes ;;
6984 esac
6985 NMEDIT=$ac_ct_NMEDIT
6986 fi
6987 else
6988 NMEDIT="$ac_cv_prog_NMEDIT"
6989 fi
6990
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_LIPO+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 if test -n "$LIPO"; then
7000 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 LIPO=$ac_cv_prog_LIPO
7020 if test -n "$LIPO"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7022 $as_echo "$LIPO" >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7026 fi
7027
7028
7029 fi
7030 if test -z "$ac_cv_prog_LIPO"; then
7031 ac_ct_LIPO=$LIPO
7032 # Extract the first word of "lipo", so it can be a program name with args.
7033 set dummy lipo; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 if test -n "$ac_ct_LIPO"; then
7040 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_ac_ct_LIPO="lipo"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7060 if test -n "$ac_ct_LIPO"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7062 $as_echo "$ac_ct_LIPO" >&6; }
7063 else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 fi
7067
7068 if test "x$ac_ct_LIPO" = x; then
7069 LIPO=":"
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077 LIPO=$ac_ct_LIPO
7078 fi
7079 else
7080 LIPO="$ac_cv_prog_LIPO"
7081 fi
7082
7083 if test -n "$ac_tool_prefix"; then
7084 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7085 set dummy ${ac_tool_prefix}otool; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if ${ac_cv_prog_OTOOL+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 if test -n "$OTOOL"; then
7092 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi
7110 fi
7111 OTOOL=$ac_cv_prog_OTOOL
7112 if test -n "$OTOOL"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7114 $as_echo "$OTOOL" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 fi
7119
7120
7121 fi
7122 if test -z "$ac_cv_prog_OTOOL"; then
7123 ac_ct_OTOOL=$OTOOL
7124 # Extract the first word of "otool", so it can be a program name with args.
7125 set dummy otool; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 if test -n "$ac_ct_OTOOL"; then
7132 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141 ac_cv_prog_ac_ct_OTOOL="otool"
7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7144 fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149 fi
7150 fi
7151 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7152 if test -n "$ac_ct_OTOOL"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7154 $as_echo "$ac_ct_OTOOL" >&6; }
7155 else
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7158 fi
7159
7160 if test "x$ac_ct_OTOOL" = x; then
7161 OTOOL=":"
7162 else
7163 case $cross_compiling:$ac_tool_warned in
7164 yes:)
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167 ac_tool_warned=yes ;;
7168 esac
7169 OTOOL=$ac_ct_OTOOL
7170 fi
7171 else
7172 OTOOL="$ac_cv_prog_OTOOL"
7173 fi
7174
7175 if test -n "$ac_tool_prefix"; then
7176 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7177 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if ${ac_cv_prog_OTOOL64+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 if test -n "$OTOOL64"; then
7184 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7185 else
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7188 do
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7193 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7196 fi
7197 done
7198 done
7199 IFS=$as_save_IFS
7200
7201 fi
7202 fi
7203 OTOOL64=$ac_cv_prog_OTOOL64
7204 if test -n "$OTOOL64"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7206 $as_echo "$OTOOL64" >&6; }
7207 else
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7210 fi
7211
7212
7213 fi
7214 if test -z "$ac_cv_prog_OTOOL64"; then
7215 ac_ct_OTOOL64=$OTOOL64
7216 # Extract the first word of "otool64", so it can be a program name with args.
7217 set dummy otool64; ac_word=$2
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 $as_echo_n "checking for $ac_word... " >&6; }
7220 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 if test -n "$ac_ct_OTOOL64"; then
7224 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7225 else
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229 IFS=$as_save_IFS
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233 ac_cv_prog_ac_ct_OTOOL64="otool64"
7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 break 2
7236 fi
7237 done
7238 done
7239 IFS=$as_save_IFS
7240
7241 fi
7242 fi
7243 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7244 if test -n "$ac_ct_OTOOL64"; then
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7246 $as_echo "$ac_ct_OTOOL64" >&6; }
7247 else
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249 $as_echo "no" >&6; }
7250 fi
7251
7252 if test "x$ac_ct_OTOOL64" = x; then
7253 OTOOL64=":"
7254 else
7255 case $cross_compiling:$ac_tool_warned in
7256 yes:)
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7259 ac_tool_warned=yes ;;
7260 esac
7261 OTOOL64=$ac_ct_OTOOL64
7262 fi
7263 else
7264 OTOOL64="$ac_cv_prog_OTOOL64"
7265 fi
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7294 $as_echo_n "checking for -single_module linker flag... " >&6; }
7295 if ${lt_cv_apple_cc_single_mod+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 lt_cv_apple_cc_single_mod=no
7299 if test -z "$LT_MULTI_MODULE"; then
7300 # By default we will add the -single_module flag. You can override
7301 # by either setting the environment variable LT_MULTI_MODULE
7302 # non-empty at configure time, or by adding -multi_module to the
7303 # link flags.
7304 rm -rf libconftest.dylib*
7305 echo "int foo(void){return 1;}" > conftest.c
7306 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7307 -dynamiclib -Wl,-single_module conftest.c" >&5
7308 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7309 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7310 _lt_result=$?
7311 # If there is a non-empty error log, and "single_module"
7312 # appears in it, assume the flag caused a linker warning
7313 if test -s conftest.err && $GREP single_module conftest.err; then
7314 cat conftest.err >&5
7315 # Otherwise, if the output was created with a 0 exit code from
7316 # the compiler, it worked.
7317 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7318 lt_cv_apple_cc_single_mod=yes
7319 else
7320 cat conftest.err >&5
7321 fi
7322 rm -rf libconftest.dylib*
7323 rm -f conftest.*
7324 fi
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7327 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7328
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7330 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7331 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 lt_cv_ld_exported_symbols_list=no
7335 save_LDFLAGS=$LDFLAGS
7336 echo "_main" > conftest.sym
7337 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7340
7341 int
7342 main ()
7343 {
7344
7345 ;
7346 return 0;
7347 }
7348 _ACEOF
7349 if ac_fn_c_try_link "$LINENO"; then :
7350 lt_cv_ld_exported_symbols_list=yes
7351 else
7352 lt_cv_ld_exported_symbols_list=no
7353 fi
7354 rm -f core conftest.err conftest.$ac_objext \
7355 conftest$ac_exeext conftest.$ac_ext
7356 LDFLAGS=$save_LDFLAGS
7357
7358 fi
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7360 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7361
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7363 $as_echo_n "checking for -force_load linker flag... " >&6; }
7364 if ${lt_cv_ld_force_load+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 lt_cv_ld_force_load=no
7368 cat > conftest.c << _LT_EOF
7369 int forced_loaded() { return 2;}
7370 _LT_EOF
7371 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7372 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7373 echo "$AR cru libconftest.a conftest.o" >&5
7374 $AR cru libconftest.a conftest.o 2>&5
7375 echo "$RANLIB libconftest.a" >&5
7376 $RANLIB libconftest.a 2>&5
7377 cat > conftest.c << _LT_EOF
7378 int main() { return 0;}
7379 _LT_EOF
7380 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7381 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7382 _lt_result=$?
7383 if test -s conftest.err && $GREP force_load conftest.err; then
7384 cat conftest.err >&5
7385 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7386 lt_cv_ld_force_load=yes
7387 else
7388 cat conftest.err >&5
7389 fi
7390 rm -f conftest.err libconftest.a conftest conftest.c
7391 rm -rf conftest.dSYM
7392
7393 fi
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7395 $as_echo "$lt_cv_ld_force_load" >&6; }
7396 case $host_os in
7397 rhapsody* | darwin1.[012])
7398 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7399 darwin1.*)
7400 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7401 darwin*) # darwin 5.x on
7402 # if running on 10.5 or later, the deployment target defaults
7403 # to the OS version, if on x86, and 10.4, the deployment
7404 # target defaults to 10.4. Don't you love it?
7405 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7406 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7407 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7408 10.[012][,.]*)
7409 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7410 10.*)
7411 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7412 esac
7413 ;;
7414 esac
7415 if test yes = "$lt_cv_apple_cc_single_mod"; then
7416 _lt_dar_single_mod='$single_module'
7417 fi
7418 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7419 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7420 else
7421 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7422 fi
7423 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7424 _lt_dsymutil='~$DSYMUTIL $lib || :'
7425 else
7426 _lt_dsymutil=
7427 fi
7428 ;;
7429 esac
7430
7431 # func_munge_path_list VARIABLE PATH
7432 # -----------------------------------
7433 # VARIABLE is name of variable containing _space_ separated list of
7434 # directories to be munged by the contents of PATH, which is string
7435 # having a format:
7436 # "DIR[:DIR]:"
7437 # string "DIR[ DIR]" will be prepended to VARIABLE
7438 # ":DIR[:DIR]"
7439 # string "DIR[ DIR]" will be appended to VARIABLE
7440 # "DIRP[:DIRP]::[DIRA:]DIRA"
7441 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7442 # "DIRA[ DIRA]" will be appended to VARIABLE
7443 # "DIR[:DIR]"
7444 # VARIABLE will be replaced by "DIR[ DIR]"
7445 func_munge_path_list ()
7446 {
7447 case x$2 in
7448 x)
7449 ;;
7450 *:)
7451 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7452 ;;
7453 x:*)
7454 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7455 ;;
7456 *::*)
7457 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7458 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7459 ;;
7460 *)
7461 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7462 ;;
7463 esac
7464 }
7465
7466 ac_ext=c
7467 ac_cpp='$CPP $CPPFLAGS'
7468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7472 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7473 # On Suns, sometimes $CPP names a directory.
7474 if test -n "$CPP" && test -d "$CPP"; then
7475 CPP=
7476 fi
7477 if test -z "$CPP"; then
7478 if ${ac_cv_prog_CPP+:} false; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7481 # Double quotes because CPP needs to be expanded
7482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7483 do
7484 ac_preproc_ok=false
7485 for ac_c_preproc_warn_flag in '' yes
7486 do
7487 # Use a header file that comes with gcc, so configuring glibc
7488 # with a fresh cross-compiler works.
7489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7490 # <limits.h> exists even on freestanding compilers.
7491 # On the NeXT, cc -E runs the code through the compiler's parser,
7492 # not just through cpp. "Syntax error" is here to catch this case.
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #ifdef __STDC__
7496 # include <limits.h>
7497 #else
7498 # include <assert.h>
7499 #endif
7500 Syntax error
7501 _ACEOF
7502 if ac_fn_c_try_cpp "$LINENO"; then :
7503
7504 else
7505 # Broken: fails on valid input.
7506 continue
7507 fi
7508 rm -f conftest.err conftest.i conftest.$ac_ext
7509
7510 # OK, works on sane cases. Now check whether nonexistent headers
7511 # can be detected and how.
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7514 #include <ac_nonexistent.h>
7515 _ACEOF
7516 if ac_fn_c_try_cpp "$LINENO"; then :
7517 # Broken: success on invalid input.
7518 continue
7519 else
7520 # Passes both tests.
7521 ac_preproc_ok=:
7522 break
7523 fi
7524 rm -f conftest.err conftest.i conftest.$ac_ext
7525
7526 done
7527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7528 rm -f conftest.i conftest.err conftest.$ac_ext
7529 if $ac_preproc_ok; then :
7530 break
7531 fi
7532
7533 done
7534 ac_cv_prog_CPP=$CPP
7535
7536 fi
7537 CPP=$ac_cv_prog_CPP
7538 else
7539 ac_cv_prog_CPP=$CPP
7540 fi
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7542 $as_echo "$CPP" >&6; }
7543 ac_preproc_ok=false
7544 for ac_c_preproc_warn_flag in '' yes
7545 do
7546 # Use a header file that comes with gcc, so configuring glibc
7547 # with a fresh cross-compiler works.
7548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7549 # <limits.h> exists even on freestanding compilers.
7550 # On the NeXT, cc -E runs the code through the compiler's parser,
7551 # not just through cpp. "Syntax error" is here to catch this case.
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7554 #ifdef __STDC__
7555 # include <limits.h>
7556 #else
7557 # include <assert.h>
7558 #endif
7559 Syntax error
7560 _ACEOF
7561 if ac_fn_c_try_cpp "$LINENO"; then :
7562
7563 else
7564 # Broken: fails on valid input.
7565 continue
7566 fi
7567 rm -f conftest.err conftest.i conftest.$ac_ext
7568
7569 # OK, works on sane cases. Now check whether nonexistent headers
7570 # can be detected and how.
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 #include <ac_nonexistent.h>
7574 _ACEOF
7575 if ac_fn_c_try_cpp "$LINENO"; then :
7576 # Broken: success on invalid input.
7577 continue
7578 else
7579 # Passes both tests.
7580 ac_preproc_ok=:
7581 break
7582 fi
7583 rm -f conftest.err conftest.i conftest.$ac_ext
7584
7585 done
7586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7587 rm -f conftest.i conftest.err conftest.$ac_ext
7588 if $ac_preproc_ok; then :
7589
7590 else
7591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7593 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7594 See \`config.log' for more details" "$LINENO" 5; }
7595 fi
7596
7597 ac_ext=c
7598 ac_cpp='$CPP $CPPFLAGS'
7599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7602
7603
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7605 $as_echo_n "checking for ANSI C header files... " >&6; }
7606 if ${ac_cv_header_stdc+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 #include <stdlib.h>
7612 #include <stdarg.h>
7613 #include <string.h>
7614 #include <float.h>
7615
7616 int
7617 main ()
7618 {
7619
7620 ;
7621 return 0;
7622 }
7623 _ACEOF
7624 if ac_fn_c_try_compile "$LINENO"; then :
7625 ac_cv_header_stdc=yes
7626 else
7627 ac_cv_header_stdc=no
7628 fi
7629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7630
7631 if test $ac_cv_header_stdc = yes; then
7632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 #include <string.h>
7636
7637 _ACEOF
7638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7639 $EGREP "memchr" >/dev/null 2>&1; then :
7640
7641 else
7642 ac_cv_header_stdc=no
7643 fi
7644 rm -f conftest*
7645
7646 fi
7647
7648 if test $ac_cv_header_stdc = yes; then
7649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 #include <stdlib.h>
7653
7654 _ACEOF
7655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7656 $EGREP "free" >/dev/null 2>&1; then :
7657
7658 else
7659 ac_cv_header_stdc=no
7660 fi
7661 rm -f conftest*
7662
7663 fi
7664
7665 if test $ac_cv_header_stdc = yes; then
7666 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7667 if test "$cross_compiling" = yes; then :
7668 :
7669 else
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7672 #include <ctype.h>
7673 #include <stdlib.h>
7674 #if ((' ' & 0x0FF) == 0x020)
7675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7677 #else
7678 # define ISLOWER(c) \
7679 (('a' <= (c) && (c) <= 'i') \
7680 || ('j' <= (c) && (c) <= 'r') \
7681 || ('s' <= (c) && (c) <= 'z'))
7682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7683 #endif
7684
7685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7686 int
7687 main ()
7688 {
7689 int i;
7690 for (i = 0; i < 256; i++)
7691 if (XOR (islower (i), ISLOWER (i))
7692 || toupper (i) != TOUPPER (i))
7693 return 2;
7694 return 0;
7695 }
7696 _ACEOF
7697 if ac_fn_c_try_run "$LINENO"; then :
7698
7699 else
7700 ac_cv_header_stdc=no
7701 fi
7702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7703 conftest.$ac_objext conftest.beam conftest.$ac_ext
7704 fi
7705
7706 fi
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7709 $as_echo "$ac_cv_header_stdc" >&6; }
7710 if test $ac_cv_header_stdc = yes; then
7711
7712 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7713
7714 fi
7715
7716 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7717 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7718 inttypes.h stdint.h unistd.h
7719 do :
7720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7721 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7722 "
7723 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7724 cat >>confdefs.h <<_ACEOF
7725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7726 _ACEOF
7727
7728 fi
7729
7730 done
7731
7732
7733 for ac_header in dlfcn.h
7734 do :
7735 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7736 "
7737 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7738 cat >>confdefs.h <<_ACEOF
7739 #define HAVE_DLFCN_H 1
7740 _ACEOF
7741
7742 fi
7743
7744 done
7745
7746
7747
7748
7749
7750 # Set options
7751
7752
7753
7754 enable_dlopen=no
7755
7756
7757 enable_win32_dll=no
7758
7759
7760 # Check whether --enable-shared was given.
7761 if test "${enable_shared+set}" = set; then :
7762 enableval=$enable_shared; p=${PACKAGE-default}
7763 case $enableval in
7764 yes) enable_shared=yes ;;
7765 no) enable_shared=no ;;
7766 *)
7767 enable_shared=no
7768 # Look at the argument we got. We use all the common list separators.
7769 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7770 for pkg in $enableval; do
7771 IFS=$lt_save_ifs
7772 if test "X$pkg" = "X$p"; then
7773 enable_shared=yes
7774 fi
7775 done
7776 IFS=$lt_save_ifs
7777 ;;
7778 esac
7779 else
7780 enable_shared=yes
7781 fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791 # Check whether --enable-static was given.
7792 if test "${enable_static+set}" = set; then :
7793 enableval=$enable_static; p=${PACKAGE-default}
7794 case $enableval in
7795 yes) enable_static=yes ;;
7796 no) enable_static=no ;;
7797 *)
7798 enable_static=no
7799 # Look at the argument we got. We use all the common list separators.
7800 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7801 for pkg in $enableval; do
7802 IFS=$lt_save_ifs
7803 if test "X$pkg" = "X$p"; then
7804 enable_static=yes
7805 fi
7806 done
7807 IFS=$lt_save_ifs
7808 ;;
7809 esac
7810 else
7811 enable_static=yes
7812 fi
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823 # Check whether --with-pic was given.
7824 if test "${with_pic+set}" = set; then :
7825 withval=$with_pic; lt_p=${PACKAGE-default}
7826 case $withval in
7827 yes|no) pic_mode=$withval ;;
7828 *)
7829 pic_mode=default
7830 # Look at the argument we got. We use all the common list separators.
7831 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7832 for lt_pkg in $withval; do
7833 IFS=$lt_save_ifs
7834 if test "X$lt_pkg" = "X$lt_p"; then
7835 pic_mode=yes
7836 fi
7837 done
7838 IFS=$lt_save_ifs
7839 ;;
7840 esac
7841 else
7842 pic_mode=default
7843 fi
7844
7845
7846
7847
7848
7849
7850
7851
7852 # Check whether --enable-fast-install was given.
7853 if test "${enable_fast_install+set}" = set; then :
7854 enableval=$enable_fast_install; p=${PACKAGE-default}
7855 case $enableval in
7856 yes) enable_fast_install=yes ;;
7857 no) enable_fast_install=no ;;
7858 *)
7859 enable_fast_install=no
7860 # Look at the argument we got. We use all the common list separators.
7861 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7862 for pkg in $enableval; do
7863 IFS=$lt_save_ifs
7864 if test "X$pkg" = "X$p"; then
7865 enable_fast_install=yes
7866 fi
7867 done
7868 IFS=$lt_save_ifs
7869 ;;
7870 esac
7871 else
7872 enable_fast_install=yes
7873 fi
7874
7875
7876
7877
7878
7879
7880
7881
7882 shared_archive_member_spec=
7883 case $host,$enable_shared in
7884 power*-*-aix[5-9]*,yes)
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7886 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7887
7888 # Check whether --with-aix-soname was given.
7889 if test "${with_aix_soname+set}" = set; then :
7890 withval=$with_aix_soname; case $withval in
7891 aix|svr4|both)
7892 ;;
7893 *)
7894 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7895 ;;
7896 esac
7897 lt_cv_with_aix_soname=$with_aix_soname
7898 else
7899 if ${lt_cv_with_aix_soname+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 lt_cv_with_aix_soname=aix
7903 fi
7904
7905 with_aix_soname=$lt_cv_with_aix_soname
7906 fi
7907
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7909 $as_echo "$with_aix_soname" >&6; }
7910 if test aix != "$with_aix_soname"; then
7911 # For the AIX way of multilib, we name the shared archive member
7912 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7913 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7914 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7915 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7916 if test 64 = "${OBJECT_MODE-32}"; then
7917 shared_archive_member_spec=shr_64
7918 else
7919 shared_archive_member_spec=shr
7920 fi
7921 fi
7922 ;;
7923 *)
7924 with_aix_soname=aix
7925 ;;
7926 esac
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937 # This can be used to rebuild libtool when needed
7938 LIBTOOL_DEPS=$ltmain
7939
7940 # Always use our own libtool.
7941 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972 test -z "$LN_S" && LN_S="ln -s"
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987 if test -n "${ZSH_VERSION+set}"; then
7988 setopt NO_GLOB_SUBST
7989 fi
7990
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7992 $as_echo_n "checking for objdir... " >&6; }
7993 if ${lt_cv_objdir+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 rm -f .libs 2>/dev/null
7997 mkdir .libs 2>/dev/null
7998 if test -d .libs; then
7999 lt_cv_objdir=.libs
8000 else
8001 # MS-DOS does not allow filenames that begin with a dot.
8002 lt_cv_objdir=_libs
8003 fi
8004 rmdir .libs 2>/dev/null
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8007 $as_echo "$lt_cv_objdir" >&6; }
8008 objdir=$lt_cv_objdir
8009
8010
8011
8012
8013
8014 cat >>confdefs.h <<_ACEOF
8015 #define LT_OBJDIR "$lt_cv_objdir/"
8016 _ACEOF
8017
8018
8019
8020
8021 case $host_os in
8022 aix3*)
8023 # AIX sometimes has problems with the GCC collect2 program. For some
8024 # reason, if we set the COLLECT_NAMES environment variable, the problems
8025 # vanish in a puff of smoke.
8026 if test set != "${COLLECT_NAMES+set}"; then
8027 COLLECT_NAMES=
8028 export COLLECT_NAMES
8029 fi
8030 ;;
8031 esac
8032
8033 # Global variables:
8034 ofile=libtool
8035 can_build_shared=yes
8036
8037 # All known linkers require a '.a' archive for static linking (except MSVC,
8038 # which needs '.lib').
8039 libext=a
8040
8041 with_gnu_ld=$lt_cv_prog_gnu_ld
8042
8043 old_CC=$CC
8044 old_CFLAGS=$CFLAGS
8045
8046 # Set sane defaults for various variables
8047 test -z "$CC" && CC=cc
8048 test -z "$LTCC" && LTCC=$CC
8049 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8050 test -z "$LD" && LD=ld
8051 test -z "$ac_objext" && ac_objext=o
8052
8053 func_cc_basename $compiler
8054 cc_basename=$func_cc_basename_result
8055
8056
8057 # Only perform the check for file, if the check method requires it
8058 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8059 case $deplibs_check_method in
8060 file_magic*)
8061 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8063 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8064 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 case $MAGIC_CMD in
8068 [\\/*] | ?:[\\/]*)
8069 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8070 ;;
8071 *)
8072 lt_save_MAGIC_CMD=$MAGIC_CMD
8073 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8075 for ac_dir in $ac_dummy; do
8076 IFS=$lt_save_ifs
8077 test -z "$ac_dir" && ac_dir=.
8078 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8079 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8080 if test -n "$file_magic_test_file"; then
8081 case $deplibs_check_method in
8082 "file_magic "*)
8083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8084 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8086 $EGREP "$file_magic_regex" > /dev/null; then
8087 :
8088 else
8089 cat <<_LT_EOF 1>&2
8090
8091 *** Warning: the command libtool uses to detect shared libraries,
8092 *** $file_magic_cmd, produces output that libtool cannot recognize.
8093 *** The result is that libtool may fail to recognize shared libraries
8094 *** as such. This will affect the creation of libtool libraries that
8095 *** depend on shared libraries, but programs linked with such libtool
8096 *** libraries will work regardless of this problem. Nevertheless, you
8097 *** may want to report the problem to your system manager and/or to
8098 *** bug-libtool (at] gnu.org
8099
8100 _LT_EOF
8101 fi ;;
8102 esac
8103 fi
8104 break
8105 fi
8106 done
8107 IFS=$lt_save_ifs
8108 MAGIC_CMD=$lt_save_MAGIC_CMD
8109 ;;
8110 esac
8111 fi
8112
8113 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8114 if test -n "$MAGIC_CMD"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8116 $as_echo "$MAGIC_CMD" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123
8124
8125
8126 if test -z "$lt_cv_path_MAGIC_CMD"; then
8127 if test -n "$ac_tool_prefix"; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8129 $as_echo_n "checking for file... " >&6; }
8130 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 case $MAGIC_CMD in
8134 [\\/*] | ?:[\\/]*)
8135 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8136 ;;
8137 *)
8138 lt_save_MAGIC_CMD=$MAGIC_CMD
8139 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8140 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8141 for ac_dir in $ac_dummy; do
8142 IFS=$lt_save_ifs
8143 test -z "$ac_dir" && ac_dir=.
8144 if test -f "$ac_dir/file"; then
8145 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8146 if test -n "$file_magic_test_file"; then
8147 case $deplibs_check_method in
8148 "file_magic "*)
8149 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8150 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8152 $EGREP "$file_magic_regex" > /dev/null; then
8153 :
8154 else
8155 cat <<_LT_EOF 1>&2
8156
8157 *** Warning: the command libtool uses to detect shared libraries,
8158 *** $file_magic_cmd, produces output that libtool cannot recognize.
8159 *** The result is that libtool may fail to recognize shared libraries
8160 *** as such. This will affect the creation of libtool libraries that
8161 *** depend on shared libraries, but programs linked with such libtool
8162 *** libraries will work regardless of this problem. Nevertheless, you
8163 *** may want to report the problem to your system manager and/or to
8164 *** bug-libtool (at] gnu.org
8165
8166 _LT_EOF
8167 fi ;;
8168 esac
8169 fi
8170 break
8171 fi
8172 done
8173 IFS=$lt_save_ifs
8174 MAGIC_CMD=$lt_save_MAGIC_CMD
8175 ;;
8176 esac
8177 fi
8178
8179 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8180 if test -n "$MAGIC_CMD"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8182 $as_echo "$MAGIC_CMD" >&6; }
8183 else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8186 fi
8187
8188
8189 else
8190 MAGIC_CMD=:
8191 fi
8192 fi
8193
8194 fi
8195 ;;
8196 esac
8197
8198 # Use C for the default configuration in the libtool script
8199
8200 lt_save_CC=$CC
8201 ac_ext=c
8202 ac_cpp='$CPP $CPPFLAGS'
8203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8206
8207
8208 # Source file extension for C test sources.
8209 ac_ext=c
8210
8211 # Object file extension for compiled C test sources.
8212 objext=o
8213 objext=$objext
8214
8215 # Code to be used in simple compile tests
8216 lt_simple_compile_test_code="int some_variable = 0;"
8217
8218 # Code to be used in simple link tests
8219 lt_simple_link_test_code='int main(){return(0);}'
8220
8221
8222
8223
8224
8225
8226
8227 # If no C compiler was specified, use CC.
8228 LTCC=${LTCC-"$CC"}
8229
8230 # If no C compiler flags were specified, use CFLAGS.
8231 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8232
8233 # Allow CC to be a program name with arguments.
8234 compiler=$CC
8235
8236 # Save the default compiler, since it gets overwritten when the other
8237 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8238 compiler_DEFAULT=$CC
8239
8240 # save warnings/boilerplate of simple test code
8241 ac_outfile=conftest.$ac_objext
8242 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8243 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8244 _lt_compiler_boilerplate=`cat conftest.err`
8245 $RM conftest*
8246
8247 ac_outfile=conftest.$ac_objext
8248 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8249 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8250 _lt_linker_boilerplate=`cat conftest.err`
8251 $RM -r conftest*
8252
8253
8254 if test -n "$compiler"; then
8255
8256 lt_prog_compiler_no_builtin_flag=
8257
8258 if test yes = "$GCC"; then
8259 case $cc_basename in
8260 nvcc*)
8261 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8262 *)
8263 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8264 esac
8265
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8267 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8268 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 lt_cv_prog_compiler_rtti_exceptions=no
8272 ac_outfile=conftest.$ac_objext
8273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8274 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8275 # Insert the option either (1) after the last *FLAGS variable, or
8276 # (2) before a word containing "conftest.", or (3) at the end.
8277 # Note that $ac_compile itself does not contain backslashes and begins
8278 # with a dollar sign (not a hyphen), so the echo should work correctly.
8279 # The option is referenced via a variable to avoid confusing sed.
8280 lt_compile=`echo "$ac_compile" | $SED \
8281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8283 -e 's:$: $lt_compiler_flag:'`
8284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8285 (eval "$lt_compile" 2>conftest.err)
8286 ac_status=$?
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 if (exit $ac_status) && test -s "$ac_outfile"; then
8290 # The compiler can only warn and ignore the option if not recognized
8291 # So say no if there are warnings other than the usual output.
8292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8295 lt_cv_prog_compiler_rtti_exceptions=yes
8296 fi
8297 fi
8298 $RM conftest*
8299
8300 fi
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8302 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8303
8304 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8305 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8306 else
8307 :
8308 fi
8309
8310 fi
8311
8312
8313
8314
8315
8316
8317 lt_prog_compiler_wl=
8318 lt_prog_compiler_pic=
8319 lt_prog_compiler_static=
8320
8321
8322 if test yes = "$GCC"; then
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_static='-static'
8325
8326 case $host_os in
8327 aix*)
8328 # All AIX code is PIC.
8329 if test ia64 = "$host_cpu"; then
8330 # AIX 5 now supports IA64 processor
8331 lt_prog_compiler_static='-Bstatic'
8332 fi
8333 lt_prog_compiler_pic='-fPIC'
8334 ;;
8335
8336 amigaos*)
8337 case $host_cpu in
8338 powerpc)
8339 # see comment about AmigaOS4 .so support
8340 lt_prog_compiler_pic='-fPIC'
8341 ;;
8342 m68k)
8343 # FIXME: we need at least 68020 code to build shared libraries, but
8344 # adding the '-m68020' flag to GCC prevents building anything better,
8345 # like '-m68040'.
8346 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8347 ;;
8348 esac
8349 ;;
8350
8351 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8352 # PIC is the default for these OSes.
8353 ;;
8354
8355 mingw* | cygwin* | pw32* | os2* | cegcc*)
8356 # This hack is so that the source file can tell whether it is being
8357 # built for inclusion in a dll (and should export symbols for example).
8358 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8359 # (--disable-auto-import) libraries
8360 lt_prog_compiler_pic='-DDLL_EXPORT'
8361 case $host_os in
8362 os2*)
8363 lt_prog_compiler_static='$wl-static'
8364 ;;
8365 esac
8366 ;;
8367
8368 darwin* | rhapsody*)
8369 # PIC is the default on this platform
8370 # Common symbols not allowed in MH_DYLIB files
8371 lt_prog_compiler_pic='-fno-common'
8372 ;;
8373
8374 haiku*)
8375 # PIC is the default for Haiku.
8376 # The "-static" flag exists, but is broken.
8377 lt_prog_compiler_static=
8378 ;;
8379
8380 hpux*)
8381 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8382 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8383 # sets the default TLS model and affects inlining.
8384 case $host_cpu in
8385 hppa*64*)
8386 # +Z the default
8387 ;;
8388 *)
8389 lt_prog_compiler_pic='-fPIC'
8390 ;;
8391 esac
8392 ;;
8393
8394 interix[3-9]*)
8395 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8396 # Instead, we relocate shared libraries at runtime.
8397 ;;
8398
8399 msdosdjgpp*)
8400 # Just because we use GCC doesn't mean we suddenly get shared libraries
8401 # on systems that don't support them.
8402 lt_prog_compiler_can_build_shared=no
8403 enable_shared=no
8404 ;;
8405
8406 *nto* | *qnx*)
8407 # QNX uses GNU C++, but need to define -shared option too, otherwise
8408 # it will coredump.
8409 lt_prog_compiler_pic='-fPIC -shared'
8410 ;;
8411
8412 sysv4*MP*)
8413 if test -d /usr/nec; then
8414 lt_prog_compiler_pic=-Kconform_pic
8415 fi
8416 ;;
8417
8418 *)
8419 lt_prog_compiler_pic='-fPIC'
8420 ;;
8421 esac
8422
8423 case $cc_basename in
8424 nvcc*) # Cuda Compiler Driver 2.2
8425 lt_prog_compiler_wl='-Xlinker '
8426 if test -n "$lt_prog_compiler_pic"; then
8427 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8428 fi
8429 ;;
8430 esac
8431 else
8432 # PORTME Check for flag to pass linker flags through the system compiler.
8433 case $host_os in
8434 aix*)
8435 lt_prog_compiler_wl='-Wl,'
8436 if test ia64 = "$host_cpu"; then
8437 # AIX 5 now supports IA64 processor
8438 lt_prog_compiler_static='-Bstatic'
8439 else
8440 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8441 fi
8442 ;;
8443
8444 darwin* | rhapsody*)
8445 # PIC is the default on this platform
8446 # Common symbols not allowed in MH_DYLIB files
8447 lt_prog_compiler_pic='-fno-common'
8448 case $cc_basename in
8449 nagfor*)
8450 # NAG Fortran compiler
8451 lt_prog_compiler_wl='-Wl,-Wl,,'
8452 lt_prog_compiler_pic='-PIC'
8453 lt_prog_compiler_static='-Bstatic'
8454 ;;
8455 esac
8456 ;;
8457
8458 mingw* | cygwin* | pw32* | os2* | cegcc*)
8459 # This hack is so that the source file can tell whether it is being
8460 # built for inclusion in a dll (and should export symbols for example).
8461 lt_prog_compiler_pic='-DDLL_EXPORT'
8462 case $host_os in
8463 os2*)
8464 lt_prog_compiler_static='$wl-static'
8465 ;;
8466 esac
8467 ;;
8468
8469 hpux9* | hpux10* | hpux11*)
8470 lt_prog_compiler_wl='-Wl,'
8471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8472 # not for PA HP-UX.
8473 case $host_cpu in
8474 hppa*64*|ia64*)
8475 # +Z the default
8476 ;;
8477 *)
8478 lt_prog_compiler_pic='+Z'
8479 ;;
8480 esac
8481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8482 lt_prog_compiler_static='$wl-a ${wl}archive'
8483 ;;
8484
8485 irix5* | irix6* | nonstopux*)
8486 lt_prog_compiler_wl='-Wl,'
8487 # PIC (with -KPIC) is the default.
8488 lt_prog_compiler_static='-non_shared'
8489 ;;
8490
8491 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8492 case $cc_basename in
8493 # old Intel for x86_64, which still supported -KPIC.
8494 ecc*)
8495 lt_prog_compiler_wl='-Wl,'
8496 lt_prog_compiler_pic='-KPIC'
8497 lt_prog_compiler_static='-static'
8498 ;;
8499 # icc used to be incompatible with GCC.
8500 # ICC 10 doesn't accept -KPIC any more.
8501 icc* | ifort*)
8502 lt_prog_compiler_wl='-Wl,'
8503 lt_prog_compiler_pic='-fPIC'
8504 lt_prog_compiler_static='-static'
8505 ;;
8506 # Lahey Fortran 8.1.
8507 lf95*)
8508 lt_prog_compiler_wl='-Wl,'
8509 lt_prog_compiler_pic='--shared'
8510 lt_prog_compiler_static='--static'
8511 ;;
8512 nagfor*)
8513 # NAG Fortran compiler
8514 lt_prog_compiler_wl='-Wl,-Wl,,'
8515 lt_prog_compiler_pic='-PIC'
8516 lt_prog_compiler_static='-Bstatic'
8517 ;;
8518 tcc*)
8519 # Fabrice Bellard et al's Tiny C Compiler
8520 lt_prog_compiler_wl='-Wl,'
8521 lt_prog_compiler_pic='-fPIC'
8522 lt_prog_compiler_static='-static'
8523 ;;
8524 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8525 # Portland Group compilers (*not* the Pentium gcc compiler,
8526 # which looks to be a dead project)
8527 lt_prog_compiler_wl='-Wl,'
8528 lt_prog_compiler_pic='-fpic'
8529 lt_prog_compiler_static='-Bstatic'
8530 ;;
8531 ccc*)
8532 lt_prog_compiler_wl='-Wl,'
8533 # All Alpha code is PIC.
8534 lt_prog_compiler_static='-non_shared'
8535 ;;
8536 xl* | bgxl* | bgf* | mpixl*)
8537 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8538 lt_prog_compiler_wl='-Wl,'
8539 lt_prog_compiler_pic='-qpic'
8540 lt_prog_compiler_static='-qstaticlink'
8541 ;;
8542 *)
8543 case `$CC -V 2>&1 | sed 5q` in
8544 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8545 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8546 lt_prog_compiler_pic='-KPIC'
8547 lt_prog_compiler_static='-Bstatic'
8548 lt_prog_compiler_wl=''
8549 ;;
8550 *Sun\ F* | *Sun*Fortran*)
8551 lt_prog_compiler_pic='-KPIC'
8552 lt_prog_compiler_static='-Bstatic'
8553 lt_prog_compiler_wl='-Qoption ld '
8554 ;;
8555 *Sun\ C*)
8556 # Sun C 5.9
8557 lt_prog_compiler_pic='-KPIC'
8558 lt_prog_compiler_static='-Bstatic'
8559 lt_prog_compiler_wl='-Wl,'
8560 ;;
8561 *Intel*\ [CF]*Compiler*)
8562 lt_prog_compiler_wl='-Wl,'
8563 lt_prog_compiler_pic='-fPIC'
8564 lt_prog_compiler_static='-static'
8565 ;;
8566 *Portland\ Group*)
8567 lt_prog_compiler_wl='-Wl,'
8568 lt_prog_compiler_pic='-fpic'
8569 lt_prog_compiler_static='-Bstatic'
8570 ;;
8571 esac
8572 ;;
8573 esac
8574 ;;
8575
8576 newsos6)
8577 lt_prog_compiler_pic='-KPIC'
8578 lt_prog_compiler_static='-Bstatic'
8579 ;;
8580
8581 *nto* | *qnx*)
8582 # QNX uses GNU C++, but need to define -shared option too, otherwise
8583 # it will coredump.
8584 lt_prog_compiler_pic='-fPIC -shared'
8585 ;;
8586
8587 osf3* | osf4* | osf5*)
8588 lt_prog_compiler_wl='-Wl,'
8589 # All OSF/1 code is PIC.
8590 lt_prog_compiler_static='-non_shared'
8591 ;;
8592
8593 rdos*)
8594 lt_prog_compiler_static='-non_shared'
8595 ;;
8596
8597 solaris*)
8598 lt_prog_compiler_pic='-KPIC'
8599 lt_prog_compiler_static='-Bstatic'
8600 case $cc_basename in
8601 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8602 lt_prog_compiler_wl='-Qoption ld ';;
8603 *)
8604 lt_prog_compiler_wl='-Wl,';;
8605 esac
8606 ;;
8607
8608 sunos4*)
8609 lt_prog_compiler_wl='-Qoption ld '
8610 lt_prog_compiler_pic='-PIC'
8611 lt_prog_compiler_static='-Bstatic'
8612 ;;
8613
8614 sysv4 | sysv4.2uw2* | sysv4.3*)
8615 lt_prog_compiler_wl='-Wl,'
8616 lt_prog_compiler_pic='-KPIC'
8617 lt_prog_compiler_static='-Bstatic'
8618 ;;
8619
8620 sysv4*MP*)
8621 if test -d /usr/nec; then
8622 lt_prog_compiler_pic='-Kconform_pic'
8623 lt_prog_compiler_static='-Bstatic'
8624 fi
8625 ;;
8626
8627 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 ;;
8632
8633 unicos*)
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_can_build_shared=no
8636 ;;
8637
8638 uts4*)
8639 lt_prog_compiler_pic='-pic'
8640 lt_prog_compiler_static='-Bstatic'
8641 ;;
8642
8643 *)
8644 lt_prog_compiler_can_build_shared=no
8645 ;;
8646 esac
8647 fi
8648
8649 case $host_os in
8650 # For platforms that do not support PIC, -DPIC is meaningless:
8651 *djgpp*)
8652 lt_prog_compiler_pic=
8653 ;;
8654 *)
8655 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8656 ;;
8657 esac
8658
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8660 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8661 if ${lt_cv_prog_compiler_pic+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8665 fi
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8667 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8668 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8669
8670 #
8671 # Check to make sure the PIC flag actually works.
8672 #
8673 if test -n "$lt_prog_compiler_pic"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8675 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8676 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 lt_cv_prog_compiler_pic_works=no
8680 ac_outfile=conftest.$ac_objext
8681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8682 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8683 # Insert the option either (1) after the last *FLAGS variable, or
8684 # (2) before a word containing "conftest.", or (3) at the end.
8685 # Note that $ac_compile itself does not contain backslashes and begins
8686 # with a dollar sign (not a hyphen), so the echo should work correctly.
8687 # The option is referenced via a variable to avoid confusing sed.
8688 lt_compile=`echo "$ac_compile" | $SED \
8689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8691 -e 's:$: $lt_compiler_flag:'`
8692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8693 (eval "$lt_compile" 2>conftest.err)
8694 ac_status=$?
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 if (exit $ac_status) && test -s "$ac_outfile"; then
8698 # The compiler can only warn and ignore the option if not recognized
8699 # So say no if there are warnings other than the usual output.
8700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8703 lt_cv_prog_compiler_pic_works=yes
8704 fi
8705 fi
8706 $RM conftest*
8707
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8710 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8711
8712 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8713 case $lt_prog_compiler_pic in
8714 "" | " "*) ;;
8715 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8716 esac
8717 else
8718 lt_prog_compiler_pic=
8719 lt_prog_compiler_can_build_shared=no
8720 fi
8721
8722 fi
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734 #
8735 # Check to make sure the static flag actually works.
8736 #
8737 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8739 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8740 if ${lt_cv_prog_compiler_static_works+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 lt_cv_prog_compiler_static_works=no
8744 save_LDFLAGS=$LDFLAGS
8745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8746 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8748 # The linker can only warn and ignore the option if not recognized
8749 # So say no if there are warnings
8750 if test -s conftest.err; then
8751 # Append any errors to the config.log.
8752 cat conftest.err 1>&5
8753 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8755 if diff conftest.exp conftest.er2 >/dev/null; then
8756 lt_cv_prog_compiler_static_works=yes
8757 fi
8758 else
8759 lt_cv_prog_compiler_static_works=yes
8760 fi
8761 fi
8762 $RM -r conftest*
8763 LDFLAGS=$save_LDFLAGS
8764
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8767 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8768
8769 if test yes = "$lt_cv_prog_compiler_static_works"; then
8770 :
8771 else
8772 lt_prog_compiler_static=
8773 fi
8774
8775
8776
8777
8778
8779
8780
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8782 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8783 if ${lt_cv_prog_compiler_c_o+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 lt_cv_prog_compiler_c_o=no
8787 $RM -r conftest 2>/dev/null
8788 mkdir conftest
8789 cd conftest
8790 mkdir out
8791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8792
8793 lt_compiler_flag="-o out/conftest2.$ac_objext"
8794 # Insert the option either (1) after the last *FLAGS variable, or
8795 # (2) before a word containing "conftest.", or (3) at the end.
8796 # Note that $ac_compile itself does not contain backslashes and begins
8797 # with a dollar sign (not a hyphen), so the echo should work correctly.
8798 lt_compile=`echo "$ac_compile" | $SED \
8799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8801 -e 's:$: $lt_compiler_flag:'`
8802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8803 (eval "$lt_compile" 2>out/conftest.err)
8804 ac_status=$?
8805 cat out/conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8808 then
8809 # The compiler can only warn and ignore the option if not recognized
8810 # So say no if there are warnings
8811 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8812 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8813 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8814 lt_cv_prog_compiler_c_o=yes
8815 fi
8816 fi
8817 chmod u+w . 2>&5
8818 $RM conftest*
8819 # SGI C++ compiler will create directory out/ii_files/ for
8820 # template instantiation
8821 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8822 $RM out/* && rmdir out
8823 cd ..
8824 $RM -r conftest
8825 $RM conftest*
8826
8827 fi
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8829 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8830
8831
8832
8833
8834
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8838 if ${lt_cv_prog_compiler_c_o+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 lt_cv_prog_compiler_c_o=no
8842 $RM -r conftest 2>/dev/null
8843 mkdir conftest
8844 cd conftest
8845 mkdir out
8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8847
8848 lt_compiler_flag="-o out/conftest2.$ac_objext"
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 lt_compile=`echo "$ac_compile" | $SED \
8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856 -e 's:$: $lt_compiler_flag:'`
8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8858 (eval "$lt_compile" 2>out/conftest.err)
8859 ac_status=$?
8860 cat out/conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8863 then
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings
8866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_c_o=yes
8870 fi
8871 fi
8872 chmod u+w . 2>&5
8873 $RM conftest*
8874 # SGI C++ compiler will create directory out/ii_files/ for
8875 # template instantiation
8876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8877 $RM out/* && rmdir out
8878 cd ..
8879 $RM -r conftest
8880 $RM conftest*
8881
8882 fi
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8884 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8885
8886
8887
8888
8889 hard_links=nottested
8890 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8891 # do not overwrite the value of need_locks provided by the user
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8893 $as_echo_n "checking if we can lock with hard links... " >&6; }
8894 hard_links=yes
8895 $RM conftest*
8896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8897 touch conftest.a
8898 ln conftest.a conftest.b 2>&5 || hard_links=no
8899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8901 $as_echo "$hard_links" >&6; }
8902 if test no = "$hard_links"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8904 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8905 need_locks=warn
8906 fi
8907 else
8908 need_locks=no
8909 fi
8910
8911
8912
8913
8914
8915
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8917 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8918
8919 runpath_var=
8920 allow_undefined_flag=
8921 always_export_symbols=no
8922 archive_cmds=
8923 archive_expsym_cmds=
8924 compiler_needs_object=no
8925 enable_shared_with_static_runtimes=no
8926 export_dynamic_flag_spec=
8927 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8928 hardcode_automatic=no
8929 hardcode_direct=no
8930 hardcode_direct_absolute=no
8931 hardcode_libdir_flag_spec=
8932 hardcode_libdir_separator=
8933 hardcode_minus_L=no
8934 hardcode_shlibpath_var=unsupported
8935 inherit_rpath=no
8936 link_all_deplibs=unknown
8937 module_cmds=
8938 module_expsym_cmds=
8939 old_archive_from_new_cmds=
8940 old_archive_from_expsyms_cmds=
8941 thread_safe_flag_spec=
8942 whole_archive_flag_spec=
8943 # include_expsyms should be a list of space-separated symbols to be *always*
8944 # included in the symbol list
8945 include_expsyms=
8946 # exclude_expsyms can be an extended regexp of symbols to exclude
8947 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8948 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8949 # as well as any symbol that contains 'd'.
8950 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8951 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8952 # platforms (ab)use it in PIC code, but their linkers get confused if
8953 # the symbol is explicitly referenced. Since portable code cannot
8954 # rely on this symbol name, it's probably fine to never include it in
8955 # preloaded symbol tables.
8956 # Exclude shared library initialization/finalization symbols.
8957 extract_expsyms_cmds=
8958
8959 case $host_os in
8960 cygwin* | mingw* | pw32* | cegcc*)
8961 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8962 # When not using gcc, we currently assume that we are using
8963 # Microsoft Visual C++.
8964 if test yes != "$GCC"; then
8965 with_gnu_ld=no
8966 fi
8967 ;;
8968 interix*)
8969 # we just hope/assume this is gcc and not c89 (= MSVC++)
8970 with_gnu_ld=yes
8971 ;;
8972 openbsd* | bitrig*)
8973 with_gnu_ld=no
8974 ;;
8975 esac
8976
8977 ld_shlibs=yes
8978
8979 # On some targets, GNU ld is compatible enough with the native linker
8980 # that we're better off using the native interface for both.
8981 lt_use_gnu_ld_interface=no
8982 if test yes = "$with_gnu_ld"; then
8983 case $host_os in
8984 aix*)
8985 # The AIX port of GNU ld has always aspired to compatibility
8986 # with the native linker. However, as the warning in the GNU ld
8987 # block says, versions before 2.19.5* couldn't really create working
8988 # shared libraries, regardless of the interface used.
8989 case `$LD -v 2>&1` in
8990 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8991 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8992 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8993 *)
8994 lt_use_gnu_ld_interface=yes
8995 ;;
8996 esac
8997 ;;
8998 *)
8999 lt_use_gnu_ld_interface=yes
9000 ;;
9001 esac
9002 fi
9003
9004 if test yes = "$lt_use_gnu_ld_interface"; then
9005 # If archive_cmds runs LD, not CC, wlarc should be empty
9006 wlarc='$wl'
9007
9008 # Set some defaults for GNU ld with shared library support. These
9009 # are reset later if shared libraries are not supported. Putting them
9010 # here allows them to be overridden if necessary.
9011 runpath_var=LD_RUN_PATH
9012 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9013 export_dynamic_flag_spec='$wl--export-dynamic'
9014 # ancient GNU ld didn't support --whole-archive et. al.
9015 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9016 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9017 else
9018 whole_archive_flag_spec=
9019 fi
9020 supports_anon_versioning=no
9021 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9022 *GNU\ gold*) supports_anon_versioning=yes ;;
9023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9026 *\ 2.11.*) ;; # other 2.11 versions
9027 *) supports_anon_versioning=yes ;;
9028 esac
9029
9030 # See if GNU ld supports shared libraries.
9031 case $host_os in
9032 aix[3-9]*)
9033 # On AIX/PPC, the GNU linker is very broken
9034 if test ia64 != "$host_cpu"; then
9035 ld_shlibs=no
9036 cat <<_LT_EOF 1>&2
9037
9038 *** Warning: the GNU linker, at least up to release 2.19, is reported
9039 *** to be unable to reliably create shared libraries on AIX.
9040 *** Therefore, libtool is disabling shared libraries support. If you
9041 *** really care for shared libraries, you may want to install binutils
9042 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9043 *** You will then need to restart the configuration process.
9044
9045 _LT_EOF
9046 fi
9047 ;;
9048
9049 amigaos*)
9050 case $host_cpu in
9051 powerpc)
9052 # see comment about AmigaOS4 .so support
9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9054 archive_expsym_cmds=''
9055 ;;
9056 m68k)
9057 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)'
9058 hardcode_libdir_flag_spec='-L$libdir'
9059 hardcode_minus_L=yes
9060 ;;
9061 esac
9062 ;;
9063
9064 beos*)
9065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9066 allow_undefined_flag=unsupported
9067 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9068 # support --undefined. This deserves some investigation. FIXME
9069 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9070 else
9071 ld_shlibs=no
9072 fi
9073 ;;
9074
9075 cygwin* | mingw* | pw32* | cegcc*)
9076 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9077 # as there is no search path for DLLs.
9078 hardcode_libdir_flag_spec='-L$libdir'
9079 export_dynamic_flag_spec='$wl--export-all-symbols'
9080 allow_undefined_flag=unsupported
9081 always_export_symbols=no
9082 enable_shared_with_static_runtimes=yes
9083 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'
9084 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9085
9086 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9088 # If the export-symbols file already is a .def file, use it as
9089 # is; otherwise, prepend EXPORTS...
9090 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9091 cp $export_symbols $output_objdir/$soname.def;
9092 else
9093 echo EXPORTS > $output_objdir/$soname.def;
9094 cat $export_symbols >> $output_objdir/$soname.def;
9095 fi~
9096 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9097 else
9098 ld_shlibs=no
9099 fi
9100 ;;
9101
9102 haiku*)
9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9104 link_all_deplibs=yes
9105 ;;
9106
9107 os2*)
9108 hardcode_libdir_flag_spec='-L$libdir'
9109 hardcode_minus_L=yes
9110 allow_undefined_flag=unsupported
9111 shrext_cmds=.dll
9112 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9113 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9114 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9115 $ECHO EXPORTS >> $output_objdir/$libname.def~
9116 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9117 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9118 emximp -o $lib $output_objdir/$libname.def'
9119 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9120 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9121 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9122 $ECHO EXPORTS >> $output_objdir/$libname.def~
9123 prefix_cmds="$SED"~
9124 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9125 prefix_cmds="$prefix_cmds -e 1d";
9126 fi~
9127 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9128 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9129 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9130 emximp -o $lib $output_objdir/$libname.def'
9131 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9132 enable_shared_with_static_runtimes=yes
9133 ;;
9134
9135 interix[3-9]*)
9136 hardcode_direct=no
9137 hardcode_shlibpath_var=no
9138 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9139 export_dynamic_flag_spec='$wl-E'
9140 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9141 # Instead, shared libraries are loaded at an image base (0x10000000 by
9142 # default) and relocated if they conflict, which is a slow very memory
9143 # consuming and fragmenting process. To avoid this, we pick a random,
9144 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9145 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9147 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'
9148 ;;
9149
9150 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9151 tmp_diet=no
9152 if test linux-dietlibc = "$host_os"; then
9153 case $cc_basename in
9154 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9155 esac
9156 fi
9157 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9158 && test no = "$tmp_diet"
9159 then
9160 tmp_addflag=' $pic_flag'
9161 tmp_sharedflag='-shared'
9162 case $cc_basename,$host_cpu in
9163 pgcc*) # Portland Group C compiler
9164 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'
9165 tmp_addflag=' $pic_flag'
9166 ;;
9167 pgf77* | pgf90* | pgf95* | pgfortran*)
9168 # Portland Group f77 and f90 compilers
9169 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'
9170 tmp_addflag=' $pic_flag -Mnomain' ;;
9171 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9172 tmp_addflag=' -i_dynamic' ;;
9173 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9174 tmp_addflag=' -i_dynamic -nofor_main' ;;
9175 ifc* | ifort*) # Intel Fortran compiler
9176 tmp_addflag=' -nofor_main' ;;
9177 lf95*) # Lahey Fortran 8.1
9178 whole_archive_flag_spec=
9179 tmp_sharedflag='--shared' ;;
9180 nagfor*) # NAGFOR 5.3
9181 tmp_sharedflag='-Wl,-shared' ;;
9182 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9183 tmp_sharedflag='-qmkshrobj'
9184 tmp_addflag= ;;
9185 nvcc*) # Cuda Compiler Driver 2.2
9186 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'
9187 compiler_needs_object=yes
9188 ;;
9189 esac
9190 case `$CC -V 2>&1 | sed 5q` in
9191 *Sun\ C*) # Sun C 5.9
9192 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'
9193 compiler_needs_object=yes
9194 tmp_sharedflag='-G' ;;
9195 *Sun\ F*) # Sun Fortran 8.3
9196 tmp_sharedflag='-G' ;;
9197 esac
9198 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9199
9200 if test yes = "$supports_anon_versioning"; then
9201 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9203 echo "local: *; };" >> $output_objdir/$libname.ver~
9204 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9205 fi
9206
9207 case $cc_basename in
9208 tcc*)
9209 export_dynamic_flag_spec='-rdynamic'
9210 ;;
9211 xlf* | bgf* | bgxlf* | mpixlf*)
9212 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9213 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9214 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9215 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9216 if test yes = "$supports_anon_versioning"; then
9217 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9219 echo "local: *; };" >> $output_objdir/$libname.ver~
9220 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9221 fi
9222 ;;
9223 esac
9224 else
9225 ld_shlibs=no
9226 fi
9227 ;;
9228
9229 netbsd*)
9230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9231 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9232 wlarc=
9233 else
9234 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9235 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9236 fi
9237 ;;
9238
9239 solaris*)
9240 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9241 ld_shlibs=no
9242 cat <<_LT_EOF 1>&2
9243
9244 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9245 *** create shared libraries on Solaris systems. Therefore, libtool
9246 *** is disabling shared libraries support. We urge you to upgrade GNU
9247 *** binutils to release 2.9.1 or newer. Another option is to modify
9248 *** your PATH or compiler configuration so that the native linker is
9249 *** used, and then restart.
9250
9251 _LT_EOF
9252 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9253 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9254 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9255 else
9256 ld_shlibs=no
9257 fi
9258 ;;
9259
9260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9261 case `$LD -v 2>&1` in
9262 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9263 ld_shlibs=no
9264 cat <<_LT_EOF 1>&2
9265
9266 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9267 *** reliably create shared libraries on SCO systems. Therefore, libtool
9268 *** is disabling shared libraries support. We urge you to upgrade GNU
9269 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9270 *** your PATH or compiler configuration so that the native linker is
9271 *** used, and then restart.
9272
9273 _LT_EOF
9274 ;;
9275 *)
9276 # For security reasons, it is highly recommended that you always
9277 # use absolute paths for naming shared libraries, and exclude the
9278 # DT_RUNPATH tag from executables and libraries. But doing so
9279 # requires that you compile everything twice, which is a pain.
9280 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9281 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9284 else
9285 ld_shlibs=no
9286 fi
9287 ;;
9288 esac
9289 ;;
9290
9291 sunos4*)
9292 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9293 wlarc=
9294 hardcode_direct=yes
9295 hardcode_shlibpath_var=no
9296 ;;
9297
9298 *)
9299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9300 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9301 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9302 else
9303 ld_shlibs=no
9304 fi
9305 ;;
9306 esac
9307
9308 if test no = "$ld_shlibs"; then
9309 runpath_var=
9310 hardcode_libdir_flag_spec=
9311 export_dynamic_flag_spec=
9312 whole_archive_flag_spec=
9313 fi
9314 else
9315 # PORTME fill in a description of your system's linker (not GNU ld)
9316 case $host_os in
9317 aix3*)
9318 allow_undefined_flag=unsupported
9319 always_export_symbols=yes
9320 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'
9321 # Note: this linker hardcodes the directories in LIBPATH if there
9322 # are no directories specified by -L.
9323 hardcode_minus_L=yes
9324 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9325 # Neither direct hardcoding nor static linking is supported with a
9326 # broken collect2.
9327 hardcode_direct=unsupported
9328 fi
9329 ;;
9330
9331 aix[4-9]*)
9332 if test ia64 = "$host_cpu"; then
9333 # On IA64, the linker does run time linking by default, so we don't
9334 # have to do anything special.
9335 aix_use_runtimelinking=no
9336 exp_sym_flag='-Bexport'
9337 no_entry_flag=
9338 else
9339 # If we're using GNU nm, then we don't want the "-C" option.
9340 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9341 # Without the "-l" option, or with the "-B" option, AIX nm treats
9342 # weak defined symbols like other global defined symbols, whereas
9343 # GNU nm marks them as "W".
9344 # While the 'weak' keyword is ignored in the Export File, we need
9345 # it in the Import File for the 'aix-soname' feature, so we have
9346 # to replace the "-B" option with "-P" for AIX nm.
9347 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9348 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'
9349 else
9350 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9351 fi
9352 aix_use_runtimelinking=no
9353
9354 # Test if we are trying to use run time linking or normal
9355 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9356 # have runtime linking enabled, and use it for executables.
9357 # For shared libraries, we enable/disable runtime linking
9358 # depending on the kind of the shared library created -
9359 # when "with_aix_soname,aix_use_runtimelinking" is:
9360 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9361 # "aix,yes" lib.so shared, rtl:yes, for executables
9362 # lib.a static archive
9363 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9364 # lib.a(lib.so.V) shared, rtl:no, for executables
9365 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9366 # lib.a(lib.so.V) shared, rtl:no
9367 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9368 # lib.a static archive
9369 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9370 for ld_flag in $LDFLAGS; do
9371 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9372 aix_use_runtimelinking=yes
9373 break
9374 fi
9375 done
9376 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9377 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9378 # so we don't have lib.a shared libs to link our executables.
9379 # We have to force runtime linking in this case.
9380 aix_use_runtimelinking=yes
9381 LDFLAGS="$LDFLAGS -Wl,-brtl"
9382 fi
9383 ;;
9384 esac
9385
9386 exp_sym_flag='-bexport'
9387 no_entry_flag='-bnoentry'
9388 fi
9389
9390 # When large executables or shared objects are built, AIX ld can
9391 # have problems creating the table of contents. If linking a library
9392 # or program results in "error TOC overflow" add -mminimal-toc to
9393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9395
9396 archive_cmds=''
9397 hardcode_direct=yes
9398 hardcode_direct_absolute=yes
9399 hardcode_libdir_separator=':'
9400 link_all_deplibs=yes
9401 file_list_spec='$wl-f,'
9402 case $with_aix_soname,$aix_use_runtimelinking in
9403 aix,*) ;; # traditional, no import file
9404 svr4,* | *,yes) # use import file
9405 # The Import File defines what to hardcode.
9406 hardcode_direct=no
9407 hardcode_direct_absolute=no
9408 ;;
9409 esac
9410
9411 if test yes = "$GCC"; then
9412 case $host_os in aix4.[012]|aix4.[012].*)
9413 # We only want to do this on AIX 4.2 and lower, the check
9414 # below for broken collect2 doesn't work under 4.3+
9415 collect2name=`$CC -print-prog-name=collect2`
9416 if test -f "$collect2name" &&
9417 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9418 then
9419 # We have reworked collect2
9420 :
9421 else
9422 # We have old collect2
9423 hardcode_direct=unsupported
9424 # It fails to find uninstalled libraries when the uninstalled
9425 # path is not listed in the libpath. Setting hardcode_minus_L
9426 # to unsupported forces relinking
9427 hardcode_minus_L=yes
9428 hardcode_libdir_flag_spec='-L$libdir'
9429 hardcode_libdir_separator=
9430 fi
9431 ;;
9432 esac
9433 shared_flag='-shared'
9434 if test yes = "$aix_use_runtimelinking"; then
9435 shared_flag="$shared_flag "'$wl-G'
9436 fi
9437 # Need to ensure runtime linking is disabled for the traditional
9438 # shared library, or the linker may eventually find shared libraries
9439 # /with/ Import File - we do not want to mix them.
9440 shared_flag_aix='-shared'
9441 shared_flag_svr4='-shared $wl-G'
9442 else
9443 # not using gcc
9444 if test ia64 = "$host_cpu"; then
9445 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9446 # chokes on -Wl,-G. The following line is correct:
9447 shared_flag='-G'
9448 else
9449 if test yes = "$aix_use_runtimelinking"; then
9450 shared_flag='$wl-G'
9451 else
9452 shared_flag='$wl-bM:SRE'
9453 fi
9454 shared_flag_aix='$wl-bM:SRE'
9455 shared_flag_svr4='$wl-G'
9456 fi
9457 fi
9458
9459 export_dynamic_flag_spec='$wl-bexpall'
9460 # It seems that -bexpall does not export symbols beginning with
9461 # underscore (_), so it is better to generate a list of symbols to export.
9462 always_export_symbols=yes
9463 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9464 # Warning - without using the other runtime loading flags (-brtl),
9465 # -berok will link without error, but may produce a broken library.
9466 allow_undefined_flag='-berok'
9467 # Determine the default libpath from the value encoded in an
9468 # empty executable.
9469 if test set = "${lt_cv_aix_libpath+set}"; then
9470 aix_libpath=$lt_cv_aix_libpath
9471 else
9472 if ${lt_cv_aix_libpath_+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477
9478 int
9479 main ()
9480 {
9481
9482 ;
9483 return 0;
9484 }
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9487
9488 lt_aix_libpath_sed='
9489 /Import File Strings/,/^$/ {
9490 /^0/ {
9491 s/^0 *\([^ ]*\) *$/\1/
9492 p
9493 }
9494 }'
9495 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9496 # Check for a 64-bit object if we didn't find anything.
9497 if test -z "$lt_cv_aix_libpath_"; then
9498 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9499 fi
9500 fi
9501 rm -f core conftest.err conftest.$ac_objext \
9502 conftest$ac_exeext conftest.$ac_ext
9503 if test -z "$lt_cv_aix_libpath_"; then
9504 lt_cv_aix_libpath_=/usr/lib:/lib
9505 fi
9506
9507 fi
9508
9509 aix_libpath=$lt_cv_aix_libpath_
9510 fi
9511
9512 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9513 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
9514 else
9515 if test ia64 = "$host_cpu"; then
9516 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9517 allow_undefined_flag="-z nodefs"
9518 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"
9519 else
9520 # Determine the default libpath from the value encoded in an
9521 # empty executable.
9522 if test set = "${lt_cv_aix_libpath+set}"; then
9523 aix_libpath=$lt_cv_aix_libpath
9524 else
9525 if ${lt_cv_aix_libpath_+:} false; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530
9531 int
9532 main ()
9533 {
9534
9535 ;
9536 return 0;
9537 }
9538 _ACEOF
9539 if ac_fn_c_try_link "$LINENO"; then :
9540
9541 lt_aix_libpath_sed='
9542 /Import File Strings/,/^$/ {
9543 /^0/ {
9544 s/^0 *\([^ ]*\) *$/\1/
9545 p
9546 }
9547 }'
9548 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9549 # Check for a 64-bit object if we didn't find anything.
9550 if test -z "$lt_cv_aix_libpath_"; then
9551 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9552 fi
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556 if test -z "$lt_cv_aix_libpath_"; then
9557 lt_cv_aix_libpath_=/usr/lib:/lib
9558 fi
9559
9560 fi
9561
9562 aix_libpath=$lt_cv_aix_libpath_
9563 fi
9564
9565 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9566 # Warning - without using the other run time loading flags,
9567 # -berok will link without error, but may produce a broken library.
9568 no_undefined_flag=' $wl-bernotok'
9569 allow_undefined_flag=' $wl-berok'
9570 if test yes = "$with_gnu_ld"; then
9571 # We only use this code for GNU lds that support --whole-archive.
9572 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9573 else
9574 # Exported symbols can be pulled into shared objects from archives
9575 whole_archive_flag_spec='$convenience'
9576 fi
9577 archive_cmds_need_lc=yes
9578 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9579 # -brtl affects multiple linker settings, -berok does not and is overridden later
9580 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9581 if test svr4 != "$with_aix_soname"; then
9582 # This is similar to how AIX traditionally builds its shared libraries.
9583 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'
9584 fi
9585 if test aix != "$with_aix_soname"; then
9586 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'
9587 else
9588 # used by -dlpreopen to get the symbols
9589 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9590 fi
9591 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9592 fi
9593 fi
9594 ;;
9595
9596 amigaos*)
9597 case $host_cpu in
9598 powerpc)
9599 # see comment about AmigaOS4 .so support
9600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9601 archive_expsym_cmds=''
9602 ;;
9603 m68k)
9604 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)'
9605 hardcode_libdir_flag_spec='-L$libdir'
9606 hardcode_minus_L=yes
9607 ;;
9608 esac
9609 ;;
9610
9611 bsdi[45]*)
9612 export_dynamic_flag_spec=-rdynamic
9613 ;;
9614
9615 cygwin* | mingw* | pw32* | cegcc*)
9616 # When not using gcc, we currently assume that we are using
9617 # Microsoft Visual C++.
9618 # hardcode_libdir_flag_spec is actually meaningless, as there is
9619 # no search path for DLLs.
9620 case $cc_basename in
9621 cl*)
9622 # Native MSVC
9623 hardcode_libdir_flag_spec=' '
9624 allow_undefined_flag=unsupported
9625 always_export_symbols=yes
9626 file_list_spec='@'
9627 # Tell ltmain to make .lib files, not .a files.
9628 libext=lib
9629 # Tell ltmain to make .dll files, not .so files.
9630 shrext_cmds=.dll
9631 # FIXME: Setting linknames here is a bad hack.
9632 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9633 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9634 cp "$export_symbols" "$output_objdir/$soname.def";
9635 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9636 else
9637 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9638 fi~
9639 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9640 linknames='
9641 # The linker will not automatically build a static lib if we build a DLL.
9642 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9643 enable_shared_with_static_runtimes=yes
9644 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9646 # Don't use ranlib
9647 old_postinstall_cmds='chmod 644 $oldlib'
9648 postlink_cmds='lt_outputfile="@OUTPUT@"~
9649 lt_tool_outputfile="@TOOL_OUTPUT@"~
9650 case $lt_outputfile in
9651 *.exe|*.EXE) ;;
9652 *)
9653 lt_outputfile=$lt_outputfile.exe
9654 lt_tool_outputfile=$lt_tool_outputfile.exe
9655 ;;
9656 esac~
9657 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9658 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9659 $RM "$lt_outputfile.manifest";
9660 fi'
9661 ;;
9662 *)
9663 # Assume MSVC wrapper
9664 hardcode_libdir_flag_spec=' '
9665 allow_undefined_flag=unsupported
9666 # Tell ltmain to make .lib files, not .a files.
9667 libext=lib
9668 # Tell ltmain to make .dll files, not .so files.
9669 shrext_cmds=.dll
9670 # FIXME: Setting linknames here is a bad hack.
9671 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9672 # The linker will automatically build a .lib file if we build a DLL.
9673 old_archive_from_new_cmds='true'
9674 # FIXME: Should let the user specify the lib program.
9675 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9676 enable_shared_with_static_runtimes=yes
9677 ;;
9678 esac
9679 ;;
9680
9681 darwin* | rhapsody*)
9682
9683
9684 archive_cmds_need_lc=no
9685 hardcode_direct=no
9686 hardcode_automatic=yes
9687 hardcode_shlibpath_var=unsupported
9688 if test yes = "$lt_cv_ld_force_load"; then
9689 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\"`'
9690
9691 else
9692 whole_archive_flag_spec=''
9693 fi
9694 link_all_deplibs=yes
9695 allow_undefined_flag=$_lt_dar_allow_undefined
9696 case $cc_basename in
9697 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9698 *) _lt_dar_can_shared=$GCC ;;
9699 esac
9700 if test yes = "$_lt_dar_can_shared"; then
9701 output_verbose_link_cmd=func_echo_all
9702 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9703 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9704 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"
9705 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"
9706
9707 else
9708 ld_shlibs=no
9709 fi
9710
9711 ;;
9712
9713 dgux*)
9714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_libdir_flag_spec='-L$libdir'
9716 hardcode_shlibpath_var=no
9717 ;;
9718
9719 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9720 # support. Future versions do this automatically, but an explicit c++rt0.o
9721 # does not break anything, and helps significantly (at the cost of a little
9722 # extra space).
9723 freebsd2.2*)
9724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9725 hardcode_libdir_flag_spec='-R$libdir'
9726 hardcode_direct=yes
9727 hardcode_shlibpath_var=no
9728 ;;
9729
9730 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9731 freebsd2.*)
9732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_direct=yes
9734 hardcode_minus_L=yes
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9739 freebsd* | dragonfly*)
9740 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9741 hardcode_libdir_flag_spec='-R$libdir'
9742 hardcode_direct=yes
9743 hardcode_shlibpath_var=no
9744 ;;
9745
9746 hpux9*)
9747 if test yes = "$GCC"; then
9748 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'
9749 else
9750 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'
9751 fi
9752 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9753 hardcode_libdir_separator=:
9754 hardcode_direct=yes
9755
9756 # hardcode_minus_L: Not really in the search PATH,
9757 # but as the default location of the library.
9758 hardcode_minus_L=yes
9759 export_dynamic_flag_spec='$wl-E'
9760 ;;
9761
9762 hpux10*)
9763 if test yes,no = "$GCC,$with_gnu_ld"; then
9764 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9765 else
9766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9767 fi
9768 if test no = "$with_gnu_ld"; then
9769 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9770 hardcode_libdir_separator=:
9771 hardcode_direct=yes
9772 hardcode_direct_absolute=yes
9773 export_dynamic_flag_spec='$wl-E'
9774 # hardcode_minus_L: Not really in the search PATH,
9775 # but as the default location of the library.
9776 hardcode_minus_L=yes
9777 fi
9778 ;;
9779
9780 hpux11*)
9781 if test yes,no = "$GCC,$with_gnu_ld"; then
9782 case $host_cpu in
9783 hppa*64*)
9784 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 ;;
9786 ia64*)
9787 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9788 ;;
9789 *)
9790 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9791 ;;
9792 esac
9793 else
9794 case $host_cpu in
9795 hppa*64*)
9796 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 ;;
9798 ia64*)
9799 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9800 ;;
9801 *)
9802
9803 # Older versions of the 11.00 compiler do not understand -b yet
9804 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9806 $as_echo_n "checking if $CC understands -b... " >&6; }
9807 if ${lt_cv_prog_compiler__b+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 lt_cv_prog_compiler__b=no
9811 save_LDFLAGS=$LDFLAGS
9812 LDFLAGS="$LDFLAGS -b"
9813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9815 # The linker can only warn and ignore the option if not recognized
9816 # So say no if there are warnings
9817 if test -s conftest.err; then
9818 # Append any errors to the config.log.
9819 cat conftest.err 1>&5
9820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9822 if diff conftest.exp conftest.er2 >/dev/null; then
9823 lt_cv_prog_compiler__b=yes
9824 fi
9825 else
9826 lt_cv_prog_compiler__b=yes
9827 fi
9828 fi
9829 $RM -r conftest*
9830 LDFLAGS=$save_LDFLAGS
9831
9832 fi
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9834 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9835
9836 if test yes = "$lt_cv_prog_compiler__b"; then
9837 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9838 else
9839 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9840 fi
9841
9842 ;;
9843 esac
9844 fi
9845 if test no = "$with_gnu_ld"; then
9846 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9847 hardcode_libdir_separator=:
9848
9849 case $host_cpu in
9850 hppa*64*|ia64*)
9851 hardcode_direct=no
9852 hardcode_shlibpath_var=no
9853 ;;
9854 *)
9855 hardcode_direct=yes
9856 hardcode_direct_absolute=yes
9857 export_dynamic_flag_spec='$wl-E'
9858
9859 # hardcode_minus_L: Not really in the search PATH,
9860 # but as the default location of the library.
9861 hardcode_minus_L=yes
9862 ;;
9863 esac
9864 fi
9865 ;;
9866
9867 irix5* | irix6* | nonstopux*)
9868 if test yes = "$GCC"; then
9869 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'
9870 # Try to use the -exported_symbol ld option, if it does not
9871 # work, assume that -exports_file does not work either and
9872 # implicitly export all symbols.
9873 # This should be the same for all languages, so no per-tag cache variable.
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9875 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9876 if ${lt_cv_irix_exported_symbol+:} false; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879 save_LDFLAGS=$LDFLAGS
9880 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883 int foo (void) { return 0; }
9884 _ACEOF
9885 if ac_fn_c_try_link "$LINENO"; then :
9886 lt_cv_irix_exported_symbol=yes
9887 else
9888 lt_cv_irix_exported_symbol=no
9889 fi
9890 rm -f core conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9892 LDFLAGS=$save_LDFLAGS
9893 fi
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9895 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9896 if test yes = "$lt_cv_irix_exported_symbol"; then
9897 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'
9898 fi
9899 else
9900 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'
9901 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'
9902 fi
9903 archive_cmds_need_lc='no'
9904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9905 hardcode_libdir_separator=:
9906 inherit_rpath=yes
9907 link_all_deplibs=yes
9908 ;;
9909
9910 linux*)
9911 case $cc_basename in
9912 tcc*)
9913 # Fabrice Bellard et al's Tiny C Compiler
9914 ld_shlibs=yes
9915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9916 ;;
9917 esac
9918 ;;
9919
9920 netbsd*)
9921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9923 else
9924 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9925 fi
9926 hardcode_libdir_flag_spec='-R$libdir'
9927 hardcode_direct=yes
9928 hardcode_shlibpath_var=no
9929 ;;
9930
9931 newsos6)
9932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9933 hardcode_direct=yes
9934 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9935 hardcode_libdir_separator=:
9936 hardcode_shlibpath_var=no
9937 ;;
9938
9939 *nto* | *qnx*)
9940 ;;
9941
9942 openbsd* | bitrig*)
9943 if test -f /usr/libexec/ld.so; then
9944 hardcode_direct=yes
9945 hardcode_shlibpath_var=no
9946 hardcode_direct_absolute=yes
9947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9948 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9949 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9950 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9951 export_dynamic_flag_spec='$wl-E'
9952 else
9953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9954 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9955 fi
9956 else
9957 ld_shlibs=no
9958 fi
9959 ;;
9960
9961 os2*)
9962 hardcode_libdir_flag_spec='-L$libdir'
9963 hardcode_minus_L=yes
9964 allow_undefined_flag=unsupported
9965 shrext_cmds=.dll
9966 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9967 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9968 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9969 $ECHO EXPORTS >> $output_objdir/$libname.def~
9970 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9971 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9972 emximp -o $lib $output_objdir/$libname.def'
9973 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9974 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9975 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9976 $ECHO EXPORTS >> $output_objdir/$libname.def~
9977 prefix_cmds="$SED"~
9978 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9979 prefix_cmds="$prefix_cmds -e 1d";
9980 fi~
9981 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9982 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9983 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9984 emximp -o $lib $output_objdir/$libname.def'
9985 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9986 enable_shared_with_static_runtimes=yes
9987 ;;
9988
9989 osf3*)
9990 if test yes = "$GCC"; then
9991 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9992 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'
9993 else
9994 allow_undefined_flag=' -expect_unresolved \*'
9995 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'
9996 fi
9997 archive_cmds_need_lc='no'
9998 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9999 hardcode_libdir_separator=:
10000 ;;
10001
10002 osf4* | osf5*) # as osf3* with the addition of -msym flag
10003 if test yes = "$GCC"; then
10004 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10005 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'
10006 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10007 else
10008 allow_undefined_flag=' -expect_unresolved \*'
10009 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'
10010 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~
10011 $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'
10012
10013 # Both c and cxx compiler support -rpath directly
10014 hardcode_libdir_flag_spec='-rpath $libdir'
10015 fi
10016 archive_cmds_need_lc='no'
10017 hardcode_libdir_separator=:
10018 ;;
10019
10020 solaris*)
10021 no_undefined_flag=' -z defs'
10022 if test yes = "$GCC"; then
10023 wlarc='$wl'
10024 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10026 $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'
10027 else
10028 case `$CC -V 2>&1` in
10029 *"Compilers 5.0"*)
10030 wlarc=''
10031 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10033 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10034 ;;
10035 *)
10036 wlarc='$wl'
10037 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10039 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10040 ;;
10041 esac
10042 fi
10043 hardcode_libdir_flag_spec='-R$libdir'
10044 hardcode_shlibpath_var=no
10045 case $host_os in
10046 solaris2.[0-5] | solaris2.[0-5].*) ;;
10047 *)
10048 # The compiler driver will combine and reorder linker options,
10049 # but understands '-z linker_flag'. GCC discards it without '$wl',
10050 # but is careful enough not to reorder.
10051 # Supported since Solaris 2.6 (maybe 2.5.1?)
10052 if test yes = "$GCC"; then
10053 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10054 else
10055 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10056 fi
10057 ;;
10058 esac
10059 link_all_deplibs=yes
10060 ;;
10061
10062 sunos4*)
10063 if test sequent = "$host_vendor"; then
10064 # Use $CC to link under sequent, because it throws in some extra .o
10065 # files that make .init and .fini sections work.
10066 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10067 else
10068 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10069 fi
10070 hardcode_libdir_flag_spec='-L$libdir'
10071 hardcode_direct=yes
10072 hardcode_minus_L=yes
10073 hardcode_shlibpath_var=no
10074 ;;
10075
10076 sysv4)
10077 case $host_vendor in
10078 sni)
10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_direct=yes # is this really true???
10081 ;;
10082 siemens)
10083 ## LD is ld it makes a PLAMLIB
10084 ## CC just makes a GrossModule.
10085 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10086 reload_cmds='$CC -r -o $output$reload_objs'
10087 hardcode_direct=no
10088 ;;
10089 motorola)
10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10092 ;;
10093 esac
10094 runpath_var='LD_RUN_PATH'
10095 hardcode_shlibpath_var=no
10096 ;;
10097
10098 sysv4.3*)
10099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10100 hardcode_shlibpath_var=no
10101 export_dynamic_flag_spec='-Bexport'
10102 ;;
10103
10104 sysv4*MP*)
10105 if test -d /usr/nec; then
10106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107 hardcode_shlibpath_var=no
10108 runpath_var=LD_RUN_PATH
10109 hardcode_runpath_var=yes
10110 ld_shlibs=yes
10111 fi
10112 ;;
10113
10114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10115 no_undefined_flag='$wl-z,text'
10116 archive_cmds_need_lc=no
10117 hardcode_shlibpath_var=no
10118 runpath_var='LD_RUN_PATH'
10119
10120 if test yes = "$GCC"; then
10121 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 else
10124 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 fi
10127 ;;
10128
10129 sysv5* | sco3.2v5* | sco5v6*)
10130 # Note: We CANNOT use -z defs as we might desire, because we do not
10131 # link with -lc, and that would cause any symbols used from libc to
10132 # always be unresolved, which means just about no library would
10133 # ever link correctly. If we're not using GNU ld we use -z text
10134 # though, which does catch some bad symbols but isn't as heavy-handed
10135 # as -z defs.
10136 no_undefined_flag='$wl-z,text'
10137 allow_undefined_flag='$wl-z,nodefs'
10138 archive_cmds_need_lc=no
10139 hardcode_shlibpath_var=no
10140 hardcode_libdir_flag_spec='$wl-R,$libdir'
10141 hardcode_libdir_separator=':'
10142 link_all_deplibs=yes
10143 export_dynamic_flag_spec='$wl-Bexport'
10144 runpath_var='LD_RUN_PATH'
10145
10146 if test yes = "$GCC"; then
10147 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 else
10150 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 fi
10153 ;;
10154
10155 uts4*)
10156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_libdir_flag_spec='-L$libdir'
10158 hardcode_shlibpath_var=no
10159 ;;
10160
10161 *)
10162 ld_shlibs=no
10163 ;;
10164 esac
10165
10166 if test sni = "$host_vendor"; then
10167 case $host in
10168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10169 export_dynamic_flag_spec='$wl-Blargedynsym'
10170 ;;
10171 esac
10172 fi
10173 fi
10174
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10176 $as_echo "$ld_shlibs" >&6; }
10177 test no = "$ld_shlibs" && can_build_shared=no
10178
10179 with_gnu_ld=$with_gnu_ld
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195 #
10196 # Do we need to explicitly link libc?
10197 #
10198 case "x$archive_cmds_need_lc" in
10199 x|xyes)
10200 # Assume -lc should be added
10201 archive_cmds_need_lc=yes
10202
10203 if test yes,yes = "$GCC,$enable_shared"; then
10204 case $archive_cmds in
10205 *'~'*)
10206 # FIXME: we may have to deal with multi-command sequences.
10207 ;;
10208 '$CC '*)
10209 # Test whether the compiler implicitly links with -lc since on some
10210 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10211 # to ld, don't add -lc before -lgcc.
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10213 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10214 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 $RM conftest*
10218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10219
10220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10221 (eval $ac_compile) 2>&5
10222 ac_status=$?
10223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10224 test $ac_status = 0; } 2>conftest.err; then
10225 soname=conftest
10226 lib=conftest
10227 libobjs=conftest.$ac_objext
10228 deplibs=
10229 wl=$lt_prog_compiler_wl
10230 pic_flag=$lt_prog_compiler_pic
10231 compiler_flags=-v
10232 linker_flags=-v
10233 verstring=
10234 output_objdir=.
10235 libname=conftest
10236 lt_save_allow_undefined_flag=$allow_undefined_flag
10237 allow_undefined_flag=
10238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10239 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10240 ac_status=$?
10241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10242 test $ac_status = 0; }
10243 then
10244 lt_cv_archive_cmds_need_lc=no
10245 else
10246 lt_cv_archive_cmds_need_lc=yes
10247 fi
10248 allow_undefined_flag=$lt_save_allow_undefined_flag
10249 else
10250 cat conftest.err 1>&5
10251 fi
10252 $RM conftest*
10253
10254 fi
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10256 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10257 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10258 ;;
10259 esac
10260 fi
10261 ;;
10262 esac
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10416 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10417
10418 if test yes = "$GCC"; then
10419 case $host_os in
10420 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10421 *) lt_awk_arg='/^libraries:/' ;;
10422 esac
10423 case $host_os in
10424 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10425 *) lt_sed_strip_eq='s|=/|/|g' ;;
10426 esac
10427 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10428 case $lt_search_path_spec in
10429 *\;*)
10430 # if the path contains ";" then we assume it to be the separator
10431 # otherwise default to the standard path separator (i.e. ":") - it is
10432 # assumed that no part of a normal pathname contains ";" but that should
10433 # okay in the real world where ";" in dirpaths is itself problematic.
10434 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10435 ;;
10436 *)
10437 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10438 ;;
10439 esac
10440 # Ok, now we have the path, separated by spaces, we can step through it
10441 # and add multilib dir if necessary...
10442 lt_tmp_lt_search_path_spec=
10443 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10444 # ...but if some path component already ends with the multilib dir we assume
10445 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10446 case "$lt_multi_os_dir; $lt_search_path_spec " in
10447 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10448 lt_multi_os_dir=
10449 ;;
10450 esac
10451 for lt_sys_path in $lt_search_path_spec; do
10452 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10453 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10454 elif test -n "$lt_multi_os_dir"; then
10455 test -d "$lt_sys_path" && \
10456 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10457 fi
10458 done
10459 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10460 BEGIN {RS = " "; FS = "/|\n";} {
10461 lt_foo = "";
10462 lt_count = 0;
10463 for (lt_i = NF; lt_i > 0; lt_i--) {
10464 if ($lt_i != "" && $lt_i != ".") {
10465 if ($lt_i == "..") {
10466 lt_count++;
10467 } else {
10468 if (lt_count == 0) {
10469 lt_foo = "/" $lt_i lt_foo;
10470 } else {
10471 lt_count--;
10472 }
10473 }
10474 }
10475 }
10476 if (lt_foo != "") { lt_freq[lt_foo]++; }
10477 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10478 }'`
10479 # AWK program above erroneously prepends '/' to C:/dos/paths
10480 # for these hosts.
10481 case $host_os in
10482 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10483 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10484 esac
10485 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10486 else
10487 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10488 fi
10489 library_names_spec=
10490 libname_spec='lib$name'
10491 soname_spec=
10492 shrext_cmds=.so
10493 postinstall_cmds=
10494 postuninstall_cmds=
10495 finish_cmds=
10496 finish_eval=
10497 shlibpath_var=
10498 shlibpath_overrides_runpath=unknown
10499 version_type=none
10500 dynamic_linker="$host_os ld.so"
10501 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10502 need_lib_prefix=unknown
10503 hardcode_into_libs=no
10504
10505 # when you set need_version to no, make sure it does not cause -set_version
10506 # flags to be left without arguments
10507 need_version=unknown
10508
10509
10510
10511 case $host_os in
10512 aix3*)
10513 version_type=linux # correct to gnu/linux during the next big refactor
10514 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10515 shlibpath_var=LIBPATH
10516
10517 # AIX 3 has no versioning support, so we append a major version to the name.
10518 soname_spec='$libname$release$shared_ext$major'
10519 ;;
10520
10521 aix[4-9]*)
10522 version_type=linux # correct to gnu/linux during the next big refactor
10523 need_lib_prefix=no
10524 need_version=no
10525 hardcode_into_libs=yes
10526 if test ia64 = "$host_cpu"; then
10527 # AIX 5 supports IA64
10528 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 else
10531 # With GCC up to 2.95.x, collect2 would create an import file
10532 # for dependence libraries. The import file would start with
10533 # the line '#! .'. This would cause the generated library to
10534 # depend on '.', always an invalid library. This was fixed in
10535 # development snapshots of GCC prior to 3.0.
10536 case $host_os in
10537 aix4 | aix4.[01] | aix4.[01].*)
10538 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10539 echo ' yes '
10540 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10541 :
10542 else
10543 can_build_shared=no
10544 fi
10545 ;;
10546 esac
10547 # Using Import Files as archive members, it is possible to support
10548 # filename-based versioning of shared library archives on AIX. While
10549 # this would work for both with and without runtime linking, it will
10550 # prevent static linking of such archives. So we do filename-based
10551 # shared library versioning with .so extension only, which is used
10552 # when both runtime linking and shared linking is enabled.
10553 # Unfortunately, runtime linking may impact performance, so we do
10554 # not want this to be the default eventually. Also, we use the
10555 # versioned .so libs for executables only if there is the -brtl
10556 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10557 # To allow for filename-based versioning support, we need to create
10558 # libNAME.so.V as an archive file, containing:
10559 # *) an Import File, referring to the versioned filename of the
10560 # archive as well as the shared archive member, telling the
10561 # bitwidth (32 or 64) of that shared object, and providing the
10562 # list of exported symbols of that shared object, eventually
10563 # decorated with the 'weak' keyword
10564 # *) the shared object with the F_LOADONLY flag set, to really avoid
10565 # it being seen by the linker.
10566 # At run time we better use the real file rather than another symlink,
10567 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10568
10569 case $with_aix_soname,$aix_use_runtimelinking in
10570 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10571 # soname into executable. Probably we can add versioning support to
10572 # collect2, so additional links can be useful in future.
10573 aix,yes) # traditional libtool
10574 dynamic_linker='AIX unversionable lib.so'
10575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10576 # instead of lib<name>.a to let people know that these are not
10577 # typical AIX shared libraries.
10578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10579 ;;
10580 aix,no) # traditional AIX only
10581 dynamic_linker='AIX lib.a(lib.so.V)'
10582 # We preserve .a as extension for shared libraries through AIX4.2
10583 # and later when we are not doing run time linking.
10584 library_names_spec='$libname$release.a $libname.a'
10585 soname_spec='$libname$release$shared_ext$major'
10586 ;;
10587 svr4,*) # full svr4 only
10588 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10589 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10590 # We do not specify a path in Import Files, so LIBPATH fires.
10591 shlibpath_overrides_runpath=yes
10592 ;;
10593 *,yes) # both, prefer svr4
10594 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10595 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10596 # unpreferred sharedlib libNAME.a needs extra handling
10597 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"'
10598 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"'
10599 # We do not specify a path in Import Files, so LIBPATH fires.
10600 shlibpath_overrides_runpath=yes
10601 ;;
10602 *,no) # both, prefer aix
10603 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10604 library_names_spec='$libname$release.a $libname.a'
10605 soname_spec='$libname$release$shared_ext$major'
10606 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10607 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)'
10608 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"'
10609 ;;
10610 esac
10611 shlibpath_var=LIBPATH
10612 fi
10613 ;;
10614
10615 amigaos*)
10616 case $host_cpu in
10617 powerpc)
10618 # Since July 2007 AmigaOS4 officially supports .so libraries.
10619 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10621 ;;
10622 m68k)
10623 library_names_spec='$libname.ixlibrary $libname.a'
10624 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10625 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'
10626 ;;
10627 esac
10628 ;;
10629
10630 beos*)
10631 library_names_spec='$libname$shared_ext'
10632 dynamic_linker="$host_os ld.so"
10633 shlibpath_var=LIBRARY_PATH
10634 ;;
10635
10636 bsdi[45]*)
10637 version_type=linux # correct to gnu/linux during the next big refactor
10638 need_version=no
10639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10640 soname_spec='$libname$release$shared_ext$major'
10641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10645 # the default ld.so.conf also contains /usr/contrib/lib and
10646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10647 # libtool to hard-code these into programs
10648 ;;
10649
10650 cygwin* | mingw* | pw32* | cegcc*)
10651 version_type=windows
10652 shrext_cmds=.dll
10653 need_version=no
10654 need_lib_prefix=no
10655
10656 case $GCC,$cc_basename in
10657 yes,*)
10658 # gcc
10659 library_names_spec='$libname.dll.a'
10660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10661 postinstall_cmds='base_file=`basename \$file`~
10662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10663 dldir=$destdir/`dirname \$dlpath`~
10664 test -d \$dldir || mkdir -p \$dldir~
10665 $install_prog $dir/$dlname \$dldir/$dlname~
10666 chmod a+x \$dldir/$dlname~
10667 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10668 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10669 fi'
10670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10671 dlpath=$dir/\$dldll~
10672 $RM \$dlpath'
10673 shlibpath_overrides_runpath=yes
10674
10675 case $host_os in
10676 cygwin*)
10677 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10678 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10679
10680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10681 ;;
10682 mingw* | cegcc*)
10683 # MinGW DLLs use traditional 'lib' prefix
10684 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10685 ;;
10686 pw32*)
10687 # pw32 DLLs use 'pw' prefix rather than 'lib'
10688 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10689 ;;
10690 esac
10691 dynamic_linker='Win32 ld.exe'
10692 ;;
10693
10694 *,cl*)
10695 # Native MSVC
10696 libname_spec='$name'
10697 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10698 library_names_spec='$libname.dll.lib'
10699
10700 case $build_os in
10701 mingw*)
10702 sys_lib_search_path_spec=
10703 lt_save_ifs=$IFS
10704 IFS=';'
10705 for lt_path in $LIB
10706 do
10707 IFS=$lt_save_ifs
10708 # Let DOS variable expansion print the short 8.3 style file name.
10709 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10710 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10711 done
10712 IFS=$lt_save_ifs
10713 # Convert to MSYS style.
10714 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10715 ;;
10716 cygwin*)
10717 # Convert to unix form, then to dos form, then back to unix form
10718 # but this time dos style (no spaces!) so that the unix form looks
10719 # like /cygdrive/c/PROGRA~1:/cygdr...
10720 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10721 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10722 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10723 ;;
10724 *)
10725 sys_lib_search_path_spec=$LIB
10726 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10727 # It is most probably a Windows format PATH.
10728 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10729 else
10730 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10731 fi
10732 # FIXME: find the short name or the path components, as spaces are
10733 # common. (e.g. "Program Files" -> "PROGRA~1")
10734 ;;
10735 esac
10736
10737 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10738 postinstall_cmds='base_file=`basename \$file`~
10739 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10740 dldir=$destdir/`dirname \$dlpath`~
10741 test -d \$dldir || mkdir -p \$dldir~
10742 $install_prog $dir/$dlname \$dldir/$dlname'
10743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10744 dlpath=$dir/\$dldll~
10745 $RM \$dlpath'
10746 shlibpath_overrides_runpath=yes
10747 dynamic_linker='Win32 link.exe'
10748 ;;
10749
10750 *)
10751 # Assume MSVC wrapper
10752 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10753 dynamic_linker='Win32 ld.exe'
10754 ;;
10755 esac
10756 # FIXME: first we should search . and the directory the executable is in
10757 shlibpath_var=PATH
10758 ;;
10759
10760 darwin* | rhapsody*)
10761 dynamic_linker="$host_os dyld"
10762 version_type=darwin
10763 need_lib_prefix=no
10764 need_version=no
10765 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10766 soname_spec='$libname$release$major$shared_ext'
10767 shlibpath_overrides_runpath=yes
10768 shlibpath_var=DYLD_LIBRARY_PATH
10769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10770
10771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10773 ;;
10774
10775 dgux*)
10776 version_type=linux # correct to gnu/linux during the next big refactor
10777 need_lib_prefix=no
10778 need_version=no
10779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10780 soname_spec='$libname$release$shared_ext$major'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 ;;
10783
10784 freebsd* | dragonfly*)
10785 # DragonFly does not have aout. When/if they implement a new
10786 # versioning mechanism, adjust this.
10787 if test -x /usr/bin/objformat; then
10788 objformat=`/usr/bin/objformat`
10789 else
10790 case $host_os in
10791 freebsd[23].*) objformat=aout ;;
10792 *) objformat=elf ;;
10793 esac
10794 fi
10795 version_type=freebsd-$objformat
10796 case $version_type in
10797 freebsd-elf*)
10798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10799 soname_spec='$libname$release$shared_ext$major'
10800 need_version=no
10801 need_lib_prefix=no
10802 ;;
10803 freebsd-*)
10804 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10805 need_version=yes
10806 ;;
10807 esac
10808 shlibpath_var=LD_LIBRARY_PATH
10809 case $host_os in
10810 freebsd2.*)
10811 shlibpath_overrides_runpath=yes
10812 ;;
10813 freebsd3.[01]* | freebsdelf3.[01]*)
10814 shlibpath_overrides_runpath=yes
10815 hardcode_into_libs=yes
10816 ;;
10817 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10818 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10819 shlibpath_overrides_runpath=no
10820 hardcode_into_libs=yes
10821 ;;
10822 *) # from 4.6 on, and DragonFly
10823 shlibpath_overrides_runpath=yes
10824 hardcode_into_libs=yes
10825 ;;
10826 esac
10827 ;;
10828
10829 haiku*)
10830 version_type=linux # correct to gnu/linux during the next big refactor
10831 need_lib_prefix=no
10832 need_version=no
10833 dynamic_linker="$host_os runtime_loader"
10834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10835 soname_spec='$libname$release$shared_ext$major'
10836 shlibpath_var=LIBRARY_PATH
10837 shlibpath_overrides_runpath=no
10838 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10839 hardcode_into_libs=yes
10840 ;;
10841
10842 hpux9* | hpux10* | hpux11*)
10843 # Give a soname corresponding to the major version so that dld.sl refuses to
10844 # link against other versions.
10845 version_type=sunos
10846 need_lib_prefix=no
10847 need_version=no
10848 case $host_cpu in
10849 ia64*)
10850 shrext_cmds='.so'
10851 hardcode_into_libs=yes
10852 dynamic_linker="$host_os dld.so"
10853 shlibpath_var=LD_LIBRARY_PATH
10854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10856 soname_spec='$libname$release$shared_ext$major'
10857 if test 32 = "$HPUX_IA64_MODE"; then
10858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10859 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10860 else
10861 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10862 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10863 fi
10864 ;;
10865 hppa*64*)
10866 shrext_cmds='.sl'
10867 hardcode_into_libs=yes
10868 dynamic_linker="$host_os dld.sl"
10869 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10872 soname_spec='$libname$release$shared_ext$major'
10873 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10875 ;;
10876 *)
10877 shrext_cmds='.sl'
10878 dynamic_linker="$host_os dld.sl"
10879 shlibpath_var=SHLIB_PATH
10880 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10882 soname_spec='$libname$release$shared_ext$major'
10883 ;;
10884 esac
10885 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10886 postinstall_cmds='chmod 555 $lib'
10887 # or fails outright, so override atomically:
10888 install_override_mode=555
10889 ;;
10890
10891 interix[3-9]*)
10892 version_type=linux # correct to gnu/linux during the next big refactor
10893 need_lib_prefix=no
10894 need_version=no
10895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10896 soname_spec='$libname$release$shared_ext$major'
10897 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 shlibpath_overrides_runpath=no
10900 hardcode_into_libs=yes
10901 ;;
10902
10903 irix5* | irix6* | nonstopux*)
10904 case $host_os in
10905 nonstopux*) version_type=nonstopux ;;
10906 *)
10907 if test yes = "$lt_cv_prog_gnu_ld"; then
10908 version_type=linux # correct to gnu/linux during the next big refactor
10909 else
10910 version_type=irix
10911 fi ;;
10912 esac
10913 need_lib_prefix=no
10914 need_version=no
10915 soname_spec='$libname$release$shared_ext$major'
10916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10917 case $host_os in
10918 irix5* | nonstopux*)
10919 libsuff= shlibsuff=
10920 ;;
10921 *)
10922 case $LD in # libtool.m4 will add one of these switches to LD
10923 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10924 libsuff= shlibsuff= libmagic=32-bit;;
10925 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10926 libsuff=32 shlibsuff=N32 libmagic=N32;;
10927 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10928 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10929 *) libsuff= shlibsuff= libmagic=never-match;;
10930 esac
10931 ;;
10932 esac
10933 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10934 shlibpath_overrides_runpath=no
10935 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10936 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10937 hardcode_into_libs=yes
10938 ;;
10939
10940 # No shared lib support for Linux oldld, aout, or coff.
10941 linux*oldld* | linux*aout* | linux*coff*)
10942 dynamic_linker=no
10943 ;;
10944
10945 linux*android*)
10946 version_type=none # Android doesn't support versioned libraries.
10947 need_lib_prefix=no
10948 need_version=no
10949 library_names_spec='$libname$release$shared_ext'
10950 soname_spec='$libname$release$shared_ext'
10951 finish_cmds=
10952 shlibpath_var=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath=yes
10954
10955 # This implies no fast_install, which is unacceptable.
10956 # Some rework will be needed to allow for fast_install
10957 # before this can be enabled.
10958 hardcode_into_libs=yes
10959
10960 dynamic_linker='Android linker'
10961 # Don't embed -rpath directories since the linker doesn't support them.
10962 hardcode_libdir_flag_spec='-L$libdir'
10963 ;;
10964
10965 # This must be glibc/ELF.
10966 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10967 version_type=linux # correct to gnu/linux during the next big refactor
10968 need_lib_prefix=no
10969 need_version=no
10970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10971 soname_spec='$libname$release$shared_ext$major'
10972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=no
10975
10976 # Some binutils ld are patched to set DT_RUNPATH
10977 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 lt_cv_shlibpath_overrides_runpath=no
10981 save_LDFLAGS=$LDFLAGS
10982 save_libdir=$libdir
10983 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10984 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987
10988 int
10989 main ()
10990 {
10991
10992 ;
10993 return 0;
10994 }
10995 _ACEOF
10996 if ac_fn_c_try_link "$LINENO"; then :
10997 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10998 lt_cv_shlibpath_overrides_runpath=yes
10999 fi
11000 fi
11001 rm -f core conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
11003 LDFLAGS=$save_LDFLAGS
11004 libdir=$save_libdir
11005
11006 fi
11007
11008 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11009
11010 # This implies no fast_install, which is unacceptable.
11011 # Some rework will be needed to allow for fast_install
11012 # before this can be enabled.
11013 hardcode_into_libs=yes
11014
11015 # Ideally, we could use ldconfig to report *all* directores which are
11016 # searched for libraries, however this is still not possible. Aside from not
11017 # being certain /sbin/ldconfig is available, command
11018 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11019 # even though it is searched at run-time. Try to do the best guess by
11020 # appending ld.so.conf contents (and includes) to the search path.
11021 if test -f /etc/ld.so.conf; then
11022 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' ' '`
11023 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11024 fi
11025
11026 # We used to test for /lib/ld.so.1 and disable shared libraries on
11027 # powerpc, because MkLinux only supported shared libraries with the
11028 # GNU dynamic linker. Since this was broken with cross compilers,
11029 # most powerpc-linux boxes support dynamic linking these days and
11030 # people can always --disable-shared, the test was removed, and we
11031 # assume the GNU/Linux dynamic linker is in use.
11032 dynamic_linker='GNU/Linux ld.so'
11033 ;;
11034
11035 netbsd*)
11036 version_type=sunos
11037 need_lib_prefix=no
11038 need_version=no
11039 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11042 dynamic_linker='NetBSD (a.out) ld.so'
11043 else
11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11045 soname_spec='$libname$release$shared_ext$major'
11046 dynamic_linker='NetBSD ld.elf_so'
11047 fi
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=yes
11050 hardcode_into_libs=yes
11051 ;;
11052
11053 newsos6)
11054 version_type=linux # correct to gnu/linux during the next big refactor
11055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=yes
11058 ;;
11059
11060 *nto* | *qnx*)
11061 version_type=qnx
11062 need_lib_prefix=no
11063 need_version=no
11064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11065 soname_spec='$libname$release$shared_ext$major'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=no
11068 hardcode_into_libs=yes
11069 dynamic_linker='ldqnx.so'
11070 ;;
11071
11072 openbsd* | bitrig*)
11073 version_type=sunos
11074 sys_lib_dlsearch_path_spec=/usr/lib
11075 need_lib_prefix=no
11076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11077 need_version=no
11078 else
11079 need_version=yes
11080 fi
11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 shlibpath_overrides_runpath=yes
11085 ;;
11086
11087 os2*)
11088 libname_spec='$name'
11089 version_type=windows
11090 shrext_cmds=.dll
11091 need_version=no
11092 need_lib_prefix=no
11093 # OS/2 can only load a DLL with a base name of 8 characters or less.
11094 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11095 v=$($ECHO $release$versuffix | tr -d .-);
11096 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11097 $ECHO $n$v`$shared_ext'
11098 library_names_spec='${libname}_dll.$libext'
11099 dynamic_linker='OS/2 ld.exe'
11100 shlibpath_var=BEGINLIBPATH
11101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11103 postinstall_cmds='base_file=`basename \$file`~
11104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11105 dldir=$destdir/`dirname \$dlpath`~
11106 test -d \$dldir || mkdir -p \$dldir~
11107 $install_prog $dir/$dlname \$dldir/$dlname~
11108 chmod a+x \$dldir/$dlname~
11109 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11110 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11111 fi'
11112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11113 dlpath=$dir/\$dldll~
11114 $RM \$dlpath'
11115 ;;
11116
11117 osf3* | osf4* | osf5*)
11118 version_type=osf
11119 need_lib_prefix=no
11120 need_version=no
11121 soname_spec='$libname$release$shared_ext$major'
11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11126 ;;
11127
11128 rdos*)
11129 dynamic_linker=no
11130 ;;
11131
11132 solaris*)
11133 version_type=linux # correct to gnu/linux during the next big refactor
11134 need_lib_prefix=no
11135 need_version=no
11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 soname_spec='$libname$release$shared_ext$major'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 shlibpath_overrides_runpath=yes
11140 hardcode_into_libs=yes
11141 # ldd complains unless libraries are executable
11142 postinstall_cmds='chmod +x $lib'
11143 ;;
11144
11145 sunos4*)
11146 version_type=sunos
11147 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 shlibpath_overrides_runpath=yes
11151 if test yes = "$with_gnu_ld"; then
11152 need_lib_prefix=no
11153 fi
11154 need_version=yes
11155 ;;
11156
11157 sysv4 | sysv4.3*)
11158 version_type=linux # correct to gnu/linux during the next big refactor
11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11160 soname_spec='$libname$release$shared_ext$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 case $host_vendor in
11163 sni)
11164 shlibpath_overrides_runpath=no
11165 need_lib_prefix=no
11166 runpath_var=LD_RUN_PATH
11167 ;;
11168 siemens)
11169 need_lib_prefix=no
11170 ;;
11171 motorola)
11172 need_lib_prefix=no
11173 need_version=no
11174 shlibpath_overrides_runpath=no
11175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11176 ;;
11177 esac
11178 ;;
11179
11180 sysv4*MP*)
11181 if test -d /usr/nec; then
11182 version_type=linux # correct to gnu/linux during the next big refactor
11183 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11184 soname_spec='$libname$shared_ext.$major'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 fi
11187 ;;
11188
11189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11190 version_type=sco
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11194 soname_spec='$libname$release$shared_ext$major'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11197 hardcode_into_libs=yes
11198 if test yes = "$with_gnu_ld"; then
11199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11200 else
11201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11202 case $host_os in
11203 sco3.2v5*)
11204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11205 ;;
11206 esac
11207 fi
11208 sys_lib_dlsearch_path_spec='/usr/lib'
11209 ;;
11210
11211 tpf*)
11212 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11213 version_type=linux # correct to gnu/linux during the next big refactor
11214 need_lib_prefix=no
11215 need_version=no
11216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 shlibpath_overrides_runpath=no
11219 hardcode_into_libs=yes
11220 ;;
11221
11222 uts4*)
11223 version_type=linux # correct to gnu/linux during the next big refactor
11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11225 soname_spec='$libname$release$shared_ext$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 ;;
11228
11229 *)
11230 dynamic_linker=no
11231 ;;
11232 esac
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11234 $as_echo "$dynamic_linker" >&6; }
11235 test no = "$dynamic_linker" && can_build_shared=no
11236
11237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11238 if test yes = "$GCC"; then
11239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11240 fi
11241
11242 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11243 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11244 fi
11245
11246 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11247 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11248 fi
11249
11250 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11251 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11252
11253 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11254 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11255
11256 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11257 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11356 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11357 hardcode_action=
11358 if test -n "$hardcode_libdir_flag_spec" ||
11359 test -n "$runpath_var" ||
11360 test yes = "$hardcode_automatic"; then
11361
11362 # We can hardcode non-existent directories.
11363 if test no != "$hardcode_direct" &&
11364 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11365 # have to relink, otherwise we might link with an installed library
11366 # when we should be linking with a yet-to-be-installed one
11367 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11368 test no != "$hardcode_minus_L"; then
11369 # Linking always hardcodes the temporary library directory.
11370 hardcode_action=relink
11371 else
11372 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11373 hardcode_action=immediate
11374 fi
11375 else
11376 # We cannot hardcode anything, or else we can only hardcode existing
11377 # directories.
11378 hardcode_action=unsupported
11379 fi
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11381 $as_echo "$hardcode_action" >&6; }
11382
11383 if test relink = "$hardcode_action" ||
11384 test yes = "$inherit_rpath"; then
11385 # Fast installation is not supported
11386 enable_fast_install=no
11387 elif test yes = "$shlibpath_overrides_runpath" ||
11388 test no = "$enable_shared"; then
11389 # Fast installation is not necessary
11390 enable_fast_install=needless
11391 fi
11392
11393
11394
11395
11396
11397
11398 if test yes != "$enable_dlopen"; then
11399 enable_dlopen=unknown
11400 enable_dlopen_self=unknown
11401 enable_dlopen_self_static=unknown
11402 else
11403 lt_cv_dlopen=no
11404 lt_cv_dlopen_libs=
11405
11406 case $host_os in
11407 beos*)
11408 lt_cv_dlopen=load_add_on
11409 lt_cv_dlopen_libs=
11410 lt_cv_dlopen_self=yes
11411 ;;
11412
11413 mingw* | pw32* | cegcc*)
11414 lt_cv_dlopen=LoadLibrary
11415 lt_cv_dlopen_libs=
11416 ;;
11417
11418 cygwin*)
11419 lt_cv_dlopen=dlopen
11420 lt_cv_dlopen_libs=
11421 ;;
11422
11423 darwin*)
11424 # if libdl is installed we need to link against it
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11426 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11427 if ${ac_cv_lib_dl_dlopen+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 ac_check_lib_save_LIBS=$LIBS
11431 LIBS="-ldl $LIBS"
11432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433 /* end confdefs.h. */
11434
11435 /* Override any GCC internal prototype to avoid an error.
11436 Use char because int might match the return type of a GCC
11437 builtin and then its argument prototype would still apply. */
11438 #ifdef __cplusplus
11439 extern "C"
11440 #endif
11441 char dlopen ();
11442 int
11443 main ()
11444 {
11445 return dlopen ();
11446 ;
11447 return 0;
11448 }
11449 _ACEOF
11450 if ac_fn_c_try_link "$LINENO"; then :
11451 ac_cv_lib_dl_dlopen=yes
11452 else
11453 ac_cv_lib_dl_dlopen=no
11454 fi
11455 rm -f core conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11457 LIBS=$ac_check_lib_save_LIBS
11458 fi
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11460 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11461 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11462 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11463 else
11464
11465 lt_cv_dlopen=dyld
11466 lt_cv_dlopen_libs=
11467 lt_cv_dlopen_self=yes
11468
11469 fi
11470
11471 ;;
11472
11473 tpf*)
11474 # Don't try to run any link tests for TPF. We know it's impossible
11475 # because TPF is a cross-compiler, and we know how we open DSOs.
11476 lt_cv_dlopen=dlopen
11477 lt_cv_dlopen_libs=
11478 lt_cv_dlopen_self=no
11479 ;;
11480
11481 *)
11482 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11483 if test "x$ac_cv_func_shl_load" = xyes; then :
11484 lt_cv_dlopen=shl_load
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11487 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11488 if ${ac_cv_lib_dld_shl_load+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 ac_check_lib_save_LIBS=$LIBS
11492 LIBS="-ldld $LIBS"
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11495
11496 /* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
11499 #ifdef __cplusplus
11500 extern "C"
11501 #endif
11502 char shl_load ();
11503 int
11504 main ()
11505 {
11506 return shl_load ();
11507 ;
11508 return 0;
11509 }
11510 _ACEOF
11511 if ac_fn_c_try_link "$LINENO"; then :
11512 ac_cv_lib_dld_shl_load=yes
11513 else
11514 ac_cv_lib_dld_shl_load=no
11515 fi
11516 rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LIBS=$ac_check_lib_save_LIBS
11519 fi
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11521 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11522 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11523 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11524 else
11525 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11526 if test "x$ac_cv_func_dlopen" = xyes; then :
11527 lt_cv_dlopen=dlopen
11528 else
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11530 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11531 if ${ac_cv_lib_dl_dlopen+:} false; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 ac_check_lib_save_LIBS=$LIBS
11535 LIBS="-ldl $LIBS"
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11538
11539 /* Override any GCC internal prototype to avoid an error.
11540 Use char because int might match the return type of a GCC
11541 builtin and then its argument prototype would still apply. */
11542 #ifdef __cplusplus
11543 extern "C"
11544 #endif
11545 char dlopen ();
11546 int
11547 main ()
11548 {
11549 return dlopen ();
11550 ;
11551 return 0;
11552 }
11553 _ACEOF
11554 if ac_fn_c_try_link "$LINENO"; then :
11555 ac_cv_lib_dl_dlopen=yes
11556 else
11557 ac_cv_lib_dl_dlopen=no
11558 fi
11559 rm -f core conftest.err conftest.$ac_objext \
11560 conftest$ac_exeext conftest.$ac_ext
11561 LIBS=$ac_check_lib_save_LIBS
11562 fi
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11564 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11565 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11566 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11567 else
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11569 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11570 if ${ac_cv_lib_svld_dlopen+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 ac_check_lib_save_LIBS=$LIBS
11574 LIBS="-lsvld $LIBS"
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 char dlopen ();
11585 int
11586 main ()
11587 {
11588 return dlopen ();
11589 ;
11590 return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_link "$LINENO"; then :
11594 ac_cv_lib_svld_dlopen=yes
11595 else
11596 ac_cv_lib_svld_dlopen=no
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11603 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11604 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11605 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11608 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11609 if ${ac_cv_lib_dld_dld_link+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-ldld $LIBS"
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11616
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char dld_link ();
11624 int
11625 main ()
11626 {
11627 return dld_link ();
11628 ;
11629 return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11633 ac_cv_lib_dld_dld_link=yes
11634 else
11635 ac_cv_lib_dld_dld_link=no
11636 fi
11637 rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11642 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11643 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11644 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11645 fi
11646
11647
11648 fi
11649
11650
11651 fi
11652
11653
11654 fi
11655
11656
11657 fi
11658
11659
11660 fi
11661
11662 ;;
11663 esac
11664
11665 if test no = "$lt_cv_dlopen"; then
11666 enable_dlopen=no
11667 else
11668 enable_dlopen=yes
11669 fi
11670
11671 case $lt_cv_dlopen in
11672 dlopen)
11673 save_CPPFLAGS=$CPPFLAGS
11674 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11675
11676 save_LDFLAGS=$LDFLAGS
11677 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11678
11679 save_LIBS=$LIBS
11680 LIBS="$lt_cv_dlopen_libs $LIBS"
11681
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11683 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11684 if ${lt_cv_dlopen_self+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 if test yes = "$cross_compiling"; then :
11688 lt_cv_dlopen_self=cross
11689 else
11690 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11691 lt_status=$lt_dlunknown
11692 cat > conftest.$ac_ext <<_LT_EOF
11693 #line $LINENO "configure"
11694 #include "confdefs.h"
11695
11696 #if HAVE_DLFCN_H
11697 #include <dlfcn.h>
11698 #endif
11699
11700 #include <stdio.h>
11701
11702 #ifdef RTLD_GLOBAL
11703 # define LT_DLGLOBAL RTLD_GLOBAL
11704 #else
11705 # ifdef DL_GLOBAL
11706 # define LT_DLGLOBAL DL_GLOBAL
11707 # else
11708 # define LT_DLGLOBAL 0
11709 # endif
11710 #endif
11711
11712 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11713 find out it does not work in some platform. */
11714 #ifndef LT_DLLAZY_OR_NOW
11715 # ifdef RTLD_LAZY
11716 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11717 # else
11718 # ifdef DL_LAZY
11719 # define LT_DLLAZY_OR_NOW DL_LAZY
11720 # else
11721 # ifdef RTLD_NOW
11722 # define LT_DLLAZY_OR_NOW RTLD_NOW
11723 # else
11724 # ifdef DL_NOW
11725 # define LT_DLLAZY_OR_NOW DL_NOW
11726 # else
11727 # define LT_DLLAZY_OR_NOW 0
11728 # endif
11729 # endif
11730 # endif
11731 # endif
11732 #endif
11733
11734 /* When -fvisibility=hidden is used, assume the code has been annotated
11735 correspondingly for the symbols needed. */
11736 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11737 int fnord () __attribute__((visibility("default")));
11738 #endif
11739
11740 int fnord () { return 42; }
11741 int main ()
11742 {
11743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11744 int status = $lt_dlunknown;
11745
11746 if (self)
11747 {
11748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11749 else
11750 {
11751 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11752 else puts (dlerror ());
11753 }
11754 /* dlclose (self); */
11755 }
11756 else
11757 puts (dlerror ());
11758
11759 return status;
11760 }
11761 _LT_EOF
11762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11763 (eval $ac_link) 2>&5
11764 ac_status=$?
11765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11767 (./conftest; exit; ) >&5 2>/dev/null
11768 lt_status=$?
11769 case x$lt_status in
11770 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11771 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11772 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11773 esac
11774 else :
11775 # compilation failed
11776 lt_cv_dlopen_self=no
11777 fi
11778 fi
11779 rm -fr conftest*
11780
11781
11782 fi
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11784 $as_echo "$lt_cv_dlopen_self" >&6; }
11785
11786 if test yes = "$lt_cv_dlopen_self"; then
11787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11789 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11790 if ${lt_cv_dlopen_self_static+:} false; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 if test yes = "$cross_compiling"; then :
11794 lt_cv_dlopen_self_static=cross
11795 else
11796 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11797 lt_status=$lt_dlunknown
11798 cat > conftest.$ac_ext <<_LT_EOF
11799 #line $LINENO "configure"
11800 #include "confdefs.h"
11801
11802 #if HAVE_DLFCN_H
11803 #include <dlfcn.h>
11804 #endif
11805
11806 #include <stdio.h>
11807
11808 #ifdef RTLD_GLOBAL
11809 # define LT_DLGLOBAL RTLD_GLOBAL
11810 #else
11811 # ifdef DL_GLOBAL
11812 # define LT_DLGLOBAL DL_GLOBAL
11813 # else
11814 # define LT_DLGLOBAL 0
11815 # endif
11816 #endif
11817
11818 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11819 find out it does not work in some platform. */
11820 #ifndef LT_DLLAZY_OR_NOW
11821 # ifdef RTLD_LAZY
11822 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11823 # else
11824 # ifdef DL_LAZY
11825 # define LT_DLLAZY_OR_NOW DL_LAZY
11826 # else
11827 # ifdef RTLD_NOW
11828 # define LT_DLLAZY_OR_NOW RTLD_NOW
11829 # else
11830 # ifdef DL_NOW
11831 # define LT_DLLAZY_OR_NOW DL_NOW
11832 # else
11833 # define LT_DLLAZY_OR_NOW 0
11834 # endif
11835 # endif
11836 # endif
11837 # endif
11838 #endif
11839
11840 /* When -fvisibility=hidden is used, assume the code has been annotated
11841 correspondingly for the symbols needed. */
11842 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11843 int fnord () __attribute__((visibility("default")));
11844 #endif
11845
11846 int fnord () { return 42; }
11847 int main ()
11848 {
11849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11850 int status = $lt_dlunknown;
11851
11852 if (self)
11853 {
11854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11855 else
11856 {
11857 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11858 else puts (dlerror ());
11859 }
11860 /* dlclose (self); */
11861 }
11862 else
11863 puts (dlerror ());
11864
11865 return status;
11866 }
11867 _LT_EOF
11868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11869 (eval $ac_link) 2>&5
11870 ac_status=$?
11871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11872 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11873 (./conftest; exit; ) >&5 2>/dev/null
11874 lt_status=$?
11875 case x$lt_status in
11876 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11877 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11878 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11879 esac
11880 else :
11881 # compilation failed
11882 lt_cv_dlopen_self_static=no
11883 fi
11884 fi
11885 rm -fr conftest*
11886
11887
11888 fi
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11890 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11891 fi
11892
11893 CPPFLAGS=$save_CPPFLAGS
11894 LDFLAGS=$save_LDFLAGS
11895 LIBS=$save_LIBS
11896 ;;
11897 esac
11898
11899 case $lt_cv_dlopen_self in
11900 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11901 *) enable_dlopen_self=unknown ;;
11902 esac
11903
11904 case $lt_cv_dlopen_self_static in
11905 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11906 *) enable_dlopen_self_static=unknown ;;
11907 esac
11908 fi
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926 striplib=
11927 old_striplib=
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11929 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11930 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11931 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11932 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934 $as_echo "yes" >&6; }
11935 else
11936 # FIXME - insert some real tests, host_os isn't really good enough
11937 case $host_os in
11938 darwin*)
11939 if test -n "$STRIP"; then
11940 striplib="$STRIP -x"
11941 old_striplib="$STRIP -S"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943 $as_echo "yes" >&6; }
11944 else
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946 $as_echo "no" >&6; }
11947 fi
11948 ;;
11949 *)
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11952 ;;
11953 esac
11954 fi
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967 # Report what library types will actually be built
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11969 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11971 $as_echo "$can_build_shared" >&6; }
11972
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11974 $as_echo_n "checking whether to build shared libraries... " >&6; }
11975 test no = "$can_build_shared" && enable_shared=no
11976
11977 # On AIX, shared libraries and static libraries use the same namespace, and
11978 # are all built from PIC.
11979 case $host_os in
11980 aix3*)
11981 test yes = "$enable_shared" && enable_static=no
11982 if test -n "$RANLIB"; then
11983 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11984 postinstall_cmds='$RANLIB $lib'
11985 fi
11986 ;;
11987
11988 aix[4-9]*)
11989 if test ia64 != "$host_cpu"; then
11990 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11991 yes,aix,yes) ;; # shared object as lib.so file only
11992 yes,svr4,*) ;; # shared object as lib.so archive member only
11993 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11994 esac
11995 fi
11996 ;;
11997 esac
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11999 $as_echo "$enable_shared" >&6; }
12000
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12002 $as_echo_n "checking whether to build static libraries... " >&6; }
12003 # Make sure either enable_shared or enable_static is yes.
12004 test yes = "$enable_shared" || enable_static=yes
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12006 $as_echo "$enable_static" >&6; }
12007
12008
12009
12010
12011 fi
12012 ac_ext=c
12013 ac_cpp='$CPP $CPPFLAGS'
12014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12017
12018 CC=$lt_save_CC
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034 ac_config_commands="$ac_config_commands libtool"
12035
12036
12037
12038
12039 # Only expand once:
12040
12041
12042
12043 # Require X.Org macros 1.8 or later
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12056 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12057 if ${ac_cv_prog_cc_c99+:} false; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 ac_cv_prog_cc_c99=no
12061 ac_save_CC=$CC
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12064 #include <stdarg.h>
12065 #include <stdbool.h>
12066 #include <stdlib.h>
12067 #include <wchar.h>
12068 #include <stdio.h>
12069
12070 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12071 #define debug(...) fprintf (stderr, __VA_ARGS__)
12072 #define showlist(...) puts (#__VA_ARGS__)
12073 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12074 static void
12075 test_varargs_macros (void)
12076 {
12077 int x = 1234;
12078 int y = 5678;
12079 debug ("Flag");
12080 debug ("X = %d\n", x);
12081 showlist (The first, second, and third items.);
12082 report (x>y, "x is %d but y is %d", x, y);
12083 }
12084
12085 // Check long long types.
12086 #define BIG64 18446744073709551615ull
12087 #define BIG32 4294967295ul
12088 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12089 #if !BIG_OK
12090 your preprocessor is broken;
12091 #endif
12092 #if BIG_OK
12093 #else
12094 your preprocessor is broken;
12095 #endif
12096 static long long int bignum = -9223372036854775807LL;
12097 static unsigned long long int ubignum = BIG64;
12098
12099 struct incomplete_array
12100 {
12101 int datasize;
12102 double data[];
12103 };
12104
12105 struct named_init {
12106 int number;
12107 const wchar_t *name;
12108 double average;
12109 };
12110
12111 typedef const char *ccp;
12112
12113 static inline int
12114 test_restrict (ccp restrict text)
12115 {
12116 // See if C++-style comments work.
12117 // Iterate through items via the restricted pointer.
12118 // Also check for declarations in for loops.
12119 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12120 continue;
12121 return 0;
12122 }
12123
12124 // Check varargs and va_copy.
12125 static void
12126 test_varargs (const char *format, ...)
12127 {
12128 va_list args;
12129 va_start (args, format);
12130 va_list args_copy;
12131 va_copy (args_copy, args);
12132
12133 const char *str;
12134 int number;
12135 float fnumber;
12136
12137 while (*format)
12138 {
12139 switch (*format++)
12140 {
12141 case 's': // string
12142 str = va_arg (args_copy, const char *);
12143 break;
12144 case 'd': // int
12145 number = va_arg (args_copy, int);
12146 break;
12147 case 'f': // float
12148 fnumber = va_arg (args_copy, double);
12149 break;
12150 default:
12151 break;
12152 }
12153 }
12154 va_end (args_copy);
12155 va_end (args);
12156 }
12157
12158 int
12159 main ()
12160 {
12161
12162 // Check bool.
12163 _Bool success = false;
12164
12165 // Check restrict.
12166 if (test_restrict ("String literal") == 0)
12167 success = true;
12168 char *restrict newvar = "Another string";
12169
12170 // Check varargs.
12171 test_varargs ("s, d' f .", "string", 65, 34.234);
12172 test_varargs_macros ();
12173
12174 // Check flexible array members.
12175 struct incomplete_array *ia =
12176 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12177 ia->datasize = 10;
12178 for (int i = 0; i < ia->datasize; ++i)
12179 ia->data[i] = i * 1.234;
12180
12181 // Check named initializers.
12182 struct named_init ni = {
12183 .number = 34,
12184 .name = L"Test wide string",
12185 .average = 543.34343,
12186 };
12187
12188 ni.number = 58;
12189
12190 int dynamic_array[ni.number];
12191 dynamic_array[ni.number - 1] = 543;
12192
12193 // work around unused variable warnings
12194 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12195 || dynamic_array[ni.number - 1] != 543);
12196
12197 ;
12198 return 0;
12199 }
12200 _ACEOF
12201 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12202 do
12203 CC="$ac_save_CC $ac_arg"
12204 if ac_fn_c_try_compile "$LINENO"; then :
12205 ac_cv_prog_cc_c99=$ac_arg
12206 fi
12207 rm -f core conftest.err conftest.$ac_objext
12208 test "x$ac_cv_prog_cc_c99" != "xno" && break
12209 done
12210 rm -f conftest.$ac_ext
12211 CC=$ac_save_CC
12212
12213 fi
12214 # AC_CACHE_VAL
12215 case "x$ac_cv_prog_cc_c99" in
12216 x)
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12218 $as_echo "none needed" >&6; } ;;
12219 xno)
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12221 $as_echo "unsupported" >&6; } ;;
12222 *)
12223 CC="$CC $ac_cv_prog_cc_c99"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12225 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12226 esac
12227 if test "x$ac_cv_prog_cc_c99" != xno; then :
12228
12229 fi
12230
12231
12232
12233
12234
12235
12236 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12237 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12238 CLANGCC="yes"
12239 else
12240 CLANGCC="no"
12241 fi
12242
12243 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12244 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12245 INTELCC="yes"
12246 else
12247 INTELCC="no"
12248 fi
12249
12250 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12251 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12252 SUNCC="yes"
12253 else
12254 SUNCC="no"
12255 fi
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12266 if test -n "$ac_tool_prefix"; then
12267 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12268 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270 $as_echo_n "checking for $ac_word... " >&6; }
12271 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 case $PKG_CONFIG in
12275 [\\/]* | ?:[\\/]*)
12276 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12277 ;;
12278 *)
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12286 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 break 2
12289 fi
12290 done
12291 done
12292 IFS=$as_save_IFS
12293
12294 ;;
12295 esac
12296 fi
12297 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12298 if test -n "$PKG_CONFIG"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12300 $as_echo "$PKG_CONFIG" >&6; }
12301 else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12304 fi
12305
12306
12307 fi
12308 if test -z "$ac_cv_path_PKG_CONFIG"; then
12309 ac_pt_PKG_CONFIG=$PKG_CONFIG
12310 # Extract the first word of "pkg-config", so it can be a program name with args.
12311 set dummy pkg-config; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 case $ac_pt_PKG_CONFIG in
12318 [\\/]* | ?:[\\/]*)
12319 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12320 ;;
12321 *)
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12324 do
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12329 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12332 fi
12333 done
12334 done
12335 IFS=$as_save_IFS
12336
12337 ;;
12338 esac
12339 fi
12340 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12341 if test -n "$ac_pt_PKG_CONFIG"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12343 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12347 fi
12348
12349 if test "x$ac_pt_PKG_CONFIG" = x; then
12350 PKG_CONFIG=""
12351 else
12352 case $cross_compiling:$ac_tool_warned in
12353 yes:)
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12356 ac_tool_warned=yes ;;
12357 esac
12358 PKG_CONFIG=$ac_pt_PKG_CONFIG
12359 fi
12360 else
12361 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12362 fi
12363
12364 fi
12365 if test -n "$PKG_CONFIG"; then
12366 _pkg_min_version=0.9.0
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12368 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12369 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12371 $as_echo "yes" >&6; }
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12375 PKG_CONFIG=""
12376 fi
12377 fi
12378
12379
12380
12381
12382
12383 # Check whether --enable-selective-werror was given.
12384 if test "${enable_selective_werror+set}" = set; then :
12385 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12386 else
12387 SELECTIVE_WERROR=yes
12388 fi
12389
12390
12391
12392
12393
12394 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12395 if test "x$SUNCC" = "xyes"; then
12396 BASE_CFLAGS="-v"
12397 else
12398 BASE_CFLAGS=""
12399 fi
12400
12401 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415 xorg_testset_save_CFLAGS="$CFLAGS"
12416
12417 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12420 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12421 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426 int i;
12427 _ACEOF
12428 if ac_fn_c_try_compile "$LINENO"; then :
12429 xorg_cv_cc_flag_unknown_warning_option=yes
12430 else
12431 xorg_cv_cc_flag_unknown_warning_option=no
12432 fi
12433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12434 fi
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12436 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12438 CFLAGS="$xorg_testset_save_CFLAGS"
12439 fi
12440
12441 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12444 fi
12445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12447 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12448 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12453 int i;
12454 _ACEOF
12455 if ac_fn_c_try_compile "$LINENO"; then :
12456 xorg_cv_cc_flag_unused_command_line_argument=yes
12457 else
12458 xorg_cv_cc_flag_unused_command_line_argument=no
12459 fi
12460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12463 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12465 CFLAGS="$xorg_testset_save_CFLAGS"
12466 fi
12467
12468 found="no"
12469
12470 if test $found = "no" ; then
12471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12473 fi
12474
12475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12477 fi
12478
12479 CFLAGS="$CFLAGS -Wall"
12480
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12482 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12483 cacheid=xorg_cv_cc_flag__Wall
12484 if eval \${$cacheid+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12489 int i;
12490 int
12491 main ()
12492 {
12493
12494 ;
12495 return 0;
12496 }
12497 _ACEOF
12498 if ac_fn_c_try_link "$LINENO"; then :
12499 eval $cacheid=yes
12500 else
12501 eval $cacheid=no
12502 fi
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12505 fi
12506
12507
12508 CFLAGS="$xorg_testset_save_CFLAGS"
12509
12510 eval supported=\$$cacheid
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12512 $as_echo "$supported" >&6; }
12513 if test "$supported" = "yes" ; then
12514 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12515 found="yes"
12516 fi
12517 fi
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533 xorg_testset_save_CFLAGS="$CFLAGS"
12534
12535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12538 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12539 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12544 int i;
12545 _ACEOF
12546 if ac_fn_c_try_compile "$LINENO"; then :
12547 xorg_cv_cc_flag_unknown_warning_option=yes
12548 else
12549 xorg_cv_cc_flag_unknown_warning_option=no
12550 fi
12551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12554 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12556 CFLAGS="$xorg_testset_save_CFLAGS"
12557 fi
12558
12559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12562 fi
12563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12565 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12566 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568 else
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571 int i;
12572 _ACEOF
12573 if ac_fn_c_try_compile "$LINENO"; then :
12574 xorg_cv_cc_flag_unused_command_line_argument=yes
12575 else
12576 xorg_cv_cc_flag_unused_command_line_argument=no
12577 fi
12578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579 fi
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12581 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12583 CFLAGS="$xorg_testset_save_CFLAGS"
12584 fi
12585
12586 found="no"
12587
12588 if test $found = "no" ; then
12589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12591 fi
12592
12593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12595 fi
12596
12597 CFLAGS="$CFLAGS -Wpointer-arith"
12598
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12600 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12601 cacheid=xorg_cv_cc_flag__Wpointer_arith
12602 if eval \${$cacheid+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607 int i;
12608 int
12609 main ()
12610 {
12611
12612 ;
12613 return 0;
12614 }
12615 _ACEOF
12616 if ac_fn_c_try_link "$LINENO"; then :
12617 eval $cacheid=yes
12618 else
12619 eval $cacheid=no
12620 fi
12621 rm -f core conftest.err conftest.$ac_objext \
12622 conftest$ac_exeext conftest.$ac_ext
12623 fi
12624
12625
12626 CFLAGS="$xorg_testset_save_CFLAGS"
12627
12628 eval supported=\$$cacheid
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12630 $as_echo "$supported" >&6; }
12631 if test "$supported" = "yes" ; then
12632 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12633 found="yes"
12634 fi
12635 fi
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651 xorg_testset_save_CFLAGS="$CFLAGS"
12652
12653 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12656 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12657 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 int i;
12663 _ACEOF
12664 if ac_fn_c_try_compile "$LINENO"; then :
12665 xorg_cv_cc_flag_unknown_warning_option=yes
12666 else
12667 xorg_cv_cc_flag_unknown_warning_option=no
12668 fi
12669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670 fi
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12672 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12674 CFLAGS="$xorg_testset_save_CFLAGS"
12675 fi
12676
12677 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12680 fi
12681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12683 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12684 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12685 $as_echo_n "(cached) " >&6
12686 else
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12689 int i;
12690 _ACEOF
12691 if ac_fn_c_try_compile "$LINENO"; then :
12692 xorg_cv_cc_flag_unused_command_line_argument=yes
12693 else
12694 xorg_cv_cc_flag_unused_command_line_argument=no
12695 fi
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 fi
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12699 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12701 CFLAGS="$xorg_testset_save_CFLAGS"
12702 fi
12703
12704 found="no"
12705
12706 if test $found = "no" ; then
12707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12709 fi
12710
12711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12713 fi
12714
12715 CFLAGS="$CFLAGS -Wmissing-declarations"
12716
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12718 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12719 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12720 if eval \${$cacheid+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12725 int i;
12726 int
12727 main ()
12728 {
12729
12730 ;
12731 return 0;
12732 }
12733 _ACEOF
12734 if ac_fn_c_try_link "$LINENO"; then :
12735 eval $cacheid=yes
12736 else
12737 eval $cacheid=no
12738 fi
12739 rm -f core conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext conftest.$ac_ext
12741 fi
12742
12743
12744 CFLAGS="$xorg_testset_save_CFLAGS"
12745
12746 eval supported=\$$cacheid
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12748 $as_echo "$supported" >&6; }
12749 if test "$supported" = "yes" ; then
12750 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12751 found="yes"
12752 fi
12753 fi
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769 xorg_testset_save_CFLAGS="$CFLAGS"
12770
12771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12774 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12775 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780 int i;
12781 _ACEOF
12782 if ac_fn_c_try_compile "$LINENO"; then :
12783 xorg_cv_cc_flag_unknown_warning_option=yes
12784 else
12785 xorg_cv_cc_flag_unknown_warning_option=no
12786 fi
12787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788 fi
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12790 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12792 CFLAGS="$xorg_testset_save_CFLAGS"
12793 fi
12794
12795 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12798 fi
12799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12801 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12802 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12807 int i;
12808 _ACEOF
12809 if ac_fn_c_try_compile "$LINENO"; then :
12810 xorg_cv_cc_flag_unused_command_line_argument=yes
12811 else
12812 xorg_cv_cc_flag_unused_command_line_argument=no
12813 fi
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12815 fi
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12817 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12819 CFLAGS="$xorg_testset_save_CFLAGS"
12820 fi
12821
12822 found="no"
12823
12824 if test $found = "no" ; then
12825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12827 fi
12828
12829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12831 fi
12832
12833 CFLAGS="$CFLAGS -Wformat=2"
12834
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12836 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12837 cacheid=xorg_cv_cc_flag__Wformat_2
12838 if eval \${$cacheid+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12843 int i;
12844 int
12845 main ()
12846 {
12847
12848 ;
12849 return 0;
12850 }
12851 _ACEOF
12852 if ac_fn_c_try_link "$LINENO"; then :
12853 eval $cacheid=yes
12854 else
12855 eval $cacheid=no
12856 fi
12857 rm -f core conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext conftest.$ac_ext
12859 fi
12860
12861
12862 CFLAGS="$xorg_testset_save_CFLAGS"
12863
12864 eval supported=\$$cacheid
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12866 $as_echo "$supported" >&6; }
12867 if test "$supported" = "yes" ; then
12868 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12869 found="yes"
12870 fi
12871 fi
12872
12873 if test $found = "no" ; then
12874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12876 fi
12877
12878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12880 fi
12881
12882 CFLAGS="$CFLAGS -Wformat"
12883
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12885 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12886 cacheid=xorg_cv_cc_flag__Wformat
12887 if eval \${$cacheid+:} false; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891 /* end confdefs.h. */
12892 int i;
12893 int
12894 main ()
12895 {
12896
12897 ;
12898 return 0;
12899 }
12900 _ACEOF
12901 if ac_fn_c_try_link "$LINENO"; then :
12902 eval $cacheid=yes
12903 else
12904 eval $cacheid=no
12905 fi
12906 rm -f core conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908 fi
12909
12910
12911 CFLAGS="$xorg_testset_save_CFLAGS"
12912
12913 eval supported=\$$cacheid
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12915 $as_echo "$supported" >&6; }
12916 if test "$supported" = "yes" ; then
12917 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12918 found="yes"
12919 fi
12920 fi
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938 xorg_testset_save_CFLAGS="$CFLAGS"
12939
12940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12943 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12944 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h. */
12949 int i;
12950 _ACEOF
12951 if ac_fn_c_try_compile "$LINENO"; then :
12952 xorg_cv_cc_flag_unknown_warning_option=yes
12953 else
12954 xorg_cv_cc_flag_unknown_warning_option=no
12955 fi
12956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12957 fi
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12959 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12961 CFLAGS="$xorg_testset_save_CFLAGS"
12962 fi
12963
12964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12967 fi
12968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12970 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12971 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12976 int i;
12977 _ACEOF
12978 if ac_fn_c_try_compile "$LINENO"; then :
12979 xorg_cv_cc_flag_unused_command_line_argument=yes
12980 else
12981 xorg_cv_cc_flag_unused_command_line_argument=no
12982 fi
12983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12984 fi
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12986 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12988 CFLAGS="$xorg_testset_save_CFLAGS"
12989 fi
12990
12991 found="no"
12992
12993 if test $found = "no" ; then
12994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12996 fi
12997
12998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13000 fi
13001
13002 CFLAGS="$CFLAGS -Wstrict-prototypes"
13003
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13005 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13006 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13007 if eval \${$cacheid+:} false; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13012 int i;
13013 int
13014 main ()
13015 {
13016
13017 ;
13018 return 0;
13019 }
13020 _ACEOF
13021 if ac_fn_c_try_link "$LINENO"; then :
13022 eval $cacheid=yes
13023 else
13024 eval $cacheid=no
13025 fi
13026 rm -f core conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13028 fi
13029
13030
13031 CFLAGS="$xorg_testset_save_CFLAGS"
13032
13033 eval supported=\$$cacheid
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13035 $as_echo "$supported" >&6; }
13036 if test "$supported" = "yes" ; then
13037 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13038 found="yes"
13039 fi
13040 fi
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056 xorg_testset_save_CFLAGS="$CFLAGS"
13057
13058 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13061 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13062 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13063 $as_echo_n "(cached) " >&6
13064 else
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13067 int i;
13068 _ACEOF
13069 if ac_fn_c_try_compile "$LINENO"; then :
13070 xorg_cv_cc_flag_unknown_warning_option=yes
13071 else
13072 xorg_cv_cc_flag_unknown_warning_option=no
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13077 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13079 CFLAGS="$xorg_testset_save_CFLAGS"
13080 fi
13081
13082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13085 fi
13086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13088 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13089 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13094 int i;
13095 _ACEOF
13096 if ac_fn_c_try_compile "$LINENO"; then :
13097 xorg_cv_cc_flag_unused_command_line_argument=yes
13098 else
13099 xorg_cv_cc_flag_unused_command_line_argument=no
13100 fi
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 fi
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13104 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13106 CFLAGS="$xorg_testset_save_CFLAGS"
13107 fi
13108
13109 found="no"
13110
13111 if test $found = "no" ; then
13112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13114 fi
13115
13116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13118 fi
13119
13120 CFLAGS="$CFLAGS -Wmissing-prototypes"
13121
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13123 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13124 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13125 if eval \${$cacheid+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13130 int i;
13131 int
13132 main ()
13133 {
13134
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 if ac_fn_c_try_link "$LINENO"; then :
13140 eval $cacheid=yes
13141 else
13142 eval $cacheid=no
13143 fi
13144 rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13146 fi
13147
13148
13149 CFLAGS="$xorg_testset_save_CFLAGS"
13150
13151 eval supported=\$$cacheid
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13153 $as_echo "$supported" >&6; }
13154 if test "$supported" = "yes" ; then
13155 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13156 found="yes"
13157 fi
13158 fi
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174 xorg_testset_save_CFLAGS="$CFLAGS"
13175
13176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13179 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13180 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13181 $as_echo_n "(cached) " >&6
13182 else
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185 int i;
13186 _ACEOF
13187 if ac_fn_c_try_compile "$LINENO"; then :
13188 xorg_cv_cc_flag_unknown_warning_option=yes
13189 else
13190 xorg_cv_cc_flag_unknown_warning_option=no
13191 fi
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 fi
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13195 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13197 CFLAGS="$xorg_testset_save_CFLAGS"
13198 fi
13199
13200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13203 fi
13204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13206 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13207 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13208 $as_echo_n "(cached) " >&6
13209 else
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13212 int i;
13213 _ACEOF
13214 if ac_fn_c_try_compile "$LINENO"; then :
13215 xorg_cv_cc_flag_unused_command_line_argument=yes
13216 else
13217 xorg_cv_cc_flag_unused_command_line_argument=no
13218 fi
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 fi
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13222 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13224 CFLAGS="$xorg_testset_save_CFLAGS"
13225 fi
13226
13227 found="no"
13228
13229 if test $found = "no" ; then
13230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13232 fi
13233
13234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13236 fi
13237
13238 CFLAGS="$CFLAGS -Wnested-externs"
13239
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13241 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13242 cacheid=xorg_cv_cc_flag__Wnested_externs
13243 if eval \${$cacheid+:} false; then :
13244 $as_echo_n "(cached) " >&6
13245 else
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13248 int i;
13249 int
13250 main ()
13251 {
13252
13253 ;
13254 return 0;
13255 }
13256 _ACEOF
13257 if ac_fn_c_try_link "$LINENO"; then :
13258 eval $cacheid=yes
13259 else
13260 eval $cacheid=no
13261 fi
13262 rm -f core conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
13264 fi
13265
13266
13267 CFLAGS="$xorg_testset_save_CFLAGS"
13268
13269 eval supported=\$$cacheid
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13271 $as_echo "$supported" >&6; }
13272 if test "$supported" = "yes" ; then
13273 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13274 found="yes"
13275 fi
13276 fi
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292 xorg_testset_save_CFLAGS="$CFLAGS"
13293
13294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 int i;
13304 _ACEOF
13305 if ac_fn_c_try_compile "$LINENO"; then :
13306 xorg_cv_cc_flag_unknown_warning_option=yes
13307 else
13308 xorg_cv_cc_flag_unknown_warning_option=no
13309 fi
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311 fi
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13315 CFLAGS="$xorg_testset_save_CFLAGS"
13316 fi
13317
13318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13321 fi
13322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13330 int i;
13331 _ACEOF
13332 if ac_fn_c_try_compile "$LINENO"; then :
13333 xorg_cv_cc_flag_unused_command_line_argument=yes
13334 else
13335 xorg_cv_cc_flag_unused_command_line_argument=no
13336 fi
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13338 fi
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13342 CFLAGS="$xorg_testset_save_CFLAGS"
13343 fi
13344
13345 found="no"
13346
13347 if test $found = "no" ; then
13348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13350 fi
13351
13352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13354 fi
13355
13356 CFLAGS="$CFLAGS -Wbad-function-cast"
13357
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13359 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13360 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13361 if eval \${$cacheid+:} false; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13366 int i;
13367 int
13368 main ()
13369 {
13370
13371 ;
13372 return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_link "$LINENO"; then :
13376 eval $cacheid=yes
13377 else
13378 eval $cacheid=no
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext \
13381 conftest$ac_exeext conftest.$ac_ext
13382 fi
13383
13384
13385 CFLAGS="$xorg_testset_save_CFLAGS"
13386
13387 eval supported=\$$cacheid
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13389 $as_echo "$supported" >&6; }
13390 if test "$supported" = "yes" ; then
13391 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13392 found="yes"
13393 fi
13394 fi
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410 xorg_testset_save_CFLAGS="$CFLAGS"
13411
13412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13421 int i;
13422 _ACEOF
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424 xorg_cv_cc_flag_unknown_warning_option=yes
13425 else
13426 xorg_cv_cc_flag_unknown_warning_option=no
13427 fi
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429 fi
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13433 CFLAGS="$xorg_testset_save_CFLAGS"
13434 fi
13435
13436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13439 fi
13440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13444 $as_echo_n "(cached) " >&6
13445 else
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 int i;
13449 _ACEOF
13450 if ac_fn_c_try_compile "$LINENO"; then :
13451 xorg_cv_cc_flag_unused_command_line_argument=yes
13452 else
13453 xorg_cv_cc_flag_unused_command_line_argument=no
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 fi
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13460 CFLAGS="$xorg_testset_save_CFLAGS"
13461 fi
13462
13463 found="no"
13464
13465 if test $found = "no" ; then
13466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13468 fi
13469
13470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13472 fi
13473
13474 CFLAGS="$CFLAGS -Wold-style-definition"
13475
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13477 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13478 cacheid=xorg_cv_cc_flag__Wold_style_definition
13479 if eval \${$cacheid+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13484 int i;
13485 int
13486 main ()
13487 {
13488
13489 ;
13490 return 0;
13491 }
13492 _ACEOF
13493 if ac_fn_c_try_link "$LINENO"; then :
13494 eval $cacheid=yes
13495 else
13496 eval $cacheid=no
13497 fi
13498 rm -f core conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext conftest.$ac_ext
13500 fi
13501
13502
13503 CFLAGS="$xorg_testset_save_CFLAGS"
13504
13505 eval supported=\$$cacheid
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13507 $as_echo "$supported" >&6; }
13508 if test "$supported" = "yes" ; then
13509 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13510 found="yes"
13511 fi
13512 fi
13513
13514 if test $found = "no" ; then
13515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13517 fi
13518
13519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13521 fi
13522
13523 CFLAGS="$CFLAGS -fd"
13524
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13526 $as_echo_n "checking if $CC supports -fd... " >&6; }
13527 cacheid=xorg_cv_cc_flag__fd
13528 if eval \${$cacheid+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533 int i;
13534 int
13535 main ()
13536 {
13537
13538 ;
13539 return 0;
13540 }
13541 _ACEOF
13542 if ac_fn_c_try_link "$LINENO"; then :
13543 eval $cacheid=yes
13544 else
13545 eval $cacheid=no
13546 fi
13547 rm -f core conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13549 fi
13550
13551
13552 CFLAGS="$xorg_testset_save_CFLAGS"
13553
13554 eval supported=\$$cacheid
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13556 $as_echo "$supported" >&6; }
13557 if test "$supported" = "yes" ; then
13558 BASE_CFLAGS="$BASE_CFLAGS -fd"
13559 found="yes"
13560 fi
13561 fi
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577 xorg_testset_save_CFLAGS="$CFLAGS"
13578
13579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13582 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13583 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13584 $as_echo_n "(cached) " >&6
13585 else
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 int i;
13589 _ACEOF
13590 if ac_fn_c_try_compile "$LINENO"; then :
13591 xorg_cv_cc_flag_unknown_warning_option=yes
13592 else
13593 xorg_cv_cc_flag_unknown_warning_option=no
13594 fi
13595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596 fi
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13598 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13600 CFLAGS="$xorg_testset_save_CFLAGS"
13601 fi
13602
13603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13606 fi
13607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13609 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13610 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615 int i;
13616 _ACEOF
13617 if ac_fn_c_try_compile "$LINENO"; then :
13618 xorg_cv_cc_flag_unused_command_line_argument=yes
13619 else
13620 xorg_cv_cc_flag_unused_command_line_argument=no
13621 fi
13622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 fi
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13625 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13627 CFLAGS="$xorg_testset_save_CFLAGS"
13628 fi
13629
13630 found="no"
13631
13632 if test $found = "no" ; then
13633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13635 fi
13636
13637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13639 fi
13640
13641 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13642
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13644 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13645 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13646 if eval \${$cacheid+:} false; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13651 int i;
13652 int
13653 main ()
13654 {
13655
13656 ;
13657 return 0;
13658 }
13659 _ACEOF
13660 if ac_fn_c_try_link "$LINENO"; then :
13661 eval $cacheid=yes
13662 else
13663 eval $cacheid=no
13664 fi
13665 rm -f core conftest.err conftest.$ac_objext \
13666 conftest$ac_exeext conftest.$ac_ext
13667 fi
13668
13669
13670 CFLAGS="$xorg_testset_save_CFLAGS"
13671
13672 eval supported=\$$cacheid
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13674 $as_echo "$supported" >&6; }
13675 if test "$supported" = "yes" ; then
13676 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13677 found="yes"
13678 fi
13679 fi
13680
13681
13682
13683
13684
13685 # This chunk adds additional warnings that could catch undesired effects.
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699 xorg_testset_save_CFLAGS="$CFLAGS"
13700
13701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13704 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13705 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13706 $as_echo_n "(cached) " >&6
13707 else
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710 int i;
13711 _ACEOF
13712 if ac_fn_c_try_compile "$LINENO"; then :
13713 xorg_cv_cc_flag_unknown_warning_option=yes
13714 else
13715 xorg_cv_cc_flag_unknown_warning_option=no
13716 fi
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 fi
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13720 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13722 CFLAGS="$xorg_testset_save_CFLAGS"
13723 fi
13724
13725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13728 fi
13729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13731 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13732 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13737 int i;
13738 _ACEOF
13739 if ac_fn_c_try_compile "$LINENO"; then :
13740 xorg_cv_cc_flag_unused_command_line_argument=yes
13741 else
13742 xorg_cv_cc_flag_unused_command_line_argument=no
13743 fi
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 fi
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13747 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13749 CFLAGS="$xorg_testset_save_CFLAGS"
13750 fi
13751
13752 found="no"
13753
13754 if test $found = "no" ; then
13755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13757 fi
13758
13759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13761 fi
13762
13763 CFLAGS="$CFLAGS -Wunused"
13764
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13766 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13767 cacheid=xorg_cv_cc_flag__Wunused
13768 if eval \${$cacheid+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13773 int i;
13774 int
13775 main ()
13776 {
13777
13778 ;
13779 return 0;
13780 }
13781 _ACEOF
13782 if ac_fn_c_try_link "$LINENO"; then :
13783 eval $cacheid=yes
13784 else
13785 eval $cacheid=no
13786 fi
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13789 fi
13790
13791
13792 CFLAGS="$xorg_testset_save_CFLAGS"
13793
13794 eval supported=\$$cacheid
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13796 $as_echo "$supported" >&6; }
13797 if test "$supported" = "yes" ; then
13798 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13799 found="yes"
13800 fi
13801 fi
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817 xorg_testset_save_CFLAGS="$CFLAGS"
13818
13819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13822 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13823 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13824 $as_echo_n "(cached) " >&6
13825 else
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828 int i;
13829 _ACEOF
13830 if ac_fn_c_try_compile "$LINENO"; then :
13831 xorg_cv_cc_flag_unknown_warning_option=yes
13832 else
13833 xorg_cv_cc_flag_unknown_warning_option=no
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 fi
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13838 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13840 CFLAGS="$xorg_testset_save_CFLAGS"
13841 fi
13842
13843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13846 fi
13847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13849 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13850 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13851 $as_echo_n "(cached) " >&6
13852 else
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13855 int i;
13856 _ACEOF
13857 if ac_fn_c_try_compile "$LINENO"; then :
13858 xorg_cv_cc_flag_unused_command_line_argument=yes
13859 else
13860 xorg_cv_cc_flag_unused_command_line_argument=no
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863 fi
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13865 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13867 CFLAGS="$xorg_testset_save_CFLAGS"
13868 fi
13869
13870 found="no"
13871
13872 if test $found = "no" ; then
13873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13875 fi
13876
13877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13879 fi
13880
13881 CFLAGS="$CFLAGS -Wuninitialized"
13882
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13884 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13885 cacheid=xorg_cv_cc_flag__Wuninitialized
13886 if eval \${$cacheid+:} false; then :
13887 $as_echo_n "(cached) " >&6
13888 else
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13891 int i;
13892 int
13893 main ()
13894 {
13895
13896 ;
13897 return 0;
13898 }
13899 _ACEOF
13900 if ac_fn_c_try_link "$LINENO"; then :
13901 eval $cacheid=yes
13902 else
13903 eval $cacheid=no
13904 fi
13905 rm -f core conftest.err conftest.$ac_objext \
13906 conftest$ac_exeext conftest.$ac_ext
13907 fi
13908
13909
13910 CFLAGS="$xorg_testset_save_CFLAGS"
13911
13912 eval supported=\$$cacheid
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13914 $as_echo "$supported" >&6; }
13915 if test "$supported" = "yes" ; then
13916 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13917 found="yes"
13918 fi
13919 fi
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935 xorg_testset_save_CFLAGS="$CFLAGS"
13936
13937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13940 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13941 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13942 $as_echo_n "(cached) " >&6
13943 else
13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13946 int i;
13947 _ACEOF
13948 if ac_fn_c_try_compile "$LINENO"; then :
13949 xorg_cv_cc_flag_unknown_warning_option=yes
13950 else
13951 xorg_cv_cc_flag_unknown_warning_option=no
13952 fi
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954 fi
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13956 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13958 CFLAGS="$xorg_testset_save_CFLAGS"
13959 fi
13960
13961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13964 fi
13965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13967 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13968 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13973 int i;
13974 _ACEOF
13975 if ac_fn_c_try_compile "$LINENO"; then :
13976 xorg_cv_cc_flag_unused_command_line_argument=yes
13977 else
13978 xorg_cv_cc_flag_unused_command_line_argument=no
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13981 fi
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13983 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13985 CFLAGS="$xorg_testset_save_CFLAGS"
13986 fi
13987
13988 found="no"
13989
13990 if test $found = "no" ; then
13991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13993 fi
13994
13995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13997 fi
13998
13999 CFLAGS="$CFLAGS -Wshadow"
14000
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14002 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14003 cacheid=xorg_cv_cc_flag__Wshadow
14004 if eval \${$cacheid+:} false; then :
14005 $as_echo_n "(cached) " >&6
14006 else
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14009 int i;
14010 int
14011 main ()
14012 {
14013
14014 ;
14015 return 0;
14016 }
14017 _ACEOF
14018 if ac_fn_c_try_link "$LINENO"; then :
14019 eval $cacheid=yes
14020 else
14021 eval $cacheid=no
14022 fi
14023 rm -f core conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
14025 fi
14026
14027
14028 CFLAGS="$xorg_testset_save_CFLAGS"
14029
14030 eval supported=\$$cacheid
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14032 $as_echo "$supported" >&6; }
14033 if test "$supported" = "yes" ; then
14034 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14035 found="yes"
14036 fi
14037 fi
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053 xorg_testset_save_CFLAGS="$CFLAGS"
14054
14055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14058 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14059 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14064 int i;
14065 _ACEOF
14066 if ac_fn_c_try_compile "$LINENO"; then :
14067 xorg_cv_cc_flag_unknown_warning_option=yes
14068 else
14069 xorg_cv_cc_flag_unknown_warning_option=no
14070 fi
14071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072 fi
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14074 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14076 CFLAGS="$xorg_testset_save_CFLAGS"
14077 fi
14078
14079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14082 fi
14083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14085 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14086 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 int i;
14092 _ACEOF
14093 if ac_fn_c_try_compile "$LINENO"; then :
14094 xorg_cv_cc_flag_unused_command_line_argument=yes
14095 else
14096 xorg_cv_cc_flag_unused_command_line_argument=no
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 fi
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14101 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14103 CFLAGS="$xorg_testset_save_CFLAGS"
14104 fi
14105
14106 found="no"
14107
14108 if test $found = "no" ; then
14109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14111 fi
14112
14113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14115 fi
14116
14117 CFLAGS="$CFLAGS -Wmissing-noreturn"
14118
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14120 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14121 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14122 if eval \${$cacheid+:} false; then :
14123 $as_echo_n "(cached) " >&6
14124 else
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 int i;
14128 int
14129 main ()
14130 {
14131
14132 ;
14133 return 0;
14134 }
14135 _ACEOF
14136 if ac_fn_c_try_link "$LINENO"; then :
14137 eval $cacheid=yes
14138 else
14139 eval $cacheid=no
14140 fi
14141 rm -f core conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
14143 fi
14144
14145
14146 CFLAGS="$xorg_testset_save_CFLAGS"
14147
14148 eval supported=\$$cacheid
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14150 $as_echo "$supported" >&6; }
14151 if test "$supported" = "yes" ; then
14152 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14153 found="yes"
14154 fi
14155 fi
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171 xorg_testset_save_CFLAGS="$CFLAGS"
14172
14173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14176 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14177 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14178 $as_echo_n "(cached) " >&6
14179 else
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 int i;
14183 _ACEOF
14184 if ac_fn_c_try_compile "$LINENO"; then :
14185 xorg_cv_cc_flag_unknown_warning_option=yes
14186 else
14187 xorg_cv_cc_flag_unknown_warning_option=no
14188 fi
14189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190 fi
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14192 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14194 CFLAGS="$xorg_testset_save_CFLAGS"
14195 fi
14196
14197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14200 fi
14201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14203 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14204 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14205 $as_echo_n "(cached) " >&6
14206 else
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14209 int i;
14210 _ACEOF
14211 if ac_fn_c_try_compile "$LINENO"; then :
14212 xorg_cv_cc_flag_unused_command_line_argument=yes
14213 else
14214 xorg_cv_cc_flag_unused_command_line_argument=no
14215 fi
14216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14217 fi
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14219 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14221 CFLAGS="$xorg_testset_save_CFLAGS"
14222 fi
14223
14224 found="no"
14225
14226 if test $found = "no" ; then
14227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14229 fi
14230
14231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14233 fi
14234
14235 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14236
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14238 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14239 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14240 if eval \${$cacheid+:} false; then :
14241 $as_echo_n "(cached) " >&6
14242 else
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14245 int i;
14246 int
14247 main ()
14248 {
14249
14250 ;
14251 return 0;
14252 }
14253 _ACEOF
14254 if ac_fn_c_try_link "$LINENO"; then :
14255 eval $cacheid=yes
14256 else
14257 eval $cacheid=no
14258 fi
14259 rm -f core conftest.err conftest.$ac_objext \
14260 conftest$ac_exeext conftest.$ac_ext
14261 fi
14262
14263
14264 CFLAGS="$xorg_testset_save_CFLAGS"
14265
14266 eval supported=\$$cacheid
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14268 $as_echo "$supported" >&6; }
14269 if test "$supported" = "yes" ; then
14270 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14271 found="yes"
14272 fi
14273 fi
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289 xorg_testset_save_CFLAGS="$CFLAGS"
14290
14291 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14294 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14295 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14296 $as_echo_n "(cached) " >&6
14297 else
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14300 int i;
14301 _ACEOF
14302 if ac_fn_c_try_compile "$LINENO"; then :
14303 xorg_cv_cc_flag_unknown_warning_option=yes
14304 else
14305 xorg_cv_cc_flag_unknown_warning_option=no
14306 fi
14307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14308 fi
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14310 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14312 CFLAGS="$xorg_testset_save_CFLAGS"
14313 fi
14314
14315 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14318 fi
14319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14321 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14322 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 int i;
14328 _ACEOF
14329 if ac_fn_c_try_compile "$LINENO"; then :
14330 xorg_cv_cc_flag_unused_command_line_argument=yes
14331 else
14332 xorg_cv_cc_flag_unused_command_line_argument=no
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 fi
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14337 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14339 CFLAGS="$xorg_testset_save_CFLAGS"
14340 fi
14341
14342 found="no"
14343
14344 if test $found = "no" ; then
14345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14347 fi
14348
14349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14351 fi
14352
14353 CFLAGS="$CFLAGS -Wredundant-decls"
14354
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14356 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14357 cacheid=xorg_cv_cc_flag__Wredundant_decls
14358 if eval \${$cacheid+:} false; then :
14359 $as_echo_n "(cached) " >&6
14360 else
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14363 int i;
14364 int
14365 main ()
14366 {
14367
14368 ;
14369 return 0;
14370 }
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"; then :
14373 eval $cacheid=yes
14374 else
14375 eval $cacheid=no
14376 fi
14377 rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
14379 fi
14380
14381
14382 CFLAGS="$xorg_testset_save_CFLAGS"
14383
14384 eval supported=\$$cacheid
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14386 $as_echo "$supported" >&6; }
14387 if test "$supported" = "yes" ; then
14388 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14389 found="yes"
14390 fi
14391 fi
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407 xorg_testset_save_CFLAGS="$CFLAGS"
14408
14409 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14412 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14413 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14414 $as_echo_n "(cached) " >&6
14415 else
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14418 int i;
14419 _ACEOF
14420 if ac_fn_c_try_compile "$LINENO"; then :
14421 xorg_cv_cc_flag_unknown_warning_option=yes
14422 else
14423 xorg_cv_cc_flag_unknown_warning_option=no
14424 fi
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14428 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14430 CFLAGS="$xorg_testset_save_CFLAGS"
14431 fi
14432
14433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14436 fi
14437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14439 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14440 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14445 int i;
14446 _ACEOF
14447 if ac_fn_c_try_compile "$LINENO"; then :
14448 xorg_cv_cc_flag_unused_command_line_argument=yes
14449 else
14450 xorg_cv_cc_flag_unused_command_line_argument=no
14451 fi
14452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14453 fi
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14455 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14457 CFLAGS="$xorg_testset_save_CFLAGS"
14458 fi
14459
14460 found="no"
14461
14462 if test $found = "no" ; then
14463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14465 fi
14466
14467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14469 fi
14470
14471 CFLAGS="$CFLAGS -Wlogical-op"
14472
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14474 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14475 cacheid=xorg_cv_cc_flag__Wlogical_op
14476 if eval \${$cacheid+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481 int i;
14482 int
14483 main ()
14484 {
14485
14486 ;
14487 return 0;
14488 }
14489 _ACEOF
14490 if ac_fn_c_try_link "$LINENO"; then :
14491 eval $cacheid=yes
14492 else
14493 eval $cacheid=no
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext \
14496 conftest$ac_exeext conftest.$ac_ext
14497 fi
14498
14499
14500 CFLAGS="$xorg_testset_save_CFLAGS"
14501
14502 eval supported=\$$cacheid
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14504 $as_echo "$supported" >&6; }
14505 if test "$supported" = "yes" ; then
14506 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14507 found="yes"
14508 fi
14509 fi
14510
14511
14512
14513 # These are currently disabled because they are noisy. They will be enabled
14514 # in the future once the codebase is sufficiently modernized to silence
14515 # them. For now, I don't want them to drown out the other warnings.
14516 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14517 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14518 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14519
14520 # Turn some warnings into errors, so we don't accidently get successful builds
14521 # when there are problems that should be fixed.
14522
14523 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537 xorg_testset_save_CFLAGS="$CFLAGS"
14538
14539 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14542 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14543 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h. */
14548 int i;
14549 _ACEOF
14550 if ac_fn_c_try_compile "$LINENO"; then :
14551 xorg_cv_cc_flag_unknown_warning_option=yes
14552 else
14553 xorg_cv_cc_flag_unknown_warning_option=no
14554 fi
14555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556 fi
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14558 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14560 CFLAGS="$xorg_testset_save_CFLAGS"
14561 fi
14562
14563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14566 fi
14567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14569 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14570 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14575 int i;
14576 _ACEOF
14577 if ac_fn_c_try_compile "$LINENO"; then :
14578 xorg_cv_cc_flag_unused_command_line_argument=yes
14579 else
14580 xorg_cv_cc_flag_unused_command_line_argument=no
14581 fi
14582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14583 fi
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14585 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14587 CFLAGS="$xorg_testset_save_CFLAGS"
14588 fi
14589
14590 found="no"
14591
14592 if test $found = "no" ; then
14593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14595 fi
14596
14597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14599 fi
14600
14601 CFLAGS="$CFLAGS -Werror=implicit"
14602
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14604 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14605 cacheid=xorg_cv_cc_flag__Werror_implicit
14606 if eval \${$cacheid+:} false; then :
14607 $as_echo_n "(cached) " >&6
14608 else
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14611 int i;
14612 int
14613 main ()
14614 {
14615
14616 ;
14617 return 0;
14618 }
14619 _ACEOF
14620 if ac_fn_c_try_link "$LINENO"; then :
14621 eval $cacheid=yes
14622 else
14623 eval $cacheid=no
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
14627 fi
14628
14629
14630 CFLAGS="$xorg_testset_save_CFLAGS"
14631
14632 eval supported=\$$cacheid
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14634 $as_echo "$supported" >&6; }
14635 if test "$supported" = "yes" ; then
14636 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14637 found="yes"
14638 fi
14639 fi
14640
14641 if test $found = "no" ; then
14642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14644 fi
14645
14646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14648 fi
14649
14650 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14651
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14653 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14654 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14655 if eval \${$cacheid+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14660 int i;
14661 int
14662 main ()
14663 {
14664
14665 ;
14666 return 0;
14667 }
14668 _ACEOF
14669 if ac_fn_c_try_link "$LINENO"; then :
14670 eval $cacheid=yes
14671 else
14672 eval $cacheid=no
14673 fi
14674 rm -f core conftest.err conftest.$ac_objext \
14675 conftest$ac_exeext conftest.$ac_ext
14676 fi
14677
14678
14679 CFLAGS="$xorg_testset_save_CFLAGS"
14680
14681 eval supported=\$$cacheid
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14683 $as_echo "$supported" >&6; }
14684 if test "$supported" = "yes" ; then
14685 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14686 found="yes"
14687 fi
14688 fi
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704 xorg_testset_save_CFLAGS="$CFLAGS"
14705
14706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14709 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14710 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14711 $as_echo_n "(cached) " >&6
14712 else
14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 /* end confdefs.h. */
14715 int i;
14716 _ACEOF
14717 if ac_fn_c_try_compile "$LINENO"; then :
14718 xorg_cv_cc_flag_unknown_warning_option=yes
14719 else
14720 xorg_cv_cc_flag_unknown_warning_option=no
14721 fi
14722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14723 fi
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14725 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14727 CFLAGS="$xorg_testset_save_CFLAGS"
14728 fi
14729
14730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14733 fi
14734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14736 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14737 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14738 $as_echo_n "(cached) " >&6
14739 else
14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14742 int i;
14743 _ACEOF
14744 if ac_fn_c_try_compile "$LINENO"; then :
14745 xorg_cv_cc_flag_unused_command_line_argument=yes
14746 else
14747 xorg_cv_cc_flag_unused_command_line_argument=no
14748 fi
14749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750 fi
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14752 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14754 CFLAGS="$xorg_testset_save_CFLAGS"
14755 fi
14756
14757 found="no"
14758
14759 if test $found = "no" ; then
14760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14762 fi
14763
14764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14766 fi
14767
14768 CFLAGS="$CFLAGS -Werror=nonnull"
14769
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14771 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14772 cacheid=xorg_cv_cc_flag__Werror_nonnull
14773 if eval \${$cacheid+:} false; then :
14774 $as_echo_n "(cached) " >&6
14775 else
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14778 int i;
14779 int
14780 main ()
14781 {
14782
14783 ;
14784 return 0;
14785 }
14786 _ACEOF
14787 if ac_fn_c_try_link "$LINENO"; then :
14788 eval $cacheid=yes
14789 else
14790 eval $cacheid=no
14791 fi
14792 rm -f core conftest.err conftest.$ac_objext \
14793 conftest$ac_exeext conftest.$ac_ext
14794 fi
14795
14796
14797 CFLAGS="$xorg_testset_save_CFLAGS"
14798
14799 eval supported=\$$cacheid
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14801 $as_echo "$supported" >&6; }
14802 if test "$supported" = "yes" ; then
14803 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14804 found="yes"
14805 fi
14806 fi
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822 xorg_testset_save_CFLAGS="$CFLAGS"
14823
14824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14827 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14828 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14829 $as_echo_n "(cached) " >&6
14830 else
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14833 int i;
14834 _ACEOF
14835 if ac_fn_c_try_compile "$LINENO"; then :
14836 xorg_cv_cc_flag_unknown_warning_option=yes
14837 else
14838 xorg_cv_cc_flag_unknown_warning_option=no
14839 fi
14840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14841 fi
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14843 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14845 CFLAGS="$xorg_testset_save_CFLAGS"
14846 fi
14847
14848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14851 fi
14852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14854 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14855 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14856 $as_echo_n "(cached) " >&6
14857 else
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14860 int i;
14861 _ACEOF
14862 if ac_fn_c_try_compile "$LINENO"; then :
14863 xorg_cv_cc_flag_unused_command_line_argument=yes
14864 else
14865 xorg_cv_cc_flag_unused_command_line_argument=no
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 fi
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14870 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14872 CFLAGS="$xorg_testset_save_CFLAGS"
14873 fi
14874
14875 found="no"
14876
14877 if test $found = "no" ; then
14878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14880 fi
14881
14882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14884 fi
14885
14886 CFLAGS="$CFLAGS -Werror=init-self"
14887
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14889 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14890 cacheid=xorg_cv_cc_flag__Werror_init_self
14891 if eval \${$cacheid+:} false; then :
14892 $as_echo_n "(cached) " >&6
14893 else
14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h. */
14896 int i;
14897 int
14898 main ()
14899 {
14900
14901 ;
14902 return 0;
14903 }
14904 _ACEOF
14905 if ac_fn_c_try_link "$LINENO"; then :
14906 eval $cacheid=yes
14907 else
14908 eval $cacheid=no
14909 fi
14910 rm -f core conftest.err conftest.$ac_objext \
14911 conftest$ac_exeext conftest.$ac_ext
14912 fi
14913
14914
14915 CFLAGS="$xorg_testset_save_CFLAGS"
14916
14917 eval supported=\$$cacheid
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14919 $as_echo "$supported" >&6; }
14920 if test "$supported" = "yes" ; then
14921 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14922 found="yes"
14923 fi
14924 fi
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940 xorg_testset_save_CFLAGS="$CFLAGS"
14941
14942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14945 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14946 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14947 $as_echo_n "(cached) " >&6
14948 else
14949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14950 /* end confdefs.h. */
14951 int i;
14952 _ACEOF
14953 if ac_fn_c_try_compile "$LINENO"; then :
14954 xorg_cv_cc_flag_unknown_warning_option=yes
14955 else
14956 xorg_cv_cc_flag_unknown_warning_option=no
14957 fi
14958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14959 fi
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14961 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14963 CFLAGS="$xorg_testset_save_CFLAGS"
14964 fi
14965
14966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14969 fi
14970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14972 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14973 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978 int i;
14979 _ACEOF
14980 if ac_fn_c_try_compile "$LINENO"; then :
14981 xorg_cv_cc_flag_unused_command_line_argument=yes
14982 else
14983 xorg_cv_cc_flag_unused_command_line_argument=no
14984 fi
14985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14986 fi
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14988 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14990 CFLAGS="$xorg_testset_save_CFLAGS"
14991 fi
14992
14993 found="no"
14994
14995 if test $found = "no" ; then
14996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14998 fi
14999
15000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15002 fi
15003
15004 CFLAGS="$CFLAGS -Werror=main"
15005
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15007 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15008 cacheid=xorg_cv_cc_flag__Werror_main
15009 if eval \${$cacheid+:} false; then :
15010 $as_echo_n "(cached) " >&6
15011 else
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15014 int i;
15015 int
15016 main ()
15017 {
15018
15019 ;
15020 return 0;
15021 }
15022 _ACEOF
15023 if ac_fn_c_try_link "$LINENO"; then :
15024 eval $cacheid=yes
15025 else
15026 eval $cacheid=no
15027 fi
15028 rm -f core conftest.err conftest.$ac_objext \
15029 conftest$ac_exeext conftest.$ac_ext
15030 fi
15031
15032
15033 CFLAGS="$xorg_testset_save_CFLAGS"
15034
15035 eval supported=\$$cacheid
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15037 $as_echo "$supported" >&6; }
15038 if test "$supported" = "yes" ; then
15039 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15040 found="yes"
15041 fi
15042 fi
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058 xorg_testset_save_CFLAGS="$CFLAGS"
15059
15060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15063 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15064 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15065 $as_echo_n "(cached) " >&6
15066 else
15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h. */
15069 int i;
15070 _ACEOF
15071 if ac_fn_c_try_compile "$LINENO"; then :
15072 xorg_cv_cc_flag_unknown_warning_option=yes
15073 else
15074 xorg_cv_cc_flag_unknown_warning_option=no
15075 fi
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077 fi
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15079 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15081 CFLAGS="$xorg_testset_save_CFLAGS"
15082 fi
15083
15084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15087 fi
15088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15090 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15091 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15092 $as_echo_n "(cached) " >&6
15093 else
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15096 int i;
15097 _ACEOF
15098 if ac_fn_c_try_compile "$LINENO"; then :
15099 xorg_cv_cc_flag_unused_command_line_argument=yes
15100 else
15101 xorg_cv_cc_flag_unused_command_line_argument=no
15102 fi
15103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15104 fi
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15106 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15108 CFLAGS="$xorg_testset_save_CFLAGS"
15109 fi
15110
15111 found="no"
15112
15113 if test $found = "no" ; then
15114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15116 fi
15117
15118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15120 fi
15121
15122 CFLAGS="$CFLAGS -Werror=missing-braces"
15123
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15125 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15126 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15127 if eval \${$cacheid+:} false; then :
15128 $as_echo_n "(cached) " >&6
15129 else
15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131 /* end confdefs.h. */
15132 int i;
15133 int
15134 main ()
15135 {
15136
15137 ;
15138 return 0;
15139 }
15140 _ACEOF
15141 if ac_fn_c_try_link "$LINENO"; then :
15142 eval $cacheid=yes
15143 else
15144 eval $cacheid=no
15145 fi
15146 rm -f core conftest.err conftest.$ac_objext \
15147 conftest$ac_exeext conftest.$ac_ext
15148 fi
15149
15150
15151 CFLAGS="$xorg_testset_save_CFLAGS"
15152
15153 eval supported=\$$cacheid
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15155 $as_echo "$supported" >&6; }
15156 if test "$supported" = "yes" ; then
15157 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15158 found="yes"
15159 fi
15160 fi
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176 xorg_testset_save_CFLAGS="$CFLAGS"
15177
15178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15181 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15182 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15183 $as_echo_n "(cached) " >&6
15184 else
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15187 int i;
15188 _ACEOF
15189 if ac_fn_c_try_compile "$LINENO"; then :
15190 xorg_cv_cc_flag_unknown_warning_option=yes
15191 else
15192 xorg_cv_cc_flag_unknown_warning_option=no
15193 fi
15194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15195 fi
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15197 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15199 CFLAGS="$xorg_testset_save_CFLAGS"
15200 fi
15201
15202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15205 fi
15206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15208 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15209 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214 int i;
15215 _ACEOF
15216 if ac_fn_c_try_compile "$LINENO"; then :
15217 xorg_cv_cc_flag_unused_command_line_argument=yes
15218 else
15219 xorg_cv_cc_flag_unused_command_line_argument=no
15220 fi
15221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 fi
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15224 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15226 CFLAGS="$xorg_testset_save_CFLAGS"
15227 fi
15228
15229 found="no"
15230
15231 if test $found = "no" ; then
15232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15234 fi
15235
15236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15238 fi
15239
15240 CFLAGS="$CFLAGS -Werror=sequence-point"
15241
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15243 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15244 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15245 if eval \${$cacheid+:} false; then :
15246 $as_echo_n "(cached) " >&6
15247 else
15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249 /* end confdefs.h. */
15250 int i;
15251 int
15252 main ()
15253 {
15254
15255 ;
15256 return 0;
15257 }
15258 _ACEOF
15259 if ac_fn_c_try_link "$LINENO"; then :
15260 eval $cacheid=yes
15261 else
15262 eval $cacheid=no
15263 fi
15264 rm -f core conftest.err conftest.$ac_objext \
15265 conftest$ac_exeext conftest.$ac_ext
15266 fi
15267
15268
15269 CFLAGS="$xorg_testset_save_CFLAGS"
15270
15271 eval supported=\$$cacheid
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15273 $as_echo "$supported" >&6; }
15274 if test "$supported" = "yes" ; then
15275 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15276 found="yes"
15277 fi
15278 fi
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294 xorg_testset_save_CFLAGS="$CFLAGS"
15295
15296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15299 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15300 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15301 $as_echo_n "(cached) " >&6
15302 else
15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h. */
15305 int i;
15306 _ACEOF
15307 if ac_fn_c_try_compile "$LINENO"; then :
15308 xorg_cv_cc_flag_unknown_warning_option=yes
15309 else
15310 xorg_cv_cc_flag_unknown_warning_option=no
15311 fi
15312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313 fi
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15315 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15317 CFLAGS="$xorg_testset_save_CFLAGS"
15318 fi
15319
15320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15323 fi
15324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15326 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15327 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15328 $as_echo_n "(cached) " >&6
15329 else
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15332 int i;
15333 _ACEOF
15334 if ac_fn_c_try_compile "$LINENO"; then :
15335 xorg_cv_cc_flag_unused_command_line_argument=yes
15336 else
15337 xorg_cv_cc_flag_unused_command_line_argument=no
15338 fi
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340 fi
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15342 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15344 CFLAGS="$xorg_testset_save_CFLAGS"
15345 fi
15346
15347 found="no"
15348
15349 if test $found = "no" ; then
15350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15352 fi
15353
15354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15356 fi
15357
15358 CFLAGS="$CFLAGS -Werror=return-type"
15359
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15361 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15362 cacheid=xorg_cv_cc_flag__Werror_return_type
15363 if eval \${$cacheid+:} false; then :
15364 $as_echo_n "(cached) " >&6
15365 else
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368 int i;
15369 int
15370 main ()
15371 {
15372
15373 ;
15374 return 0;
15375 }
15376 _ACEOF
15377 if ac_fn_c_try_link "$LINENO"; then :
15378 eval $cacheid=yes
15379 else
15380 eval $cacheid=no
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 fi
15385
15386
15387 CFLAGS="$xorg_testset_save_CFLAGS"
15388
15389 eval supported=\$$cacheid
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15391 $as_echo "$supported" >&6; }
15392 if test "$supported" = "yes" ; then
15393 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15394 found="yes"
15395 fi
15396 fi
15397
15398 if test $found = "no" ; then
15399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15401 fi
15402
15403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15405 fi
15406
15407 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15408
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15410 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15411 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15412 if eval \${$cacheid+:} false; then :
15413 $as_echo_n "(cached) " >&6
15414 else
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15417 int i;
15418 int
15419 main ()
15420 {
15421
15422 ;
15423 return 0;
15424 }
15425 _ACEOF
15426 if ac_fn_c_try_link "$LINENO"; then :
15427 eval $cacheid=yes
15428 else
15429 eval $cacheid=no
15430 fi
15431 rm -f core conftest.err conftest.$ac_objext \
15432 conftest$ac_exeext conftest.$ac_ext
15433 fi
15434
15435
15436 CFLAGS="$xorg_testset_save_CFLAGS"
15437
15438 eval supported=\$$cacheid
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15440 $as_echo "$supported" >&6; }
15441 if test "$supported" = "yes" ; then
15442 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15443 found="yes"
15444 fi
15445 fi
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461 xorg_testset_save_CFLAGS="$CFLAGS"
15462
15463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15466 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15467 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15468 $as_echo_n "(cached) " >&6
15469 else
15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15472 int i;
15473 _ACEOF
15474 if ac_fn_c_try_compile "$LINENO"; then :
15475 xorg_cv_cc_flag_unknown_warning_option=yes
15476 else
15477 xorg_cv_cc_flag_unknown_warning_option=no
15478 fi
15479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15480 fi
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15482 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15484 CFLAGS="$xorg_testset_save_CFLAGS"
15485 fi
15486
15487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15490 fi
15491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15493 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15494 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15495 $as_echo_n "(cached) " >&6
15496 else
15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h. */
15499 int i;
15500 _ACEOF
15501 if ac_fn_c_try_compile "$LINENO"; then :
15502 xorg_cv_cc_flag_unused_command_line_argument=yes
15503 else
15504 xorg_cv_cc_flag_unused_command_line_argument=no
15505 fi
15506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507 fi
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15509 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15511 CFLAGS="$xorg_testset_save_CFLAGS"
15512 fi
15513
15514 found="no"
15515
15516 if test $found = "no" ; then
15517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15519 fi
15520
15521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15523 fi
15524
15525 CFLAGS="$CFLAGS -Werror=trigraphs"
15526
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15528 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15529 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15530 if eval \${$cacheid+:} false; then :
15531 $as_echo_n "(cached) " >&6
15532 else
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h. */
15535 int i;
15536 int
15537 main ()
15538 {
15539
15540 ;
15541 return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_link "$LINENO"; then :
15545 eval $cacheid=yes
15546 else
15547 eval $cacheid=no
15548 fi
15549 rm -f core conftest.err conftest.$ac_objext \
15550 conftest$ac_exeext conftest.$ac_ext
15551 fi
15552
15553
15554 CFLAGS="$xorg_testset_save_CFLAGS"
15555
15556 eval supported=\$$cacheid
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15558 $as_echo "$supported" >&6; }
15559 if test "$supported" = "yes" ; then
15560 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15561 found="yes"
15562 fi
15563 fi
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579 xorg_testset_save_CFLAGS="$CFLAGS"
15580
15581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15586 $as_echo_n "(cached) " >&6
15587 else
15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h. */
15590 int i;
15591 _ACEOF
15592 if ac_fn_c_try_compile "$LINENO"; then :
15593 xorg_cv_cc_flag_unknown_warning_option=yes
15594 else
15595 xorg_cv_cc_flag_unknown_warning_option=no
15596 fi
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 fi
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15602 CFLAGS="$xorg_testset_save_CFLAGS"
15603 fi
15604
15605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15608 fi
15609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15613 $as_echo_n "(cached) " >&6
15614 else
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616 /* end confdefs.h. */
15617 int i;
15618 _ACEOF
15619 if ac_fn_c_try_compile "$LINENO"; then :
15620 xorg_cv_cc_flag_unused_command_line_argument=yes
15621 else
15622 xorg_cv_cc_flag_unused_command_line_argument=no
15623 fi
15624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625 fi
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15629 CFLAGS="$xorg_testset_save_CFLAGS"
15630 fi
15631
15632 found="no"
15633
15634 if test $found = "no" ; then
15635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15637 fi
15638
15639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15641 fi
15642
15643 CFLAGS="$CFLAGS -Werror=array-bounds"
15644
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15646 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15647 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15648 if eval \${$cacheid+:} false; then :
15649 $as_echo_n "(cached) " >&6
15650 else
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653 int i;
15654 int
15655 main ()
15656 {
15657
15658 ;
15659 return 0;
15660 }
15661 _ACEOF
15662 if ac_fn_c_try_link "$LINENO"; then :
15663 eval $cacheid=yes
15664 else
15665 eval $cacheid=no
15666 fi
15667 rm -f core conftest.err conftest.$ac_objext \
15668 conftest$ac_exeext conftest.$ac_ext
15669 fi
15670
15671
15672 CFLAGS="$xorg_testset_save_CFLAGS"
15673
15674 eval supported=\$$cacheid
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15676 $as_echo "$supported" >&6; }
15677 if test "$supported" = "yes" ; then
15678 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15679 found="yes"
15680 fi
15681 fi
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697 xorg_testset_save_CFLAGS="$CFLAGS"
15698
15699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15702 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15704 $as_echo_n "(cached) " >&6
15705 else
15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708 int i;
15709 _ACEOF
15710 if ac_fn_c_try_compile "$LINENO"; then :
15711 xorg_cv_cc_flag_unknown_warning_option=yes
15712 else
15713 xorg_cv_cc_flag_unknown_warning_option=no
15714 fi
15715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15716 fi
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15718 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15720 CFLAGS="$xorg_testset_save_CFLAGS"
15721 fi
15722
15723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15726 fi
15727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15729 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15731 $as_echo_n "(cached) " >&6
15732 else
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15735 int i;
15736 _ACEOF
15737 if ac_fn_c_try_compile "$LINENO"; then :
15738 xorg_cv_cc_flag_unused_command_line_argument=yes
15739 else
15740 xorg_cv_cc_flag_unused_command_line_argument=no
15741 fi
15742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743 fi
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15745 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15747 CFLAGS="$xorg_testset_save_CFLAGS"
15748 fi
15749
15750 found="no"
15751
15752 if test $found = "no" ; then
15753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15755 fi
15756
15757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15759 fi
15760
15761 CFLAGS="$CFLAGS -Werror=write-strings"
15762
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15764 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15765 cacheid=xorg_cv_cc_flag__Werror_write_strings
15766 if eval \${$cacheid+:} false; then :
15767 $as_echo_n "(cached) " >&6
15768 else
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h. */
15771 int i;
15772 int
15773 main ()
15774 {
15775
15776 ;
15777 return 0;
15778 }
15779 _ACEOF
15780 if ac_fn_c_try_link "$LINENO"; then :
15781 eval $cacheid=yes
15782 else
15783 eval $cacheid=no
15784 fi
15785 rm -f core conftest.err conftest.$ac_objext \
15786 conftest$ac_exeext conftest.$ac_ext
15787 fi
15788
15789
15790 CFLAGS="$xorg_testset_save_CFLAGS"
15791
15792 eval supported=\$$cacheid
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15794 $as_echo "$supported" >&6; }
15795 if test "$supported" = "yes" ; then
15796 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15797 found="yes"
15798 fi
15799 fi
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815 xorg_testset_save_CFLAGS="$CFLAGS"
15816
15817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15820 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15822 $as_echo_n "(cached) " >&6
15823 else
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15826 int i;
15827 _ACEOF
15828 if ac_fn_c_try_compile "$LINENO"; then :
15829 xorg_cv_cc_flag_unknown_warning_option=yes
15830 else
15831 xorg_cv_cc_flag_unknown_warning_option=no
15832 fi
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15834 fi
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15836 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15838 CFLAGS="$xorg_testset_save_CFLAGS"
15839 fi
15840
15841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15844 fi
15845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15847 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15849 $as_echo_n "(cached) " >&6
15850 else
15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15853 int i;
15854 _ACEOF
15855 if ac_fn_c_try_compile "$LINENO"; then :
15856 xorg_cv_cc_flag_unused_command_line_argument=yes
15857 else
15858 xorg_cv_cc_flag_unused_command_line_argument=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15861 fi
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15863 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15865 CFLAGS="$xorg_testset_save_CFLAGS"
15866 fi
15867
15868 found="no"
15869
15870 if test $found = "no" ; then
15871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15873 fi
15874
15875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15877 fi
15878
15879 CFLAGS="$CFLAGS -Werror=address"
15880
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15882 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15883 cacheid=xorg_cv_cc_flag__Werror_address
15884 if eval \${$cacheid+:} false; then :
15885 $as_echo_n "(cached) " >&6
15886 else
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889 int i;
15890 int
15891 main ()
15892 {
15893
15894 ;
15895 return 0;
15896 }
15897 _ACEOF
15898 if ac_fn_c_try_link "$LINENO"; then :
15899 eval $cacheid=yes
15900 else
15901 eval $cacheid=no
15902 fi
15903 rm -f core conftest.err conftest.$ac_objext \
15904 conftest$ac_exeext conftest.$ac_ext
15905 fi
15906
15907
15908 CFLAGS="$xorg_testset_save_CFLAGS"
15909
15910 eval supported=\$$cacheid
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15912 $as_echo "$supported" >&6; }
15913 if test "$supported" = "yes" ; then
15914 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15915 found="yes"
15916 fi
15917 fi
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933 xorg_testset_save_CFLAGS="$CFLAGS"
15934
15935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15940 $as_echo_n "(cached) " >&6
15941 else
15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15944 int i;
15945 _ACEOF
15946 if ac_fn_c_try_compile "$LINENO"; then :
15947 xorg_cv_cc_flag_unknown_warning_option=yes
15948 else
15949 xorg_cv_cc_flag_unknown_warning_option=no
15950 fi
15951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952 fi
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15956 CFLAGS="$xorg_testset_save_CFLAGS"
15957 fi
15958
15959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15962 fi
15963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15967 $as_echo_n "(cached) " >&6
15968 else
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15971 int i;
15972 _ACEOF
15973 if ac_fn_c_try_compile "$LINENO"; then :
15974 xorg_cv_cc_flag_unused_command_line_argument=yes
15975 else
15976 xorg_cv_cc_flag_unused_command_line_argument=no
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 fi
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15983 CFLAGS="$xorg_testset_save_CFLAGS"
15984 fi
15985
15986 found="no"
15987
15988 if test $found = "no" ; then
15989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15991 fi
15992
15993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15995 fi
15996
15997 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15998
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16000 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16001 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16002 if eval \${$cacheid+:} false; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 int i;
16008 int
16009 main ()
16010 {
16011
16012 ;
16013 return 0;
16014 }
16015 _ACEOF
16016 if ac_fn_c_try_link "$LINENO"; then :
16017 eval $cacheid=yes
16018 else
16019 eval $cacheid=no
16020 fi
16021 rm -f core conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
16023 fi
16024
16025
16026 CFLAGS="$xorg_testset_save_CFLAGS"
16027
16028 eval supported=\$$cacheid
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16030 $as_echo "$supported" >&6; }
16031 if test "$supported" = "yes" ; then
16032 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16033 found="yes"
16034 fi
16035 fi
16036
16037 if test $found = "no" ; then
16038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16040 fi
16041
16042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16044 fi
16045
16046 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16047
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16049 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16050 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16051 if eval \${$cacheid+:} false; then :
16052 $as_echo_n "(cached) " >&6
16053 else
16054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h. */
16056 int i;
16057 int
16058 main ()
16059 {
16060
16061 ;
16062 return 0;
16063 }
16064 _ACEOF
16065 if ac_fn_c_try_link "$LINENO"; then :
16066 eval $cacheid=yes
16067 else
16068 eval $cacheid=no
16069 fi
16070 rm -f core conftest.err conftest.$ac_objext \
16071 conftest$ac_exeext conftest.$ac_ext
16072 fi
16073
16074
16075 CFLAGS="$xorg_testset_save_CFLAGS"
16076
16077 eval supported=\$$cacheid
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16079 $as_echo "$supported" >&6; }
16080 if test "$supported" = "yes" ; then
16081 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16082 found="yes"
16083 fi
16084 fi
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100 xorg_testset_save_CFLAGS="$CFLAGS"
16101
16102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16105 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16106 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16107 $as_echo_n "(cached) " >&6
16108 else
16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16111 int i;
16112 _ACEOF
16113 if ac_fn_c_try_compile "$LINENO"; then :
16114 xorg_cv_cc_flag_unknown_warning_option=yes
16115 else
16116 xorg_cv_cc_flag_unknown_warning_option=no
16117 fi
16118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 fi
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16121 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16123 CFLAGS="$xorg_testset_save_CFLAGS"
16124 fi
16125
16126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16129 fi
16130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16132 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16133 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16134 $as_echo_n "(cached) " >&6
16135 else
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16138 int i;
16139 _ACEOF
16140 if ac_fn_c_try_compile "$LINENO"; then :
16141 xorg_cv_cc_flag_unused_command_line_argument=yes
16142 else
16143 xorg_cv_cc_flag_unused_command_line_argument=no
16144 fi
16145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16146 fi
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16148 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16150 CFLAGS="$xorg_testset_save_CFLAGS"
16151 fi
16152
16153 found="no"
16154
16155 if test $found = "no" ; then
16156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16158 fi
16159
16160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16162 fi
16163
16164 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16165
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16167 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16168 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16169 if eval \${$cacheid+:} false; then :
16170 $as_echo_n "(cached) " >&6
16171 else
16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173 /* end confdefs.h. */
16174 int i;
16175 int
16176 main ()
16177 {
16178
16179 ;
16180 return 0;
16181 }
16182 _ACEOF
16183 if ac_fn_c_try_link "$LINENO"; then :
16184 eval $cacheid=yes
16185 else
16186 eval $cacheid=no
16187 fi
16188 rm -f core conftest.err conftest.$ac_objext \
16189 conftest$ac_exeext conftest.$ac_ext
16190 fi
16191
16192
16193 CFLAGS="$xorg_testset_save_CFLAGS"
16194
16195 eval supported=\$$cacheid
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16197 $as_echo "$supported" >&6; }
16198 if test "$supported" = "yes" ; then
16199 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16200 found="yes"
16201 fi
16202 fi
16203
16204 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16205 else
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
16207 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221 xorg_testset_save_CFLAGS="$CFLAGS"
16222
16223 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16226 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16227 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16228 $as_echo_n "(cached) " >&6
16229 else
16230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231 /* end confdefs.h. */
16232 int i;
16233 _ACEOF
16234 if ac_fn_c_try_compile "$LINENO"; then :
16235 xorg_cv_cc_flag_unknown_warning_option=yes
16236 else
16237 xorg_cv_cc_flag_unknown_warning_option=no
16238 fi
16239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 fi
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16242 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16244 CFLAGS="$xorg_testset_save_CFLAGS"
16245 fi
16246
16247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16250 fi
16251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16253 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16254 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16255 $as_echo_n "(cached) " >&6
16256 else
16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16259 int i;
16260 _ACEOF
16261 if ac_fn_c_try_compile "$LINENO"; then :
16262 xorg_cv_cc_flag_unused_command_line_argument=yes
16263 else
16264 xorg_cv_cc_flag_unused_command_line_argument=no
16265 fi
16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267 fi
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16269 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16271 CFLAGS="$xorg_testset_save_CFLAGS"
16272 fi
16273
16274 found="no"
16275
16276 if test $found = "no" ; then
16277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16279 fi
16280
16281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16283 fi
16284
16285 CFLAGS="$CFLAGS -Wimplicit"
16286
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16288 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16289 cacheid=xorg_cv_cc_flag__Wimplicit
16290 if eval \${$cacheid+:} false; then :
16291 $as_echo_n "(cached) " >&6
16292 else
16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294 /* end confdefs.h. */
16295 int i;
16296 int
16297 main ()
16298 {
16299
16300 ;
16301 return 0;
16302 }
16303 _ACEOF
16304 if ac_fn_c_try_link "$LINENO"; then :
16305 eval $cacheid=yes
16306 else
16307 eval $cacheid=no
16308 fi
16309 rm -f core conftest.err conftest.$ac_objext \
16310 conftest$ac_exeext conftest.$ac_ext
16311 fi
16312
16313
16314 CFLAGS="$xorg_testset_save_CFLAGS"
16315
16316 eval supported=\$$cacheid
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16318 $as_echo "$supported" >&6; }
16319 if test "$supported" = "yes" ; then
16320 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16321 found="yes"
16322 fi
16323 fi
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339 xorg_testset_save_CFLAGS="$CFLAGS"
16340
16341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16344 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16345 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16346 $as_echo_n "(cached) " >&6
16347 else
16348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16349 /* end confdefs.h. */
16350 int i;
16351 _ACEOF
16352 if ac_fn_c_try_compile "$LINENO"; then :
16353 xorg_cv_cc_flag_unknown_warning_option=yes
16354 else
16355 xorg_cv_cc_flag_unknown_warning_option=no
16356 fi
16357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16358 fi
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16360 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16362 CFLAGS="$xorg_testset_save_CFLAGS"
16363 fi
16364
16365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16368 fi
16369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16371 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16372 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16373 $as_echo_n "(cached) " >&6
16374 else
16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376 /* end confdefs.h. */
16377 int i;
16378 _ACEOF
16379 if ac_fn_c_try_compile "$LINENO"; then :
16380 xorg_cv_cc_flag_unused_command_line_argument=yes
16381 else
16382 xorg_cv_cc_flag_unused_command_line_argument=no
16383 fi
16384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16385 fi
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16387 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16389 CFLAGS="$xorg_testset_save_CFLAGS"
16390 fi
16391
16392 found="no"
16393
16394 if test $found = "no" ; then
16395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16397 fi
16398
16399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16401 fi
16402
16403 CFLAGS="$CFLAGS -Wnonnull"
16404
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16406 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16407 cacheid=xorg_cv_cc_flag__Wnonnull
16408 if eval \${$cacheid+:} false; then :
16409 $as_echo_n "(cached) " >&6
16410 else
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16413 int i;
16414 int
16415 main ()
16416 {
16417
16418 ;
16419 return 0;
16420 }
16421 _ACEOF
16422 if ac_fn_c_try_link "$LINENO"; then :
16423 eval $cacheid=yes
16424 else
16425 eval $cacheid=no
16426 fi
16427 rm -f core conftest.err conftest.$ac_objext \
16428 conftest$ac_exeext conftest.$ac_ext
16429 fi
16430
16431
16432 CFLAGS="$xorg_testset_save_CFLAGS"
16433
16434 eval supported=\$$cacheid
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16436 $as_echo "$supported" >&6; }
16437 if test "$supported" = "yes" ; then
16438 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16439 found="yes"
16440 fi
16441 fi
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457 xorg_testset_save_CFLAGS="$CFLAGS"
16458
16459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16462 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16463 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16464 $as_echo_n "(cached) " >&6
16465 else
16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16468 int i;
16469 _ACEOF
16470 if ac_fn_c_try_compile "$LINENO"; then :
16471 xorg_cv_cc_flag_unknown_warning_option=yes
16472 else
16473 xorg_cv_cc_flag_unknown_warning_option=no
16474 fi
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 fi
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16478 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16480 CFLAGS="$xorg_testset_save_CFLAGS"
16481 fi
16482
16483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16486 fi
16487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16489 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16490 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16491 $as_echo_n "(cached) " >&6
16492 else
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16495 int i;
16496 _ACEOF
16497 if ac_fn_c_try_compile "$LINENO"; then :
16498 xorg_cv_cc_flag_unused_command_line_argument=yes
16499 else
16500 xorg_cv_cc_flag_unused_command_line_argument=no
16501 fi
16502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16503 fi
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16505 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16507 CFLAGS="$xorg_testset_save_CFLAGS"
16508 fi
16509
16510 found="no"
16511
16512 if test $found = "no" ; then
16513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16515 fi
16516
16517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16519 fi
16520
16521 CFLAGS="$CFLAGS -Winit-self"
16522
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16524 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16525 cacheid=xorg_cv_cc_flag__Winit_self
16526 if eval \${$cacheid+:} false; then :
16527 $as_echo_n "(cached) " >&6
16528 else
16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h. */
16531 int i;
16532 int
16533 main ()
16534 {
16535
16536 ;
16537 return 0;
16538 }
16539 _ACEOF
16540 if ac_fn_c_try_link "$LINENO"; then :
16541 eval $cacheid=yes
16542 else
16543 eval $cacheid=no
16544 fi
16545 rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547 fi
16548
16549
16550 CFLAGS="$xorg_testset_save_CFLAGS"
16551
16552 eval supported=\$$cacheid
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16554 $as_echo "$supported" >&6; }
16555 if test "$supported" = "yes" ; then
16556 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16557 found="yes"
16558 fi
16559 fi
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575 xorg_testset_save_CFLAGS="$CFLAGS"
16576
16577 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16580 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16581 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16582 $as_echo_n "(cached) " >&6
16583 else
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16586 int i;
16587 _ACEOF
16588 if ac_fn_c_try_compile "$LINENO"; then :
16589 xorg_cv_cc_flag_unknown_warning_option=yes
16590 else
16591 xorg_cv_cc_flag_unknown_warning_option=no
16592 fi
16593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594 fi
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16596 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16598 CFLAGS="$xorg_testset_save_CFLAGS"
16599 fi
16600
16601 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16604 fi
16605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16607 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16608 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16609 $as_echo_n "(cached) " >&6
16610 else
16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h. */
16613 int i;
16614 _ACEOF
16615 if ac_fn_c_try_compile "$LINENO"; then :
16616 xorg_cv_cc_flag_unused_command_line_argument=yes
16617 else
16618 xorg_cv_cc_flag_unused_command_line_argument=no
16619 fi
16620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621 fi
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16623 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16625 CFLAGS="$xorg_testset_save_CFLAGS"
16626 fi
16627
16628 found="no"
16629
16630 if test $found = "no" ; then
16631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16633 fi
16634
16635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16637 fi
16638
16639 CFLAGS="$CFLAGS -Wmain"
16640
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16642 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16643 cacheid=xorg_cv_cc_flag__Wmain
16644 if eval \${$cacheid+:} false; then :
16645 $as_echo_n "(cached) " >&6
16646 else
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h. */
16649 int i;
16650 int
16651 main ()
16652 {
16653
16654 ;
16655 return 0;
16656 }
16657 _ACEOF
16658 if ac_fn_c_try_link "$LINENO"; then :
16659 eval $cacheid=yes
16660 else
16661 eval $cacheid=no
16662 fi
16663 rm -f core conftest.err conftest.$ac_objext \
16664 conftest$ac_exeext conftest.$ac_ext
16665 fi
16666
16667
16668 CFLAGS="$xorg_testset_save_CFLAGS"
16669
16670 eval supported=\$$cacheid
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16672 $as_echo "$supported" >&6; }
16673 if test "$supported" = "yes" ; then
16674 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16675 found="yes"
16676 fi
16677 fi
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693 xorg_testset_save_CFLAGS="$CFLAGS"
16694
16695 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16698 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16699 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16700 $as_echo_n "(cached) " >&6
16701 else
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16704 int i;
16705 _ACEOF
16706 if ac_fn_c_try_compile "$LINENO"; then :
16707 xorg_cv_cc_flag_unknown_warning_option=yes
16708 else
16709 xorg_cv_cc_flag_unknown_warning_option=no
16710 fi
16711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16712 fi
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16714 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16716 CFLAGS="$xorg_testset_save_CFLAGS"
16717 fi
16718
16719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16722 fi
16723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16725 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16726 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16727 $as_echo_n "(cached) " >&6
16728 else
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16731 int i;
16732 _ACEOF
16733 if ac_fn_c_try_compile "$LINENO"; then :
16734 xorg_cv_cc_flag_unused_command_line_argument=yes
16735 else
16736 xorg_cv_cc_flag_unused_command_line_argument=no
16737 fi
16738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16739 fi
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16741 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16743 CFLAGS="$xorg_testset_save_CFLAGS"
16744 fi
16745
16746 found="no"
16747
16748 if test $found = "no" ; then
16749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16751 fi
16752
16753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16755 fi
16756
16757 CFLAGS="$CFLAGS -Wmissing-braces"
16758
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16760 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16761 cacheid=xorg_cv_cc_flag__Wmissing_braces
16762 if eval \${$cacheid+:} false; then :
16763 $as_echo_n "(cached) " >&6
16764 else
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16767 int i;
16768 int
16769 main ()
16770 {
16771
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 if ac_fn_c_try_link "$LINENO"; then :
16777 eval $cacheid=yes
16778 else
16779 eval $cacheid=no
16780 fi
16781 rm -f core conftest.err conftest.$ac_objext \
16782 conftest$ac_exeext conftest.$ac_ext
16783 fi
16784
16785
16786 CFLAGS="$xorg_testset_save_CFLAGS"
16787
16788 eval supported=\$$cacheid
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16790 $as_echo "$supported" >&6; }
16791 if test "$supported" = "yes" ; then
16792 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16793 found="yes"
16794 fi
16795 fi
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811 xorg_testset_save_CFLAGS="$CFLAGS"
16812
16813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16816 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16817 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16818 $as_echo_n "(cached) " >&6
16819 else
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16822 int i;
16823 _ACEOF
16824 if ac_fn_c_try_compile "$LINENO"; then :
16825 xorg_cv_cc_flag_unknown_warning_option=yes
16826 else
16827 xorg_cv_cc_flag_unknown_warning_option=no
16828 fi
16829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16830 fi
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16832 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16834 CFLAGS="$xorg_testset_save_CFLAGS"
16835 fi
16836
16837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16840 fi
16841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16843 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16844 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16845 $as_echo_n "(cached) " >&6
16846 else
16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h. */
16849 int i;
16850 _ACEOF
16851 if ac_fn_c_try_compile "$LINENO"; then :
16852 xorg_cv_cc_flag_unused_command_line_argument=yes
16853 else
16854 xorg_cv_cc_flag_unused_command_line_argument=no
16855 fi
16856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857 fi
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16859 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16861 CFLAGS="$xorg_testset_save_CFLAGS"
16862 fi
16863
16864 found="no"
16865
16866 if test $found = "no" ; then
16867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16869 fi
16870
16871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16873 fi
16874
16875 CFLAGS="$CFLAGS -Wsequence-point"
16876
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16878 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16879 cacheid=xorg_cv_cc_flag__Wsequence_point
16880 if eval \${$cacheid+:} false; then :
16881 $as_echo_n "(cached) " >&6
16882 else
16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h. */
16885 int i;
16886 int
16887 main ()
16888 {
16889
16890 ;
16891 return 0;
16892 }
16893 _ACEOF
16894 if ac_fn_c_try_link "$LINENO"; then :
16895 eval $cacheid=yes
16896 else
16897 eval $cacheid=no
16898 fi
16899 rm -f core conftest.err conftest.$ac_objext \
16900 conftest$ac_exeext conftest.$ac_ext
16901 fi
16902
16903
16904 CFLAGS="$xorg_testset_save_CFLAGS"
16905
16906 eval supported=\$$cacheid
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16908 $as_echo "$supported" >&6; }
16909 if test "$supported" = "yes" ; then
16910 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16911 found="yes"
16912 fi
16913 fi
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929 xorg_testset_save_CFLAGS="$CFLAGS"
16930
16931 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16934 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16935 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16936 $as_echo_n "(cached) " >&6
16937 else
16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16940 int i;
16941 _ACEOF
16942 if ac_fn_c_try_compile "$LINENO"; then :
16943 xorg_cv_cc_flag_unknown_warning_option=yes
16944 else
16945 xorg_cv_cc_flag_unknown_warning_option=no
16946 fi
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 fi
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16950 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16952 CFLAGS="$xorg_testset_save_CFLAGS"
16953 fi
16954
16955 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16958 fi
16959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16961 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16962 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16963 $as_echo_n "(cached) " >&6
16964 else
16965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966 /* end confdefs.h. */
16967 int i;
16968 _ACEOF
16969 if ac_fn_c_try_compile "$LINENO"; then :
16970 xorg_cv_cc_flag_unused_command_line_argument=yes
16971 else
16972 xorg_cv_cc_flag_unused_command_line_argument=no
16973 fi
16974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975 fi
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16977 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16979 CFLAGS="$xorg_testset_save_CFLAGS"
16980 fi
16981
16982 found="no"
16983
16984 if test $found = "no" ; then
16985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16987 fi
16988
16989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16991 fi
16992
16993 CFLAGS="$CFLAGS -Wreturn-type"
16994
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16996 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16997 cacheid=xorg_cv_cc_flag__Wreturn_type
16998 if eval \${$cacheid+:} false; then :
16999 $as_echo_n "(cached) " >&6
17000 else
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h. */
17003 int i;
17004 int
17005 main ()
17006 {
17007
17008 ;
17009 return 0;
17010 }
17011 _ACEOF
17012 if ac_fn_c_try_link "$LINENO"; then :
17013 eval $cacheid=yes
17014 else
17015 eval $cacheid=no
17016 fi
17017 rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17019 fi
17020
17021
17022 CFLAGS="$xorg_testset_save_CFLAGS"
17023
17024 eval supported=\$$cacheid
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17026 $as_echo "$supported" >&6; }
17027 if test "$supported" = "yes" ; then
17028 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17029 found="yes"
17030 fi
17031 fi
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047 xorg_testset_save_CFLAGS="$CFLAGS"
17048
17049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17052 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17053 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17054 $as_echo_n "(cached) " >&6
17055 else
17056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17057 /* end confdefs.h. */
17058 int i;
17059 _ACEOF
17060 if ac_fn_c_try_compile "$LINENO"; then :
17061 xorg_cv_cc_flag_unknown_warning_option=yes
17062 else
17063 xorg_cv_cc_flag_unknown_warning_option=no
17064 fi
17065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17066 fi
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17068 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17070 CFLAGS="$xorg_testset_save_CFLAGS"
17071 fi
17072
17073 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17076 fi
17077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17079 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17080 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17081 $as_echo_n "(cached) " >&6
17082 else
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17085 int i;
17086 _ACEOF
17087 if ac_fn_c_try_compile "$LINENO"; then :
17088 xorg_cv_cc_flag_unused_command_line_argument=yes
17089 else
17090 xorg_cv_cc_flag_unused_command_line_argument=no
17091 fi
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093 fi
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17095 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17097 CFLAGS="$xorg_testset_save_CFLAGS"
17098 fi
17099
17100 found="no"
17101
17102 if test $found = "no" ; then
17103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17105 fi
17106
17107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17109 fi
17110
17111 CFLAGS="$CFLAGS -Wtrigraphs"
17112
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17114 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17115 cacheid=xorg_cv_cc_flag__Wtrigraphs
17116 if eval \${$cacheid+:} false; then :
17117 $as_echo_n "(cached) " >&6
17118 else
17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120 /* end confdefs.h. */
17121 int i;
17122 int
17123 main ()
17124 {
17125
17126 ;
17127 return 0;
17128 }
17129 _ACEOF
17130 if ac_fn_c_try_link "$LINENO"; then :
17131 eval $cacheid=yes
17132 else
17133 eval $cacheid=no
17134 fi
17135 rm -f core conftest.err conftest.$ac_objext \
17136 conftest$ac_exeext conftest.$ac_ext
17137 fi
17138
17139
17140 CFLAGS="$xorg_testset_save_CFLAGS"
17141
17142 eval supported=\$$cacheid
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17144 $as_echo "$supported" >&6; }
17145 if test "$supported" = "yes" ; then
17146 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17147 found="yes"
17148 fi
17149 fi
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165 xorg_testset_save_CFLAGS="$CFLAGS"
17166
17167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17172 $as_echo_n "(cached) " >&6
17173 else
17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h. */
17176 int i;
17177 _ACEOF
17178 if ac_fn_c_try_compile "$LINENO"; then :
17179 xorg_cv_cc_flag_unknown_warning_option=yes
17180 else
17181 xorg_cv_cc_flag_unknown_warning_option=no
17182 fi
17183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17184 fi
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17188 CFLAGS="$xorg_testset_save_CFLAGS"
17189 fi
17190
17191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17194 fi
17195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17199 $as_echo_n "(cached) " >&6
17200 else
17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h. */
17203 int i;
17204 _ACEOF
17205 if ac_fn_c_try_compile "$LINENO"; then :
17206 xorg_cv_cc_flag_unused_command_line_argument=yes
17207 else
17208 xorg_cv_cc_flag_unused_command_line_argument=no
17209 fi
17210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17211 fi
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17215 CFLAGS="$xorg_testset_save_CFLAGS"
17216 fi
17217
17218 found="no"
17219
17220 if test $found = "no" ; then
17221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17223 fi
17224
17225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17227 fi
17228
17229 CFLAGS="$CFLAGS -Warray-bounds"
17230
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17232 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17233 cacheid=xorg_cv_cc_flag__Warray_bounds
17234 if eval \${$cacheid+:} false; then :
17235 $as_echo_n "(cached) " >&6
17236 else
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h. */
17239 int i;
17240 int
17241 main ()
17242 {
17243
17244 ;
17245 return 0;
17246 }
17247 _ACEOF
17248 if ac_fn_c_try_link "$LINENO"; then :
17249 eval $cacheid=yes
17250 else
17251 eval $cacheid=no
17252 fi
17253 rm -f core conftest.err conftest.$ac_objext \
17254 conftest$ac_exeext conftest.$ac_ext
17255 fi
17256
17257
17258 CFLAGS="$xorg_testset_save_CFLAGS"
17259
17260 eval supported=\$$cacheid
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17262 $as_echo "$supported" >&6; }
17263 if test "$supported" = "yes" ; then
17264 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17265 found="yes"
17266 fi
17267 fi
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283 xorg_testset_save_CFLAGS="$CFLAGS"
17284
17285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17288 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17289 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17290 $as_echo_n "(cached) " >&6
17291 else
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17294 int i;
17295 _ACEOF
17296 if ac_fn_c_try_compile "$LINENO"; then :
17297 xorg_cv_cc_flag_unknown_warning_option=yes
17298 else
17299 xorg_cv_cc_flag_unknown_warning_option=no
17300 fi
17301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17302 fi
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17304 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17306 CFLAGS="$xorg_testset_save_CFLAGS"
17307 fi
17308
17309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17312 fi
17313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17315 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17316 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17317 $as_echo_n "(cached) " >&6
17318 else
17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h. */
17321 int i;
17322 _ACEOF
17323 if ac_fn_c_try_compile "$LINENO"; then :
17324 xorg_cv_cc_flag_unused_command_line_argument=yes
17325 else
17326 xorg_cv_cc_flag_unused_command_line_argument=no
17327 fi
17328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329 fi
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17331 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17333 CFLAGS="$xorg_testset_save_CFLAGS"
17334 fi
17335
17336 found="no"
17337
17338 if test $found = "no" ; then
17339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17341 fi
17342
17343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17345 fi
17346
17347 CFLAGS="$CFLAGS -Wwrite-strings"
17348
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17350 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17351 cacheid=xorg_cv_cc_flag__Wwrite_strings
17352 if eval \${$cacheid+:} false; then :
17353 $as_echo_n "(cached) " >&6
17354 else
17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h. */
17357 int i;
17358 int
17359 main ()
17360 {
17361
17362 ;
17363 return 0;
17364 }
17365 _ACEOF
17366 if ac_fn_c_try_link "$LINENO"; then :
17367 eval $cacheid=yes
17368 else
17369 eval $cacheid=no
17370 fi
17371 rm -f core conftest.err conftest.$ac_objext \
17372 conftest$ac_exeext conftest.$ac_ext
17373 fi
17374
17375
17376 CFLAGS="$xorg_testset_save_CFLAGS"
17377
17378 eval supported=\$$cacheid
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17380 $as_echo "$supported" >&6; }
17381 if test "$supported" = "yes" ; then
17382 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17383 found="yes"
17384 fi
17385 fi
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401 xorg_testset_save_CFLAGS="$CFLAGS"
17402
17403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17406 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17407 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17408 $as_echo_n "(cached) " >&6
17409 else
17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h. */
17412 int i;
17413 _ACEOF
17414 if ac_fn_c_try_compile "$LINENO"; then :
17415 xorg_cv_cc_flag_unknown_warning_option=yes
17416 else
17417 xorg_cv_cc_flag_unknown_warning_option=no
17418 fi
17419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420 fi
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17422 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17424 CFLAGS="$xorg_testset_save_CFLAGS"
17425 fi
17426
17427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17430 fi
17431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17433 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17434 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17435 $as_echo_n "(cached) " >&6
17436 else
17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438 /* end confdefs.h. */
17439 int i;
17440 _ACEOF
17441 if ac_fn_c_try_compile "$LINENO"; then :
17442 xorg_cv_cc_flag_unused_command_line_argument=yes
17443 else
17444 xorg_cv_cc_flag_unused_command_line_argument=no
17445 fi
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 fi
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17449 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17451 CFLAGS="$xorg_testset_save_CFLAGS"
17452 fi
17453
17454 found="no"
17455
17456 if test $found = "no" ; then
17457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17459 fi
17460
17461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17463 fi
17464
17465 CFLAGS="$CFLAGS -Waddress"
17466
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17468 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17469 cacheid=xorg_cv_cc_flag__Waddress
17470 if eval \${$cacheid+:} false; then :
17471 $as_echo_n "(cached) " >&6
17472 else
17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h. */
17475 int i;
17476 int
17477 main ()
17478 {
17479
17480 ;
17481 return 0;
17482 }
17483 _ACEOF
17484 if ac_fn_c_try_link "$LINENO"; then :
17485 eval $cacheid=yes
17486 else
17487 eval $cacheid=no
17488 fi
17489 rm -f core conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext conftest.$ac_ext
17491 fi
17492
17493
17494 CFLAGS="$xorg_testset_save_CFLAGS"
17495
17496 eval supported=\$$cacheid
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17498 $as_echo "$supported" >&6; }
17499 if test "$supported" = "yes" ; then
17500 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17501 found="yes"
17502 fi
17503 fi
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519 xorg_testset_save_CFLAGS="$CFLAGS"
17520
17521 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17524 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17525 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17526 $as_echo_n "(cached) " >&6
17527 else
17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529 /* end confdefs.h. */
17530 int i;
17531 _ACEOF
17532 if ac_fn_c_try_compile "$LINENO"; then :
17533 xorg_cv_cc_flag_unknown_warning_option=yes
17534 else
17535 xorg_cv_cc_flag_unknown_warning_option=no
17536 fi
17537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17538 fi
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17540 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17542 CFLAGS="$xorg_testset_save_CFLAGS"
17543 fi
17544
17545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17548 fi
17549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17551 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17552 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17553 $as_echo_n "(cached) " >&6
17554 else
17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17557 int i;
17558 _ACEOF
17559 if ac_fn_c_try_compile "$LINENO"; then :
17560 xorg_cv_cc_flag_unused_command_line_argument=yes
17561 else
17562 xorg_cv_cc_flag_unused_command_line_argument=no
17563 fi
17564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17565 fi
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17567 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17569 CFLAGS="$xorg_testset_save_CFLAGS"
17570 fi
17571
17572 found="no"
17573
17574 if test $found = "no" ; then
17575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17577 fi
17578
17579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17581 fi
17582
17583 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17584
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17586 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17587 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17588 if eval \${$cacheid+:} false; then :
17589 $as_echo_n "(cached) " >&6
17590 else
17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h. */
17593 int i;
17594 int
17595 main ()
17596 {
17597
17598 ;
17599 return 0;
17600 }
17601 _ACEOF
17602 if ac_fn_c_try_link "$LINENO"; then :
17603 eval $cacheid=yes
17604 else
17605 eval $cacheid=no
17606 fi
17607 rm -f core conftest.err conftest.$ac_objext \
17608 conftest$ac_exeext conftest.$ac_ext
17609 fi
17610
17611
17612 CFLAGS="$xorg_testset_save_CFLAGS"
17613
17614 eval supported=\$$cacheid
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17616 $as_echo "$supported" >&6; }
17617 if test "$supported" = "yes" ; then
17618 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17619 found="yes"
17620 fi
17621 fi
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637 xorg_testset_save_CFLAGS="$CFLAGS"
17638
17639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17642 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17643 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17644 $as_echo_n "(cached) " >&6
17645 else
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17648 int i;
17649 _ACEOF
17650 if ac_fn_c_try_compile "$LINENO"; then :
17651 xorg_cv_cc_flag_unknown_warning_option=yes
17652 else
17653 xorg_cv_cc_flag_unknown_warning_option=no
17654 fi
17655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17656 fi
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17658 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17660 CFLAGS="$xorg_testset_save_CFLAGS"
17661 fi
17662
17663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17666 fi
17667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17669 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17670 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17671 $as_echo_n "(cached) " >&6
17672 else
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17675 int i;
17676 _ACEOF
17677 if ac_fn_c_try_compile "$LINENO"; then :
17678 xorg_cv_cc_flag_unused_command_line_argument=yes
17679 else
17680 xorg_cv_cc_flag_unused_command_line_argument=no
17681 fi
17682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17683 fi
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17685 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17687 CFLAGS="$xorg_testset_save_CFLAGS"
17688 fi
17689
17690 found="no"
17691
17692 if test $found = "no" ; then
17693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17695 fi
17696
17697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17699 fi
17700
17701 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17702
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17704 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17705 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17706 if eval \${$cacheid+:} false; then :
17707 $as_echo_n "(cached) " >&6
17708 else
17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h. */
17711 int i;
17712 int
17713 main ()
17714 {
17715
17716 ;
17717 return 0;
17718 }
17719 _ACEOF
17720 if ac_fn_c_try_link "$LINENO"; then :
17721 eval $cacheid=yes
17722 else
17723 eval $cacheid=no
17724 fi
17725 rm -f core conftest.err conftest.$ac_objext \
17726 conftest$ac_exeext conftest.$ac_ext
17727 fi
17728
17729
17730 CFLAGS="$xorg_testset_save_CFLAGS"
17731
17732 eval supported=\$$cacheid
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17734 $as_echo "$supported" >&6; }
17735 if test "$supported" = "yes" ; then
17736 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17737 found="yes"
17738 fi
17739 fi
17740
17741
17742 fi
17743
17744
17745
17746
17747
17748
17749
17750 CWARNFLAGS="$BASE_CFLAGS"
17751 if test "x$GCC" = xyes ; then
17752 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17753 fi
17754
17755
17756
17757
17758
17759
17760
17761
17762 # Check whether --enable-strict-compilation was given.
17763 if test "${enable_strict_compilation+set}" = set; then :
17764 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17765 else
17766 STRICT_COMPILE=no
17767 fi
17768
17769
17770
17771
17772
17773
17774 STRICT_CFLAGS=""
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788 xorg_testset_save_CFLAGS="$CFLAGS"
17789
17790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17793 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17794 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17795 $as_echo_n "(cached) " >&6
17796 else
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799 int i;
17800 _ACEOF
17801 if ac_fn_c_try_compile "$LINENO"; then :
17802 xorg_cv_cc_flag_unknown_warning_option=yes
17803 else
17804 xorg_cv_cc_flag_unknown_warning_option=no
17805 fi
17806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17807 fi
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17809 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17811 CFLAGS="$xorg_testset_save_CFLAGS"
17812 fi
17813
17814 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17817 fi
17818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17820 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17821 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17822 $as_echo_n "(cached) " >&6
17823 else
17824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825 /* end confdefs.h. */
17826 int i;
17827 _ACEOF
17828 if ac_fn_c_try_compile "$LINENO"; then :
17829 xorg_cv_cc_flag_unused_command_line_argument=yes
17830 else
17831 xorg_cv_cc_flag_unused_command_line_argument=no
17832 fi
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 fi
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17836 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17838 CFLAGS="$xorg_testset_save_CFLAGS"
17839 fi
17840
17841 found="no"
17842
17843 if test $found = "no" ; then
17844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17846 fi
17847
17848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17850 fi
17851
17852 CFLAGS="$CFLAGS -pedantic"
17853
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17855 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17856 cacheid=xorg_cv_cc_flag__pedantic
17857 if eval \${$cacheid+:} false; then :
17858 $as_echo_n "(cached) " >&6
17859 else
17860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861 /* end confdefs.h. */
17862 int i;
17863 int
17864 main ()
17865 {
17866
17867 ;
17868 return 0;
17869 }
17870 _ACEOF
17871 if ac_fn_c_try_link "$LINENO"; then :
17872 eval $cacheid=yes
17873 else
17874 eval $cacheid=no
17875 fi
17876 rm -f core conftest.err conftest.$ac_objext \
17877 conftest$ac_exeext conftest.$ac_ext
17878 fi
17879
17880
17881 CFLAGS="$xorg_testset_save_CFLAGS"
17882
17883 eval supported=\$$cacheid
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17885 $as_echo "$supported" >&6; }
17886 if test "$supported" = "yes" ; then
17887 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17888 found="yes"
17889 fi
17890 fi
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906 xorg_testset_save_CFLAGS="$CFLAGS"
17907
17908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17911 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17912 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17913 $as_echo_n "(cached) " >&6
17914 else
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17917 int i;
17918 _ACEOF
17919 if ac_fn_c_try_compile "$LINENO"; then :
17920 xorg_cv_cc_flag_unknown_warning_option=yes
17921 else
17922 xorg_cv_cc_flag_unknown_warning_option=no
17923 fi
17924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17925 fi
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17927 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17929 CFLAGS="$xorg_testset_save_CFLAGS"
17930 fi
17931
17932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17935 fi
17936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17938 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17939 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17940 $as_echo_n "(cached) " >&6
17941 else
17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17943 /* end confdefs.h. */
17944 int i;
17945 _ACEOF
17946 if ac_fn_c_try_compile "$LINENO"; then :
17947 xorg_cv_cc_flag_unused_command_line_argument=yes
17948 else
17949 xorg_cv_cc_flag_unused_command_line_argument=no
17950 fi
17951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17952 fi
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17954 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17956 CFLAGS="$xorg_testset_save_CFLAGS"
17957 fi
17958
17959 found="no"
17960
17961 if test $found = "no" ; then
17962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17964 fi
17965
17966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17968 fi
17969
17970 CFLAGS="$CFLAGS -Werror"
17971
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17973 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17974 cacheid=xorg_cv_cc_flag__Werror
17975 if eval \${$cacheid+:} false; then :
17976 $as_echo_n "(cached) " >&6
17977 else
17978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979 /* end confdefs.h. */
17980 int i;
17981 int
17982 main ()
17983 {
17984
17985 ;
17986 return 0;
17987 }
17988 _ACEOF
17989 if ac_fn_c_try_link "$LINENO"; then :
17990 eval $cacheid=yes
17991 else
17992 eval $cacheid=no
17993 fi
17994 rm -f core conftest.err conftest.$ac_objext \
17995 conftest$ac_exeext conftest.$ac_ext
17996 fi
17997
17998
17999 CFLAGS="$xorg_testset_save_CFLAGS"
18000
18001 eval supported=\$$cacheid
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18003 $as_echo "$supported" >&6; }
18004 if test "$supported" = "yes" ; then
18005 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18006 found="yes"
18007 fi
18008 fi
18009
18010 if test $found = "no" ; then
18011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18013 fi
18014
18015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18017 fi
18018
18019 CFLAGS="$CFLAGS -errwarn"
18020
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18022 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18023 cacheid=xorg_cv_cc_flag__errwarn
18024 if eval \${$cacheid+:} false; then :
18025 $as_echo_n "(cached) " >&6
18026 else
18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h. */
18029 int i;
18030 int
18031 main ()
18032 {
18033
18034 ;
18035 return 0;
18036 }
18037 _ACEOF
18038 if ac_fn_c_try_link "$LINENO"; then :
18039 eval $cacheid=yes
18040 else
18041 eval $cacheid=no
18042 fi
18043 rm -f core conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18045 fi
18046
18047
18048 CFLAGS="$xorg_testset_save_CFLAGS"
18049
18050 eval supported=\$$cacheid
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18052 $as_echo "$supported" >&6; }
18053 if test "$supported" = "yes" ; then
18054 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18055 found="yes"
18056 fi
18057 fi
18058
18059
18060
18061 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18062 # activate it with -Werror, so we add it here explicitly.
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076 xorg_testset_save_CFLAGS="$CFLAGS"
18077
18078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18083 $as_echo_n "(cached) " >&6
18084 else
18085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086 /* end confdefs.h. */
18087 int i;
18088 _ACEOF
18089 if ac_fn_c_try_compile "$LINENO"; then :
18090 xorg_cv_cc_flag_unknown_warning_option=yes
18091 else
18092 xorg_cv_cc_flag_unknown_warning_option=no
18093 fi
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18099 CFLAGS="$xorg_testset_save_CFLAGS"
18100 fi
18101
18102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18105 fi
18106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18110 $as_echo_n "(cached) " >&6
18111 else
18112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18113 /* end confdefs.h. */
18114 int i;
18115 _ACEOF
18116 if ac_fn_c_try_compile "$LINENO"; then :
18117 xorg_cv_cc_flag_unused_command_line_argument=yes
18118 else
18119 xorg_cv_cc_flag_unused_command_line_argument=no
18120 fi
18121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18122 fi
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18126 CFLAGS="$xorg_testset_save_CFLAGS"
18127 fi
18128
18129 found="no"
18130
18131 if test $found = "no" ; then
18132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18134 fi
18135
18136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18138 fi
18139
18140 CFLAGS="$CFLAGS -Werror=attributes"
18141
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18143 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18144 cacheid=xorg_cv_cc_flag__Werror_attributes
18145 if eval \${$cacheid+:} false; then :
18146 $as_echo_n "(cached) " >&6
18147 else
18148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149 /* end confdefs.h. */
18150 int i;
18151 int
18152 main ()
18153 {
18154
18155 ;
18156 return 0;
18157 }
18158 _ACEOF
18159 if ac_fn_c_try_link "$LINENO"; then :
18160 eval $cacheid=yes
18161 else
18162 eval $cacheid=no
18163 fi
18164 rm -f core conftest.err conftest.$ac_objext \
18165 conftest$ac_exeext conftest.$ac_ext
18166 fi
18167
18168
18169 CFLAGS="$xorg_testset_save_CFLAGS"
18170
18171 eval supported=\$$cacheid
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18173 $as_echo "$supported" >&6; }
18174 if test "$supported" = "yes" ; then
18175 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18176 found="yes"
18177 fi
18178 fi
18179
18180
18181
18182 if test "x$STRICT_COMPILE" = "xyes"; then
18183 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18184 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18185 fi
18186
18187
18188
18189
18190
18191
18192 cat >>confdefs.h <<_ACEOF
18193 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18194 _ACEOF
18195
18196 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18197 if test "x$PVM" = "x"; then
18198 PVM="0"
18199 fi
18200
18201 cat >>confdefs.h <<_ACEOF
18202 #define PACKAGE_VERSION_MINOR $PVM
18203 _ACEOF
18204
18205 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18206 if test "x$PVP" = "x"; then
18207 PVP="0"
18208 fi
18209
18210 cat >>confdefs.h <<_ACEOF
18211 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18212 _ACEOF
18213
18214
18215
18216 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18217 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18218 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18219 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18220
18221
18222
18223
18224 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18225 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18226 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18227 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18228 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18229
18230
18231
18232
18233
18234
18235 if test x$APP_MAN_SUFFIX = x ; then
18236 APP_MAN_SUFFIX=1
18237 fi
18238 if test x$APP_MAN_DIR = x ; then
18239 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18240 fi
18241
18242 if test x$LIB_MAN_SUFFIX = x ; then
18243 LIB_MAN_SUFFIX=3
18244 fi
18245 if test x$LIB_MAN_DIR = x ; then
18246 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18247 fi
18248
18249 if test x$FILE_MAN_SUFFIX = x ; then
18250 case $host_os in
18251 # Solaris 2.0 - 11 use SysV man page sections
18252 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
18253 *) FILE_MAN_SUFFIX=5 ;;
18254 esac
18255 fi
18256 if test x$FILE_MAN_DIR = x ; then
18257 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18258 fi
18259
18260 if test x$MISC_MAN_SUFFIX = x ; then
18261 case $host_os in
18262 # Solaris 2.0 - 11 use SysV man page sections
18263 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
18264 *) MISC_MAN_SUFFIX=7 ;;
18265 esac
18266 fi
18267 if test x$MISC_MAN_DIR = x ; then
18268 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18269 fi
18270
18271 if test x$DRIVER_MAN_SUFFIX = x ; then
18272 case $host_os in
18273 # Solaris 2.0 - 11 use SysV man page sections
18274 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
18275 *) DRIVER_MAN_SUFFIX=4 ;;
18276 esac
18277 fi
18278 if test x$DRIVER_MAN_DIR = x ; then
18279 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18280 fi
18281
18282 if test x$ADMIN_MAN_SUFFIX = x ; then
18283 case $host_os in
18284 # Solaris 2.0 - 11 use SysV man page sections
18285 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
18286 *) ADMIN_MAN_SUFFIX=8 ;;
18287 esac
18288 fi
18289 if test x$ADMIN_MAN_DIR = x ; then
18290 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18291 fi
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307 XORG_MAN_PAGE="X Version 11"
18308
18309 MAN_SUBSTS="\
18310 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18311 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18312 -e 's|__xservername__|Xorg|g' \
18313 -e 's|__xconfigfile__|xorg.conf|g' \
18314 -e 's|__projectroot__|\$(prefix)|g' \
18315 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18316 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18317 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18318 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18319 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18320 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18321 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18322
18323
18324
18325 # Check whether --enable-silent-rules was given.
18326 if test "${enable_silent_rules+set}" = set; then :
18327 enableval=$enable_silent_rules;
18328 fi
18329
18330 case $enable_silent_rules in # (((
18331 yes) AM_DEFAULT_VERBOSITY=0;;
18332 no) AM_DEFAULT_VERBOSITY=1;;
18333 *) AM_DEFAULT_VERBOSITY=0;;
18334 esac
18335 am_make=${MAKE-make}
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18337 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18338 if ${am_cv_make_support_nested_variables+:} false; then :
18339 $as_echo_n "(cached) " >&6
18340 else
18341 if $as_echo 'TRUE=$(BAR$(V))
18342 BAR0=false
18343 BAR1=true
18344 V=1
18345 am__doit:
18346 @$(TRUE)
18347 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18348 am_cv_make_support_nested_variables=yes
18349 else
18350 am_cv_make_support_nested_variables=no
18351 fi
18352 fi
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18354 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18355 if test $am_cv_make_support_nested_variables = yes; then
18356 AM_V='$(V)'
18357 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18358 else
18359 AM_V=$AM_DEFAULT_VERBOSITY
18360 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18361 fi
18362 AM_BACKSLASH='\'
18363
18364
18365
18366 # Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
18382 $as_echo_n "checking for root directory for font files... " >&6; }
18383
18384 # Check whether --with-fontrootdir was given.
18385 if test "${with_fontrootdir+set}" = set; then :
18386 withval=$with_fontrootdir; FONTROOTDIR="$withval"
18387 fi
18388
18389 # if --with-fontrootdir not specified...
18390 if test "x${FONTROOTDIR}" = "x"; then
18391 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
18392 fi
18393 # ...and if pkg-config didn't find fontdir in fontutil.pc...
18394 if test "x${FONTROOTDIR}" = "x"; then
18395 FONTROOTDIR="${datadir}/fonts/X11"
18396 fi
18397
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
18399 $as_echo "${FONTROOTDIR}" >&6; }
18400
18401
18402
18403
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
18405 $as_echo_n "checking for directory for encodings files... " >&6; }
18406
18407 # Check whether --with-encodingsdir was given.
18408 if test "${with_encodingsdir+set}" = set; then :
18409 withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
18410 else
18411 ENCODINGSDIR='${FONTROOTDIR}/encodings'
18412 fi
18413
18414
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
18416 $as_echo "${ENCODINGSDIR}" >&6; }
18417
18418
18419 # zlib
18420 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18421 if test "x$ac_cv_header_zlib_h" = xyes; then :
18422
18423 else
18424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18426 as_fn_error $? "zlib.h is required to compile libfontenc
18427 See \`config.log' for more details" "$LINENO" 5; }
18428 fi
18429
18430
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5
18432 $as_echo_n "checking for gzclose in -lz... " >&6; }
18433 if ${ac_cv_lib_z_gzclose+:} false; then :
18434 $as_echo_n "(cached) " >&6
18435 else
18436 ac_check_lib_save_LIBS=$LIBS
18437 LIBS="-lz $LIBS"
18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439 /* end confdefs.h. */
18440
18441 /* Override any GCC internal prototype to avoid an error.
18442 Use char because int might match the return type of a GCC
18443 builtin and then its argument prototype would still apply. */
18444 #ifdef __cplusplus
18445 extern "C"
18446 #endif
18447 char gzclose ();
18448 int
18449 main ()
18450 {
18451 return gzclose ();
18452 ;
18453 return 0;
18454 }
18455 _ACEOF
18456 if ac_fn_c_try_link "$LINENO"; then :
18457 ac_cv_lib_z_gzclose=yes
18458 else
18459 ac_cv_lib_z_gzclose=no
18460 fi
18461 rm -f core conftest.err conftest.$ac_objext \
18462 conftest$ac_exeext conftest.$ac_ext
18463 LIBS=$ac_check_lib_save_LIBS
18464 fi
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5
18466 $as_echo "$ac_cv_lib_z_gzclose" >&6; }
18467 if test "x$ac_cv_lib_z_gzclose" = xyes; then :
18468 cat >>confdefs.h <<_ACEOF
18469 #define HAVE_LIBZ 1
18470 _ACEOF
18471
18472 LIBS="-lz $LIBS"
18473
18474 else
18475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18477 as_fn_error $? "zlib is required to compile libfontenc
18478 See \`config.log' for more details" "$LINENO" 5; }
18479 fi
18480
18481
18482 # Obtain compiler/linker options for depedencies
18483
18484 pkg_failed=no
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTENC" >&5
18486 $as_echo_n "checking for FONTENC... " >&6; }
18487
18488 if test -n "$FONTENC_CFLAGS"; then
18489 pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS"
18490 elif test -n "$PKG_CONFIG"; then
18491 if test -n "$PKG_CONFIG" && \
18492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
18493 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
18494 ac_status=$?
18495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18496 test $ac_status = 0; }; then
18497 pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
18498 test "x$?" != "x0" && pkg_failed=yes
18499 else
18500 pkg_failed=yes
18501 fi
18502 else
18503 pkg_failed=untried
18504 fi
18505 if test -n "$FONTENC_LIBS"; then
18506 pkg_cv_FONTENC_LIBS="$FONTENC_LIBS"
18507 elif test -n "$PKG_CONFIG"; then
18508 if test -n "$PKG_CONFIG" && \
18509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
18510 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
18511 ac_status=$?
18512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18513 test $ac_status = 0; }; then
18514 pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
18515 test "x$?" != "x0" && pkg_failed=yes
18516 else
18517 pkg_failed=yes
18518 fi
18519 else
18520 pkg_failed=untried
18521 fi
18522
18523
18524
18525 if test $pkg_failed = yes; then
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18527 $as_echo "no" >&6; }
18528
18529 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18530 _pkg_short_errors_supported=yes
18531 else
18532 _pkg_short_errors_supported=no
18533 fi
18534 if test $_pkg_short_errors_supported = yes; then
18535 FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
18536 else
18537 FONTENC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
18538 fi
18539 # Put the nasty error message in config.log where it belongs
18540 echo "$FONTENC_PKG_ERRORS" >&5
18541
18542 as_fn_error $? "Package requirements (xproto) were not met:
18543
18544 $FONTENC_PKG_ERRORS
18545
18546 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18547 installed software in a non-standard prefix.
18548
18549 Alternatively, you may set the environment variables FONTENC_CFLAGS
18550 and FONTENC_LIBS to avoid the need to call pkg-config.
18551 See the pkg-config man page for more details." "$LINENO" 5
18552 elif test $pkg_failed = untried; then
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18554 $as_echo "no" >&6; }
18555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18557 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18558 is in your PATH or set the PKG_CONFIG environment variable to the full
18559 path to pkg-config.
18560
18561 Alternatively, you may set the environment variables FONTENC_CFLAGS
18562 and FONTENC_LIBS to avoid the need to call pkg-config.
18563 See the pkg-config man page for more details.
18564
18565 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18566 See \`config.log' for more details" "$LINENO" 5; }
18567 else
18568 FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS
18569 FONTENC_LIBS=$pkg_cv_FONTENC_LIBS
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18571 $as_echo "yes" >&6; }
18572
18573 fi
18574
18575 # Allow checking code with lint, sparse, etc.
18576
18577
18578
18579
18580
18581 # Check whether --with-lint was given.
18582 if test "${with_lint+set}" = set; then :
18583 withval=$with_lint; use_lint=$withval
18584 else
18585 use_lint=no
18586 fi
18587
18588
18589 # Obtain platform specific info like program name and options
18590 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
18591 case $host_os in
18592 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18593 lint_name=splint
18594 lint_options="-badflag"
18595 ;;
18596 *freebsd* | *netbsd*)
18597 lint_name=lint
18598 lint_options="-u -b"
18599 ;;
18600 *solaris*)
18601 lint_name=lint
18602 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18603 ;;
18604 esac
18605
18606 # Test for the presence of the program (either guessed by the code or spelled out by the user)
18607 if test "x$use_lint" = x"yes" ; then
18608 # Extract the first word of "$lint_name", so it can be a program name with args.
18609 set dummy $lint_name; ac_word=$2
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18611 $as_echo_n "checking for $ac_word... " >&6; }
18612 if ${ac_cv_path_LINT+:} false; then :
18613 $as_echo_n "(cached) " >&6
18614 else
18615 case $LINT in
18616 [\\/]* | ?:[\\/]*)
18617 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18618 ;;
18619 *)
18620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18621 for as_dir in $PATH
18622 do
18623 IFS=$as_save_IFS
18624 test -z "$as_dir" && as_dir=.
18625 for ac_exec_ext in '' $ac_executable_extensions; do
18626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18627 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18629 break 2
18630 fi
18631 done
18632 done
18633 IFS=$as_save_IFS
18634
18635 ;;
18636 esac
18637 fi
18638 LINT=$ac_cv_path_LINT
18639 if test -n "$LINT"; then
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18641 $as_echo "$LINT" >&6; }
18642 else
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644 $as_echo "no" >&6; }
18645 fi
18646
18647
18648 if test "x$LINT" = "x"; then
18649 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18650 fi
18651 elif test "x$use_lint" = x"no" ; then
18652 if test "x$LINT" != "x"; then
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18654 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18655 fi
18656 else
18657 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18658 fi
18659
18660 # User supplied flags override default flags
18661 if test "x$LINT_FLAGS" != "x"; then
18662 lint_options=$LINT_FLAGS
18663 fi
18664
18665 LINT_FLAGS=$lint_options
18666
18667 if test "x$LINT" != x; then
18668 LINT_TRUE=
18669 LINT_FALSE='#'
18670 else
18671 LINT_TRUE='#'
18672 LINT_FALSE=
18673 fi
18674
18675
18676
18677 LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
18678
18679 ac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc"
18680
18681 cat >confcache <<\_ACEOF
18682 # This file is a shell script that caches the results of configure
18683 # tests run on this system so they can be shared between configure
18684 # scripts and configure runs, see configure's option --config-cache.
18685 # It is not useful on other systems. If it contains results you don't
18686 # want to keep, you may remove or edit it.
18687 #
18688 # config.status only pays attention to the cache file if you give it
18689 # the --recheck option to rerun configure.
18690 #
18691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18693 # following values.
18694
18695 _ACEOF
18696
18697 # The following way of writing the cache mishandles newlines in values,
18698 # but we know of no workaround that is simple, portable, and efficient.
18699 # So, we kill variables containing newlines.
18700 # Ultrix sh set writes to stderr and can't be redirected directly,
18701 # and sets the high bit in the cache file unless we assign to the vars.
18702 (
18703 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18704 eval ac_val=\$$ac_var
18705 case $ac_val in #(
18706 *${as_nl}*)
18707 case $ac_var in #(
18708 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18709 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18710 esac
18711 case $ac_var in #(
18712 _ | IFS | as_nl) ;; #(
18713 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18714 *) { eval $ac_var=; unset $ac_var;} ;;
18715 esac ;;
18716 esac
18717 done
18718
18719 (set) 2>&1 |
18720 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18721 *${as_nl}ac_space=\ *)
18722 # `set' does not quote correctly, so add quotes: double-quote
18723 # substitution turns \\\\ into \\, and sed turns \\ into \.
18724 sed -n \
18725 "s/'/'\\\\''/g;
18726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18727 ;; #(
18728 *)
18729 # `set' quotes correctly as required by POSIX, so do not add quotes.
18730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18731 ;;
18732 esac |
18733 sort
18734 ) |
18735 sed '
18736 /^ac_cv_env_/b end
18737 t clear
18738 :clear
18739 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18740 t end
18741 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18742 :end' >>confcache
18743 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18744 if test -w "$cache_file"; then
18745 if test "x$cache_file" != "x/dev/null"; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18747 $as_echo "$as_me: updating cache $cache_file" >&6;}
18748 if test ! -f "$cache_file" || test -h "$cache_file"; then
18749 cat confcache >"$cache_file"
18750 else
18751 case $cache_file in #(
18752 */* | ?:*)
18753 mv -f confcache "$cache_file"$$ &&
18754 mv -f "$cache_file"$$ "$cache_file" ;; #(
18755 *)
18756 mv -f confcache "$cache_file" ;;
18757 esac
18758 fi
18759 fi
18760 else
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18762 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18763 fi
18764 fi
18765 rm -f confcache
18766
18767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18768 # Let make expand exec_prefix.
18769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18770
18771 DEFS=-DHAVE_CONFIG_H
18772
18773 ac_libobjs=
18774 ac_ltlibobjs=
18775 U=
18776 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18777 # 1. Remove the extension, and $U if already installed.
18778 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18779 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18780 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18781 # will be set to the directory where LIBOBJS objects are built.
18782 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18783 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18784 done
18785 LIBOBJS=$ac_libobjs
18786
18787 LTLIBOBJS=$ac_ltlibobjs
18788
18789
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18791 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18792 if test -n "$am_sleep_pid"; then
18793 # Hide warnings about reused PIDs.
18794 wait $am_sleep_pid 2>/dev/null
18795 fi
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18797 $as_echo "done" >&6; }
18798 if test -n "$EXEEXT"; then
18799 am__EXEEXT_TRUE=
18800 am__EXEEXT_FALSE='#'
18801 else
18802 am__EXEEXT_TRUE='#'
18803 am__EXEEXT_FALSE=
18804 fi
18805
18806 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18807 as_fn_error $? "conditional \"AMDEP\" was never defined.
18808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18809 fi
18810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18811 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18813 fi
18814 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18815 as_fn_error $? "conditional \"LINT\" was never defined.
18816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18817 fi
18818
18819 : "${CONFIG_STATUS=./config.status}"
18820 ac_write_fail=0
18821 ac_clean_files_save=$ac_clean_files
18822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18824 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18825 as_write_fail=0
18826 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18827 #! $SHELL
18828 # Generated by $as_me.
18829 # Run this file to recreate the current configuration.
18830 # Compiler output produced by configure, useful for debugging
18831 # configure, is in config.log if it exists.
18832
18833 debug=false
18834 ac_cs_recheck=false
18835 ac_cs_silent=false
18836
18837 SHELL=\${CONFIG_SHELL-$SHELL}
18838 export SHELL
18839 _ASEOF
18840 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18841 ## -------------------- ##
18842 ## M4sh Initialization. ##
18843 ## -------------------- ##
18844
18845 # Be more Bourne compatible
18846 DUALCASE=1; export DUALCASE # for MKS sh
18847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18848 emulate sh
18849 NULLCMD=:
18850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18851 # is contrary to our usage. Disable this feature.
18852 alias -g '${1+"$@"}'='"$@"'
18853 setopt NO_GLOB_SUBST
18854 else
18855 case `(set -o) 2>/dev/null` in #(
18856 *posix*) :
18857 set -o posix ;; #(
18858 *) :
18859 ;;
18860 esac
18861 fi
18862
18863
18864 as_nl='
18865 '
18866 export as_nl
18867 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18868 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18871 # Prefer a ksh shell builtin over an external printf program on Solaris,
18872 # but without wasting forks for bash or zsh.
18873 if test -z "$BASH_VERSION$ZSH_VERSION" \
18874 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18875 as_echo='print -r --'
18876 as_echo_n='print -rn --'
18877 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18878 as_echo='printf %s\n'
18879 as_echo_n='printf %s'
18880 else
18881 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18882 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18883 as_echo_n='/usr/ucb/echo -n'
18884 else
18885 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18886 as_echo_n_body='eval
18887 arg=$1;
18888 case $arg in #(
18889 *"$as_nl"*)
18890 expr "X$arg" : "X\\(.*\\)$as_nl";
18891 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18892 esac;
18893 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18894 '
18895 export as_echo_n_body
18896 as_echo_n='sh -c $as_echo_n_body as_echo'
18897 fi
18898 export as_echo_body
18899 as_echo='sh -c $as_echo_body as_echo'
18900 fi
18901
18902 # The user is always right.
18903 if test "${PATH_SEPARATOR+set}" != set; then
18904 PATH_SEPARATOR=:
18905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18907 PATH_SEPARATOR=';'
18908 }
18909 fi
18910
18911
18912 # IFS
18913 # We need space, tab and new line, in precisely that order. Quoting is
18914 # there to prevent editors from complaining about space-tab.
18915 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18916 # splitting by setting IFS to empty value.)
18917 IFS=" "" $as_nl"
18918
18919 # Find who we are. Look in the path if we contain no directory separator.
18920 as_myself=
18921 case $0 in #((
18922 *[\\/]* ) as_myself=$0 ;;
18923 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18924 for as_dir in $PATH
18925 do
18926 IFS=$as_save_IFS
18927 test -z "$as_dir" && as_dir=.
18928 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18929 done
18930 IFS=$as_save_IFS
18931
18932 ;;
18933 esac
18934 # We did not find ourselves, most probably we were run as `sh COMMAND'
18935 # in which case we are not to be found in the path.
18936 if test "x$as_myself" = x; then
18937 as_myself=$0
18938 fi
18939 if test ! -f "$as_myself"; then
18940 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18941 exit 1
18942 fi
18943
18944 # Unset variables that we do not need and which cause bugs (e.g. in
18945 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18946 # suppresses any "Segmentation fault" message there. '((' could
18947 # trigger a bug in pdksh 5.2.14.
18948 for as_var in BASH_ENV ENV MAIL MAILPATH
18949 do eval test x\${$as_var+set} = xset \
18950 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18951 done
18952 PS1='$ '
18953 PS2='> '
18954 PS4='+ '
18955
18956 # NLS nuisances.
18957 LC_ALL=C
18958 export LC_ALL
18959 LANGUAGE=C
18960 export LANGUAGE
18961
18962 # CDPATH.
18963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18964
18965
18966 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18967 # ----------------------------------------
18968 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18969 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18970 # script with STATUS, using 1 if that was 0.
18971 as_fn_error ()
18972 {
18973 as_status=$1; test $as_status -eq 0 && as_status=1
18974 if test "$4"; then
18975 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18976 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18977 fi
18978 $as_echo "$as_me: error: $2" >&2
18979 as_fn_exit $as_status
18980 } # as_fn_error
18981
18982
18983 # as_fn_set_status STATUS
18984 # -----------------------
18985 # Set $? to STATUS, without forking.
18986 as_fn_set_status ()
18987 {
18988 return $1
18989 } # as_fn_set_status
18990
18991 # as_fn_exit STATUS
18992 # -----------------
18993 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18994 as_fn_exit ()
18995 {
18996 set +e
18997 as_fn_set_status $1
18998 exit $1
18999 } # as_fn_exit
19000
19001 # as_fn_unset VAR
19002 # ---------------
19003 # Portably unset VAR.
19004 as_fn_unset ()
19005 {
19006 { eval $1=; unset $1;}
19007 }
19008 as_unset=as_fn_unset
19009 # as_fn_append VAR VALUE
19010 # ----------------------
19011 # Append the text in VALUE to the end of the definition contained in VAR. Take
19012 # advantage of any shell optimizations that allow amortized linear growth over
19013 # repeated appends, instead of the typical quadratic growth present in naive
19014 # implementations.
19015 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19016 eval 'as_fn_append ()
19017 {
19018 eval $1+=\$2
19019 }'
19020 else
19021 as_fn_append ()
19022 {
19023 eval $1=\$$1\$2
19024 }
19025 fi # as_fn_append
19026
19027 # as_fn_arith ARG...
19028 # ------------------
19029 # Perform arithmetic evaluation on the ARGs, and store the result in the
19030 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19031 # must be portable across $(()) and expr.
19032 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19033 eval 'as_fn_arith ()
19034 {
19035 as_val=$(( $* ))
19036 }'
19037 else
19038 as_fn_arith ()
19039 {
19040 as_val=`expr "$@" || test $? -eq 1`
19041 }
19042 fi # as_fn_arith
19043
19044
19045 if expr a : '\(a\)' >/dev/null 2>&1 &&
19046 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19047 as_expr=expr
19048 else
19049 as_expr=false
19050 fi
19051
19052 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19053 as_basename=basename
19054 else
19055 as_basename=false
19056 fi
19057
19058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19059 as_dirname=dirname
19060 else
19061 as_dirname=false
19062 fi
19063
19064 as_me=`$as_basename -- "$0" ||
19065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19066 X"$0" : 'X\(//\)$' \| \
19067 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19068 $as_echo X/"$0" |
19069 sed '/^.*\/\([^/][^/]*\)\/*$/{
19070 s//\1/
19071 q
19072 }
19073 /^X\/\(\/\/\)$/{
19074 s//\1/
19075 q
19076 }
19077 /^X\/\(\/\).*/{
19078 s//\1/
19079 q
19080 }
19081 s/.*/./; q'`
19082
19083 # Avoid depending upon Character Ranges.
19084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19087 as_cr_digits='0123456789'
19088 as_cr_alnum=$as_cr_Letters$as_cr_digits
19089
19090 ECHO_C= ECHO_N= ECHO_T=
19091 case `echo -n x` in #(((((
19092 -n*)
19093 case `echo 'xy\c'` in
19094 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19095 xy) ECHO_C='\c';;
19096 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19097 ECHO_T=' ';;
19098 esac;;
19099 *)
19100 ECHO_N='-n';;
19101 esac
19102
19103 rm -f conf$$ conf$$.exe conf$$.file
19104 if test -d conf$$.dir; then
19105 rm -f conf$$.dir/conf$$.file
19106 else
19107 rm -f conf$$.dir
19108 mkdir conf$$.dir 2>/dev/null
19109 fi
19110 if (echo >conf$$.file) 2>/dev/null; then
19111 if ln -s conf$$.file conf$$ 2>/dev/null; then
19112 as_ln_s='ln -s'
19113 # ... but there are two gotchas:
19114 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19115 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19116 # In both cases, we have to default to `cp -pR'.
19117 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19118 as_ln_s='cp -pR'
19119 elif ln conf$$.file conf$$ 2>/dev/null; then
19120 as_ln_s=ln
19121 else
19122 as_ln_s='cp -pR'
19123 fi
19124 else
19125 as_ln_s='cp -pR'
19126 fi
19127 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19128 rmdir conf$$.dir 2>/dev/null
19129
19130
19131 # as_fn_mkdir_p
19132 # -------------
19133 # Create "$as_dir" as a directory, including parents if necessary.
19134 as_fn_mkdir_p ()
19135 {
19136
19137 case $as_dir in #(
19138 -*) as_dir=./$as_dir;;
19139 esac
19140 test -d "$as_dir" || eval $as_mkdir_p || {
19141 as_dirs=
19142 while :; do
19143 case $as_dir in #(
19144 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19145 *) as_qdir=$as_dir;;
19146 esac
19147 as_dirs="'$as_qdir' $as_dirs"
19148 as_dir=`$as_dirname -- "$as_dir" ||
19149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19150 X"$as_dir" : 'X\(//\)[^/]' \| \
19151 X"$as_dir" : 'X\(//\)$' \| \
19152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19153 $as_echo X"$as_dir" |
19154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19155 s//\1/
19156 q
19157 }
19158 /^X\(\/\/\)[^/].*/{
19159 s//\1/
19160 q
19161 }
19162 /^X\(\/\/\)$/{
19163 s//\1/
19164 q
19165 }
19166 /^X\(\/\).*/{
19167 s//\1/
19168 q
19169 }
19170 s/.*/./; q'`
19171 test -d "$as_dir" && break
19172 done
19173 test -z "$as_dirs" || eval "mkdir $as_dirs"
19174 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19175
19176
19177 } # as_fn_mkdir_p
19178 if mkdir -p . 2>/dev/null; then
19179 as_mkdir_p='mkdir -p "$as_dir"'
19180 else
19181 test -d ./-p && rmdir ./-p
19182 as_mkdir_p=false
19183 fi
19184
19185
19186 # as_fn_executable_p FILE
19187 # -----------------------
19188 # Test if FILE is an executable regular file.
19189 as_fn_executable_p ()
19190 {
19191 test -f "$1" && test -x "$1"
19192 } # as_fn_executable_p
19193 as_test_x='test -x'
19194 as_executable_p=as_fn_executable_p
19195
19196 # Sed expression to map a string onto a valid CPP name.
19197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19198
19199 # Sed expression to map a string onto a valid variable name.
19200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19201
19202
19203 exec 6>&1
19204 ## ----------------------------------- ##
19205 ## Main body of $CONFIG_STATUS script. ##
19206 ## ----------------------------------- ##
19207 _ASEOF
19208 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19209
19210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19211 # Save the log message, to keep $0 and so on meaningful, and to
19212 # report actual input values of CONFIG_FILES etc. instead of their
19213 # values after options handling.
19214 ac_log="
19215 This file was extended by libfontenc $as_me 1.1.4, which was
19216 generated by GNU Autoconf 2.69. Invocation command line was
19217
19218 CONFIG_FILES = $CONFIG_FILES
19219 CONFIG_HEADERS = $CONFIG_HEADERS
19220 CONFIG_LINKS = $CONFIG_LINKS
19221 CONFIG_COMMANDS = $CONFIG_COMMANDS
19222 $ $0 $@
19223
19224 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19225 "
19226
19227 _ACEOF
19228
19229 case $ac_config_files in *"
19230 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19231 esac
19232
19233 case $ac_config_headers in *"
19234 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19235 esac
19236
19237
19238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19239 # Files that config.status was made for.
19240 config_files="$ac_config_files"
19241 config_headers="$ac_config_headers"
19242 config_commands="$ac_config_commands"
19243
19244 _ACEOF
19245
19246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19247 ac_cs_usage="\
19248 \`$as_me' instantiates files and other configuration actions
19249 from templates according to the current configuration. Unless the files
19250 and actions are specified as TAGs, all are instantiated by default.
19251
19252 Usage: $0 [OPTION]... [TAG]...
19253
19254 -h, --help print this help, then exit
19255 -V, --version print version number and configuration settings, then exit
19256 --config print configuration, then exit
19257 -q, --quiet, --silent
19258 do not print progress messages
19259 -d, --debug don't remove temporary files
19260 --recheck update $as_me by reconfiguring in the same conditions
19261 --file=FILE[:TEMPLATE]
19262 instantiate the configuration file FILE
19263 --header=FILE[:TEMPLATE]
19264 instantiate the configuration header FILE
19265
19266 Configuration files:
19267 $config_files
19268
19269 Configuration headers:
19270 $config_headers
19271
19272 Configuration commands:
19273 $config_commands
19274
19275 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues>."
19276
19277 _ACEOF
19278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19279 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19280 ac_cs_version="\\
19281 libfontenc config.status 1.1.4
19282 configured by $0, generated by GNU Autoconf 2.69,
19283 with options \\"\$ac_cs_config\\"
19284
19285 Copyright (C) 2012 Free Software Foundation, Inc.
19286 This config.status script is free software; the Free Software Foundation
19287 gives unlimited permission to copy, distribute and modify it."
19288
19289 ac_pwd='$ac_pwd'
19290 srcdir='$srcdir'
19291 INSTALL='$INSTALL'
19292 MKDIR_P='$MKDIR_P'
19293 AWK='$AWK'
19294 test -n "\$AWK" || AWK=awk
19295 _ACEOF
19296
19297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19298 # The default lists apply if the user does not specify any file.
19299 ac_need_defaults=:
19300 while test $# != 0
19301 do
19302 case $1 in
19303 --*=?*)
19304 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19305 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19306 ac_shift=:
19307 ;;
19308 --*=)
19309 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19310 ac_optarg=
19311 ac_shift=:
19312 ;;
19313 *)
19314 ac_option=$1
19315 ac_optarg=$2
19316 ac_shift=shift
19317 ;;
19318 esac
19319
19320 case $ac_option in
19321 # Handling of the options.
19322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19323 ac_cs_recheck=: ;;
19324 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19325 $as_echo "$ac_cs_version"; exit ;;
19326 --config | --confi | --conf | --con | --co | --c )
19327 $as_echo "$ac_cs_config"; exit ;;
19328 --debug | --debu | --deb | --de | --d | -d )
19329 debug=: ;;
19330 --file | --fil | --fi | --f )
19331 $ac_shift
19332 case $ac_optarg in
19333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19334 '') as_fn_error $? "missing file argument" ;;
19335 esac
19336 as_fn_append CONFIG_FILES " '$ac_optarg'"
19337 ac_need_defaults=false;;
19338 --header | --heade | --head | --hea )
19339 $ac_shift
19340 case $ac_optarg in
19341 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19342 esac
19343 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19344 ac_need_defaults=false;;
19345 --he | --h)
19346 # Conflict between --help and --header
19347 as_fn_error $? "ambiguous option: \`$1'
19348 Try \`$0 --help' for more information.";;
19349 --help | --hel | -h )
19350 $as_echo "$ac_cs_usage"; exit ;;
19351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19352 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19353 ac_cs_silent=: ;;
19354
19355 # This is an error.
19356 -*) as_fn_error $? "unrecognized option: \`$1'
19357 Try \`$0 --help' for more information." ;;
19358
19359 *) as_fn_append ac_config_targets " $1"
19360 ac_need_defaults=false ;;
19361
19362 esac
19363 shift
19364 done
19365
19366 ac_configure_extra_args=
19367
19368 if $ac_cs_silent; then
19369 exec 6>/dev/null
19370 ac_configure_extra_args="$ac_configure_extra_args --silent"
19371 fi
19372
19373 _ACEOF
19374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19375 if \$ac_cs_recheck; then
19376 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19377 shift
19378 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19379 CONFIG_SHELL='$SHELL'
19380 export CONFIG_SHELL
19381 exec "\$@"
19382 fi
19383
19384 _ACEOF
19385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19386 exec 5>>config.log
19387 {
19388 echo
19389 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19390 ## Running $as_me. ##
19391 _ASBOX
19392 $as_echo "$ac_log"
19393 } >&5
19394
19395 _ACEOF
19396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19397 #
19398 # INIT-COMMANDS
19399 #
19400 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19401
19402
19403 # The HP-UX ksh and POSIX shell print the target directory to stdout
19404 # if CDPATH is set.
19405 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19406
19407 sed_quote_subst='$sed_quote_subst'
19408 double_quote_subst='$double_quote_subst'
19409 delay_variable_subst='$delay_variable_subst'
19410 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19411 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19412 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19413 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19414 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19415 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19416 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19417 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19418 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19419 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19420 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19421 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19422 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19423 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19424 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19425 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19426 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19427 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19428 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19429 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19430 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19431 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19432 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19433 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19434 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19435 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19436 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19437 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19438 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19439 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19440 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19441 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19442 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19443 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19444 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19445 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19446 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19447 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19448 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19449 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19450 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19451 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19452 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19453 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19454 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19455 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19456 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19457 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19458 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19459 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19460 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19461 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19462 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19463 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19464 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19465 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19466 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19467 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19468 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"`'
19469 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19470 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19471 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19472 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19473 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19474 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19475 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19476 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19477 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19478 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19479 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19480 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19481 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19482 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19483 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19484 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19485 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19486 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19487 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19488 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19489 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19490 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19491 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19492 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19493 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19494 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19495 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19496 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19497 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19498 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19499 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19500 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19501 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19502 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19503 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19504 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19505 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19506 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19507 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19508 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19509 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19510 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19511 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19512 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19513 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19514 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19515 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19516 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19517 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19518 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19519 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19520 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19521 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19522 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19523 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19524 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19525 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19526 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19527 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19528 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19529 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19530 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19531 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19532 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19533 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19534 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19535 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19536 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19537 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19538 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19539 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19540 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19541 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19542 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19543 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19544 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19545
19546 LTCC='$LTCC'
19547 LTCFLAGS='$LTCFLAGS'
19548 compiler='$compiler_DEFAULT'
19549
19550 # A function that is used when there is no print builtin or printf.
19551 func_fallback_echo ()
19552 {
19553 eval 'cat <<_LTECHO_EOF
19554 \$1
19555 _LTECHO_EOF'
19556 }
19557
19558 # Quote evaled strings.
19559 for var in SHELL \
19560 ECHO \
19561 PATH_SEPARATOR \
19562 SED \
19563 GREP \
19564 EGREP \
19565 FGREP \
19566 LD \
19567 NM \
19568 LN_S \
19569 lt_SP2NL \
19570 lt_NL2SP \
19571 reload_flag \
19572 OBJDUMP \
19573 deplibs_check_method \
19574 file_magic_cmd \
19575 file_magic_glob \
19576 want_nocaseglob \
19577 DLLTOOL \
19578 sharedlib_from_linklib_cmd \
19579 AR \
19580 AR_FLAGS \
19581 archiver_list_spec \
19582 STRIP \
19583 RANLIB \
19584 CC \
19585 CFLAGS \
19586 compiler \
19587 lt_cv_sys_global_symbol_pipe \
19588 lt_cv_sys_global_symbol_to_cdecl \
19589 lt_cv_sys_global_symbol_to_import \
19590 lt_cv_sys_global_symbol_to_c_name_address \
19591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19592 lt_cv_nm_interface \
19593 nm_file_list_spec \
19594 lt_cv_truncate_bin \
19595 lt_prog_compiler_no_builtin_flag \
19596 lt_prog_compiler_pic \
19597 lt_prog_compiler_wl \
19598 lt_prog_compiler_static \
19599 lt_cv_prog_compiler_c_o \
19600 need_locks \
19601 MANIFEST_TOOL \
19602 DSYMUTIL \
19603 NMEDIT \
19604 LIPO \
19605 OTOOL \
19606 OTOOL64 \
19607 shrext_cmds \
19608 export_dynamic_flag_spec \
19609 whole_archive_flag_spec \
19610 compiler_needs_object \
19611 with_gnu_ld \
19612 allow_undefined_flag \
19613 no_undefined_flag \
19614 hardcode_libdir_flag_spec \
19615 hardcode_libdir_separator \
19616 exclude_expsyms \
19617 include_expsyms \
19618 file_list_spec \
19619 variables_saved_for_relink \
19620 libname_spec \
19621 library_names_spec \
19622 soname_spec \
19623 install_override_mode \
19624 finish_eval \
19625 old_striplib \
19626 striplib; do
19627 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19628 *[\\\\\\\`\\"\\\$]*)
19629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19630 ;;
19631 *)
19632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19633 ;;
19634 esac
19635 done
19636
19637 # Double-quote double-evaled strings.
19638 for var in reload_cmds \
19639 old_postinstall_cmds \
19640 old_postuninstall_cmds \
19641 old_archive_cmds \
19642 extract_expsyms_cmds \
19643 old_archive_from_new_cmds \
19644 old_archive_from_expsyms_cmds \
19645 archive_cmds \
19646 archive_expsym_cmds \
19647 module_cmds \
19648 module_expsym_cmds \
19649 export_symbols_cmds \
19650 prelink_cmds \
19651 postlink_cmds \
19652 postinstall_cmds \
19653 postuninstall_cmds \
19654 finish_cmds \
19655 sys_lib_search_path_spec \
19656 configure_time_dlsearch_path \
19657 configure_time_lt_sys_library_path; do
19658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19659 *[\\\\\\\`\\"\\\$]*)
19660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19661 ;;
19662 *)
19663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19664 ;;
19665 esac
19666 done
19667
19668 ac_aux_dir='$ac_aux_dir'
19669
19670 # See if we are running on zsh, and set the options that allow our
19671 # commands through without removal of \ escapes INIT.
19672 if test -n "\${ZSH_VERSION+set}"; then
19673 setopt NO_GLOB_SUBST
19674 fi
19675
19676
19677 PACKAGE='$PACKAGE'
19678 VERSION='$VERSION'
19679 RM='$RM'
19680 ofile='$ofile'
19681
19682
19683
19684
19685 _ACEOF
19686
19687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19688
19689 # Handling of arguments.
19690 for ac_config_target in $ac_config_targets
19691 do
19692 case $ac_config_target in
19693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19694 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19695 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19696 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19697 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19698 "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;;
19699
19700 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19701 esac
19702 done
19703
19704
19705 # If the user did not use the arguments to specify the items to instantiate,
19706 # then the envvar interface is used. Set only those that are not.
19707 # We use the long form for the default assignment because of an extremely
19708 # bizarre bug on SunOS 4.1.3.
19709 if $ac_need_defaults; then
19710 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19711 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19712 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19713 fi
19714
19715 # Have a temporary directory for convenience. Make it in the build tree
19716 # simply because there is no reason against having it here, and in addition,
19717 # creating and moving files from /tmp can sometimes cause problems.
19718 # Hook for its removal unless debugging.
19719 # Note that there is a small window in which the directory will not be cleaned:
19720 # after its creation but before its name has been assigned to `$tmp'.
19721 $debug ||
19722 {
19723 tmp= ac_tmp=
19724 trap 'exit_status=$?
19725 : "${ac_tmp:=$tmp}"
19726 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19727 ' 0
19728 trap 'as_fn_exit 1' 1 2 13 15
19729 }
19730 # Create a (secure) tmp directory for tmp files.
19731
19732 {
19733 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19734 test -d "$tmp"
19735 } ||
19736 {
19737 tmp=./conf$$-$RANDOM
19738 (umask 077 && mkdir "$tmp")
19739 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19740 ac_tmp=$tmp
19741
19742 # Set up the scripts for CONFIG_FILES section.
19743 # No need to generate them if there are no CONFIG_FILES.
19744 # This happens for instance with `./config.status config.h'.
19745 if test -n "$CONFIG_FILES"; then
19746
19747
19748 ac_cr=`echo X | tr X '\015'`
19749 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19750 # But we know of no other shell where ac_cr would be empty at this
19751 # point, so we can use a bashism as a fallback.
19752 if test "x$ac_cr" = x; then
19753 eval ac_cr=\$\'\\r\'
19754 fi
19755 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19756 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19757 ac_cs_awk_cr='\\r'
19758 else
19759 ac_cs_awk_cr=$ac_cr
19760 fi
19761
19762 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19763 _ACEOF
19764
19765
19766 {
19767 echo "cat >conf$$subs.awk <<_ACEOF" &&
19768 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19769 echo "_ACEOF"
19770 } >conf$$subs.sh ||
19771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19772 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19773 ac_delim='%!_!# '
19774 for ac_last_try in false false false false false :; do
19775 . ./conf$$subs.sh ||
19776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19777
19778 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19779 if test $ac_delim_n = $ac_delim_num; then
19780 break
19781 elif $ac_last_try; then
19782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19783 else
19784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19785 fi
19786 done
19787 rm -f conf$$subs.sh
19788
19789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19790 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19791 _ACEOF
19792 sed -n '
19793 h
19794 s/^/S["/; s/!.*/"]=/
19795 p
19796 g
19797 s/^[^!]*!//
19798 :repl
19799 t repl
19800 s/'"$ac_delim"'$//
19801 t delim
19802 :nl
19803 h
19804 s/\(.\{148\}\)..*/\1/
19805 t more1
19806 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19807 p
19808 n
19809 b repl
19810 :more1
19811 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19812 p
19813 g
19814 s/.\{148\}//
19815 t nl
19816 :delim
19817 h
19818 s/\(.\{148\}\)..*/\1/
19819 t more2
19820 s/["\\]/\\&/g; s/^/"/; s/$/"/
19821 p
19822 b
19823 :more2
19824 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19825 p
19826 g
19827 s/.\{148\}//
19828 t delim
19829 ' <conf$$subs.awk | sed '
19830 /^[^""]/{
19831 N
19832 s/\n//
19833 }
19834 ' >>$CONFIG_STATUS || ac_write_fail=1
19835 rm -f conf$$subs.awk
19836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19837 _ACAWK
19838 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19839 for (key in S) S_is_set[key] = 1
19840 FS = ""
19841
19842 }
19843 {
19844 line = $ 0
19845 nfields = split(line, field, "@")
19846 substed = 0
19847 len = length(field[1])
19848 for (i = 2; i < nfields; i++) {
19849 key = field[i]
19850 keylen = length(key)
19851 if (S_is_set[key]) {
19852 value = S[key]
19853 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19854 len += length(value) + length(field[++i])
19855 substed = 1
19856 } else
19857 len += 1 + keylen
19858 }
19859
19860 print line
19861 }
19862
19863 _ACAWK
19864 _ACEOF
19865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19866 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19867 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19868 else
19869 cat
19870 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19871 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19872 _ACEOF
19873
19874 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19875 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19876 # trailing colons and then remove the whole line if VPATH becomes empty
19877 # (actually we leave an empty line to preserve line numbers).
19878 if test "x$srcdir" = x.; then
19879 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19880 h
19881 s///
19882 s/^/:/
19883 s/[ ]*$/:/
19884 s/:\$(srcdir):/:/g
19885 s/:\${srcdir}:/:/g
19886 s/:@srcdir@:/:/g
19887 s/^:*//
19888 s/:*$//
19889 x
19890 s/\(=[ ]*\).*/\1/
19891 G
19892 s/\n//
19893 s/^[^=]*=[ ]*$//
19894 }'
19895 fi
19896
19897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19898 fi # test -n "$CONFIG_FILES"
19899
19900 # Set up the scripts for CONFIG_HEADERS section.
19901 # No need to generate them if there are no CONFIG_HEADERS.
19902 # This happens for instance with `./config.status Makefile'.
19903 if test -n "$CONFIG_HEADERS"; then
19904 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19905 BEGIN {
19906 _ACEOF
19907
19908 # Transform confdefs.h into an awk script `defines.awk', embedded as
19909 # here-document in config.status, that substitutes the proper values into
19910 # config.h.in to produce config.h.
19911
19912 # Create a delimiter string that does not exist in confdefs.h, to ease
19913 # handling of long lines.
19914 ac_delim='%!_!# '
19915 for ac_last_try in false false :; do
19916 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19917 if test -z "$ac_tt"; then
19918 break
19919 elif $ac_last_try; then
19920 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19921 else
19922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19923 fi
19924 done
19925
19926 # For the awk script, D is an array of macro values keyed by name,
19927 # likewise P contains macro parameters if any. Preserve backslash
19928 # newline sequences.
19929
19930 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19931 sed -n '
19932 s/.\{148\}/&'"$ac_delim"'/g
19933 t rset
19934 :rset
19935 s/^[ ]*#[ ]*define[ ][ ]*/ /
19936 t def
19937 d
19938 :def
19939 s/\\$//
19940 t bsnl
19941 s/["\\]/\\&/g
19942 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19943 D["\1"]=" \3"/p
19944 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19945 d
19946 :bsnl
19947 s/["\\]/\\&/g
19948 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19949 D["\1"]=" \3\\\\\\n"\\/p
19950 t cont
19951 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19952 t cont
19953 d
19954 :cont
19955 n
19956 s/.\{148\}/&'"$ac_delim"'/g
19957 t clear
19958 :clear
19959 s/\\$//
19960 t bsnlc
19961 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19962 d
19963 :bsnlc
19964 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19965 b cont
19966 ' <confdefs.h | sed '
19967 s/'"$ac_delim"'/"\\\
19968 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19969
19970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19971 for (key in D) D_is_set[key] = 1
19972 FS = ""
19973 }
19974 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19975 line = \$ 0
19976 split(line, arg, " ")
19977 if (arg[1] == "#") {
19978 defundef = arg[2]
19979 mac1 = arg[3]
19980 } else {
19981 defundef = substr(arg[1], 2)
19982 mac1 = arg[2]
19983 }
19984 split(mac1, mac2, "(") #)
19985 macro = mac2[1]
19986 prefix = substr(line, 1, index(line, defundef) - 1)
19987 if (D_is_set[macro]) {
19988 # Preserve the white space surrounding the "#".
19989 print prefix "define", macro P[macro] D[macro]
19990 next
19991 } else {
19992 # Replace #undef with comments. This is necessary, for example,
19993 # in the case of _POSIX_SOURCE, which is predefined and required
19994 # on some systems where configure will not decide to define it.
19995 if (defundef == "undef") {
19996 print "/*", prefix defundef, macro, "*/"
19997 next
19998 }
19999 }
20000 }
20001 { print }
20002 _ACAWK
20003 _ACEOF
20004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20005 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20006 fi # test -n "$CONFIG_HEADERS"
20007
20008
20009 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20010 shift
20011 for ac_tag
20012 do
20013 case $ac_tag in
20014 :[FHLC]) ac_mode=$ac_tag; continue;;
20015 esac
20016 case $ac_mode$ac_tag in
20017 :[FHL]*:*);;
20018 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20019 :[FH]-) ac_tag=-:-;;
20020 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20021 esac
20022 ac_save_IFS=$IFS
20023 IFS=:
20024 set x $ac_tag
20025 IFS=$ac_save_IFS
20026 shift
20027 ac_file=$1
20028 shift
20029
20030 case $ac_mode in
20031 :L) ac_source=$1;;
20032 :[FH])
20033 ac_file_inputs=
20034 for ac_f
20035 do
20036 case $ac_f in
20037 -) ac_f="$ac_tmp/stdin";;
20038 *) # Look for the file first in the build tree, then in the source tree
20039 # (if the path is not absolute). The absolute path cannot be DOS-style,
20040 # because $ac_f cannot contain `:'.
20041 test -f "$ac_f" ||
20042 case $ac_f in
20043 [\\/$]*) false;;
20044 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20045 esac ||
20046 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20047 esac
20048 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20049 as_fn_append ac_file_inputs " '$ac_f'"
20050 done
20051
20052 # Let's still pretend it is `configure' which instantiates (i.e., don't
20053 # use $as_me), people would be surprised to read:
20054 # /* config.h. Generated by config.status. */
20055 configure_input='Generated from '`
20056 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20057 `' by configure.'
20058 if test x"$ac_file" != x-; then
20059 configure_input="$ac_file. $configure_input"
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20061 $as_echo "$as_me: creating $ac_file" >&6;}
20062 fi
20063 # Neutralize special characters interpreted by sed in replacement strings.
20064 case $configure_input in #(
20065 *\&* | *\|* | *\\* )
20066 ac_sed_conf_input=`$as_echo "$configure_input" |
20067 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20068 *) ac_sed_conf_input=$configure_input;;
20069 esac
20070
20071 case $ac_tag in
20072 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20074 esac
20075 ;;
20076 esac
20077
20078 ac_dir=`$as_dirname -- "$ac_file" ||
20079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20080 X"$ac_file" : 'X\(//\)[^/]' \| \
20081 X"$ac_file" : 'X\(//\)$' \| \
20082 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20083 $as_echo X"$ac_file" |
20084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20085 s//\1/
20086 q
20087 }
20088 /^X\(\/\/\)[^/].*/{
20089 s//\1/
20090 q
20091 }
20092 /^X\(\/\/\)$/{
20093 s//\1/
20094 q
20095 }
20096 /^X\(\/\).*/{
20097 s//\1/
20098 q
20099 }
20100 s/.*/./; q'`
20101 as_dir="$ac_dir"; as_fn_mkdir_p
20102 ac_builddir=.
20103
20104 case "$ac_dir" in
20105 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20106 *)
20107 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20108 # A ".." for each directory in $ac_dir_suffix.
20109 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20110 case $ac_top_builddir_sub in
20111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20113 esac ;;
20114 esac
20115 ac_abs_top_builddir=$ac_pwd
20116 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20117 # for backward compatibility:
20118 ac_top_builddir=$ac_top_build_prefix
20119
20120 case $srcdir in
20121 .) # We are building in place.
20122 ac_srcdir=.
20123 ac_top_srcdir=$ac_top_builddir_sub
20124 ac_abs_top_srcdir=$ac_pwd ;;
20125 [\\/]* | ?:[\\/]* ) # Absolute name.
20126 ac_srcdir=$srcdir$ac_dir_suffix;
20127 ac_top_srcdir=$srcdir
20128 ac_abs_top_srcdir=$srcdir ;;
20129 *) # Relative name.
20130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20131 ac_top_srcdir=$ac_top_build_prefix$srcdir
20132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20133 esac
20134 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20135
20136
20137 case $ac_mode in
20138 :F)
20139 #
20140 # CONFIG_FILE
20141 #
20142
20143 case $INSTALL in
20144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20145 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20146 esac
20147 ac_MKDIR_P=$MKDIR_P
20148 case $MKDIR_P in
20149 [\\/$]* | ?:[\\/]* ) ;;
20150 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20151 esac
20152 _ACEOF
20153
20154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20155 # If the template does not know about datarootdir, expand it.
20156 # FIXME: This hack should be removed a few years after 2.60.
20157 ac_datarootdir_hack=; ac_datarootdir_seen=
20158 ac_sed_dataroot='
20159 /datarootdir/ {
20160 p
20161 q
20162 }
20163 /@datadir@/p
20164 /@docdir@/p
20165 /@infodir@/p
20166 /@localedir@/p
20167 /@mandir@/p'
20168 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20169 *datarootdir*) ac_datarootdir_seen=yes;;
20170 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20172 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20173 _ACEOF
20174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20175 ac_datarootdir_hack='
20176 s&@datadir@&$datadir&g
20177 s&@docdir@&$docdir&g
20178 s&@infodir@&$infodir&g
20179 s&@localedir@&$localedir&g
20180 s&@mandir@&$mandir&g
20181 s&\\\${datarootdir}&$datarootdir&g' ;;
20182 esac
20183 _ACEOF
20184
20185 # Neutralize VPATH when `$srcdir' = `.'.
20186 # Shell code in configure.ac might set extrasub.
20187 # FIXME: do we really want to maintain this feature?
20188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20189 ac_sed_extra="$ac_vpsub
20190 $extrasub
20191 _ACEOF
20192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20193 :t
20194 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20195 s|@configure_input@|$ac_sed_conf_input|;t t
20196 s&@top_builddir@&$ac_top_builddir_sub&;t t
20197 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20198 s&@srcdir@&$ac_srcdir&;t t
20199 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20200 s&@top_srcdir@&$ac_top_srcdir&;t t
20201 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20202 s&@builddir@&$ac_builddir&;t t
20203 s&@abs_builddir@&$ac_abs_builddir&;t t
20204 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20205 s&@INSTALL@&$ac_INSTALL&;t t
20206 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20207 $ac_datarootdir_hack
20208 "
20209 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20210 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20211
20212 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20213 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20214 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20215 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20217 which seems to be undefined. Please make sure it is defined" >&5
20218 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20219 which seems to be undefined. Please make sure it is defined" >&2;}
20220
20221 rm -f "$ac_tmp/stdin"
20222 case $ac_file in
20223 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20224 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20225 esac \
20226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20227 ;;
20228 :H)
20229 #
20230 # CONFIG_HEADER
20231 #
20232 if test x"$ac_file" != x-; then
20233 {
20234 $as_echo "/* $configure_input */" \
20235 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20236 } >"$ac_tmp/config.h" \
20237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20238 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20240 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20241 else
20242 rm -f "$ac_file"
20243 mv "$ac_tmp/config.h" "$ac_file" \
20244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20245 fi
20246 else
20247 $as_echo "/* $configure_input */" \
20248 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20249 || as_fn_error $? "could not create -" "$LINENO" 5
20250 fi
20251 # Compute "$ac_file"'s index in $config_headers.
20252 _am_arg="$ac_file"
20253 _am_stamp_count=1
20254 for _am_header in $config_headers :; do
20255 case $_am_header in
20256 $_am_arg | $_am_arg:* )
20257 break ;;
20258 * )
20259 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20260 esac
20261 done
20262 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20263 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20264 X"$_am_arg" : 'X\(//\)[^/]' \| \
20265 X"$_am_arg" : 'X\(//\)$' \| \
20266 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20267 $as_echo X"$_am_arg" |
20268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20269 s//\1/
20270 q
20271 }
20272 /^X\(\/\/\)[^/].*/{
20273 s//\1/
20274 q
20275 }
20276 /^X\(\/\/\)$/{
20277 s//\1/
20278 q
20279 }
20280 /^X\(\/\).*/{
20281 s//\1/
20282 q
20283 }
20284 s/.*/./; q'`/stamp-h$_am_stamp_count
20285 ;;
20286
20287 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20288 $as_echo "$as_me: executing $ac_file commands" >&6;}
20289 ;;
20290 esac
20291
20292
20293 case $ac_file$ac_mode in
20294 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20295 # Older Autoconf quotes --file arguments for eval, but not when files
20296 # are listed without --file. Let's play safe and only enable the eval
20297 # if we detect the quoting.
20298 case $CONFIG_FILES in
20299 *\'*) eval set x "$CONFIG_FILES" ;;
20300 *) set x $CONFIG_FILES ;;
20301 esac
20302 shift
20303 for mf
20304 do
20305 # Strip MF so we end up with the name of the file.
20306 mf=`echo "$mf" | sed -e 's/:.*$//'`
20307 # Check whether this is an Automake generated Makefile or not.
20308 # We used to match only the files named 'Makefile.in', but
20309 # some people rename them; so instead we look at the file content.
20310 # Grep'ing the first line is not enough: some people post-process
20311 # each Makefile.in and add a new line on top of each file to say so.
20312 # Grep'ing the whole file is not good either: AIX grep has a line
20313 # limit of 2048, but all sed's we know have understand at least 4000.
20314 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20315 dirpart=`$as_dirname -- "$mf" ||
20316 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20317 X"$mf" : 'X\(//\)[^/]' \| \
20318 X"$mf" : 'X\(//\)$' \| \
20319 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20320 $as_echo X"$mf" |
20321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20322 s//\1/
20323 q
20324 }
20325 /^X\(\/\/\)[^/].*/{
20326 s//\1/
20327 q
20328 }
20329 /^X\(\/\/\)$/{
20330 s//\1/
20331 q
20332 }
20333 /^X\(\/\).*/{
20334 s//\1/
20335 q
20336 }
20337 s/.*/./; q'`
20338 else
20339 continue
20340 fi
20341 # Extract the definition of DEPDIR, am__include, and am__quote
20342 # from the Makefile without running 'make'.
20343 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20344 test -z "$DEPDIR" && continue
20345 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20346 test -z "$am__include" && continue
20347 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20348 # Find all dependency output files, they are included files with
20349 # $(DEPDIR) in their names. We invoke sed twice because it is the
20350 # simplest approach to changing $(DEPDIR) to its actual value in the
20351 # expansion.
20352 for file in `sed -n "
20353 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20354 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20355 # Make sure the directory exists.
20356 test -f "$dirpart/$file" && continue
20357 fdir=`$as_dirname -- "$file" ||
20358 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20359 X"$file" : 'X\(//\)[^/]' \| \
20360 X"$file" : 'X\(//\)$' \| \
20361 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20362 $as_echo X"$file" |
20363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20364 s//\1/
20365 q
20366 }
20367 /^X\(\/\/\)[^/].*/{
20368 s//\1/
20369 q
20370 }
20371 /^X\(\/\/\)$/{
20372 s//\1/
20373 q
20374 }
20375 /^X\(\/\).*/{
20376 s//\1/
20377 q
20378 }
20379 s/.*/./; q'`
20380 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20381 # echo "creating $dirpart/$file"
20382 echo '# dummy' > "$dirpart/$file"
20383 done
20384 done
20385 }
20386 ;;
20387 "libtool":C)
20388
20389 # See if we are running on zsh, and set the options that allow our
20390 # commands through without removal of \ escapes.
20391 if test -n "${ZSH_VERSION+set}"; then
20392 setopt NO_GLOB_SUBST
20393 fi
20394
20395 cfgfile=${ofile}T
20396 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20397 $RM "$cfgfile"
20398
20399 cat <<_LT_EOF >> "$cfgfile"
20400 #! $SHELL
20401 # Generated automatically by $as_me ($PACKAGE) $VERSION
20402 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20403 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20404
20405 # Provide generalized library-building support services.
20406 # Written by Gordon Matzigkeit, 1996
20407
20408 # Copyright (C) 2014 Free Software Foundation, Inc.
20409 # This is free software; see the source for copying conditions. There is NO
20410 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20411
20412 # GNU Libtool is free software; you can redistribute it and/or modify
20413 # it under the terms of the GNU General Public License as published by
20414 # the Free Software Foundation; either version 2 of of the License, or
20415 # (at your option) any later version.
20416 #
20417 # As a special exception to the GNU General Public License, if you
20418 # distribute this file as part of a program or library that is built
20419 # using GNU Libtool, you may include this file under the same
20420 # distribution terms that you use for the rest of that program.
20421 #
20422 # GNU Libtool is distributed in the hope that it will be useful, but
20423 # WITHOUT ANY WARRANTY; without even the implied warranty of
20424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20425 # GNU General Public License for more details.
20426 #
20427 # You should have received a copy of the GNU General Public License
20428 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20429
20430
20431 # The names of the tagged configurations supported by this script.
20432 available_tags=''
20433
20434 # Configured defaults for sys_lib_dlsearch_path munging.
20435 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20436
20437 # ### BEGIN LIBTOOL CONFIG
20438
20439 # Which release of libtool.m4 was used?
20440 macro_version=$macro_version
20441 macro_revision=$macro_revision
20442
20443 # Whether or not to build shared libraries.
20444 build_libtool_libs=$enable_shared
20445
20446 # Whether or not to build static libraries.
20447 build_old_libs=$enable_static
20448
20449 # What type of objects to build.
20450 pic_mode=$pic_mode
20451
20452 # Whether or not to optimize for fast installation.
20453 fast_install=$enable_fast_install
20454
20455 # Shared archive member basename,for filename based shared library versioning on AIX.
20456 shared_archive_member_spec=$shared_archive_member_spec
20457
20458 # Shell to use when invoking shell scripts.
20459 SHELL=$lt_SHELL
20460
20461 # An echo program that protects backslashes.
20462 ECHO=$lt_ECHO
20463
20464 # The PATH separator for the build system.
20465 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20466
20467 # The host system.
20468 host_alias=$host_alias
20469 host=$host
20470 host_os=$host_os
20471
20472 # The build system.
20473 build_alias=$build_alias
20474 build=$build
20475 build_os=$build_os
20476
20477 # A sed program that does not truncate output.
20478 SED=$lt_SED
20479
20480 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20481 Xsed="\$SED -e 1s/^X//"
20482
20483 # A grep program that handles long lines.
20484 GREP=$lt_GREP
20485
20486 # An ERE matcher.
20487 EGREP=$lt_EGREP
20488
20489 # A literal string matcher.
20490 FGREP=$lt_FGREP
20491
20492 # A BSD- or MS-compatible name lister.
20493 NM=$lt_NM
20494
20495 # Whether we need soft or hard links.
20496 LN_S=$lt_LN_S
20497
20498 # What is the maximum length of a command?
20499 max_cmd_len=$max_cmd_len
20500
20501 # Object file suffix (normally "o").
20502 objext=$ac_objext
20503
20504 # Executable file suffix (normally "").
20505 exeext=$exeext
20506
20507 # whether the shell understands "unset".
20508 lt_unset=$lt_unset
20509
20510 # turn spaces into newlines.
20511 SP2NL=$lt_lt_SP2NL
20512
20513 # turn newlines into spaces.
20514 NL2SP=$lt_lt_NL2SP
20515
20516 # convert \$build file names to \$host format.
20517 to_host_file_cmd=$lt_cv_to_host_file_cmd
20518
20519 # convert \$build files to toolchain format.
20520 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20521
20522 # An object symbol dumper.
20523 OBJDUMP=$lt_OBJDUMP
20524
20525 # Method to check whether dependent libraries are shared objects.
20526 deplibs_check_method=$lt_deplibs_check_method
20527
20528 # Command to use when deplibs_check_method = "file_magic".
20529 file_magic_cmd=$lt_file_magic_cmd
20530
20531 # How to find potential files when deplibs_check_method = "file_magic".
20532 file_magic_glob=$lt_file_magic_glob
20533
20534 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20535 want_nocaseglob=$lt_want_nocaseglob
20536
20537 # DLL creation program.
20538 DLLTOOL=$lt_DLLTOOL
20539
20540 # Command to associate shared and link libraries.
20541 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20542
20543 # The archiver.
20544 AR=$lt_AR
20545
20546 # Flags to create an archive.
20547 AR_FLAGS=$lt_AR_FLAGS
20548
20549 # How to feed a file listing to the archiver.
20550 archiver_list_spec=$lt_archiver_list_spec
20551
20552 # A symbol stripping program.
20553 STRIP=$lt_STRIP
20554
20555 # Commands used to install an old-style archive.
20556 RANLIB=$lt_RANLIB
20557 old_postinstall_cmds=$lt_old_postinstall_cmds
20558 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20559
20560 # Whether to use a lock for old archive extraction.
20561 lock_old_archive_extraction=$lock_old_archive_extraction
20562
20563 # A C compiler.
20564 LTCC=$lt_CC
20565
20566 # LTCC compiler flags.
20567 LTCFLAGS=$lt_CFLAGS
20568
20569 # Take the output of nm and produce a listing of raw symbols and C names.
20570 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20571
20572 # Transform the output of nm in a proper C declaration.
20573 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20574
20575 # Transform the output of nm into a list of symbols to manually relocate.
20576 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20577
20578 # Transform the output of nm in a C name address pair.
20579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20580
20581 # Transform the output of nm in a C name address pair when lib prefix is needed.
20582 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20583
20584 # The name lister interface.
20585 nm_interface=$lt_lt_cv_nm_interface
20586
20587 # Specify filename containing input files for \$NM.
20588 nm_file_list_spec=$lt_nm_file_list_spec
20589
20590 # The root where to search for dependent libraries,and where our libraries should be installed.
20591 lt_sysroot=$lt_sysroot
20592
20593 # Command to truncate a binary pipe.
20594 lt_truncate_bin=$lt_lt_cv_truncate_bin
20595
20596 # The name of the directory that contains temporary libtool files.
20597 objdir=$objdir
20598
20599 # Used to examine libraries when file_magic_cmd begins with "file".
20600 MAGIC_CMD=$MAGIC_CMD
20601
20602 # Must we lock files when doing compilation?
20603 need_locks=$lt_need_locks
20604
20605 # Manifest tool.
20606 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20607
20608 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20609 DSYMUTIL=$lt_DSYMUTIL
20610
20611 # Tool to change global to local symbols on Mac OS X.
20612 NMEDIT=$lt_NMEDIT
20613
20614 # Tool to manipulate fat objects and archives on Mac OS X.
20615 LIPO=$lt_LIPO
20616
20617 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20618 OTOOL=$lt_OTOOL
20619
20620 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20621 OTOOL64=$lt_OTOOL64
20622
20623 # Old archive suffix (normally "a").
20624 libext=$libext
20625
20626 # Shared library suffix (normally ".so").
20627 shrext_cmds=$lt_shrext_cmds
20628
20629 # The commands to extract the exported symbol list from a shared archive.
20630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20631
20632 # Variables whose values should be saved in libtool wrapper scripts and
20633 # restored at link time.
20634 variables_saved_for_relink=$lt_variables_saved_for_relink
20635
20636 # Do we need the "lib" prefix for modules?
20637 need_lib_prefix=$need_lib_prefix
20638
20639 # Do we need a version for libraries?
20640 need_version=$need_version
20641
20642 # Library versioning type.
20643 version_type=$version_type
20644
20645 # Shared library runtime path variable.
20646 runpath_var=$runpath_var
20647
20648 # Shared library path variable.
20649 shlibpath_var=$shlibpath_var
20650
20651 # Is shlibpath searched before the hard-coded library search path?
20652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20653
20654 # Format of library name prefix.
20655 libname_spec=$lt_libname_spec
20656
20657 # List of archive names. First name is the real one, the rest are links.
20658 # The last name is the one that the linker finds with -lNAME
20659 library_names_spec=$lt_library_names_spec
20660
20661 # The coded name of the library, if different from the real name.
20662 soname_spec=$lt_soname_spec
20663
20664 # Permission mode override for installation of shared libraries.
20665 install_override_mode=$lt_install_override_mode
20666
20667 # Command to use after installation of a shared archive.
20668 postinstall_cmds=$lt_postinstall_cmds
20669
20670 # Command to use after uninstallation of a shared archive.
20671 postuninstall_cmds=$lt_postuninstall_cmds
20672
20673 # Commands used to finish a libtool library installation in a directory.
20674 finish_cmds=$lt_finish_cmds
20675
20676 # As "finish_cmds", except a single script fragment to be evaled but
20677 # not shown.
20678 finish_eval=$lt_finish_eval
20679
20680 # Whether we should hardcode library paths into libraries.
20681 hardcode_into_libs=$hardcode_into_libs
20682
20683 # Compile-time system search path for libraries.
20684 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20685
20686 # Detected run-time system search path for libraries.
20687 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20688
20689 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20690 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20691
20692 # Whether dlopen is supported.
20693 dlopen_support=$enable_dlopen
20694
20695 # Whether dlopen of programs is supported.
20696 dlopen_self=$enable_dlopen_self
20697
20698 # Whether dlopen of statically linked programs is supported.
20699 dlopen_self_static=$enable_dlopen_self_static
20700
20701 # Commands to strip libraries.
20702 old_striplib=$lt_old_striplib
20703 striplib=$lt_striplib
20704
20705
20706 # The linker used to build libraries.
20707 LD=$lt_LD
20708
20709 # How to create reloadable object files.
20710 reload_flag=$lt_reload_flag
20711 reload_cmds=$lt_reload_cmds
20712
20713 # Commands used to build an old-style archive.
20714 old_archive_cmds=$lt_old_archive_cmds
20715
20716 # A language specific compiler.
20717 CC=$lt_compiler
20718
20719 # Is the compiler the GNU compiler?
20720 with_gcc=$GCC
20721
20722 # Compiler flag to turn off builtin functions.
20723 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20724
20725 # Additional compiler flags for building library objects.
20726 pic_flag=$lt_lt_prog_compiler_pic
20727
20728 # How to pass a linker flag through the compiler.
20729 wl=$lt_lt_prog_compiler_wl
20730
20731 # Compiler flag to prevent dynamic linking.
20732 link_static_flag=$lt_lt_prog_compiler_static
20733
20734 # Does compiler simultaneously support -c and -o options?
20735 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20736
20737 # Whether or not to add -lc for building shared libraries.
20738 build_libtool_need_lc=$archive_cmds_need_lc
20739
20740 # Whether or not to disallow shared libs when runtime libs are static.
20741 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20742
20743 # Compiler flag to allow reflexive dlopens.
20744 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20745
20746 # Compiler flag to generate shared objects directly from archives.
20747 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20748
20749 # Whether the compiler copes with passing no objects directly.
20750 compiler_needs_object=$lt_compiler_needs_object
20751
20752 # Create an old-style archive from a shared archive.
20753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20754
20755 # Create a temporary old-style archive to link instead of a shared archive.
20756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20757
20758 # Commands used to build a shared archive.
20759 archive_cmds=$lt_archive_cmds
20760 archive_expsym_cmds=$lt_archive_expsym_cmds
20761
20762 # Commands used to build a loadable module if different from building
20763 # a shared archive.
20764 module_cmds=$lt_module_cmds
20765 module_expsym_cmds=$lt_module_expsym_cmds
20766
20767 # Whether we are building with GNU ld or not.
20768 with_gnu_ld=$lt_with_gnu_ld
20769
20770 # Flag that allows shared libraries with undefined symbols to be built.
20771 allow_undefined_flag=$lt_allow_undefined_flag
20772
20773 # Flag that enforces no undefined symbols.
20774 no_undefined_flag=$lt_no_undefined_flag
20775
20776 # Flag to hardcode \$libdir into a binary during linking.
20777 # This must work even if \$libdir does not exist
20778 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20779
20780 # Whether we need a single "-rpath" flag with a separated argument.
20781 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20782
20783 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20784 # DIR into the resulting binary.
20785 hardcode_direct=$hardcode_direct
20786
20787 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20788 # DIR into the resulting binary and the resulting library dependency is
20789 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20790 # library is relocated.
20791 hardcode_direct_absolute=$hardcode_direct_absolute
20792
20793 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20794 # into the resulting binary.
20795 hardcode_minus_L=$hardcode_minus_L
20796
20797 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20798 # into the resulting binary.
20799 hardcode_shlibpath_var=$hardcode_shlibpath_var
20800
20801 # Set to "yes" if building a shared library automatically hardcodes DIR
20802 # into the library and all subsequent libraries and executables linked
20803 # against it.
20804 hardcode_automatic=$hardcode_automatic
20805
20806 # Set to yes if linker adds runtime paths of dependent libraries
20807 # to runtime path list.
20808 inherit_rpath=$inherit_rpath
20809
20810 # Whether libtool must link a program against all its dependency libraries.
20811 link_all_deplibs=$link_all_deplibs
20812
20813 # Set to "yes" if exported symbols are required.
20814 always_export_symbols=$always_export_symbols
20815
20816 # The commands to list exported symbols.
20817 export_symbols_cmds=$lt_export_symbols_cmds
20818
20819 # Symbols that should not be listed in the preloaded symbols.
20820 exclude_expsyms=$lt_exclude_expsyms
20821
20822 # Symbols that must always be exported.
20823 include_expsyms=$lt_include_expsyms
20824
20825 # Commands necessary for linking programs (against libraries) with templates.
20826 prelink_cmds=$lt_prelink_cmds
20827
20828 # Commands necessary for finishing linking programs.
20829 postlink_cmds=$lt_postlink_cmds
20830
20831 # Specify filename containing input files.
20832 file_list_spec=$lt_file_list_spec
20833
20834 # How to hardcode a shared library path into an executable.
20835 hardcode_action=$hardcode_action
20836
20837 # ### END LIBTOOL CONFIG
20838
20839 _LT_EOF
20840
20841 cat <<'_LT_EOF' >> "$cfgfile"
20842
20843 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20844
20845 # func_munge_path_list VARIABLE PATH
20846 # -----------------------------------
20847 # VARIABLE is name of variable containing _space_ separated list of
20848 # directories to be munged by the contents of PATH, which is string
20849 # having a format:
20850 # "DIR[:DIR]:"
20851 # string "DIR[ DIR]" will be prepended to VARIABLE
20852 # ":DIR[:DIR]"
20853 # string "DIR[ DIR]" will be appended to VARIABLE
20854 # "DIRP[:DIRP]::[DIRA:]DIRA"
20855 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20856 # "DIRA[ DIRA]" will be appended to VARIABLE
20857 # "DIR[:DIR]"
20858 # VARIABLE will be replaced by "DIR[ DIR]"
20859 func_munge_path_list ()
20860 {
20861 case x$2 in
20862 x)
20863 ;;
20864 *:)
20865 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20866 ;;
20867 x:*)
20868 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20869 ;;
20870 *::*)
20871 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20872 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20873 ;;
20874 *)
20875 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20876 ;;
20877 esac
20878 }
20879
20880
20881 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20882 func_cc_basename ()
20883 {
20884 for cc_temp in $*""; do
20885 case $cc_temp in
20886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20888 \-*) ;;
20889 *) break;;
20890 esac
20891 done
20892 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20893 }
20894
20895
20896 # ### END FUNCTIONS SHARED WITH CONFIGURE
20897
20898 _LT_EOF
20899
20900 case $host_os in
20901 aix3*)
20902 cat <<\_LT_EOF >> "$cfgfile"
20903 # AIX sometimes has problems with the GCC collect2 program. For some
20904 # reason, if we set the COLLECT_NAMES environment variable, the problems
20905 # vanish in a puff of smoke.
20906 if test set != "${COLLECT_NAMES+set}"; then
20907 COLLECT_NAMES=
20908 export COLLECT_NAMES
20909 fi
20910 _LT_EOF
20911 ;;
20912 esac
20913
20914
20915 ltmain=$ac_aux_dir/ltmain.sh
20916
20917
20918 # We use sed instead of cat because bash on DJGPP gets confused if
20919 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20920 # text mode, it properly converts lines to CR/LF. This bash problem
20921 # is reportedly fixed, but why not run on old versions too?
20922 sed '$q' "$ltmain" >> "$cfgfile" \
20923 || (rm -f "$cfgfile"; exit 1)
20924
20925 mv -f "$cfgfile" "$ofile" ||
20926 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20927 chmod +x "$ofile"
20928
20929 ;;
20930
20931 esac
20932 done # for ac_tag
20933
20934
20935 as_fn_exit 0
20936 _ACEOF
20937 ac_clean_files=$ac_clean_files_save
20938
20939 test $ac_write_fail = 0 ||
20940 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20941
20942
20943 # configure is writing to config.log, and then calls config.status.
20944 # config.status does its own redirection, appending to config.log.
20945 # Unfortunately, on DOS this fails, as config.log is still kept open
20946 # by configure, so config.status won't be able to write to it; its
20947 # output is simply discarded. So we exec the FD to /dev/null,
20948 # effectively closing config.log, so it can be properly (re)opened and
20949 # appended to by config.status. When coming back to configure, we
20950 # need to make the FD available again.
20951 if test "$no_create" != yes; then
20952 ac_cs_success=:
20953 ac_config_status_args=
20954 test "$silent" = yes &&
20955 ac_config_status_args="$ac_config_status_args --quiet"
20956 exec 5>/dev/null
20957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20958 exec 5>>config.log
20959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20960 # would make configure fail if this is the last instruction.
20961 $ac_cs_success || as_fn_exit 1
20962 fi
20963 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20965 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20966 fi
20967
20968