configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXpm 3.5.13.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXpm/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/libXpm/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='libXpm'
593 PACKAGE_TARNAME='libXpm'
594 PACKAGE_VERSION='3.5.13'
595 PACKAGE_STRING='libXpm 3.5.13'
596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXpm/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 USE_GETTEXT_FALSE
641 USE_GETTEXT_TRUE
642 LOCALEDIR
643 BUILD_SXPM_FALSE
644 BUILD_SXPM_TRUE
645 SXPM_LIBS
646 SXPM_CFLAGS
647 XPM_LIBS
648 XPM_CFLAGS
649 MAN_SUBSTS
650 XORG_MAN_PAGE
651 ADMIN_MAN_DIR
652 DRIVER_MAN_DIR
653 MISC_MAN_DIR
654 FILE_MAN_DIR
655 LIB_MAN_DIR
656 APP_MAN_DIR
657 ADMIN_MAN_SUFFIX
658 DRIVER_MAN_SUFFIX
659 MISC_MAN_SUFFIX
660 FILE_MAN_SUFFIX
661 LIB_MAN_SUFFIX
662 APP_MAN_SUFFIX
663 INSTALL_CMD
664 PKG_CONFIG_LIBDIR
665 PKG_CONFIG_PATH
666 PKG_CONFIG
667 CHANGELOG_CMD
668 STRICT_CFLAGS
669 CWARNFLAGS
670 BASE_CFLAGS
671 CPP
672 LT_SYS_LIBRARY_PATH
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 MANIFEST_TOOL
679 RANLIB
680 ac_ct_AR
681 AR
682 DLLTOOL
683 OBJDUMP
684 LN_S
685 NM
686 ac_ct_DUMPBIN
687 DUMPBIN
688 LD
689 FGREP
690 EGREP
691 GREP
692 SED
693 am__fastdepCC_FALSE
694 am__fastdepCC_TRUE
695 CCDEPMODE
696 am__nodep
697 AMDEPBACKSLASH
698 AMDEP_FALSE
699 AMDEP_TRUE
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 am__quote'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_silent_rules
788 enable_shared
789 enable_static
790 with_pic
791 enable_fast_install
792 with_aix_soname
793 enable_dependency_tracking
794 with_gnu_ld
795 with_sysroot
796 enable_libtool_lock
797 enable_selective_werror
798 enable_strict_compilation
799 with_localedir
800 enable_stat_zfile
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 XPM_CFLAGS
816 XPM_LIBS
817 SXPM_CFLAGS
818 SXPM_LIBS'
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 libXpm 3.5.13 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/libXpm]
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 libXpm 3.5.13:";;
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 --enable-stat-zfile Search for files with .Z & .gz extensions
1455 automatically [default=yes]
1456
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-aix-soname=aix|svr4|both
1463 shared library versioning (aka "SONAME") variant to
1464 provide on AIX, [default=aix].
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1467 compiler's sysroot if not specified).
1468 --with-localedir=<path> Path to install message files in (default:
1469 datadir/locale)
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 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config
1488 XPM_LIBS linker flags for XPM, overriding pkg-config
1489 SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config
1490 SXPM_LIBS linker flags for SXPM, overriding pkg-config
1491
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1494
1495 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXpm/issues>.
1496 _ACEOF
1497 ac_status=$?
1498 fi
1499
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" ||
1504 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505 continue
1506 ac_builddir=.
1507
1508 case "$ac_dir" in
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *)
1511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518 esac
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1523
1524 case $srcdir in
1525 .) # We are building in place.
1526 ac_srcdir=.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 esac
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1548 else
1549 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1552 done
1553 fi
1554
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1557 cat <<\_ACEOF
1558 libXpm configure 3.5.13
1559 generated by GNU Autoconf 2.69
1560
1561 Copyright (C) 2012 Free Software Foundation, Inc.
1562 This configure script is free software; the Free Software Foundation
1563 gives unlimited permission to copy, distribute and modify it.
1564 _ACEOF
1565 exit
1566 fi
1567
1568 ## ------------------------ ##
1569 ## Autoconf initialization. ##
1570 ## ------------------------ ##
1571
1572 # ac_fn_c_try_compile LINENO
1573 # --------------------------
1574 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_compile ()
1576 {
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext
1579 if { { ac_try="$ac_compile"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_compile") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest.$ac_objext; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604 fi
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_compile
1609
1610 # ac_fn_c_try_link LINENO
1611 # -----------------------
1612 # Try to link conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_link ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext conftest$ac_exeext
1617 if { { ac_try="$ac_link"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_link") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest$ac_exeext && {
1636 test "$cross_compiling" = yes ||
1637 test -x conftest$ac_exeext
1638 }; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645 fi
1646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1648 # interfere with the next link command; also delete a directory that is
1649 # left behind by Apple's compiler. We do this before executing the actions.
1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_link
1655
1656 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1657 # -------------------------------------------------------
1658 # Tests whether HEADER exists and can be compiled using the include files in
1659 # INCLUDES, setting the cache variable VAR accordingly.
1660 ac_fn_c_check_header_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if eval \${$3+:} false; then :
1666 $as_echo_n "(cached) " >&6
1667 else
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1670 $4
1671 #include <$2>
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"; then :
1674 eval "$3=yes"
1675 else
1676 eval "$3=no"
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 fi
1680 eval ac_res=\$$3
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685 } # ac_fn_c_check_header_compile
1686
1687 # ac_fn_c_try_cpp LINENO
1688 # ----------------------
1689 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_cpp ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_cpp conftest.$ac_ext"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } > conftest.i && {
1709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718 fi
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_cpp
1723
1724 # ac_fn_c_try_run LINENO
1725 # ----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727 # that executables *can* be run.
1728 ac_fn_c_try_run ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742 { { case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_try") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; }; }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: program exited with status $ac_status" >&5
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=$ac_status
1759 fi
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1763
1764 } # ac_fn_c_try_run
1765
1766 # ac_fn_c_check_func LINENO FUNC VAR
1767 # ----------------------------------
1768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1769 ac_fn_c_check_func ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1781 #define $2 innocuous_$2
1782
1783 /* System header to define __stub macros and hopefully few prototypes,
1784 which can conflict with char $2 (); below.
1785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1786 <limits.h> exists even on freestanding compilers. */
1787
1788 #ifdef __STDC__
1789 # include <limits.h>
1790 #else
1791 # include <assert.h>
1792 #endif
1793
1794 #undef $2
1795
1796 /* Override any GCC internal prototype to avoid an error.
1797 Use char because int might match the return type of a GCC
1798 builtin and then its argument prototype would still apply. */
1799 #ifdef __cplusplus
1800 extern "C"
1801 #endif
1802 char $2 ();
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined __stub_$2 || defined __stub___$2
1807 choke me
1808 #endif
1809
1810 int
1811 main ()
1812 {
1813 return $2 ();
1814 ;
1815 return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_link "$LINENO"; then :
1819 eval "$3=yes"
1820 else
1821 eval "$3=no"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext \
1824 conftest$ac_exeext conftest.$ac_ext
1825 fi
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831 } # ac_fn_c_check_func
1832
1833 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1834 # ---------------------------------------------
1835 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1836 # accordingly.
1837 ac_fn_c_check_decl ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 as_decl_name=`echo $2|sed 's/ *(.*//'`
1841 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1843 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 $4
1850 int
1851 main ()
1852 {
1853 #ifndef $as_decl_name
1854 #ifdef __cplusplus
1855 (void) $as_decl_use;
1856 #else
1857 (void) $as_decl_name;
1858 #endif
1859 #endif
1860
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 fi
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_decl
1878 cat >config.log <<_ACEOF
1879 This file contains any messages produced by compilers while
1880 running configure, to aid debugging if configure makes a mistake.
1881
1882 It was created by libXpm $as_me 3.5.13, which was
1883 generated by GNU Autoconf 2.69. Invocation command line was
1884
1885 $ $0 $@
1886
1887 _ACEOF
1888 exec 5>>config.log
1889 {
1890 cat <<_ASUNAME
1891 ## --------- ##
1892 ## Platform. ##
1893 ## --------- ##
1894
1895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1903
1904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911
1912 _ASUNAME
1913
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
1919 $as_echo "PATH: $as_dir"
1920 done
1921 IFS=$as_save_IFS
1922
1923 } >&5
1924
1925 cat >&5 <<_ACEOF
1926
1927
1928 ## ----------- ##
1929 ## Core tests. ##
1930 ## ----------- ##
1931
1932 _ACEOF
1933
1934
1935 # Keep a trace of the command line.
1936 # Strip out --no-create and --no-recursion so they do not pile up.
1937 # Strip out --silent because we don't want to record it for future runs.
1938 # Also quote any args containing shell meta-characters.
1939 # Make two passes to allow for proper duplicate-argument suppression.
1940 ac_configure_args=
1941 ac_configure_args0=
1942 ac_configure_args1=
1943 ac_must_keep_next=false
1944 for ac_pass in 1 2
1945 do
1946 for ac_arg
1947 do
1948 case $ac_arg in
1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951 | -silent | --silent | --silen | --sile | --sil)
1952 continue ;;
1953 *\'*)
1954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 esac
1956 case $ac_pass in
1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958 2)
1959 as_fn_append ac_configure_args1 " '$ac_arg'"
1960 if test $ac_must_keep_next = true; then
1961 ac_must_keep_next=false # Got value, back to normal.
1962 else
1963 case $ac_arg in
1964 *=* | --config-cache | -C | -disable-* | --disable-* \
1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967 | -with-* | --with-* | -without-* | --without-* | --x)
1968 case "$ac_configure_args0 " in
1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970 esac
1971 ;;
1972 -* ) ac_must_keep_next=true ;;
1973 esac
1974 fi
1975 as_fn_append ac_configure_args " '$ac_arg'"
1976 ;;
1977 esac
1978 done
1979 done
1980 { ac_configure_args0=; unset ac_configure_args0;}
1981 { ac_configure_args1=; unset ac_configure_args1;}
1982
1983 # When interrupted or exit'd, cleanup temporary files, and complete
1984 # config.log. We remove comments because anyway the quotes in there
1985 # would cause problems or look ugly.
1986 # WARNING: Use '\'' to represent an apostrophe within the trap.
1987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988 trap 'exit_status=$?
1989 # Save into config.log some information that might help in debugging.
1990 {
1991 echo
1992
1993 $as_echo "## ---------------- ##
1994 ## Cache variables. ##
1995 ## ---------------- ##"
1996 echo
1997 # The following way of writing the cache mishandles newlines in values,
1998 (
1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in #(
2002 *${as_nl}*)
2003 case $ac_var in #(
2004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006 esac
2007 case $ac_var in #(
2008 _ | IFS | as_nl) ;; #(
2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010 *) { eval $ac_var=; unset $ac_var;} ;;
2011 esac ;;
2012 esac
2013 done
2014 (set) 2>&1 |
2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016 *${as_nl}ac_space=\ *)
2017 sed -n \
2018 "s/'\''/'\''\\\\'\'''\''/g;
2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020 ;; #(
2021 *)
2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023 ;;
2024 esac |
2025 sort
2026 )
2027 echo
2028
2029 $as_echo "## ----------------- ##
2030 ## Output variables. ##
2031 ## ----------------- ##"
2032 echo
2033 for ac_var in $ac_subst_vars
2034 do
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2042
2043 if test -n "$ac_subst_files"; then
2044 $as_echo "## ------------------- ##
2045 ## File substitutions. ##
2046 ## ------------------- ##"
2047 echo
2048 for ac_var in $ac_subst_files
2049 do
2050 eval ac_val=\$$ac_var
2051 case $ac_val in
2052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 esac
2054 $as_echo "$ac_var='\''$ac_val'\''"
2055 done | sort
2056 echo
2057 fi
2058
2059 if test -s confdefs.h; then
2060 $as_echo "## ----------- ##
2061 ## confdefs.h. ##
2062 ## ----------- ##"
2063 echo
2064 cat confdefs.h
2065 echo
2066 fi
2067 test "$ac_signal" != 0 &&
2068 $as_echo "$as_me: caught signal $ac_signal"
2069 $as_echo "$as_me: exit $exit_status"
2070 } >&5
2071 rm -f core *.core core.conftest.* &&
2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073 exit $exit_status
2074 ' 0
2075 for ac_signal in 1 2 13 15; do
2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2077 done
2078 ac_signal=0
2079
2080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2081 rm -f -r conftest* confdefs.h
2082
2083 $as_echo "/* confdefs.h */" > confdefs.h
2084
2085 # Predefined preprocessor variables.
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_NAME "$PACKAGE_NAME"
2089 _ACEOF
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093 _ACEOF
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_STRING "$PACKAGE_STRING"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_URL "$PACKAGE_URL"
2109 _ACEOF
2110
2111
2112 # Let the site file select an alternate cache file if it wants to.
2113 # Prefer an explicitly selected file to automatically selected ones.
2114 ac_site_file1=NONE
2115 ac_site_file2=NONE
2116 if test -n "$CONFIG_SITE"; then
2117 # We do not want a PATH search for config.site.
2118 case $CONFIG_SITE in #((
2119 -*) ac_site_file1=./$CONFIG_SITE;;
2120 */*) ac_site_file1=$CONFIG_SITE;;
2121 *) ac_site_file1=./$CONFIG_SITE;;
2122 esac
2123 elif test "x$prefix" != xNONE; then
2124 ac_site_file1=$prefix/share/config.site
2125 ac_site_file2=$prefix/etc/config.site
2126 else
2127 ac_site_file1=$ac_default_prefix/share/config.site
2128 ac_site_file2=$ac_default_prefix/etc/config.site
2129 fi
2130 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2131 do
2132 test "x$ac_site_file" = xNONE && continue
2133 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2135 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2136 sed 's/^/| /' "$ac_site_file" >&5
2137 . "$ac_site_file" \
2138 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140 as_fn_error $? "failed to load site script $ac_site_file
2141 See \`config.log' for more details" "$LINENO" 5; }
2142 fi
2143 done
2144
2145 if test -r "$cache_file"; then
2146 # Some versions of bash will fail to source /dev/null (special files
2147 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2151 case $cache_file in
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
2154 esac
2155 fi
2156 else
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2159 >$cache_file
2160 fi
2161
2162 # Check that the precious variables saved in the cache have kept the same
2163 # value.
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
2170 case $ac_old_set,$ac_new_set in
2171 set,)
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174 ac_cache_corrupted=: ;;
2175 ,set)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,);;
2180 *)
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2193 fi
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198 fi;;
2199 esac
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2202 case $ac_new_val in
2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2205 esac
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209 esac
2210 fi
2211 done
2212 if $ac_cache_corrupted; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2218 fi
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2222
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
2229
2230
2231 ac_config_headers="$ac_config_headers config.h"
2232
2233
2234
2235 # Initialize Automake
2236 am__api_version='1.16'
2237
2238 ac_aux_dir=
2239 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2240 if test -f "$ac_dir/install-sh"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/install-sh -c"
2243 break
2244 elif test -f "$ac_dir/install.sh"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/install.sh -c"
2247 break
2248 elif test -f "$ac_dir/shtool"; then
2249 ac_aux_dir=$ac_dir
2250 ac_install_sh="$ac_aux_dir/shtool install -c"
2251 break
2252 fi
2253 done
2254 if test -z "$ac_aux_dir"; then
2255 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2256 fi
2257
2258 # These three variables are undocumented and unsupported,
2259 # and are intended to be withdrawn in a future Autoconf release.
2260 # They can cause serious problems if a builder's source tree is in a directory
2261 # whose full name contains unusual characters.
2262 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2263 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2264 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2265
2266
2267 # Find a good install program. We prefer a C program (faster),
2268 # so one script is as good as another. But avoid the broken or
2269 # incompatible versions:
2270 # SysV /etc/install, /usr/sbin/install
2271 # SunOS /usr/etc/install
2272 # IRIX /sbin/install
2273 # AIX /bin/install
2274 # AmigaOS /C/install, which installs bootblocks on floppy discs
2275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2278 # OS/2's system install, which has a completely different semantic
2279 # ./install, which can be erroneously created by make from ./install.sh.
2280 # Reject install programs that cannot install multiple files.
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2282 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2283 if test -z "$INSTALL"; then
2284 if ${ac_cv_path_install+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 # Account for people who put trailing slashes in PATH elements.
2293 case $as_dir/ in #((
2294 ./ | .// | /[cC]/* | \
2295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2297 /usr/ucb/* ) ;;
2298 *)
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2301 # by default.
2302 for ac_prog in ginstall scoinst install; do
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2305 if test $ac_prog = install &&
2306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # AIX install. It has an incompatible calling convention.
2308 :
2309 elif test $ac_prog = install &&
2310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # program-specific install script used by HP pwplus--don't use.
2312 :
2313 else
2314 rm -rf conftest.one conftest.two conftest.dir
2315 echo one > conftest.one
2316 echo two > conftest.two
2317 mkdir conftest.dir
2318 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2319 test -s conftest.one && test -s conftest.two &&
2320 test -s conftest.dir/conftest.one &&
2321 test -s conftest.dir/conftest.two
2322 then
2323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324 break 3
2325 fi
2326 fi
2327 fi
2328 done
2329 done
2330 ;;
2331 esac
2332
2333 done
2334 IFS=$as_save_IFS
2335
2336 rm -rf conftest.one conftest.two conftest.dir
2337
2338 fi
2339 if test "${ac_cv_path_install+set}" = set; then
2340 INSTALL=$ac_cv_path_install
2341 else
2342 # As a last resort, use the slow shell script. Don't cache a
2343 # value for INSTALL within a source directory, because that will
2344 # break other packages using the cache if that directory is
2345 # removed, or if the value is a relative name.
2346 INSTALL=$ac_install_sh
2347 fi
2348 fi
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2350 $as_echo "$INSTALL" >&6; }
2351
2352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353 # It thinks the first close brace ends the variable substitution.
2354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2361 $as_echo_n "checking whether build environment is sane... " >&6; }
2362 # Reject unsafe characters in $srcdir or the absolute working directory
2363 # name. Accept space and tab only in the latter.
2364 am_lf='
2365 '
2366 case `pwd` in
2367 *[\\\"\#\$\&\'\`$am_lf]*)
2368 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2369 esac
2370 case $srcdir in
2371 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2372 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2373 esac
2374
2375 # Do 'set' in a subshell so we don't clobber the current shell's
2376 # arguments. Must try -L first in case configure is actually a
2377 # symlink; some systems play weird games with the mod time of symlinks
2378 # (eg FreeBSD returns the mod time of the symlink's containing
2379 # directory).
2380 if (
2381 am_has_slept=no
2382 for am_try in 1 2; do
2383 echo "timestamp, slept: $am_has_slept" > conftest.file
2384 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2385 if test "$*" = "X"; then
2386 # -L didn't work.
2387 set X `ls -t "$srcdir/configure" conftest.file`
2388 fi
2389 if test "$*" != "X $srcdir/configure conftest.file" \
2390 && test "$*" != "X conftest.file $srcdir/configure"; then
2391
2392 # If neither matched, then we have a broken ls. This can happen
2393 # if, for instance, CONFIG_SHELL is bash and it inherits a
2394 # broken ls alias from the environment. This has actually
2395 # happened. Such a system could not be considered "sane".
2396 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2397 alias in your environment" "$LINENO" 5
2398 fi
2399 if test "$2" = conftest.file || test $am_try -eq 2; then
2400 break
2401 fi
2402 # Just in case.
2403 sleep 1
2404 am_has_slept=yes
2405 done
2406 test "$2" = conftest.file
2407 )
2408 then
2409 # Ok.
2410 :
2411 else
2412 as_fn_error $? "newly created file is older than distributed files!
2413 Check your system clock" "$LINENO" 5
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2416 $as_echo "yes" >&6; }
2417 # If we didn't sleep, we still need to ensure time stamps of config.status and
2418 # generated files are strictly newer.
2419 am_sleep_pid=
2420 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2421 ( sleep 1 ) &
2422 am_sleep_pid=$!
2423 fi
2424
2425 rm -f conftest.file
2426
2427 test "$program_prefix" != NONE &&
2428 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2429 # Use a double $ so make ignores it.
2430 test "$program_suffix" != NONE &&
2431 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432 # Double any \ or $.
2433 # By default was `s,x,x', remove it if useless.
2434 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436
2437 # Expand $ac_aux_dir to an absolute path.
2438 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2439
2440 if test x"${MISSING+set}" != xset; then
2441 case $am_aux_dir in
2442 *\ * | *\ *)
2443 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2444 *)
2445 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2446 esac
2447 fi
2448 # Use eval to expand $SHELL
2449 if eval "$MISSING --is-lightweight"; then
2450 am_missing_run="$MISSING "
2451 else
2452 am_missing_run=
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2454 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2455 fi
2456
2457 if test x"${install_sh+set}" != xset; then
2458 case $am_aux_dir in
2459 *\ * | *\ *)
2460 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2461 *)
2462 install_sh="\${SHELL} $am_aux_dir/install-sh"
2463 esac
2464 fi
2465
2466 # Installed binaries are usually stripped using 'strip' when the user
2467 # run "make install-strip". However 'strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the 'STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
2476 if ${ac_cv_prog_STRIP+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 if test -n "$STRIP"; then
2480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 break 2
2492 fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2502 $as_echo "$STRIP" >&6; }
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505 $as_echo "no" >&6; }
2506 fi
2507
2508
2509 fi
2510 if test -z "$ac_cv_prog_STRIP"; then
2511 ac_ct_STRIP=$STRIP
2512 # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515 $as_echo_n "checking for $ac_word... " >&6; }
2516 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 if test -n "$ac_ct_STRIP"; then
2520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_ac_ct_STRIP="strip"
2530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2532 fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2542 $as_echo "$ac_ct_STRIP" >&6; }
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2546 fi
2547
2548 if test "x$ac_ct_STRIP" = x; then
2549 STRIP=":"
2550 else
2551 case $cross_compiling:$ac_tool_warned in
2552 yes:)
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555 ac_tool_warned=yes ;;
2556 esac
2557 STRIP=$ac_ct_STRIP
2558 fi
2559 else
2560 STRIP="$ac_cv_prog_STRIP"
2561 fi
2562
2563 fi
2564 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2567 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2568 if test -z "$MKDIR_P"; then
2569 if ${ac_cv_path_mkdir+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_prog in mkdir gmkdir; do
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2580 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2581 'mkdir (GNU coreutils) '* | \
2582 'mkdir (coreutils) '* | \
2583 'mkdir (fileutils) '4.1*)
2584 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2585 break 3;;
2586 esac
2587 done
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593
2594 test -d ./--version && rmdir ./--version
2595 if test "${ac_cv_path_mkdir+set}" = set; then
2596 MKDIR_P="$ac_cv_path_mkdir -p"
2597 else
2598 # As a last resort, use the slow shell script. Don't cache a
2599 # value for MKDIR_P within a source directory, because that will
2600 # break other packages using the cache if that directory is
2601 # removed, or if the value is a relative name.
2602 MKDIR_P="$ac_install_sh -d"
2603 fi
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2606 $as_echo "$MKDIR_P" >&6; }
2607
2608 for ac_prog in gawk mawk nawk awk
2609 do
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if ${ac_cv_prog_AWK+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$AWK"; then
2618 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_AWK="$ac_prog"
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 AWK=$ac_cv_prog_AWK
2638 if test -n "$AWK"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2640 $as_echo "$AWK" >&6; }
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2645
2646
2647 test -n "$AWK" && break
2648 done
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2651 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2652 set x ${MAKE-make}
2653 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 cat >conftest.make <<\_ACEOF
2658 SHELL = /bin/sh
2659 all:
2660 @echo '@@@%%%=$(MAKE)=@@@%%%'
2661 _ACEOF
2662 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2664 *@@@%%%=?*=@@@%%%*)
2665 eval ac_cv_prog_make_${ac_make}_set=yes;;
2666 *)
2667 eval ac_cv_prog_make_${ac_make}_set=no;;
2668 esac
2669 rm -f conftest.make
2670 fi
2671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 SET_MAKE=
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 SET_MAKE="MAKE=${MAKE-make}"
2679 fi
2680
2681 rm -rf .tst 2>/dev/null
2682 mkdir .tst 2>/dev/null
2683 if test -d .tst; then
2684 am__leading_dot=.
2685 else
2686 am__leading_dot=_
2687 fi
2688 rmdir .tst 2>/dev/null
2689
2690 # Check whether --enable-silent-rules was given.
2691 if test "${enable_silent_rules+set}" = set; then :
2692 enableval=$enable_silent_rules;
2693 fi
2694
2695 case $enable_silent_rules in # (((
2696 yes) AM_DEFAULT_VERBOSITY=0;;
2697 no) AM_DEFAULT_VERBOSITY=1;;
2698 *) AM_DEFAULT_VERBOSITY=1;;
2699 esac
2700 am_make=${MAKE-make}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2702 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2703 if ${am_cv_make_support_nested_variables+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if $as_echo 'TRUE=$(BAR$(V))
2707 BAR0=false
2708 BAR1=true
2709 V=1
2710 am__doit:
2711 @$(TRUE)
2712 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2713 am_cv_make_support_nested_variables=yes
2714 else
2715 am_cv_make_support_nested_variables=no
2716 fi
2717 fi
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2719 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2720 if test $am_cv_make_support_nested_variables = yes; then
2721 AM_V='$(V)'
2722 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2723 else
2724 AM_V=$AM_DEFAULT_VERBOSITY
2725 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2726 fi
2727 AM_BACKSLASH='\'
2728
2729 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731 # is not polluted with repeated "-I."
2732 am__isrc=' -I$(srcdir)'
2733 # test to see if srcdir already configured
2734 if test -f $srcdir/config.status; then
2735 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2736 fi
2737 fi
2738
2739 # test whether we have cygpath
2740 if test -z "$CYGPATH_W"; then
2741 if (cygpath --version) >/dev/null 2>/dev/null; then
2742 CYGPATH_W='cygpath -w'
2743 else
2744 CYGPATH_W=echo
2745 fi
2746 fi
2747
2748
2749 # Define the identity of the package.
2750 PACKAGE='libXpm'
2751 VERSION='3.5.13'
2752
2753
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE "$PACKAGE"
2756 _ACEOF
2757
2758
2759 cat >>confdefs.h <<_ACEOF
2760 #define VERSION "$VERSION"
2761 _ACEOF
2762
2763 # Some tools Automake needs.
2764
2765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2766
2767
2768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2769
2770
2771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2772
2773
2774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2775
2776
2777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2778
2779 # For better backward compatibility. To be removed once Automake 1.9.x
2780 # dies out for good. For more background, see:
2781 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2782 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2783 mkdir_p='$(MKDIR_P)'
2784
2785 # We need awk for the "check" target (and possibly the TAP driver). The
2786 # system "awk" is bad on some platforms.
2787 # Always define AMTAR for backward compatibility. Yes, it's still used
2788 # in the wild :-( We should find a proper way to deprecate it ...
2789 AMTAR='$${TAR-tar}'
2790
2791
2792 # We'll loop over all known methods to create a tar archive until one works.
2793 _am_tools='gnutar pax cpio none'
2794
2795 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2796
2797
2798
2799
2800
2801
2802 # POSIX will say in a future version that running "rm -f" with no argument
2803 # is OK; and we want to be able to make that assumption in our Makefile
2804 # recipes. So use an aggressive probe to check that the usage we want is
2805 # actually supported "in the wild" to an acceptable degree.
2806 # See automake bug#10828.
2807 # To make any issue more visible, cause the running configure to be aborted
2808 # by default if the 'rm' program in use doesn't match our expectations; the
2809 # user can still override this though.
2810 if rm -f && rm -fr && rm -rf; then : OK; else
2811 cat >&2 <<'END'
2812 Oops!
2813
2814 Your 'rm' program seems unable to run without file operands specified
2815 on the command line, even when the '-f' option is present. This is contrary
2816 to the behaviour of most rm programs out there, and not conforming with
2817 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2818
2819 Please tell bug-automake@gnu.org about your system, including the value
2820 of your $PATH and any error possibly output before this message. This
2821 can help us improve future automake versions.
2822
2823 END
2824 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2825 echo 'Configuration will proceed anyway, since you have set the' >&2
2826 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2827 echo >&2
2828 else
2829 cat >&2 <<'END'
2830 Aborting the configuration process, to ensure you take notice of the issue.
2831
2832 You can download and install GNU coreutils to get an 'rm' implementation
2833 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2834
2835 If you want to complete the configuration process using your problematic
2836 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2837 to "yes", and re-run configure.
2838
2839 END
2840 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2841 fi
2842 fi
2843
2844
2845 # Initialize libtool
2846 case `pwd` in
2847 *\ * | *\ *)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2849 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2850 esac
2851
2852
2853
2854 macro_version='2.4.6'
2855 macro_revision='2.4.6'
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869 ltmain=$ac_aux_dir/ltmain.sh
2870
2871 # Make sure we can run config.sub.
2872 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2873 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2874
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2876 $as_echo_n "checking build system type... " >&6; }
2877 if ${ac_cv_build+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 ac_build_alias=$build_alias
2881 test "x$ac_build_alias" = x &&
2882 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2883 test "x$ac_build_alias" = x &&
2884 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2885 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2886 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2887
2888 fi
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2890 $as_echo "$ac_cv_build" >&6; }
2891 case $ac_cv_build in
2892 *-*-*) ;;
2893 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2894 esac
2895 build=$ac_cv_build
2896 ac_save_IFS=$IFS; IFS='-'
2897 set x $ac_cv_build
2898 shift
2899 build_cpu=$1
2900 build_vendor=$2
2901 shift; shift
2902 # Remember, the first character of IFS is used to create $*,
2903 # except with old shells:
2904 build_os=$*
2905 IFS=$ac_save_IFS
2906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2907
2908
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2910 $as_echo_n "checking host system type... " >&6; }
2911 if ${ac_cv_host+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test "x$host_alias" = x; then
2915 ac_cv_host=$ac_cv_build
2916 else
2917 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2918 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2919 fi
2920
2921 fi
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2923 $as_echo "$ac_cv_host" >&6; }
2924 case $ac_cv_host in
2925 *-*-*) ;;
2926 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2927 esac
2928 host=$ac_cv_host
2929 ac_save_IFS=$IFS; IFS='-'
2930 set x $ac_cv_host
2931 shift
2932 host_cpu=$1
2933 host_vendor=$2
2934 shift; shift
2935 # Remember, the first character of IFS is used to create $*,
2936 # except with old shells:
2937 host_os=$*
2938 IFS=$ac_save_IFS
2939 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2940
2941
2942 # Backslashify metacharacters that are still active within
2943 # double-quoted strings.
2944 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2945
2946 # Same as above, but do not quote variable references.
2947 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2948
2949 # Sed substitution to delay expansion of an escaped shell variable in a
2950 # double_quote_subst'ed string.
2951 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2952
2953 # Sed substitution to delay expansion of an escaped single quote.
2954 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2955
2956 # Sed substitution to avoid accidental globbing in evaled expressions
2957 no_glob_subst='s/\*/\\\*/g'
2958
2959 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2960 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2962
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2964 $as_echo_n "checking how to print strings... " >&6; }
2965 # Test print first, because it will be a builtin if present.
2966 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2967 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2968 ECHO='print -r --'
2969 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2970 ECHO='printf %s\n'
2971 else
2972 # Use this function as a fallback that always works.
2973 func_fallback_echo ()
2974 {
2975 eval 'cat <<_LTECHO_EOF
2976 $1
2977 _LTECHO_EOF'
2978 }
2979 ECHO='func_fallback_echo'
2980 fi
2981
2982 # func_echo_all arg...
2983 # Invoke $ECHO with all args, space-separated.
2984 func_echo_all ()
2985 {
2986 $ECHO ""
2987 }
2988
2989 case $ECHO in
2990 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2991 $as_echo "printf" >&6; } ;;
2992 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2993 $as_echo "print -r" >&6; } ;;
2994 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2995 $as_echo "cat" >&6; } ;;
2996 esac
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011 DEPDIR="${am__leading_dot}deps"
3012
3013 ac_config_commands="$ac_config_commands depfiles"
3014
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3016 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3017 cat > confinc.mk << 'END'
3018 am__doit:
3019 @echo this is the am__doit target >confinc.out
3020 .PHONY: am__doit
3021 END
3022 am__include="#"
3023 am__quote=
3024 # BSD make does it like this.
3025 echo '.include "confinc.mk" # ignored' > confmf.BSD
3026 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3027 echo 'include confinc.mk # ignored' > confmf.GNU
3028 _am_result=no
3029 for s in GNU BSD; do
3030 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3031 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }
3035 case $?:`cat confinc.out 2>/dev/null` in #(
3036 '0:this is the am__doit target') :
3037 case $s in #(
3038 BSD) :
3039 am__include='.include' am__quote='"' ;; #(
3040 *) :
3041 am__include='include' am__quote='' ;;
3042 esac ;; #(
3043 *) :
3044 ;;
3045 esac
3046 if test "$am__include" != "#"; then
3047 _am_result="yes ($s style)"
3048 break
3049 fi
3050 done
3051 rm -f confinc.* confmf.*
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3053 $as_echo "${_am_result}" >&6; }
3054
3055 # Check whether --enable-dependency-tracking was given.
3056 if test "${enable_dependency_tracking+set}" = set; then :
3057 enableval=$enable_dependency_tracking;
3058 fi
3059
3060 if test "x$enable_dependency_tracking" != xno; then
3061 am_depcomp="$ac_aux_dir/depcomp"
3062 AMDEPBACKSLASH='\'
3063 am__nodep='_no'
3064 fi
3065 if test "x$enable_dependency_tracking" != xno; then
3066 AMDEP_TRUE=
3067 AMDEP_FALSE='#'
3068 else
3069 AMDEP_TRUE='#'
3070 AMDEP_FALSE=
3071 fi
3072
3073
3074 ac_ext=c
3075 ac_cpp='$CPP $CPPFLAGS'
3076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079 if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3081 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_CC+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101 done
3102 done
3103 IFS=$as_save_IFS
3104
3105 fi
3106 fi
3107 CC=$ac_cv_prog_CC
3108 if test -n "$CC"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110 $as_echo "$CC" >&6; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116
3117 fi
3118 if test -z "$ac_cv_prog_CC"; then
3119 ac_ct_CC=$CC
3120 # Extract the first word of "gcc", so it can be a program name with args.
3121 set dummy gcc; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$ac_ct_CC"; then
3128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_CC="gcc"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148 if test -n "$ac_ct_CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3150 $as_echo "$ac_ct_CC" >&6; }
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156 if test "x$ac_ct_CC" = x; then
3157 CC=""
3158 else
3159 case $cross_compiling:$ac_tool_warned in
3160 yes:)
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163 ac_tool_warned=yes ;;
3164 esac
3165 CC=$ac_ct_CC
3166 fi
3167 else
3168 CC="$ac_cv_prog_CC"
3169 fi
3170
3171 if test -z "$CC"; then
3172 if test -n "$ac_tool_prefix"; then
3173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3174 set dummy ${ac_tool_prefix}cc; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_CC+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_CC="${ac_tool_prefix}cc"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 CC=$ac_cv_prog_CC
3201 if test -n "$CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203 $as_echo "$CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209
3210 fi
3211 fi
3212 if test -z "$CC"; then
3213 # Extract the first word of "cc", so it can be a program name with args.
3214 set dummy cc; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3222 else
3223 ac_prog_rejected=no
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3232 ac_prog_rejected=yes
3233 continue
3234 fi
3235 ac_cv_prog_CC="cc"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 if test $ac_prog_rejected = yes; then
3244 # We found a bogon in the path, so make sure we never use it.
3245 set dummy $ac_cv_prog_CC
3246 shift
3247 if test $# != 0; then
3248 # We chose a different compiler from the bogus one.
3249 # However, it has the same basename, so the bogon will be chosen
3250 # first if we set CC to just the basename; use the full file name.
3251 shift
3252 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3253 fi
3254 fi
3255 fi
3256 fi
3257 CC=$ac_cv_prog_CC
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265
3266
3267 fi
3268 if test -z "$CC"; then
3269 if test -n "$ac_tool_prefix"; then
3270 for ac_prog in cl.exe
3271 do
3272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if ${ac_cv_prog_CC+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3284 do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3292 fi
3293 done
3294 done
3295 IFS=$as_save_IFS
3296
3297 fi
3298 fi
3299 CC=$ac_cv_prog_CC
3300 if test -n "$CC"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302 $as_echo "$CC" >&6; }
3303 else
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 fi
3307
3308
3309 test -n "$CC" && break
3310 done
3311 fi
3312 if test -z "$CC"; then
3313 ac_ct_CC=$CC
3314 for ac_prog in cl.exe
3315 do
3316 # Extract the first word of "$ac_prog", so it can be a program name with args.
3317 set dummy $ac_prog; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 if test -n "$ac_ct_CC"; then
3324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329 IFS=$as_save_IFS
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333 ac_cv_prog_ac_ct_CC="$ac_prog"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3336 fi
3337 done
3338 done
3339 IFS=$as_save_IFS
3340
3341 fi
3342 fi
3343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3344 if test -n "$ac_ct_CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3346 $as_echo "$ac_ct_CC" >&6; }
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3350 fi
3351
3352
3353 test -n "$ac_ct_CC" && break
3354 done
3355
3356 if test "x$ac_ct_CC" = x; then
3357 CC=""
3358 else
3359 case $cross_compiling:$ac_tool_warned in
3360 yes:)
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3363 ac_tool_warned=yes ;;
3364 esac
3365 CC=$ac_ct_CC
3366 fi
3367 fi
3368
3369 fi
3370
3371
3372 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 as_fn_error $? "no acceptable C compiler found in \$PATH
3375 See \`config.log' for more details" "$LINENO" 5; }
3376
3377 # Provide some information about the compiler.
3378 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3379 set X $ac_compile
3380 ac_compiler=$2
3381 for ac_option in --version -v -V -qversion; do
3382 { { ac_try="$ac_compiler $ac_option >&5"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3390 ac_status=$?
3391 if test -s conftest.err; then
3392 sed '10a\
3393 ... rest of stderr output deleted ...
3394 10q' conftest.err >conftest.er1
3395 cat conftest.er1 >&5
3396 fi
3397 rm -f conftest.er1 conftest.err
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }
3400 done
3401
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404
3405 int
3406 main ()
3407 {
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 ac_clean_files_save=$ac_clean_files
3414 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3415 # Try to create an executable without -o first, disregard a.out.
3416 # It will help us diagnose broken compilers, and finding out an intuition
3417 # of exeext.
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3419 $as_echo_n "checking whether the C compiler works... " >&6; }
3420 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3421
3422 # The possible output files:
3423 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3424
3425 ac_rmfiles=
3426 for ac_file in $ac_files
3427 do
3428 case $ac_file in
3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3430 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3431 esac
3432 done
3433 rm -f $ac_rmfiles
3434
3435 if { { ac_try="$ac_link_default"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_link_default") 2>&5
3443 ac_status=$?
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; then :
3446 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3447 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3448 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3449 # so that the user can short-circuit this test for compilers unknown to
3450 # Autoconf.
3451 for ac_file in $ac_files ''
3452 do
3453 test -f "$ac_file" || continue
3454 case $ac_file in
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3456 ;;
3457 [ab].out )
3458 # We found the default executable, but exeext='' is most
3459 # certainly right.
3460 break;;
3461 *.* )
3462 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3463 then :; else
3464 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465 fi
3466 # We set ac_cv_exeext here because the later test for it is not
3467 # safe: cross compilers may not add the suffix if given an `-o'
3468 # argument, so we may need to know it at that point already.
3469 # Even if this section looks crufty: it has the advantage of
3470 # actually working.
3471 break;;
3472 * )
3473 break;;
3474 esac
3475 done
3476 test "$ac_cv_exeext" = no && ac_cv_exeext=
3477
3478 else
3479 ac_file=''
3480 fi
3481 if test -z "$ac_file"; then :
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3484 $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error 77 "C compiler cannot create executables
3490 See \`config.log' for more details" "$LINENO" 5; }
3491 else
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493 $as_echo "yes" >&6; }
3494 fi
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3496 $as_echo_n "checking for C compiler default output file name... " >&6; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3498 $as_echo "$ac_file" >&6; }
3499 ac_exeext=$ac_cv_exeext
3500
3501 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3502 ac_clean_files=$ac_clean_files_save
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3504 $as_echo_n "checking for suffix of executables... " >&6; }
3505 if { { ac_try="$ac_link"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_link") 2>&5
3513 ac_status=$?
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; then :
3516 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3517 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3518 # work properly (i.e., refer to `conftest.exe'), while it won't with
3519 # `rm'.
3520 for ac_file in conftest.exe conftest conftest.*; do
3521 test -f "$ac_file" || continue
3522 case $ac_file in
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525 break;;
3526 * ) break;;
3527 esac
3528 done
3529 else
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3533 See \`config.log' for more details" "$LINENO" 5; }
3534 fi
3535 rm -f conftest conftest$ac_cv_exeext
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3537 $as_echo "$ac_cv_exeext" >&6; }
3538
3539 rm -f conftest.$ac_ext
3540 EXEEXT=$ac_cv_exeext
3541 ac_exeext=$EXEEXT
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3544 #include <stdio.h>
3545 int
3546 main ()
3547 {
3548 FILE *f = fopen ("conftest.out", "w");
3549 return ferror (f) || fclose (f) != 0;
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 ac_clean_files="$ac_clean_files conftest.out"
3556 # Check that the compiler produces executables we can run. If not, either
3557 # the compiler is broken, or we cross compile.
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3559 $as_echo_n "checking whether we are cross compiling... " >&6; }
3560 if test "$cross_compiling" != yes; then
3561 { { ac_try="$ac_link"
3562 case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_link") 2>&5
3569 ac_status=$?
3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }
3572 if { ac_try='./conftest$ac_cv_exeext'
3573 { { case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_try") 2>&5
3580 ac_status=$?
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }; }; then
3583 cross_compiling=no
3584 else
3585 if test "$cross_compiling" = maybe; then
3586 cross_compiling=yes
3587 else
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot run C compiled programs.
3591 If you meant to cross compile, use \`--host'.
3592 See \`config.log' for more details" "$LINENO" 5; }
3593 fi
3594 fi
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3597 $as_echo "$cross_compiling" >&6; }
3598
3599 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3600 ac_clean_files=$ac_clean_files_save
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3602 $as_echo_n "checking for suffix of object files... " >&6; }
3603 if ${ac_cv_objext+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608
3609 int
3610 main ()
3611 {
3612
3613 ;
3614 return 0;
3615 }
3616 _ACEOF
3617 rm -f conftest.o conftest.obj
3618 if { { ac_try="$ac_compile"
3619 case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625 (eval "$ac_compile") 2>&5
3626 ac_status=$?
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }; then :
3629 for ac_file in conftest.o conftest.obj conftest.*; do
3630 test -f "$ac_file" || continue;
3631 case $ac_file in
3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3633 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3634 break;;
3635 esac
3636 done
3637 else
3638 $as_echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error $? "cannot compute suffix of object files: cannot compile
3644 See \`config.log' for more details" "$LINENO" 5; }
3645 fi
3646 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3649 $as_echo "$ac_cv_objext" >&6; }
3650 OBJEXT=$ac_cv_objext
3651 ac_objext=$OBJEXT
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3653 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3654 if ${ac_cv_c_compiler_gnu+:} false; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3659
3660 int
3661 main ()
3662 {
3663 #ifndef __GNUC__
3664 choke me
3665 #endif
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 if ac_fn_c_try_compile "$LINENO"; then :
3672 ac_compiler_gnu=yes
3673 else
3674 ac_compiler_gnu=no
3675 fi
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3678
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3681 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3682 if test $ac_compiler_gnu = yes; then
3683 GCC=yes
3684 else
3685 GCC=
3686 fi
3687 ac_test_CFLAGS=${CFLAGS+set}
3688 ac_save_CFLAGS=$CFLAGS
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3690 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3691 if ${ac_cv_prog_cc_g+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 ac_save_c_werror_flag=$ac_c_werror_flag
3695 ac_c_werror_flag=yes
3696 ac_cv_prog_cc_g=no
3697 CFLAGS="-g"
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 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_g=yes
3711 else
3712 CFLAGS=""
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715
3716 int
3717 main ()
3718 {
3719
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725
3726 else
3727 ac_c_werror_flag=$ac_save_c_werror_flag
3728 CFLAGS="-g"
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731
3732 int
3733 main ()
3734 {
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_prog_cc_g=yes
3742 fi
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_c_werror_flag=$ac_save_c_werror_flag
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3751 $as_echo "$ac_cv_prog_cc_g" >&6; }
3752 if test "$ac_test_CFLAGS" = set; then
3753 CFLAGS=$ac_save_CFLAGS
3754 elif test $ac_cv_prog_cc_g = yes; then
3755 if test "$GCC" = yes; then
3756 CFLAGS="-g -O2"
3757 else
3758 CFLAGS="-g"
3759 fi
3760 else
3761 if test "$GCC" = yes; then
3762 CFLAGS="-O2"
3763 else
3764 CFLAGS=
3765 fi
3766 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3768 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3769 if ${ac_cv_prog_cc_c89+:} false; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 ac_cv_prog_cc_c89=no
3773 ac_save_CC=$CC
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776 #include <stdarg.h>
3777 #include <stdio.h>
3778 struct stat;
3779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3780 struct buf { int x; };
3781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3782 static char *e (p, i)
3783 char **p;
3784 int i;
3785 {
3786 return p[i];
3787 }
3788 static char *f (char * (*g) (char **, int), char **p, ...)
3789 {
3790 char *s;
3791 va_list v;
3792 va_start (v,p);
3793 s = g (p, va_arg (v,int));
3794 va_end (v);
3795 return s;
3796 }
3797
3798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3799 function prototypes and stuff, but not '\xHH' hex character constants.
3800 These don't provoke an error unfortunately, instead are silently treated
3801 as 'x'. The following induces an error, until -std is added to get
3802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3803 array size at least. It's necessary to write '\x00'==0 to get something
3804 that's true only with -std. */
3805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3806
3807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3808 inside strings and character constants. */
3809 #define FOO(x) 'x'
3810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3811
3812 int test (int i, double x);
3813 struct s1 {int (*f) (int a);};
3814 struct s2 {int (*f) (double a);};
3815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3816 int argc;
3817 char **argv;
3818 int
3819 main ()
3820 {
3821 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3827 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3828 do
3829 CC="$ac_save_CC $ac_arg"
3830 if ac_fn_c_try_compile "$LINENO"; then :
3831 ac_cv_prog_cc_c89=$ac_arg
3832 fi
3833 rm -f core conftest.err conftest.$ac_objext
3834 test "x$ac_cv_prog_cc_c89" != "xno" && break
3835 done
3836 rm -f conftest.$ac_ext
3837 CC=$ac_save_CC
3838
3839 fi
3840 # AC_CACHE_VAL
3841 case "x$ac_cv_prog_cc_c89" in
3842 x)
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3844 $as_echo "none needed" >&6; } ;;
3845 xno)
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3847 $as_echo "unsupported" >&6; } ;;
3848 *)
3849 CC="$CC $ac_cv_prog_cc_c89"
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3851 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3852 esac
3853 if test "x$ac_cv_prog_cc_c89" != xno; then :
3854
3855 fi
3856
3857 ac_ext=c
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863 ac_ext=c
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3869 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3870 if ${am_cv_prog_cc_c_o+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875
3876 int
3877 main ()
3878 {
3879
3880 ;
3881 return 0;
3882 }
3883 _ACEOF
3884 # Make sure it works both with $CC and with simple cc.
3885 # Following AC_PROG_CC_C_O, we do the test twice because some
3886 # compilers refuse to overwrite an existing .o file with -o,
3887 # though they will create one.
3888 am_cv_prog_cc_c_o=yes
3889 for am_i in 1 2; do
3890 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3891 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } \
3895 && test -f conftest2.$ac_objext; then
3896 : OK
3897 else
3898 am_cv_prog_cc_c_o=no
3899 break
3900 fi
3901 done
3902 rm -f core conftest*
3903 unset am_i
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3906 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3907 if test "$am_cv_prog_cc_c_o" != yes; then
3908 # Losing compiler, so override with the script.
3909 # FIXME: It is wrong to rewrite CC.
3910 # But if we don't then we get into trouble of one sort or another.
3911 # A longer-term fix would be to have automake use am__CC in this case,
3912 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3913 CC="$am_aux_dir/compile $CC"
3914 fi
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920
3921
3922 depcc="$CC" am_compiler_list=
3923
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3925 $as_echo_n "checking dependency style of $depcc... " >&6; }
3926 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3930 # We make a subdir and do the tests there. Otherwise we can end up
3931 # making bogus files that we don't know about and never remove. For
3932 # instance it was reported that on HP-UX the gcc test will end up
3933 # making a dummy file named 'D' -- because '-MD' means "put the output
3934 # in D".
3935 rm -rf conftest.dir
3936 mkdir conftest.dir
3937 # Copy depcomp to subdir because otherwise we won't find it if we're
3938 # using a relative directory.
3939 cp "$am_depcomp" conftest.dir
3940 cd conftest.dir
3941 # We will build objects and dependencies in a subdirectory because
3942 # it helps to detect inapplicable dependency modes. For instance
3943 # both Tru64's cc and ICC support -MD to output dependencies as a
3944 # side effect of compilation, but ICC will put the dependencies in
3945 # the current directory while Tru64 will put them in the object
3946 # directory.
3947 mkdir sub
3948
3949 am_cv_CC_dependencies_compiler_type=none
3950 if test "$am_compiler_list" = ""; then
3951 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3952 fi
3953 am__universal=false
3954 case " $depcc " in #(
3955 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3956 esac
3957
3958 for depmode in $am_compiler_list; do
3959 # Setup a source with many dependencies, because some compilers
3960 # like to wrap large dependency lists on column 80 (with \), and
3961 # we should not choose a depcomp mode which is confused by this.
3962 #
3963 # We need to recreate these files for each test, as the compiler may
3964 # overwrite some of them when testing with obscure command lines.
3965 # This happens at least with the AIX C compiler.
3966 : > sub/conftest.c
3967 for i in 1 2 3 4 5 6; do
3968 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3969 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3970 # Solaris 10 /bin/sh.
3971 echo '/* dummy */' > sub/conftst$i.h
3972 done
3973 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3974
3975 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3976 # mode. It turns out that the SunPro C++ compiler does not properly
3977 # handle '-M -o', and we need to detect this. Also, some Intel
3978 # versions had trouble with output in subdirs.
3979 am__obj=sub/conftest.${OBJEXT-o}
3980 am__minus_obj="-o $am__obj"
3981 case $depmode in
3982 gcc)
3983 # This depmode causes a compiler race in universal mode.
3984 test "$am__universal" = false || continue
3985 ;;
3986 nosideeffect)
3987 # After this tag, mechanisms are not by side-effect, so they'll
3988 # only be used when explicitly requested.
3989 if test "x$enable_dependency_tracking" = xyes; then
3990 continue
3991 else
3992 break
3993 fi
3994 ;;
3995 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3996 # This compiler won't grok '-c -o', but also, the minuso test has
3997 # not run yet. These depmodes are late enough in the game, and
3998 # so weak that their functioning should not be impacted.
3999 am__obj=conftest.${OBJEXT-o}
4000 am__minus_obj=
4001 ;;
4002 none) break ;;
4003 esac
4004 if depmode=$depmode \
4005 source=sub/conftest.c object=$am__obj \
4006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4007 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4008 >/dev/null 2>conftest.err &&
4009 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4010 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4011 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4012 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4013 # icc doesn't choke on unknown options, it will just issue warnings
4014 # or remarks (even with -Werror). So we grep stderr for any message
4015 # that says an option was ignored or not supported.
4016 # When given -MP, icc 7.0 and 7.1 complain thusly:
4017 # icc: Command line warning: ignoring option '-M'; no argument required
4018 # The diagnosis changed in icc 8.0:
4019 # icc: Command line remark: option '-MP' not supported
4020 if (grep 'ignoring option' conftest.err ||
4021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4022 am_cv_CC_dependencies_compiler_type=$depmode
4023 break
4024 fi
4025 fi
4026 done
4027
4028 cd ..
4029 rm -rf conftest.dir
4030 else
4031 am_cv_CC_dependencies_compiler_type=none
4032 fi
4033
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4036 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4037 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4038
4039 if
4040 test "x$enable_dependency_tracking" != xno \
4041 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4042 am__fastdepCC_TRUE=
4043 am__fastdepCC_FALSE='#'
4044 else
4045 am__fastdepCC_TRUE='#'
4046 am__fastdepCC_FALSE=
4047 fi
4048
4049
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4051 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4052 if ${ac_cv_path_SED+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4056 for ac_i in 1 2 3 4 5 6 7; do
4057 ac_script="$ac_script$as_nl$ac_script"
4058 done
4059 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4060 { ac_script=; unset ac_script;}
4061 if test -z "$SED"; then
4062 ac_path_SED_found=false
4063 # Loop through the user's path and test for each of PROGNAME-LIST
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_prog in sed gsed; do
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4072 as_fn_executable_p "$ac_path_SED" || continue
4073 # Check for GNU ac_path_SED and select it if it is found.
4074 # Check for GNU $ac_path_SED
4075 case `"$ac_path_SED" --version 2>&1` in
4076 *GNU*)
4077 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4078 *)
4079 ac_count=0
4080 $as_echo_n 0123456789 >"conftest.in"
4081 while :
4082 do
4083 cat "conftest.in" "conftest.in" >"conftest.tmp"
4084 mv "conftest.tmp" "conftest.in"
4085 cp "conftest.in" "conftest.nl"
4086 $as_echo '' >> "conftest.nl"
4087 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4089 as_fn_arith $ac_count + 1 && ac_count=$as_val
4090 if test $ac_count -gt ${ac_path_SED_max-0}; then
4091 # Best one so far, save it but keep looking for a better one
4092 ac_cv_path_SED="$ac_path_SED"
4093 ac_path_SED_max=$ac_count
4094 fi
4095 # 10*(2^10) chars as input seems more than enough
4096 test $ac_count -gt 10 && break
4097 done
4098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4099 esac
4100
4101 $ac_path_SED_found && break 3
4102 done
4103 done
4104 done
4105 IFS=$as_save_IFS
4106 if test -z "$ac_cv_path_SED"; then
4107 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4108 fi
4109 else
4110 ac_cv_path_SED=$SED
4111 fi
4112
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4115 $as_echo "$ac_cv_path_SED" >&6; }
4116 SED="$ac_cv_path_SED"
4117 rm -f conftest.sed
4118
4119 test -z "$SED" && SED=sed
4120 Xsed="$SED -e 1s/^X//"
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4133 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4134 if ${ac_cv_path_GREP+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -z "$GREP"; then
4138 ac_path_GREP_found=false
4139 # Loop through the user's path and test for each of PROGNAME-LIST
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4142 do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_prog in grep ggrep; do
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4148 as_fn_executable_p "$ac_path_GREP" || continue
4149 # Check for GNU ac_path_GREP and select it if it is found.
4150 # Check for GNU $ac_path_GREP
4151 case `"$ac_path_GREP" --version 2>&1` in
4152 *GNU*)
4153 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4154 *)
4155 ac_count=0
4156 $as_echo_n 0123456789 >"conftest.in"
4157 while :
4158 do
4159 cat "conftest.in" "conftest.in" >"conftest.tmp"
4160 mv "conftest.tmp" "conftest.in"
4161 cp "conftest.in" "conftest.nl"
4162 $as_echo 'GREP' >> "conftest.nl"
4163 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4165 as_fn_arith $ac_count + 1 && ac_count=$as_val
4166 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4167 # Best one so far, save it but keep looking for a better one
4168 ac_cv_path_GREP="$ac_path_GREP"
4169 ac_path_GREP_max=$ac_count
4170 fi
4171 # 10*(2^10) chars as input seems more than enough
4172 test $ac_count -gt 10 && break
4173 done
4174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4175 esac
4176
4177 $ac_path_GREP_found && break 3
4178 done
4179 done
4180 done
4181 IFS=$as_save_IFS
4182 if test -z "$ac_cv_path_GREP"; then
4183 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4184 fi
4185 else
4186 ac_cv_path_GREP=$GREP
4187 fi
4188
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4191 $as_echo "$ac_cv_path_GREP" >&6; }
4192 GREP="$ac_cv_path_GREP"
4193
4194
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4196 $as_echo_n "checking for egrep... " >&6; }
4197 if ${ac_cv_path_EGREP+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4201 then ac_cv_path_EGREP="$GREP -E"
4202 else
4203 if test -z "$EGREP"; then
4204 ac_path_EGREP_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4208 do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_prog in egrep; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4214 as_fn_executable_p "$ac_path_EGREP" || continue
4215 # Check for GNU ac_path_EGREP and select it if it is found.
4216 # Check for GNU $ac_path_EGREP
4217 case `"$ac_path_EGREP" --version 2>&1` in
4218 *GNU*)
4219 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4220 *)
4221 ac_count=0
4222 $as_echo_n 0123456789 >"conftest.in"
4223 while :
4224 do
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 $as_echo 'EGREP' >> "conftest.nl"
4229 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 as_fn_arith $ac_count + 1 && ac_count=$as_val
4232 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_EGREP="$ac_path_EGREP"
4235 ac_path_EGREP_max=$ac_count
4236 fi
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4239 done
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241 esac
4242
4243 $ac_path_EGREP_found && break 3
4244 done
4245 done
4246 done
4247 IFS=$as_save_IFS
4248 if test -z "$ac_cv_path_EGREP"; then
4249 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4250 fi
4251 else
4252 ac_cv_path_EGREP=$EGREP
4253 fi
4254
4255 fi
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4258 $as_echo "$ac_cv_path_EGREP" >&6; }
4259 EGREP="$ac_cv_path_EGREP"
4260
4261
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4263 $as_echo_n "checking for fgrep... " >&6; }
4264 if ${ac_cv_path_FGREP+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4268 then ac_cv_path_FGREP="$GREP -F"
4269 else
4270 if test -z "$FGREP"; then
4271 ac_path_FGREP_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_prog in fgrep; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4281 as_fn_executable_p "$ac_path_FGREP" || continue
4282 # Check for GNU ac_path_FGREP and select it if it is found.
4283 # Check for GNU $ac_path_FGREP
4284 case `"$ac_path_FGREP" --version 2>&1` in
4285 *GNU*)
4286 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4287 *)
4288 ac_count=0
4289 $as_echo_n 0123456789 >"conftest.in"
4290 while :
4291 do
4292 cat "conftest.in" "conftest.in" >"conftest.tmp"
4293 mv "conftest.tmp" "conftest.in"
4294 cp "conftest.in" "conftest.nl"
4295 $as_echo 'FGREP' >> "conftest.nl"
4296 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298 as_fn_arith $ac_count + 1 && ac_count=$as_val
4299 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4300 # Best one so far, save it but keep looking for a better one
4301 ac_cv_path_FGREP="$ac_path_FGREP"
4302 ac_path_FGREP_max=$ac_count
4303 fi
4304 # 10*(2^10) chars as input seems more than enough
4305 test $ac_count -gt 10 && break
4306 done
4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308 esac
4309
4310 $ac_path_FGREP_found && break 3
4311 done
4312 done
4313 done
4314 IFS=$as_save_IFS
4315 if test -z "$ac_cv_path_FGREP"; then
4316 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317 fi
4318 else
4319 ac_cv_path_FGREP=$FGREP
4320 fi
4321
4322 fi
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4325 $as_echo "$ac_cv_path_FGREP" >&6; }
4326 FGREP="$ac_cv_path_FGREP"
4327
4328
4329 test -z "$GREP" && GREP=grep
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349 # Check whether --with-gnu-ld was given.
4350 if test "${with_gnu_ld+set}" = set; then :
4351 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4352 else
4353 with_gnu_ld=no
4354 fi
4355
4356 ac_prog=ld
4357 if test yes = "$GCC"; then
4358 # Check if gcc -print-prog-name=ld gives a path.
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4360 $as_echo_n "checking for ld used by $CC... " >&6; }
4361 case $host in
4362 *-*-mingw*)
4363 # gcc leaves a trailing carriage return, which upsets mingw
4364 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4365 *)
4366 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4367 esac
4368 case $ac_prog in
4369 # Accept absolute paths.
4370 [\\/]* | ?:[\\/]*)
4371 re_direlt='/[^/][^/]*/\.\./'
4372 # Canonicalize the pathname of ld
4373 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4374 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4375 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4376 done
4377 test -z "$LD" && LD=$ac_prog
4378 ;;
4379 "")
4380 # If it fails, then pretend we aren't using GCC.
4381 ac_prog=ld
4382 ;;
4383 *)
4384 # If it is relative, then search for the first ld in PATH.
4385 with_gnu_ld=unknown
4386 ;;
4387 esac
4388 elif test yes = "$with_gnu_ld"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4390 $as_echo_n "checking for GNU ld... " >&6; }
4391 else
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4393 $as_echo_n "checking for non-GNU ld... " >&6; }
4394 fi
4395 if ${lt_cv_path_LD+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -z "$LD"; then
4399 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4400 for ac_dir in $PATH; do
4401 IFS=$lt_save_ifs
4402 test -z "$ac_dir" && ac_dir=.
4403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4404 lt_cv_path_LD=$ac_dir/$ac_prog
4405 # Check to see if the program is GNU ld. I'd rather use --version,
4406 # but apparently some variants of GNU ld only accept -v.
4407 # Break only if it was the GNU/non-GNU ld that we prefer.
4408 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4409 *GNU* | *'with BFD'*)
4410 test no != "$with_gnu_ld" && break
4411 ;;
4412 *)
4413 test yes != "$with_gnu_ld" && break
4414 ;;
4415 esac
4416 fi
4417 done
4418 IFS=$lt_save_ifs
4419 else
4420 lt_cv_path_LD=$LD # Let the user override the test with a path.
4421 fi
4422 fi
4423
4424 LD=$lt_cv_path_LD
4425 if test -n "$LD"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4427 $as_echo "$LD" >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4434 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4435 if ${lt_cv_prog_gnu_ld+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4439 case `$LD -v 2>&1 </dev/null` in
4440 *GNU* | *'with BFD'*)
4441 lt_cv_prog_gnu_ld=yes
4442 ;;
4443 *)
4444 lt_cv_prog_gnu_ld=no
4445 ;;
4446 esac
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4449 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4450 with_gnu_ld=$lt_cv_prog_gnu_ld
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4461 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4462 if ${lt_cv_path_NM+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$NM"; then
4466 # Let the user override the test.
4467 lt_cv_path_NM=$NM
4468 else
4469 lt_nm_to_check=${ac_tool_prefix}nm
4470 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4471 lt_nm_to_check="$lt_nm_to_check nm"
4472 fi
4473 for lt_tmp_nm in $lt_nm_to_check; do
4474 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4475 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4476 IFS=$lt_save_ifs
4477 test -z "$ac_dir" && ac_dir=.
4478 tmp_nm=$ac_dir/$lt_tmp_nm
4479 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4480 # Check to see if the nm accepts a BSD-compat flag.
4481 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4482 # nm: unknown option "B" ignored
4483 # Tru64's nm complains that /dev/null is an invalid object file
4484 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4485 case $build_os in
4486 mingw*) lt_bad_file=conftest.nm/nofile ;;
4487 *) lt_bad_file=/dev/null ;;
4488 esac
4489 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4490 *$lt_bad_file* | *'Invalid file or object type'*)
4491 lt_cv_path_NM="$tmp_nm -B"
4492 break 2
4493 ;;
4494 *)
4495 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4496 */dev/null*)
4497 lt_cv_path_NM="$tmp_nm -p"
4498 break 2
4499 ;;
4500 *)
4501 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4502 continue # so that we can try to find one that supports BSD flags
4503 ;;
4504 esac
4505 ;;
4506 esac
4507 fi
4508 done
4509 IFS=$lt_save_ifs
4510 done
4511 : ${lt_cv_path_NM=no}
4512 fi
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4515 $as_echo "$lt_cv_path_NM" >&6; }
4516 if test no != "$lt_cv_path_NM"; then
4517 NM=$lt_cv_path_NM
4518 else
4519 # Didn't find any BSD compatible name lister, look for dumpbin.
4520 if test -n "$DUMPBIN"; then :
4521 # Let the user override the test.
4522 else
4523 if test -n "$ac_tool_prefix"; then
4524 for ac_prog in dumpbin "link -dump"
4525 do
4526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_prog_DUMPBIN+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$DUMPBIN"; then
4534 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547 done
4548 done
4549 IFS=$as_save_IFS
4550
4551 fi
4552 fi
4553 DUMPBIN=$ac_cv_prog_DUMPBIN
4554 if test -n "$DUMPBIN"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4556 $as_echo "$DUMPBIN" >&6; }
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560 fi
4561
4562
4563 test -n "$DUMPBIN" && break
4564 done
4565 fi
4566 if test -z "$DUMPBIN"; then
4567 ac_ct_DUMPBIN=$DUMPBIN
4568 for ac_prog in dumpbin "link -dump"
4569 do
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$ac_ct_DUMPBIN"; then
4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4594
4595 fi
4596 fi
4597 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4598 if test -n "$ac_ct_DUMPBIN"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4600 $as_echo "$ac_ct_DUMPBIN" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4604 fi
4605
4606
4607 test -n "$ac_ct_DUMPBIN" && break
4608 done
4609
4610 if test "x$ac_ct_DUMPBIN" = x; then
4611 DUMPBIN=":"
4612 else
4613 case $cross_compiling:$ac_tool_warned in
4614 yes:)
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4618 esac
4619 DUMPBIN=$ac_ct_DUMPBIN
4620 fi
4621 fi
4622
4623 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4624 *COFF*)
4625 DUMPBIN="$DUMPBIN -symbols -headers"
4626 ;;
4627 *)
4628 DUMPBIN=:
4629 ;;
4630 esac
4631 fi
4632
4633 if test : != "$DUMPBIN"; then
4634 NM=$DUMPBIN
4635 fi
4636 fi
4637 test -z "$NM" && NM=nm
4638
4639
4640
4641
4642
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4645 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4646 if ${lt_cv_nm_interface+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 lt_cv_nm_interface="BSD nm"
4650 echo "int some_variable = 0;" > conftest.$ac_ext
4651 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4652 (eval "$ac_compile" 2>conftest.err)
4653 cat conftest.err >&5
4654 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4655 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4656 cat conftest.err >&5
4657 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4658 cat conftest.out >&5
4659 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4660 lt_cv_nm_interface="MS dumpbin"
4661 fi
4662 rm -f conftest*
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4665 $as_echo "$lt_cv_nm_interface" >&6; }
4666
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4668 $as_echo_n "checking whether ln -s works... " >&6; }
4669 LN_S=$as_ln_s
4670 if test "$LN_S" = "ln -s"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4672 $as_echo "yes" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4675 $as_echo "no, using $LN_S" >&6; }
4676 fi
4677
4678 # find the maximum length of command line arguments
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4680 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4681 if ${lt_cv_sys_max_cmd_len+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 i=0
4685 teststring=ABCD
4686
4687 case $build_os in
4688 msdosdjgpp*)
4689 # On DJGPP, this test can blow up pretty badly due to problems in libc
4690 # (any single argument exceeding 2000 bytes causes a buffer overrun
4691 # during glob expansion). Even if it were fixed, the result of this
4692 # check would be larger than it should be.
4693 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4694 ;;
4695
4696 gnu*)
4697 # Under GNU Hurd, this test is not required because there is
4698 # no limit to the length of command line arguments.
4699 # Libtool will interpret -1 as no limit whatsoever
4700 lt_cv_sys_max_cmd_len=-1;
4701 ;;
4702
4703 cygwin* | mingw* | cegcc*)
4704 # On Win9x/ME, this test blows up -- it succeeds, but takes
4705 # about 5 minutes as the teststring grows exponentially.
4706 # Worse, since 9x/ME are not pre-emptively multitasking,
4707 # you end up with a "frozen" computer, even though with patience
4708 # the test eventually succeeds (with a max line length of 256k).
4709 # Instead, let's just punt: use the minimum linelength reported by
4710 # all of the supported platforms: 8192 (on NT/2K/XP).
4711 lt_cv_sys_max_cmd_len=8192;
4712 ;;
4713
4714 mint*)
4715 # On MiNT this can take a long time and run out of memory.
4716 lt_cv_sys_max_cmd_len=8192;
4717 ;;
4718
4719 amigaos*)
4720 # On AmigaOS with pdksh, this test takes hours, literally.
4721 # So we just punt and use a minimum line length of 8192.
4722 lt_cv_sys_max_cmd_len=8192;
4723 ;;
4724
4725 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4726 # This has been around since 386BSD, at least. Likely further.
4727 if test -x /sbin/sysctl; then
4728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4729 elif test -x /usr/sbin/sysctl; then
4730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4731 else
4732 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4733 fi
4734 # And add a safety zone
4735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4737 ;;
4738
4739 interix*)
4740 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4741 lt_cv_sys_max_cmd_len=196608
4742 ;;
4743
4744 os2*)
4745 # The test takes a long time on OS/2.
4746 lt_cv_sys_max_cmd_len=8192
4747 ;;
4748
4749 osf*)
4750 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4751 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4752 # nice to cause kernel panics so lets avoid the loop below.
4753 # First set a reasonable default.
4754 lt_cv_sys_max_cmd_len=16384
4755 #
4756 if test -x /sbin/sysconfig; then
4757 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4758 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4759 esac
4760 fi
4761 ;;
4762 sco3.2v5*)
4763 lt_cv_sys_max_cmd_len=102400
4764 ;;
4765 sysv5* | sco5v6* | sysv4.2uw2*)
4766 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4767 if test -n "$kargmax"; then
4768 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4769 else
4770 lt_cv_sys_max_cmd_len=32768
4771 fi
4772 ;;
4773 *)
4774 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4775 if test -n "$lt_cv_sys_max_cmd_len" && \
4776 test undefined != "$lt_cv_sys_max_cmd_len"; then
4777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4779 else
4780 # Make teststring a little bigger before we do anything with it.
4781 # a 1K string should be a reasonable start.
4782 for i in 1 2 3 4 5 6 7 8; do
4783 teststring=$teststring$teststring
4784 done
4785 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4786 # If test is not a shell built-in, we'll probably end up computing a
4787 # maximum length that is only half of the actual maximum length, but
4788 # we can't tell.
4789 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4790 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4791 test 17 != "$i" # 1/2 MB should be enough
4792 do
4793 i=`expr $i + 1`
4794 teststring=$teststring$teststring
4795 done
4796 # Only check the string length outside the loop.
4797 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4798 teststring=
4799 # Add a significant safety factor because C++ compilers can tack on
4800 # massive amounts of additional arguments before passing them to the
4801 # linker. It appears as though 1/2 is a usable value.
4802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4803 fi
4804 ;;
4805 esac
4806
4807 fi
4808
4809 if test -n "$lt_cv_sys_max_cmd_len"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4811 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4812 else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4814 $as_echo "none" >&6; }
4815 fi
4816 max_cmd_len=$lt_cv_sys_max_cmd_len
4817
4818
4819
4820
4821
4822
4823 : ${CP="cp -f"}
4824 : ${MV="mv -f"}
4825 : ${RM="rm -f"}
4826
4827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4828 lt_unset=unset
4829 else
4830 lt_unset=false
4831 fi
4832
4833
4834
4835
4836
4837 # test EBCDIC or ASCII
4838 case `echo X|tr X '\101'` in
4839 A) # ASCII based system
4840 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4841 lt_SP2NL='tr \040 \012'
4842 lt_NL2SP='tr \015\012 \040\040'
4843 ;;
4844 *) # EBCDIC based system
4845 lt_SP2NL='tr \100 \n'
4846 lt_NL2SP='tr \r\n \100\100'
4847 ;;
4848 esac
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4859 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4860 if ${lt_cv_to_host_file_cmd+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 case $host in
4864 *-*-mingw* )
4865 case $build in
4866 *-*-mingw* ) # actually msys
4867 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4868 ;;
4869 *-*-cygwin* )
4870 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4871 ;;
4872 * ) # otherwise, assume *nix
4873 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4874 ;;
4875 esac
4876 ;;
4877 *-*-cygwin* )
4878 case $build in
4879 *-*-mingw* ) # actually msys
4880 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4881 ;;
4882 *-*-cygwin* )
4883 lt_cv_to_host_file_cmd=func_convert_file_noop
4884 ;;
4885 * ) # otherwise, assume *nix
4886 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4887 ;;
4888 esac
4889 ;;
4890 * ) # unhandled hosts (and "normal" native builds)
4891 lt_cv_to_host_file_cmd=func_convert_file_noop
4892 ;;
4893 esac
4894
4895 fi
4896
4897 to_host_file_cmd=$lt_cv_to_host_file_cmd
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4899 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4900
4901
4902
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4906 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4907 if ${lt_cv_to_tool_file_cmd+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 #assume ordinary cross tools, or native build.
4911 lt_cv_to_tool_file_cmd=func_convert_file_noop
4912 case $host in
4913 *-*-mingw* )
4914 case $build in
4915 *-*-mingw* ) # actually msys
4916 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4917 ;;
4918 esac
4919 ;;
4920 esac
4921
4922 fi
4923
4924 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4926 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4927
4928
4929
4930
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4933 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4934 if ${lt_cv_ld_reload_flag+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 lt_cv_ld_reload_flag='-r'
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4940 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4941 reload_flag=$lt_cv_ld_reload_flag
4942 case $reload_flag in
4943 "" | " "*) ;;
4944 *) reload_flag=" $reload_flag" ;;
4945 esac
4946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4947 case $host_os in
4948 cygwin* | mingw* | pw32* | cegcc*)
4949 if test yes != "$GCC"; then
4950 reload_cmds=false
4951 fi
4952 ;;
4953 darwin*)
4954 if test yes = "$GCC"; then
4955 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4956 else
4957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4958 fi
4959 ;;
4960 esac
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970 if test -n "$ac_tool_prefix"; then
4971 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4972 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_OBJDUMP+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$OBJDUMP"; then
4979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4983 do
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4991 fi
4992 done
4993 done
4994 IFS=$as_save_IFS
4995
4996 fi
4997 fi
4998 OBJDUMP=$ac_cv_prog_OBJDUMP
4999 if test -n "$OBJDUMP"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5001 $as_echo "$OBJDUMP" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5005 fi
5006
5007
5008 fi
5009 if test -z "$ac_cv_prog_OBJDUMP"; then
5010 ac_ct_OBJDUMP=$OBJDUMP
5011 # Extract the first word of "objdump", so it can be a program name with args.
5012 set dummy objdump; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$ac_ct_OBJDUMP"; then
5019 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5031 fi
5032 done
5033 done
5034 IFS=$as_save_IFS
5035
5036 fi
5037 fi
5038 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5039 if test -n "$ac_ct_OBJDUMP"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5041 $as_echo "$ac_ct_OBJDUMP" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5045 fi
5046
5047 if test "x$ac_ct_OBJDUMP" = x; then
5048 OBJDUMP="false"
5049 else
5050 case $cross_compiling:$ac_tool_warned in
5051 yes:)
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5054 ac_tool_warned=yes ;;
5055 esac
5056 OBJDUMP=$ac_ct_OBJDUMP
5057 fi
5058 else
5059 OBJDUMP="$ac_cv_prog_OBJDUMP"
5060 fi
5061
5062 test -z "$OBJDUMP" && OBJDUMP=objdump
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5073 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5074 if ${lt_cv_deplibs_check_method+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 lt_cv_file_magic_cmd='$MAGIC_CMD'
5078 lt_cv_file_magic_test_file=
5079 lt_cv_deplibs_check_method='unknown'
5080 # Need to set the preceding variable on all platforms that support
5081 # interlibrary dependencies.
5082 # 'none' -- dependencies not supported.
5083 # 'unknown' -- same as none, but documents that we really don't know.
5084 # 'pass_all' -- all dependencies passed with no checks.
5085 # 'test_compile' -- check by making test program.
5086 # 'file_magic [[regex]]' -- check by looking for files in library path
5087 # that responds to the $file_magic_cmd with a given extended regex.
5088 # If you have 'file' or equivalent on your system and you're not sure
5089 # whether 'pass_all' will *always* work, you probably want this one.
5090
5091 case $host_os in
5092 aix[4-9]*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095
5096 beos*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099
5100 bsdi[45]*)
5101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5102 lt_cv_file_magic_cmd='/usr/bin/file -L'
5103 lt_cv_file_magic_test_file=/shlib/libc.so
5104 ;;
5105
5106 cygwin*)
5107 # func_win32_libid is a shell function defined in ltmain.sh
5108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5109 lt_cv_file_magic_cmd='func_win32_libid'
5110 ;;
5111
5112 mingw* | pw32*)
5113 # Base MSYS/MinGW do not provide the 'file' command needed by
5114 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5115 # unless we find 'file', for example because we are cross-compiling.
5116 if ( file / ) >/dev/null 2>&1; then
5117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5118 lt_cv_file_magic_cmd='func_win32_libid'
5119 else
5120 # Keep this pattern in sync with the one in func_win32_libid.
5121 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5122 lt_cv_file_magic_cmd='$OBJDUMP -f'
5123 fi
5124 ;;
5125
5126 cegcc*)
5127 # use the weaker test based on 'objdump'. See mingw*.
5128 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5129 lt_cv_file_magic_cmd='$OBJDUMP -f'
5130 ;;
5131
5132 darwin* | rhapsody*)
5133 lt_cv_deplibs_check_method=pass_all
5134 ;;
5135
5136 freebsd* | dragonfly*)
5137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5138 case $host_cpu in
5139 i*86 )
5140 # Not sure whether the presence of OpenBSD here was a mistake.
5141 # Let's accept both of them until this is cleared up.
5142 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5143 lt_cv_file_magic_cmd=/usr/bin/file
5144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5145 ;;
5146 esac
5147 else
5148 lt_cv_deplibs_check_method=pass_all
5149 fi
5150 ;;
5151
5152 haiku*)
5153 lt_cv_deplibs_check_method=pass_all
5154 ;;
5155
5156 hpux10.20* | hpux11*)
5157 lt_cv_file_magic_cmd=/usr/bin/file
5158 case $host_cpu in
5159 ia64*)
5160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5161 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5162 ;;
5163 hppa*64*)
5164 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]'
5165 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5166 ;;
5167 *)
5168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5169 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5170 ;;
5171 esac
5172 ;;
5173
5174 interix[3-9]*)
5175 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5177 ;;
5178
5179 irix5* | irix6* | nonstopux*)
5180 case $LD in
5181 *-32|*"-32 ") libmagic=32-bit;;
5182 *-n32|*"-n32 ") libmagic=N32;;
5183 *-64|*"-64 ") libmagic=64-bit;;
5184 *) libmagic=never-match;;
5185 esac
5186 lt_cv_deplibs_check_method=pass_all
5187 ;;
5188
5189 # This must be glibc/ELF.
5190 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5191 lt_cv_deplibs_check_method=pass_all
5192 ;;
5193
5194 netbsd*)
5195 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5197 else
5198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5199 fi
5200 ;;
5201
5202 newos6*)
5203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5204 lt_cv_file_magic_cmd=/usr/bin/file
5205 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5206 ;;
5207
5208 *nto* | *qnx*)
5209 lt_cv_deplibs_check_method=pass_all
5210 ;;
5211
5212 openbsd* | bitrig*)
5213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5215 else
5216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5217 fi
5218 ;;
5219
5220 osf3* | osf4* | osf5*)
5221 lt_cv_deplibs_check_method=pass_all
5222 ;;
5223
5224 rdos*)
5225 lt_cv_deplibs_check_method=pass_all
5226 ;;
5227
5228 solaris*)
5229 lt_cv_deplibs_check_method=pass_all
5230 ;;
5231
5232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235
5236 sysv4 | sysv4.3*)
5237 case $host_vendor in
5238 motorola)
5239 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]'
5240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5241 ;;
5242 ncr)
5243 lt_cv_deplibs_check_method=pass_all
5244 ;;
5245 sequent)
5246 lt_cv_file_magic_cmd='/bin/file'
5247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5248 ;;
5249 sni)
5250 lt_cv_file_magic_cmd='/bin/file'
5251 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5252 lt_cv_file_magic_test_file=/lib/libc.so
5253 ;;
5254 siemens)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257 pc)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260 esac
5261 ;;
5262
5263 tpf*)
5264 lt_cv_deplibs_check_method=pass_all
5265 ;;
5266 os2*)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
5269 esac
5270
5271 fi
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5273 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5274
5275 file_magic_glob=
5276 want_nocaseglob=no
5277 if test "$build" = "$host"; then
5278 case $host_os in
5279 mingw* | pw32*)
5280 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5281 want_nocaseglob=yes
5282 else
5283 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5284 fi
5285 ;;
5286 esac
5287 fi
5288
5289 file_magic_cmd=$lt_cv_file_magic_cmd
5290 deplibs_check_method=$lt_cv_deplibs_check_method
5291 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314 if test -n "$ac_tool_prefix"; then
5315 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5316 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_DLLTOOL+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test -n "$DLLTOOL"; then
5323 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5335 fi
5336 done
5337 done
5338 IFS=$as_save_IFS
5339
5340 fi
5341 fi
5342 DLLTOOL=$ac_cv_prog_DLLTOOL
5343 if test -n "$DLLTOOL"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5345 $as_echo "$DLLTOOL" >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351
5352 fi
5353 if test -z "$ac_cv_prog_DLLTOOL"; then
5354 ac_ct_DLLTOOL=$DLLTOOL
5355 # Extract the first word of "dlltool", so it can be a program name with args.
5356 set dummy dlltool; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$ac_ct_DLLTOOL"; then
5363 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376 done
5377 done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5383 if test -n "$ac_ct_DLLTOOL"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5385 $as_echo "$ac_ct_DLLTOOL" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391 if test "x$ac_ct_DLLTOOL" = x; then
5392 DLLTOOL="false"
5393 else
5394 case $cross_compiling:$ac_tool_warned in
5395 yes:)
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5399 esac
5400 DLLTOOL=$ac_ct_DLLTOOL
5401 fi
5402 else
5403 DLLTOOL="$ac_cv_prog_DLLTOOL"
5404 fi
5405
5406 test -z "$DLLTOOL" && DLLTOOL=dlltool
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5418 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5419 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 lt_cv_sharedlib_from_linklib_cmd='unknown'
5423
5424 case $host_os in
5425 cygwin* | mingw* | pw32* | cegcc*)
5426 # two different shell functions defined in ltmain.sh;
5427 # decide which one to use based on capabilities of $DLLTOOL
5428 case `$DLLTOOL --help 2>&1` in
5429 *--identify-strict*)
5430 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5431 ;;
5432 *)
5433 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5434 ;;
5435 esac
5436 ;;
5437 *)
5438 # fallback: assume linklib IS sharedlib
5439 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5440 ;;
5441 esac
5442
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5445 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5446 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5447 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5448
5449
5450
5451
5452
5453
5454
5455
5456 if test -n "$ac_tool_prefix"; then
5457 for ac_prog in ar
5458 do
5459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_AR+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -n "$AR"; then
5467 ac_cv_prog_AR="$AR" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5479 fi
5480 done
5481 done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 AR=$ac_cv_prog_AR
5487 if test -n "$AR"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5489 $as_echo "$AR" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495
5496 test -n "$AR" && break
5497 done
5498 fi
5499 if test -z "$AR"; then
5500 ac_ct_AR=$AR
5501 for ac_prog in ar
5502 do
5503 # Extract the first word of "$ac_prog", so it can be a program name with args.
5504 set dummy $ac_prog; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 if test -n "$ac_ct_AR"; then
5511 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_ac_ct_AR="$ac_prog"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5531 if test -n "$ac_ct_AR"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5533 $as_echo "$ac_ct_AR" >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539
5540 test -n "$ac_ct_AR" && break
5541 done
5542
5543 if test "x$ac_ct_AR" = x; then
5544 AR="false"
5545 else
5546 case $cross_compiling:$ac_tool_warned in
5547 yes:)
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5550 ac_tool_warned=yes ;;
5551 esac
5552 AR=$ac_ct_AR
5553 fi
5554 fi
5555
5556 : ${AR=ar}
5557 : ${AR_FLAGS=cru}
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5570 $as_echo_n "checking for archiver @FILE support... " >&6; }
5571 if ${lt_cv_ar_at_file+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 lt_cv_ar_at_file=no
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577
5578 int
5579 main ()
5580 {
5581
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 echo conftest.$ac_objext > conftest.lst
5588 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5590 (eval $lt_ar_try) 2>&5
5591 ac_status=$?
5592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5593 test $ac_status = 0; }
5594 if test 0 -eq "$ac_status"; then
5595 # Ensure the archiver fails upon bogus file names.
5596 rm -f conftest.$ac_objext libconftest.a
5597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5598 (eval $lt_ar_try) 2>&5
5599 ac_status=$?
5600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601 test $ac_status = 0; }
5602 if test 0 -ne "$ac_status"; then
5603 lt_cv_ar_at_file=@
5604 fi
5605 fi
5606 rm -f conftest.* libconftest.a
5607
5608 fi
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610
5611 fi
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5613 $as_echo "$lt_cv_ar_at_file" >&6; }
5614
5615 if test no = "$lt_cv_ar_at_file"; then
5616 archiver_list_spec=
5617 else
5618 archiver_list_spec=$lt_cv_ar_at_file
5619 fi
5620
5621
5622
5623
5624
5625
5626
5627 if test -n "$ac_tool_prefix"; then
5628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5629 set dummy ${ac_tool_prefix}strip; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_STRIP+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -n "$STRIP"; then
5636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5648 fi
5649 done
5650 done
5651 IFS=$as_save_IFS
5652
5653 fi
5654 fi
5655 STRIP=$ac_cv_prog_STRIP
5656 if test -n "$STRIP"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5658 $as_echo "$STRIP" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5662 fi
5663
5664
5665 fi
5666 if test -z "$ac_cv_prog_STRIP"; then
5667 ac_ct_STRIP=$STRIP
5668 # Extract the first word of "strip", so it can be a program name with args.
5669 set dummy strip; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 if test -n "$ac_ct_STRIP"; then
5676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5677 else
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5680 do
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685 ac_cv_prog_ac_ct_STRIP="strip"
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 2
5688 fi
5689 done
5690 done
5691 IFS=$as_save_IFS
5692
5693 fi
5694 fi
5695 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5696 if test -n "$ac_ct_STRIP"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5698 $as_echo "$ac_ct_STRIP" >&6; }
5699 else
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5702 fi
5703
5704 if test "x$ac_ct_STRIP" = x; then
5705 STRIP=":"
5706 else
5707 case $cross_compiling:$ac_tool_warned in
5708 yes:)
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5711 ac_tool_warned=yes ;;
5712 esac
5713 STRIP=$ac_ct_STRIP
5714 fi
5715 else
5716 STRIP="$ac_cv_prog_STRIP"
5717 fi
5718
5719 test -z "$STRIP" && STRIP=:
5720
5721
5722
5723
5724
5725
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_RANLIB+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 if test -n "$RANLIB"; then
5735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748 done
5749 done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 RANLIB=$ac_cv_prog_RANLIB
5755 if test -n "$RANLIB"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5757 $as_echo "$RANLIB" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763
5764 fi
5765 if test -z "$ac_cv_prog_RANLIB"; then
5766 ac_ct_RANLIB=$RANLIB
5767 # Extract the first word of "ranlib", so it can be a program name with args.
5768 set dummy ranlib; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if test -n "$ac_ct_RANLIB"; then
5775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784 ac_cv_prog_ac_ct_RANLIB="ranlib"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788 done
5789 done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5795 if test -n "$ac_ct_RANLIB"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5797 $as_echo "$ac_ct_RANLIB" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803 if test "x$ac_ct_RANLIB" = x; then
5804 RANLIB=":"
5805 else
5806 case $cross_compiling:$ac_tool_warned in
5807 yes:)
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5811 esac
5812 RANLIB=$ac_ct_RANLIB
5813 fi
5814 else
5815 RANLIB="$ac_cv_prog_RANLIB"
5816 fi
5817
5818 test -z "$RANLIB" && RANLIB=:
5819
5820
5821
5822
5823
5824
5825 # Determine commands to create old-style static archives.
5826 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5827 old_postinstall_cmds='chmod 644 $oldlib'
5828 old_postuninstall_cmds=
5829
5830 if test -n "$RANLIB"; then
5831 case $host_os in
5832 bitrig* | openbsd*)
5833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5834 ;;
5835 *)
5836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5837 ;;
5838 esac
5839 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5840 fi
5841
5842 case $host_os in
5843 darwin*)
5844 lock_old_archive_extraction=yes ;;
5845 *)
5846 lock_old_archive_extraction=no ;;
5847 esac
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 # If no C compiler was specified, use CC.
5888 LTCC=${LTCC-"$CC"}
5889
5890 # If no C compiler flags were specified, use CFLAGS.
5891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5892
5893 # Allow CC to be a program name with arguments.
5894 compiler=$CC
5895
5896
5897 # Check for command to grab the raw symbol name followed by C symbol from nm.
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5899 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5900 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903
5904 # These are sane defaults that work on at least a few old systems.
5905 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5906
5907 # Character class describing NM global symbol codes.
5908 symcode='[BCDEGRST]'
5909
5910 # Regexp to match symbols that can be accessed directly from C.
5911 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5912
5913 # Define system-specific variables.
5914 case $host_os in
5915 aix*)
5916 symcode='[BCDT]'
5917 ;;
5918 cygwin* | mingw* | pw32* | cegcc*)
5919 symcode='[ABCDGISTW]'
5920 ;;
5921 hpux*)
5922 if test ia64 = "$host_cpu"; then
5923 symcode='[ABCDEGRST]'
5924 fi
5925 ;;
5926 irix* | nonstopux*)
5927 symcode='[BCDEGRST]'
5928 ;;
5929 osf*)
5930 symcode='[BCDEGQRST]'
5931 ;;
5932 solaris*)
5933 symcode='[BDRT]'
5934 ;;
5935 sco3.2v5*)
5936 symcode='[DT]'
5937 ;;
5938 sysv4.2uw2*)
5939 symcode='[DT]'
5940 ;;
5941 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5942 symcode='[ABDT]'
5943 ;;
5944 sysv4)
5945 symcode='[DFNSTU]'
5946 ;;
5947 esac
5948
5949 # If we're using GNU nm, then use its standard symbol codes.
5950 case `$NM -V 2>&1` in
5951 *GNU* | *'with BFD'*)
5952 symcode='[ABCDGIRSTW]' ;;
5953 esac
5954
5955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5956 # Gets list of data symbols to import.
5957 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5958 # Adjust the below global symbol transforms to fixup imported variables.
5959 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5960 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5961 lt_c_name_lib_hook="\
5962 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5963 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5964 else
5965 # Disable hooks by default.
5966 lt_cv_sys_global_symbol_to_import=
5967 lt_cdecl_hook=
5968 lt_c_name_hook=
5969 lt_c_name_lib_hook=
5970 fi
5971
5972 # Transform an extracted symbol line into a proper C declaration.
5973 # Some systems (esp. on ia64) link data and code symbols differently,
5974 # so use this general approach.
5975 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5976 $lt_cdecl_hook\
5977 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5978 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5979
5980 # Transform an extracted symbol line into symbol name and symbol address
5981 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5982 $lt_c_name_hook\
5983 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5984 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5985
5986 # Transform an extracted symbol line into symbol name with lib prefix and
5987 # symbol address.
5988 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5989 $lt_c_name_lib_hook\
5990 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5991 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5992 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5993
5994 # Handle CRLF in mingw tool chain
5995 opt_cr=
5996 case $build_os in
5997 mingw*)
5998 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5999 ;;
6000 esac
6001
6002 # Try without a prefix underscore, then with it.
6003 for ac_symprfx in "" "_"; do
6004
6005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6006 symxfrm="\\1 $ac_symprfx\\2 \\2"
6007
6008 # Write the raw and C identifiers.
6009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6010 # Fake it for dumpbin and say T for any non-static function,
6011 # D for any global variable and I for any imported variable.
6012 # Also find C++ and __fastcall symbols from MSVC++,
6013 # which start with @ or ?.
6014 lt_cv_sys_global_symbol_pipe="$AWK '"\
6015 " {last_section=section; section=\$ 3};"\
6016 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6017 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6018 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6019 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6020 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6021 " \$ 0!~/External *\|/{next};"\
6022 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6023 " {if(hide[section]) next};"\
6024 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6025 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6026 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6027 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6028 " ' prfx=^$ac_symprfx"
6029 else
6030 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6031 fi
6032 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6033
6034 # Check to see that the pipe works correctly.
6035 pipe_works=no
6036
6037 rm -f conftest*
6038 cat > conftest.$ac_ext <<_LT_EOF
6039 #ifdef __cplusplus
6040 extern "C" {
6041 #endif
6042 char nm_test_var;
6043 void nm_test_func(void);
6044 void nm_test_func(void){}
6045 #ifdef __cplusplus
6046 }
6047 #endif
6048 int main(){nm_test_var='a';nm_test_func();return(0);}
6049 _LT_EOF
6050
6051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6052 (eval $ac_compile) 2>&5
6053 ac_status=$?
6054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6055 test $ac_status = 0; }; then
6056 # Now try to grab the symbols.
6057 nlist=conftest.nm
6058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6059 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6060 ac_status=$?
6061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6062 test $ac_status = 0; } && test -s "$nlist"; then
6063 # Try sorting and uniquifying the output.
6064 if sort "$nlist" | uniq > "$nlist"T; then
6065 mv -f "$nlist"T "$nlist"
6066 else
6067 rm -f "$nlist"T
6068 fi
6069
6070 # Make sure that we snagged all the symbols we need.
6071 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6072 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6073 cat <<_LT_EOF > conftest.$ac_ext
6074 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6075 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6076 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6077 relocations are performed -- see ld's documentation on pseudo-relocs. */
6078 # define LT_DLSYM_CONST
6079 #elif defined __osf__
6080 /* This system does not cope well with relocations in const data. */
6081 # define LT_DLSYM_CONST
6082 #else
6083 # define LT_DLSYM_CONST const
6084 #endif
6085
6086 #ifdef __cplusplus
6087 extern "C" {
6088 #endif
6089
6090 _LT_EOF
6091 # Now generate the symbol file.
6092 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6093
6094 cat <<_LT_EOF >> conftest.$ac_ext
6095
6096 /* The mapping between symbol names and symbols. */
6097 LT_DLSYM_CONST struct {
6098 const char *name;
6099 void *address;
6100 }
6101 lt__PROGRAM__LTX_preloaded_symbols[] =
6102 {
6103 { "@PROGRAM@", (void *) 0 },
6104 _LT_EOF
6105 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6106 cat <<\_LT_EOF >> conftest.$ac_ext
6107 {0, (void *) 0}
6108 };
6109
6110 /* This works around a problem in FreeBSD linker */
6111 #ifdef FREEBSD_WORKAROUND
6112 static const void *lt_preloaded_setup() {
6113 return lt__PROGRAM__LTX_preloaded_symbols;
6114 }
6115 #endif
6116
6117 #ifdef __cplusplus
6118 }
6119 #endif
6120 _LT_EOF
6121 # Now try linking the two files.
6122 mv conftest.$ac_objext conftstm.$ac_objext
6123 lt_globsym_save_LIBS=$LIBS
6124 lt_globsym_save_CFLAGS=$CFLAGS
6125 LIBS=conftstm.$ac_objext
6126 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6128 (eval $ac_link) 2>&5
6129 ac_status=$?
6130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6131 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6132 pipe_works=yes
6133 fi
6134 LIBS=$lt_globsym_save_LIBS
6135 CFLAGS=$lt_globsym_save_CFLAGS
6136 else
6137 echo "cannot find nm_test_func in $nlist" >&5
6138 fi
6139 else
6140 echo "cannot find nm_test_var in $nlist" >&5
6141 fi
6142 else
6143 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6144 fi
6145 else
6146 echo "$progname: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6148 fi
6149 rm -rf conftest* conftst*
6150
6151 # Do not use the global_symbol_pipe unless it works.
6152 if test yes = "$pipe_works"; then
6153 break
6154 else
6155 lt_cv_sys_global_symbol_pipe=
6156 fi
6157 done
6158
6159 fi
6160
6161 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6162 lt_cv_sys_global_symbol_to_cdecl=
6163 fi
6164 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6166 $as_echo "failed" >&6; }
6167 else
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6169 $as_echo "ok" >&6; }
6170 fi
6171
6172 # Response file support.
6173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6174 nm_file_list_spec='@'
6175 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6176 nm_file_list_spec='@'
6177 fi
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6216 $as_echo_n "checking for sysroot... " >&6; }
6217
6218 # Check whether --with-sysroot was given.
6219 if test "${with_sysroot+set}" = set; then :
6220 withval=$with_sysroot;
6221 else
6222 with_sysroot=no
6223 fi
6224
6225
6226 lt_sysroot=
6227 case $with_sysroot in #(
6228 yes)
6229 if test yes = "$GCC"; then
6230 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6231 fi
6232 ;; #(
6233 /*)
6234 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6235 ;; #(
6236 no|'')
6237 ;; #(
6238 *)
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6240 $as_echo "$with_sysroot" >&6; }
6241 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6242 ;;
6243 esac
6244
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6246 $as_echo "${lt_sysroot:-no}" >&6; }
6247
6248
6249
6250
6251
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6253 $as_echo_n "checking for a working dd... " >&6; }
6254 if ${ac_cv_path_lt_DD+:} false; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 printf 0123456789abcdef0123456789abcdef >conftest.i
6258 cat conftest.i conftest.i >conftest2.i
6259 : ${lt_DD:=$DD}
6260 if test -z "$lt_DD"; then
6261 ac_path_lt_DD_found=false
6262 # Loop through the user's path and test for each of PROGNAME-LIST
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_prog in dd; do
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6271 as_fn_executable_p "$ac_path_lt_DD" || continue
6272 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6273 cmp -s conftest.i conftest.out \
6274 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6275 fi
6276 $ac_path_lt_DD_found && break 3
6277 done
6278 done
6279 done
6280 IFS=$as_save_IFS
6281 if test -z "$ac_cv_path_lt_DD"; then
6282 :
6283 fi
6284 else
6285 ac_cv_path_lt_DD=$lt_DD
6286 fi
6287
6288 rm -f conftest.i conftest2.i conftest.out
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6291 $as_echo "$ac_cv_path_lt_DD" >&6; }
6292
6293
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6295 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6296 if ${lt_cv_truncate_bin+:} false; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 printf 0123456789abcdef0123456789abcdef >conftest.i
6300 cat conftest.i conftest.i >conftest2.i
6301 lt_cv_truncate_bin=
6302 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6303 cmp -s conftest.i conftest.out \
6304 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6305 fi
6306 rm -f conftest.i conftest2.i conftest.out
6307 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6310 $as_echo "$lt_cv_truncate_bin" >&6; }
6311
6312
6313
6314
6315
6316
6317
6318 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6319 func_cc_basename ()
6320 {
6321 for cc_temp in $*""; do
6322 case $cc_temp in
6323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6325 \-*) ;;
6326 *) break;;
6327 esac
6328 done
6329 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6330 }
6331
6332 # Check whether --enable-libtool-lock was given.
6333 if test "${enable_libtool_lock+set}" = set; then :
6334 enableval=$enable_libtool_lock;
6335 fi
6336
6337 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6338
6339 # Some flags need to be propagated to the compiler or linker for good
6340 # libtool support.
6341 case $host in
6342 ia64-*-hpux*)
6343 # Find out what ABI is being produced by ac_compile, and set mode
6344 # options accordingly.
6345 echo 'int i;' > conftest.$ac_ext
6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6347 (eval $ac_compile) 2>&5
6348 ac_status=$?
6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; }; then
6351 case `/usr/bin/file conftest.$ac_objext` in
6352 *ELF-32*)
6353 HPUX_IA64_MODE=32
6354 ;;
6355 *ELF-64*)
6356 HPUX_IA64_MODE=64
6357 ;;
6358 esac
6359 fi
6360 rm -rf conftest*
6361 ;;
6362 *-*-irix6*)
6363 # Find out what ABI is being produced by ac_compile, and set linker
6364 # options accordingly.
6365 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6367 (eval $ac_compile) 2>&5
6368 ac_status=$?
6369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370 test $ac_status = 0; }; then
6371 if test yes = "$lt_cv_prog_gnu_ld"; then
6372 case `/usr/bin/file conftest.$ac_objext` in
6373 *32-bit*)
6374 LD="${LD-ld} -melf32bsmip"
6375 ;;
6376 *N32*)
6377 LD="${LD-ld} -melf32bmipn32"
6378 ;;
6379 *64-bit*)
6380 LD="${LD-ld} -melf64bmip"
6381 ;;
6382 esac
6383 else
6384 case `/usr/bin/file conftest.$ac_objext` in
6385 *32-bit*)
6386 LD="${LD-ld} -32"
6387 ;;
6388 *N32*)
6389 LD="${LD-ld} -n32"
6390 ;;
6391 *64-bit*)
6392 LD="${LD-ld} -64"
6393 ;;
6394 esac
6395 fi
6396 fi
6397 rm -rf conftest*
6398 ;;
6399
6400 mips64*-*linux*)
6401 # Find out what ABI is being produced by ac_compile, and set linker
6402 # options accordingly.
6403 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6405 (eval $ac_compile) 2>&5
6406 ac_status=$?
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }; then
6409 emul=elf
6410 case `/usr/bin/file conftest.$ac_objext` in
6411 *32-bit*)
6412 emul="${emul}32"
6413 ;;
6414 *64-bit*)
6415 emul="${emul}64"
6416 ;;
6417 esac
6418 case `/usr/bin/file conftest.$ac_objext` in
6419 *MSB*)
6420 emul="${emul}btsmip"
6421 ;;
6422 *LSB*)
6423 emul="${emul}ltsmip"
6424 ;;
6425 esac
6426 case `/usr/bin/file conftest.$ac_objext` in
6427 *N32*)
6428 emul="${emul}n32"
6429 ;;
6430 esac
6431 LD="${LD-ld} -m $emul"
6432 fi
6433 rm -rf conftest*
6434 ;;
6435
6436 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6437 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6438 # Find out what ABI is being produced by ac_compile, and set linker
6439 # options accordingly. Note that the listed cases only cover the
6440 # situations where additional linker options are needed (such as when
6441 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6442 # vice versa); the common cases where no linker options are needed do
6443 # not appear in the list.
6444 echo 'int i;' > conftest.$ac_ext
6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6446 (eval $ac_compile) 2>&5
6447 ac_status=$?
6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449 test $ac_status = 0; }; then
6450 case `/usr/bin/file conftest.o` in
6451 *32-bit*)
6452 case $host in
6453 x86_64-*kfreebsd*-gnu)
6454 LD="${LD-ld} -m elf_i386_fbsd"
6455 ;;
6456 x86_64-*linux*)
6457 case `/usr/bin/file conftest.o` in
6458 *x86-64*)
6459 LD="${LD-ld} -m elf32_x86_64"
6460 ;;
6461 *)
6462 LD="${LD-ld} -m elf_i386"
6463 ;;
6464 esac
6465 ;;
6466 powerpc64le-*linux*)
6467 LD="${LD-ld} -m elf32lppclinux"
6468 ;;
6469 powerpc64-*linux*)
6470 LD="${LD-ld} -m elf32ppclinux"
6471 ;;
6472 s390x-*linux*)
6473 LD="${LD-ld} -m elf_s390"
6474 ;;
6475 sparc64-*linux*)
6476 LD="${LD-ld} -m elf32_sparc"
6477 ;;
6478 esac
6479 ;;
6480 *64-bit*)
6481 case $host in
6482 x86_64-*kfreebsd*-gnu)
6483 LD="${LD-ld} -m elf_x86_64_fbsd"
6484 ;;
6485 x86_64-*linux*)
6486 LD="${LD-ld} -m elf_x86_64"
6487 ;;
6488 powerpcle-*linux*)
6489 LD="${LD-ld} -m elf64lppc"
6490 ;;
6491 powerpc-*linux*)
6492 LD="${LD-ld} -m elf64ppc"
6493 ;;
6494 s390*-*linux*|s390*-*tpf*)
6495 LD="${LD-ld} -m elf64_s390"
6496 ;;
6497 sparc*-*linux*)
6498 LD="${LD-ld} -m elf64_sparc"
6499 ;;
6500 esac
6501 ;;
6502 esac
6503 fi
6504 rm -rf conftest*
6505 ;;
6506
6507 *-*-sco3.2v5*)
6508 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6509 SAVE_CFLAGS=$CFLAGS
6510 CFLAGS="$CFLAGS -belf"
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6512 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6513 if ${lt_cv_cc_needs_belf+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 ac_ext=c
6517 ac_cpp='$CPP $CPPFLAGS'
6518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524
6525 int
6526 main ()
6527 {
6528
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 if ac_fn_c_try_link "$LINENO"; then :
6534 lt_cv_cc_needs_belf=yes
6535 else
6536 lt_cv_cc_needs_belf=no
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540 ac_ext=c
6541 ac_cpp='$CPP $CPPFLAGS'
6542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6545
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6548 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6549 if test yes != "$lt_cv_cc_needs_belf"; then
6550 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6551 CFLAGS=$SAVE_CFLAGS
6552 fi
6553 ;;
6554 *-*solaris*)
6555 # Find out what ABI is being produced by ac_compile, and set linker
6556 # options accordingly.
6557 echo 'int i;' > conftest.$ac_ext
6558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6559 (eval $ac_compile) 2>&5
6560 ac_status=$?
6561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6562 test $ac_status = 0; }; then
6563 case `/usr/bin/file conftest.o` in
6564 *64-bit*)
6565 case $lt_cv_prog_gnu_ld in
6566 yes*)
6567 case $host in
6568 i?86-*-solaris*|x86_64-*-solaris*)
6569 LD="${LD-ld} -m elf_x86_64"
6570 ;;
6571 sparc*-*-solaris*)
6572 LD="${LD-ld} -m elf64_sparc"
6573 ;;
6574 esac
6575 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6576 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6577 LD=${LD-ld}_sol2
6578 fi
6579 ;;
6580 *)
6581 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6582 LD="${LD-ld} -64"
6583 fi
6584 ;;
6585 esac
6586 ;;
6587 esac
6588 fi
6589 rm -rf conftest*
6590 ;;
6591 esac
6592
6593 need_locks=$enable_libtool_lock
6594
6595 if test -n "$ac_tool_prefix"; then
6596 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6597 set dummy ${ac_tool_prefix}mt; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 if test -n "$MANIFEST_TOOL"; then
6604 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621 fi
6622 fi
6623 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6624 if test -n "$MANIFEST_TOOL"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6626 $as_echo "$MANIFEST_TOOL" >&6; }
6627 else
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6630 fi
6631
6632
6633 fi
6634 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6635 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6636 # Extract the first word of "mt", so it can be a program name with args.
6637 set dummy mt; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 if test -n "$ac_ct_MANIFEST_TOOL"; then
6644 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6664 if test -n "$ac_ct_MANIFEST_TOOL"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6666 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671
6672 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6673 MANIFEST_TOOL=":"
6674 else
6675 case $cross_compiling:$ac_tool_warned in
6676 yes:)
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679 ac_tool_warned=yes ;;
6680 esac
6681 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6682 fi
6683 else
6684 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6685 fi
6686
6687 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6689 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6690 if ${lt_cv_path_mainfest_tool+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 lt_cv_path_mainfest_tool=no
6694 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6695 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6696 cat conftest.err >&5
6697 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6698 lt_cv_path_mainfest_tool=yes
6699 fi
6700 rm -f conftest*
6701 fi
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6703 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6704 if test yes != "$lt_cv_path_mainfest_tool"; then
6705 MANIFEST_TOOL=:
6706 fi
6707
6708
6709
6710
6711
6712
6713 case $host_os in
6714 rhapsody* | darwin*)
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6723 if test -n "$DSYMUTIL"; then
6724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6744 if test -n "$DSYMUTIL"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6746 $as_echo "$DSYMUTIL" >&6; }
6747 else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_DSYMUTIL"; then
6755 ac_ct_DSYMUTIL=$DSYMUTIL
6756 # Extract the first word of "dsymutil", so it can be a program name with args.
6757 set dummy dsymutil; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 if test -n "$ac_ct_DSYMUTIL"; then
6764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6784 if test -n "$ac_ct_DSYMUTIL"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6787 else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792 if test "x$ac_ct_DSYMUTIL" = x; then
6793 DSYMUTIL=":"
6794 else
6795 case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6800 esac
6801 DSYMUTIL=$ac_ct_DSYMUTIL
6802 fi
6803 else
6804 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6805 fi
6806
6807 if test -n "$ac_tool_prefix"; then
6808 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$NMEDIT"; then
6816 ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit"
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 NMEDIT=$ac_cv_prog_NMEDIT
6836 if test -n "$NMEDIT"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6838 $as_echo "$NMEDIT" >&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_NMEDIT"; then
6847 ac_ct_NMEDIT=$NMEDIT
6848 # Extract the first word of "nmedit", so it can be a program name with args.
6849 set dummy nmedit; 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_NMEDIT+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 if test -n "$ac_ct_NMEDIT"; then
6856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_NMEDIT="nmedit"
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_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6876 if test -n "$ac_ct_NMEDIT"; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6878 $as_echo "$ac_ct_NMEDIT" >&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_NMEDIT" = x; then
6885 NMEDIT=":"
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 NMEDIT=$ac_ct_NMEDIT
6894 fi
6895 else
6896 NMEDIT="$ac_cv_prog_NMEDIT"
6897 fi
6898
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$LIPO"; then
6908 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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 LIPO=$ac_cv_prog_LIPO
6928 if test -n "$LIPO"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6930 $as_echo "$LIPO" >&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_LIPO"; then
6939 ac_ct_LIPO=$LIPO
6940 # Extract the first word of "lipo", so it can be a program name with args.
6941 set dummy lipo; 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_LIPO+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 if test -n "$ac_ct_LIPO"; then
6948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_LIPO="lipo"
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_LIPO=$ac_cv_prog_ac_ct_LIPO
6968 if test -n "$ac_ct_LIPO"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6970 $as_echo "$ac_ct_LIPO" >&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_LIPO" = x; then
6977 LIPO=":"
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 LIPO=$ac_ct_LIPO
6986 fi
6987 else
6988 LIPO="$ac_cv_prog_LIPO"
6989 fi
6990
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 if test -n "$OTOOL"; then
7000 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
7020 if test -n "$OTOOL"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7022 $as_echo "$OTOOL" >&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_OTOOL"; then
7031 ac_ct_OTOOL=$OTOOL
7032 # Extract the first word of "otool", so it can be a program name with args.
7033 set dummy otool; 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_OTOOL+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 if test -n "$ac_ct_OTOOL"; then
7040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool"
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_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7060 if test -n "$ac_ct_OTOOL"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7062 $as_echo "$ac_ct_OTOOL" >&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_OTOOL" = x; then
7069 OTOOL=":"
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 OTOOL=$ac_ct_OTOOL
7078 fi
7079 else
7080 OTOOL="$ac_cv_prog_OTOOL"
7081 fi
7082
7083 if test -n "$ac_tool_prefix"; then
7084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7085 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 if test -n "$OTOOL64"; then
7092 ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
7112 if test -n "$OTOOL64"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7114 $as_echo "$OTOOL64" >&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_OTOOL64"; then
7123 ac_ct_OTOOL64=$OTOOL64
7124 # Extract the first word of "otool64", so it can be a program name with args.
7125 set dummy otool64; 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_OTOOL64+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 if test -n "$ac_ct_OTOOL64"; then
7132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64"
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_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7152 if test -n "$ac_ct_OTOOL64"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7154 $as_echo "$ac_ct_OTOOL64" >&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_OTOOL64" = x; then
7161 OTOOL64=":"
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 OTOOL64=$ac_ct_OTOOL64
7170 fi
7171 else
7172 OTOOL64="$ac_cv_prog_OTOOL64"
7173 fi
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7202 $as_echo_n "checking for -single_module linker flag... " >&6; }
7203 if ${lt_cv_apple_cc_single_mod+:} false; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206 lt_cv_apple_cc_single_mod=no
7207 if test -z "$LT_MULTI_MODULE"; then
7208 # By default we will add the -single_module flag. You can override
7209 # by either setting the environment variable LT_MULTI_MODULE
7210 # non-empty at configure time, or by adding -multi_module to the
7211 # link flags.
7212 rm -rf libconftest.dylib*
7213 echo "int foo(void){return 1;}" > conftest.c
7214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7215 -dynamiclib -Wl,-single_module conftest.c" >&5
7216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7218 _lt_result=$?
7219 # If there is a non-empty error log, and "single_module"
7220 # appears in it, assume the flag caused a linker warning
7221 if test -s conftest.err && $GREP single_module conftest.err; then
7222 cat conftest.err >&5
7223 # Otherwise, if the output was created with a 0 exit code from
7224 # the compiler, it worked.
7225 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7226 lt_cv_apple_cc_single_mod=yes
7227 else
7228 cat conftest.err >&5
7229 fi
7230 rm -rf libconftest.dylib*
7231 rm -f conftest.*
7232 fi
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7235 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7238 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7239 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 lt_cv_ld_exported_symbols_list=no
7243 save_LDFLAGS=$LDFLAGS
7244 echo "_main" > conftest.sym
7245 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248
7249 int
7250 main ()
7251 {
7252
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 if ac_fn_c_try_link "$LINENO"; then :
7258 lt_cv_ld_exported_symbols_list=yes
7259 else
7260 lt_cv_ld_exported_symbols_list=no
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext \
7263 conftest$ac_exeext conftest.$ac_ext
7264 LDFLAGS=$save_LDFLAGS
7265
7266 fi
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7268 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7269
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7271 $as_echo_n "checking for -force_load linker flag... " >&6; }
7272 if ${lt_cv_ld_force_load+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 lt_cv_ld_force_load=no
7276 cat > conftest.c << _LT_EOF
7277 int forced_loaded() { return 2;}
7278 _LT_EOF
7279 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7280 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7281 echo "$AR cru libconftest.a conftest.o" >&5
7282 $AR cru libconftest.a conftest.o 2>&5
7283 echo "$RANLIB libconftest.a" >&5
7284 $RANLIB libconftest.a 2>&5
7285 cat > conftest.c << _LT_EOF
7286 int main() { return 0;}
7287 _LT_EOF
7288 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7289 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7290 _lt_result=$?
7291 if test -s conftest.err && $GREP force_load conftest.err; then
7292 cat conftest.err >&5
7293 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7294 lt_cv_ld_force_load=yes
7295 else
7296 cat conftest.err >&5
7297 fi
7298 rm -f conftest.err libconftest.a conftest conftest.c
7299 rm -rf conftest.dSYM
7300
7301 fi
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7303 $as_echo "$lt_cv_ld_force_load" >&6; }
7304 case $host_os in
7305 rhapsody* | darwin1.[012])
7306 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7307 darwin1.*)
7308 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7309 darwin*) # darwin 5.x on
7310 # if running on 10.5 or later, the deployment target defaults
7311 # to the OS version, if on x86, and 10.4, the deployment
7312 # target defaults to 10.4. Don't you love it?
7313 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7314 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7315 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7316 10.[012][,.]*)
7317 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7318 10.*)
7319 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7320 esac
7321 ;;
7322 esac
7323 if test yes = "$lt_cv_apple_cc_single_mod"; then
7324 _lt_dar_single_mod='$single_module'
7325 fi
7326 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7327 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7328 else
7329 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7330 fi
7331 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7332 _lt_dsymutil='~$DSYMUTIL $lib || :'
7333 else
7334 _lt_dsymutil=
7335 fi
7336 ;;
7337 esac
7338
7339 # func_munge_path_list VARIABLE PATH
7340 # -----------------------------------
7341 # VARIABLE is name of variable containing _space_ separated list of
7342 # directories to be munged by the contents of PATH, which is string
7343 # having a format:
7344 # "DIR[:DIR]:"
7345 # string "DIR[ DIR]" will be prepended to VARIABLE
7346 # ":DIR[:DIR]"
7347 # string "DIR[ DIR]" will be appended to VARIABLE
7348 # "DIRP[:DIRP]::[DIRA:]DIRA"
7349 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7350 # "DIRA[ DIRA]" will be appended to VARIABLE
7351 # "DIR[:DIR]"
7352 # VARIABLE will be replaced by "DIR[ DIR]"
7353 func_munge_path_list ()
7354 {
7355 case x$2 in
7356 x)
7357 ;;
7358 *:)
7359 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7360 ;;
7361 x:*)
7362 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7363 ;;
7364 *::*)
7365 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7366 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7367 ;;
7368 *)
7369 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7370 ;;
7371 esac
7372 }
7373
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7380 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7381 # On Suns, sometimes $CPP names a directory.
7382 if test -n "$CPP" && test -d "$CPP"; then
7383 CPP=
7384 fi
7385 if test -z "$CPP"; then
7386 if ${ac_cv_prog_CPP+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 # Double quotes because CPP needs to be expanded
7390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7391 do
7392 ac_preproc_ok=false
7393 for ac_c_preproc_warn_flag in '' yes
7394 do
7395 # Use a header file that comes with gcc, so configuring glibc
7396 # with a fresh cross-compiler works.
7397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7398 # <limits.h> exists even on freestanding compilers.
7399 # On the NeXT, cc -E runs the code through the compiler's parser,
7400 # not just through cpp. "Syntax error" is here to catch this case.
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 #ifdef __STDC__
7404 # include <limits.h>
7405 #else
7406 # include <assert.h>
7407 #endif
7408 Syntax error
7409 _ACEOF
7410 if ac_fn_c_try_cpp "$LINENO"; then :
7411
7412 else
7413 # Broken: fails on valid input.
7414 continue
7415 fi
7416 rm -f conftest.err conftest.i conftest.$ac_ext
7417
7418 # OK, works on sane cases. Now check whether nonexistent headers
7419 # can be detected and how.
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #include <ac_nonexistent.h>
7423 _ACEOF
7424 if ac_fn_c_try_cpp "$LINENO"; then :
7425 # Broken: success on invalid input.
7426 continue
7427 else
7428 # Passes both tests.
7429 ac_preproc_ok=:
7430 break
7431 fi
7432 rm -f conftest.err conftest.i conftest.$ac_ext
7433
7434 done
7435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7436 rm -f conftest.i conftest.err conftest.$ac_ext
7437 if $ac_preproc_ok; then :
7438 break
7439 fi
7440
7441 done
7442 ac_cv_prog_CPP=$CPP
7443
7444 fi
7445 CPP=$ac_cv_prog_CPP
7446 else
7447 ac_cv_prog_CPP=$CPP
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7450 $as_echo "$CPP" >&6; }
7451 ac_preproc_ok=false
7452 for ac_c_preproc_warn_flag in '' yes
7453 do
7454 # Use a header file that comes with gcc, so configuring glibc
7455 # with a fresh cross-compiler works.
7456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7457 # <limits.h> exists even on freestanding compilers.
7458 # On the NeXT, cc -E runs the code through the compiler's parser,
7459 # not just through cpp. "Syntax error" is here to catch this case.
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #ifdef __STDC__
7463 # include <limits.h>
7464 #else
7465 # include <assert.h>
7466 #endif
7467 Syntax error
7468 _ACEOF
7469 if ac_fn_c_try_cpp "$LINENO"; then :
7470
7471 else
7472 # Broken: fails on valid input.
7473 continue
7474 fi
7475 rm -f conftest.err conftest.i conftest.$ac_ext
7476
7477 # OK, works on sane cases. Now check whether nonexistent headers
7478 # can be detected and how.
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481 #include <ac_nonexistent.h>
7482 _ACEOF
7483 if ac_fn_c_try_cpp "$LINENO"; then :
7484 # Broken: success on invalid input.
7485 continue
7486 else
7487 # Passes both tests.
7488 ac_preproc_ok=:
7489 break
7490 fi
7491 rm -f conftest.err conftest.i conftest.$ac_ext
7492
7493 done
7494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7495 rm -f conftest.i conftest.err conftest.$ac_ext
7496 if $ac_preproc_ok; then :
7497
7498 else
7499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7501 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7502 See \`config.log' for more details" "$LINENO" 5; }
7503 fi
7504
7505 ac_ext=c
7506 ac_cpp='$CPP $CPPFLAGS'
7507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510
7511
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7513 $as_echo_n "checking for ANSI C header files... " >&6; }
7514 if ${ac_cv_header_stdc+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 #include <stdlib.h>
7520 #include <stdarg.h>
7521 #include <string.h>
7522 #include <float.h>
7523
7524 int
7525 main ()
7526 {
7527
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533 ac_cv_header_stdc=yes
7534 else
7535 ac_cv_header_stdc=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538
7539 if test $ac_cv_header_stdc = yes; then
7540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <string.h>
7544
7545 _ACEOF
7546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7547 $EGREP "memchr" >/dev/null 2>&1; then :
7548
7549 else
7550 ac_cv_header_stdc=no
7551 fi
7552 rm -f conftest*
7553
7554 fi
7555
7556 if test $ac_cv_header_stdc = yes; then
7557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 #include <stdlib.h>
7561
7562 _ACEOF
7563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7564 $EGREP "free" >/dev/null 2>&1; then :
7565
7566 else
7567 ac_cv_header_stdc=no
7568 fi
7569 rm -f conftest*
7570
7571 fi
7572
7573 if test $ac_cv_header_stdc = yes; then
7574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7575 if test "$cross_compiling" = yes; then :
7576 :
7577 else
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 #include <ctype.h>
7581 #include <stdlib.h>
7582 #if ((' ' & 0x0FF) == 0x020)
7583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7585 #else
7586 # define ISLOWER(c) \
7587 (('a' <= (c) && (c) <= 'i') \
7588 || ('j' <= (c) && (c) <= 'r') \
7589 || ('s' <= (c) && (c) <= 'z'))
7590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7591 #endif
7592
7593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7594 int
7595 main ()
7596 {
7597 int i;
7598 for (i = 0; i < 256; i++)
7599 if (XOR (islower (i), ISLOWER (i))
7600 || toupper (i) != TOUPPER (i))
7601 return 2;
7602 return 0;
7603 }
7604 _ACEOF
7605 if ac_fn_c_try_run "$LINENO"; then :
7606
7607 else
7608 ac_cv_header_stdc=no
7609 fi
7610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7611 conftest.$ac_objext conftest.beam conftest.$ac_ext
7612 fi
7613
7614 fi
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7617 $as_echo "$ac_cv_header_stdc" >&6; }
7618 if test $ac_cv_header_stdc = yes; then
7619
7620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7621
7622 fi
7623
7624 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7625 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7626 inttypes.h stdint.h unistd.h
7627 do :
7628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7629 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7630 "
7631 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7632 cat >>confdefs.h <<_ACEOF
7633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7634 _ACEOF
7635
7636 fi
7637
7638 done
7639
7640
7641 for ac_header in dlfcn.h
7642 do :
7643 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7644 "
7645 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7646 cat >>confdefs.h <<_ACEOF
7647 #define HAVE_DLFCN_H 1
7648 _ACEOF
7649
7650 fi
7651
7652 done
7653
7654
7655
7656
7657
7658 # Set options
7659
7660
7661
7662 enable_dlopen=no
7663
7664
7665 enable_win32_dll=no
7666
7667
7668 # Check whether --enable-shared was given.
7669 if test "${enable_shared+set}" = set; then :
7670 enableval=$enable_shared; p=${PACKAGE-default}
7671 case $enableval in
7672 yes) enable_shared=yes ;;
7673 no) enable_shared=no ;;
7674 *)
7675 enable_shared=no
7676 # Look at the argument we got. We use all the common list separators.
7677 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7678 for pkg in $enableval; do
7679 IFS=$lt_save_ifs
7680 if test "X$pkg" = "X$p"; then
7681 enable_shared=yes
7682 fi
7683 done
7684 IFS=$lt_save_ifs
7685 ;;
7686 esac
7687 else
7688 enable_shared=yes
7689 fi
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699 # Check whether --enable-static was given.
7700 if test "${enable_static+set}" = set; then :
7701 enableval=$enable_static; p=${PACKAGE-default}
7702 case $enableval in
7703 yes) enable_static=yes ;;
7704 no) enable_static=no ;;
7705 *)
7706 enable_static=no
7707 # Look at the argument we got. We use all the common list separators.
7708 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7709 for pkg in $enableval; do
7710 IFS=$lt_save_ifs
7711 if test "X$pkg" = "X$p"; then
7712 enable_static=yes
7713 fi
7714 done
7715 IFS=$lt_save_ifs
7716 ;;
7717 esac
7718 else
7719 enable_static=yes
7720 fi
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731 # Check whether --with-pic was given.
7732 if test "${with_pic+set}" = set; then :
7733 withval=$with_pic; lt_p=${PACKAGE-default}
7734 case $withval in
7735 yes|no) pic_mode=$withval ;;
7736 *)
7737 pic_mode=default
7738 # Look at the argument we got. We use all the common list separators.
7739 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7740 for lt_pkg in $withval; do
7741 IFS=$lt_save_ifs
7742 if test "X$lt_pkg" = "X$lt_p"; then
7743 pic_mode=yes
7744 fi
7745 done
7746 IFS=$lt_save_ifs
7747 ;;
7748 esac
7749 else
7750 pic_mode=default
7751 fi
7752
7753
7754
7755
7756
7757
7758
7759
7760 # Check whether --enable-fast-install was given.
7761 if test "${enable_fast_install+set}" = set; then :
7762 enableval=$enable_fast_install; p=${PACKAGE-default}
7763 case $enableval in
7764 yes) enable_fast_install=yes ;;
7765 no) enable_fast_install=no ;;
7766 *)
7767 enable_fast_install=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_fast_install=yes
7774 fi
7775 done
7776 IFS=$lt_save_ifs
7777 ;;
7778 esac
7779 else
7780 enable_fast_install=yes
7781 fi
7782
7783
7784
7785
7786
7787
7788
7789
7790 shared_archive_member_spec=
7791 case $host,$enable_shared in
7792 power*-*-aix[5-9]*,yes)
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7794 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7795
7796 # Check whether --with-aix-soname was given.
7797 if test "${with_aix_soname+set}" = set; then :
7798 withval=$with_aix_soname; case $withval in
7799 aix|svr4|both)
7800 ;;
7801 *)
7802 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7803 ;;
7804 esac
7805 lt_cv_with_aix_soname=$with_aix_soname
7806 else
7807 if ${lt_cv_with_aix_soname+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 lt_cv_with_aix_soname=aix
7811 fi
7812
7813 with_aix_soname=$lt_cv_with_aix_soname
7814 fi
7815
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7817 $as_echo "$with_aix_soname" >&6; }
7818 if test aix != "$with_aix_soname"; then
7819 # For the AIX way of multilib, we name the shared archive member
7820 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7821 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7822 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7823 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7824 if test 64 = "${OBJECT_MODE-32}"; then
7825 shared_archive_member_spec=shr_64
7826 else
7827 shared_archive_member_spec=shr
7828 fi
7829 fi
7830 ;;
7831 *)
7832 with_aix_soname=aix
7833 ;;
7834 esac
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 # This can be used to rebuild libtool when needed
7846 LIBTOOL_DEPS=$ltmain
7847
7848 # Always use our own libtool.
7849 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880 test -z "$LN_S" && LN_S="ln -s"
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895 if test -n "${ZSH_VERSION+set}"; then
7896 setopt NO_GLOB_SUBST
7897 fi
7898
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7900 $as_echo_n "checking for objdir... " >&6; }
7901 if ${lt_cv_objdir+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 rm -f .libs 2>/dev/null
7905 mkdir .libs 2>/dev/null
7906 if test -d .libs; then
7907 lt_cv_objdir=.libs
7908 else
7909 # MS-DOS does not allow filenames that begin with a dot.
7910 lt_cv_objdir=_libs
7911 fi
7912 rmdir .libs 2>/dev/null
7913 fi
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7915 $as_echo "$lt_cv_objdir" >&6; }
7916 objdir=$lt_cv_objdir
7917
7918
7919
7920
7921
7922 cat >>confdefs.h <<_ACEOF
7923 #define LT_OBJDIR "$lt_cv_objdir/"
7924 _ACEOF
7925
7926
7927
7928
7929 case $host_os in
7930 aix3*)
7931 # AIX sometimes has problems with the GCC collect2 program. For some
7932 # reason, if we set the COLLECT_NAMES environment variable, the problems
7933 # vanish in a puff of smoke.
7934 if test set != "${COLLECT_NAMES+set}"; then
7935 COLLECT_NAMES=
7936 export COLLECT_NAMES
7937 fi
7938 ;;
7939 esac
7940
7941 # Global variables:
7942 ofile=libtool
7943 can_build_shared=yes
7944
7945 # All known linkers require a '.a' archive for static linking (except MSVC,
7946 # which needs '.lib').
7947 libext=a
7948
7949 with_gnu_ld=$lt_cv_prog_gnu_ld
7950
7951 old_CC=$CC
7952 old_CFLAGS=$CFLAGS
7953
7954 # Set sane defaults for various variables
7955 test -z "$CC" && CC=cc
7956 test -z "$LTCC" && LTCC=$CC
7957 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7958 test -z "$LD" && LD=ld
7959 test -z "$ac_objext" && ac_objext=o
7960
7961 func_cc_basename $compiler
7962 cc_basename=$func_cc_basename_result
7963
7964
7965 # Only perform the check for file, if the check method requires it
7966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7967 case $deplibs_check_method in
7968 file_magic*)
7969 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7971 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7972 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 case $MAGIC_CMD in
7976 [\\/*] | ?:[\\/]*)
7977 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7978 ;;
7979 *)
7980 lt_save_MAGIC_CMD=$MAGIC_CMD
7981 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7983 for ac_dir in $ac_dummy; do
7984 IFS=$lt_save_ifs
7985 test -z "$ac_dir" && ac_dir=.
7986 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7987 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7988 if test -n "$file_magic_test_file"; then
7989 case $deplibs_check_method in
7990 "file_magic "*)
7991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7992 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7994 $EGREP "$file_magic_regex" > /dev/null; then
7995 :
7996 else
7997 cat <<_LT_EOF 1>&2
7998
7999 *** Warning: the command libtool uses to detect shared libraries,
8000 *** $file_magic_cmd, produces output that libtool cannot recognize.
8001 *** The result is that libtool may fail to recognize shared libraries
8002 *** as such. This will affect the creation of libtool libraries that
8003 *** depend on shared libraries, but programs linked with such libtool
8004 *** libraries will work regardless of this problem. Nevertheless, you
8005 *** may want to report the problem to your system manager and/or to
8006 *** bug-libtool (at] gnu.org
8007
8008 _LT_EOF
8009 fi ;;
8010 esac
8011 fi
8012 break
8013 fi
8014 done
8015 IFS=$lt_save_ifs
8016 MAGIC_CMD=$lt_save_MAGIC_CMD
8017 ;;
8018 esac
8019 fi
8020
8021 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8022 if test -n "$MAGIC_CMD"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8024 $as_echo "$MAGIC_CMD" >&6; }
8025 else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8028 fi
8029
8030
8031
8032
8033
8034 if test -z "$lt_cv_path_MAGIC_CMD"; then
8035 if test -n "$ac_tool_prefix"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8037 $as_echo_n "checking for file... " >&6; }
8038 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 case $MAGIC_CMD in
8042 [\\/*] | ?:[\\/]*)
8043 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8044 ;;
8045 *)
8046 lt_save_MAGIC_CMD=$MAGIC_CMD
8047 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8049 for ac_dir in $ac_dummy; do
8050 IFS=$lt_save_ifs
8051 test -z "$ac_dir" && ac_dir=.
8052 if test -f "$ac_dir/file"; then
8053 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8054 if test -n "$file_magic_test_file"; then
8055 case $deplibs_check_method in
8056 "file_magic "*)
8057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8058 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8060 $EGREP "$file_magic_regex" > /dev/null; then
8061 :
8062 else
8063 cat <<_LT_EOF 1>&2
8064
8065 *** Warning: the command libtool uses to detect shared libraries,
8066 *** $file_magic_cmd, produces output that libtool cannot recognize.
8067 *** The result is that libtool may fail to recognize shared libraries
8068 *** as such. This will affect the creation of libtool libraries that
8069 *** depend on shared libraries, but programs linked with such libtool
8070 *** libraries will work regardless of this problem. Nevertheless, you
8071 *** may want to report the problem to your system manager and/or to
8072 *** bug-libtool (at] gnu.org
8073
8074 _LT_EOF
8075 fi ;;
8076 esac
8077 fi
8078 break
8079 fi
8080 done
8081 IFS=$lt_save_ifs
8082 MAGIC_CMD=$lt_save_MAGIC_CMD
8083 ;;
8084 esac
8085 fi
8086
8087 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8088 if test -n "$MAGIC_CMD"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8090 $as_echo "$MAGIC_CMD" >&6; }
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096
8097 else
8098 MAGIC_CMD=:
8099 fi
8100 fi
8101
8102 fi
8103 ;;
8104 esac
8105
8106 # Use C for the default configuration in the libtool script
8107
8108 lt_save_CC=$CC
8109 ac_ext=c
8110 ac_cpp='$CPP $CPPFLAGS'
8111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8114
8115
8116 # Source file extension for C test sources.
8117 ac_ext=c
8118
8119 # Object file extension for compiled C test sources.
8120 objext=o
8121 objext=$objext
8122
8123 # Code to be used in simple compile tests
8124 lt_simple_compile_test_code="int some_variable = 0;"
8125
8126 # Code to be used in simple link tests
8127 lt_simple_link_test_code='int main(){return(0);}'
8128
8129
8130
8131
8132
8133
8134
8135 # If no C compiler was specified, use CC.
8136 LTCC=${LTCC-"$CC"}
8137
8138 # If no C compiler flags were specified, use CFLAGS.
8139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8140
8141 # Allow CC to be a program name with arguments.
8142 compiler=$CC
8143
8144 # Save the default compiler, since it gets overwritten when the other
8145 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8146 compiler_DEFAULT=$CC
8147
8148 # save warnings/boilerplate of simple test code
8149 ac_outfile=conftest.$ac_objext
8150 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8152 _lt_compiler_boilerplate=`cat conftest.err`
8153 $RM conftest*
8154
8155 ac_outfile=conftest.$ac_objext
8156 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8158 _lt_linker_boilerplate=`cat conftest.err`
8159 $RM -r conftest*
8160
8161
8162 ## CAVEAT EMPTOR:
8163 ## There is no encapsulation within the following macros, do not change
8164 ## the running order or otherwise move them around unless you know exactly
8165 ## what you are doing...
8166 if test -n "$compiler"; then
8167
8168 lt_prog_compiler_no_builtin_flag=
8169
8170 if test yes = "$GCC"; then
8171 case $cc_basename in
8172 nvcc*)
8173 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8174 *)
8175 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8176 esac
8177
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8179 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8180 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 lt_cv_prog_compiler_rtti_exceptions=no
8184 ac_outfile=conftest.$ac_objext
8185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8186 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8187 # Insert the option either (1) after the last *FLAGS variable, or
8188 # (2) before a word containing "conftest.", or (3) at the end.
8189 # Note that $ac_compile itself does not contain backslashes and begins
8190 # with a dollar sign (not a hyphen), so the echo should work correctly.
8191 # The option is referenced via a variable to avoid confusing sed.
8192 lt_compile=`echo "$ac_compile" | $SED \
8193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8195 -e 's:$: $lt_compiler_flag:'`
8196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8197 (eval "$lt_compile" 2>conftest.err)
8198 ac_status=$?
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 if (exit $ac_status) && test -s "$ac_outfile"; then
8202 # The compiler can only warn and ignore the option if not recognized
8203 # So say no if there are warnings other than the usual output.
8204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8207 lt_cv_prog_compiler_rtti_exceptions=yes
8208 fi
8209 fi
8210 $RM conftest*
8211
8212 fi
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8214 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8215
8216 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8217 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8218 else
8219 :
8220 fi
8221
8222 fi
8223
8224
8225
8226
8227
8228
8229 lt_prog_compiler_wl=
8230 lt_prog_compiler_pic=
8231 lt_prog_compiler_static=
8232
8233
8234 if test yes = "$GCC"; then
8235 lt_prog_compiler_wl='-Wl,'
8236 lt_prog_compiler_static='-static'
8237
8238 case $host_os in
8239 aix*)
8240 # All AIX code is PIC.
8241 if test ia64 = "$host_cpu"; then
8242 # AIX 5 now supports IA64 processor
8243 lt_prog_compiler_static='-Bstatic'
8244 fi
8245 lt_prog_compiler_pic='-fPIC'
8246 ;;
8247
8248 amigaos*)
8249 case $host_cpu in
8250 powerpc)
8251 # see comment about AmigaOS4 .so support
8252 lt_prog_compiler_pic='-fPIC'
8253 ;;
8254 m68k)
8255 # FIXME: we need at least 68020 code to build shared libraries, but
8256 # adding the '-m68020' flag to GCC prevents building anything better,
8257 # like '-m68040'.
8258 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8259 ;;
8260 esac
8261 ;;
8262
8263 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8264 # PIC is the default for these OSes.
8265 ;;
8266
8267 mingw* | cygwin* | pw32* | os2* | cegcc*)
8268 # This hack is so that the source file can tell whether it is being
8269 # built for inclusion in a dll (and should export symbols for example).
8270 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8271 # (--disable-auto-import) libraries
8272 lt_prog_compiler_pic='-DDLL_EXPORT'
8273 case $host_os in
8274 os2*)
8275 lt_prog_compiler_static='$wl-static'
8276 ;;
8277 esac
8278 ;;
8279
8280 darwin* | rhapsody*)
8281 # PIC is the default on this platform
8282 # Common symbols not allowed in MH_DYLIB files
8283 lt_prog_compiler_pic='-fno-common'
8284 ;;
8285
8286 haiku*)
8287 # PIC is the default for Haiku.
8288 # The "-static" flag exists, but is broken.
8289 lt_prog_compiler_static=
8290 ;;
8291
8292 hpux*)
8293 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8294 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8295 # sets the default TLS model and affects inlining.
8296 case $host_cpu in
8297 hppa*64*)
8298 # +Z the default
8299 ;;
8300 *)
8301 lt_prog_compiler_pic='-fPIC'
8302 ;;
8303 esac
8304 ;;
8305
8306 interix[3-9]*)
8307 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8308 # Instead, we relocate shared libraries at runtime.
8309 ;;
8310
8311 msdosdjgpp*)
8312 # Just because we use GCC doesn't mean we suddenly get shared libraries
8313 # on systems that don't support them.
8314 lt_prog_compiler_can_build_shared=no
8315 enable_shared=no
8316 ;;
8317
8318 *nto* | *qnx*)
8319 # QNX uses GNU C++, but need to define -shared option too, otherwise
8320 # it will coredump.
8321 lt_prog_compiler_pic='-fPIC -shared'
8322 ;;
8323
8324 sysv4*MP*)
8325 if test -d /usr/nec; then
8326 lt_prog_compiler_pic=-Kconform_pic
8327 fi
8328 ;;
8329
8330 *)
8331 lt_prog_compiler_pic='-fPIC'
8332 ;;
8333 esac
8334
8335 case $cc_basename in
8336 nvcc*) # Cuda Compiler Driver 2.2
8337 lt_prog_compiler_wl='-Xlinker '
8338 if test -n "$lt_prog_compiler_pic"; then
8339 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8340 fi
8341 ;;
8342 esac
8343 else
8344 # PORTME Check for flag to pass linker flags through the system compiler.
8345 case $host_os in
8346 aix*)
8347 lt_prog_compiler_wl='-Wl,'
8348 if test ia64 = "$host_cpu"; then
8349 # AIX 5 now supports IA64 processor
8350 lt_prog_compiler_static='-Bstatic'
8351 else
8352 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8353 fi
8354 ;;
8355
8356 darwin* | rhapsody*)
8357 # PIC is the default on this platform
8358 # Common symbols not allowed in MH_DYLIB files
8359 lt_prog_compiler_pic='-fno-common'
8360 case $cc_basename in
8361 nagfor*)
8362 # NAG Fortran compiler
8363 lt_prog_compiler_wl='-Wl,-Wl,,'
8364 lt_prog_compiler_pic='-PIC'
8365 lt_prog_compiler_static='-Bstatic'
8366 ;;
8367 esac
8368 ;;
8369
8370 mingw* | cygwin* | pw32* | os2* | cegcc*)
8371 # This hack is so that the source file can tell whether it is being
8372 # built for inclusion in a dll (and should export symbols for example).
8373 lt_prog_compiler_pic='-DDLL_EXPORT'
8374 case $host_os in
8375 os2*)
8376 lt_prog_compiler_static='$wl-static'
8377 ;;
8378 esac
8379 ;;
8380
8381 hpux9* | hpux10* | hpux11*)
8382 lt_prog_compiler_wl='-Wl,'
8383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8384 # not for PA HP-UX.
8385 case $host_cpu in
8386 hppa*64*|ia64*)
8387 # +Z the default
8388 ;;
8389 *)
8390 lt_prog_compiler_pic='+Z'
8391 ;;
8392 esac
8393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8394 lt_prog_compiler_static='$wl-a ${wl}archive'
8395 ;;
8396
8397 irix5* | irix6* | nonstopux*)
8398 lt_prog_compiler_wl='-Wl,'
8399 # PIC (with -KPIC) is the default.
8400 lt_prog_compiler_static='-non_shared'
8401 ;;
8402
8403 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8404 case $cc_basename in
8405 # old Intel for x86_64, which still supported -KPIC.
8406 ecc*)
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_pic='-KPIC'
8409 lt_prog_compiler_static='-static'
8410 ;;
8411 # icc used to be incompatible with GCC.
8412 # ICC 10 doesn't accept -KPIC any more.
8413 icc* | ifort*)
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_pic='-fPIC'
8416 lt_prog_compiler_static='-static'
8417 ;;
8418 # Lahey Fortran 8.1.
8419 lf95*)
8420 lt_prog_compiler_wl='-Wl,'
8421 lt_prog_compiler_pic='--shared'
8422 lt_prog_compiler_static='--static'
8423 ;;
8424 nagfor*)
8425 # NAG Fortran compiler
8426 lt_prog_compiler_wl='-Wl,-Wl,,'
8427 lt_prog_compiler_pic='-PIC'
8428 lt_prog_compiler_static='-Bstatic'
8429 ;;
8430 tcc*)
8431 # Fabrice Bellard et al's Tiny C Compiler
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_pic='-fPIC'
8434 lt_prog_compiler_static='-static'
8435 ;;
8436 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8437 # Portland Group compilers (*not* the Pentium gcc compiler,
8438 # which looks to be a dead project)
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_pic='-fpic'
8441 lt_prog_compiler_static='-Bstatic'
8442 ;;
8443 ccc*)
8444 lt_prog_compiler_wl='-Wl,'
8445 # All Alpha code is PIC.
8446 lt_prog_compiler_static='-non_shared'
8447 ;;
8448 xl* | bgxl* | bgf* | mpixl*)
8449 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8450 lt_prog_compiler_wl='-Wl,'
8451 lt_prog_compiler_pic='-qpic'
8452 lt_prog_compiler_static='-qstaticlink'
8453 ;;
8454 *)
8455 case `$CC -V 2>&1 | sed 5q` in
8456 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8457 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8458 lt_prog_compiler_pic='-KPIC'
8459 lt_prog_compiler_static='-Bstatic'
8460 lt_prog_compiler_wl=''
8461 ;;
8462 *Sun\ F* | *Sun*Fortran*)
8463 lt_prog_compiler_pic='-KPIC'
8464 lt_prog_compiler_static='-Bstatic'
8465 lt_prog_compiler_wl='-Qoption ld '
8466 ;;
8467 *Sun\ C*)
8468 # Sun C 5.9
8469 lt_prog_compiler_pic='-KPIC'
8470 lt_prog_compiler_static='-Bstatic'
8471 lt_prog_compiler_wl='-Wl,'
8472 ;;
8473 *Intel*\ [CF]*Compiler*)
8474 lt_prog_compiler_wl='-Wl,'
8475 lt_prog_compiler_pic='-fPIC'
8476 lt_prog_compiler_static='-static'
8477 ;;
8478 *Portland\ Group*)
8479 lt_prog_compiler_wl='-Wl,'
8480 lt_prog_compiler_pic='-fpic'
8481 lt_prog_compiler_static='-Bstatic'
8482 ;;
8483 esac
8484 ;;
8485 esac
8486 ;;
8487
8488 newsos6)
8489 lt_prog_compiler_pic='-KPIC'
8490 lt_prog_compiler_static='-Bstatic'
8491 ;;
8492
8493 *nto* | *qnx*)
8494 # QNX uses GNU C++, but need to define -shared option too, otherwise
8495 # it will coredump.
8496 lt_prog_compiler_pic='-fPIC -shared'
8497 ;;
8498
8499 osf3* | osf4* | osf5*)
8500 lt_prog_compiler_wl='-Wl,'
8501 # All OSF/1 code is PIC.
8502 lt_prog_compiler_static='-non_shared'
8503 ;;
8504
8505 rdos*)
8506 lt_prog_compiler_static='-non_shared'
8507 ;;
8508
8509 solaris*)
8510 lt_prog_compiler_pic='-KPIC'
8511 lt_prog_compiler_static='-Bstatic'
8512 case $cc_basename in
8513 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8514 lt_prog_compiler_wl='-Qoption ld ';;
8515 *)
8516 lt_prog_compiler_wl='-Wl,';;
8517 esac
8518 ;;
8519
8520 sunos4*)
8521 lt_prog_compiler_wl='-Qoption ld '
8522 lt_prog_compiler_pic='-PIC'
8523 lt_prog_compiler_static='-Bstatic'
8524 ;;
8525
8526 sysv4 | sysv4.2uw2* | sysv4.3*)
8527 lt_prog_compiler_wl='-Wl,'
8528 lt_prog_compiler_pic='-KPIC'
8529 lt_prog_compiler_static='-Bstatic'
8530 ;;
8531
8532 sysv4*MP*)
8533 if test -d /usr/nec; then
8534 lt_prog_compiler_pic='-Kconform_pic'
8535 lt_prog_compiler_static='-Bstatic'
8536 fi
8537 ;;
8538
8539 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-KPIC'
8542 lt_prog_compiler_static='-Bstatic'
8543 ;;
8544
8545 unicos*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_can_build_shared=no
8548 ;;
8549
8550 uts4*)
8551 lt_prog_compiler_pic='-pic'
8552 lt_prog_compiler_static='-Bstatic'
8553 ;;
8554
8555 *)
8556 lt_prog_compiler_can_build_shared=no
8557 ;;
8558 esac
8559 fi
8560
8561 case $host_os in
8562 # For platforms that do not support PIC, -DPIC is meaningless:
8563 *djgpp*)
8564 lt_prog_compiler_pic=
8565 ;;
8566 *)
8567 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8568 ;;
8569 esac
8570
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8572 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8573 if ${lt_cv_prog_compiler_pic+:} false; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8579 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8580 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8581
8582 #
8583 # Check to make sure the PIC flag actually works.
8584 #
8585 if test -n "$lt_prog_compiler_pic"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8587 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8588 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 lt_cv_prog_compiler_pic_works=no
8592 ac_outfile=conftest.$ac_objext
8593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8594 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8595 # Insert the option either (1) after the last *FLAGS variable, or
8596 # (2) before a word containing "conftest.", or (3) at the end.
8597 # Note that $ac_compile itself does not contain backslashes and begins
8598 # with a dollar sign (not a hyphen), so the echo should work correctly.
8599 # The option is referenced via a variable to avoid confusing sed.
8600 lt_compile=`echo "$ac_compile" | $SED \
8601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8603 -e 's:$: $lt_compiler_flag:'`
8604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8605 (eval "$lt_compile" 2>conftest.err)
8606 ac_status=$?
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 if (exit $ac_status) && test -s "$ac_outfile"; then
8610 # The compiler can only warn and ignore the option if not recognized
8611 # So say no if there are warnings other than the usual output.
8612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8615 lt_cv_prog_compiler_pic_works=yes
8616 fi
8617 fi
8618 $RM conftest*
8619
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8622 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8623
8624 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8625 case $lt_prog_compiler_pic in
8626 "" | " "*) ;;
8627 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8628 esac
8629 else
8630 lt_prog_compiler_pic=
8631 lt_prog_compiler_can_build_shared=no
8632 fi
8633
8634 fi
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646 #
8647 # Check to make sure the static flag actually works.
8648 #
8649 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8651 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8652 if ${lt_cv_prog_compiler_static_works+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 lt_cv_prog_compiler_static_works=no
8656 save_LDFLAGS=$LDFLAGS
8657 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8658 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8660 # The linker can only warn and ignore the option if not recognized
8661 # So say no if there are warnings
8662 if test -s conftest.err; then
8663 # Append any errors to the config.log.
8664 cat conftest.err 1>&5
8665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8667 if diff conftest.exp conftest.er2 >/dev/null; then
8668 lt_cv_prog_compiler_static_works=yes
8669 fi
8670 else
8671 lt_cv_prog_compiler_static_works=yes
8672 fi
8673 fi
8674 $RM -r conftest*
8675 LDFLAGS=$save_LDFLAGS
8676
8677 fi
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8679 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8680
8681 if test yes = "$lt_cv_prog_compiler_static_works"; then
8682 :
8683 else
8684 lt_prog_compiler_static=
8685 fi
8686
8687
8688
8689
8690
8691
8692
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8695 if ${lt_cv_prog_compiler_c_o+:} false; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 lt_cv_prog_compiler_c_o=no
8699 $RM -r conftest 2>/dev/null
8700 mkdir conftest
8701 cd conftest
8702 mkdir out
8703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8704
8705 lt_compiler_flag="-o out/conftest2.$ac_objext"
8706 # Insert the option either (1) after the last *FLAGS variable, or
8707 # (2) before a word containing "conftest.", or (3) at the end.
8708 # Note that $ac_compile itself does not contain backslashes and begins
8709 # with a dollar sign (not a hyphen), so the echo should work correctly.
8710 lt_compile=`echo "$ac_compile" | $SED \
8711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8713 -e 's:$: $lt_compiler_flag:'`
8714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8715 (eval "$lt_compile" 2>out/conftest.err)
8716 ac_status=$?
8717 cat out/conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8720 then
8721 # The compiler can only warn and ignore the option if not recognized
8722 # So say no if there are warnings
8723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8726 lt_cv_prog_compiler_c_o=yes
8727 fi
8728 fi
8729 chmod u+w . 2>&5
8730 $RM conftest*
8731 # SGI C++ compiler will create directory out/ii_files/ for
8732 # template instantiation
8733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8734 $RM out/* && rmdir out
8735 cd ..
8736 $RM -r conftest
8737 $RM conftest*
8738
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8741 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8742
8743
8744
8745
8746
8747
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8749 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8750 if ${lt_cv_prog_compiler_c_o+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 lt_cv_prog_compiler_c_o=no
8754 $RM -r conftest 2>/dev/null
8755 mkdir conftest
8756 cd conftest
8757 mkdir out
8758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8759
8760 lt_compiler_flag="-o out/conftest2.$ac_objext"
8761 # Insert the option either (1) after the last *FLAGS variable, or
8762 # (2) before a word containing "conftest.", or (3) at the end.
8763 # Note that $ac_compile itself does not contain backslashes and begins
8764 # with a dollar sign (not a hyphen), so the echo should work correctly.
8765 lt_compile=`echo "$ac_compile" | $SED \
8766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8768 -e 's:$: $lt_compiler_flag:'`
8769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8770 (eval "$lt_compile" 2>out/conftest.err)
8771 ac_status=$?
8772 cat out/conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8775 then
8776 # The compiler can only warn and ignore the option if not recognized
8777 # So say no if there are warnings
8778 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8779 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8780 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8781 lt_cv_prog_compiler_c_o=yes
8782 fi
8783 fi
8784 chmod u+w . 2>&5
8785 $RM conftest*
8786 # SGI C++ compiler will create directory out/ii_files/ for
8787 # template instantiation
8788 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8789 $RM out/* && rmdir out
8790 cd ..
8791 $RM -r conftest
8792 $RM conftest*
8793
8794 fi
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8796 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8797
8798
8799
8800
8801 hard_links=nottested
8802 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8803 # do not overwrite the value of need_locks provided by the user
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8805 $as_echo_n "checking if we can lock with hard links... " >&6; }
8806 hard_links=yes
8807 $RM conftest*
8808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8809 touch conftest.a
8810 ln conftest.a conftest.b 2>&5 || hard_links=no
8811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8813 $as_echo "$hard_links" >&6; }
8814 if test no = "$hard_links"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8816 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8817 need_locks=warn
8818 fi
8819 else
8820 need_locks=no
8821 fi
8822
8823
8824
8825
8826
8827
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8829 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8830
8831 runpath_var=
8832 allow_undefined_flag=
8833 always_export_symbols=no
8834 archive_cmds=
8835 archive_expsym_cmds=
8836 compiler_needs_object=no
8837 enable_shared_with_static_runtimes=no
8838 export_dynamic_flag_spec=
8839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8840 hardcode_automatic=no
8841 hardcode_direct=no
8842 hardcode_direct_absolute=no
8843 hardcode_libdir_flag_spec=
8844 hardcode_libdir_separator=
8845 hardcode_minus_L=no
8846 hardcode_shlibpath_var=unsupported
8847 inherit_rpath=no
8848 link_all_deplibs=unknown
8849 module_cmds=
8850 module_expsym_cmds=
8851 old_archive_from_new_cmds=
8852 old_archive_from_expsyms_cmds=
8853 thread_safe_flag_spec=
8854 whole_archive_flag_spec=
8855 # include_expsyms should be a list of space-separated symbols to be *always*
8856 # included in the symbol list
8857 include_expsyms=
8858 # exclude_expsyms can be an extended regexp of symbols to exclude
8859 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8860 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8861 # as well as any symbol that contains 'd'.
8862 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8863 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8864 # platforms (ab)use it in PIC code, but their linkers get confused if
8865 # the symbol is explicitly referenced. Since portable code cannot
8866 # rely on this symbol name, it's probably fine to never include it in
8867 # preloaded symbol tables.
8868 # Exclude shared library initialization/finalization symbols.
8869 extract_expsyms_cmds=
8870
8871 case $host_os in
8872 cygwin* | mingw* | pw32* | cegcc*)
8873 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8874 # When not using gcc, we currently assume that we are using
8875 # Microsoft Visual C++.
8876 if test yes != "$GCC"; then
8877 with_gnu_ld=no
8878 fi
8879 ;;
8880 interix*)
8881 # we just hope/assume this is gcc and not c89 (= MSVC++)
8882 with_gnu_ld=yes
8883 ;;
8884 openbsd* | bitrig*)
8885 with_gnu_ld=no
8886 ;;
8887 esac
8888
8889 ld_shlibs=yes
8890
8891 # On some targets, GNU ld is compatible enough with the native linker
8892 # that we're better off using the native interface for both.
8893 lt_use_gnu_ld_interface=no
8894 if test yes = "$with_gnu_ld"; then
8895 case $host_os in
8896 aix*)
8897 # The AIX port of GNU ld has always aspired to compatibility
8898 # with the native linker. However, as the warning in the GNU ld
8899 # block says, versions before 2.19.5* couldn't really create working
8900 # shared libraries, regardless of the interface used.
8901 case `$LD -v 2>&1` in
8902 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8903 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8904 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8905 *)
8906 lt_use_gnu_ld_interface=yes
8907 ;;
8908 esac
8909 ;;
8910 *)
8911 lt_use_gnu_ld_interface=yes
8912 ;;
8913 esac
8914 fi
8915
8916 if test yes = "$lt_use_gnu_ld_interface"; then
8917 # If archive_cmds runs LD, not CC, wlarc should be empty
8918 wlarc='$wl'
8919
8920 # Set some defaults for GNU ld with shared library support. These
8921 # are reset later if shared libraries are not supported. Putting them
8922 # here allows them to be overridden if necessary.
8923 runpath_var=LD_RUN_PATH
8924 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8925 export_dynamic_flag_spec='$wl--export-dynamic'
8926 # ancient GNU ld didn't support --whole-archive et. al.
8927 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8928 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8929 else
8930 whole_archive_flag_spec=
8931 fi
8932 supports_anon_versioning=no
8933 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8934 *GNU\ gold*) supports_anon_versioning=yes ;;
8935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8938 *\ 2.11.*) ;; # other 2.11 versions
8939 *) supports_anon_versioning=yes ;;
8940 esac
8941
8942 # See if GNU ld supports shared libraries.
8943 case $host_os in
8944 aix[3-9]*)
8945 # On AIX/PPC, the GNU linker is very broken
8946 if test ia64 != "$host_cpu"; then
8947 ld_shlibs=no
8948 cat <<_LT_EOF 1>&2
8949
8950 *** Warning: the GNU linker, at least up to release 2.19, is reported
8951 *** to be unable to reliably create shared libraries on AIX.
8952 *** Therefore, libtool is disabling shared libraries support. If you
8953 *** really care for shared libraries, you may want to install binutils
8954 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8955 *** You will then need to restart the configuration process.
8956
8957 _LT_EOF
8958 fi
8959 ;;
8960
8961 amigaos*)
8962 case $host_cpu in
8963 powerpc)
8964 # see comment about AmigaOS4 .so support
8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8966 archive_expsym_cmds=''
8967 ;;
8968 m68k)
8969 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)'
8970 hardcode_libdir_flag_spec='-L$libdir'
8971 hardcode_minus_L=yes
8972 ;;
8973 esac
8974 ;;
8975
8976 beos*)
8977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8978 allow_undefined_flag=unsupported
8979 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8980 # support --undefined. This deserves some investigation. FIXME
8981 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8982 else
8983 ld_shlibs=no
8984 fi
8985 ;;
8986
8987 cygwin* | mingw* | pw32* | cegcc*)
8988 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8989 # as there is no search path for DLLs.
8990 hardcode_libdir_flag_spec='-L$libdir'
8991 export_dynamic_flag_spec='$wl--export-all-symbols'
8992 allow_undefined_flag=unsupported
8993 always_export_symbols=no
8994 enable_shared_with_static_runtimes=yes
8995 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'
8996 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8997
8998 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9000 # If the export-symbols file already is a .def file, use it as
9001 # is; otherwise, prepend EXPORTS...
9002 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9003 cp $export_symbols $output_objdir/$soname.def;
9004 else
9005 echo EXPORTS > $output_objdir/$soname.def;
9006 cat $export_symbols >> $output_objdir/$soname.def;
9007 fi~
9008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9009 else
9010 ld_shlibs=no
9011 fi
9012 ;;
9013
9014 haiku*)
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9016 link_all_deplibs=yes
9017 ;;
9018
9019 os2*)
9020 hardcode_libdir_flag_spec='-L$libdir'
9021 hardcode_minus_L=yes
9022 allow_undefined_flag=unsupported
9023 shrext_cmds=.dll
9024 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9025 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9026 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9027 $ECHO EXPORTS >> $output_objdir/$libname.def~
9028 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9030 emximp -o $lib $output_objdir/$libname.def'
9031 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9034 $ECHO EXPORTS >> $output_objdir/$libname.def~
9035 prefix_cmds="$SED"~
9036 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9037 prefix_cmds="$prefix_cmds -e 1d";
9038 fi~
9039 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9040 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9042 emximp -o $lib $output_objdir/$libname.def'
9043 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9044 enable_shared_with_static_runtimes=yes
9045 ;;
9046
9047 interix[3-9]*)
9048 hardcode_direct=no
9049 hardcode_shlibpath_var=no
9050 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9051 export_dynamic_flag_spec='$wl-E'
9052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9053 # Instead, shared libraries are loaded at an image base (0x10000000 by
9054 # default) and relocated if they conflict, which is a slow very memory
9055 # consuming and fragmenting process. To avoid this, we pick a random,
9056 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9057 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9059 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'
9060 ;;
9061
9062 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9063 tmp_diet=no
9064 if test linux-dietlibc = "$host_os"; then
9065 case $cc_basename in
9066 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9067 esac
9068 fi
9069 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9070 && test no = "$tmp_diet"
9071 then
9072 tmp_addflag=' $pic_flag'
9073 tmp_sharedflag='-shared'
9074 case $cc_basename,$host_cpu in
9075 pgcc*) # Portland Group C compiler
9076 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'
9077 tmp_addflag=' $pic_flag'
9078 ;;
9079 pgf77* | pgf90* | pgf95* | pgfortran*)
9080 # Portland Group f77 and f90 compilers
9081 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'
9082 tmp_addflag=' $pic_flag -Mnomain' ;;
9083 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9084 tmp_addflag=' -i_dynamic' ;;
9085 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9086 tmp_addflag=' -i_dynamic -nofor_main' ;;
9087 ifc* | ifort*) # Intel Fortran compiler
9088 tmp_addflag=' -nofor_main' ;;
9089 lf95*) # Lahey Fortran 8.1
9090 whole_archive_flag_spec=
9091 tmp_sharedflag='--shared' ;;
9092 nagfor*) # NAGFOR 5.3
9093 tmp_sharedflag='-Wl,-shared' ;;
9094 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9095 tmp_sharedflag='-qmkshrobj'
9096 tmp_addflag= ;;
9097 nvcc*) # Cuda Compiler Driver 2.2
9098 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'
9099 compiler_needs_object=yes
9100 ;;
9101 esac
9102 case `$CC -V 2>&1 | sed 5q` in
9103 *Sun\ C*) # Sun C 5.9
9104 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'
9105 compiler_needs_object=yes
9106 tmp_sharedflag='-G' ;;
9107 *Sun\ F*) # Sun Fortran 8.3
9108 tmp_sharedflag='-G' ;;
9109 esac
9110 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9111
9112 if test yes = "$supports_anon_versioning"; then
9113 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9114 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9115 echo "local: *; };" >> $output_objdir/$libname.ver~
9116 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9117 fi
9118
9119 case $cc_basename in
9120 tcc*)
9121 export_dynamic_flag_spec='-rdynamic'
9122 ;;
9123 xlf* | bgf* | bgxlf* | mpixlf*)
9124 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9125 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9126 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9127 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9128 if test yes = "$supports_anon_versioning"; then
9129 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9131 echo "local: *; };" >> $output_objdir/$libname.ver~
9132 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9133 fi
9134 ;;
9135 esac
9136 else
9137 ld_shlibs=no
9138 fi
9139 ;;
9140
9141 netbsd*)
9142 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9143 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9144 wlarc=
9145 else
9146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9147 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9148 fi
9149 ;;
9150
9151 solaris*)
9152 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9153 ld_shlibs=no
9154 cat <<_LT_EOF 1>&2
9155
9156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9157 *** create shared libraries on Solaris systems. Therefore, libtool
9158 *** is disabling shared libraries support. We urge you to upgrade GNU
9159 *** binutils to release 2.9.1 or newer. Another option is to modify
9160 *** your PATH or compiler configuration so that the native linker is
9161 *** used, and then restart.
9162
9163 _LT_EOF
9164 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9166 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9167 else
9168 ld_shlibs=no
9169 fi
9170 ;;
9171
9172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9173 case `$LD -v 2>&1` in
9174 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9175 ld_shlibs=no
9176 cat <<_LT_EOF 1>&2
9177
9178 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9179 *** reliably create shared libraries on SCO systems. Therefore, libtool
9180 *** is disabling shared libraries support. We urge you to upgrade GNU
9181 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9182 *** your PATH or compiler configuration so that the native linker is
9183 *** used, and then restart.
9184
9185 _LT_EOF
9186 ;;
9187 *)
9188 # For security reasons, it is highly recommended that you always
9189 # use absolute paths for naming shared libraries, and exclude the
9190 # DT_RUNPATH tag from executables and libraries. But doing so
9191 # requires that you compile everything twice, which is a pain.
9192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9196 else
9197 ld_shlibs=no
9198 fi
9199 ;;
9200 esac
9201 ;;
9202
9203 sunos4*)
9204 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9205 wlarc=
9206 hardcode_direct=yes
9207 hardcode_shlibpath_var=no
9208 ;;
9209
9210 *)
9211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9213 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9214 else
9215 ld_shlibs=no
9216 fi
9217 ;;
9218 esac
9219
9220 if test no = "$ld_shlibs"; then
9221 runpath_var=
9222 hardcode_libdir_flag_spec=
9223 export_dynamic_flag_spec=
9224 whole_archive_flag_spec=
9225 fi
9226 else
9227 # PORTME fill in a description of your system's linker (not GNU ld)
9228 case $host_os in
9229 aix3*)
9230 allow_undefined_flag=unsupported
9231 always_export_symbols=yes
9232 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'
9233 # Note: this linker hardcodes the directories in LIBPATH if there
9234 # are no directories specified by -L.
9235 hardcode_minus_L=yes
9236 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9237 # Neither direct hardcoding nor static linking is supported with a
9238 # broken collect2.
9239 hardcode_direct=unsupported
9240 fi
9241 ;;
9242
9243 aix[4-9]*)
9244 if test ia64 = "$host_cpu"; then
9245 # On IA64, the linker does run time linking by default, so we don't
9246 # have to do anything special.
9247 aix_use_runtimelinking=no
9248 exp_sym_flag='-Bexport'
9249 no_entry_flag=
9250 else
9251 # If we're using GNU nm, then we don't want the "-C" option.
9252 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9253 # Without the "-l" option, or with the "-B" option, AIX nm treats
9254 # weak defined symbols like other global defined symbols, whereas
9255 # GNU nm marks them as "W".
9256 # While the 'weak' keyword is ignored in the Export File, we need
9257 # it in the Import File for the 'aix-soname' feature, so we have
9258 # to replace the "-B" option with "-P" for AIX nm.
9259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9260 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'
9261 else
9262 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'
9263 fi
9264 aix_use_runtimelinking=no
9265
9266 # Test if we are trying to use run time linking or normal
9267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9268 # have runtime linking enabled, and use it for executables.
9269 # For shared libraries, we enable/disable runtime linking
9270 # depending on the kind of the shared library created -
9271 # when "with_aix_soname,aix_use_runtimelinking" is:
9272 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9273 # "aix,yes" lib.so shared, rtl:yes, for executables
9274 # lib.a static archive
9275 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9276 # lib.a(lib.so.V) shared, rtl:no, for executables
9277 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9278 # lib.a(lib.so.V) shared, rtl:no
9279 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9280 # lib.a static archive
9281 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9282 for ld_flag in $LDFLAGS; do
9283 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9284 aix_use_runtimelinking=yes
9285 break
9286 fi
9287 done
9288 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9289 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9290 # so we don't have lib.a shared libs to link our executables.
9291 # We have to force runtime linking in this case.
9292 aix_use_runtimelinking=yes
9293 LDFLAGS="$LDFLAGS -Wl,-brtl"
9294 fi
9295 ;;
9296 esac
9297
9298 exp_sym_flag='-bexport'
9299 no_entry_flag='-bnoentry'
9300 fi
9301
9302 # When large executables or shared objects are built, AIX ld can
9303 # have problems creating the table of contents. If linking a library
9304 # or program results in "error TOC overflow" add -mminimal-toc to
9305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9307
9308 archive_cmds=''
9309 hardcode_direct=yes
9310 hardcode_direct_absolute=yes
9311 hardcode_libdir_separator=':'
9312 link_all_deplibs=yes
9313 file_list_spec='$wl-f,'
9314 case $with_aix_soname,$aix_use_runtimelinking in
9315 aix,*) ;; # traditional, no import file
9316 svr4,* | *,yes) # use import file
9317 # The Import File defines what to hardcode.
9318 hardcode_direct=no
9319 hardcode_direct_absolute=no
9320 ;;
9321 esac
9322
9323 if test yes = "$GCC"; then
9324 case $host_os in aix4.[012]|aix4.[012].*)
9325 # We only want to do this on AIX 4.2 and lower, the check
9326 # below for broken collect2 doesn't work under 4.3+
9327 collect2name=`$CC -print-prog-name=collect2`
9328 if test -f "$collect2name" &&
9329 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9330 then
9331 # We have reworked collect2
9332 :
9333 else
9334 # We have old collect2
9335 hardcode_direct=unsupported
9336 # It fails to find uninstalled libraries when the uninstalled
9337 # path is not listed in the libpath. Setting hardcode_minus_L
9338 # to unsupported forces relinking
9339 hardcode_minus_L=yes
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_libdir_separator=
9342 fi
9343 ;;
9344 esac
9345 shared_flag='-shared'
9346 if test yes = "$aix_use_runtimelinking"; then
9347 shared_flag="$shared_flag "'$wl-G'
9348 fi
9349 # Need to ensure runtime linking is disabled for the traditional
9350 # shared library, or the linker may eventually find shared libraries
9351 # /with/ Import File - we do not want to mix them.
9352 shared_flag_aix='-shared'
9353 shared_flag_svr4='-shared $wl-G'
9354 else
9355 # not using gcc
9356 if test ia64 = "$host_cpu"; then
9357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9358 # chokes on -Wl,-G. The following line is correct:
9359 shared_flag='-G'
9360 else
9361 if test yes = "$aix_use_runtimelinking"; then
9362 shared_flag='$wl-G'
9363 else
9364 shared_flag='$wl-bM:SRE'
9365 fi
9366 shared_flag_aix='$wl-bM:SRE'
9367 shared_flag_svr4='$wl-G'
9368 fi
9369 fi
9370
9371 export_dynamic_flag_spec='$wl-bexpall'
9372 # It seems that -bexpall does not export symbols beginning with
9373 # underscore (_), so it is better to generate a list of symbols to export.
9374 always_export_symbols=yes
9375 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9376 # Warning - without using the other runtime loading flags (-brtl),
9377 # -berok will link without error, but may produce a broken library.
9378 allow_undefined_flag='-berok'
9379 # Determine the default libpath from the value encoded in an
9380 # empty executable.
9381 if test set = "${lt_cv_aix_libpath+set}"; then
9382 aix_libpath=$lt_cv_aix_libpath
9383 else
9384 if ${lt_cv_aix_libpath_+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389
9390 int
9391 main ()
9392 {
9393
9394 ;
9395 return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"; then :
9399
9400 lt_aix_libpath_sed='
9401 /Import File Strings/,/^$/ {
9402 /^0/ {
9403 s/^0 *\([^ ]*\) *$/\1/
9404 p
9405 }
9406 }'
9407 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9408 # Check for a 64-bit object if we didn't find anything.
9409 if test -z "$lt_cv_aix_libpath_"; then
9410 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9411 fi
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9415 if test -z "$lt_cv_aix_libpath_"; then
9416 lt_cv_aix_libpath_=/usr/lib:/lib
9417 fi
9418
9419 fi
9420
9421 aix_libpath=$lt_cv_aix_libpath_
9422 fi
9423
9424 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9425 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
9426 else
9427 if test ia64 = "$host_cpu"; then
9428 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9429 allow_undefined_flag="-z nodefs"
9430 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"
9431 else
9432 # Determine the default libpath from the value encoded in an
9433 # empty executable.
9434 if test set = "${lt_cv_aix_libpath+set}"; then
9435 aix_libpath=$lt_cv_aix_libpath
9436 else
9437 if ${lt_cv_aix_libpath_+:} false; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9442
9443 int
9444 main ()
9445 {
9446
9447 ;
9448 return 0;
9449 }
9450 _ACEOF
9451 if ac_fn_c_try_link "$LINENO"; then :
9452
9453 lt_aix_libpath_sed='
9454 /Import File Strings/,/^$/ {
9455 /^0/ {
9456 s/^0 *\([^ ]*\) *$/\1/
9457 p
9458 }
9459 }'
9460 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461 # Check for a 64-bit object if we didn't find anything.
9462 if test -z "$lt_cv_aix_libpath_"; then
9463 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9464 fi
9465 fi
9466 rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 if test -z "$lt_cv_aix_libpath_"; then
9469 lt_cv_aix_libpath_=/usr/lib:/lib
9470 fi
9471
9472 fi
9473
9474 aix_libpath=$lt_cv_aix_libpath_
9475 fi
9476
9477 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9478 # Warning - without using the other run time loading flags,
9479 # -berok will link without error, but may produce a broken library.
9480 no_undefined_flag=' $wl-bernotok'
9481 allow_undefined_flag=' $wl-berok'
9482 if test yes = "$with_gnu_ld"; then
9483 # We only use this code for GNU lds that support --whole-archive.
9484 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9485 else
9486 # Exported symbols can be pulled into shared objects from archives
9487 whole_archive_flag_spec='$convenience'
9488 fi
9489 archive_cmds_need_lc=yes
9490 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9491 # -brtl affects multiple linker settings, -berok does not and is overridden later
9492 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9493 if test svr4 != "$with_aix_soname"; then
9494 # This is similar to how AIX traditionally builds its shared libraries.
9495 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'
9496 fi
9497 if test aix != "$with_aix_soname"; then
9498 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'
9499 else
9500 # used by -dlpreopen to get the symbols
9501 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9502 fi
9503 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9504 fi
9505 fi
9506 ;;
9507
9508 amigaos*)
9509 case $host_cpu in
9510 powerpc)
9511 # see comment about AmigaOS4 .so support
9512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9513 archive_expsym_cmds=''
9514 ;;
9515 m68k)
9516 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)'
9517 hardcode_libdir_flag_spec='-L$libdir'
9518 hardcode_minus_L=yes
9519 ;;
9520 esac
9521 ;;
9522
9523 bsdi[45]*)
9524 export_dynamic_flag_spec=-rdynamic
9525 ;;
9526
9527 cygwin* | mingw* | pw32* | cegcc*)
9528 # When not using gcc, we currently assume that we are using
9529 # Microsoft Visual C++.
9530 # hardcode_libdir_flag_spec is actually meaningless, as there is
9531 # no search path for DLLs.
9532 case $cc_basename in
9533 cl*)
9534 # Native MSVC
9535 hardcode_libdir_flag_spec=' '
9536 allow_undefined_flag=unsupported
9537 always_export_symbols=yes
9538 file_list_spec='@'
9539 # Tell ltmain to make .lib files, not .a files.
9540 libext=lib
9541 # Tell ltmain to make .dll files, not .so files.
9542 shrext_cmds=.dll
9543 # FIXME: Setting linknames here is a bad hack.
9544 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9545 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9546 cp "$export_symbols" "$output_objdir/$soname.def";
9547 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9548 else
9549 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9550 fi~
9551 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9552 linknames='
9553 # The linker will not automatically build a static lib if we build a DLL.
9554 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9555 enable_shared_with_static_runtimes=yes
9556 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9558 # Don't use ranlib
9559 old_postinstall_cmds='chmod 644 $oldlib'
9560 postlink_cmds='lt_outputfile="@OUTPUT@"~
9561 lt_tool_outputfile="@TOOL_OUTPUT@"~
9562 case $lt_outputfile in
9563 *.exe|*.EXE) ;;
9564 *)
9565 lt_outputfile=$lt_outputfile.exe
9566 lt_tool_outputfile=$lt_tool_outputfile.exe
9567 ;;
9568 esac~
9569 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9570 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9571 $RM "$lt_outputfile.manifest";
9572 fi'
9573 ;;
9574 *)
9575 # Assume MSVC wrapper
9576 hardcode_libdir_flag_spec=' '
9577 allow_undefined_flag=unsupported
9578 # Tell ltmain to make .lib files, not .a files.
9579 libext=lib
9580 # Tell ltmain to make .dll files, not .so files.
9581 shrext_cmds=.dll
9582 # FIXME: Setting linknames here is a bad hack.
9583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9584 # The linker will automatically build a .lib file if we build a DLL.
9585 old_archive_from_new_cmds='true'
9586 # FIXME: Should let the user specify the lib program.
9587 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9588 enable_shared_with_static_runtimes=yes
9589 ;;
9590 esac
9591 ;;
9592
9593 darwin* | rhapsody*)
9594
9595
9596 archive_cmds_need_lc=no
9597 hardcode_direct=no
9598 hardcode_automatic=yes
9599 hardcode_shlibpath_var=unsupported
9600 if test yes = "$lt_cv_ld_force_load"; then
9601 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\"`'
9602
9603 else
9604 whole_archive_flag_spec=''
9605 fi
9606 link_all_deplibs=yes
9607 allow_undefined_flag=$_lt_dar_allow_undefined
9608 case $cc_basename in
9609 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9610 *) _lt_dar_can_shared=$GCC ;;
9611 esac
9612 if test yes = "$_lt_dar_can_shared"; then
9613 output_verbose_link_cmd=func_echo_all
9614 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9615 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9616 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"
9617 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"
9618
9619 else
9620 ld_shlibs=no
9621 fi
9622
9623 ;;
9624
9625 dgux*)
9626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 hardcode_shlibpath_var=no
9629 ;;
9630
9631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9632 # support. Future versions do this automatically, but an explicit c++rt0.o
9633 # does not break anything, and helps significantly (at the cost of a little
9634 # extra space).
9635 freebsd2.2*)
9636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9637 hardcode_libdir_flag_spec='-R$libdir'
9638 hardcode_direct=yes
9639 hardcode_shlibpath_var=no
9640 ;;
9641
9642 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9643 freebsd2.*)
9644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9645 hardcode_direct=yes
9646 hardcode_minus_L=yes
9647 hardcode_shlibpath_var=no
9648 ;;
9649
9650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9651 freebsd* | dragonfly*)
9652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9653 hardcode_libdir_flag_spec='-R$libdir'
9654 hardcode_direct=yes
9655 hardcode_shlibpath_var=no
9656 ;;
9657
9658 hpux9*)
9659 if test yes = "$GCC"; then
9660 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'
9661 else
9662 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'
9663 fi
9664 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9665 hardcode_libdir_separator=:
9666 hardcode_direct=yes
9667
9668 # hardcode_minus_L: Not really in the search PATH,
9669 # but as the default location of the library.
9670 hardcode_minus_L=yes
9671 export_dynamic_flag_spec='$wl-E'
9672 ;;
9673
9674 hpux10*)
9675 if test yes,no = "$GCC,$with_gnu_ld"; then
9676 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9677 else
9678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9679 fi
9680 if test no = "$with_gnu_ld"; then
9681 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9682 hardcode_libdir_separator=:
9683 hardcode_direct=yes
9684 hardcode_direct_absolute=yes
9685 export_dynamic_flag_spec='$wl-E'
9686 # hardcode_minus_L: Not really in the search PATH,
9687 # but as the default location of the library.
9688 hardcode_minus_L=yes
9689 fi
9690 ;;
9691
9692 hpux11*)
9693 if test yes,no = "$GCC,$with_gnu_ld"; then
9694 case $host_cpu in
9695 hppa*64*)
9696 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 ;;
9698 ia64*)
9699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9700 ;;
9701 *)
9702 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9703 ;;
9704 esac
9705 else
9706 case $host_cpu in
9707 hppa*64*)
9708 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 ;;
9710 ia64*)
9711 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9712 ;;
9713 *)
9714
9715 # Older versions of the 11.00 compiler do not understand -b yet
9716 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9718 $as_echo_n "checking if $CC understands -b... " >&6; }
9719 if ${lt_cv_prog_compiler__b+:} false; then :
9720 $as_echo_n "(cached) " >&6
9721 else
9722 lt_cv_prog_compiler__b=no
9723 save_LDFLAGS=$LDFLAGS
9724 LDFLAGS="$LDFLAGS -b"
9725 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9726 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9727 # The linker can only warn and ignore the option if not recognized
9728 # So say no if there are warnings
9729 if test -s conftest.err; then
9730 # Append any errors to the config.log.
9731 cat conftest.err 1>&5
9732 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9734 if diff conftest.exp conftest.er2 >/dev/null; then
9735 lt_cv_prog_compiler__b=yes
9736 fi
9737 else
9738 lt_cv_prog_compiler__b=yes
9739 fi
9740 fi
9741 $RM -r conftest*
9742 LDFLAGS=$save_LDFLAGS
9743
9744 fi
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9746 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9747
9748 if test yes = "$lt_cv_prog_compiler__b"; then
9749 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9750 else
9751 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9752 fi
9753
9754 ;;
9755 esac
9756 fi
9757 if test no = "$with_gnu_ld"; then
9758 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9759 hardcode_libdir_separator=:
9760
9761 case $host_cpu in
9762 hppa*64*|ia64*)
9763 hardcode_direct=no
9764 hardcode_shlibpath_var=no
9765 ;;
9766 *)
9767 hardcode_direct=yes
9768 hardcode_direct_absolute=yes
9769 export_dynamic_flag_spec='$wl-E'
9770
9771 # hardcode_minus_L: Not really in the search PATH,
9772 # but as the default location of the library.
9773 hardcode_minus_L=yes
9774 ;;
9775 esac
9776 fi
9777 ;;
9778
9779 irix5* | irix6* | nonstopux*)
9780 if test yes = "$GCC"; then
9781 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'
9782 # Try to use the -exported_symbol ld option, if it does not
9783 # work, assume that -exports_file does not work either and
9784 # implicitly export all symbols.
9785 # This should be the same for all languages, so no per-tag cache variable.
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9787 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9788 if ${lt_cv_irix_exported_symbol+:} false; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 save_LDFLAGS=$LDFLAGS
9792 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9795 int foo (void) { return 0; }
9796 _ACEOF
9797 if ac_fn_c_try_link "$LINENO"; then :
9798 lt_cv_irix_exported_symbol=yes
9799 else
9800 lt_cv_irix_exported_symbol=no
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 LDFLAGS=$save_LDFLAGS
9805 fi
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9807 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9808 if test yes = "$lt_cv_irix_exported_symbol"; then
9809 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'
9810 fi
9811 else
9812 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'
9813 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'
9814 fi
9815 archive_cmds_need_lc='no'
9816 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9817 hardcode_libdir_separator=:
9818 inherit_rpath=yes
9819 link_all_deplibs=yes
9820 ;;
9821
9822 linux*)
9823 case $cc_basename in
9824 tcc*)
9825 # Fabrice Bellard et al's Tiny C Compiler
9826 ld_shlibs=yes
9827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9828 ;;
9829 esac
9830 ;;
9831
9832 netbsd*)
9833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9835 else
9836 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9837 fi
9838 hardcode_libdir_flag_spec='-R$libdir'
9839 hardcode_direct=yes
9840 hardcode_shlibpath_var=no
9841 ;;
9842
9843 newsos6)
9844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_direct=yes
9846 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9847 hardcode_libdir_separator=:
9848 hardcode_shlibpath_var=no
9849 ;;
9850
9851 *nto* | *qnx*)
9852 ;;
9853
9854 openbsd* | bitrig*)
9855 if test -f /usr/libexec/ld.so; then
9856 hardcode_direct=yes
9857 hardcode_shlibpath_var=no
9858 hardcode_direct_absolute=yes
9859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9860 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9861 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9862 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9863 export_dynamic_flag_spec='$wl-E'
9864 else
9865 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9866 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9867 fi
9868 else
9869 ld_shlibs=no
9870 fi
9871 ;;
9872
9873 os2*)
9874 hardcode_libdir_flag_spec='-L$libdir'
9875 hardcode_minus_L=yes
9876 allow_undefined_flag=unsupported
9877 shrext_cmds=.dll
9878 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9879 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9880 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9881 $ECHO EXPORTS >> $output_objdir/$libname.def~
9882 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9883 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9884 emximp -o $lib $output_objdir/$libname.def'
9885 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9886 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9887 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9888 $ECHO EXPORTS >> $output_objdir/$libname.def~
9889 prefix_cmds="$SED"~
9890 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9891 prefix_cmds="$prefix_cmds -e 1d";
9892 fi~
9893 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9894 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9895 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9896 emximp -o $lib $output_objdir/$libname.def'
9897 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9898 enable_shared_with_static_runtimes=yes
9899 ;;
9900
9901 osf3*)
9902 if test yes = "$GCC"; then
9903 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9904 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'
9905 else
9906 allow_undefined_flag=' -expect_unresolved \*'
9907 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'
9908 fi
9909 archive_cmds_need_lc='no'
9910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9911 hardcode_libdir_separator=:
9912 ;;
9913
9914 osf4* | osf5*) # as osf3* with the addition of -msym flag
9915 if test yes = "$GCC"; then
9916 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9917 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'
9918 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9919 else
9920 allow_undefined_flag=' -expect_unresolved \*'
9921 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'
9922 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~
9923 $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'
9924
9925 # Both c and cxx compiler support -rpath directly
9926 hardcode_libdir_flag_spec='-rpath $libdir'
9927 fi
9928 archive_cmds_need_lc='no'
9929 hardcode_libdir_separator=:
9930 ;;
9931
9932 solaris*)
9933 no_undefined_flag=' -z defs'
9934 if test yes = "$GCC"; then
9935 wlarc='$wl'
9936 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9938 $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'
9939 else
9940 case `$CC -V 2>&1` in
9941 *"Compilers 5.0"*)
9942 wlarc=''
9943 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9945 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9946 ;;
9947 *)
9948 wlarc='$wl'
9949 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9950 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9951 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9952 ;;
9953 esac
9954 fi
9955 hardcode_libdir_flag_spec='-R$libdir'
9956 hardcode_shlibpath_var=no
9957 case $host_os in
9958 solaris2.[0-5] | solaris2.[0-5].*) ;;
9959 *)
9960 # The compiler driver will combine and reorder linker options,
9961 # but understands '-z linker_flag'. GCC discards it without '$wl',
9962 # but is careful enough not to reorder.
9963 # Supported since Solaris 2.6 (maybe 2.5.1?)
9964 if test yes = "$GCC"; then
9965 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9966 else
9967 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9968 fi
9969 ;;
9970 esac
9971 link_all_deplibs=yes
9972 ;;
9973
9974 sunos4*)
9975 if test sequent = "$host_vendor"; then
9976 # Use $CC to link under sequent, because it throws in some extra .o
9977 # files that make .init and .fini sections work.
9978 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9979 else
9980 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9981 fi
9982 hardcode_libdir_flag_spec='-L$libdir'
9983 hardcode_direct=yes
9984 hardcode_minus_L=yes
9985 hardcode_shlibpath_var=no
9986 ;;
9987
9988 sysv4)
9989 case $host_vendor in
9990 sni)
9991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992 hardcode_direct=yes # is this really true???
9993 ;;
9994 siemens)
9995 ## LD is ld it makes a PLAMLIB
9996 ## CC just makes a GrossModule.
9997 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9998 reload_cmds='$CC -r -o $output$reload_objs'
9999 hardcode_direct=no
10000 ;;
10001 motorola)
10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10004 ;;
10005 esac
10006 runpath_var='LD_RUN_PATH'
10007 hardcode_shlibpath_var=no
10008 ;;
10009
10010 sysv4.3*)
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_shlibpath_var=no
10013 export_dynamic_flag_spec='-Bexport'
10014 ;;
10015
10016 sysv4*MP*)
10017 if test -d /usr/nec; then
10018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_shlibpath_var=no
10020 runpath_var=LD_RUN_PATH
10021 hardcode_runpath_var=yes
10022 ld_shlibs=yes
10023 fi
10024 ;;
10025
10026 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10027 no_undefined_flag='$wl-z,text'
10028 archive_cmds_need_lc=no
10029 hardcode_shlibpath_var=no
10030 runpath_var='LD_RUN_PATH'
10031
10032 if test yes = "$GCC"; then
10033 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 else
10036 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10037 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 fi
10039 ;;
10040
10041 sysv5* | sco3.2v5* | sco5v6*)
10042 # Note: We CANNOT use -z defs as we might desire, because we do not
10043 # link with -lc, and that would cause any symbols used from libc to
10044 # always be unresolved, which means just about no library would
10045 # ever link correctly. If we're not using GNU ld we use -z text
10046 # though, which does catch some bad symbols but isn't as heavy-handed
10047 # as -z defs.
10048 no_undefined_flag='$wl-z,text'
10049 allow_undefined_flag='$wl-z,nodefs'
10050 archive_cmds_need_lc=no
10051 hardcode_shlibpath_var=no
10052 hardcode_libdir_flag_spec='$wl-R,$libdir'
10053 hardcode_libdir_separator=':'
10054 link_all_deplibs=yes
10055 export_dynamic_flag_spec='$wl-Bexport'
10056 runpath_var='LD_RUN_PATH'
10057
10058 if test yes = "$GCC"; then
10059 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 else
10062 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 fi
10065 ;;
10066
10067 uts4*)
10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 hardcode_shlibpath_var=no
10071 ;;
10072
10073 *)
10074 ld_shlibs=no
10075 ;;
10076 esac
10077
10078 if test sni = "$host_vendor"; then
10079 case $host in
10080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10081 export_dynamic_flag_spec='$wl-Blargedynsym'
10082 ;;
10083 esac
10084 fi
10085 fi
10086
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10088 $as_echo "$ld_shlibs" >&6; }
10089 test no = "$ld_shlibs" && can_build_shared=no
10090
10091 with_gnu_ld=$with_gnu_ld
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107 #
10108 # Do we need to explicitly link libc?
10109 #
10110 case "x$archive_cmds_need_lc" in
10111 x|xyes)
10112 # Assume -lc should be added
10113 archive_cmds_need_lc=yes
10114
10115 if test yes,yes = "$GCC,$enable_shared"; then
10116 case $archive_cmds in
10117 *'~'*)
10118 # FIXME: we may have to deal with multi-command sequences.
10119 ;;
10120 '$CC '*)
10121 # Test whether the compiler implicitly links with -lc since on some
10122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10123 # to ld, don't add -lc before -lgcc.
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10125 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10126 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10127 $as_echo_n "(cached) " >&6
10128 else
10129 $RM conftest*
10130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10131
10132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10133 (eval $ac_compile) 2>&5
10134 ac_status=$?
10135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10136 test $ac_status = 0; } 2>conftest.err; then
10137 soname=conftest
10138 lib=conftest
10139 libobjs=conftest.$ac_objext
10140 deplibs=
10141 wl=$lt_prog_compiler_wl
10142 pic_flag=$lt_prog_compiler_pic
10143 compiler_flags=-v
10144 linker_flags=-v
10145 verstring=
10146 output_objdir=.
10147 libname=conftest
10148 lt_save_allow_undefined_flag=$allow_undefined_flag
10149 allow_undefined_flag=
10150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10151 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10152 ac_status=$?
10153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10154 test $ac_status = 0; }
10155 then
10156 lt_cv_archive_cmds_need_lc=no
10157 else
10158 lt_cv_archive_cmds_need_lc=yes
10159 fi
10160 allow_undefined_flag=$lt_save_allow_undefined_flag
10161 else
10162 cat conftest.err 1>&5
10163 fi
10164 $RM conftest*
10165
10166 fi
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10168 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10169 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10170 ;;
10171 esac
10172 fi
10173 ;;
10174 esac
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10328 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10329
10330 if test yes = "$GCC"; then
10331 case $host_os in
10332 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10333 *) lt_awk_arg='/^libraries:/' ;;
10334 esac
10335 case $host_os in
10336 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10337 *) lt_sed_strip_eq='s|=/|/|g' ;;
10338 esac
10339 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10340 case $lt_search_path_spec in
10341 *\;*)
10342 # if the path contains ";" then we assume it to be the separator
10343 # otherwise default to the standard path separator (i.e. ":") - it is
10344 # assumed that no part of a normal pathname contains ";" but that should
10345 # okay in the real world where ";" in dirpaths is itself problematic.
10346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10347 ;;
10348 *)
10349 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10350 ;;
10351 esac
10352 # Ok, now we have the path, separated by spaces, we can step through it
10353 # and add multilib dir if necessary...
10354 lt_tmp_lt_search_path_spec=
10355 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10356 # ...but if some path component already ends with the multilib dir we assume
10357 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10358 case "$lt_multi_os_dir; $lt_search_path_spec " in
10359 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10360 lt_multi_os_dir=
10361 ;;
10362 esac
10363 for lt_sys_path in $lt_search_path_spec; do
10364 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10366 elif test -n "$lt_multi_os_dir"; then
10367 test -d "$lt_sys_path" && \
10368 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10369 fi
10370 done
10371 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10372 BEGIN {RS = " "; FS = "/|\n";} {
10373 lt_foo = "";
10374 lt_count = 0;
10375 for (lt_i = NF; lt_i > 0; lt_i--) {
10376 if ($lt_i != "" && $lt_i != ".") {
10377 if ($lt_i == "..") {
10378 lt_count++;
10379 } else {
10380 if (lt_count == 0) {
10381 lt_foo = "/" $lt_i lt_foo;
10382 } else {
10383 lt_count--;
10384 }
10385 }
10386 }
10387 }
10388 if (lt_foo != "") { lt_freq[lt_foo]++; }
10389 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10390 }'`
10391 # AWK program above erroneously prepends '/' to C:/dos/paths
10392 # for these hosts.
10393 case $host_os in
10394 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10395 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10396 esac
10397 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10398 else
10399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10400 fi
10401 library_names_spec=
10402 libname_spec='lib$name'
10403 soname_spec=
10404 shrext_cmds=.so
10405 postinstall_cmds=
10406 postuninstall_cmds=
10407 finish_cmds=
10408 finish_eval=
10409 shlibpath_var=
10410 shlibpath_overrides_runpath=unknown
10411 version_type=none
10412 dynamic_linker="$host_os ld.so"
10413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10414 need_lib_prefix=unknown
10415 hardcode_into_libs=no
10416
10417 # when you set need_version to no, make sure it does not cause -set_version
10418 # flags to be left without arguments
10419 need_version=unknown
10420
10421
10422
10423 case $host_os in
10424 aix3*)
10425 version_type=linux # correct to gnu/linux during the next big refactor
10426 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10427 shlibpath_var=LIBPATH
10428
10429 # AIX 3 has no versioning support, so we append a major version to the name.
10430 soname_spec='$libname$release$shared_ext$major'
10431 ;;
10432
10433 aix[4-9]*)
10434 version_type=linux # correct to gnu/linux during the next big refactor
10435 need_lib_prefix=no
10436 need_version=no
10437 hardcode_into_libs=yes
10438 if test ia64 = "$host_cpu"; then
10439 # AIX 5 supports IA64
10440 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 else
10443 # With GCC up to 2.95.x, collect2 would create an import file
10444 # for dependence libraries. The import file would start with
10445 # the line '#! .'. This would cause the generated library to
10446 # depend on '.', always an invalid library. This was fixed in
10447 # development snapshots of GCC prior to 3.0.
10448 case $host_os in
10449 aix4 | aix4.[01] | aix4.[01].*)
10450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10451 echo ' yes '
10452 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10453 :
10454 else
10455 can_build_shared=no
10456 fi
10457 ;;
10458 esac
10459 # Using Import Files as archive members, it is possible to support
10460 # filename-based versioning of shared library archives on AIX. While
10461 # this would work for both with and without runtime linking, it will
10462 # prevent static linking of such archives. So we do filename-based
10463 # shared library versioning with .so extension only, which is used
10464 # when both runtime linking and shared linking is enabled.
10465 # Unfortunately, runtime linking may impact performance, so we do
10466 # not want this to be the default eventually. Also, we use the
10467 # versioned .so libs for executables only if there is the -brtl
10468 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10469 # To allow for filename-based versioning support, we need to create
10470 # libNAME.so.V as an archive file, containing:
10471 # *) an Import File, referring to the versioned filename of the
10472 # archive as well as the shared archive member, telling the
10473 # bitwidth (32 or 64) of that shared object, and providing the
10474 # list of exported symbols of that shared object, eventually
10475 # decorated with the 'weak' keyword
10476 # *) the shared object with the F_LOADONLY flag set, to really avoid
10477 # it being seen by the linker.
10478 # At run time we better use the real file rather than another symlink,
10479 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10480
10481 case $with_aix_soname,$aix_use_runtimelinking in
10482 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10483 # soname into executable. Probably we can add versioning support to
10484 # collect2, so additional links can be useful in future.
10485 aix,yes) # traditional libtool
10486 dynamic_linker='AIX unversionable lib.so'
10487 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10488 # instead of lib<name>.a to let people know that these are not
10489 # typical AIX shared libraries.
10490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10491 ;;
10492 aix,no) # traditional AIX only
10493 dynamic_linker='AIX lib.a(lib.so.V)'
10494 # We preserve .a as extension for shared libraries through AIX4.2
10495 # and later when we are not doing run time linking.
10496 library_names_spec='$libname$release.a $libname.a'
10497 soname_spec='$libname$release$shared_ext$major'
10498 ;;
10499 svr4,*) # full svr4 only
10500 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10501 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10502 # We do not specify a path in Import Files, so LIBPATH fires.
10503 shlibpath_overrides_runpath=yes
10504 ;;
10505 *,yes) # both, prefer svr4
10506 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10507 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10508 # unpreferred sharedlib libNAME.a needs extra handling
10509 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"'
10510 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"'
10511 # We do not specify a path in Import Files, so LIBPATH fires.
10512 shlibpath_overrides_runpath=yes
10513 ;;
10514 *,no) # both, prefer aix
10515 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10516 library_names_spec='$libname$release.a $libname.a'
10517 soname_spec='$libname$release$shared_ext$major'
10518 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10519 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)'
10520 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"'
10521 ;;
10522 esac
10523 shlibpath_var=LIBPATH
10524 fi
10525 ;;
10526
10527 amigaos*)
10528 case $host_cpu in
10529 powerpc)
10530 # Since July 2007 AmigaOS4 officially supports .so libraries.
10531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10533 ;;
10534 m68k)
10535 library_names_spec='$libname.ixlibrary $libname.a'
10536 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10537 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'
10538 ;;
10539 esac
10540 ;;
10541
10542 beos*)
10543 library_names_spec='$libname$shared_ext'
10544 dynamic_linker="$host_os ld.so"
10545 shlibpath_var=LIBRARY_PATH
10546 ;;
10547
10548 bsdi[45]*)
10549 version_type=linux # correct to gnu/linux during the next big refactor
10550 need_version=no
10551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10552 soname_spec='$libname$release$shared_ext$major'
10553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10557 # the default ld.so.conf also contains /usr/contrib/lib and
10558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10559 # libtool to hard-code these into programs
10560 ;;
10561
10562 cygwin* | mingw* | pw32* | cegcc*)
10563 version_type=windows
10564 shrext_cmds=.dll
10565 need_version=no
10566 need_lib_prefix=no
10567
10568 case $GCC,$cc_basename in
10569 yes,*)
10570 # gcc
10571 library_names_spec='$libname.dll.a'
10572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10573 postinstall_cmds='base_file=`basename \$file`~
10574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10575 dldir=$destdir/`dirname \$dlpath`~
10576 test -d \$dldir || mkdir -p \$dldir~
10577 $install_prog $dir/$dlname \$dldir/$dlname~
10578 chmod a+x \$dldir/$dlname~
10579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10581 fi'
10582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10583 dlpath=$dir/\$dldll~
10584 $RM \$dlpath'
10585 shlibpath_overrides_runpath=yes
10586
10587 case $host_os in
10588 cygwin*)
10589 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10590 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10591
10592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10593 ;;
10594 mingw* | cegcc*)
10595 # MinGW DLLs use traditional 'lib' prefix
10596 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10597 ;;
10598 pw32*)
10599 # pw32 DLLs use 'pw' prefix rather than 'lib'
10600 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10601 ;;
10602 esac
10603 dynamic_linker='Win32 ld.exe'
10604 ;;
10605
10606 *,cl*)
10607 # Native MSVC
10608 libname_spec='$name'
10609 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10610 library_names_spec='$libname.dll.lib'
10611
10612 case $build_os in
10613 mingw*)
10614 sys_lib_search_path_spec=
10615 lt_save_ifs=$IFS
10616 IFS=';'
10617 for lt_path in $LIB
10618 do
10619 IFS=$lt_save_ifs
10620 # Let DOS variable expansion print the short 8.3 style file name.
10621 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10622 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10623 done
10624 IFS=$lt_save_ifs
10625 # Convert to MSYS style.
10626 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10627 ;;
10628 cygwin*)
10629 # Convert to unix form, then to dos form, then back to unix form
10630 # but this time dos style (no spaces!) so that the unix form looks
10631 # like /cygdrive/c/PROGRA~1:/cygdr...
10632 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10633 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10634 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10635 ;;
10636 *)
10637 sys_lib_search_path_spec=$LIB
10638 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10639 # It is most probably a Windows format PATH.
10640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10641 else
10642 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10643 fi
10644 # FIXME: find the short name or the path components, as spaces are
10645 # common. (e.g. "Program Files" -> "PROGRA~1")
10646 ;;
10647 esac
10648
10649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10650 postinstall_cmds='base_file=`basename \$file`~
10651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10652 dldir=$destdir/`dirname \$dlpath`~
10653 test -d \$dldir || mkdir -p \$dldir~
10654 $install_prog $dir/$dlname \$dldir/$dlname'
10655 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10656 dlpath=$dir/\$dldll~
10657 $RM \$dlpath'
10658 shlibpath_overrides_runpath=yes
10659 dynamic_linker='Win32 link.exe'
10660 ;;
10661
10662 *)
10663 # Assume MSVC wrapper
10664 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10665 dynamic_linker='Win32 ld.exe'
10666 ;;
10667 esac
10668 # FIXME: first we should search . and the directory the executable is in
10669 shlibpath_var=PATH
10670 ;;
10671
10672 darwin* | rhapsody*)
10673 dynamic_linker="$host_os dyld"
10674 version_type=darwin
10675 need_lib_prefix=no
10676 need_version=no
10677 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10678 soname_spec='$libname$release$major$shared_ext'
10679 shlibpath_overrides_runpath=yes
10680 shlibpath_var=DYLD_LIBRARY_PATH
10681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10682
10683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10685 ;;
10686
10687 dgux*)
10688 version_type=linux # correct to gnu/linux during the next big refactor
10689 need_lib_prefix=no
10690 need_version=no
10691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10692 soname_spec='$libname$release$shared_ext$major'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 ;;
10695
10696 freebsd* | dragonfly*)
10697 # DragonFly does not have aout. When/if they implement a new
10698 # versioning mechanism, adjust this.
10699 if test -x /usr/bin/objformat; then
10700 objformat=`/usr/bin/objformat`
10701 else
10702 case $host_os in
10703 freebsd[23].*) objformat=aout ;;
10704 *) objformat=elf ;;
10705 esac
10706 fi
10707 version_type=freebsd-$objformat
10708 case $version_type in
10709 freebsd-elf*)
10710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10711 soname_spec='$libname$release$shared_ext$major'
10712 need_version=no
10713 need_lib_prefix=no
10714 ;;
10715 freebsd-*)
10716 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10717 need_version=yes
10718 ;;
10719 esac
10720 shlibpath_var=LD_LIBRARY_PATH
10721 case $host_os in
10722 freebsd2.*)
10723 shlibpath_overrides_runpath=yes
10724 ;;
10725 freebsd3.[01]* | freebsdelf3.[01]*)
10726 shlibpath_overrides_runpath=yes
10727 hardcode_into_libs=yes
10728 ;;
10729 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10730 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10731 shlibpath_overrides_runpath=no
10732 hardcode_into_libs=yes
10733 ;;
10734 *) # from 4.6 on, and DragonFly
10735 shlibpath_overrides_runpath=yes
10736 hardcode_into_libs=yes
10737 ;;
10738 esac
10739 ;;
10740
10741 haiku*)
10742 version_type=linux # correct to gnu/linux during the next big refactor
10743 need_lib_prefix=no
10744 need_version=no
10745 dynamic_linker="$host_os runtime_loader"
10746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10747 soname_spec='$libname$release$shared_ext$major'
10748 shlibpath_var=LIBRARY_PATH
10749 shlibpath_overrides_runpath=no
10750 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10751 hardcode_into_libs=yes
10752 ;;
10753
10754 hpux9* | hpux10* | hpux11*)
10755 # Give a soname corresponding to the major version so that dld.sl refuses to
10756 # link against other versions.
10757 version_type=sunos
10758 need_lib_prefix=no
10759 need_version=no
10760 case $host_cpu in
10761 ia64*)
10762 shrext_cmds='.so'
10763 hardcode_into_libs=yes
10764 dynamic_linker="$host_os dld.so"
10765 shlibpath_var=LD_LIBRARY_PATH
10766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10768 soname_spec='$libname$release$shared_ext$major'
10769 if test 32 = "$HPUX_IA64_MODE"; then
10770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10771 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10772 else
10773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10774 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10775 fi
10776 ;;
10777 hppa*64*)
10778 shrext_cmds='.sl'
10779 hardcode_into_libs=yes
10780 dynamic_linker="$host_os dld.sl"
10781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10784 soname_spec='$libname$release$shared_ext$major'
10785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10787 ;;
10788 *)
10789 shrext_cmds='.sl'
10790 dynamic_linker="$host_os dld.sl"
10791 shlibpath_var=SHLIB_PATH
10792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10794 soname_spec='$libname$release$shared_ext$major'
10795 ;;
10796 esac
10797 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10798 postinstall_cmds='chmod 555 $lib'
10799 # or fails outright, so override atomically:
10800 install_override_mode=555
10801 ;;
10802
10803 interix[3-9]*)
10804 version_type=linux # correct to gnu/linux during the next big refactor
10805 need_lib_prefix=no
10806 need_version=no
10807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10808 soname_spec='$libname$release$shared_ext$major'
10809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10810 shlibpath_var=LD_LIBRARY_PATH
10811 shlibpath_overrides_runpath=no
10812 hardcode_into_libs=yes
10813 ;;
10814
10815 irix5* | irix6* | nonstopux*)
10816 case $host_os in
10817 nonstopux*) version_type=nonstopux ;;
10818 *)
10819 if test yes = "$lt_cv_prog_gnu_ld"; then
10820 version_type=linux # correct to gnu/linux during the next big refactor
10821 else
10822 version_type=irix
10823 fi ;;
10824 esac
10825 need_lib_prefix=no
10826 need_version=no
10827 soname_spec='$libname$release$shared_ext$major'
10828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10829 case $host_os in
10830 irix5* | nonstopux*)
10831 libsuff= shlibsuff=
10832 ;;
10833 *)
10834 case $LD in # libtool.m4 will add one of these switches to LD
10835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10836 libsuff= shlibsuff= libmagic=32-bit;;
10837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10838 libsuff=32 shlibsuff=N32 libmagic=N32;;
10839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10841 *) libsuff= shlibsuff= libmagic=never-match;;
10842 esac
10843 ;;
10844 esac
10845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10846 shlibpath_overrides_runpath=no
10847 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10848 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10849 hardcode_into_libs=yes
10850 ;;
10851
10852 # No shared lib support for Linux oldld, aout, or coff.
10853 linux*oldld* | linux*aout* | linux*coff*)
10854 dynamic_linker=no
10855 ;;
10856
10857 linux*android*)
10858 version_type=none # Android doesn't support versioned libraries.
10859 need_lib_prefix=no
10860 need_version=no
10861 library_names_spec='$libname$release$shared_ext'
10862 soname_spec='$libname$release$shared_ext'
10863 finish_cmds=
10864 shlibpath_var=LD_LIBRARY_PATH
10865 shlibpath_overrides_runpath=yes
10866
10867 # This implies no fast_install, which is unacceptable.
10868 # Some rework will be needed to allow for fast_install
10869 # before this can be enabled.
10870 hardcode_into_libs=yes
10871
10872 dynamic_linker='Android linker'
10873 # Don't embed -rpath directories since the linker doesn't support them.
10874 hardcode_libdir_flag_spec='-L$libdir'
10875 ;;
10876
10877 # This must be glibc/ELF.
10878 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10879 version_type=linux # correct to gnu/linux during the next big refactor
10880 need_lib_prefix=no
10881 need_version=no
10882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10883 soname_spec='$libname$release$shared_ext$major'
10884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=no
10887
10888 # Some binutils ld are patched to set DT_RUNPATH
10889 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 lt_cv_shlibpath_overrides_runpath=no
10893 save_LDFLAGS=$LDFLAGS
10894 save_libdir=$libdir
10895 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10896 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10899
10900 int
10901 main ()
10902 {
10903
10904 ;
10905 return 0;
10906 }
10907 _ACEOF
10908 if ac_fn_c_try_link "$LINENO"; then :
10909 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10910 lt_cv_shlibpath_overrides_runpath=yes
10911 fi
10912 fi
10913 rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915 LDFLAGS=$save_LDFLAGS
10916 libdir=$save_libdir
10917
10918 fi
10919
10920 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10921
10922 # This implies no fast_install, which is unacceptable.
10923 # Some rework will be needed to allow for fast_install
10924 # before this can be enabled.
10925 hardcode_into_libs=yes
10926
10927 # Add ABI-specific directories to the system library path.
10928 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10929
10930 # Ideally, we could use ldconfig to report *all* directores which are
10931 # searched for libraries, however this is still not possible. Aside from not
10932 # being certain /sbin/ldconfig is available, command
10933 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10934 # even though it is searched at run-time. Try to do the best guess by
10935 # appending ld.so.conf contents (and includes) to the search path.
10936 if test -f /etc/ld.so.conf; then
10937 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' ' '`
10938 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10939 fi
10940
10941 # We used to test for /lib/ld.so.1 and disable shared libraries on
10942 # powerpc, because MkLinux only supported shared libraries with the
10943 # GNU dynamic linker. Since this was broken with cross compilers,
10944 # most powerpc-linux boxes support dynamic linking these days and
10945 # people can always --disable-shared, the test was removed, and we
10946 # assume the GNU/Linux dynamic linker is in use.
10947 dynamic_linker='GNU/Linux ld.so'
10948 ;;
10949
10950 netbsd*)
10951 version_type=sunos
10952 need_lib_prefix=no
10953 need_version=no
10954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10955 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10957 dynamic_linker='NetBSD (a.out) ld.so'
10958 else
10959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10960 soname_spec='$libname$release$shared_ext$major'
10961 dynamic_linker='NetBSD ld.elf_so'
10962 fi
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=yes
10965 hardcode_into_libs=yes
10966 ;;
10967
10968 newsos6)
10969 version_type=linux # correct to gnu/linux during the next big refactor
10970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10971 shlibpath_var=LD_LIBRARY_PATH
10972 shlibpath_overrides_runpath=yes
10973 ;;
10974
10975 *nto* | *qnx*)
10976 version_type=qnx
10977 need_lib_prefix=no
10978 need_version=no
10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10980 soname_spec='$libname$release$shared_ext$major'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=no
10983 hardcode_into_libs=yes
10984 dynamic_linker='ldqnx.so'
10985 ;;
10986
10987 openbsd* | bitrig*)
10988 version_type=sunos
10989 sys_lib_dlsearch_path_spec=/usr/lib
10990 need_lib_prefix=no
10991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10992 need_version=no
10993 else
10994 need_version=yes
10995 fi
10996 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath=yes
11000 ;;
11001
11002 os2*)
11003 libname_spec='$name'
11004 version_type=windows
11005 shrext_cmds=.dll
11006 need_version=no
11007 need_lib_prefix=no
11008 # OS/2 can only load a DLL with a base name of 8 characters or less.
11009 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11010 v=$($ECHO $release$versuffix | tr -d .-);
11011 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11012 $ECHO $n$v`$shared_ext'
11013 library_names_spec='${libname}_dll.$libext'
11014 dynamic_linker='OS/2 ld.exe'
11015 shlibpath_var=BEGINLIBPATH
11016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11018 postinstall_cmds='base_file=`basename \$file`~
11019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11020 dldir=$destdir/`dirname \$dlpath`~
11021 test -d \$dldir || mkdir -p \$dldir~
11022 $install_prog $dir/$dlname \$dldir/$dlname~
11023 chmod a+x \$dldir/$dlname~
11024 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11025 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11026 fi'
11027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11028 dlpath=$dir/\$dldll~
11029 $RM \$dlpath'
11030 ;;
11031
11032 osf3* | osf4* | osf5*)
11033 version_type=osf
11034 need_lib_prefix=no
11035 need_version=no
11036 soname_spec='$libname$release$shared_ext$major'
11037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11041 ;;
11042
11043 rdos*)
11044 dynamic_linker=no
11045 ;;
11046
11047 solaris*)
11048 version_type=linux # correct to gnu/linux during the next big refactor
11049 need_lib_prefix=no
11050 need_version=no
11051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11052 soname_spec='$libname$release$shared_ext$major'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=yes
11055 hardcode_into_libs=yes
11056 # ldd complains unless libraries are executable
11057 postinstall_cmds='chmod +x $lib'
11058 ;;
11059
11060 sunos4*)
11061 version_type=sunos
11062 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11063 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 shlibpath_overrides_runpath=yes
11066 if test yes = "$with_gnu_ld"; then
11067 need_lib_prefix=no
11068 fi
11069 need_version=yes
11070 ;;
11071
11072 sysv4 | sysv4.3*)
11073 version_type=linux # correct to gnu/linux during the next big refactor
11074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11075 soname_spec='$libname$release$shared_ext$major'
11076 shlibpath_var=LD_LIBRARY_PATH
11077 case $host_vendor in
11078 sni)
11079 shlibpath_overrides_runpath=no
11080 need_lib_prefix=no
11081 runpath_var=LD_RUN_PATH
11082 ;;
11083 siemens)
11084 need_lib_prefix=no
11085 ;;
11086 motorola)
11087 need_lib_prefix=no
11088 need_version=no
11089 shlibpath_overrides_runpath=no
11090 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11091 ;;
11092 esac
11093 ;;
11094
11095 sysv4*MP*)
11096 if test -d /usr/nec; then
11097 version_type=linux # correct to gnu/linux during the next big refactor
11098 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11099 soname_spec='$libname$shared_ext.$major'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 fi
11102 ;;
11103
11104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11105 version_type=sco
11106 need_lib_prefix=no
11107 need_version=no
11108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11109 soname_spec='$libname$release$shared_ext$major'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 shlibpath_overrides_runpath=yes
11112 hardcode_into_libs=yes
11113 if test yes = "$with_gnu_ld"; then
11114 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11115 else
11116 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11117 case $host_os in
11118 sco3.2v5*)
11119 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11120 ;;
11121 esac
11122 fi
11123 sys_lib_dlsearch_path_spec='/usr/lib'
11124 ;;
11125
11126 tpf*)
11127 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11128 version_type=linux # correct to gnu/linux during the next big refactor
11129 need_lib_prefix=no
11130 need_version=no
11131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_overrides_runpath=no
11134 hardcode_into_libs=yes
11135 ;;
11136
11137 uts4*)
11138 version_type=linux # correct to gnu/linux during the next big refactor
11139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11140 soname_spec='$libname$release$shared_ext$major'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 ;;
11143
11144 *)
11145 dynamic_linker=no
11146 ;;
11147 esac
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11149 $as_echo "$dynamic_linker" >&6; }
11150 test no = "$dynamic_linker" && can_build_shared=no
11151
11152 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11153 if test yes = "$GCC"; then
11154 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11155 fi
11156
11157 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11158 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11159 fi
11160
11161 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11162 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11163 fi
11164
11165 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11166 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11167
11168 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11169 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11170
11171 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11172 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11271 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11272 hardcode_action=
11273 if test -n "$hardcode_libdir_flag_spec" ||
11274 test -n "$runpath_var" ||
11275 test yes = "$hardcode_automatic"; then
11276
11277 # We can hardcode non-existent directories.
11278 if test no != "$hardcode_direct" &&
11279 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11280 # have to relink, otherwise we might link with an installed library
11281 # when we should be linking with a yet-to-be-installed one
11282 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11283 test no != "$hardcode_minus_L"; then
11284 # Linking always hardcodes the temporary library directory.
11285 hardcode_action=relink
11286 else
11287 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11288 hardcode_action=immediate
11289 fi
11290 else
11291 # We cannot hardcode anything, or else we can only hardcode existing
11292 # directories.
11293 hardcode_action=unsupported
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11296 $as_echo "$hardcode_action" >&6; }
11297
11298 if test relink = "$hardcode_action" ||
11299 test yes = "$inherit_rpath"; then
11300 # Fast installation is not supported
11301 enable_fast_install=no
11302 elif test yes = "$shlibpath_overrides_runpath" ||
11303 test no = "$enable_shared"; then
11304 # Fast installation is not necessary
11305 enable_fast_install=needless
11306 fi
11307
11308
11309
11310
11311
11312
11313 if test yes != "$enable_dlopen"; then
11314 enable_dlopen=unknown
11315 enable_dlopen_self=unknown
11316 enable_dlopen_self_static=unknown
11317 else
11318 lt_cv_dlopen=no
11319 lt_cv_dlopen_libs=
11320
11321 case $host_os in
11322 beos*)
11323 lt_cv_dlopen=load_add_on
11324 lt_cv_dlopen_libs=
11325 lt_cv_dlopen_self=yes
11326 ;;
11327
11328 mingw* | pw32* | cegcc*)
11329 lt_cv_dlopen=LoadLibrary
11330 lt_cv_dlopen_libs=
11331 ;;
11332
11333 cygwin*)
11334 lt_cv_dlopen=dlopen
11335 lt_cv_dlopen_libs=
11336 ;;
11337
11338 darwin*)
11339 # if libdl is installed we need to link against it
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11341 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11342 if ${ac_cv_lib_dl_dlopen+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345 ac_check_lib_save_LIBS=$LIBS
11346 LIBS="-ldl $LIBS"
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349
11350 /* Override any GCC internal prototype to avoid an error.
11351 Use char because int might match the return type of a GCC
11352 builtin and then its argument prototype would still apply. */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 char dlopen ();
11357 int
11358 main ()
11359 {
11360 return dlopen ();
11361 ;
11362 return 0;
11363 }
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366 ac_cv_lib_dl_dlopen=yes
11367 else
11368 ac_cv_lib_dl_dlopen=no
11369 fi
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LIBS=$ac_check_lib_save_LIBS
11373 fi
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11375 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11376 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11377 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11378 else
11379
11380 lt_cv_dlopen=dyld
11381 lt_cv_dlopen_libs=
11382 lt_cv_dlopen_self=yes
11383
11384 fi
11385
11386 ;;
11387
11388 tpf*)
11389 # Don't try to run any link tests for TPF. We know it's impossible
11390 # because TPF is a cross-compiler, and we know how we open DSOs.
11391 lt_cv_dlopen=dlopen
11392 lt_cv_dlopen_libs=
11393 lt_cv_dlopen_self=no
11394 ;;
11395
11396 *)
11397 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11398 if test "x$ac_cv_func_shl_load" = xyes; then :
11399 lt_cv_dlopen=shl_load
11400 else
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11402 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11403 if ${ac_cv_lib_dld_shl_load+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 ac_check_lib_save_LIBS=$LIBS
11407 LIBS="-ldld $LIBS"
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11410
11411 /* Override any GCC internal prototype to avoid an error.
11412 Use char because int might match the return type of a GCC
11413 builtin and then its argument prototype would still apply. */
11414 #ifdef __cplusplus
11415 extern "C"
11416 #endif
11417 char shl_load ();
11418 int
11419 main ()
11420 {
11421 return shl_load ();
11422 ;
11423 return 0;
11424 }
11425 _ACEOF
11426 if ac_fn_c_try_link "$LINENO"; then :
11427 ac_cv_lib_dld_shl_load=yes
11428 else
11429 ac_cv_lib_dld_shl_load=no
11430 fi
11431 rm -f core conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_lib_save_LIBS
11434 fi
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11436 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11437 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11438 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11439 else
11440 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11441 if test "x$ac_cv_func_dlopen" = xyes; then :
11442 lt_cv_dlopen=dlopen
11443 else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11445 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11446 if ${ac_cv_lib_dl_dlopen+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 ac_check_lib_save_LIBS=$LIBS
11450 LIBS="-ldl $LIBS"
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11453
11454 /* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 char dlopen ();
11461 int
11462 main ()
11463 {
11464 return dlopen ();
11465 ;
11466 return 0;
11467 }
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470 ac_cv_lib_dl_dlopen=yes
11471 else
11472 ac_cv_lib_dl_dlopen=no
11473 fi
11474 rm -f core conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476 LIBS=$ac_check_lib_save_LIBS
11477 fi
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11479 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11480 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11481 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11482 else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11484 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11485 if ${ac_cv_lib_svld_dlopen+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 ac_check_lib_save_LIBS=$LIBS
11489 LIBS="-lsvld $LIBS"
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11492
11493 /* Override any GCC internal prototype to avoid an error.
11494 Use char because int might match the return type of a GCC
11495 builtin and then its argument prototype would still apply. */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 char dlopen ();
11500 int
11501 main ()
11502 {
11503 return dlopen ();
11504 ;
11505 return 0;
11506 }
11507 _ACEOF
11508 if ac_fn_c_try_link "$LINENO"; then :
11509 ac_cv_lib_svld_dlopen=yes
11510 else
11511 ac_cv_lib_svld_dlopen=no
11512 fi
11513 rm -f core conftest.err conftest.$ac_objext \
11514 conftest$ac_exeext conftest.$ac_ext
11515 LIBS=$ac_check_lib_save_LIBS
11516 fi
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11518 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11519 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11520 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11523 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11524 if ${ac_cv_lib_dld_dld_link+:} false; then :
11525 $as_echo_n "(cached) " >&6
11526 else
11527 ac_check_lib_save_LIBS=$LIBS
11528 LIBS="-ldld $LIBS"
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531
11532 /* Override any GCC internal prototype to avoid an error.
11533 Use char because int might match the return type of a GCC
11534 builtin and then its argument prototype would still apply. */
11535 #ifdef __cplusplus
11536 extern "C"
11537 #endif
11538 char dld_link ();
11539 int
11540 main ()
11541 {
11542 return dld_link ();
11543 ;
11544 return 0;
11545 }
11546 _ACEOF
11547 if ac_fn_c_try_link "$LINENO"; then :
11548 ac_cv_lib_dld_dld_link=yes
11549 else
11550 ac_cv_lib_dld_dld_link=no
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554 LIBS=$ac_check_lib_save_LIBS
11555 fi
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11557 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11558 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11559 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11560 fi
11561
11562
11563 fi
11564
11565
11566 fi
11567
11568
11569 fi
11570
11571
11572 fi
11573
11574
11575 fi
11576
11577 ;;
11578 esac
11579
11580 if test no = "$lt_cv_dlopen"; then
11581 enable_dlopen=no
11582 else
11583 enable_dlopen=yes
11584 fi
11585
11586 case $lt_cv_dlopen in
11587 dlopen)
11588 save_CPPFLAGS=$CPPFLAGS
11589 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11590
11591 save_LDFLAGS=$LDFLAGS
11592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11593
11594 save_LIBS=$LIBS
11595 LIBS="$lt_cv_dlopen_libs $LIBS"
11596
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11598 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11599 if ${lt_cv_dlopen_self+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 if test yes = "$cross_compiling"; then :
11603 lt_cv_dlopen_self=cross
11604 else
11605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11606 lt_status=$lt_dlunknown
11607 cat > conftest.$ac_ext <<_LT_EOF
11608 #line $LINENO "configure"
11609 #include "confdefs.h"
11610
11611 #if HAVE_DLFCN_H
11612 #include <dlfcn.h>
11613 #endif
11614
11615 #include <stdio.h>
11616
11617 #ifdef RTLD_GLOBAL
11618 # define LT_DLGLOBAL RTLD_GLOBAL
11619 #else
11620 # ifdef DL_GLOBAL
11621 # define LT_DLGLOBAL DL_GLOBAL
11622 # else
11623 # define LT_DLGLOBAL 0
11624 # endif
11625 #endif
11626
11627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11628 find out it does not work in some platform. */
11629 #ifndef LT_DLLAZY_OR_NOW
11630 # ifdef RTLD_LAZY
11631 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11632 # else
11633 # ifdef DL_LAZY
11634 # define LT_DLLAZY_OR_NOW DL_LAZY
11635 # else
11636 # ifdef RTLD_NOW
11637 # define LT_DLLAZY_OR_NOW RTLD_NOW
11638 # else
11639 # ifdef DL_NOW
11640 # define LT_DLLAZY_OR_NOW DL_NOW
11641 # else
11642 # define LT_DLLAZY_OR_NOW 0
11643 # endif
11644 # endif
11645 # endif
11646 # endif
11647 #endif
11648
11649 /* When -fvisibility=hidden is used, assume the code has been annotated
11650 correspondingly for the symbols needed. */
11651 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11652 int fnord () __attribute__((visibility("default")));
11653 #endif
11654
11655 int fnord () { return 42; }
11656 int main ()
11657 {
11658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659 int status = $lt_dlunknown;
11660
11661 if (self)
11662 {
11663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11664 else
11665 {
11666 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11667 else puts (dlerror ());
11668 }
11669 /* dlclose (self); */
11670 }
11671 else
11672 puts (dlerror ());
11673
11674 return status;
11675 }
11676 _LT_EOF
11677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11678 (eval $ac_link) 2>&5
11679 ac_status=$?
11680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11681 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11682 (./conftest; exit; ) >&5 2>/dev/null
11683 lt_status=$?
11684 case x$lt_status in
11685 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11686 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11687 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11688 esac
11689 else :
11690 # compilation failed
11691 lt_cv_dlopen_self=no
11692 fi
11693 fi
11694 rm -fr conftest*
11695
11696
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11699 $as_echo "$lt_cv_dlopen_self" >&6; }
11700
11701 if test yes = "$lt_cv_dlopen_self"; then
11702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11704 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11705 if ${lt_cv_dlopen_self_static+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 if test yes = "$cross_compiling"; then :
11709 lt_cv_dlopen_self_static=cross
11710 else
11711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11712 lt_status=$lt_dlunknown
11713 cat > conftest.$ac_ext <<_LT_EOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716
11717 #if HAVE_DLFCN_H
11718 #include <dlfcn.h>
11719 #endif
11720
11721 #include <stdio.h>
11722
11723 #ifdef RTLD_GLOBAL
11724 # define LT_DLGLOBAL RTLD_GLOBAL
11725 #else
11726 # ifdef DL_GLOBAL
11727 # define LT_DLGLOBAL DL_GLOBAL
11728 # else
11729 # define LT_DLGLOBAL 0
11730 # endif
11731 #endif
11732
11733 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11734 find out it does not work in some platform. */
11735 #ifndef LT_DLLAZY_OR_NOW
11736 # ifdef RTLD_LAZY
11737 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11738 # else
11739 # ifdef DL_LAZY
11740 # define LT_DLLAZY_OR_NOW DL_LAZY
11741 # else
11742 # ifdef RTLD_NOW
11743 # define LT_DLLAZY_OR_NOW RTLD_NOW
11744 # else
11745 # ifdef DL_NOW
11746 # define LT_DLLAZY_OR_NOW DL_NOW
11747 # else
11748 # define LT_DLLAZY_OR_NOW 0
11749 # endif
11750 # endif
11751 # endif
11752 # endif
11753 #endif
11754
11755 /* When -fvisibility=hidden is used, assume the code has been annotated
11756 correspondingly for the symbols needed. */
11757 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11758 int fnord () __attribute__((visibility("default")));
11759 #endif
11760
11761 int fnord () { return 42; }
11762 int main ()
11763 {
11764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11765 int status = $lt_dlunknown;
11766
11767 if (self)
11768 {
11769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11770 else
11771 {
11772 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11773 else puts (dlerror ());
11774 }
11775 /* dlclose (self); */
11776 }
11777 else
11778 puts (dlerror ());
11779
11780 return status;
11781 }
11782 _LT_EOF
11783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11784 (eval $ac_link) 2>&5
11785 ac_status=$?
11786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11787 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11788 (./conftest; exit; ) >&5 2>/dev/null
11789 lt_status=$?
11790 case x$lt_status in
11791 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11792 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11793 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11794 esac
11795 else :
11796 # compilation failed
11797 lt_cv_dlopen_self_static=no
11798 fi
11799 fi
11800 rm -fr conftest*
11801
11802
11803 fi
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11805 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11806 fi
11807
11808 CPPFLAGS=$save_CPPFLAGS
11809 LDFLAGS=$save_LDFLAGS
11810 LIBS=$save_LIBS
11811 ;;
11812 esac
11813
11814 case $lt_cv_dlopen_self in
11815 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11816 *) enable_dlopen_self=unknown ;;
11817 esac
11818
11819 case $lt_cv_dlopen_self_static in
11820 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11821 *) enable_dlopen_self_static=unknown ;;
11822 esac
11823 fi
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841 striplib=
11842 old_striplib=
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11844 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11845 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11847 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11849 $as_echo "yes" >&6; }
11850 else
11851 # FIXME - insert some real tests, host_os isn't really good enough
11852 case $host_os in
11853 darwin*)
11854 if test -n "$STRIP"; then
11855 striplib="$STRIP -x"
11856 old_striplib="$STRIP -S"
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11858 $as_echo "yes" >&6; }
11859 else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862 fi
11863 ;;
11864 *)
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867 ;;
11868 esac
11869 fi
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882 # Report what library types will actually be built
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11884 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11886 $as_echo "$can_build_shared" >&6; }
11887
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11889 $as_echo_n "checking whether to build shared libraries... " >&6; }
11890 test no = "$can_build_shared" && enable_shared=no
11891
11892 # On AIX, shared libraries and static libraries use the same namespace, and
11893 # are all built from PIC.
11894 case $host_os in
11895 aix3*)
11896 test yes = "$enable_shared" && enable_static=no
11897 if test -n "$RANLIB"; then
11898 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11899 postinstall_cmds='$RANLIB $lib'
11900 fi
11901 ;;
11902
11903 aix[4-9]*)
11904 if test ia64 != "$host_cpu"; then
11905 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11906 yes,aix,yes) ;; # shared object as lib.so file only
11907 yes,svr4,*) ;; # shared object as lib.so archive member only
11908 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11909 esac
11910 fi
11911 ;;
11912 esac
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11914 $as_echo "$enable_shared" >&6; }
11915
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11917 $as_echo_n "checking whether to build static libraries... " >&6; }
11918 # Make sure either enable_shared or enable_static is yes.
11919 test yes = "$enable_shared" || enable_static=yes
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11921 $as_echo "$enable_static" >&6; }
11922
11923
11924
11925
11926 fi
11927 ac_ext=c
11928 ac_cpp='$CPP $CPPFLAGS'
11929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11932
11933 CC=$lt_save_CC
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949 ac_config_commands="$ac_config_commands libtool"
11950
11951
11952
11953
11954 # Only expand once:
11955
11956
11957
11958 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11971 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11972 if ${ac_cv_prog_cc_c99+:} false; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 ac_cv_prog_cc_c99=no
11976 ac_save_CC=$CC
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11979 #include <stdarg.h>
11980 #include <stdbool.h>
11981 #include <stdlib.h>
11982 #include <wchar.h>
11983 #include <stdio.h>
11984
11985 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11986 #define debug(...) fprintf (stderr, __VA_ARGS__)
11987 #define showlist(...) puts (#__VA_ARGS__)
11988 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11989 static void
11990 test_varargs_macros (void)
11991 {
11992 int x = 1234;
11993 int y = 5678;
11994 debug ("Flag");
11995 debug ("X = %d\n", x);
11996 showlist (The first, second, and third items.);
11997 report (x>y, "x is %d but y is %d", x, y);
11998 }
11999
12000 // Check long long types.
12001 #define BIG64 18446744073709551615ull
12002 #define BIG32 4294967295ul
12003 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12004 #if !BIG_OK
12005 your preprocessor is broken;
12006 #endif
12007 #if BIG_OK
12008 #else
12009 your preprocessor is broken;
12010 #endif
12011 static long long int bignum = -9223372036854775807LL;
12012 static unsigned long long int ubignum = BIG64;
12013
12014 struct incomplete_array
12015 {
12016 int datasize;
12017 double data[];
12018 };
12019
12020 struct named_init {
12021 int number;
12022 const wchar_t *name;
12023 double average;
12024 };
12025
12026 typedef const char *ccp;
12027
12028 static inline int
12029 test_restrict (ccp restrict text)
12030 {
12031 // See if C++-style comments work.
12032 // Iterate through items via the restricted pointer.
12033 // Also check for declarations in for loops.
12034 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12035 continue;
12036 return 0;
12037 }
12038
12039 // Check varargs and va_copy.
12040 static void
12041 test_varargs (const char *format, ...)
12042 {
12043 va_list args;
12044 va_start (args, format);
12045 va_list args_copy;
12046 va_copy (args_copy, args);
12047
12048 const char *str;
12049 int number;
12050 float fnumber;
12051
12052 while (*format)
12053 {
12054 switch (*format++)
12055 {
12056 case 's': // string
12057 str = va_arg (args_copy, const char *);
12058 break;
12059 case 'd': // int
12060 number = va_arg (args_copy, int);
12061 break;
12062 case 'f': // float
12063 fnumber = va_arg (args_copy, double);
12064 break;
12065 default:
12066 break;
12067 }
12068 }
12069 va_end (args_copy);
12070 va_end (args);
12071 }
12072
12073 int
12074 main ()
12075 {
12076
12077 // Check bool.
12078 _Bool success = false;
12079
12080 // Check restrict.
12081 if (test_restrict ("String literal") == 0)
12082 success = true;
12083 char *restrict newvar = "Another string";
12084
12085 // Check varargs.
12086 test_varargs ("s, d' f .", "string", 65, 34.234);
12087 test_varargs_macros ();
12088
12089 // Check flexible array members.
12090 struct incomplete_array *ia =
12091 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12092 ia->datasize = 10;
12093 for (int i = 0; i < ia->datasize; ++i)
12094 ia->data[i] = i * 1.234;
12095
12096 // Check named initializers.
12097 struct named_init ni = {
12098 .number = 34,
12099 .name = L"Test wide string",
12100 .average = 543.34343,
12101 };
12102
12103 ni.number = 58;
12104
12105 int dynamic_array[ni.number];
12106 dynamic_array[ni.number - 1] = 543;
12107
12108 // work around unused variable warnings
12109 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12110 || dynamic_array[ni.number - 1] != 543);
12111
12112 ;
12113 return 0;
12114 }
12115 _ACEOF
12116 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12117 do
12118 CC="$ac_save_CC $ac_arg"
12119 if ac_fn_c_try_compile "$LINENO"; then :
12120 ac_cv_prog_cc_c99=$ac_arg
12121 fi
12122 rm -f core conftest.err conftest.$ac_objext
12123 test "x$ac_cv_prog_cc_c99" != "xno" && break
12124 done
12125 rm -f conftest.$ac_ext
12126 CC=$ac_save_CC
12127
12128 fi
12129 # AC_CACHE_VAL
12130 case "x$ac_cv_prog_cc_c99" in
12131 x)
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12133 $as_echo "none needed" >&6; } ;;
12134 xno)
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12136 $as_echo "unsupported" >&6; } ;;
12137 *)
12138 CC="$CC $ac_cv_prog_cc_c99"
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12140 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12141 esac
12142 if test "x$ac_cv_prog_cc_c99" != xno; then :
12143
12144 fi
12145
12146
12147
12148
12149
12150
12151 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12152 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12153 CLANGCC="yes"
12154 else
12155 CLANGCC="no"
12156 fi
12157
12158 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12159 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12160 INTELCC="yes"
12161 else
12162 INTELCC="no"
12163 fi
12164
12165 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12166 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12167 SUNCC="yes"
12168 else
12169 SUNCC="no"
12170 fi
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12181 if test -n "$ac_tool_prefix"; then
12182 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12183 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12187 $as_echo_n "(cached) " >&6
12188 else
12189 case $PKG_CONFIG in
12190 [\\/]* | ?:[\\/]*)
12191 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12192 ;;
12193 *)
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12196 do
12197 IFS=$as_save_IFS
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
12200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12201 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12203 break 2
12204 fi
12205 done
12206 done
12207 IFS=$as_save_IFS
12208
12209 ;;
12210 esac
12211 fi
12212 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12213 if test -n "$PKG_CONFIG"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12215 $as_echo "$PKG_CONFIG" >&6; }
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12219 fi
12220
12221
12222 fi
12223 if test -z "$ac_cv_path_PKG_CONFIG"; then
12224 ac_pt_PKG_CONFIG=$PKG_CONFIG
12225 # Extract the first word of "pkg-config", so it can be a program name with args.
12226 set dummy pkg-config; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 case $ac_pt_PKG_CONFIG in
12233 [\\/]* | ?:[\\/]*)
12234 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12235 ;;
12236 *)
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $PATH
12239 do
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12244 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 break 2
12247 fi
12248 done
12249 done
12250 IFS=$as_save_IFS
12251
12252 ;;
12253 esac
12254 fi
12255 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12256 if test -n "$ac_pt_PKG_CONFIG"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12258 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12262 fi
12263
12264 if test "x$ac_pt_PKG_CONFIG" = x; then
12265 PKG_CONFIG=""
12266 else
12267 case $cross_compiling:$ac_tool_warned in
12268 yes:)
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12271 ac_tool_warned=yes ;;
12272 esac
12273 PKG_CONFIG=$ac_pt_PKG_CONFIG
12274 fi
12275 else
12276 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12277 fi
12278
12279 fi
12280 if test -n "$PKG_CONFIG"; then
12281 _pkg_min_version=0.9.0
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12283 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12284 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12286 $as_echo "yes" >&6; }
12287 else
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12290 PKG_CONFIG=""
12291 fi
12292 fi
12293
12294
12295
12296
12297
12298 # Check whether --enable-selective-werror was given.
12299 if test "${enable_selective_werror+set}" = set; then :
12300 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12301 else
12302 SELECTIVE_WERROR=yes
12303 fi
12304
12305
12306
12307
12308
12309 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12310 if test "x$SUNCC" = "xyes"; then
12311 BASE_CFLAGS="-v"
12312 else
12313 BASE_CFLAGS=""
12314 fi
12315
12316 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330 xorg_testset_save_CFLAGS="$CFLAGS"
12331
12332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12335 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12336 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12341 int i;
12342 _ACEOF
12343 if ac_fn_c_try_compile "$LINENO"; then :
12344 xorg_cv_cc_flag_unknown_warning_option=yes
12345 else
12346 xorg_cv_cc_flag_unknown_warning_option=no
12347 fi
12348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 fi
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12351 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12353 CFLAGS="$xorg_testset_save_CFLAGS"
12354 fi
12355
12356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12359 fi
12360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12362 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12363 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368 int i;
12369 _ACEOF
12370 if ac_fn_c_try_compile "$LINENO"; then :
12371 xorg_cv_cc_flag_unused_command_line_argument=yes
12372 else
12373 xorg_cv_cc_flag_unused_command_line_argument=no
12374 fi
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 fi
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12378 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12380 CFLAGS="$xorg_testset_save_CFLAGS"
12381 fi
12382
12383 found="no"
12384
12385 if test $found = "no" ; then
12386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12388 fi
12389
12390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12392 fi
12393
12394 CFLAGS="$CFLAGS -Wall"
12395
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12397 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12398 cacheid=xorg_cv_cc_flag__Wall
12399 if eval \${$cacheid+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404 int i;
12405 int
12406 main ()
12407 {
12408
12409 ;
12410 return 0;
12411 }
12412 _ACEOF
12413 if ac_fn_c_try_link "$LINENO"; then :
12414 eval $cacheid=yes
12415 else
12416 eval $cacheid=no
12417 fi
12418 rm -f core conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12420 fi
12421
12422
12423 CFLAGS="$xorg_testset_save_CFLAGS"
12424
12425 eval supported=\$$cacheid
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12427 $as_echo "$supported" >&6; }
12428 if test "$supported" = "yes" ; then
12429 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12430 found="yes"
12431 fi
12432 fi
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448 xorg_testset_save_CFLAGS="$CFLAGS"
12449
12450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12453 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12454 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12459 int i;
12460 _ACEOF
12461 if ac_fn_c_try_compile "$LINENO"; then :
12462 xorg_cv_cc_flag_unknown_warning_option=yes
12463 else
12464 xorg_cv_cc_flag_unknown_warning_option=no
12465 fi
12466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467 fi
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12469 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12471 CFLAGS="$xorg_testset_save_CFLAGS"
12472 fi
12473
12474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12477 fi
12478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12480 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12481 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486 int i;
12487 _ACEOF
12488 if ac_fn_c_try_compile "$LINENO"; then :
12489 xorg_cv_cc_flag_unused_command_line_argument=yes
12490 else
12491 xorg_cv_cc_flag_unused_command_line_argument=no
12492 fi
12493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12494 fi
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12496 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12498 CFLAGS="$xorg_testset_save_CFLAGS"
12499 fi
12500
12501 found="no"
12502
12503 if test $found = "no" ; then
12504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12506 fi
12507
12508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12510 fi
12511
12512 CFLAGS="$CFLAGS -Wpointer-arith"
12513
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12515 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12516 cacheid=xorg_cv_cc_flag__Wpointer_arith
12517 if eval \${$cacheid+:} false; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12522 int i;
12523 int
12524 main ()
12525 {
12526
12527 ;
12528 return 0;
12529 }
12530 _ACEOF
12531 if ac_fn_c_try_link "$LINENO"; then :
12532 eval $cacheid=yes
12533 else
12534 eval $cacheid=no
12535 fi
12536 rm -f core conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
12538 fi
12539
12540
12541 CFLAGS="$xorg_testset_save_CFLAGS"
12542
12543 eval supported=\$$cacheid
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12545 $as_echo "$supported" >&6; }
12546 if test "$supported" = "yes" ; then
12547 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12548 found="yes"
12549 fi
12550 fi
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566 xorg_testset_save_CFLAGS="$CFLAGS"
12567
12568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12571 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12572 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 int i;
12578 _ACEOF
12579 if ac_fn_c_try_compile "$LINENO"; then :
12580 xorg_cv_cc_flag_unknown_warning_option=yes
12581 else
12582 xorg_cv_cc_flag_unknown_warning_option=no
12583 fi
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12587 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12589 CFLAGS="$xorg_testset_save_CFLAGS"
12590 fi
12591
12592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12595 fi
12596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12598 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12599 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12604 int i;
12605 _ACEOF
12606 if ac_fn_c_try_compile "$LINENO"; then :
12607 xorg_cv_cc_flag_unused_command_line_argument=yes
12608 else
12609 xorg_cv_cc_flag_unused_command_line_argument=no
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12614 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12616 CFLAGS="$xorg_testset_save_CFLAGS"
12617 fi
12618
12619 found="no"
12620
12621 if test $found = "no" ; then
12622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12624 fi
12625
12626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12628 fi
12629
12630 CFLAGS="$CFLAGS -Wmissing-declarations"
12631
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12633 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12634 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12635 if eval \${$cacheid+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12640 int i;
12641 int
12642 main ()
12643 {
12644
12645 ;
12646 return 0;
12647 }
12648 _ACEOF
12649 if ac_fn_c_try_link "$LINENO"; then :
12650 eval $cacheid=yes
12651 else
12652 eval $cacheid=no
12653 fi
12654 rm -f core conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12656 fi
12657
12658
12659 CFLAGS="$xorg_testset_save_CFLAGS"
12660
12661 eval supported=\$$cacheid
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12663 $as_echo "$supported" >&6; }
12664 if test "$supported" = "yes" ; then
12665 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12666 found="yes"
12667 fi
12668 fi
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684 xorg_testset_save_CFLAGS="$CFLAGS"
12685
12686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12689 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12690 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695 int i;
12696 _ACEOF
12697 if ac_fn_c_try_compile "$LINENO"; then :
12698 xorg_cv_cc_flag_unknown_warning_option=yes
12699 else
12700 xorg_cv_cc_flag_unknown_warning_option=no
12701 fi
12702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12703 fi
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12705 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12707 CFLAGS="$xorg_testset_save_CFLAGS"
12708 fi
12709
12710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12713 fi
12714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12716 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12717 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 int i;
12723 _ACEOF
12724 if ac_fn_c_try_compile "$LINENO"; then :
12725 xorg_cv_cc_flag_unused_command_line_argument=yes
12726 else
12727 xorg_cv_cc_flag_unused_command_line_argument=no
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730 fi
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12732 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12734 CFLAGS="$xorg_testset_save_CFLAGS"
12735 fi
12736
12737 found="no"
12738
12739 if test $found = "no" ; then
12740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12742 fi
12743
12744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12746 fi
12747
12748 CFLAGS="$CFLAGS -Wformat=2"
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12751 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12752 cacheid=xorg_cv_cc_flag__Wformat_2
12753 if eval \${$cacheid+:} false; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12758 int i;
12759 int
12760 main ()
12761 {
12762
12763 ;
12764 return 0;
12765 }
12766 _ACEOF
12767 if ac_fn_c_try_link "$LINENO"; then :
12768 eval $cacheid=yes
12769 else
12770 eval $cacheid=no
12771 fi
12772 rm -f core conftest.err conftest.$ac_objext \
12773 conftest$ac_exeext conftest.$ac_ext
12774 fi
12775
12776
12777 CFLAGS="$xorg_testset_save_CFLAGS"
12778
12779 eval supported=\$$cacheid
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12781 $as_echo "$supported" >&6; }
12782 if test "$supported" = "yes" ; then
12783 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12784 found="yes"
12785 fi
12786 fi
12787
12788 if test $found = "no" ; then
12789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12791 fi
12792
12793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12795 fi
12796
12797 CFLAGS="$CFLAGS -Wformat"
12798
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12800 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12801 cacheid=xorg_cv_cc_flag__Wformat
12802 if eval \${$cacheid+:} 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 int
12809 main ()
12810 {
12811
12812 ;
12813 return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_link "$LINENO"; then :
12817 eval $cacheid=yes
12818 else
12819 eval $cacheid=no
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 fi
12824
12825
12826 CFLAGS="$xorg_testset_save_CFLAGS"
12827
12828 eval supported=\$$cacheid
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12830 $as_echo "$supported" >&6; }
12831 if test "$supported" = "yes" ; then
12832 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12833 found="yes"
12834 fi
12835 fi
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853 xorg_testset_save_CFLAGS="$CFLAGS"
12854
12855 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12858 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12859 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864 int i;
12865 _ACEOF
12866 if ac_fn_c_try_compile "$LINENO"; then :
12867 xorg_cv_cc_flag_unknown_warning_option=yes
12868 else
12869 xorg_cv_cc_flag_unknown_warning_option=no
12870 fi
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 fi
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12874 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12876 CFLAGS="$xorg_testset_save_CFLAGS"
12877 fi
12878
12879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12882 fi
12883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12885 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12886 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12891 int i;
12892 _ACEOF
12893 if ac_fn_c_try_compile "$LINENO"; then :
12894 xorg_cv_cc_flag_unused_command_line_argument=yes
12895 else
12896 xorg_cv_cc_flag_unused_command_line_argument=no
12897 fi
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 fi
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12901 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12903 CFLAGS="$xorg_testset_save_CFLAGS"
12904 fi
12905
12906 found="no"
12907
12908 if test $found = "no" ; then
12909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12911 fi
12912
12913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12915 fi
12916
12917 CFLAGS="$CFLAGS -Wstrict-prototypes"
12918
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12920 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12921 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12922 if eval \${$cacheid+:} false; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12927 int i;
12928 int
12929 main ()
12930 {
12931
12932 ;
12933 return 0;
12934 }
12935 _ACEOF
12936 if ac_fn_c_try_link "$LINENO"; then :
12937 eval $cacheid=yes
12938 else
12939 eval $cacheid=no
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext
12943 fi
12944
12945
12946 CFLAGS="$xorg_testset_save_CFLAGS"
12947
12948 eval supported=\$$cacheid
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12950 $as_echo "$supported" >&6; }
12951 if test "$supported" = "yes" ; then
12952 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12953 found="yes"
12954 fi
12955 fi
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971 xorg_testset_save_CFLAGS="$CFLAGS"
12972
12973 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12976 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12977 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12978 $as_echo_n "(cached) " >&6
12979 else
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12982 int i;
12983 _ACEOF
12984 if ac_fn_c_try_compile "$LINENO"; then :
12985 xorg_cv_cc_flag_unknown_warning_option=yes
12986 else
12987 xorg_cv_cc_flag_unknown_warning_option=no
12988 fi
12989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12990 fi
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12992 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12994 CFLAGS="$xorg_testset_save_CFLAGS"
12995 fi
12996
12997 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13000 fi
13001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13003 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13004 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13005 $as_echo_n "(cached) " >&6
13006 else
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13009 int i;
13010 _ACEOF
13011 if ac_fn_c_try_compile "$LINENO"; then :
13012 xorg_cv_cc_flag_unused_command_line_argument=yes
13013 else
13014 xorg_cv_cc_flag_unused_command_line_argument=no
13015 fi
13016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13017 fi
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13019 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13021 CFLAGS="$xorg_testset_save_CFLAGS"
13022 fi
13023
13024 found="no"
13025
13026 if test $found = "no" ; then
13027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13029 fi
13030
13031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13033 fi
13034
13035 CFLAGS="$CFLAGS -Wmissing-prototypes"
13036
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13038 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13039 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13040 if eval \${$cacheid+:} false; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13045 int i;
13046 int
13047 main ()
13048 {
13049
13050 ;
13051 return 0;
13052 }
13053 _ACEOF
13054 if ac_fn_c_try_link "$LINENO"; then :
13055 eval $cacheid=yes
13056 else
13057 eval $cacheid=no
13058 fi
13059 rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13061 fi
13062
13063
13064 CFLAGS="$xorg_testset_save_CFLAGS"
13065
13066 eval supported=\$$cacheid
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13068 $as_echo "$supported" >&6; }
13069 if test "$supported" = "yes" ; then
13070 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13071 found="yes"
13072 fi
13073 fi
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089 xorg_testset_save_CFLAGS="$CFLAGS"
13090
13091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13094 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13095 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13100 int i;
13101 _ACEOF
13102 if ac_fn_c_try_compile "$LINENO"; then :
13103 xorg_cv_cc_flag_unknown_warning_option=yes
13104 else
13105 xorg_cv_cc_flag_unknown_warning_option=no
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13108 fi
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13110 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13112 CFLAGS="$xorg_testset_save_CFLAGS"
13113 fi
13114
13115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13118 fi
13119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13121 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13122 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 int i;
13128 _ACEOF
13129 if ac_fn_c_try_compile "$LINENO"; then :
13130 xorg_cv_cc_flag_unused_command_line_argument=yes
13131 else
13132 xorg_cv_cc_flag_unused_command_line_argument=no
13133 fi
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135 fi
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13137 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13139 CFLAGS="$xorg_testset_save_CFLAGS"
13140 fi
13141
13142 found="no"
13143
13144 if test $found = "no" ; then
13145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13147 fi
13148
13149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13151 fi
13152
13153 CFLAGS="$CFLAGS -Wnested-externs"
13154
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13156 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13157 cacheid=xorg_cv_cc_flag__Wnested_externs
13158 if eval \${$cacheid+:} false; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13163 int i;
13164 int
13165 main ()
13166 {
13167
13168 ;
13169 return 0;
13170 }
13171 _ACEOF
13172 if ac_fn_c_try_link "$LINENO"; then :
13173 eval $cacheid=yes
13174 else
13175 eval $cacheid=no
13176 fi
13177 rm -f core conftest.err conftest.$ac_objext \
13178 conftest$ac_exeext conftest.$ac_ext
13179 fi
13180
13181
13182 CFLAGS="$xorg_testset_save_CFLAGS"
13183
13184 eval supported=\$$cacheid
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13186 $as_echo "$supported" >&6; }
13187 if test "$supported" = "yes" ; then
13188 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13189 found="yes"
13190 fi
13191 fi
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207 xorg_testset_save_CFLAGS="$CFLAGS"
13208
13209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13212 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13213 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218 int i;
13219 _ACEOF
13220 if ac_fn_c_try_compile "$LINENO"; then :
13221 xorg_cv_cc_flag_unknown_warning_option=yes
13222 else
13223 xorg_cv_cc_flag_unknown_warning_option=no
13224 fi
13225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13226 fi
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13228 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13230 CFLAGS="$xorg_testset_save_CFLAGS"
13231 fi
13232
13233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13236 fi
13237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13239 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13240 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13241 $as_echo_n "(cached) " >&6
13242 else
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13245 int i;
13246 _ACEOF
13247 if ac_fn_c_try_compile "$LINENO"; then :
13248 xorg_cv_cc_flag_unused_command_line_argument=yes
13249 else
13250 xorg_cv_cc_flag_unused_command_line_argument=no
13251 fi
13252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13253 fi
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13255 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13257 CFLAGS="$xorg_testset_save_CFLAGS"
13258 fi
13259
13260 found="no"
13261
13262 if test $found = "no" ; then
13263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13265 fi
13266
13267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13269 fi
13270
13271 CFLAGS="$CFLAGS -Wbad-function-cast"
13272
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13274 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13275 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13276 if eval \${$cacheid+:} false; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h. */
13281 int i;
13282 int
13283 main ()
13284 {
13285
13286 ;
13287 return 0;
13288 }
13289 _ACEOF
13290 if ac_fn_c_try_link "$LINENO"; then :
13291 eval $cacheid=yes
13292 else
13293 eval $cacheid=no
13294 fi
13295 rm -f core conftest.err conftest.$ac_objext \
13296 conftest$ac_exeext conftest.$ac_ext
13297 fi
13298
13299
13300 CFLAGS="$xorg_testset_save_CFLAGS"
13301
13302 eval supported=\$$cacheid
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13304 $as_echo "$supported" >&6; }
13305 if test "$supported" = "yes" ; then
13306 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13307 found="yes"
13308 fi
13309 fi
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325 xorg_testset_save_CFLAGS="$CFLAGS"
13326
13327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13330 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13331 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 int i;
13337 _ACEOF
13338 if ac_fn_c_try_compile "$LINENO"; then :
13339 xorg_cv_cc_flag_unknown_warning_option=yes
13340 else
13341 xorg_cv_cc_flag_unknown_warning_option=no
13342 fi
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 fi
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13346 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13348 CFLAGS="$xorg_testset_save_CFLAGS"
13349 fi
13350
13351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13354 fi
13355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13357 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13358 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363 int i;
13364 _ACEOF
13365 if ac_fn_c_try_compile "$LINENO"; then :
13366 xorg_cv_cc_flag_unused_command_line_argument=yes
13367 else
13368 xorg_cv_cc_flag_unused_command_line_argument=no
13369 fi
13370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13371 fi
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13373 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13375 CFLAGS="$xorg_testset_save_CFLAGS"
13376 fi
13377
13378 found="no"
13379
13380 if test $found = "no" ; then
13381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13383 fi
13384
13385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13387 fi
13388
13389 CFLAGS="$CFLAGS -Wold-style-definition"
13390
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13392 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13393 cacheid=xorg_cv_cc_flag__Wold_style_definition
13394 if eval \${$cacheid+:} false; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13399 int i;
13400 int
13401 main ()
13402 {
13403
13404 ;
13405 return 0;
13406 }
13407 _ACEOF
13408 if ac_fn_c_try_link "$LINENO"; then :
13409 eval $cacheid=yes
13410 else
13411 eval $cacheid=no
13412 fi
13413 rm -f core conftest.err conftest.$ac_objext \
13414 conftest$ac_exeext conftest.$ac_ext
13415 fi
13416
13417
13418 CFLAGS="$xorg_testset_save_CFLAGS"
13419
13420 eval supported=\$$cacheid
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13422 $as_echo "$supported" >&6; }
13423 if test "$supported" = "yes" ; then
13424 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13425 found="yes"
13426 fi
13427 fi
13428
13429 if test $found = "no" ; then
13430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13432 fi
13433
13434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13436 fi
13437
13438 CFLAGS="$CFLAGS -fd"
13439
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13441 $as_echo_n "checking if $CC supports -fd... " >&6; }
13442 cacheid=xorg_cv_cc_flag__fd
13443 if eval \${$cacheid+:} 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 int
13450 main ()
13451 {
13452
13453 ;
13454 return 0;
13455 }
13456 _ACEOF
13457 if ac_fn_c_try_link "$LINENO"; then :
13458 eval $cacheid=yes
13459 else
13460 eval $cacheid=no
13461 fi
13462 rm -f core conftest.err conftest.$ac_objext \
13463 conftest$ac_exeext conftest.$ac_ext
13464 fi
13465
13466
13467 CFLAGS="$xorg_testset_save_CFLAGS"
13468
13469 eval supported=\$$cacheid
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13471 $as_echo "$supported" >&6; }
13472 if test "$supported" = "yes" ; then
13473 BASE_CFLAGS="$BASE_CFLAGS -fd"
13474 found="yes"
13475 fi
13476 fi
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492 xorg_testset_save_CFLAGS="$CFLAGS"
13493
13494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13497 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13498 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13503 int i;
13504 _ACEOF
13505 if ac_fn_c_try_compile "$LINENO"; then :
13506 xorg_cv_cc_flag_unknown_warning_option=yes
13507 else
13508 xorg_cv_cc_flag_unknown_warning_option=no
13509 fi
13510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511 fi
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13513 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13515 CFLAGS="$xorg_testset_save_CFLAGS"
13516 fi
13517
13518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13521 fi
13522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13524 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13525 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 int i;
13531 _ACEOF
13532 if ac_fn_c_try_compile "$LINENO"; then :
13533 xorg_cv_cc_flag_unused_command_line_argument=yes
13534 else
13535 xorg_cv_cc_flag_unused_command_line_argument=no
13536 fi
13537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538 fi
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13540 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13542 CFLAGS="$xorg_testset_save_CFLAGS"
13543 fi
13544
13545 found="no"
13546
13547 if test $found = "no" ; then
13548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13550 fi
13551
13552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13554 fi
13555
13556 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13557
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13559 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13560 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13561 if eval \${$cacheid+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566 int i;
13567 int
13568 main ()
13569 {
13570
13571 ;
13572 return 0;
13573 }
13574 _ACEOF
13575 if ac_fn_c_try_link "$LINENO"; then :
13576 eval $cacheid=yes
13577 else
13578 eval $cacheid=no
13579 fi
13580 rm -f core conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 fi
13583
13584
13585 CFLAGS="$xorg_testset_save_CFLAGS"
13586
13587 eval supported=\$$cacheid
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13589 $as_echo "$supported" >&6; }
13590 if test "$supported" = "yes" ; then
13591 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13592 found="yes"
13593 fi
13594 fi
13595
13596
13597
13598
13599
13600 # This chunk adds additional warnings that could catch undesired effects.
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614 xorg_testset_save_CFLAGS="$CFLAGS"
13615
13616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13619 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13620 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13625 int i;
13626 _ACEOF
13627 if ac_fn_c_try_compile "$LINENO"; then :
13628 xorg_cv_cc_flag_unknown_warning_option=yes
13629 else
13630 xorg_cv_cc_flag_unknown_warning_option=no
13631 fi
13632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633 fi
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13635 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13637 CFLAGS="$xorg_testset_save_CFLAGS"
13638 fi
13639
13640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13643 fi
13644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13646 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13647 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13648 $as_echo_n "(cached) " >&6
13649 else
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13652 int i;
13653 _ACEOF
13654 if ac_fn_c_try_compile "$LINENO"; then :
13655 xorg_cv_cc_flag_unused_command_line_argument=yes
13656 else
13657 xorg_cv_cc_flag_unused_command_line_argument=no
13658 fi
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 fi
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13662 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13664 CFLAGS="$xorg_testset_save_CFLAGS"
13665 fi
13666
13667 found="no"
13668
13669 if test $found = "no" ; then
13670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13672 fi
13673
13674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13676 fi
13677
13678 CFLAGS="$CFLAGS -Wunused"
13679
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13681 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13682 cacheid=xorg_cv_cc_flag__Wunused
13683 if eval \${$cacheid+:} false; then :
13684 $as_echo_n "(cached) " >&6
13685 else
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13688 int i;
13689 int
13690 main ()
13691 {
13692
13693 ;
13694 return 0;
13695 }
13696 _ACEOF
13697 if ac_fn_c_try_link "$LINENO"; then :
13698 eval $cacheid=yes
13699 else
13700 eval $cacheid=no
13701 fi
13702 rm -f core conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13704 fi
13705
13706
13707 CFLAGS="$xorg_testset_save_CFLAGS"
13708
13709 eval supported=\$$cacheid
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13711 $as_echo "$supported" >&6; }
13712 if test "$supported" = "yes" ; then
13713 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13714 found="yes"
13715 fi
13716 fi
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732 xorg_testset_save_CFLAGS="$CFLAGS"
13733
13734 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13737 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13738 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13739 $as_echo_n "(cached) " >&6
13740 else
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743 int i;
13744 _ACEOF
13745 if ac_fn_c_try_compile "$LINENO"; then :
13746 xorg_cv_cc_flag_unknown_warning_option=yes
13747 else
13748 xorg_cv_cc_flag_unknown_warning_option=no
13749 fi
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 fi
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13753 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13755 CFLAGS="$xorg_testset_save_CFLAGS"
13756 fi
13757
13758 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13761 fi
13762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13764 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13765 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13766 $as_echo_n "(cached) " >&6
13767 else
13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h. */
13770 int i;
13771 _ACEOF
13772 if ac_fn_c_try_compile "$LINENO"; then :
13773 xorg_cv_cc_flag_unused_command_line_argument=yes
13774 else
13775 xorg_cv_cc_flag_unused_command_line_argument=no
13776 fi
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 fi
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13780 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13782 CFLAGS="$xorg_testset_save_CFLAGS"
13783 fi
13784
13785 found="no"
13786
13787 if test $found = "no" ; then
13788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13790 fi
13791
13792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13794 fi
13795
13796 CFLAGS="$CFLAGS -Wuninitialized"
13797
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13799 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13800 cacheid=xorg_cv_cc_flag__Wuninitialized
13801 if eval \${$cacheid+:} false; then :
13802 $as_echo_n "(cached) " >&6
13803 else
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13806 int i;
13807 int
13808 main ()
13809 {
13810
13811 ;
13812 return 0;
13813 }
13814 _ACEOF
13815 if ac_fn_c_try_link "$LINENO"; then :
13816 eval $cacheid=yes
13817 else
13818 eval $cacheid=no
13819 fi
13820 rm -f core conftest.err conftest.$ac_objext \
13821 conftest$ac_exeext conftest.$ac_ext
13822 fi
13823
13824
13825 CFLAGS="$xorg_testset_save_CFLAGS"
13826
13827 eval supported=\$$cacheid
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13829 $as_echo "$supported" >&6; }
13830 if test "$supported" = "yes" ; then
13831 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13832 found="yes"
13833 fi
13834 fi
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850 xorg_testset_save_CFLAGS="$CFLAGS"
13851
13852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13855 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13856 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13857 $as_echo_n "(cached) " >&6
13858 else
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13861 int i;
13862 _ACEOF
13863 if ac_fn_c_try_compile "$LINENO"; then :
13864 xorg_cv_cc_flag_unknown_warning_option=yes
13865 else
13866 xorg_cv_cc_flag_unknown_warning_option=no
13867 fi
13868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13869 fi
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13871 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13873 CFLAGS="$xorg_testset_save_CFLAGS"
13874 fi
13875
13876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13879 fi
13880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13882 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13883 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888 int i;
13889 _ACEOF
13890 if ac_fn_c_try_compile "$LINENO"; then :
13891 xorg_cv_cc_flag_unused_command_line_argument=yes
13892 else
13893 xorg_cv_cc_flag_unused_command_line_argument=no
13894 fi
13895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13896 fi
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13898 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13900 CFLAGS="$xorg_testset_save_CFLAGS"
13901 fi
13902
13903 found="no"
13904
13905 if test $found = "no" ; then
13906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13908 fi
13909
13910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13912 fi
13913
13914 CFLAGS="$CFLAGS -Wshadow"
13915
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13917 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13918 cacheid=xorg_cv_cc_flag__Wshadow
13919 if eval \${$cacheid+:} false; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13924 int i;
13925 int
13926 main ()
13927 {
13928
13929 ;
13930 return 0;
13931 }
13932 _ACEOF
13933 if ac_fn_c_try_link "$LINENO"; then :
13934 eval $cacheid=yes
13935 else
13936 eval $cacheid=no
13937 fi
13938 rm -f core conftest.err conftest.$ac_objext \
13939 conftest$ac_exeext conftest.$ac_ext
13940 fi
13941
13942
13943 CFLAGS="$xorg_testset_save_CFLAGS"
13944
13945 eval supported=\$$cacheid
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13947 $as_echo "$supported" >&6; }
13948 if test "$supported" = "yes" ; then
13949 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13950 found="yes"
13951 fi
13952 fi
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968 xorg_testset_save_CFLAGS="$CFLAGS"
13969
13970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13973 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13974 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13975 $as_echo_n "(cached) " >&6
13976 else
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13979 int i;
13980 _ACEOF
13981 if ac_fn_c_try_compile "$LINENO"; then :
13982 xorg_cv_cc_flag_unknown_warning_option=yes
13983 else
13984 xorg_cv_cc_flag_unknown_warning_option=no
13985 fi
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13989 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13991 CFLAGS="$xorg_testset_save_CFLAGS"
13992 fi
13993
13994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13997 fi
13998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14000 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14001 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006 int i;
14007 _ACEOF
14008 if ac_fn_c_try_compile "$LINENO"; then :
14009 xorg_cv_cc_flag_unused_command_line_argument=yes
14010 else
14011 xorg_cv_cc_flag_unused_command_line_argument=no
14012 fi
14013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14014 fi
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14016 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14018 CFLAGS="$xorg_testset_save_CFLAGS"
14019 fi
14020
14021 found="no"
14022
14023 if test $found = "no" ; then
14024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14026 fi
14027
14028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14030 fi
14031
14032 CFLAGS="$CFLAGS -Wmissing-noreturn"
14033
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14035 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14036 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14037 if eval \${$cacheid+:} false; then :
14038 $as_echo_n "(cached) " >&6
14039 else
14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h. */
14042 int i;
14043 int
14044 main ()
14045 {
14046
14047 ;
14048 return 0;
14049 }
14050 _ACEOF
14051 if ac_fn_c_try_link "$LINENO"; then :
14052 eval $cacheid=yes
14053 else
14054 eval $cacheid=no
14055 fi
14056 rm -f core conftest.err conftest.$ac_objext \
14057 conftest$ac_exeext conftest.$ac_ext
14058 fi
14059
14060
14061 CFLAGS="$xorg_testset_save_CFLAGS"
14062
14063 eval supported=\$$cacheid
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14065 $as_echo "$supported" >&6; }
14066 if test "$supported" = "yes" ; then
14067 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14068 found="yes"
14069 fi
14070 fi
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086 xorg_testset_save_CFLAGS="$CFLAGS"
14087
14088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14091 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14092 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14097 int i;
14098 _ACEOF
14099 if ac_fn_c_try_compile "$LINENO"; then :
14100 xorg_cv_cc_flag_unknown_warning_option=yes
14101 else
14102 xorg_cv_cc_flag_unknown_warning_option=no
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 fi
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14107 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14109 CFLAGS="$xorg_testset_save_CFLAGS"
14110 fi
14111
14112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14115 fi
14116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14118 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14119 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 int i;
14125 _ACEOF
14126 if ac_fn_c_try_compile "$LINENO"; then :
14127 xorg_cv_cc_flag_unused_command_line_argument=yes
14128 else
14129 xorg_cv_cc_flag_unused_command_line_argument=no
14130 fi
14131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132 fi
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14134 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14136 CFLAGS="$xorg_testset_save_CFLAGS"
14137 fi
14138
14139 found="no"
14140
14141 if test $found = "no" ; then
14142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14144 fi
14145
14146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14148 fi
14149
14150 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14151
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14153 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14154 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14155 if eval \${$cacheid+:} false; then :
14156 $as_echo_n "(cached) " >&6
14157 else
14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159 /* end confdefs.h. */
14160 int i;
14161 int
14162 main ()
14163 {
14164
14165 ;
14166 return 0;
14167 }
14168 _ACEOF
14169 if ac_fn_c_try_link "$LINENO"; then :
14170 eval $cacheid=yes
14171 else
14172 eval $cacheid=no
14173 fi
14174 rm -f core conftest.err conftest.$ac_objext \
14175 conftest$ac_exeext conftest.$ac_ext
14176 fi
14177
14178
14179 CFLAGS="$xorg_testset_save_CFLAGS"
14180
14181 eval supported=\$$cacheid
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14183 $as_echo "$supported" >&6; }
14184 if test "$supported" = "yes" ; then
14185 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14186 found="yes"
14187 fi
14188 fi
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204 xorg_testset_save_CFLAGS="$CFLAGS"
14205
14206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14209 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14210 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 int i;
14216 _ACEOF
14217 if ac_fn_c_try_compile "$LINENO"; then :
14218 xorg_cv_cc_flag_unknown_warning_option=yes
14219 else
14220 xorg_cv_cc_flag_unknown_warning_option=no
14221 fi
14222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14223 fi
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14225 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14227 CFLAGS="$xorg_testset_save_CFLAGS"
14228 fi
14229
14230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14233 fi
14234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14236 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14237 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14242 int i;
14243 _ACEOF
14244 if ac_fn_c_try_compile "$LINENO"; then :
14245 xorg_cv_cc_flag_unused_command_line_argument=yes
14246 else
14247 xorg_cv_cc_flag_unused_command_line_argument=no
14248 fi
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250 fi
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14252 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14254 CFLAGS="$xorg_testset_save_CFLAGS"
14255 fi
14256
14257 found="no"
14258
14259 if test $found = "no" ; then
14260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14262 fi
14263
14264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14266 fi
14267
14268 CFLAGS="$CFLAGS -Wredundant-decls"
14269
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14271 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14272 cacheid=xorg_cv_cc_flag__Wredundant_decls
14273 if eval \${$cacheid+:} false; then :
14274 $as_echo_n "(cached) " >&6
14275 else
14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h. */
14278 int i;
14279 int
14280 main ()
14281 {
14282
14283 ;
14284 return 0;
14285 }
14286 _ACEOF
14287 if ac_fn_c_try_link "$LINENO"; then :
14288 eval $cacheid=yes
14289 else
14290 eval $cacheid=no
14291 fi
14292 rm -f core conftest.err conftest.$ac_objext \
14293 conftest$ac_exeext conftest.$ac_ext
14294 fi
14295
14296
14297 CFLAGS="$xorg_testset_save_CFLAGS"
14298
14299 eval supported=\$$cacheid
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14301 $as_echo "$supported" >&6; }
14302 if test "$supported" = "yes" ; then
14303 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14304 found="yes"
14305 fi
14306 fi
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322 xorg_testset_save_CFLAGS="$CFLAGS"
14323
14324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14327 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14328 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332 /* end confdefs.h. */
14333 int i;
14334 _ACEOF
14335 if ac_fn_c_try_compile "$LINENO"; then :
14336 xorg_cv_cc_flag_unknown_warning_option=yes
14337 else
14338 xorg_cv_cc_flag_unknown_warning_option=no
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14343 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14345 CFLAGS="$xorg_testset_save_CFLAGS"
14346 fi
14347
14348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14351 fi
14352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14354 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14355 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14356 $as_echo_n "(cached) " >&6
14357 else
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14360 int i;
14361 _ACEOF
14362 if ac_fn_c_try_compile "$LINENO"; then :
14363 xorg_cv_cc_flag_unused_command_line_argument=yes
14364 else
14365 xorg_cv_cc_flag_unused_command_line_argument=no
14366 fi
14367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14368 fi
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14370 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14372 CFLAGS="$xorg_testset_save_CFLAGS"
14373 fi
14374
14375 found="no"
14376
14377 if test $found = "no" ; then
14378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14380 fi
14381
14382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14384 fi
14385
14386 CFLAGS="$CFLAGS -Wlogical-op"
14387
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14389 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14390 cacheid=xorg_cv_cc_flag__Wlogical_op
14391 if eval \${$cacheid+:} false; then :
14392 $as_echo_n "(cached) " >&6
14393 else
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396 int i;
14397 int
14398 main ()
14399 {
14400
14401 ;
14402 return 0;
14403 }
14404 _ACEOF
14405 if ac_fn_c_try_link "$LINENO"; then :
14406 eval $cacheid=yes
14407 else
14408 eval $cacheid=no
14409 fi
14410 rm -f core conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14412 fi
14413
14414
14415 CFLAGS="$xorg_testset_save_CFLAGS"
14416
14417 eval supported=\$$cacheid
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14419 $as_echo "$supported" >&6; }
14420 if test "$supported" = "yes" ; then
14421 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14422 found="yes"
14423 fi
14424 fi
14425
14426
14427
14428 # These are currently disabled because they are noisy. They will be enabled
14429 # in the future once the codebase is sufficiently modernized to silence
14430 # them. For now, I don't want them to drown out the other warnings.
14431 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14432 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14433 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14434
14435 # Turn some warnings into errors, so we don't accidently get successful builds
14436 # when there are problems that should be fixed.
14437
14438 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452 xorg_testset_save_CFLAGS="$CFLAGS"
14453
14454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14457 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14458 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14459 $as_echo_n "(cached) " >&6
14460 else
14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14463 int i;
14464 _ACEOF
14465 if ac_fn_c_try_compile "$LINENO"; then :
14466 xorg_cv_cc_flag_unknown_warning_option=yes
14467 else
14468 xorg_cv_cc_flag_unknown_warning_option=no
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14471 fi
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14473 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14475 CFLAGS="$xorg_testset_save_CFLAGS"
14476 fi
14477
14478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14481 fi
14482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14484 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14485 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14490 int i;
14491 _ACEOF
14492 if ac_fn_c_try_compile "$LINENO"; then :
14493 xorg_cv_cc_flag_unused_command_line_argument=yes
14494 else
14495 xorg_cv_cc_flag_unused_command_line_argument=no
14496 fi
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498 fi
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14500 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14502 CFLAGS="$xorg_testset_save_CFLAGS"
14503 fi
14504
14505 found="no"
14506
14507 if test $found = "no" ; then
14508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14510 fi
14511
14512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14514 fi
14515
14516 CFLAGS="$CFLAGS -Werror=implicit"
14517
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14519 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14520 cacheid=xorg_cv_cc_flag__Werror_implicit
14521 if eval \${$cacheid+:} false; then :
14522 $as_echo_n "(cached) " >&6
14523 else
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 int i;
14527 int
14528 main ()
14529 {
14530
14531 ;
14532 return 0;
14533 }
14534 _ACEOF
14535 if ac_fn_c_try_link "$LINENO"; then :
14536 eval $cacheid=yes
14537 else
14538 eval $cacheid=no
14539 fi
14540 rm -f core conftest.err conftest.$ac_objext \
14541 conftest$ac_exeext conftest.$ac_ext
14542 fi
14543
14544
14545 CFLAGS="$xorg_testset_save_CFLAGS"
14546
14547 eval supported=\$$cacheid
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14549 $as_echo "$supported" >&6; }
14550 if test "$supported" = "yes" ; then
14551 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14552 found="yes"
14553 fi
14554 fi
14555
14556 if test $found = "no" ; then
14557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14559 fi
14560
14561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14563 fi
14564
14565 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14566
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14568 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14569 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14570 if eval \${$cacheid+:} 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 int
14577 main ()
14578 {
14579
14580 ;
14581 return 0;
14582 }
14583 _ACEOF
14584 if ac_fn_c_try_link "$LINENO"; then :
14585 eval $cacheid=yes
14586 else
14587 eval $cacheid=no
14588 fi
14589 rm -f core conftest.err conftest.$ac_objext \
14590 conftest$ac_exeext conftest.$ac_ext
14591 fi
14592
14593
14594 CFLAGS="$xorg_testset_save_CFLAGS"
14595
14596 eval supported=\$$cacheid
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14598 $as_echo "$supported" >&6; }
14599 if test "$supported" = "yes" ; then
14600 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14601 found="yes"
14602 fi
14603 fi
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619 xorg_testset_save_CFLAGS="$CFLAGS"
14620
14621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14624 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14625 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14626 $as_echo_n "(cached) " >&6
14627 else
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14630 int i;
14631 _ACEOF
14632 if ac_fn_c_try_compile "$LINENO"; then :
14633 xorg_cv_cc_flag_unknown_warning_option=yes
14634 else
14635 xorg_cv_cc_flag_unknown_warning_option=no
14636 fi
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 fi
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14640 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14642 CFLAGS="$xorg_testset_save_CFLAGS"
14643 fi
14644
14645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14648 fi
14649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14651 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14652 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14653 $as_echo_n "(cached) " >&6
14654 else
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14657 int i;
14658 _ACEOF
14659 if ac_fn_c_try_compile "$LINENO"; then :
14660 xorg_cv_cc_flag_unused_command_line_argument=yes
14661 else
14662 xorg_cv_cc_flag_unused_command_line_argument=no
14663 fi
14664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665 fi
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14667 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14669 CFLAGS="$xorg_testset_save_CFLAGS"
14670 fi
14671
14672 found="no"
14673
14674 if test $found = "no" ; then
14675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14677 fi
14678
14679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14681 fi
14682
14683 CFLAGS="$CFLAGS -Werror=nonnull"
14684
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14686 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14687 cacheid=xorg_cv_cc_flag__Werror_nonnull
14688 if eval \${$cacheid+:} false; then :
14689 $as_echo_n "(cached) " >&6
14690 else
14691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692 /* end confdefs.h. */
14693 int i;
14694 int
14695 main ()
14696 {
14697
14698 ;
14699 return 0;
14700 }
14701 _ACEOF
14702 if ac_fn_c_try_link "$LINENO"; then :
14703 eval $cacheid=yes
14704 else
14705 eval $cacheid=no
14706 fi
14707 rm -f core conftest.err conftest.$ac_objext \
14708 conftest$ac_exeext conftest.$ac_ext
14709 fi
14710
14711
14712 CFLAGS="$xorg_testset_save_CFLAGS"
14713
14714 eval supported=\$$cacheid
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14716 $as_echo "$supported" >&6; }
14717 if test "$supported" = "yes" ; then
14718 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14719 found="yes"
14720 fi
14721 fi
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737 xorg_testset_save_CFLAGS="$CFLAGS"
14738
14739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14744 $as_echo_n "(cached) " >&6
14745 else
14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14748 int i;
14749 _ACEOF
14750 if ac_fn_c_try_compile "$LINENO"; then :
14751 xorg_cv_cc_flag_unknown_warning_option=yes
14752 else
14753 xorg_cv_cc_flag_unknown_warning_option=no
14754 fi
14755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14756 fi
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14760 CFLAGS="$xorg_testset_save_CFLAGS"
14761 fi
14762
14763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14766 fi
14767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772 else
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775 int i;
14776 _ACEOF
14777 if ac_fn_c_try_compile "$LINENO"; then :
14778 xorg_cv_cc_flag_unused_command_line_argument=yes
14779 else
14780 xorg_cv_cc_flag_unused_command_line_argument=no
14781 fi
14782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783 fi
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14787 CFLAGS="$xorg_testset_save_CFLAGS"
14788 fi
14789
14790 found="no"
14791
14792 if test $found = "no" ; then
14793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14795 fi
14796
14797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14799 fi
14800
14801 CFLAGS="$CFLAGS -Werror=init-self"
14802
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14804 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14805 cacheid=xorg_cv_cc_flag__Werror_init_self
14806 if eval \${$cacheid+:} false; then :
14807 $as_echo_n "(cached) " >&6
14808 else
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14811 int i;
14812 int
14813 main ()
14814 {
14815
14816 ;
14817 return 0;
14818 }
14819 _ACEOF
14820 if ac_fn_c_try_link "$LINENO"; then :
14821 eval $cacheid=yes
14822 else
14823 eval $cacheid=no
14824 fi
14825 rm -f core conftest.err conftest.$ac_objext \
14826 conftest$ac_exeext conftest.$ac_ext
14827 fi
14828
14829
14830 CFLAGS="$xorg_testset_save_CFLAGS"
14831
14832 eval supported=\$$cacheid
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14834 $as_echo "$supported" >&6; }
14835 if test "$supported" = "yes" ; then
14836 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14837 found="yes"
14838 fi
14839 fi
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855 xorg_testset_save_CFLAGS="$CFLAGS"
14856
14857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14860 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14861 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14862 $as_echo_n "(cached) " >&6
14863 else
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14866 int i;
14867 _ACEOF
14868 if ac_fn_c_try_compile "$LINENO"; then :
14869 xorg_cv_cc_flag_unknown_warning_option=yes
14870 else
14871 xorg_cv_cc_flag_unknown_warning_option=no
14872 fi
14873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14874 fi
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14876 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14878 CFLAGS="$xorg_testset_save_CFLAGS"
14879 fi
14880
14881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14884 fi
14885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14887 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14888 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14889 $as_echo_n "(cached) " >&6
14890 else
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14893 int i;
14894 _ACEOF
14895 if ac_fn_c_try_compile "$LINENO"; then :
14896 xorg_cv_cc_flag_unused_command_line_argument=yes
14897 else
14898 xorg_cv_cc_flag_unused_command_line_argument=no
14899 fi
14900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14901 fi
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14903 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14905 CFLAGS="$xorg_testset_save_CFLAGS"
14906 fi
14907
14908 found="no"
14909
14910 if test $found = "no" ; then
14911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14913 fi
14914
14915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14917 fi
14918
14919 CFLAGS="$CFLAGS -Werror=main"
14920
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14922 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14923 cacheid=xorg_cv_cc_flag__Werror_main
14924 if eval \${$cacheid+:} false; then :
14925 $as_echo_n "(cached) " >&6
14926 else
14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h. */
14929 int i;
14930 int
14931 main ()
14932 {
14933
14934 ;
14935 return 0;
14936 }
14937 _ACEOF
14938 if ac_fn_c_try_link "$LINENO"; then :
14939 eval $cacheid=yes
14940 else
14941 eval $cacheid=no
14942 fi
14943 rm -f core conftest.err conftest.$ac_objext \
14944 conftest$ac_exeext conftest.$ac_ext
14945 fi
14946
14947
14948 CFLAGS="$xorg_testset_save_CFLAGS"
14949
14950 eval supported=\$$cacheid
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14952 $as_echo "$supported" >&6; }
14953 if test "$supported" = "yes" ; then
14954 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14955 found="yes"
14956 fi
14957 fi
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973 xorg_testset_save_CFLAGS="$CFLAGS"
14974
14975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14980 $as_echo_n "(cached) " >&6
14981 else
14982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14983 /* end confdefs.h. */
14984 int i;
14985 _ACEOF
14986 if ac_fn_c_try_compile "$LINENO"; then :
14987 xorg_cv_cc_flag_unknown_warning_option=yes
14988 else
14989 xorg_cv_cc_flag_unknown_warning_option=no
14990 fi
14991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14992 fi
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14996 CFLAGS="$xorg_testset_save_CFLAGS"
14997 fi
14998
14999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15002 fi
15003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15007 $as_echo_n "(cached) " >&6
15008 else
15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15011 int i;
15012 _ACEOF
15013 if ac_fn_c_try_compile "$LINENO"; then :
15014 xorg_cv_cc_flag_unused_command_line_argument=yes
15015 else
15016 xorg_cv_cc_flag_unused_command_line_argument=no
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019 fi
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15023 CFLAGS="$xorg_testset_save_CFLAGS"
15024 fi
15025
15026 found="no"
15027
15028 if test $found = "no" ; then
15029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15031 fi
15032
15033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15035 fi
15036
15037 CFLAGS="$CFLAGS -Werror=missing-braces"
15038
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15040 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15041 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15042 if eval \${$cacheid+:} false; then :
15043 $as_echo_n "(cached) " >&6
15044 else
15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15047 int i;
15048 int
15049 main ()
15050 {
15051
15052 ;
15053 return 0;
15054 }
15055 _ACEOF
15056 if ac_fn_c_try_link "$LINENO"; then :
15057 eval $cacheid=yes
15058 else
15059 eval $cacheid=no
15060 fi
15061 rm -f core conftest.err conftest.$ac_objext \
15062 conftest$ac_exeext conftest.$ac_ext
15063 fi
15064
15065
15066 CFLAGS="$xorg_testset_save_CFLAGS"
15067
15068 eval supported=\$$cacheid
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15070 $as_echo "$supported" >&6; }
15071 if test "$supported" = "yes" ; then
15072 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15073 found="yes"
15074 fi
15075 fi
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091 xorg_testset_save_CFLAGS="$CFLAGS"
15092
15093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15096 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15097 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15098 $as_echo_n "(cached) " >&6
15099 else
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 int i;
15103 _ACEOF
15104 if ac_fn_c_try_compile "$LINENO"; then :
15105 xorg_cv_cc_flag_unknown_warning_option=yes
15106 else
15107 xorg_cv_cc_flag_unknown_warning_option=no
15108 fi
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 fi
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15112 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15114 CFLAGS="$xorg_testset_save_CFLAGS"
15115 fi
15116
15117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15120 fi
15121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15123 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15124 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15129 int i;
15130 _ACEOF
15131 if ac_fn_c_try_compile "$LINENO"; then :
15132 xorg_cv_cc_flag_unused_command_line_argument=yes
15133 else
15134 xorg_cv_cc_flag_unused_command_line_argument=no
15135 fi
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 fi
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15139 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15141 CFLAGS="$xorg_testset_save_CFLAGS"
15142 fi
15143
15144 found="no"
15145
15146 if test $found = "no" ; then
15147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15149 fi
15150
15151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15153 fi
15154
15155 CFLAGS="$CFLAGS -Werror=sequence-point"
15156
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15158 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15159 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15160 if eval \${$cacheid+:} false; then :
15161 $as_echo_n "(cached) " >&6
15162 else
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165 int i;
15166 int
15167 main ()
15168 {
15169
15170 ;
15171 return 0;
15172 }
15173 _ACEOF
15174 if ac_fn_c_try_link "$LINENO"; then :
15175 eval $cacheid=yes
15176 else
15177 eval $cacheid=no
15178 fi
15179 rm -f core conftest.err conftest.$ac_objext \
15180 conftest$ac_exeext conftest.$ac_ext
15181 fi
15182
15183
15184 CFLAGS="$xorg_testset_save_CFLAGS"
15185
15186 eval supported=\$$cacheid
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15188 $as_echo "$supported" >&6; }
15189 if test "$supported" = "yes" ; then
15190 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15191 found="yes"
15192 fi
15193 fi
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209 xorg_testset_save_CFLAGS="$CFLAGS"
15210
15211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15214 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15215 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220 int i;
15221 _ACEOF
15222 if ac_fn_c_try_compile "$LINENO"; then :
15223 xorg_cv_cc_flag_unknown_warning_option=yes
15224 else
15225 xorg_cv_cc_flag_unknown_warning_option=no
15226 fi
15227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228 fi
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15230 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15232 CFLAGS="$xorg_testset_save_CFLAGS"
15233 fi
15234
15235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15238 fi
15239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15241 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15242 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15243 $as_echo_n "(cached) " >&6
15244 else
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 int i;
15248 _ACEOF
15249 if ac_fn_c_try_compile "$LINENO"; then :
15250 xorg_cv_cc_flag_unused_command_line_argument=yes
15251 else
15252 xorg_cv_cc_flag_unused_command_line_argument=no
15253 fi
15254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15255 fi
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15257 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15259 CFLAGS="$xorg_testset_save_CFLAGS"
15260 fi
15261
15262 found="no"
15263
15264 if test $found = "no" ; then
15265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15267 fi
15268
15269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15271 fi
15272
15273 CFLAGS="$CFLAGS -Werror=return-type"
15274
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15276 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15277 cacheid=xorg_cv_cc_flag__Werror_return_type
15278 if eval \${$cacheid+:} false; then :
15279 $as_echo_n "(cached) " >&6
15280 else
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15283 int i;
15284 int
15285 main ()
15286 {
15287
15288 ;
15289 return 0;
15290 }
15291 _ACEOF
15292 if ac_fn_c_try_link "$LINENO"; then :
15293 eval $cacheid=yes
15294 else
15295 eval $cacheid=no
15296 fi
15297 rm -f core conftest.err conftest.$ac_objext \
15298 conftest$ac_exeext conftest.$ac_ext
15299 fi
15300
15301
15302 CFLAGS="$xorg_testset_save_CFLAGS"
15303
15304 eval supported=\$$cacheid
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15306 $as_echo "$supported" >&6; }
15307 if test "$supported" = "yes" ; then
15308 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15309 found="yes"
15310 fi
15311 fi
15312
15313 if test $found = "no" ; then
15314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15316 fi
15317
15318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15320 fi
15321
15322 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15323
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15325 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15326 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15327 if eval \${$cacheid+:} 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 int
15334 main ()
15335 {
15336
15337 ;
15338 return 0;
15339 }
15340 _ACEOF
15341 if ac_fn_c_try_link "$LINENO"; then :
15342 eval $cacheid=yes
15343 else
15344 eval $cacheid=no
15345 fi
15346 rm -f core conftest.err conftest.$ac_objext \
15347 conftest$ac_exeext conftest.$ac_ext
15348 fi
15349
15350
15351 CFLAGS="$xorg_testset_save_CFLAGS"
15352
15353 eval supported=\$$cacheid
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15355 $as_echo "$supported" >&6; }
15356 if test "$supported" = "yes" ; then
15357 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15358 found="yes"
15359 fi
15360 fi
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376 xorg_testset_save_CFLAGS="$CFLAGS"
15377
15378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15381 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15382 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15383 $as_echo_n "(cached) " >&6
15384 else
15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15387 int i;
15388 _ACEOF
15389 if ac_fn_c_try_compile "$LINENO"; then :
15390 xorg_cv_cc_flag_unknown_warning_option=yes
15391 else
15392 xorg_cv_cc_flag_unknown_warning_option=no
15393 fi
15394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395 fi
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15397 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15399 CFLAGS="$xorg_testset_save_CFLAGS"
15400 fi
15401
15402 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15405 fi
15406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15408 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15409 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15410 $as_echo_n "(cached) " >&6
15411 else
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15414 int i;
15415 _ACEOF
15416 if ac_fn_c_try_compile "$LINENO"; then :
15417 xorg_cv_cc_flag_unused_command_line_argument=yes
15418 else
15419 xorg_cv_cc_flag_unused_command_line_argument=no
15420 fi
15421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422 fi
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15424 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15426 CFLAGS="$xorg_testset_save_CFLAGS"
15427 fi
15428
15429 found="no"
15430
15431 if test $found = "no" ; then
15432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15434 fi
15435
15436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15438 fi
15439
15440 CFLAGS="$CFLAGS -Werror=trigraphs"
15441
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15443 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15444 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15445 if eval \${$cacheid+:} false; then :
15446 $as_echo_n "(cached) " >&6
15447 else
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15450 int i;
15451 int
15452 main ()
15453 {
15454
15455 ;
15456 return 0;
15457 }
15458 _ACEOF
15459 if ac_fn_c_try_link "$LINENO"; then :
15460 eval $cacheid=yes
15461 else
15462 eval $cacheid=no
15463 fi
15464 rm -f core conftest.err conftest.$ac_objext \
15465 conftest$ac_exeext conftest.$ac_ext
15466 fi
15467
15468
15469 CFLAGS="$xorg_testset_save_CFLAGS"
15470
15471 eval supported=\$$cacheid
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15473 $as_echo "$supported" >&6; }
15474 if test "$supported" = "yes" ; then
15475 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15476 found="yes"
15477 fi
15478 fi
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494 xorg_testset_save_CFLAGS="$CFLAGS"
15495
15496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15499 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15500 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15501 $as_echo_n "(cached) " >&6
15502 else
15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h. */
15505 int i;
15506 _ACEOF
15507 if ac_fn_c_try_compile "$LINENO"; then :
15508 xorg_cv_cc_flag_unknown_warning_option=yes
15509 else
15510 xorg_cv_cc_flag_unknown_warning_option=no
15511 fi
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513 fi
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15515 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15517 CFLAGS="$xorg_testset_save_CFLAGS"
15518 fi
15519
15520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15523 fi
15524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15526 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15527 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15528 $as_echo_n "(cached) " >&6
15529 else
15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15532 int i;
15533 _ACEOF
15534 if ac_fn_c_try_compile "$LINENO"; then :
15535 xorg_cv_cc_flag_unused_command_line_argument=yes
15536 else
15537 xorg_cv_cc_flag_unused_command_line_argument=no
15538 fi
15539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 fi
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15542 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15544 CFLAGS="$xorg_testset_save_CFLAGS"
15545 fi
15546
15547 found="no"
15548
15549 if test $found = "no" ; then
15550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15552 fi
15553
15554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15556 fi
15557
15558 CFLAGS="$CFLAGS -Werror=array-bounds"
15559
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15561 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15562 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15563 if eval \${$cacheid+:} false; then :
15564 $as_echo_n "(cached) " >&6
15565 else
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15568 int i;
15569 int
15570 main ()
15571 {
15572
15573 ;
15574 return 0;
15575 }
15576 _ACEOF
15577 if ac_fn_c_try_link "$LINENO"; then :
15578 eval $cacheid=yes
15579 else
15580 eval $cacheid=no
15581 fi
15582 rm -f core conftest.err conftest.$ac_objext \
15583 conftest$ac_exeext conftest.$ac_ext
15584 fi
15585
15586
15587 CFLAGS="$xorg_testset_save_CFLAGS"
15588
15589 eval supported=\$$cacheid
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15591 $as_echo "$supported" >&6; }
15592 if test "$supported" = "yes" ; then
15593 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15594 found="yes"
15595 fi
15596 fi
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612 xorg_testset_save_CFLAGS="$CFLAGS"
15613
15614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15617 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15618 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15619 $as_echo_n "(cached) " >&6
15620 else
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15623 int i;
15624 _ACEOF
15625 if ac_fn_c_try_compile "$LINENO"; then :
15626 xorg_cv_cc_flag_unknown_warning_option=yes
15627 else
15628 xorg_cv_cc_flag_unknown_warning_option=no
15629 fi
15630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15631 fi
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15633 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15635 CFLAGS="$xorg_testset_save_CFLAGS"
15636 fi
15637
15638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15641 fi
15642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15644 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15645 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15646 $as_echo_n "(cached) " >&6
15647 else
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15650 int i;
15651 _ACEOF
15652 if ac_fn_c_try_compile "$LINENO"; then :
15653 xorg_cv_cc_flag_unused_command_line_argument=yes
15654 else
15655 xorg_cv_cc_flag_unused_command_line_argument=no
15656 fi
15657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658 fi
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15660 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15662 CFLAGS="$xorg_testset_save_CFLAGS"
15663 fi
15664
15665 found="no"
15666
15667 if test $found = "no" ; then
15668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15670 fi
15671
15672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15674 fi
15675
15676 CFLAGS="$CFLAGS -Werror=write-strings"
15677
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15679 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15680 cacheid=xorg_cv_cc_flag__Werror_write_strings
15681 if eval \${$cacheid+:} false; then :
15682 $as_echo_n "(cached) " >&6
15683 else
15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h. */
15686 int i;
15687 int
15688 main ()
15689 {
15690
15691 ;
15692 return 0;
15693 }
15694 _ACEOF
15695 if ac_fn_c_try_link "$LINENO"; then :
15696 eval $cacheid=yes
15697 else
15698 eval $cacheid=no
15699 fi
15700 rm -f core conftest.err conftest.$ac_objext \
15701 conftest$ac_exeext conftest.$ac_ext
15702 fi
15703
15704
15705 CFLAGS="$xorg_testset_save_CFLAGS"
15706
15707 eval supported=\$$cacheid
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15709 $as_echo "$supported" >&6; }
15710 if test "$supported" = "yes" ; then
15711 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15712 found="yes"
15713 fi
15714 fi
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730 xorg_testset_save_CFLAGS="$CFLAGS"
15731
15732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15735 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15736 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15737 $as_echo_n "(cached) " >&6
15738 else
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 int i;
15742 _ACEOF
15743 if ac_fn_c_try_compile "$LINENO"; then :
15744 xorg_cv_cc_flag_unknown_warning_option=yes
15745 else
15746 xorg_cv_cc_flag_unknown_warning_option=no
15747 fi
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15749 fi
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15751 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15753 CFLAGS="$xorg_testset_save_CFLAGS"
15754 fi
15755
15756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15759 fi
15760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15762 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15763 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15764 $as_echo_n "(cached) " >&6
15765 else
15766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767 /* end confdefs.h. */
15768 int i;
15769 _ACEOF
15770 if ac_fn_c_try_compile "$LINENO"; then :
15771 xorg_cv_cc_flag_unused_command_line_argument=yes
15772 else
15773 xorg_cv_cc_flag_unused_command_line_argument=no
15774 fi
15775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776 fi
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15778 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15780 CFLAGS="$xorg_testset_save_CFLAGS"
15781 fi
15782
15783 found="no"
15784
15785 if test $found = "no" ; then
15786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15788 fi
15789
15790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15792 fi
15793
15794 CFLAGS="$CFLAGS -Werror=address"
15795
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15797 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15798 cacheid=xorg_cv_cc_flag__Werror_address
15799 if eval \${$cacheid+:} false; then :
15800 $as_echo_n "(cached) " >&6
15801 else
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804 int i;
15805 int
15806 main ()
15807 {
15808
15809 ;
15810 return 0;
15811 }
15812 _ACEOF
15813 if ac_fn_c_try_link "$LINENO"; then :
15814 eval $cacheid=yes
15815 else
15816 eval $cacheid=no
15817 fi
15818 rm -f core conftest.err conftest.$ac_objext \
15819 conftest$ac_exeext conftest.$ac_ext
15820 fi
15821
15822
15823 CFLAGS="$xorg_testset_save_CFLAGS"
15824
15825 eval supported=\$$cacheid
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15827 $as_echo "$supported" >&6; }
15828 if test "$supported" = "yes" ; then
15829 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15830 found="yes"
15831 fi
15832 fi
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848 xorg_testset_save_CFLAGS="$CFLAGS"
15849
15850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15853 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15854 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15859 int i;
15860 _ACEOF
15861 if ac_fn_c_try_compile "$LINENO"; then :
15862 xorg_cv_cc_flag_unknown_warning_option=yes
15863 else
15864 xorg_cv_cc_flag_unknown_warning_option=no
15865 fi
15866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15867 fi
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15869 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15871 CFLAGS="$xorg_testset_save_CFLAGS"
15872 fi
15873
15874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15877 fi
15878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15880 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15881 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15882 $as_echo_n "(cached) " >&6
15883 else
15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15886 int i;
15887 _ACEOF
15888 if ac_fn_c_try_compile "$LINENO"; then :
15889 xorg_cv_cc_flag_unused_command_line_argument=yes
15890 else
15891 xorg_cv_cc_flag_unused_command_line_argument=no
15892 fi
15893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15894 fi
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15896 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15898 CFLAGS="$xorg_testset_save_CFLAGS"
15899 fi
15900
15901 found="no"
15902
15903 if test $found = "no" ; then
15904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15906 fi
15907
15908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15910 fi
15911
15912 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15913
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15915 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15916 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15917 if eval \${$cacheid+:} false; then :
15918 $as_echo_n "(cached) " >&6
15919 else
15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921 /* end confdefs.h. */
15922 int i;
15923 int
15924 main ()
15925 {
15926
15927 ;
15928 return 0;
15929 }
15930 _ACEOF
15931 if ac_fn_c_try_link "$LINENO"; then :
15932 eval $cacheid=yes
15933 else
15934 eval $cacheid=no
15935 fi
15936 rm -f core conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15938 fi
15939
15940
15941 CFLAGS="$xorg_testset_save_CFLAGS"
15942
15943 eval supported=\$$cacheid
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15945 $as_echo "$supported" >&6; }
15946 if test "$supported" = "yes" ; then
15947 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15948 found="yes"
15949 fi
15950 fi
15951
15952 if test $found = "no" ; then
15953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15955 fi
15956
15957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15959 fi
15960
15961 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15962
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15964 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15965 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15966 if eval \${$cacheid+:} 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 int
15973 main ()
15974 {
15975
15976 ;
15977 return 0;
15978 }
15979 _ACEOF
15980 if ac_fn_c_try_link "$LINENO"; then :
15981 eval $cacheid=yes
15982 else
15983 eval $cacheid=no
15984 fi
15985 rm -f core conftest.err conftest.$ac_objext \
15986 conftest$ac_exeext conftest.$ac_ext
15987 fi
15988
15989
15990 CFLAGS="$xorg_testset_save_CFLAGS"
15991
15992 eval supported=\$$cacheid
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15994 $as_echo "$supported" >&6; }
15995 if test "$supported" = "yes" ; then
15996 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15997 found="yes"
15998 fi
15999 fi
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015 xorg_testset_save_CFLAGS="$CFLAGS"
16016
16017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16020 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16021 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16022 $as_echo_n "(cached) " >&6
16023 else
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16026 int i;
16027 _ACEOF
16028 if ac_fn_c_try_compile "$LINENO"; then :
16029 xorg_cv_cc_flag_unknown_warning_option=yes
16030 else
16031 xorg_cv_cc_flag_unknown_warning_option=no
16032 fi
16033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034 fi
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16036 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16038 CFLAGS="$xorg_testset_save_CFLAGS"
16039 fi
16040
16041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16044 fi
16045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16047 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16048 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16049 $as_echo_n "(cached) " >&6
16050 else
16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16053 int i;
16054 _ACEOF
16055 if ac_fn_c_try_compile "$LINENO"; then :
16056 xorg_cv_cc_flag_unused_command_line_argument=yes
16057 else
16058 xorg_cv_cc_flag_unused_command_line_argument=no
16059 fi
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 fi
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16063 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16065 CFLAGS="$xorg_testset_save_CFLAGS"
16066 fi
16067
16068 found="no"
16069
16070 if test $found = "no" ; then
16071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16073 fi
16074
16075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16077 fi
16078
16079 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16080
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16082 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16083 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16084 if eval \${$cacheid+:} false; then :
16085 $as_echo_n "(cached) " >&6
16086 else
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089 int i;
16090 int
16091 main ()
16092 {
16093
16094 ;
16095 return 0;
16096 }
16097 _ACEOF
16098 if ac_fn_c_try_link "$LINENO"; then :
16099 eval $cacheid=yes
16100 else
16101 eval $cacheid=no
16102 fi
16103 rm -f core conftest.err conftest.$ac_objext \
16104 conftest$ac_exeext conftest.$ac_ext
16105 fi
16106
16107
16108 CFLAGS="$xorg_testset_save_CFLAGS"
16109
16110 eval supported=\$$cacheid
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16112 $as_echo "$supported" >&6; }
16113 if test "$supported" = "yes" ; then
16114 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16115 found="yes"
16116 fi
16117 fi
16118
16119 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16120 else
16121 { $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
16122 $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;}
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136 xorg_testset_save_CFLAGS="$CFLAGS"
16137
16138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16141 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16142 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16143 $as_echo_n "(cached) " >&6
16144 else
16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146 /* end confdefs.h. */
16147 int i;
16148 _ACEOF
16149 if ac_fn_c_try_compile "$LINENO"; then :
16150 xorg_cv_cc_flag_unknown_warning_option=yes
16151 else
16152 xorg_cv_cc_flag_unknown_warning_option=no
16153 fi
16154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16155 fi
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16157 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16159 CFLAGS="$xorg_testset_save_CFLAGS"
16160 fi
16161
16162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16165 fi
16166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16168 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16169 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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 _ACEOF
16176 if ac_fn_c_try_compile "$LINENO"; then :
16177 xorg_cv_cc_flag_unused_command_line_argument=yes
16178 else
16179 xorg_cv_cc_flag_unused_command_line_argument=no
16180 fi
16181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16182 fi
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16184 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16186 CFLAGS="$xorg_testset_save_CFLAGS"
16187 fi
16188
16189 found="no"
16190
16191 if test $found = "no" ; then
16192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16194 fi
16195
16196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16198 fi
16199
16200 CFLAGS="$CFLAGS -Wimplicit"
16201
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16203 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16204 cacheid=xorg_cv_cc_flag__Wimplicit
16205 if eval \${$cacheid+:} false; then :
16206 $as_echo_n "(cached) " >&6
16207 else
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16210 int i;
16211 int
16212 main ()
16213 {
16214
16215 ;
16216 return 0;
16217 }
16218 _ACEOF
16219 if ac_fn_c_try_link "$LINENO"; then :
16220 eval $cacheid=yes
16221 else
16222 eval $cacheid=no
16223 fi
16224 rm -f core conftest.err conftest.$ac_objext \
16225 conftest$ac_exeext conftest.$ac_ext
16226 fi
16227
16228
16229 CFLAGS="$xorg_testset_save_CFLAGS"
16230
16231 eval supported=\$$cacheid
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16233 $as_echo "$supported" >&6; }
16234 if test "$supported" = "yes" ; then
16235 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16236 found="yes"
16237 fi
16238 fi
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254 xorg_testset_save_CFLAGS="$CFLAGS"
16255
16256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16259 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16260 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16261 $as_echo_n "(cached) " >&6
16262 else
16263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264 /* end confdefs.h. */
16265 int i;
16266 _ACEOF
16267 if ac_fn_c_try_compile "$LINENO"; then :
16268 xorg_cv_cc_flag_unknown_warning_option=yes
16269 else
16270 xorg_cv_cc_flag_unknown_warning_option=no
16271 fi
16272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273 fi
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16275 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16277 CFLAGS="$xorg_testset_save_CFLAGS"
16278 fi
16279
16280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16282 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16283 fi
16284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16286 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16287 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16288 $as_echo_n "(cached) " >&6
16289 else
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 int i;
16293 _ACEOF
16294 if ac_fn_c_try_compile "$LINENO"; then :
16295 xorg_cv_cc_flag_unused_command_line_argument=yes
16296 else
16297 xorg_cv_cc_flag_unused_command_line_argument=no
16298 fi
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300 fi
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16302 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16304 CFLAGS="$xorg_testset_save_CFLAGS"
16305 fi
16306
16307 found="no"
16308
16309 if test $found = "no" ; then
16310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16312 fi
16313
16314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16316 fi
16317
16318 CFLAGS="$CFLAGS -Wnonnull"
16319
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16321 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16322 cacheid=xorg_cv_cc_flag__Wnonnull
16323 if eval \${$cacheid+:} false; then :
16324 $as_echo_n "(cached) " >&6
16325 else
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16328 int i;
16329 int
16330 main ()
16331 {
16332
16333 ;
16334 return 0;
16335 }
16336 _ACEOF
16337 if ac_fn_c_try_link "$LINENO"; then :
16338 eval $cacheid=yes
16339 else
16340 eval $cacheid=no
16341 fi
16342 rm -f core conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
16344 fi
16345
16346
16347 CFLAGS="$xorg_testset_save_CFLAGS"
16348
16349 eval supported=\$$cacheid
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16351 $as_echo "$supported" >&6; }
16352 if test "$supported" = "yes" ; then
16353 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16354 found="yes"
16355 fi
16356 fi
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372 xorg_testset_save_CFLAGS="$CFLAGS"
16373
16374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16377 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16378 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16379 $as_echo_n "(cached) " >&6
16380 else
16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382 /* end confdefs.h. */
16383 int i;
16384 _ACEOF
16385 if ac_fn_c_try_compile "$LINENO"; then :
16386 xorg_cv_cc_flag_unknown_warning_option=yes
16387 else
16388 xorg_cv_cc_flag_unknown_warning_option=no
16389 fi
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 fi
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16393 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16395 CFLAGS="$xorg_testset_save_CFLAGS"
16396 fi
16397
16398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16401 fi
16402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16404 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16405 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16406 $as_echo_n "(cached) " >&6
16407 else
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16410 int i;
16411 _ACEOF
16412 if ac_fn_c_try_compile "$LINENO"; then :
16413 xorg_cv_cc_flag_unused_command_line_argument=yes
16414 else
16415 xorg_cv_cc_flag_unused_command_line_argument=no
16416 fi
16417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16418 fi
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16420 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16422 CFLAGS="$xorg_testset_save_CFLAGS"
16423 fi
16424
16425 found="no"
16426
16427 if test $found = "no" ; then
16428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16430 fi
16431
16432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16434 fi
16435
16436 CFLAGS="$CFLAGS -Winit-self"
16437
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16439 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16440 cacheid=xorg_cv_cc_flag__Winit_self
16441 if eval \${$cacheid+:} false; then :
16442 $as_echo_n "(cached) " >&6
16443 else
16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16446 int i;
16447 int
16448 main ()
16449 {
16450
16451 ;
16452 return 0;
16453 }
16454 _ACEOF
16455 if ac_fn_c_try_link "$LINENO"; then :
16456 eval $cacheid=yes
16457 else
16458 eval $cacheid=no
16459 fi
16460 rm -f core conftest.err conftest.$ac_objext \
16461 conftest$ac_exeext conftest.$ac_ext
16462 fi
16463
16464
16465 CFLAGS="$xorg_testset_save_CFLAGS"
16466
16467 eval supported=\$$cacheid
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16469 $as_echo "$supported" >&6; }
16470 if test "$supported" = "yes" ; then
16471 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16472 found="yes"
16473 fi
16474 fi
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490 xorg_testset_save_CFLAGS="$CFLAGS"
16491
16492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16495 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16496 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16497 $as_echo_n "(cached) " >&6
16498 else
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501 int i;
16502 _ACEOF
16503 if ac_fn_c_try_compile "$LINENO"; then :
16504 xorg_cv_cc_flag_unknown_warning_option=yes
16505 else
16506 xorg_cv_cc_flag_unknown_warning_option=no
16507 fi
16508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16509 fi
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16511 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16513 CFLAGS="$xorg_testset_save_CFLAGS"
16514 fi
16515
16516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16519 fi
16520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16522 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16523 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16524 $as_echo_n "(cached) " >&6
16525 else
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16528 int i;
16529 _ACEOF
16530 if ac_fn_c_try_compile "$LINENO"; then :
16531 xorg_cv_cc_flag_unused_command_line_argument=yes
16532 else
16533 xorg_cv_cc_flag_unused_command_line_argument=no
16534 fi
16535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16536 fi
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16538 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16540 CFLAGS="$xorg_testset_save_CFLAGS"
16541 fi
16542
16543 found="no"
16544
16545 if test $found = "no" ; then
16546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16548 fi
16549
16550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16552 fi
16553
16554 CFLAGS="$CFLAGS -Wmain"
16555
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16557 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16558 cacheid=xorg_cv_cc_flag__Wmain
16559 if eval \${$cacheid+:} false; then :
16560 $as_echo_n "(cached) " >&6
16561 else
16562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h. */
16564 int i;
16565 int
16566 main ()
16567 {
16568
16569 ;
16570 return 0;
16571 }
16572 _ACEOF
16573 if ac_fn_c_try_link "$LINENO"; then :
16574 eval $cacheid=yes
16575 else
16576 eval $cacheid=no
16577 fi
16578 rm -f core conftest.err conftest.$ac_objext \
16579 conftest$ac_exeext conftest.$ac_ext
16580 fi
16581
16582
16583 CFLAGS="$xorg_testset_save_CFLAGS"
16584
16585 eval supported=\$$cacheid
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16587 $as_echo "$supported" >&6; }
16588 if test "$supported" = "yes" ; then
16589 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16590 found="yes"
16591 fi
16592 fi
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608 xorg_testset_save_CFLAGS="$CFLAGS"
16609
16610 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16613 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16614 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16615 $as_echo_n "(cached) " >&6
16616 else
16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16619 int i;
16620 _ACEOF
16621 if ac_fn_c_try_compile "$LINENO"; then :
16622 xorg_cv_cc_flag_unknown_warning_option=yes
16623 else
16624 xorg_cv_cc_flag_unknown_warning_option=no
16625 fi
16626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627 fi
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16629 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16631 CFLAGS="$xorg_testset_save_CFLAGS"
16632 fi
16633
16634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16637 fi
16638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16640 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16641 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16642 $as_echo_n "(cached) " >&6
16643 else
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16646 int i;
16647 _ACEOF
16648 if ac_fn_c_try_compile "$LINENO"; then :
16649 xorg_cv_cc_flag_unused_command_line_argument=yes
16650 else
16651 xorg_cv_cc_flag_unused_command_line_argument=no
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16654 fi
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16656 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16658 CFLAGS="$xorg_testset_save_CFLAGS"
16659 fi
16660
16661 found="no"
16662
16663 if test $found = "no" ; then
16664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16666 fi
16667
16668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16670 fi
16671
16672 CFLAGS="$CFLAGS -Wmissing-braces"
16673
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16675 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16676 cacheid=xorg_cv_cc_flag__Wmissing_braces
16677 if eval \${$cacheid+:} false; then :
16678 $as_echo_n "(cached) " >&6
16679 else
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16682 int i;
16683 int
16684 main ()
16685 {
16686
16687 ;
16688 return 0;
16689 }
16690 _ACEOF
16691 if ac_fn_c_try_link "$LINENO"; then :
16692 eval $cacheid=yes
16693 else
16694 eval $cacheid=no
16695 fi
16696 rm -f core conftest.err conftest.$ac_objext \
16697 conftest$ac_exeext conftest.$ac_ext
16698 fi
16699
16700
16701 CFLAGS="$xorg_testset_save_CFLAGS"
16702
16703 eval supported=\$$cacheid
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16705 $as_echo "$supported" >&6; }
16706 if test "$supported" = "yes" ; then
16707 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16708 found="yes"
16709 fi
16710 fi
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726 xorg_testset_save_CFLAGS="$CFLAGS"
16727
16728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16731 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16732 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16733 $as_echo_n "(cached) " >&6
16734 else
16735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736 /* end confdefs.h. */
16737 int i;
16738 _ACEOF
16739 if ac_fn_c_try_compile "$LINENO"; then :
16740 xorg_cv_cc_flag_unknown_warning_option=yes
16741 else
16742 xorg_cv_cc_flag_unknown_warning_option=no
16743 fi
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745 fi
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16747 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16749 CFLAGS="$xorg_testset_save_CFLAGS"
16750 fi
16751
16752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16755 fi
16756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16758 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16759 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16760 $as_echo_n "(cached) " >&6
16761 else
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764 int i;
16765 _ACEOF
16766 if ac_fn_c_try_compile "$LINENO"; then :
16767 xorg_cv_cc_flag_unused_command_line_argument=yes
16768 else
16769 xorg_cv_cc_flag_unused_command_line_argument=no
16770 fi
16771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 fi
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16774 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16776 CFLAGS="$xorg_testset_save_CFLAGS"
16777 fi
16778
16779 found="no"
16780
16781 if test $found = "no" ; then
16782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16784 fi
16785
16786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16788 fi
16789
16790 CFLAGS="$CFLAGS -Wsequence-point"
16791
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16793 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16794 cacheid=xorg_cv_cc_flag__Wsequence_point
16795 if eval \${$cacheid+:} false; then :
16796 $as_echo_n "(cached) " >&6
16797 else
16798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16800 int i;
16801 int
16802 main ()
16803 {
16804
16805 ;
16806 return 0;
16807 }
16808 _ACEOF
16809 if ac_fn_c_try_link "$LINENO"; then :
16810 eval $cacheid=yes
16811 else
16812 eval $cacheid=no
16813 fi
16814 rm -f core conftest.err conftest.$ac_objext \
16815 conftest$ac_exeext conftest.$ac_ext
16816 fi
16817
16818
16819 CFLAGS="$xorg_testset_save_CFLAGS"
16820
16821 eval supported=\$$cacheid
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16823 $as_echo "$supported" >&6; }
16824 if test "$supported" = "yes" ; then
16825 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16826 found="yes"
16827 fi
16828 fi
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844 xorg_testset_save_CFLAGS="$CFLAGS"
16845
16846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16849 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16850 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16851 $as_echo_n "(cached) " >&6
16852 else
16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h. */
16855 int i;
16856 _ACEOF
16857 if ac_fn_c_try_compile "$LINENO"; then :
16858 xorg_cv_cc_flag_unknown_warning_option=yes
16859 else
16860 xorg_cv_cc_flag_unknown_warning_option=no
16861 fi
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 fi
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16865 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16867 CFLAGS="$xorg_testset_save_CFLAGS"
16868 fi
16869
16870 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16873 fi
16874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16876 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16877 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16878 $as_echo_n "(cached) " >&6
16879 else
16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h. */
16882 int i;
16883 _ACEOF
16884 if ac_fn_c_try_compile "$LINENO"; then :
16885 xorg_cv_cc_flag_unused_command_line_argument=yes
16886 else
16887 xorg_cv_cc_flag_unused_command_line_argument=no
16888 fi
16889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16890 fi
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16892 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16894 CFLAGS="$xorg_testset_save_CFLAGS"
16895 fi
16896
16897 found="no"
16898
16899 if test $found = "no" ; then
16900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16902 fi
16903
16904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16906 fi
16907
16908 CFLAGS="$CFLAGS -Wreturn-type"
16909
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16911 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16912 cacheid=xorg_cv_cc_flag__Wreturn_type
16913 if eval \${$cacheid+:} false; then :
16914 $as_echo_n "(cached) " >&6
16915 else
16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917 /* end confdefs.h. */
16918 int i;
16919 int
16920 main ()
16921 {
16922
16923 ;
16924 return 0;
16925 }
16926 _ACEOF
16927 if ac_fn_c_try_link "$LINENO"; then :
16928 eval $cacheid=yes
16929 else
16930 eval $cacheid=no
16931 fi
16932 rm -f core conftest.err conftest.$ac_objext \
16933 conftest$ac_exeext conftest.$ac_ext
16934 fi
16935
16936
16937 CFLAGS="$xorg_testset_save_CFLAGS"
16938
16939 eval supported=\$$cacheid
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16941 $as_echo "$supported" >&6; }
16942 if test "$supported" = "yes" ; then
16943 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16944 found="yes"
16945 fi
16946 fi
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962 xorg_testset_save_CFLAGS="$CFLAGS"
16963
16964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16967 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16968 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16969 $as_echo_n "(cached) " >&6
16970 else
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16973 int i;
16974 _ACEOF
16975 if ac_fn_c_try_compile "$LINENO"; then :
16976 xorg_cv_cc_flag_unknown_warning_option=yes
16977 else
16978 xorg_cv_cc_flag_unknown_warning_option=no
16979 fi
16980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16981 fi
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16983 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16985 CFLAGS="$xorg_testset_save_CFLAGS"
16986 fi
16987
16988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16991 fi
16992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16994 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16995 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16996 $as_echo_n "(cached) " >&6
16997 else
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17000 int i;
17001 _ACEOF
17002 if ac_fn_c_try_compile "$LINENO"; then :
17003 xorg_cv_cc_flag_unused_command_line_argument=yes
17004 else
17005 xorg_cv_cc_flag_unused_command_line_argument=no
17006 fi
17007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17008 fi
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17010 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17012 CFLAGS="$xorg_testset_save_CFLAGS"
17013 fi
17014
17015 found="no"
17016
17017 if test $found = "no" ; then
17018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17020 fi
17021
17022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17024 fi
17025
17026 CFLAGS="$CFLAGS -Wtrigraphs"
17027
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17029 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17030 cacheid=xorg_cv_cc_flag__Wtrigraphs
17031 if eval \${$cacheid+:} false; then :
17032 $as_echo_n "(cached) " >&6
17033 else
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17036 int i;
17037 int
17038 main ()
17039 {
17040
17041 ;
17042 return 0;
17043 }
17044 _ACEOF
17045 if ac_fn_c_try_link "$LINENO"; then :
17046 eval $cacheid=yes
17047 else
17048 eval $cacheid=no
17049 fi
17050 rm -f core conftest.err conftest.$ac_objext \
17051 conftest$ac_exeext conftest.$ac_ext
17052 fi
17053
17054
17055 CFLAGS="$xorg_testset_save_CFLAGS"
17056
17057 eval supported=\$$cacheid
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17059 $as_echo "$supported" >&6; }
17060 if test "$supported" = "yes" ; then
17061 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17062 found="yes"
17063 fi
17064 fi
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080 xorg_testset_save_CFLAGS="$CFLAGS"
17081
17082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17085 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17086 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17087 $as_echo_n "(cached) " >&6
17088 else
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h. */
17091 int i;
17092 _ACEOF
17093 if ac_fn_c_try_compile "$LINENO"; then :
17094 xorg_cv_cc_flag_unknown_warning_option=yes
17095 else
17096 xorg_cv_cc_flag_unknown_warning_option=no
17097 fi
17098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099 fi
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17101 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17103 CFLAGS="$xorg_testset_save_CFLAGS"
17104 fi
17105
17106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17109 fi
17110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17112 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17113 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17114 $as_echo_n "(cached) " >&6
17115 else
17116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17117 /* end confdefs.h. */
17118 int i;
17119 _ACEOF
17120 if ac_fn_c_try_compile "$LINENO"; then :
17121 xorg_cv_cc_flag_unused_command_line_argument=yes
17122 else
17123 xorg_cv_cc_flag_unused_command_line_argument=no
17124 fi
17125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126 fi
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17128 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17130 CFLAGS="$xorg_testset_save_CFLAGS"
17131 fi
17132
17133 found="no"
17134
17135 if test $found = "no" ; then
17136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17138 fi
17139
17140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17142 fi
17143
17144 CFLAGS="$CFLAGS -Warray-bounds"
17145
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17147 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17148 cacheid=xorg_cv_cc_flag__Warray_bounds
17149 if eval \${$cacheid+:} false; then :
17150 $as_echo_n "(cached) " >&6
17151 else
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h. */
17154 int i;
17155 int
17156 main ()
17157 {
17158
17159 ;
17160 return 0;
17161 }
17162 _ACEOF
17163 if ac_fn_c_try_link "$LINENO"; then :
17164 eval $cacheid=yes
17165 else
17166 eval $cacheid=no
17167 fi
17168 rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext conftest.$ac_ext
17170 fi
17171
17172
17173 CFLAGS="$xorg_testset_save_CFLAGS"
17174
17175 eval supported=\$$cacheid
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17177 $as_echo "$supported" >&6; }
17178 if test "$supported" = "yes" ; then
17179 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17180 found="yes"
17181 fi
17182 fi
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198 xorg_testset_save_CFLAGS="$CFLAGS"
17199
17200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17203 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17204 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17205 $as_echo_n "(cached) " >&6
17206 else
17207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17208 /* end confdefs.h. */
17209 int i;
17210 _ACEOF
17211 if ac_fn_c_try_compile "$LINENO"; then :
17212 xorg_cv_cc_flag_unknown_warning_option=yes
17213 else
17214 xorg_cv_cc_flag_unknown_warning_option=no
17215 fi
17216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 fi
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17219 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17221 CFLAGS="$xorg_testset_save_CFLAGS"
17222 fi
17223
17224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17227 fi
17228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17230 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17231 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17232 $as_echo_n "(cached) " >&6
17233 else
17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235 /* end confdefs.h. */
17236 int i;
17237 _ACEOF
17238 if ac_fn_c_try_compile "$LINENO"; then :
17239 xorg_cv_cc_flag_unused_command_line_argument=yes
17240 else
17241 xorg_cv_cc_flag_unused_command_line_argument=no
17242 fi
17243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17244 fi
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17246 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17248 CFLAGS="$xorg_testset_save_CFLAGS"
17249 fi
17250
17251 found="no"
17252
17253 if test $found = "no" ; then
17254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17256 fi
17257
17258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17260 fi
17261
17262 CFLAGS="$CFLAGS -Wwrite-strings"
17263
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17265 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17266 cacheid=xorg_cv_cc_flag__Wwrite_strings
17267 if eval \${$cacheid+:} false; then :
17268 $as_echo_n "(cached) " >&6
17269 else
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17272 int i;
17273 int
17274 main ()
17275 {
17276
17277 ;
17278 return 0;
17279 }
17280 _ACEOF
17281 if ac_fn_c_try_link "$LINENO"; then :
17282 eval $cacheid=yes
17283 else
17284 eval $cacheid=no
17285 fi
17286 rm -f core conftest.err conftest.$ac_objext \
17287 conftest$ac_exeext conftest.$ac_ext
17288 fi
17289
17290
17291 CFLAGS="$xorg_testset_save_CFLAGS"
17292
17293 eval supported=\$$cacheid
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17295 $as_echo "$supported" >&6; }
17296 if test "$supported" = "yes" ; then
17297 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17298 found="yes"
17299 fi
17300 fi
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316 xorg_testset_save_CFLAGS="$CFLAGS"
17317
17318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17321 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17322 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17323 $as_echo_n "(cached) " >&6
17324 else
17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326 /* end confdefs.h. */
17327 int i;
17328 _ACEOF
17329 if ac_fn_c_try_compile "$LINENO"; then :
17330 xorg_cv_cc_flag_unknown_warning_option=yes
17331 else
17332 xorg_cv_cc_flag_unknown_warning_option=no
17333 fi
17334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17335 fi
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17337 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17339 CFLAGS="$xorg_testset_save_CFLAGS"
17340 fi
17341
17342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17345 fi
17346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17348 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17349 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17350 $as_echo_n "(cached) " >&6
17351 else
17352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353 /* end confdefs.h. */
17354 int i;
17355 _ACEOF
17356 if ac_fn_c_try_compile "$LINENO"; then :
17357 xorg_cv_cc_flag_unused_command_line_argument=yes
17358 else
17359 xorg_cv_cc_flag_unused_command_line_argument=no
17360 fi
17361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362 fi
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17364 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17366 CFLAGS="$xorg_testset_save_CFLAGS"
17367 fi
17368
17369 found="no"
17370
17371 if test $found = "no" ; then
17372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17374 fi
17375
17376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17378 fi
17379
17380 CFLAGS="$CFLAGS -Waddress"
17381
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17383 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17384 cacheid=xorg_cv_cc_flag__Waddress
17385 if eval \${$cacheid+:} false; then :
17386 $as_echo_n "(cached) " >&6
17387 else
17388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389 /* end confdefs.h. */
17390 int i;
17391 int
17392 main ()
17393 {
17394
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 if ac_fn_c_try_link "$LINENO"; then :
17400 eval $cacheid=yes
17401 else
17402 eval $cacheid=no
17403 fi
17404 rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17406 fi
17407
17408
17409 CFLAGS="$xorg_testset_save_CFLAGS"
17410
17411 eval supported=\$$cacheid
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17413 $as_echo "$supported" >&6; }
17414 if test "$supported" = "yes" ; then
17415 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17416 found="yes"
17417 fi
17418 fi
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434 xorg_testset_save_CFLAGS="$CFLAGS"
17435
17436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17439 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17440 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17441 $as_echo_n "(cached) " >&6
17442 else
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17445 int i;
17446 _ACEOF
17447 if ac_fn_c_try_compile "$LINENO"; then :
17448 xorg_cv_cc_flag_unknown_warning_option=yes
17449 else
17450 xorg_cv_cc_flag_unknown_warning_option=no
17451 fi
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17453 fi
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17455 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17457 CFLAGS="$xorg_testset_save_CFLAGS"
17458 fi
17459
17460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17463 fi
17464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17466 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17467 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17468 $as_echo_n "(cached) " >&6
17469 else
17470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17471 /* end confdefs.h. */
17472 int i;
17473 _ACEOF
17474 if ac_fn_c_try_compile "$LINENO"; then :
17475 xorg_cv_cc_flag_unused_command_line_argument=yes
17476 else
17477 xorg_cv_cc_flag_unused_command_line_argument=no
17478 fi
17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 fi
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17482 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17484 CFLAGS="$xorg_testset_save_CFLAGS"
17485 fi
17486
17487 found="no"
17488
17489 if test $found = "no" ; then
17490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17492 fi
17493
17494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17496 fi
17497
17498 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17499
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17501 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17502 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17503 if eval \${$cacheid+:} false; then :
17504 $as_echo_n "(cached) " >&6
17505 else
17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17508 int i;
17509 int
17510 main ()
17511 {
17512
17513 ;
17514 return 0;
17515 }
17516 _ACEOF
17517 if ac_fn_c_try_link "$LINENO"; then :
17518 eval $cacheid=yes
17519 else
17520 eval $cacheid=no
17521 fi
17522 rm -f core conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
17524 fi
17525
17526
17527 CFLAGS="$xorg_testset_save_CFLAGS"
17528
17529 eval supported=\$$cacheid
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17531 $as_echo "$supported" >&6; }
17532 if test "$supported" = "yes" ; then
17533 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17534 found="yes"
17535 fi
17536 fi
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552 xorg_testset_save_CFLAGS="$CFLAGS"
17553
17554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17557 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17558 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17559 $as_echo_n "(cached) " >&6
17560 else
17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17562 /* end confdefs.h. */
17563 int i;
17564 _ACEOF
17565 if ac_fn_c_try_compile "$LINENO"; then :
17566 xorg_cv_cc_flag_unknown_warning_option=yes
17567 else
17568 xorg_cv_cc_flag_unknown_warning_option=no
17569 fi
17570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17571 fi
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17573 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17575 CFLAGS="$xorg_testset_save_CFLAGS"
17576 fi
17577
17578 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17581 fi
17582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17584 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17585 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17586 $as_echo_n "(cached) " >&6
17587 else
17588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h. */
17590 int i;
17591 _ACEOF
17592 if ac_fn_c_try_compile "$LINENO"; then :
17593 xorg_cv_cc_flag_unused_command_line_argument=yes
17594 else
17595 xorg_cv_cc_flag_unused_command_line_argument=no
17596 fi
17597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17598 fi
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17600 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17602 CFLAGS="$xorg_testset_save_CFLAGS"
17603 fi
17604
17605 found="no"
17606
17607 if test $found = "no" ; then
17608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17610 fi
17611
17612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17614 fi
17615
17616 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17617
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17619 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17620 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17621 if eval \${$cacheid+:} false; then :
17622 $as_echo_n "(cached) " >&6
17623 else
17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625 /* end confdefs.h. */
17626 int i;
17627 int
17628 main ()
17629 {
17630
17631 ;
17632 return 0;
17633 }
17634 _ACEOF
17635 if ac_fn_c_try_link "$LINENO"; then :
17636 eval $cacheid=yes
17637 else
17638 eval $cacheid=no
17639 fi
17640 rm -f core conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
17642 fi
17643
17644
17645 CFLAGS="$xorg_testset_save_CFLAGS"
17646
17647 eval supported=\$$cacheid
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17649 $as_echo "$supported" >&6; }
17650 if test "$supported" = "yes" ; then
17651 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17652 found="yes"
17653 fi
17654 fi
17655
17656
17657 fi
17658
17659
17660
17661
17662
17663
17664
17665 CWARNFLAGS="$BASE_CFLAGS"
17666 if test "x$GCC" = xyes ; then
17667 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17668 fi
17669
17670
17671
17672
17673
17674
17675
17676
17677 # Check whether --enable-strict-compilation was given.
17678 if test "${enable_strict_compilation+set}" = set; then :
17679 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17680 else
17681 STRICT_COMPILE=no
17682 fi
17683
17684
17685
17686
17687
17688
17689 STRICT_CFLAGS=""
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703 xorg_testset_save_CFLAGS="$CFLAGS"
17704
17705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17708 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17709 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17710 $as_echo_n "(cached) " >&6
17711 else
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17714 int i;
17715 _ACEOF
17716 if ac_fn_c_try_compile "$LINENO"; then :
17717 xorg_cv_cc_flag_unknown_warning_option=yes
17718 else
17719 xorg_cv_cc_flag_unknown_warning_option=no
17720 fi
17721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17722 fi
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17724 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17726 CFLAGS="$xorg_testset_save_CFLAGS"
17727 fi
17728
17729 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17732 fi
17733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17735 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17736 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17737 $as_echo_n "(cached) " >&6
17738 else
17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h. */
17741 int i;
17742 _ACEOF
17743 if ac_fn_c_try_compile "$LINENO"; then :
17744 xorg_cv_cc_flag_unused_command_line_argument=yes
17745 else
17746 xorg_cv_cc_flag_unused_command_line_argument=no
17747 fi
17748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17749 fi
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17751 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17753 CFLAGS="$xorg_testset_save_CFLAGS"
17754 fi
17755
17756 found="no"
17757
17758 if test $found = "no" ; then
17759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17761 fi
17762
17763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17765 fi
17766
17767 CFLAGS="$CFLAGS -pedantic"
17768
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17770 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17771 cacheid=xorg_cv_cc_flag__pedantic
17772 if eval \${$cacheid+:} false; then :
17773 $as_echo_n "(cached) " >&6
17774 else
17775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17777 int i;
17778 int
17779 main ()
17780 {
17781
17782 ;
17783 return 0;
17784 }
17785 _ACEOF
17786 if ac_fn_c_try_link "$LINENO"; then :
17787 eval $cacheid=yes
17788 else
17789 eval $cacheid=no
17790 fi
17791 rm -f core conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793 fi
17794
17795
17796 CFLAGS="$xorg_testset_save_CFLAGS"
17797
17798 eval supported=\$$cacheid
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17800 $as_echo "$supported" >&6; }
17801 if test "$supported" = "yes" ; then
17802 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17803 found="yes"
17804 fi
17805 fi
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821 xorg_testset_save_CFLAGS="$CFLAGS"
17822
17823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17826 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17827 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17828 $as_echo_n "(cached) " >&6
17829 else
17830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17831 /* end confdefs.h. */
17832 int i;
17833 _ACEOF
17834 if ac_fn_c_try_compile "$LINENO"; then :
17835 xorg_cv_cc_flag_unknown_warning_option=yes
17836 else
17837 xorg_cv_cc_flag_unknown_warning_option=no
17838 fi
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17840 fi
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17842 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17844 CFLAGS="$xorg_testset_save_CFLAGS"
17845 fi
17846
17847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17850 fi
17851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17853 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17854 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17855 $as_echo_n "(cached) " >&6
17856 else
17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h. */
17859 int i;
17860 _ACEOF
17861 if ac_fn_c_try_compile "$LINENO"; then :
17862 xorg_cv_cc_flag_unused_command_line_argument=yes
17863 else
17864 xorg_cv_cc_flag_unused_command_line_argument=no
17865 fi
17866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17867 fi
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17869 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17871 CFLAGS="$xorg_testset_save_CFLAGS"
17872 fi
17873
17874 found="no"
17875
17876 if test $found = "no" ; then
17877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17879 fi
17880
17881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17883 fi
17884
17885 CFLAGS="$CFLAGS -Werror"
17886
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17888 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17889 cacheid=xorg_cv_cc_flag__Werror
17890 if eval \${$cacheid+:} false; then :
17891 $as_echo_n "(cached) " >&6
17892 else
17893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h. */
17895 int i;
17896 int
17897 main ()
17898 {
17899
17900 ;
17901 return 0;
17902 }
17903 _ACEOF
17904 if ac_fn_c_try_link "$LINENO"; then :
17905 eval $cacheid=yes
17906 else
17907 eval $cacheid=no
17908 fi
17909 rm -f core conftest.err conftest.$ac_objext \
17910 conftest$ac_exeext conftest.$ac_ext
17911 fi
17912
17913
17914 CFLAGS="$xorg_testset_save_CFLAGS"
17915
17916 eval supported=\$$cacheid
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17918 $as_echo "$supported" >&6; }
17919 if test "$supported" = "yes" ; then
17920 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17921 found="yes"
17922 fi
17923 fi
17924
17925 if test $found = "no" ; then
17926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17928 fi
17929
17930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17932 fi
17933
17934 CFLAGS="$CFLAGS -errwarn"
17935
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17937 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17938 cacheid=xorg_cv_cc_flag__errwarn
17939 if eval \${$cacheid+:} 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 int
17946 main ()
17947 {
17948
17949 ;
17950 return 0;
17951 }
17952 _ACEOF
17953 if ac_fn_c_try_link "$LINENO"; then :
17954 eval $cacheid=yes
17955 else
17956 eval $cacheid=no
17957 fi
17958 rm -f core conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17960 fi
17961
17962
17963 CFLAGS="$xorg_testset_save_CFLAGS"
17964
17965 eval supported=\$$cacheid
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17967 $as_echo "$supported" >&6; }
17968 if test "$supported" = "yes" ; then
17969 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17970 found="yes"
17971 fi
17972 fi
17973
17974
17975
17976 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17977 # activate it with -Werror, so we add it here explicitly.
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991 xorg_testset_save_CFLAGS="$CFLAGS"
17992
17993 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17996 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17997 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17998 $as_echo_n "(cached) " >&6
17999 else
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18002 int i;
18003 _ACEOF
18004 if ac_fn_c_try_compile "$LINENO"; then :
18005 xorg_cv_cc_flag_unknown_warning_option=yes
18006 else
18007 xorg_cv_cc_flag_unknown_warning_option=no
18008 fi
18009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18010 fi
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18012 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18014 CFLAGS="$xorg_testset_save_CFLAGS"
18015 fi
18016
18017 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18020 fi
18021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18023 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18024 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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 _ACEOF
18031 if ac_fn_c_try_compile "$LINENO"; then :
18032 xorg_cv_cc_flag_unused_command_line_argument=yes
18033 else
18034 xorg_cv_cc_flag_unused_command_line_argument=no
18035 fi
18036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18037 fi
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18039 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18040 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18041 CFLAGS="$xorg_testset_save_CFLAGS"
18042 fi
18043
18044 found="no"
18045
18046 if test $found = "no" ; then
18047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18049 fi
18050
18051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18053 fi
18054
18055 CFLAGS="$CFLAGS -Werror=attributes"
18056
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18058 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18059 cacheid=xorg_cv_cc_flag__Werror_attributes
18060 if eval \${$cacheid+:} false; then :
18061 $as_echo_n "(cached) " >&6
18062 else
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065 int i;
18066 int
18067 main ()
18068 {
18069
18070 ;
18071 return 0;
18072 }
18073 _ACEOF
18074 if ac_fn_c_try_link "$LINENO"; then :
18075 eval $cacheid=yes
18076 else
18077 eval $cacheid=no
18078 fi
18079 rm -f core conftest.err conftest.$ac_objext \
18080 conftest$ac_exeext conftest.$ac_ext
18081 fi
18082
18083
18084 CFLAGS="$xorg_testset_save_CFLAGS"
18085
18086 eval supported=\$$cacheid
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18088 $as_echo "$supported" >&6; }
18089 if test "$supported" = "yes" ; then
18090 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18091 found="yes"
18092 fi
18093 fi
18094
18095
18096
18097 if test "x$STRICT_COMPILE" = "xyes"; then
18098 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18099 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18100 fi
18101
18102
18103
18104
18105
18106
18107 cat >>confdefs.h <<_ACEOF
18108 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18109 _ACEOF
18110
18111 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18112 if test "x$PVM" = "x"; then
18113 PVM="0"
18114 fi
18115
18116 cat >>confdefs.h <<_ACEOF
18117 #define PACKAGE_VERSION_MINOR $PVM
18118 _ACEOF
18119
18120 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18121 if test "x$PVP" = "x"; then
18122 PVP="0"
18123 fi
18124
18125 cat >>confdefs.h <<_ACEOF
18126 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18127 _ACEOF
18128
18129
18130
18131 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
18132 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18133 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
18134 touch \$(top_srcdir)/ChangeLog; \
18135 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
18136
18137
18138
18139
18140 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18141 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18142 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18143 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
18144 touch \$(top_srcdir)/INSTALL; \
18145 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
18146
18147
18148
18149
18150
18151
18152 case $host_os in
18153 solaris*)
18154 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
18155 # check for a man page file found in later versions that use
18156 # traditional section numbers instead
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
18158 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
18159 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
18160 $as_echo_n "(cached) " >&6
18161 else
18162 test "$cross_compiling" = yes &&
18163 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18164 if test -r "/usr/share/man/man7/attributes.7"; then
18165 ac_cv_file__usr_share_man_man7_attributes_7=yes
18166 else
18167 ac_cv_file__usr_share_man_man7_attributes_7=no
18168 fi
18169 fi
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
18171 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
18172 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
18173 SYSV_MAN_SECTIONS=false
18174 else
18175 SYSV_MAN_SECTIONS=true
18176 fi
18177
18178 ;;
18179 *) SYSV_MAN_SECTIONS=false ;;
18180 esac
18181
18182 if test x$APP_MAN_SUFFIX = x ; then
18183 APP_MAN_SUFFIX=1
18184 fi
18185 if test x$APP_MAN_DIR = x ; then
18186 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18187 fi
18188
18189 if test x$LIB_MAN_SUFFIX = x ; then
18190 LIB_MAN_SUFFIX=3
18191 fi
18192 if test x$LIB_MAN_DIR = x ; then
18193 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18194 fi
18195
18196 if test x$FILE_MAN_SUFFIX = x ; then
18197 case $SYSV_MAN_SECTIONS in
18198 true) FILE_MAN_SUFFIX=4 ;;
18199 *) FILE_MAN_SUFFIX=5 ;;
18200 esac
18201 fi
18202 if test x$FILE_MAN_DIR = x ; then
18203 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18204 fi
18205
18206 if test x$MISC_MAN_SUFFIX = x ; then
18207 case $SYSV_MAN_SECTIONS in
18208 true) MISC_MAN_SUFFIX=5 ;;
18209 *) MISC_MAN_SUFFIX=7 ;;
18210 esac
18211 fi
18212 if test x$MISC_MAN_DIR = x ; then
18213 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18214 fi
18215
18216 if test x$DRIVER_MAN_SUFFIX = x ; then
18217 case $SYSV_MAN_SECTIONS in
18218 true) DRIVER_MAN_SUFFIX=7 ;;
18219 *) DRIVER_MAN_SUFFIX=4 ;;
18220 esac
18221 fi
18222 if test x$DRIVER_MAN_DIR = x ; then
18223 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18224 fi
18225
18226 if test x$ADMIN_MAN_SUFFIX = x ; then
18227 case $SYSV_MAN_SECTIONS in
18228 true) ADMIN_MAN_SUFFIX=1m ;;
18229 *) ADMIN_MAN_SUFFIX=8 ;;
18230 esac
18231 fi
18232 if test x$ADMIN_MAN_DIR = x ; then
18233 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18234 fi
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250 XORG_MAN_PAGE="X Version 11"
18251
18252 MAN_SUBSTS="\
18253 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18254 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18255 -e 's|__xservername__|Xorg|g' \
18256 -e 's|__xconfigfile__|xorg.conf|g' \
18257 -e 's|__projectroot__|\$(prefix)|g' \
18258 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18259 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18260 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18261 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18262 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18263 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18264 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18265
18266
18267
18268 # Check whether --enable-silent-rules was given.
18269 if test "${enable_silent_rules+set}" = set; then :
18270 enableval=$enable_silent_rules;
18271 fi
18272
18273 case $enable_silent_rules in # (((
18274 yes) AM_DEFAULT_VERBOSITY=0;;
18275 no) AM_DEFAULT_VERBOSITY=1;;
18276 *) AM_DEFAULT_VERBOSITY=0;;
18277 esac
18278 am_make=${MAKE-make}
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18280 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18281 if ${am_cv_make_support_nested_variables+:} false; then :
18282 $as_echo_n "(cached) " >&6
18283 else
18284 if $as_echo 'TRUE=$(BAR$(V))
18285 BAR0=false
18286 BAR1=true
18287 V=1
18288 am__doit:
18289 @$(TRUE)
18290 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18291 am_cv_make_support_nested_variables=yes
18292 else
18293 am_cv_make_support_nested_variables=no
18294 fi
18295 fi
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18297 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18298 if test $am_cv_make_support_nested_variables = yes; then
18299 AM_V='$(V)'
18300 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18301 else
18302 AM_V=$AM_DEFAULT_VERBOSITY
18303 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18304 fi
18305 AM_BACKSLASH='\'
18306
18307
18308
18309 # Checks for library functions
18310 for ac_func in strlcat
18311 do :
18312 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18313 if test "x$ac_cv_func_strlcat" = xyes; then :
18314 cat >>confdefs.h <<_ACEOF
18315 #define HAVE_STRLCAT 1
18316 _ACEOF
18317
18318 fi
18319 done
18320
18321 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
18322 if test "x$ac_cv_func_fork" = xyes; then :
18323
18324 else
18325 $as_echo "#define NO_ZPIPE 1" >>confdefs.h
18326
18327 fi
18328
18329
18330 # Obtain compiler/linker options for dependencies
18331
18332 pkg_failed=no
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
18334 $as_echo_n "checking for XPM... " >&6; }
18335
18336 if test -n "$XPM_CFLAGS"; then
18337 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
18338 elif test -n "$PKG_CONFIG"; then
18339 if test -n "$PKG_CONFIG" && \
18340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
18341 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
18342 ac_status=$?
18343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18344 test $ac_status = 0; }; then
18345 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null`
18346 test "x$?" != "x0" && pkg_failed=yes
18347 else
18348 pkg_failed=yes
18349 fi
18350 else
18351 pkg_failed=untried
18352 fi
18353 if test -n "$XPM_LIBS"; then
18354 pkg_cv_XPM_LIBS="$XPM_LIBS"
18355 elif test -n "$PKG_CONFIG"; then
18356 if test -n "$PKG_CONFIG" && \
18357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
18358 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
18359 ac_status=$?
18360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18361 test $ac_status = 0; }; then
18362 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null`
18363 test "x$?" != "x0" && pkg_failed=yes
18364 else
18365 pkg_failed=yes
18366 fi
18367 else
18368 pkg_failed=untried
18369 fi
18370
18371
18372
18373 if test $pkg_failed = yes; then
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18375 $as_echo "no" >&6; }
18376
18377 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18378 _pkg_short_errors_supported=yes
18379 else
18380 _pkg_short_errors_supported=no
18381 fi
18382 if test $_pkg_short_errors_supported = yes; then
18383 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11" 2>&1`
18384 else
18385 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11" 2>&1`
18386 fi
18387 # Put the nasty error message in config.log where it belongs
18388 echo "$XPM_PKG_ERRORS" >&5
18389
18390 as_fn_error $? "Package requirements (xproto x11) were not met:
18391
18392 $XPM_PKG_ERRORS
18393
18394 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18395 installed software in a non-standard prefix.
18396
18397 Alternatively, you may set the environment variables XPM_CFLAGS
18398 and XPM_LIBS to avoid the need to call pkg-config.
18399 See the pkg-config man page for more details." "$LINENO" 5
18400 elif test $pkg_failed = untried; then
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18402 $as_echo "no" >&6; }
18403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18405 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18406 is in your PATH or set the PKG_CONFIG environment variable to the full
18407 path to pkg-config.
18408
18409 Alternatively, you may set the environment variables XPM_CFLAGS
18410 and XPM_LIBS to avoid the need to call pkg-config.
18411 See the pkg-config man page for more details.
18412
18413 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18414 See \`config.log' for more details" "$LINENO" 5; }
18415 else
18416 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
18417 XPM_LIBS=$pkg_cv_XPM_LIBS
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18419 $as_echo "yes" >&6; }
18420
18421 fi
18422
18423 pkg_failed=no
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SXPM" >&5
18425 $as_echo_n "checking for SXPM... " >&6; }
18426
18427 if test -n "$SXPM_CFLAGS"; then
18428 pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS"
18429 elif test -n "$PKG_CONFIG"; then
18430 if test -n "$PKG_CONFIG" && \
18431 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5
18432 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5
18433 ac_status=$?
18434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18435 test $ac_status = 0; }; then
18436 pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null`
18437 test "x$?" != "x0" && pkg_failed=yes
18438 else
18439 pkg_failed=yes
18440 fi
18441 else
18442 pkg_failed=untried
18443 fi
18444 if test -n "$SXPM_LIBS"; then
18445 pkg_cv_SXPM_LIBS="$SXPM_LIBS"
18446 elif test -n "$PKG_CONFIG"; then
18447 if test -n "$PKG_CONFIG" && \
18448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5
18449 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5
18450 ac_status=$?
18451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18452 test $ac_status = 0; }; then
18453 pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null`
18454 test "x$?" != "x0" && pkg_failed=yes
18455 else
18456 pkg_failed=yes
18457 fi
18458 else
18459 pkg_failed=untried
18460 fi
18461
18462
18463
18464 if test $pkg_failed = yes; then
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18466 $as_echo "no" >&6; }
18467
18468 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18469 _pkg_short_errors_supported=yes
18470 else
18471 _pkg_short_errors_supported=no
18472 fi
18473 if test $_pkg_short_errors_supported = yes; then
18474 SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1`
18475 else
18476 SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1`
18477 fi
18478 # Put the nasty error message in config.log where it belongs
18479 echo "$SXPM_PKG_ERRORS" >&5
18480
18481 build_sxpm=false
18482 elif test $pkg_failed = untried; then
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18484 $as_echo "no" >&6; }
18485 build_sxpm=false
18486 else
18487 SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS
18488 SXPM_LIBS=$pkg_cv_SXPM_LIBS
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18490 $as_echo "yes" >&6; }
18491 build_sxpm=true
18492 fi
18493 if test x$build_sxpm = xtrue; then
18494 BUILD_SXPM_TRUE=
18495 BUILD_SXPM_FALSE='#'
18496 else
18497 BUILD_SXPM_TRUE='#'
18498 BUILD_SXPM_FALSE=
18499 fi
18500
18501
18502 # Internationalization & localization support
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
18504 $as_echo_n "checking for library containing gettext... " >&6; }
18505 if ${ac_cv_search_gettext+:} false; then :
18506 $as_echo_n "(cached) " >&6
18507 else
18508 ac_func_search_save_LIBS=$LIBS
18509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510 /* end confdefs.h. */
18511
18512 /* Override any GCC internal prototype to avoid an error.
18513 Use char because int might match the return type of a GCC
18514 builtin and then its argument prototype would still apply. */
18515 #ifdef __cplusplus
18516 extern "C"
18517 #endif
18518 char gettext ();
18519 int
18520 main ()
18521 {
18522 return gettext ();
18523 ;
18524 return 0;
18525 }
18526 _ACEOF
18527 for ac_lib in '' intl; do
18528 if test -z "$ac_lib"; then
18529 ac_res="none required"
18530 else
18531 ac_res=-l$ac_lib
18532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18533 fi
18534 if ac_fn_c_try_link "$LINENO"; then :
18535 ac_cv_search_gettext=$ac_res
18536 fi
18537 rm -f core conftest.err conftest.$ac_objext \
18538 conftest$ac_exeext
18539 if ${ac_cv_search_gettext+:} false; then :
18540 break
18541 fi
18542 done
18543 if ${ac_cv_search_gettext+:} false; then :
18544
18545 else
18546 ac_cv_search_gettext=no
18547 fi
18548 rm conftest.$ac_ext
18549 LIBS=$ac_func_search_save_LIBS
18550 fi
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
18552 $as_echo "$ac_cv_search_gettext" >&6; }
18553 ac_res=$ac_cv_search_gettext
18554 if test "$ac_res" != no; then :
18555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18556 USE_GETTEXT="yes"
18557 else
18558 USE_GETTEXT="no"
18559 fi
18560
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
18562 $as_echo_n "checking where to install localized messages... " >&6; }
18563
18564 # Check whether --with-localedir was given.
18565 if test "${with_localedir+set}" = set; then :
18566 withval=$with_localedir; LOCALEDIR=${withval}
18567 else
18568 LOCALEDIR=${datadir}/locale
18569 fi
18570
18571
18572 prefix_NONE=
18573 exec_prefix_NONE=
18574 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
18575 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
18576 eval ax_define_dir="\"$LOCALEDIR\""
18577 eval ax_define_dir="\"$ax_define_dir\""
18578 LOCALEDIR="$ax_define_dir"
18579
18580
18581 cat >>confdefs.h <<_ACEOF
18582 #define LOCALEDIR "$ax_define_dir"
18583 _ACEOF
18584
18585 test "$prefix_NONE" && prefix=NONE
18586 test "$exec_prefix_NONE" && exec_prefix=NONE
18587
18588 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
18590 $as_echo "nowhere" >&6; }
18591 USE_GETTEXT="no"
18592 else
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
18594 $as_echo "$LOCALEDIR" >&6; }
18595 fi
18596
18597 if test "x$USE_GETTEXT" = "xyes" ; then
18598
18599 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
18600
18601 fi
18602 if test "x$USE_GETTEXT" = "xyes"; then
18603 USE_GETTEXT_TRUE=
18604 USE_GETTEXT_FALSE='#'
18605 else
18606 USE_GETTEXT_TRUE='#'
18607 USE_GETTEXT_FALSE=
18608 fi
18609
18610
18611 # Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz
18612 # Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile
18613 # Check whether --enable-stat-zfile was given.
18614 if test "${enable_stat_zfile+set}" = set; then :
18615 enableval=$enable_stat_zfile; STAT_ZFILE=$enableval
18616 else
18617 STAT_ZFILE=yes
18618 fi
18619
18620 if test x$STAT_ZFILE = xyes ; then
18621
18622 $as_echo "#define STAT_ZFILE 1" >>confdefs.h
18623
18624 fi
18625
18626
18627 case $host_os in
18628 *mingw*)
18629
18630 $as_echo "#define NO_ZPIPE 1" >>confdefs.h
18631
18632 ;;
18633 *)
18634 ;;
18635 esac
18636
18637 ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile man/Makefile src/Makefile sxpm/Makefile cxpm/Makefile xpm.pc"
18638
18639 cat >confcache <<\_ACEOF
18640 # This file is a shell script that caches the results of configure
18641 # tests run on this system so they can be shared between configure
18642 # scripts and configure runs, see configure's option --config-cache.
18643 # It is not useful on other systems. If it contains results you don't
18644 # want to keep, you may remove or edit it.
18645 #
18646 # config.status only pays attention to the cache file if you give it
18647 # the --recheck option to rerun configure.
18648 #
18649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18651 # following values.
18652
18653 _ACEOF
18654
18655 # The following way of writing the cache mishandles newlines in values,
18656 # but we know of no workaround that is simple, portable, and efficient.
18657 # So, we kill variables containing newlines.
18658 # Ultrix sh set writes to stderr and can't be redirected directly,
18659 # and sets the high bit in the cache file unless we assign to the vars.
18660 (
18661 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18662 eval ac_val=\$$ac_var
18663 case $ac_val in #(
18664 *${as_nl}*)
18665 case $ac_var in #(
18666 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18667 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18668 esac
18669 case $ac_var in #(
18670 _ | IFS | as_nl) ;; #(
18671 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18672 *) { eval $ac_var=; unset $ac_var;} ;;
18673 esac ;;
18674 esac
18675 done
18676
18677 (set) 2>&1 |
18678 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18679 *${as_nl}ac_space=\ *)
18680 # `set' does not quote correctly, so add quotes: double-quote
18681 # substitution turns \\\\ into \\, and sed turns \\ into \.
18682 sed -n \
18683 "s/'/'\\\\''/g;
18684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18685 ;; #(
18686 *)
18687 # `set' quotes correctly as required by POSIX, so do not add quotes.
18688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18689 ;;
18690 esac |
18691 sort
18692 ) |
18693 sed '
18694 /^ac_cv_env_/b end
18695 t clear
18696 :clear
18697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18698 t end
18699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18700 :end' >>confcache
18701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18702 if test -w "$cache_file"; then
18703 if test "x$cache_file" != "x/dev/null"; then
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18705 $as_echo "$as_me: updating cache $cache_file" >&6;}
18706 if test ! -f "$cache_file" || test -h "$cache_file"; then
18707 cat confcache >"$cache_file"
18708 else
18709 case $cache_file in #(
18710 */* | ?:*)
18711 mv -f confcache "$cache_file"$$ &&
18712 mv -f "$cache_file"$$ "$cache_file" ;; #(
18713 *)
18714 mv -f confcache "$cache_file" ;;
18715 esac
18716 fi
18717 fi
18718 else
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18720 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18721 fi
18722 fi
18723 rm -f confcache
18724
18725 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18726 # Let make expand exec_prefix.
18727 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18728
18729 DEFS=-DHAVE_CONFIG_H
18730
18731 ac_libobjs=
18732 ac_ltlibobjs=
18733 U=
18734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18735 # 1. Remove the extension, and $U if already installed.
18736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18737 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18739 # will be set to the directory where LIBOBJS objects are built.
18740 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18741 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18742 done
18743 LIBOBJS=$ac_libobjs
18744
18745 LTLIBOBJS=$ac_ltlibobjs
18746
18747
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18749 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18750 if test -n "$am_sleep_pid"; then
18751 # Hide warnings about reused PIDs.
18752 wait $am_sleep_pid 2>/dev/null
18753 fi
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18755 $as_echo "done" >&6; }
18756 if test -n "$EXEEXT"; then
18757 am__EXEEXT_TRUE=
18758 am__EXEEXT_FALSE='#'
18759 else
18760 am__EXEEXT_TRUE='#'
18761 am__EXEEXT_FALSE=
18762 fi
18763
18764 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18765 as_fn_error $? "conditional \"AMDEP\" was never defined.
18766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18767 fi
18768 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18769 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18771 fi
18772 if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then
18773 as_fn_error $? "conditional \"BUILD_SXPM\" was never defined.
18774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18775 fi
18776 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
18777 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
18778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18779 fi
18780
18781 : "${CONFIG_STATUS=./config.status}"
18782 ac_write_fail=0
18783 ac_clean_files_save=$ac_clean_files
18784 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18786 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18787 as_write_fail=0
18788 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18789 #! $SHELL
18790 # Generated by $as_me.
18791 # Run this file to recreate the current configuration.
18792 # Compiler output produced by configure, useful for debugging
18793 # configure, is in config.log if it exists.
18794
18795 debug=false
18796 ac_cs_recheck=false
18797 ac_cs_silent=false
18798
18799 SHELL=\${CONFIG_SHELL-$SHELL}
18800 export SHELL
18801 _ASEOF
18802 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18803 ## -------------------- ##
18804 ## M4sh Initialization. ##
18805 ## -------------------- ##
18806
18807 # Be more Bourne compatible
18808 DUALCASE=1; export DUALCASE # for MKS sh
18809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18810 emulate sh
18811 NULLCMD=:
18812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18813 # is contrary to our usage. Disable this feature.
18814 alias -g '${1+"$@"}'='"$@"'
18815 setopt NO_GLOB_SUBST
18816 else
18817 case `(set -o) 2>/dev/null` in #(
18818 *posix*) :
18819 set -o posix ;; #(
18820 *) :
18821 ;;
18822 esac
18823 fi
18824
18825
18826 as_nl='
18827 '
18828 export as_nl
18829 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18830 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18831 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18833 # Prefer a ksh shell builtin over an external printf program on Solaris,
18834 # but without wasting forks for bash or zsh.
18835 if test -z "$BASH_VERSION$ZSH_VERSION" \
18836 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18837 as_echo='print -r --'
18838 as_echo_n='print -rn --'
18839 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18840 as_echo='printf %s\n'
18841 as_echo_n='printf %s'
18842 else
18843 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18844 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18845 as_echo_n='/usr/ucb/echo -n'
18846 else
18847 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18848 as_echo_n_body='eval
18849 arg=$1;
18850 case $arg in #(
18851 *"$as_nl"*)
18852 expr "X$arg" : "X\\(.*\\)$as_nl";
18853 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18854 esac;
18855 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18856 '
18857 export as_echo_n_body
18858 as_echo_n='sh -c $as_echo_n_body as_echo'
18859 fi
18860 export as_echo_body
18861 as_echo='sh -c $as_echo_body as_echo'
18862 fi
18863
18864 # The user is always right.
18865 if test "${PATH_SEPARATOR+set}" != set; then
18866 PATH_SEPARATOR=:
18867 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18868 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18869 PATH_SEPARATOR=';'
18870 }
18871 fi
18872
18873
18874 # IFS
18875 # We need space, tab and new line, in precisely that order. Quoting is
18876 # there to prevent editors from complaining about space-tab.
18877 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18878 # splitting by setting IFS to empty value.)
18879 IFS=" "" $as_nl"
18880
18881 # Find who we are. Look in the path if we contain no directory separator.
18882 as_myself=
18883 case $0 in #((
18884 *[\\/]* ) as_myself=$0 ;;
18885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18886 for as_dir in $PATH
18887 do
18888 IFS=$as_save_IFS
18889 test -z "$as_dir" && as_dir=.
18890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18891 done
18892 IFS=$as_save_IFS
18893
18894 ;;
18895 esac
18896 # We did not find ourselves, most probably we were run as `sh COMMAND'
18897 # in which case we are not to be found in the path.
18898 if test "x$as_myself" = x; then
18899 as_myself=$0
18900 fi
18901 if test ! -f "$as_myself"; then
18902 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18903 exit 1
18904 fi
18905
18906 # Unset variables that we do not need and which cause bugs (e.g. in
18907 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18908 # suppresses any "Segmentation fault" message there. '((' could
18909 # trigger a bug in pdksh 5.2.14.
18910 for as_var in BASH_ENV ENV MAIL MAILPATH
18911 do eval test x\${$as_var+set} = xset \
18912 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18913 done
18914 PS1='$ '
18915 PS2='> '
18916 PS4='+ '
18917
18918 # NLS nuisances.
18919 LC_ALL=C
18920 export LC_ALL
18921 LANGUAGE=C
18922 export LANGUAGE
18923
18924 # CDPATH.
18925 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18926
18927
18928 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18929 # ----------------------------------------
18930 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18931 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18932 # script with STATUS, using 1 if that was 0.
18933 as_fn_error ()
18934 {
18935 as_status=$1; test $as_status -eq 0 && as_status=1
18936 if test "$4"; then
18937 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18938 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18939 fi
18940 $as_echo "$as_me: error: $2" >&2
18941 as_fn_exit $as_status
18942 } # as_fn_error
18943
18944
18945 # as_fn_set_status STATUS
18946 # -----------------------
18947 # Set $? to STATUS, without forking.
18948 as_fn_set_status ()
18949 {
18950 return $1
18951 } # as_fn_set_status
18952
18953 # as_fn_exit STATUS
18954 # -----------------
18955 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18956 as_fn_exit ()
18957 {
18958 set +e
18959 as_fn_set_status $1
18960 exit $1
18961 } # as_fn_exit
18962
18963 # as_fn_unset VAR
18964 # ---------------
18965 # Portably unset VAR.
18966 as_fn_unset ()
18967 {
18968 { eval $1=; unset $1;}
18969 }
18970 as_unset=as_fn_unset
18971 # as_fn_append VAR VALUE
18972 # ----------------------
18973 # Append the text in VALUE to the end of the definition contained in VAR. Take
18974 # advantage of any shell optimizations that allow amortized linear growth over
18975 # repeated appends, instead of the typical quadratic growth present in naive
18976 # implementations.
18977 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18978 eval 'as_fn_append ()
18979 {
18980 eval $1+=\$2
18981 }'
18982 else
18983 as_fn_append ()
18984 {
18985 eval $1=\$$1\$2
18986 }
18987 fi # as_fn_append
18988
18989 # as_fn_arith ARG...
18990 # ------------------
18991 # Perform arithmetic evaluation on the ARGs, and store the result in the
18992 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18993 # must be portable across $(()) and expr.
18994 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18995 eval 'as_fn_arith ()
18996 {
18997 as_val=$(( $* ))
18998 }'
18999 else
19000 as_fn_arith ()
19001 {
19002 as_val=`expr "$@" || test $? -eq 1`
19003 }
19004 fi # as_fn_arith
19005
19006
19007 if expr a : '\(a\)' >/dev/null 2>&1 &&
19008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19009 as_expr=expr
19010 else
19011 as_expr=false
19012 fi
19013
19014 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19015 as_basename=basename
19016 else
19017 as_basename=false
19018 fi
19019
19020 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19021 as_dirname=dirname
19022 else
19023 as_dirname=false
19024 fi
19025
19026 as_me=`$as_basename -- "$0" ||
19027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19028 X"$0" : 'X\(//\)$' \| \
19029 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19030 $as_echo X/"$0" |
19031 sed '/^.*\/\([^/][^/]*\)\/*$/{
19032 s//\1/
19033 q
19034 }
19035 /^X\/\(\/\/\)$/{
19036 s//\1/
19037 q
19038 }
19039 /^X\/\(\/\).*/{
19040 s//\1/
19041 q
19042 }
19043 s/.*/./; q'`
19044
19045 # Avoid depending upon Character Ranges.
19046 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19047 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19048 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19049 as_cr_digits='0123456789'
19050 as_cr_alnum=$as_cr_Letters$as_cr_digits
19051
19052 ECHO_C= ECHO_N= ECHO_T=
19053 case `echo -n x` in #(((((
19054 -n*)
19055 case `echo 'xy\c'` in
19056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19057 xy) ECHO_C='\c';;
19058 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19059 ECHO_T=' ';;
19060 esac;;
19061 *)
19062 ECHO_N='-n';;
19063 esac
19064
19065 rm -f conf$$ conf$$.exe conf$$.file
19066 if test -d conf$$.dir; then
19067 rm -f conf$$.dir/conf$$.file
19068 else
19069 rm -f conf$$.dir
19070 mkdir conf$$.dir 2>/dev/null
19071 fi
19072 if (echo >conf$$.file) 2>/dev/null; then
19073 if ln -s conf$$.file conf$$ 2>/dev/null; then
19074 as_ln_s='ln -s'
19075 # ... but there are two gotchas:
19076 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19077 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19078 # In both cases, we have to default to `cp -pR'.
19079 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19080 as_ln_s='cp -pR'
19081 elif ln conf$$.file conf$$ 2>/dev/null; then
19082 as_ln_s=ln
19083 else
19084 as_ln_s='cp -pR'
19085 fi
19086 else
19087 as_ln_s='cp -pR'
19088 fi
19089 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19090 rmdir conf$$.dir 2>/dev/null
19091
19092
19093 # as_fn_mkdir_p
19094 # -------------
19095 # Create "$as_dir" as a directory, including parents if necessary.
19096 as_fn_mkdir_p ()
19097 {
19098
19099 case $as_dir in #(
19100 -*) as_dir=./$as_dir;;
19101 esac
19102 test -d "$as_dir" || eval $as_mkdir_p || {
19103 as_dirs=
19104 while :; do
19105 case $as_dir in #(
19106 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19107 *) as_qdir=$as_dir;;
19108 esac
19109 as_dirs="'$as_qdir' $as_dirs"
19110 as_dir=`$as_dirname -- "$as_dir" ||
19111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19112 X"$as_dir" : 'X\(//\)[^/]' \| \
19113 X"$as_dir" : 'X\(//\)$' \| \
19114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19115 $as_echo X"$as_dir" |
19116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19117 s//\1/
19118 q
19119 }
19120 /^X\(\/\/\)[^/].*/{
19121 s//\1/
19122 q
19123 }
19124 /^X\(\/\/\)$/{
19125 s//\1/
19126 q
19127 }
19128 /^X\(\/\).*/{
19129 s//\1/
19130 q
19131 }
19132 s/.*/./; q'`
19133 test -d "$as_dir" && break
19134 done
19135 test -z "$as_dirs" || eval "mkdir $as_dirs"
19136 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19137
19138
19139 } # as_fn_mkdir_p
19140 if mkdir -p . 2>/dev/null; then
19141 as_mkdir_p='mkdir -p "$as_dir"'
19142 else
19143 test -d ./-p && rmdir ./-p
19144 as_mkdir_p=false
19145 fi
19146
19147
19148 # as_fn_executable_p FILE
19149 # -----------------------
19150 # Test if FILE is an executable regular file.
19151 as_fn_executable_p ()
19152 {
19153 test -f "$1" && test -x "$1"
19154 } # as_fn_executable_p
19155 as_test_x='test -x'
19156 as_executable_p=as_fn_executable_p
19157
19158 # Sed expression to map a string onto a valid CPP name.
19159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19160
19161 # Sed expression to map a string onto a valid variable name.
19162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19163
19164
19165 exec 6>&1
19166 ## ----------------------------------- ##
19167 ## Main body of $CONFIG_STATUS script. ##
19168 ## ----------------------------------- ##
19169 _ASEOF
19170 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19171
19172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19173 # Save the log message, to keep $0 and so on meaningful, and to
19174 # report actual input values of CONFIG_FILES etc. instead of their
19175 # values after options handling.
19176 ac_log="
19177 This file was extended by libXpm $as_me 3.5.13, which was
19178 generated by GNU Autoconf 2.69. Invocation command line was
19179
19180 CONFIG_FILES = $CONFIG_FILES
19181 CONFIG_HEADERS = $CONFIG_HEADERS
19182 CONFIG_LINKS = $CONFIG_LINKS
19183 CONFIG_COMMANDS = $CONFIG_COMMANDS
19184 $ $0 $@
19185
19186 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19187 "
19188
19189 _ACEOF
19190
19191 case $ac_config_files in *"
19192 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19193 esac
19194
19195 case $ac_config_headers in *"
19196 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19197 esac
19198
19199
19200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19201 # Files that config.status was made for.
19202 config_files="$ac_config_files"
19203 config_headers="$ac_config_headers"
19204 config_commands="$ac_config_commands"
19205
19206 _ACEOF
19207
19208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19209 ac_cs_usage="\
19210 \`$as_me' instantiates files and other configuration actions
19211 from templates according to the current configuration. Unless the files
19212 and actions are specified as TAGs, all are instantiated by default.
19213
19214 Usage: $0 [OPTION]... [TAG]...
19215
19216 -h, --help print this help, then exit
19217 -V, --version print version number and configuration settings, then exit
19218 --config print configuration, then exit
19219 -q, --quiet, --silent
19220 do not print progress messages
19221 -d, --debug don't remove temporary files
19222 --recheck update $as_me by reconfiguring in the same conditions
19223 --file=FILE[:TEMPLATE]
19224 instantiate the configuration file FILE
19225 --header=FILE[:TEMPLATE]
19226 instantiate the configuration header FILE
19227
19228 Configuration files:
19229 $config_files
19230
19231 Configuration headers:
19232 $config_headers
19233
19234 Configuration commands:
19235 $config_commands
19236
19237 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXpm/issues>."
19238
19239 _ACEOF
19240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19241 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19242 ac_cs_version="\\
19243 libXpm config.status 3.5.13
19244 configured by $0, generated by GNU Autoconf 2.69,
19245 with options \\"\$ac_cs_config\\"
19246
19247 Copyright (C) 2012 Free Software Foundation, Inc.
19248 This config.status script is free software; the Free Software Foundation
19249 gives unlimited permission to copy, distribute and modify it."
19250
19251 ac_pwd='$ac_pwd'
19252 srcdir='$srcdir'
19253 INSTALL='$INSTALL'
19254 MKDIR_P='$MKDIR_P'
19255 AWK='$AWK'
19256 test -n "\$AWK" || AWK=awk
19257 _ACEOF
19258
19259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19260 # The default lists apply if the user does not specify any file.
19261 ac_need_defaults=:
19262 while test $# != 0
19263 do
19264 case $1 in
19265 --*=?*)
19266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19268 ac_shift=:
19269 ;;
19270 --*=)
19271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19272 ac_optarg=
19273 ac_shift=:
19274 ;;
19275 *)
19276 ac_option=$1
19277 ac_optarg=$2
19278 ac_shift=shift
19279 ;;
19280 esac
19281
19282 case $ac_option in
19283 # Handling of the options.
19284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19285 ac_cs_recheck=: ;;
19286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19287 $as_echo "$ac_cs_version"; exit ;;
19288 --config | --confi | --conf | --con | --co | --c )
19289 $as_echo "$ac_cs_config"; exit ;;
19290 --debug | --debu | --deb | --de | --d | -d )
19291 debug=: ;;
19292 --file | --fil | --fi | --f )
19293 $ac_shift
19294 case $ac_optarg in
19295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19296 '') as_fn_error $? "missing file argument" ;;
19297 esac
19298 as_fn_append CONFIG_FILES " '$ac_optarg'"
19299 ac_need_defaults=false;;
19300 --header | --heade | --head | --hea )
19301 $ac_shift
19302 case $ac_optarg in
19303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19304 esac
19305 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19306 ac_need_defaults=false;;
19307 --he | --h)
19308 # Conflict between --help and --header
19309 as_fn_error $? "ambiguous option: \`$1'
19310 Try \`$0 --help' for more information.";;
19311 --help | --hel | -h )
19312 $as_echo "$ac_cs_usage"; exit ;;
19313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19315 ac_cs_silent=: ;;
19316
19317 # This is an error.
19318 -*) as_fn_error $? "unrecognized option: \`$1'
19319 Try \`$0 --help' for more information." ;;
19320
19321 *) as_fn_append ac_config_targets " $1"
19322 ac_need_defaults=false ;;
19323
19324 esac
19325 shift
19326 done
19327
19328 ac_configure_extra_args=
19329
19330 if $ac_cs_silent; then
19331 exec 6>/dev/null
19332 ac_configure_extra_args="$ac_configure_extra_args --silent"
19333 fi
19334
19335 _ACEOF
19336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19337 if \$ac_cs_recheck; then
19338 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19339 shift
19340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19341 CONFIG_SHELL='$SHELL'
19342 export CONFIG_SHELL
19343 exec "\$@"
19344 fi
19345
19346 _ACEOF
19347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19348 exec 5>>config.log
19349 {
19350 echo
19351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19352 ## Running $as_me. ##
19353 _ASBOX
19354 $as_echo "$ac_log"
19355 } >&5
19356
19357 _ACEOF
19358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19359 #
19360 # INIT-COMMANDS
19361 #
19362 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19363
19364
19365 # The HP-UX ksh and POSIX shell print the target directory to stdout
19366 # if CDPATH is set.
19367 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19368
19369 sed_quote_subst='$sed_quote_subst'
19370 double_quote_subst='$double_quote_subst'
19371 delay_variable_subst='$delay_variable_subst'
19372 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19373 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19374 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19375 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19376 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19377 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19378 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19379 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19380 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19381 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19382 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19383 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19384 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19385 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19386 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19387 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19388 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19389 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19390 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19391 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19392 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19393 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19394 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19395 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19396 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19397 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19398 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19399 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19400 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19401 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19402 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19403 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19404 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19405 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19406 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19407 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19408 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19409 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19410 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19411 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19412 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19413 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19414 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19415 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19416 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19417 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19418 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19419 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19420 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19421 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19422 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19423 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19424 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19425 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19426 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19427 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19428 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19429 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19430 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"`'
19431 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19432 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19433 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19434 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19435 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19436 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19437 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19438 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19439 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19440 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19441 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19442 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19443 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19444 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19445 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19446 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19447 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19448 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19449 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19450 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19451 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19452 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19453 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19454 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19455 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19456 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19457 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19458 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19459 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19460 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19461 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19462 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19463 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19464 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19465 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19466 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19467 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19468 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19469 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19470 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19471 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19472 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19473 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19474 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19475 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19476 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19477 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19478 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19479 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19480 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19481 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19482 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19483 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19484 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19485 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19486 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19487 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19488 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19489 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19490 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19491 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19492 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19493 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19494 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19495 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19496 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19497 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19498 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19499 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19500 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19501 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19502 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19503 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19504 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19505 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19506 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19507
19508 LTCC='$LTCC'
19509 LTCFLAGS='$LTCFLAGS'
19510 compiler='$compiler_DEFAULT'
19511
19512 # A function that is used when there is no print builtin or printf.
19513 func_fallback_echo ()
19514 {
19515 eval 'cat <<_LTECHO_EOF
19516 \$1
19517 _LTECHO_EOF'
19518 }
19519
19520 # Quote evaled strings.
19521 for var in SHELL \
19522 ECHO \
19523 PATH_SEPARATOR \
19524 SED \
19525 GREP \
19526 EGREP \
19527 FGREP \
19528 LD \
19529 NM \
19530 LN_S \
19531 lt_SP2NL \
19532 lt_NL2SP \
19533 reload_flag \
19534 OBJDUMP \
19535 deplibs_check_method \
19536 file_magic_cmd \
19537 file_magic_glob \
19538 want_nocaseglob \
19539 DLLTOOL \
19540 sharedlib_from_linklib_cmd \
19541 AR \
19542 AR_FLAGS \
19543 archiver_list_spec \
19544 STRIP \
19545 RANLIB \
19546 CC \
19547 CFLAGS \
19548 compiler \
19549 lt_cv_sys_global_symbol_pipe \
19550 lt_cv_sys_global_symbol_to_cdecl \
19551 lt_cv_sys_global_symbol_to_import \
19552 lt_cv_sys_global_symbol_to_c_name_address \
19553 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19554 lt_cv_nm_interface \
19555 nm_file_list_spec \
19556 lt_cv_truncate_bin \
19557 lt_prog_compiler_no_builtin_flag \
19558 lt_prog_compiler_pic \
19559 lt_prog_compiler_wl \
19560 lt_prog_compiler_static \
19561 lt_cv_prog_compiler_c_o \
19562 need_locks \
19563 MANIFEST_TOOL \
19564 DSYMUTIL \
19565 NMEDIT \
19566 LIPO \
19567 OTOOL \
19568 OTOOL64 \
19569 shrext_cmds \
19570 export_dynamic_flag_spec \
19571 whole_archive_flag_spec \
19572 compiler_needs_object \
19573 with_gnu_ld \
19574 allow_undefined_flag \
19575 no_undefined_flag \
19576 hardcode_libdir_flag_spec \
19577 hardcode_libdir_separator \
19578 exclude_expsyms \
19579 include_expsyms \
19580 file_list_spec \
19581 variables_saved_for_relink \
19582 libname_spec \
19583 library_names_spec \
19584 soname_spec \
19585 install_override_mode \
19586 finish_eval \
19587 old_striplib \
19588 striplib; do
19589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19590 *[\\\\\\\`\\"\\\$]*)
19591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19592 ;;
19593 *)
19594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19595 ;;
19596 esac
19597 done
19598
19599 # Double-quote double-evaled strings.
19600 for var in reload_cmds \
19601 old_postinstall_cmds \
19602 old_postuninstall_cmds \
19603 old_archive_cmds \
19604 extract_expsyms_cmds \
19605 old_archive_from_new_cmds \
19606 old_archive_from_expsyms_cmds \
19607 archive_cmds \
19608 archive_expsym_cmds \
19609 module_cmds \
19610 module_expsym_cmds \
19611 export_symbols_cmds \
19612 prelink_cmds \
19613 postlink_cmds \
19614 postinstall_cmds \
19615 postuninstall_cmds \
19616 finish_cmds \
19617 sys_lib_search_path_spec \
19618 configure_time_dlsearch_path \
19619 configure_time_lt_sys_library_path; do
19620 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19621 *[\\\\\\\`\\"\\\$]*)
19622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19623 ;;
19624 *)
19625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19626 ;;
19627 esac
19628 done
19629
19630 ac_aux_dir='$ac_aux_dir'
19631
19632 # See if we are running on zsh, and set the options that allow our
19633 # commands through without removal of \ escapes INIT.
19634 if test -n "\${ZSH_VERSION+set}"; then
19635 setopt NO_GLOB_SUBST
19636 fi
19637
19638
19639 PACKAGE='$PACKAGE'
19640 VERSION='$VERSION'
19641 RM='$RM'
19642 ofile='$ofile'
19643
19644
19645
19646
19647 _ACEOF
19648
19649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19650
19651 # Handling of arguments.
19652 for ac_config_target in $ac_config_targets
19653 do
19654 case $ac_config_target in
19655 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19656 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19657 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19658 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19659 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19660 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19661 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19662 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19663 "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;;
19664 "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;;
19665 "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;;
19666
19667 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19668 esac
19669 done
19670
19671
19672 # If the user did not use the arguments to specify the items to instantiate,
19673 # then the envvar interface is used. Set only those that are not.
19674 # We use the long form for the default assignment because of an extremely
19675 # bizarre bug on SunOS 4.1.3.
19676 if $ac_need_defaults; then
19677 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19678 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19679 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19680 fi
19681
19682 # Have a temporary directory for convenience. Make it in the build tree
19683 # simply because there is no reason against having it here, and in addition,
19684 # creating and moving files from /tmp can sometimes cause problems.
19685 # Hook for its removal unless debugging.
19686 # Note that there is a small window in which the directory will not be cleaned:
19687 # after its creation but before its name has been assigned to `$tmp'.
19688 $debug ||
19689 {
19690 tmp= ac_tmp=
19691 trap 'exit_status=$?
19692 : "${ac_tmp:=$tmp}"
19693 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19694 ' 0
19695 trap 'as_fn_exit 1' 1 2 13 15
19696 }
19697 # Create a (secure) tmp directory for tmp files.
19698
19699 {
19700 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19701 test -d "$tmp"
19702 } ||
19703 {
19704 tmp=./conf$$-$RANDOM
19705 (umask 077 && mkdir "$tmp")
19706 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19707 ac_tmp=$tmp
19708
19709 # Set up the scripts for CONFIG_FILES section.
19710 # No need to generate them if there are no CONFIG_FILES.
19711 # This happens for instance with `./config.status config.h'.
19712 if test -n "$CONFIG_FILES"; then
19713
19714
19715 ac_cr=`echo X | tr X '\015'`
19716 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19717 # But we know of no other shell where ac_cr would be empty at this
19718 # point, so we can use a bashism as a fallback.
19719 if test "x$ac_cr" = x; then
19720 eval ac_cr=\$\'\\r\'
19721 fi
19722 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19723 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19724 ac_cs_awk_cr='\\r'
19725 else
19726 ac_cs_awk_cr=$ac_cr
19727 fi
19728
19729 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19730 _ACEOF
19731
19732
19733 {
19734 echo "cat >conf$$subs.awk <<_ACEOF" &&
19735 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19736 echo "_ACEOF"
19737 } >conf$$subs.sh ||
19738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19739 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19740 ac_delim='%!_!# '
19741 for ac_last_try in false false false false false :; do
19742 . ./conf$$subs.sh ||
19743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19744
19745 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19746 if test $ac_delim_n = $ac_delim_num; then
19747 break
19748 elif $ac_last_try; then
19749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19750 else
19751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19752 fi
19753 done
19754 rm -f conf$$subs.sh
19755
19756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19757 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19758 _ACEOF
19759 sed -n '
19760 h
19761 s/^/S["/; s/!.*/"]=/
19762 p
19763 g
19764 s/^[^!]*!//
19765 :repl
19766 t repl
19767 s/'"$ac_delim"'$//
19768 t delim
19769 :nl
19770 h
19771 s/\(.\{148\}\)..*/\1/
19772 t more1
19773 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19774 p
19775 n
19776 b repl
19777 :more1
19778 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19779 p
19780 g
19781 s/.\{148\}//
19782 t nl
19783 :delim
19784 h
19785 s/\(.\{148\}\)..*/\1/
19786 t more2
19787 s/["\\]/\\&/g; s/^/"/; s/$/"/
19788 p
19789 b
19790 :more2
19791 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19792 p
19793 g
19794 s/.\{148\}//
19795 t delim
19796 ' <conf$$subs.awk | sed '
19797 /^[^""]/{
19798 N
19799 s/\n//
19800 }
19801 ' >>$CONFIG_STATUS || ac_write_fail=1
19802 rm -f conf$$subs.awk
19803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19804 _ACAWK
19805 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19806 for (key in S) S_is_set[key] = 1
19807 FS = ""
19808
19809 }
19810 {
19811 line = $ 0
19812 nfields = split(line, field, "@")
19813 substed = 0
19814 len = length(field[1])
19815 for (i = 2; i < nfields; i++) {
19816 key = field[i]
19817 keylen = length(key)
19818 if (S_is_set[key]) {
19819 value = S[key]
19820 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19821 len += length(value) + length(field[++i])
19822 substed = 1
19823 } else
19824 len += 1 + keylen
19825 }
19826
19827 print line
19828 }
19829
19830 _ACAWK
19831 _ACEOF
19832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19833 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19834 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19835 else
19836 cat
19837 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19838 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19839 _ACEOF
19840
19841 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19842 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19843 # trailing colons and then remove the whole line if VPATH becomes empty
19844 # (actually we leave an empty line to preserve line numbers).
19845 if test "x$srcdir" = x.; then
19846 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19847 h
19848 s///
19849 s/^/:/
19850 s/[ ]*$/:/
19851 s/:\$(srcdir):/:/g
19852 s/:\${srcdir}:/:/g
19853 s/:@srcdir@:/:/g
19854 s/^:*//
19855 s/:*$//
19856 x
19857 s/\(=[ ]*\).*/\1/
19858 G
19859 s/\n//
19860 s/^[^=]*=[ ]*$//
19861 }'
19862 fi
19863
19864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19865 fi # test -n "$CONFIG_FILES"
19866
19867 # Set up the scripts for CONFIG_HEADERS section.
19868 # No need to generate them if there are no CONFIG_HEADERS.
19869 # This happens for instance with `./config.status Makefile'.
19870 if test -n "$CONFIG_HEADERS"; then
19871 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19872 BEGIN {
19873 _ACEOF
19874
19875 # Transform confdefs.h into an awk script `defines.awk', embedded as
19876 # here-document in config.status, that substitutes the proper values into
19877 # config.h.in to produce config.h.
19878
19879 # Create a delimiter string that does not exist in confdefs.h, to ease
19880 # handling of long lines.
19881 ac_delim='%!_!# '
19882 for ac_last_try in false false :; do
19883 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19884 if test -z "$ac_tt"; then
19885 break
19886 elif $ac_last_try; then
19887 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19888 else
19889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19890 fi
19891 done
19892
19893 # For the awk script, D is an array of macro values keyed by name,
19894 # likewise P contains macro parameters if any. Preserve backslash
19895 # newline sequences.
19896
19897 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19898 sed -n '
19899 s/.\{148\}/&'"$ac_delim"'/g
19900 t rset
19901 :rset
19902 s/^[ ]*#[ ]*define[ ][ ]*/ /
19903 t def
19904 d
19905 :def
19906 s/\\$//
19907 t bsnl
19908 s/["\\]/\\&/g
19909 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19910 D["\1"]=" \3"/p
19911 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19912 d
19913 :bsnl
19914 s/["\\]/\\&/g
19915 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19916 D["\1"]=" \3\\\\\\n"\\/p
19917 t cont
19918 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19919 t cont
19920 d
19921 :cont
19922 n
19923 s/.\{148\}/&'"$ac_delim"'/g
19924 t clear
19925 :clear
19926 s/\\$//
19927 t bsnlc
19928 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19929 d
19930 :bsnlc
19931 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19932 b cont
19933 ' <confdefs.h | sed '
19934 s/'"$ac_delim"'/"\\\
19935 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19936
19937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19938 for (key in D) D_is_set[key] = 1
19939 FS = ""
19940 }
19941 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19942 line = \$ 0
19943 split(line, arg, " ")
19944 if (arg[1] == "#") {
19945 defundef = arg[2]
19946 mac1 = arg[3]
19947 } else {
19948 defundef = substr(arg[1], 2)
19949 mac1 = arg[2]
19950 }
19951 split(mac1, mac2, "(") #)
19952 macro = mac2[1]
19953 prefix = substr(line, 1, index(line, defundef) - 1)
19954 if (D_is_set[macro]) {
19955 # Preserve the white space surrounding the "#".
19956 print prefix "define", macro P[macro] D[macro]
19957 next
19958 } else {
19959 # Replace #undef with comments. This is necessary, for example,
19960 # in the case of _POSIX_SOURCE, which is predefined and required
19961 # on some systems where configure will not decide to define it.
19962 if (defundef == "undef") {
19963 print "/*", prefix defundef, macro, "*/"
19964 next
19965 }
19966 }
19967 }
19968 { print }
19969 _ACAWK
19970 _ACEOF
19971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19972 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19973 fi # test -n "$CONFIG_HEADERS"
19974
19975
19976 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19977 shift
19978 for ac_tag
19979 do
19980 case $ac_tag in
19981 :[FHLC]) ac_mode=$ac_tag; continue;;
19982 esac
19983 case $ac_mode$ac_tag in
19984 :[FHL]*:*);;
19985 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19986 :[FH]-) ac_tag=-:-;;
19987 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19988 esac
19989 ac_save_IFS=$IFS
19990 IFS=:
19991 set x $ac_tag
19992 IFS=$ac_save_IFS
19993 shift
19994 ac_file=$1
19995 shift
19996
19997 case $ac_mode in
19998 :L) ac_source=$1;;
19999 :[FH])
20000 ac_file_inputs=
20001 for ac_f
20002 do
20003 case $ac_f in
20004 -) ac_f="$ac_tmp/stdin";;
20005 *) # Look for the file first in the build tree, then in the source tree
20006 # (if the path is not absolute). The absolute path cannot be DOS-style,
20007 # because $ac_f cannot contain `:'.
20008 test -f "$ac_f" ||
20009 case $ac_f in
20010 [\\/$]*) false;;
20011 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20012 esac ||
20013 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20014 esac
20015 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20016 as_fn_append ac_file_inputs " '$ac_f'"
20017 done
20018
20019 # Let's still pretend it is `configure' which instantiates (i.e., don't
20020 # use $as_me), people would be surprised to read:
20021 # /* config.h. Generated by config.status. */
20022 configure_input='Generated from '`
20023 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20024 `' by configure.'
20025 if test x"$ac_file" != x-; then
20026 configure_input="$ac_file. $configure_input"
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20028 $as_echo "$as_me: creating $ac_file" >&6;}
20029 fi
20030 # Neutralize special characters interpreted by sed in replacement strings.
20031 case $configure_input in #(
20032 *\&* | *\|* | *\\* )
20033 ac_sed_conf_input=`$as_echo "$configure_input" |
20034 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20035 *) ac_sed_conf_input=$configure_input;;
20036 esac
20037
20038 case $ac_tag in
20039 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20041 esac
20042 ;;
20043 esac
20044
20045 ac_dir=`$as_dirname -- "$ac_file" ||
20046 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20047 X"$ac_file" : 'X\(//\)[^/]' \| \
20048 X"$ac_file" : 'X\(//\)$' \| \
20049 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20050 $as_echo X"$ac_file" |
20051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20052 s//\1/
20053 q
20054 }
20055 /^X\(\/\/\)[^/].*/{
20056 s//\1/
20057 q
20058 }
20059 /^X\(\/\/\)$/{
20060 s//\1/
20061 q
20062 }
20063 /^X\(\/\).*/{
20064 s//\1/
20065 q
20066 }
20067 s/.*/./; q'`
20068 as_dir="$ac_dir"; as_fn_mkdir_p
20069 ac_builddir=.
20070
20071 case "$ac_dir" in
20072 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20073 *)
20074 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20075 # A ".." for each directory in $ac_dir_suffix.
20076 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20077 case $ac_top_builddir_sub in
20078 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20079 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20080 esac ;;
20081 esac
20082 ac_abs_top_builddir=$ac_pwd
20083 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20084 # for backward compatibility:
20085 ac_top_builddir=$ac_top_build_prefix
20086
20087 case $srcdir in
20088 .) # We are building in place.
20089 ac_srcdir=.
20090 ac_top_srcdir=$ac_top_builddir_sub
20091 ac_abs_top_srcdir=$ac_pwd ;;
20092 [\\/]* | ?:[\\/]* ) # Absolute name.
20093 ac_srcdir=$srcdir$ac_dir_suffix;
20094 ac_top_srcdir=$srcdir
20095 ac_abs_top_srcdir=$srcdir ;;
20096 *) # Relative name.
20097 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20098 ac_top_srcdir=$ac_top_build_prefix$srcdir
20099 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20100 esac
20101 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20102
20103
20104 case $ac_mode in
20105 :F)
20106 #
20107 # CONFIG_FILE
20108 #
20109
20110 case $INSTALL in
20111 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20112 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20113 esac
20114 ac_MKDIR_P=$MKDIR_P
20115 case $MKDIR_P in
20116 [\\/$]* | ?:[\\/]* ) ;;
20117 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20118 esac
20119 _ACEOF
20120
20121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20122 # If the template does not know about datarootdir, expand it.
20123 # FIXME: This hack should be removed a few years after 2.60.
20124 ac_datarootdir_hack=; ac_datarootdir_seen=
20125 ac_sed_dataroot='
20126 /datarootdir/ {
20127 p
20128 q
20129 }
20130 /@datadir@/p
20131 /@docdir@/p
20132 /@infodir@/p
20133 /@localedir@/p
20134 /@mandir@/p'
20135 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20136 *datarootdir*) ac_datarootdir_seen=yes;;
20137 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20139 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20140 _ACEOF
20141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20142 ac_datarootdir_hack='
20143 s&@datadir@&$datadir&g
20144 s&@docdir@&$docdir&g
20145 s&@infodir@&$infodir&g
20146 s&@localedir@&$localedir&g
20147 s&@mandir@&$mandir&g
20148 s&\\\${datarootdir}&$datarootdir&g' ;;
20149 esac
20150 _ACEOF
20151
20152 # Neutralize VPATH when `$srcdir' = `.'.
20153 # Shell code in configure.ac might set extrasub.
20154 # FIXME: do we really want to maintain this feature?
20155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20156 ac_sed_extra="$ac_vpsub
20157 $extrasub
20158 _ACEOF
20159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20160 :t
20161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20162 s|@configure_input@|$ac_sed_conf_input|;t t
20163 s&@top_builddir@&$ac_top_builddir_sub&;t t
20164 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20165 s&@srcdir@&$ac_srcdir&;t t
20166 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20167 s&@top_srcdir@&$ac_top_srcdir&;t t
20168 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20169 s&@builddir@&$ac_builddir&;t t
20170 s&@abs_builddir@&$ac_abs_builddir&;t t
20171 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20172 s&@INSTALL@&$ac_INSTALL&;t t
20173 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20174 $ac_datarootdir_hack
20175 "
20176 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20177 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20178
20179 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20180 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20181 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20182 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20184 which seems to be undefined. Please make sure it is defined" >&5
20185 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20186 which seems to be undefined. Please make sure it is defined" >&2;}
20187
20188 rm -f "$ac_tmp/stdin"
20189 case $ac_file in
20190 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20191 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20192 esac \
20193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20194 ;;
20195 :H)
20196 #
20197 # CONFIG_HEADER
20198 #
20199 if test x"$ac_file" != x-; then
20200 {
20201 $as_echo "/* $configure_input */" \
20202 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20203 } >"$ac_tmp/config.h" \
20204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20205 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20207 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20208 else
20209 rm -f "$ac_file"
20210 mv "$ac_tmp/config.h" "$ac_file" \
20211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20212 fi
20213 else
20214 $as_echo "/* $configure_input */" \
20215 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20216 || as_fn_error $? "could not create -" "$LINENO" 5
20217 fi
20218 # Compute "$ac_file"'s index in $config_headers.
20219 _am_arg="$ac_file"
20220 _am_stamp_count=1
20221 for _am_header in $config_headers :; do
20222 case $_am_header in
20223 $_am_arg | $_am_arg:* )
20224 break ;;
20225 * )
20226 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20227 esac
20228 done
20229 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20230 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20231 X"$_am_arg" : 'X\(//\)[^/]' \| \
20232 X"$_am_arg" : 'X\(//\)$' \| \
20233 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20234 $as_echo X"$_am_arg" |
20235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20236 s//\1/
20237 q
20238 }
20239 /^X\(\/\/\)[^/].*/{
20240 s//\1/
20241 q
20242 }
20243 /^X\(\/\/\)$/{
20244 s//\1/
20245 q
20246 }
20247 /^X\(\/\).*/{
20248 s//\1/
20249 q
20250 }
20251 s/.*/./; q'`/stamp-h$_am_stamp_count
20252 ;;
20253
20254 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20255 $as_echo "$as_me: executing $ac_file commands" >&6;}
20256 ;;
20257 esac
20258
20259
20260 case $ac_file$ac_mode in
20261 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20262 # Older Autoconf quotes --file arguments for eval, but not when files
20263 # are listed without --file. Let's play safe and only enable the eval
20264 # if we detect the quoting.
20265 # TODO: see whether this extra hack can be removed once we start
20266 # requiring Autoconf 2.70 or later.
20267 case $CONFIG_FILES in #(
20268 *\'*) :
20269 eval set x "$CONFIG_FILES" ;; #(
20270 *) :
20271 set x $CONFIG_FILES ;; #(
20272 *) :
20273 ;;
20274 esac
20275 shift
20276 # Used to flag and report bootstrapping failures.
20277 am_rc=0
20278 for am_mf
20279 do
20280 # Strip MF so we end up with the name of the file.
20281 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20282 # Check whether this is an Automake generated Makefile which includes
20283 # dependency-tracking related rules and includes.
20284 # Grep'ing the whole file directly is not great: AIX grep has a line
20285 # limit of 2048, but all sed's we know have understand at least 4000.
20286 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20287 || continue
20288 am_dirpart=`$as_dirname -- "$am_mf" ||
20289 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20290 X"$am_mf" : 'X\(//\)[^/]' \| \
20291 X"$am_mf" : 'X\(//\)$' \| \
20292 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20293 $as_echo X"$am_mf" |
20294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20295 s//\1/
20296 q
20297 }
20298 /^X\(\/\/\)[^/].*/{
20299 s//\1/
20300 q
20301 }
20302 /^X\(\/\/\)$/{
20303 s//\1/
20304 q
20305 }
20306 /^X\(\/\).*/{
20307 s//\1/
20308 q
20309 }
20310 s/.*/./; q'`
20311 am_filepart=`$as_basename -- "$am_mf" ||
20312 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20313 X"$am_mf" : 'X\(//\)$' \| \
20314 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20315 $as_echo X/"$am_mf" |
20316 sed '/^.*\/\([^/][^/]*\)\/*$/{
20317 s//\1/
20318 q
20319 }
20320 /^X\/\(\/\/\)$/{
20321 s//\1/
20322 q
20323 }
20324 /^X\/\(\/\).*/{
20325 s//\1/
20326 q
20327 }
20328 s/.*/./; q'`
20329 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20330 && sed -e '/# am--include-marker/d' "$am_filepart" \
20331 | $MAKE -f - am--depfiles" >&5
20332 (cd "$am_dirpart" \
20333 && sed -e '/# am--include-marker/d' "$am_filepart" \
20334 | $MAKE -f - am--depfiles) >&5 2>&5
20335 ac_status=$?
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } || am_rc=$?
20338 done
20339 if test $am_rc -ne 0; then
20340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20342 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20343 for automatic dependency tracking. Try re-running configure with the
20344 '--disable-dependency-tracking' option to at least be able to build
20345 the package (albeit without support for automatic dependency tracking).
20346 See \`config.log' for more details" "$LINENO" 5; }
20347 fi
20348 { am_dirpart=; unset am_dirpart;}
20349 { am_filepart=; unset am_filepart;}
20350 { am_mf=; unset am_mf;}
20351 { am_rc=; unset am_rc;}
20352 rm -f conftest-deps.mk
20353 }
20354 ;;
20355 "libtool":C)
20356
20357 # See if we are running on zsh, and set the options that allow our
20358 # commands through without removal of \ escapes.
20359 if test -n "${ZSH_VERSION+set}"; then
20360 setopt NO_GLOB_SUBST
20361 fi
20362
20363 cfgfile=${ofile}T
20364 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20365 $RM "$cfgfile"
20366
20367 cat <<_LT_EOF >> "$cfgfile"
20368 #! $SHELL
20369 # Generated automatically by $as_me ($PACKAGE) $VERSION
20370 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20371 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20372
20373 # Provide generalized library-building support services.
20374 # Written by Gordon Matzigkeit, 1996
20375
20376 # Copyright (C) 2014 Free Software Foundation, Inc.
20377 # This is free software; see the source for copying conditions. There is NO
20378 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20379
20380 # GNU Libtool is free software; you can redistribute it and/or modify
20381 # it under the terms of the GNU General Public License as published by
20382 # the Free Software Foundation; either version 2 of of the License, or
20383 # (at your option) any later version.
20384 #
20385 # As a special exception to the GNU General Public License, if you
20386 # distribute this file as part of a program or library that is built
20387 # using GNU Libtool, you may include this file under the same
20388 # distribution terms that you use for the rest of that program.
20389 #
20390 # GNU Libtool is distributed in the hope that it will be useful, but
20391 # WITHOUT ANY WARRANTY; without even the implied warranty of
20392 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20393 # GNU General Public License for more details.
20394 #
20395 # You should have received a copy of the GNU General Public License
20396 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20397
20398
20399 # The names of the tagged configurations supported by this script.
20400 available_tags=''
20401
20402 # Configured defaults for sys_lib_dlsearch_path munging.
20403 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20404
20405 # ### BEGIN LIBTOOL CONFIG
20406
20407 # Which release of libtool.m4 was used?
20408 macro_version=$macro_version
20409 macro_revision=$macro_revision
20410
20411 # Whether or not to build shared libraries.
20412 build_libtool_libs=$enable_shared
20413
20414 # Whether or not to build static libraries.
20415 build_old_libs=$enable_static
20416
20417 # What type of objects to build.
20418 pic_mode=$pic_mode
20419
20420 # Whether or not to optimize for fast installation.
20421 fast_install=$enable_fast_install
20422
20423 # Shared archive member basename,for filename based shared library versioning on AIX.
20424 shared_archive_member_spec=$shared_archive_member_spec
20425
20426 # Shell to use when invoking shell scripts.
20427 SHELL=$lt_SHELL
20428
20429 # An echo program that protects backslashes.
20430 ECHO=$lt_ECHO
20431
20432 # The PATH separator for the build system.
20433 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20434
20435 # The host system.
20436 host_alias=$host_alias
20437 host=$host
20438 host_os=$host_os
20439
20440 # The build system.
20441 build_alias=$build_alias
20442 build=$build
20443 build_os=$build_os
20444
20445 # A sed program that does not truncate output.
20446 SED=$lt_SED
20447
20448 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20449 Xsed="\$SED -e 1s/^X//"
20450
20451 # A grep program that handles long lines.
20452 GREP=$lt_GREP
20453
20454 # An ERE matcher.
20455 EGREP=$lt_EGREP
20456
20457 # A literal string matcher.
20458 FGREP=$lt_FGREP
20459
20460 # A BSD- or MS-compatible name lister.
20461 NM=$lt_NM
20462
20463 # Whether we need soft or hard links.
20464 LN_S=$lt_LN_S
20465
20466 # What is the maximum length of a command?
20467 max_cmd_len=$max_cmd_len
20468
20469 # Object file suffix (normally "o").
20470 objext=$ac_objext
20471
20472 # Executable file suffix (normally "").
20473 exeext=$exeext
20474
20475 # whether the shell understands "unset".
20476 lt_unset=$lt_unset
20477
20478 # turn spaces into newlines.
20479 SP2NL=$lt_lt_SP2NL
20480
20481 # turn newlines into spaces.
20482 NL2SP=$lt_lt_NL2SP
20483
20484 # convert \$build file names to \$host format.
20485 to_host_file_cmd=$lt_cv_to_host_file_cmd
20486
20487 # convert \$build files to toolchain format.
20488 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20489
20490 # An object symbol dumper.
20491 OBJDUMP=$lt_OBJDUMP
20492
20493 # Method to check whether dependent libraries are shared objects.
20494 deplibs_check_method=$lt_deplibs_check_method
20495
20496 # Command to use when deplibs_check_method = "file_magic".
20497 file_magic_cmd=$lt_file_magic_cmd
20498
20499 # How to find potential files when deplibs_check_method = "file_magic".
20500 file_magic_glob=$lt_file_magic_glob
20501
20502 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20503 want_nocaseglob=$lt_want_nocaseglob
20504
20505 # DLL creation program.
20506 DLLTOOL=$lt_DLLTOOL
20507
20508 # Command to associate shared and link libraries.
20509 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20510
20511 # The archiver.
20512 AR=$lt_AR
20513
20514 # Flags to create an archive.
20515 AR_FLAGS=$lt_AR_FLAGS
20516
20517 # How to feed a file listing to the archiver.
20518 archiver_list_spec=$lt_archiver_list_spec
20519
20520 # A symbol stripping program.
20521 STRIP=$lt_STRIP
20522
20523 # Commands used to install an old-style archive.
20524 RANLIB=$lt_RANLIB
20525 old_postinstall_cmds=$lt_old_postinstall_cmds
20526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20527
20528 # Whether to use a lock for old archive extraction.
20529 lock_old_archive_extraction=$lock_old_archive_extraction
20530
20531 # A C compiler.
20532 LTCC=$lt_CC
20533
20534 # LTCC compiler flags.
20535 LTCFLAGS=$lt_CFLAGS
20536
20537 # Take the output of nm and produce a listing of raw symbols and C names.
20538 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20539
20540 # Transform the output of nm in a proper C declaration.
20541 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20542
20543 # Transform the output of nm into a list of symbols to manually relocate.
20544 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20545
20546 # Transform the output of nm in a C name address pair.
20547 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20548
20549 # Transform the output of nm in a C name address pair when lib prefix is needed.
20550 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20551
20552 # The name lister interface.
20553 nm_interface=$lt_lt_cv_nm_interface
20554
20555 # Specify filename containing input files for \$NM.
20556 nm_file_list_spec=$lt_nm_file_list_spec
20557
20558 # The root where to search for dependent libraries,and where our libraries should be installed.
20559 lt_sysroot=$lt_sysroot
20560
20561 # Command to truncate a binary pipe.
20562 lt_truncate_bin=$lt_lt_cv_truncate_bin
20563
20564 # The name of the directory that contains temporary libtool files.
20565 objdir=$objdir
20566
20567 # Used to examine libraries when file_magic_cmd begins with "file".
20568 MAGIC_CMD=$MAGIC_CMD
20569
20570 # Must we lock files when doing compilation?
20571 need_locks=$lt_need_locks
20572
20573 # Manifest tool.
20574 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20575
20576 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20577 DSYMUTIL=$lt_DSYMUTIL
20578
20579 # Tool to change global to local symbols on Mac OS X.
20580 NMEDIT=$lt_NMEDIT
20581
20582 # Tool to manipulate fat objects and archives on Mac OS X.
20583 LIPO=$lt_LIPO
20584
20585 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20586 OTOOL=$lt_OTOOL
20587
20588 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20589 OTOOL64=$lt_OTOOL64
20590
20591 # Old archive suffix (normally "a").
20592 libext=$libext
20593
20594 # Shared library suffix (normally ".so").
20595 shrext_cmds=$lt_shrext_cmds
20596
20597 # The commands to extract the exported symbol list from a shared archive.
20598 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20599
20600 # Variables whose values should be saved in libtool wrapper scripts and
20601 # restored at link time.
20602 variables_saved_for_relink=$lt_variables_saved_for_relink
20603
20604 # Do we need the "lib" prefix for modules?
20605 need_lib_prefix=$need_lib_prefix
20606
20607 # Do we need a version for libraries?
20608 need_version=$need_version
20609
20610 # Library versioning type.
20611 version_type=$version_type
20612
20613 # Shared library runtime path variable.
20614 runpath_var=$runpath_var
20615
20616 # Shared library path variable.
20617 shlibpath_var=$shlibpath_var
20618
20619 # Is shlibpath searched before the hard-coded library search path?
20620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20621
20622 # Format of library name prefix.
20623 libname_spec=$lt_libname_spec
20624
20625 # List of archive names. First name is the real one, the rest are links.
20626 # The last name is the one that the linker finds with -lNAME
20627 library_names_spec=$lt_library_names_spec
20628
20629 # The coded name of the library, if different from the real name.
20630 soname_spec=$lt_soname_spec
20631
20632 # Permission mode override for installation of shared libraries.
20633 install_override_mode=$lt_install_override_mode
20634
20635 # Command to use after installation of a shared archive.
20636 postinstall_cmds=$lt_postinstall_cmds
20637
20638 # Command to use after uninstallation of a shared archive.
20639 postuninstall_cmds=$lt_postuninstall_cmds
20640
20641 # Commands used to finish a libtool library installation in a directory.
20642 finish_cmds=$lt_finish_cmds
20643
20644 # As "finish_cmds", except a single script fragment to be evaled but
20645 # not shown.
20646 finish_eval=$lt_finish_eval
20647
20648 # Whether we should hardcode library paths into libraries.
20649 hardcode_into_libs=$hardcode_into_libs
20650
20651 # Compile-time system search path for libraries.
20652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20653
20654 # Detected run-time system search path for libraries.
20655 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20656
20657 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20658 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20659
20660 # Whether dlopen is supported.
20661 dlopen_support=$enable_dlopen
20662
20663 # Whether dlopen of programs is supported.
20664 dlopen_self=$enable_dlopen_self
20665
20666 # Whether dlopen of statically linked programs is supported.
20667 dlopen_self_static=$enable_dlopen_self_static
20668
20669 # Commands to strip libraries.
20670 old_striplib=$lt_old_striplib
20671 striplib=$lt_striplib
20672
20673
20674 # The linker used to build libraries.
20675 LD=$lt_LD
20676
20677 # How to create reloadable object files.
20678 reload_flag=$lt_reload_flag
20679 reload_cmds=$lt_reload_cmds
20680
20681 # Commands used to build an old-style archive.
20682 old_archive_cmds=$lt_old_archive_cmds
20683
20684 # A language specific compiler.
20685 CC=$lt_compiler
20686
20687 # Is the compiler the GNU compiler?
20688 with_gcc=$GCC
20689
20690 # Compiler flag to turn off builtin functions.
20691 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20692
20693 # Additional compiler flags for building library objects.
20694 pic_flag=$lt_lt_prog_compiler_pic
20695
20696 # How to pass a linker flag through the compiler.
20697 wl=$lt_lt_prog_compiler_wl
20698
20699 # Compiler flag to prevent dynamic linking.
20700 link_static_flag=$lt_lt_prog_compiler_static
20701
20702 # Does compiler simultaneously support -c and -o options?
20703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20704
20705 # Whether or not to add -lc for building shared libraries.
20706 build_libtool_need_lc=$archive_cmds_need_lc
20707
20708 # Whether or not to disallow shared libs when runtime libs are static.
20709 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20710
20711 # Compiler flag to allow reflexive dlopens.
20712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20713
20714 # Compiler flag to generate shared objects directly from archives.
20715 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20716
20717 # Whether the compiler copes with passing no objects directly.
20718 compiler_needs_object=$lt_compiler_needs_object
20719
20720 # Create an old-style archive from a shared archive.
20721 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20722
20723 # Create a temporary old-style archive to link instead of a shared archive.
20724 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20725
20726 # Commands used to build a shared archive.
20727 archive_cmds=$lt_archive_cmds
20728 archive_expsym_cmds=$lt_archive_expsym_cmds
20729
20730 # Commands used to build a loadable module if different from building
20731 # a shared archive.
20732 module_cmds=$lt_module_cmds
20733 module_expsym_cmds=$lt_module_expsym_cmds
20734
20735 # Whether we are building with GNU ld or not.
20736 with_gnu_ld=$lt_with_gnu_ld
20737
20738 # Flag that allows shared libraries with undefined symbols to be built.
20739 allow_undefined_flag=$lt_allow_undefined_flag
20740
20741 # Flag that enforces no undefined symbols.
20742 no_undefined_flag=$lt_no_undefined_flag
20743
20744 # Flag to hardcode \$libdir into a binary during linking.
20745 # This must work even if \$libdir does not exist
20746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20747
20748 # Whether we need a single "-rpath" flag with a separated argument.
20749 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20750
20751 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20752 # DIR into the resulting binary.
20753 hardcode_direct=$hardcode_direct
20754
20755 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20756 # DIR into the resulting binary and the resulting library dependency is
20757 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20758 # library is relocated.
20759 hardcode_direct_absolute=$hardcode_direct_absolute
20760
20761 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20762 # into the resulting binary.
20763 hardcode_minus_L=$hardcode_minus_L
20764
20765 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20766 # into the resulting binary.
20767 hardcode_shlibpath_var=$hardcode_shlibpath_var
20768
20769 # Set to "yes" if building a shared library automatically hardcodes DIR
20770 # into the library and all subsequent libraries and executables linked
20771 # against it.
20772 hardcode_automatic=$hardcode_automatic
20773
20774 # Set to yes if linker adds runtime paths of dependent libraries
20775 # to runtime path list.
20776 inherit_rpath=$inherit_rpath
20777
20778 # Whether libtool must link a program against all its dependency libraries.
20779 link_all_deplibs=$link_all_deplibs
20780
20781 # Set to "yes" if exported symbols are required.
20782 always_export_symbols=$always_export_symbols
20783
20784 # The commands to list exported symbols.
20785 export_symbols_cmds=$lt_export_symbols_cmds
20786
20787 # Symbols that should not be listed in the preloaded symbols.
20788 exclude_expsyms=$lt_exclude_expsyms
20789
20790 # Symbols that must always be exported.
20791 include_expsyms=$lt_include_expsyms
20792
20793 # Commands necessary for linking programs (against libraries) with templates.
20794 prelink_cmds=$lt_prelink_cmds
20795
20796 # Commands necessary for finishing linking programs.
20797 postlink_cmds=$lt_postlink_cmds
20798
20799 # Specify filename containing input files.
20800 file_list_spec=$lt_file_list_spec
20801
20802 # How to hardcode a shared library path into an executable.
20803 hardcode_action=$hardcode_action
20804
20805 # ### END LIBTOOL CONFIG
20806
20807 _LT_EOF
20808
20809 cat <<'_LT_EOF' >> "$cfgfile"
20810
20811 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20812
20813 # func_munge_path_list VARIABLE PATH
20814 # -----------------------------------
20815 # VARIABLE is name of variable containing _space_ separated list of
20816 # directories to be munged by the contents of PATH, which is string
20817 # having a format:
20818 # "DIR[:DIR]:"
20819 # string "DIR[ DIR]" will be prepended to VARIABLE
20820 # ":DIR[:DIR]"
20821 # string "DIR[ DIR]" will be appended to VARIABLE
20822 # "DIRP[:DIRP]::[DIRA:]DIRA"
20823 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20824 # "DIRA[ DIRA]" will be appended to VARIABLE
20825 # "DIR[:DIR]"
20826 # VARIABLE will be replaced by "DIR[ DIR]"
20827 func_munge_path_list ()
20828 {
20829 case x$2 in
20830 x)
20831 ;;
20832 *:)
20833 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20834 ;;
20835 x:*)
20836 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20837 ;;
20838 *::*)
20839 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20840 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20841 ;;
20842 *)
20843 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20844 ;;
20845 esac
20846 }
20847
20848
20849 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20850 func_cc_basename ()
20851 {
20852 for cc_temp in $*""; do
20853 case $cc_temp in
20854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20856 \-*) ;;
20857 *) break;;
20858 esac
20859 done
20860 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20861 }
20862
20863
20864 # ### END FUNCTIONS SHARED WITH CONFIGURE
20865
20866 _LT_EOF
20867
20868 case $host_os in
20869 aix3*)
20870 cat <<\_LT_EOF >> "$cfgfile"
20871 # AIX sometimes has problems with the GCC collect2 program. For some
20872 # reason, if we set the COLLECT_NAMES environment variable, the problems
20873 # vanish in a puff of smoke.
20874 if test set != "${COLLECT_NAMES+set}"; then
20875 COLLECT_NAMES=
20876 export COLLECT_NAMES
20877 fi
20878 _LT_EOF
20879 ;;
20880 esac
20881
20882
20883 ltmain=$ac_aux_dir/ltmain.sh
20884
20885
20886 # We use sed instead of cat because bash on DJGPP gets confused if
20887 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20888 # text mode, it properly converts lines to CR/LF. This bash problem
20889 # is reportedly fixed, but why not run on old versions too?
20890 sed '$q' "$ltmain" >> "$cfgfile" \
20891 || (rm -f "$cfgfile"; exit 1)
20892
20893 mv -f "$cfgfile" "$ofile" ||
20894 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20895 chmod +x "$ofile"
20896
20897 ;;
20898
20899 esac
20900 done # for ac_tag
20901
20902
20903 as_fn_exit 0
20904 _ACEOF
20905 ac_clean_files=$ac_clean_files_save
20906
20907 test $ac_write_fail = 0 ||
20908 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20909
20910
20911 # configure is writing to config.log, and then calls config.status.
20912 # config.status does its own redirection, appending to config.log.
20913 # Unfortunately, on DOS this fails, as config.log is still kept open
20914 # by configure, so config.status won't be able to write to it; its
20915 # output is simply discarded. So we exec the FD to /dev/null,
20916 # effectively closing config.log, so it can be properly (re)opened and
20917 # appended to by config.status. When coming back to configure, we
20918 # need to make the FD available again.
20919 if test "$no_create" != yes; then
20920 ac_cs_success=:
20921 ac_config_status_args=
20922 test "$silent" = yes &&
20923 ac_config_status_args="$ac_config_status_args --quiet"
20924 exec 5>/dev/null
20925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20926 exec 5>>config.log
20927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20928 # would make configure fail if this is the last instruction.
20929 $ac_cs_success || as_fn_exit 1
20930 fi
20931 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20933 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20934 fi
20935
20936