configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXres 1.0.5.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='libXres'
573 PACKAGE_TARNAME='libXres'
574 PACKAGE_VERSION='1.0.5'
575 PACKAGE_STRING='libXres 1.0.5'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 XTMALLOC_ZERO_CFLAGS
620 XMALLOC_ZERO_CFLAGS
621 MALLOC_ZERO_CFLAGS
622 XRES_LIBS
623 XRES_CFLAGS
624 AM_BACKSLASH
625 AM_DEFAULT_VERBOSITY
626 MAN_SUBSTS
627 XORG_MAN_PAGE
628 ADMIN_MAN_DIR
629 DRIVER_MAN_DIR
630 MISC_MAN_DIR
631 FILE_MAN_DIR
632 LIB_MAN_DIR
633 APP_MAN_DIR
634 ADMIN_MAN_SUFFIX
635 DRIVER_MAN_SUFFIX
636 MISC_MAN_SUFFIX
637 FILE_MAN_SUFFIX
638 LIB_MAN_SUFFIX
639 APP_MAN_SUFFIX
640 INSTALL_CMD
641 PKG_CONFIG
642 CHANGELOG_CMD
643 CWARNFLAGS
644 CPP
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 RANLIB
651 AR
652 OBJDUMP
653 LN_S
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 EGREP
660 GREP
661 SED
662 host_os
663 host_vendor
664 host_cpu
665 host
666 build_os
667 build_vendor
668 build_cpu
669 build
670 LIBTOOL
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 MAINT
688 MAINTAINER_MODE_FALSE
689 MAINTAINER_MODE_TRUE
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_maintainer_mode
755 enable_dependency_tracking
756 enable_shared
757 enable_static
758 with_pic
759 enable_fast_install
760 with_gnu_ld
761 enable_libtool_lock
762 enable_strict_compilation
763 enable_silent_rules
764 enable_malloc0returnsnull
765 '
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 CPP
775 PKG_CONFIG
776 XRES_CFLAGS
777 XRES_LIBS'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 ;;
1184
1185 esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206 do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used" >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285 else
1286 ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures libXres 1.0.5 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/libXres]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1374
1375 cat <<\_ACEOF
1376
1377 Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382 System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of libXres 1.0.5:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-maintainer-mode enable make rules and dependencies not useful
1399 (and sometimes confusing) to the casual installer
1400 --disable-dependency-tracking speeds up one-time build
1401 --enable-dependency-tracking do not reject slow dependency extractors
1402 --enable-shared[=PKGS] build shared libraries [default=yes]
1403 --enable-static[=PKGS] build static libraries [default=yes]
1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-libtool-lock avoid locking (might break parallel builds)
1407 --enable-strict-compilation
1408 Enable all warnings from compiler and make them
1409 errors (default: disabled)
1410 --enable-silent-rules less verbose build output (undo: `make V=1')
1411 --disable-silent-rules verbose build output (undo: `make V=0')
1412 --enable-malloc0returnsnull
1413 malloc(0) returns NULL (default: auto)
1414
1415 Optional Packages:
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-pic try to use only PIC/non-PIC objects [default=use
1419 both]
1420 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1421
1422 Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429 you have headers in a nonstandard directory <include dir>
1430 CPP C preprocessor
1431 PKG_CONFIG path to pkg-config utility
1432 XRES_CFLAGS C compiler flags for XRES, overriding pkg-config
1433 XRES_LIBS linker flags for XRES, overriding pkg-config
1434
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1437
1438 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1439 _ACEOF
1440 ac_status=$?
1441 fi
1442
1443 if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 continue
1449 ac_builddir=.
1450
1451 case "$ac_dir" in
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *)
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 esac ;;
1461 esac
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1466
1467 case $srcdir in
1468 .) # We are building in place.
1469 ac_srcdir=.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1476 *) # Relative name.
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 esac
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done
1496 fi
1497
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500 cat <<\_ACEOF
1501 libXres configure 1.0.5
1502 generated by GNU Autoconf 2.68
1503
1504 Copyright (C) 2010 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508 exit
1509 fi
1510
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1514
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1519 {
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1
1547 fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status $ac_retval
1550
1551 } # ac_fn_c_try_compile
1552
1553 # ac_fn_c_try_link LINENO
1554 # -----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_link ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext conftest$ac_exeext
1560 if { { ac_try="$ac_link"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_link") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest$ac_exeext && {
1579 test "$cross_compiling" = yes ||
1580 $as_test_x conftest$ac_exeext
1581 }; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588 fi
1589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591 # interfere with the next link command; also delete a directory that is
1592 # left behind by Apple's compiler. We do this before executing the actions.
1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_link
1598
1599 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1600 # -------------------------------------------------------
1601 # Tests whether HEADER exists and can be compiled using the include files in
1602 # INCLUDES, setting the cache variable VAR accordingly.
1603 ac_fn_c_check_header_compile ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \${$3+:} false; then :
1609 $as_echo_n "(cached) " >&6
1610 else
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1613 $4
1614 #include <$2>
1615 _ACEOF
1616 if ac_fn_c_try_compile "$LINENO"; then :
1617 eval "$3=yes"
1618 else
1619 eval "$3=no"
1620 fi
1621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1622 fi
1623 eval ac_res=\$$3
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625 $as_echo "$ac_res" >&6; }
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
1628 } # ac_fn_c_check_header_compile
1629
1630 # ac_fn_c_try_cpp LINENO
1631 # ----------------------
1632 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_cpp ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_cpp conftest.$ac_ext"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } > conftest.i && {
1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 }; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_cpp
1666
1667 # ac_fn_c_try_run LINENO
1668 # ----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1670 # that executables *can* be run.
1671 ac_fn_c_try_run ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1682 ac_status=$?
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: program exited with status $ac_status" >&5
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=$ac_status
1702 fi
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_run
1708
1709 # ac_fn_c_check_func LINENO FUNC VAR
1710 # ----------------------------------
1711 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1712 ac_fn_c_check_func ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719 else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1724 #define $2 innocuous_$2
1725
1726 /* System header to define __stub macros and hopefully few prototypes,
1727 which can conflict with char $2 (); below.
1728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1729 <limits.h> exists even on freestanding compilers. */
1730
1731 #ifdef __STDC__
1732 # include <limits.h>
1733 #else
1734 # include <assert.h>
1735 #endif
1736
1737 #undef $2
1738
1739 /* Override any GCC internal prototype to avoid an error.
1740 Use char because int might match the return type of a GCC
1741 builtin and then its argument prototype would still apply. */
1742 #ifdef __cplusplus
1743 extern "C"
1744 #endif
1745 char $2 ();
1746 /* The GNU C library defines this for functions which it implements
1747 to always fail with ENOSYS. Some functions are actually named
1748 something starting with __ and the normal name is an alias. */
1749 #if defined __stub_$2 || defined __stub___$2
1750 choke me
1751 #endif
1752
1753 int
1754 main ()
1755 {
1756 return $2 ();
1757 ;
1758 return 0;
1759 }
1760 _ACEOF
1761 if ac_fn_c_try_link "$LINENO"; then :
1762 eval "$3=yes"
1763 else
1764 eval "$3=no"
1765 fi
1766 rm -f core conftest.err conftest.$ac_objext \
1767 conftest$ac_exeext conftest.$ac_ext
1768 fi
1769 eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
1774 } # ac_fn_c_check_func
1775
1776 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1777 # ---------------------------------------------
1778 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1779 # accordingly.
1780 ac_fn_c_check_decl ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 as_decl_name=`echo $2|sed 's/ *(.*//'`
1784 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1786 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 int
1794 main ()
1795 {
1796 #ifndef $as_decl_name
1797 #ifdef __cplusplus
1798 (void) $as_decl_use;
1799 #else
1800 (void) $as_decl_name;
1801 #endif
1802 #endif
1803
1804 ;
1805 return 0;
1806 }
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809 eval "$3=yes"
1810 else
1811 eval "$3=no"
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_check_decl
1821 cat >config.log <<_ACEOF
1822 This file contains any messages produced by compilers while
1823 running configure, to aid debugging if configure makes a mistake.
1824
1825 It was created by libXres $as_me 1.0.5, which was
1826 generated by GNU Autoconf 2.68. Invocation command line was
1827
1828 $ $0 $@
1829
1830 _ACEOF
1831 exec 5>>config.log
1832 {
1833 cat <<_ASUNAME
1834 ## --------- ##
1835 ## Platform. ##
1836 ## --------- ##
1837
1838 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1839 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1840 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1841 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1842 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1843
1844 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1845 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1846
1847 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1848 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1849 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1850 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1851 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1852 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1853 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1854
1855 _ASUNAME
1856
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 $as_echo "PATH: $as_dir"
1863 done
1864 IFS=$as_save_IFS
1865
1866 } >&5
1867
1868 cat >&5 <<_ACEOF
1869
1870
1871 ## ----------- ##
1872 ## Core tests. ##
1873 ## ----------- ##
1874
1875 _ACEOF
1876
1877
1878 # Keep a trace of the command line.
1879 # Strip out --no-create and --no-recursion so they do not pile up.
1880 # Strip out --silent because we don't want to record it for future runs.
1881 # Also quote any args containing shell meta-characters.
1882 # Make two passes to allow for proper duplicate-argument suppression.
1883 ac_configure_args=
1884 ac_configure_args0=
1885 ac_configure_args1=
1886 ac_must_keep_next=false
1887 for ac_pass in 1 2
1888 do
1889 for ac_arg
1890 do
1891 case $ac_arg in
1892 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894 | -silent | --silent | --silen | --sile | --sil)
1895 continue ;;
1896 *\'*)
1897 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 esac
1899 case $ac_pass in
1900 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1901 2)
1902 as_fn_append ac_configure_args1 " '$ac_arg'"
1903 if test $ac_must_keep_next = true; then
1904 ac_must_keep_next=false # Got value, back to normal.
1905 else
1906 case $ac_arg in
1907 *=* | --config-cache | -C | -disable-* | --disable-* \
1908 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1909 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1910 | -with-* | --with-* | -without-* | --without-* | --x)
1911 case "$ac_configure_args0 " in
1912 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913 esac
1914 ;;
1915 -* ) ac_must_keep_next=true ;;
1916 esac
1917 fi
1918 as_fn_append ac_configure_args " '$ac_arg'"
1919 ;;
1920 esac
1921 done
1922 done
1923 { ac_configure_args0=; unset ac_configure_args0;}
1924 { ac_configure_args1=; unset ac_configure_args1;}
1925
1926 # When interrupted or exit'd, cleanup temporary files, and complete
1927 # config.log. We remove comments because anyway the quotes in there
1928 # would cause problems or look ugly.
1929 # WARNING: Use '\'' to represent an apostrophe within the trap.
1930 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1931 trap 'exit_status=$?
1932 # Save into config.log some information that might help in debugging.
1933 {
1934 echo
1935
1936 $as_echo "## ---------------- ##
1937 ## Cache variables. ##
1938 ## ---------------- ##"
1939 echo
1940 # The following way of writing the cache mishandles newlines in values,
1941 (
1942 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1943 eval ac_val=\$$ac_var
1944 case $ac_val in #(
1945 *${as_nl}*)
1946 case $ac_var in #(
1947 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1948 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949 esac
1950 case $ac_var in #(
1951 _ | IFS | as_nl) ;; #(
1952 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1953 *) { eval $ac_var=; unset $ac_var;} ;;
1954 esac ;;
1955 esac
1956 done
1957 (set) 2>&1 |
1958 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1959 *${as_nl}ac_space=\ *)
1960 sed -n \
1961 "s/'\''/'\''\\\\'\'''\''/g;
1962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963 ;; #(
1964 *)
1965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966 ;;
1967 esac |
1968 sort
1969 )
1970 echo
1971
1972 $as_echo "## ----------------- ##
1973 ## Output variables. ##
1974 ## ----------------- ##"
1975 echo
1976 for ac_var in $ac_subst_vars
1977 do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1985
1986 if test -n "$ac_subst_files"; then
1987 $as_echo "## ------------------- ##
1988 ## File substitutions. ##
1989 ## ------------------- ##"
1990 echo
1991 for ac_var in $ac_subst_files
1992 do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in
1995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996 esac
1997 $as_echo "$ac_var='\''$ac_val'\''"
1998 done | sort
1999 echo
2000 fi
2001
2002 if test -s confdefs.h; then
2003 $as_echo "## ----------- ##
2004 ## confdefs.h. ##
2005 ## ----------- ##"
2006 echo
2007 cat confdefs.h
2008 echo
2009 fi
2010 test "$ac_signal" != 0 &&
2011 $as_echo "$as_me: caught signal $ac_signal"
2012 $as_echo "$as_me: exit $exit_status"
2013 } >&5
2014 rm -f core *.core core.conftest.* &&
2015 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2016 exit $exit_status
2017 ' 0
2018 for ac_signal in 1 2 13 15; do
2019 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2020 done
2021 ac_signal=0
2022
2023 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2024 rm -f -r conftest* confdefs.h
2025
2026 $as_echo "/* confdefs.h */" > confdefs.h
2027
2028 # Predefined preprocessor variables.
2029
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_NAME "$PACKAGE_NAME"
2032 _ACEOF
2033
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2036 _ACEOF
2037
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2040 _ACEOF
2041
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_STRING "$PACKAGE_STRING"
2044 _ACEOF
2045
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2048 _ACEOF
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_URL "$PACKAGE_URL"
2052 _ACEOF
2053
2054
2055 # Let the site file select an alternate cache file if it wants to.
2056 # Prefer an explicitly selected file to automatically selected ones.
2057 ac_site_file1=NONE
2058 ac_site_file2=NONE
2059 if test -n "$CONFIG_SITE"; then
2060 # We do not want a PATH search for config.site.
2061 case $CONFIG_SITE in #((
2062 -*) ac_site_file1=./$CONFIG_SITE;;
2063 */*) ac_site_file1=$CONFIG_SITE;;
2064 *) ac_site_file1=./$CONFIG_SITE;;
2065 esac
2066 elif test "x$prefix" != xNONE; then
2067 ac_site_file1=$prefix/share/config.site
2068 ac_site_file2=$prefix/etc/config.site
2069 else
2070 ac_site_file1=$ac_default_prefix/share/config.site
2071 ac_site_file2=$ac_default_prefix/etc/config.site
2072 fi
2073 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2074 do
2075 test "x$ac_site_file" = xNONE && continue
2076 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2078 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2079 sed 's/^/| /' "$ac_site_file" >&5
2080 . "$ac_site_file" \
2081 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2083 as_fn_error $? "failed to load site script $ac_site_file
2084 See \`config.log' for more details" "$LINENO" 5; }
2085 fi
2086 done
2087
2088 if test -r "$cache_file"; then
2089 # Some versions of bash will fail to source /dev/null (special files
2090 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2091 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2093 $as_echo "$as_me: loading cache $cache_file" >&6;}
2094 case $cache_file in
2095 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096 *) . "./$cache_file";;
2097 esac
2098 fi
2099 else
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2101 $as_echo "$as_me: creating cache $cache_file" >&6;}
2102 >$cache_file
2103 fi
2104
2105 # Check that the precious variables saved in the cache have kept the same
2106 # value.
2107 ac_cache_corrupted=false
2108 for ac_var in $ac_precious_vars; do
2109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2110 eval ac_new_set=\$ac_env_${ac_var}_set
2111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2112 eval ac_new_val=\$ac_env_${ac_var}_value
2113 case $ac_old_set,$ac_new_set in
2114 set,)
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2117 ac_cache_corrupted=: ;;
2118 ,set)
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2121 ac_cache_corrupted=: ;;
2122 ,);;
2123 *)
2124 if test "x$ac_old_val" != "x$ac_new_val"; then
2125 # differences in whitespace do not lead to failure.
2126 ac_old_val_w=`echo x $ac_old_val`
2127 ac_new_val_w=`echo x $ac_new_val`
2128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2131 ac_cache_corrupted=:
2132 else
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2135 eval $ac_var=\$ac_old_val
2136 fi
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2141 fi;;
2142 esac
2143 # Pass precious variables to config.status.
2144 if test "$ac_new_set" = set; then
2145 case $ac_new_val in
2146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2147 *) ac_arg=$ac_var=$ac_new_val ;;
2148 esac
2149 case " $ac_configure_args " in
2150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152 esac
2153 fi
2154 done
2155 if $ac_cache_corrupted; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2160 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2161 fi
2162 ## -------------------- ##
2163 ## Main body of script. ##
2164 ## -------------------- ##
2165
2166 ac_ext=c
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171
2172
2173 ac_aux_dir=
2174 for ac_dir in . "$srcdir"/.; do
2175 if test -f "$ac_dir/install-sh"; then
2176 ac_aux_dir=$ac_dir
2177 ac_install_sh="$ac_aux_dir/install-sh -c"
2178 break
2179 elif test -f "$ac_dir/install.sh"; then
2180 ac_aux_dir=$ac_dir
2181 ac_install_sh="$ac_aux_dir/install.sh -c"
2182 break
2183 elif test -f "$ac_dir/shtool"; then
2184 ac_aux_dir=$ac_dir
2185 ac_install_sh="$ac_aux_dir/shtool install -c"
2186 break
2187 fi
2188 done
2189 if test -z "$ac_aux_dir"; then
2190 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2191 fi
2192
2193 # These three variables are undocumented and unsupported,
2194 # and are intended to be withdrawn in a future Autoconf release.
2195 # They can cause serious problems if a builder's source tree is in a directory
2196 # whose full name contains unusual characters.
2197 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2198 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2199 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2200
2201
2202 am__api_version='1.11'
2203
2204 # Find a good install program. We prefer a C program (faster),
2205 # so one script is as good as another. But avoid the broken or
2206 # incompatible versions:
2207 # SysV /etc/install, /usr/sbin/install
2208 # SunOS /usr/etc/install
2209 # IRIX /sbin/install
2210 # AIX /bin/install
2211 # AmigaOS /C/install, which installs bootblocks on floppy discs
2212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2215 # OS/2's system install, which has a completely different semantic
2216 # ./install, which can be erroneously created by make from ./install.sh.
2217 # Reject install programs that cannot install multiple files.
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2219 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2220 if test -z "$INSTALL"; then
2221 if ${ac_cv_path_install+:} false; then :
2222 $as_echo_n "(cached) " >&6
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 # Account for people who put trailing slashes in PATH elements.
2230 case $as_dir/ in #((
2231 ./ | .// | /[cC]/* | \
2232 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2233 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2234 /usr/ucb/* ) ;;
2235 *)
2236 # OSF1 and SCO ODT 3.0 have their own names for install.
2237 # Don't use installbsd from OSF since it installs stuff as root
2238 # by default.
2239 for ac_prog in ginstall scoinst install; do
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2242 if test $ac_prog = install &&
2243 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244 # AIX install. It has an incompatible calling convention.
2245 :
2246 elif test $ac_prog = install &&
2247 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248 # program-specific install script used by HP pwplus--don't use.
2249 :
2250 else
2251 rm -rf conftest.one conftest.two conftest.dir
2252 echo one > conftest.one
2253 echo two > conftest.two
2254 mkdir conftest.dir
2255 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2256 test -s conftest.one && test -s conftest.two &&
2257 test -s conftest.dir/conftest.one &&
2258 test -s conftest.dir/conftest.two
2259 then
2260 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2261 break 3
2262 fi
2263 fi
2264 fi
2265 done
2266 done
2267 ;;
2268 esac
2269
2270 done
2271 IFS=$as_save_IFS
2272
2273 rm -rf conftest.one conftest.two conftest.dir
2274
2275 fi
2276 if test "${ac_cv_path_install+set}" = set; then
2277 INSTALL=$ac_cv_path_install
2278 else
2279 # As a last resort, use the slow shell script. Don't cache a
2280 # value for INSTALL within a source directory, because that will
2281 # break other packages using the cache if that directory is
2282 # removed, or if the value is a relative name.
2283 INSTALL=$ac_install_sh
2284 fi
2285 fi
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2287 $as_echo "$INSTALL" >&6; }
2288
2289 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2290 # It thinks the first close brace ends the variable substitution.
2291 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2292
2293 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2294
2295 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2296
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2298 $as_echo_n "checking whether build environment is sane... " >&6; }
2299 # Just in case
2300 sleep 1
2301 echo timestamp > conftest.file
2302 # Reject unsafe characters in $srcdir or the absolute working directory
2303 # name. Accept space and tab only in the latter.
2304 am_lf='
2305 '
2306 case `pwd` in
2307 *[\\\"\#\$\&\'\`$am_lf]*)
2308 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2309 esac
2310 case $srcdir in
2311 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2312 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2313 esac
2314
2315 # Do `set' in a subshell so we don't clobber the current shell's
2316 # arguments. Must try -L first in case configure is actually a
2317 # symlink; some systems play weird games with the mod time of symlinks
2318 # (eg FreeBSD returns the mod time of the symlink's containing
2319 # directory).
2320 if (
2321 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2322 if test "$*" = "X"; then
2323 # -L didn't work.
2324 set X `ls -t "$srcdir/configure" conftest.file`
2325 fi
2326 rm -f conftest.file
2327 if test "$*" != "X $srcdir/configure conftest.file" \
2328 && test "$*" != "X conftest.file $srcdir/configure"; then
2329
2330 # If neither matched, then we have a broken ls. This can happen
2331 # if, for instance, CONFIG_SHELL is bash and it inherits a
2332 # broken ls alias from the environment. This has actually
2333 # happened. Such a system could not be considered "sane".
2334 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2335 alias in your environment" "$LINENO" 5
2336 fi
2337
2338 test "$2" = conftest.file
2339 )
2340 then
2341 # Ok.
2342 :
2343 else
2344 as_fn_error $? "newly created file is older than distributed files!
2345 Check your system clock" "$LINENO" 5
2346 fi
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2348 $as_echo "yes" >&6; }
2349 test "$program_prefix" != NONE &&
2350 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2351 # Use a double $ so make ignores it.
2352 test "$program_suffix" != NONE &&
2353 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2354 # Double any \ or $.
2355 # By default was `s,x,x', remove it if useless.
2356 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2357 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2358
2359 # expand $ac_aux_dir to an absolute path
2360 am_aux_dir=`cd $ac_aux_dir && pwd`
2361
2362 if test x"${MISSING+set}" != xset; then
2363 case $am_aux_dir in
2364 *\ * | *\ *)
2365 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2366 *)
2367 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2368 esac
2369 fi
2370 # Use eval to expand $SHELL
2371 if eval "$MISSING --run true"; then
2372 am_missing_run="$MISSING --run "
2373 else
2374 am_missing_run=
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2376 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2377 fi
2378
2379 if test x"${install_sh}" != xset; then
2380 case $am_aux_dir in
2381 *\ * | *\ *)
2382 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2383 *)
2384 install_sh="\${SHELL} $am_aux_dir/install-sh"
2385 esac
2386 fi
2387
2388 # Installed binaries are usually stripped using `strip' when the user
2389 # run `make install-strip'. However `strip' might not be the right
2390 # tool to use in cross-compilation environments, therefore Automake
2391 # will honor the `STRIP' environment variable to overrule this program.
2392 if test "$cross_compiling" != no; then
2393 if test -n "$ac_tool_prefix"; then
2394 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2395 set dummy ${ac_tool_prefix}strip; ac_word=$2
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if ${ac_cv_prog_STRIP+:} false; then :
2399 $as_echo_n "(cached) " >&6
2400 else
2401 if test -n "$STRIP"; then
2402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 STRIP=$ac_cv_prog_STRIP
2422 if test -n "$STRIP"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2424 $as_echo "$STRIP" >&6; }
2425 else
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427 $as_echo "no" >&6; }
2428 fi
2429
2430
2431 fi
2432 if test -z "$ac_cv_prog_STRIP"; then
2433 ac_ct_STRIP=$STRIP
2434 # Extract the first word of "strip", so it can be a program name with args.
2435 set dummy strip; ac_word=$2
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437 $as_echo_n "checking for $ac_word... " >&6; }
2438 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 if test -n "$ac_ct_STRIP"; then
2442 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_ac_ct_STRIP="strip"
2452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455 done
2456 done
2457 IFS=$as_save_IFS
2458
2459 fi
2460 fi
2461 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2462 if test -n "$ac_ct_STRIP"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2464 $as_echo "$ac_ct_STRIP" >&6; }
2465 else
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467 $as_echo "no" >&6; }
2468 fi
2469
2470 if test "x$ac_ct_STRIP" = x; then
2471 STRIP=":"
2472 else
2473 case $cross_compiling:$ac_tool_warned in
2474 yes:)
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2477 ac_tool_warned=yes ;;
2478 esac
2479 STRIP=$ac_ct_STRIP
2480 fi
2481 else
2482 STRIP="$ac_cv_prog_STRIP"
2483 fi
2484
2485 fi
2486 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2487
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2489 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2490 if test -z "$MKDIR_P"; then
2491 if ${ac_cv_path_mkdir+:} false; then :
2492 $as_echo_n "(cached) " >&6
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2496 do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_prog in mkdir gmkdir; do
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2502 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2503 'mkdir (GNU coreutils) '* | \
2504 'mkdir (coreutils) '* | \
2505 'mkdir (fileutils) '4.1*)
2506 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2507 break 3;;
2508 esac
2509 done
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515
2516 test -d ./--version && rmdir ./--version
2517 if test "${ac_cv_path_mkdir+set}" = set; then
2518 MKDIR_P="$ac_cv_path_mkdir -p"
2519 else
2520 # As a last resort, use the slow shell script. Don't cache a
2521 # value for MKDIR_P within a source directory, because that will
2522 # break other packages using the cache if that directory is
2523 # removed, or if the value is a relative name.
2524 MKDIR_P="$ac_install_sh -d"
2525 fi
2526 fi
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2528 $as_echo "$MKDIR_P" >&6; }
2529
2530 mkdir_p="$MKDIR_P"
2531 case $mkdir_p in
2532 [\\/$]* | ?:[\\/]*) ;;
2533 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2534 esac
2535
2536 for ac_prog in gawk mawk nawk awk
2537 do
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_AWK+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$AWK"; then
2546 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_AWK="$ac_prog"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 AWK=$ac_cv_prog_AWK
2566 if test -n "$AWK"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2568 $as_echo "$AWK" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574
2575 test -n "$AWK" && break
2576 done
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2579 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2580 set x ${MAKE-make}
2581 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2582 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 cat >conftest.make <<\_ACEOF
2586 SHELL = /bin/sh
2587 all:
2588 @echo '@@@%%%=$(MAKE)=@@@%%%'
2589 _ACEOF
2590 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2591 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2592 *@@@%%%=?*=@@@%%%*)
2593 eval ac_cv_prog_make_${ac_make}_set=yes;;
2594 *)
2595 eval ac_cv_prog_make_${ac_make}_set=no;;
2596 esac
2597 rm -f conftest.make
2598 fi
2599 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2601 $as_echo "yes" >&6; }
2602 SET_MAKE=
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 SET_MAKE="MAKE=${MAKE-make}"
2607 fi
2608
2609 rm -rf .tst 2>/dev/null
2610 mkdir .tst 2>/dev/null
2611 if test -d .tst; then
2612 am__leading_dot=.
2613 else
2614 am__leading_dot=_
2615 fi
2616 rmdir .tst 2>/dev/null
2617
2618 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2619 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2620 # is not polluted with repeated "-I."
2621 am__isrc=' -I$(srcdir)'
2622 # test to see if srcdir already configured
2623 if test -f $srcdir/config.status; then
2624 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2625 fi
2626 fi
2627
2628 # test whether we have cygpath
2629 if test -z "$CYGPATH_W"; then
2630 if (cygpath --version) >/dev/null 2>/dev/null; then
2631 CYGPATH_W='cygpath -w'
2632 else
2633 CYGPATH_W=echo
2634 fi
2635 fi
2636
2637
2638 # Define the identity of the package.
2639 PACKAGE='libXres'
2640 VERSION='1.0.5'
2641
2642
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE "$PACKAGE"
2645 _ACEOF
2646
2647
2648 cat >>confdefs.h <<_ACEOF
2649 #define VERSION "$VERSION"
2650 _ACEOF
2651
2652 # Some tools Automake needs.
2653
2654 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2655
2656
2657 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2658
2659
2660 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2661
2662
2663 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2664
2665
2666 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2667
2668 # We need awk for the "check" target. The system "awk" is bad on
2669 # some platforms.
2670 # Always define AMTAR for backward compatibility.
2671
2672 AMTAR=${AMTAR-"${am_missing_run}tar"}
2673
2674 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2675
2676
2677
2678
2679
2680
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2682 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2683 # Check whether --enable-maintainer-mode was given.
2684 if test "${enable_maintainer_mode+set}" = set; then :
2685 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2686 else
2687 USE_MAINTAINER_MODE=no
2688 fi
2689
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2691 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2692 if test $USE_MAINTAINER_MODE = yes; then
2693 MAINTAINER_MODE_TRUE=
2694 MAINTAINER_MODE_FALSE='#'
2695 else
2696 MAINTAINER_MODE_TRUE='#'
2697 MAINTAINER_MODE_FALSE=
2698 fi
2699
2700 MAINT=$MAINTAINER_MODE_TRUE
2701
2702
2703
2704 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717 ac_config_headers="$ac_config_headers config.h"
2718
2719
2720 # Check for progs
2721 ac_ext=c
2722 ac_cpp='$CPP $CPPFLAGS'
2723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726 if test -n "$ac_tool_prefix"; then
2727 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2728 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if ${ac_cv_prog_CC+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 if test -n "$CC"; then
2735 ac_cv_prog_CC="$CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2747 fi
2748 done
2749 done
2750 IFS=$as_save_IFS
2751
2752 fi
2753 fi
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2757 $as_echo "$CC" >&6; }
2758 else
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2761 fi
2762
2763
2764 fi
2765 if test -z "$ac_cv_prog_CC"; then
2766 ac_ct_CC=$CC
2767 # Extract the first word of "gcc", so it can be a program name with args.
2768 set dummy gcc; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test -n "$ac_ct_CC"; then
2775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_ac_ct_CC="gcc"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2795 if test -n "$ac_ct_CC"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2797 $as_echo "$ac_ct_CC" >&6; }
2798 else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2801 fi
2802
2803 if test "x$ac_ct_CC" = x; then
2804 CC=""
2805 else
2806 case $cross_compiling:$ac_tool_warned in
2807 yes:)
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2810 ac_tool_warned=yes ;;
2811 esac
2812 CC=$ac_ct_CC
2813 fi
2814 else
2815 CC="$ac_cv_prog_CC"
2816 fi
2817
2818 if test -z "$CC"; then
2819 if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2821 set dummy ${ac_tool_prefix}cc; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if ${ac_cv_prog_CC+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_CC="${ac_tool_prefix}cc"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 fi
2846 fi
2847 CC=$ac_cv_prog_CC
2848 if test -n "$CC"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2850 $as_echo "$CC" >&6; }
2851 else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2854 fi
2855
2856
2857 fi
2858 fi
2859 if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861 set dummy cc; ac_word=$2
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if ${ac_cv_prog_CC+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 else
2870 ac_prog_rejected=no
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected=yes
2880 continue
2881 fi
2882 ac_cv_prog_CC="cc"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886 done
2887 done
2888 IFS=$as_save_IFS
2889
2890 if test $ac_prog_rejected = yes; then
2891 # We found a bogon in the path, so make sure we never use it.
2892 set dummy $ac_cv_prog_CC
2893 shift
2894 if test $# != 0; then
2895 # We chose a different compiler from the bogus one.
2896 # However, it has the same basename, so the bogon will be chosen
2897 # first if we set CC to just the basename; use the full file name.
2898 shift
2899 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2900 fi
2901 fi
2902 fi
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913
2914 fi
2915 if test -z "$CC"; then
2916 if test -n "$ac_tool_prefix"; then
2917 for ac_prog in cl.exe
2918 do
2919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if ${ac_cv_prog_CC+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2953 fi
2954
2955
2956 test -n "$CC" && break
2957 done
2958 fi
2959 if test -z "$CC"; then
2960 ac_ct_CC=$CC
2961 for ac_prog in cl.exe
2962 do
2963 # Extract the first word of "$ac_prog", so it can be a program name with args.
2964 set dummy $ac_prog; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 if test -n "$ac_ct_CC"; then
2971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_ac_ct_CC="$ac_prog"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984 done
2985 done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991 if test -n "$ac_ct_CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2993 $as_echo "$ac_ct_CC" >&6; }
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999
3000 test -n "$ac_ct_CC" && break
3001 done
3002
3003 if test "x$ac_ct_CC" = x; then
3004 CC=""
3005 else
3006 case $cross_compiling:$ac_tool_warned in
3007 yes:)
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 ac_tool_warned=yes ;;
3011 esac
3012 CC=$ac_ct_CC
3013 fi
3014 fi
3015
3016 fi
3017
3018
3019 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3021 as_fn_error $? "no acceptable C compiler found in \$PATH
3022 See \`config.log' for more details" "$LINENO" 5; }
3023
3024 # Provide some information about the compiler.
3025 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3026 set X $ac_compile
3027 ac_compiler=$2
3028 for ac_option in --version -v -V -qversion; do
3029 { { ac_try="$ac_compiler $ac_option >&5"
3030 case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035 $as_echo "$ac_try_echo"; } >&5
3036 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3037 ac_status=$?
3038 if test -s conftest.err; then
3039 sed '10a\
3040 ... rest of stderr output deleted ...
3041 10q' conftest.err >conftest.er1
3042 cat conftest.er1 >&5
3043 fi
3044 rm -f conftest.er1 conftest.err
3045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3046 test $ac_status = 0; }
3047 done
3048
3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3051
3052 int
3053 main ()
3054 {
3055
3056 ;
3057 return 0;
3058 }
3059 _ACEOF
3060 ac_clean_files_save=$ac_clean_files
3061 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3062 # Try to create an executable without -o first, disregard a.out.
3063 # It will help us diagnose broken compilers, and finding out an intuition
3064 # of exeext.
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3066 $as_echo_n "checking whether the C compiler works... " >&6; }
3067 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3068
3069 # The possible output files:
3070 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3071
3072 ac_rmfiles=
3073 for ac_file in $ac_files
3074 do
3075 case $ac_file in
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3077 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3078 esac
3079 done
3080 rm -f $ac_rmfiles
3081
3082 if { { ac_try="$ac_link_default"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_link_default") 2>&5
3090 ac_status=$?
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }; then :
3093 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3094 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3095 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3096 # so that the user can short-circuit this test for compilers unknown to
3097 # Autoconf.
3098 for ac_file in $ac_files ''
3099 do
3100 test -f "$ac_file" || continue
3101 case $ac_file in
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3103 ;;
3104 [ab].out )
3105 # We found the default executable, but exeext='' is most
3106 # certainly right.
3107 break;;
3108 *.* )
3109 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3110 then :; else
3111 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3112 fi
3113 # We set ac_cv_exeext here because the later test for it is not
3114 # safe: cross compilers may not add the suffix if given an `-o'
3115 # argument, so we may need to know it at that point already.
3116 # Even if this section looks crufty: it has the advantage of
3117 # actually working.
3118 break;;
3119 * )
3120 break;;
3121 esac
3122 done
3123 test "$ac_cv_exeext" = no && ac_cv_exeext=
3124
3125 else
3126 ac_file=''
3127 fi
3128 if test -z "$ac_file"; then :
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 as_fn_error 77 "C compiler cannot create executables
3137 See \`config.log' for more details" "$LINENO" 5; }
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3140 $as_echo "yes" >&6; }
3141 fi
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3143 $as_echo_n "checking for C compiler default output file name... " >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3145 $as_echo "$ac_file" >&6; }
3146 ac_exeext=$ac_cv_exeext
3147
3148 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3149 ac_clean_files=$ac_clean_files_save
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3151 $as_echo_n "checking for suffix of executables... " >&6; }
3152 if { { ac_try="$ac_link"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_link") 2>&5
3160 ac_status=$?
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }; then :
3163 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3164 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3165 # work properly (i.e., refer to `conftest.exe'), while it won't with
3166 # `rm'.
3167 for ac_file in conftest.exe conftest conftest.*; do
3168 test -f "$ac_file" || continue
3169 case $ac_file in
3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3171 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3172 break;;
3173 * ) break;;
3174 esac
3175 done
3176 else
3177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3180 See \`config.log' for more details" "$LINENO" 5; }
3181 fi
3182 rm -f conftest conftest$ac_cv_exeext
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3184 $as_echo "$ac_cv_exeext" >&6; }
3185
3186 rm -f conftest.$ac_ext
3187 EXEEXT=$ac_cv_exeext
3188 ac_exeext=$EXEEXT
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3191 #include <stdio.h>
3192 int
3193 main ()
3194 {
3195 FILE *f = fopen ("conftest.out", "w");
3196 return ferror (f) || fclose (f) != 0;
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 ac_clean_files="$ac_clean_files conftest.out"
3203 # Check that the compiler produces executables we can run. If not, either
3204 # the compiler is broken, or we cross compile.
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3206 $as_echo_n "checking whether we are cross compiling... " >&6; }
3207 if test "$cross_compiling" != yes; then
3208 { { ac_try="$ac_link"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_link") 2>&5
3216 ac_status=$?
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }
3219 if { ac_try='./conftest$ac_cv_exeext'
3220 { { case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_try") 2>&5
3227 ac_status=$?
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }; }; then
3230 cross_compiling=no
3231 else
3232 if test "$cross_compiling" = maybe; then
3233 cross_compiling=yes
3234 else
3235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error $? "cannot run C compiled programs.
3238 If you meant to cross compile, use \`--host'.
3239 See \`config.log' for more details" "$LINENO" 5; }
3240 fi
3241 fi
3242 fi
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3244 $as_echo "$cross_compiling" >&6; }
3245
3246 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3247 ac_clean_files=$ac_clean_files_save
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3249 $as_echo_n "checking for suffix of object files... " >&6; }
3250 if ${ac_cv_objext+:} false; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3255
3256 int
3257 main ()
3258 {
3259
3260 ;
3261 return 0;
3262 }
3263 _ACEOF
3264 rm -f conftest.o conftest.obj
3265 if { { ac_try="$ac_compile"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_compile") 2>&5
3273 ac_status=$?
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }; then :
3276 for ac_file in conftest.o conftest.obj conftest.*; do
3277 test -f "$ac_file" || continue;
3278 case $ac_file in
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3280 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3281 break;;
3282 esac
3283 done
3284 else
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error $? "cannot compute suffix of object files: cannot compile
3291 See \`config.log' for more details" "$LINENO" 5; }
3292 fi
3293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3294 fi
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3296 $as_echo "$ac_cv_objext" >&6; }
3297 OBJEXT=$ac_cv_objext
3298 ac_objext=$OBJEXT
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3300 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3301 if ${ac_cv_c_compiler_gnu+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306
3307 int
3308 main ()
3309 {
3310 #ifndef __GNUC__
3311 choke me
3312 #endif
3313
3314 ;
3315 return 0;
3316 }
3317 _ACEOF
3318 if ac_fn_c_try_compile "$LINENO"; then :
3319 ac_compiler_gnu=yes
3320 else
3321 ac_compiler_gnu=no
3322 fi
3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3325
3326 fi
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3328 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3329 if test $ac_compiler_gnu = yes; then
3330 GCC=yes
3331 else
3332 GCC=
3333 fi
3334 ac_test_CFLAGS=${CFLAGS+set}
3335 ac_save_CFLAGS=$CFLAGS
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3337 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3338 if ${ac_cv_prog_cc_g+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 ac_save_c_werror_flag=$ac_c_werror_flag
3342 ac_c_werror_flag=yes
3343 ac_cv_prog_cc_g=no
3344 CFLAGS="-g"
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347
3348 int
3349 main ()
3350 {
3351
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357 ac_cv_prog_cc_g=yes
3358 else
3359 CFLAGS=""
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3362
3363 int
3364 main ()
3365 {
3366
3367 ;
3368 return 0;
3369 }
3370 _ACEOF
3371 if ac_fn_c_try_compile "$LINENO"; then :
3372
3373 else
3374 ac_c_werror_flag=$ac_save_c_werror_flag
3375 CFLAGS="-g"
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378
3379 int
3380 main ()
3381 {
3382
3383 ;
3384 return 0;
3385 }
3386 _ACEOF
3387 if ac_fn_c_try_compile "$LINENO"; then :
3388 ac_cv_prog_cc_g=yes
3389 fi
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 fi
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 fi
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395 ac_c_werror_flag=$ac_save_c_werror_flag
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3398 $as_echo "$ac_cv_prog_cc_g" >&6; }
3399 if test "$ac_test_CFLAGS" = set; then
3400 CFLAGS=$ac_save_CFLAGS
3401 elif test $ac_cv_prog_cc_g = yes; then
3402 if test "$GCC" = yes; then
3403 CFLAGS="-g -O2"
3404 else
3405 CFLAGS="-g"
3406 fi
3407 else
3408 if test "$GCC" = yes; then
3409 CFLAGS="-O2"
3410 else
3411 CFLAGS=
3412 fi
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3415 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3416 if ${ac_cv_prog_cc_c89+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 ac_cv_prog_cc_c89=no
3420 ac_save_CC=$CC
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3423 #include <stdarg.h>
3424 #include <stdio.h>
3425 #include <sys/types.h>
3426 #include <sys/stat.h>
3427 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3428 struct buf { int x; };
3429 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3430 static char *e (p, i)
3431 char **p;
3432 int i;
3433 {
3434 return p[i];
3435 }
3436 static char *f (char * (*g) (char **, int), char **p, ...)
3437 {
3438 char *s;
3439 va_list v;
3440 va_start (v,p);
3441 s = g (p, va_arg (v,int));
3442 va_end (v);
3443 return s;
3444 }
3445
3446 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3447 function prototypes and stuff, but not '\xHH' hex character constants.
3448 These don't provoke an error unfortunately, instead are silently treated
3449 as 'x'. The following induces an error, until -std is added to get
3450 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3451 array size at least. It's necessary to write '\x00'==0 to get something
3452 that's true only with -std. */
3453 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3454
3455 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3456 inside strings and character constants. */
3457 #define FOO(x) 'x'
3458 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3459
3460 int test (int i, double x);
3461 struct s1 {int (*f) (int a);};
3462 struct s2 {int (*f) (double a);};
3463 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3464 int argc;
3465 char **argv;
3466 int
3467 main ()
3468 {
3469 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3475 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3476 do
3477 CC="$ac_save_CC $ac_arg"
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_cv_prog_cc_c89=$ac_arg
3480 fi
3481 rm -f core conftest.err conftest.$ac_objext
3482 test "x$ac_cv_prog_cc_c89" != "xno" && break
3483 done
3484 rm -f conftest.$ac_ext
3485 CC=$ac_save_CC
3486
3487 fi
3488 # AC_CACHE_VAL
3489 case "x$ac_cv_prog_cc_c89" in
3490 x)
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3492 $as_echo "none needed" >&6; } ;;
3493 xno)
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3495 $as_echo "unsupported" >&6; } ;;
3496 *)
3497 CC="$CC $ac_cv_prog_cc_c89"
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3499 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3500 esac
3501 if test "x$ac_cv_prog_cc_c89" != xno; then :
3502
3503 fi
3504
3505 ac_ext=c
3506 ac_cpp='$CPP $CPPFLAGS'
3507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510 DEPDIR="${am__leading_dot}deps"
3511
3512 ac_config_commands="$ac_config_commands depfiles"
3513
3514
3515 am_make=${MAKE-make}
3516 cat > confinc << 'END'
3517 am__doit:
3518 @echo this is the am__doit target
3519 .PHONY: am__doit
3520 END
3521 # If we don't find an include directive, just comment out the code.
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3523 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3524 am__include="#"
3525 am__quote=
3526 _am_result=none
3527 # First try GNU make style include.
3528 echo "include confinc" > confmf
3529 # Ignore all kinds of additional output from `make'.
3530 case `$am_make -s -f confmf 2> /dev/null` in #(
3531 *the\ am__doit\ target*)
3532 am__include=include
3533 am__quote=
3534 _am_result=GNU
3535 ;;
3536 esac
3537 # Now try BSD make style include.
3538 if test "$am__include" = "#"; then
3539 echo '.include "confinc"' > confmf
3540 case `$am_make -s -f confmf 2> /dev/null` in #(
3541 *the\ am__doit\ target*)
3542 am__include=.include
3543 am__quote="\""
3544 _am_result=BSD
3545 ;;
3546 esac
3547 fi
3548
3549
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3551 $as_echo "$_am_result" >&6; }
3552 rm -f confinc confmf
3553
3554 # Check whether --enable-dependency-tracking was given.
3555 if test "${enable_dependency_tracking+set}" = set; then :
3556 enableval=$enable_dependency_tracking;
3557 fi
3558
3559 if test "x$enable_dependency_tracking" != xno; then
3560 am_depcomp="$ac_aux_dir/depcomp"
3561 AMDEPBACKSLASH='\'
3562 fi
3563 if test "x$enable_dependency_tracking" != xno; then
3564 AMDEP_TRUE=
3565 AMDEP_FALSE='#'
3566 else
3567 AMDEP_TRUE='#'
3568 AMDEP_FALSE=
3569 fi
3570
3571
3572
3573 depcc="$CC" am_compiler_list=
3574
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3576 $as_echo_n "checking dependency style of $depcc... " >&6; }
3577 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581 # We make a subdir and do the tests there. Otherwise we can end up
3582 # making bogus files that we don't know about and never remove. For
3583 # instance it was reported that on HP-UX the gcc test will end up
3584 # making a dummy file named `D' -- because `-MD' means `put the output
3585 # in D'.
3586 mkdir conftest.dir
3587 # Copy depcomp to subdir because otherwise we won't find it if we're
3588 # using a relative directory.
3589 cp "$am_depcomp" conftest.dir
3590 cd conftest.dir
3591 # We will build objects and dependencies in a subdirectory because
3592 # it helps to detect inapplicable dependency modes. For instance
3593 # both Tru64's cc and ICC support -MD to output dependencies as a
3594 # side effect of compilation, but ICC will put the dependencies in
3595 # the current directory while Tru64 will put them in the object
3596 # directory.
3597 mkdir sub
3598
3599 am_cv_CC_dependencies_compiler_type=none
3600 if test "$am_compiler_list" = ""; then
3601 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3602 fi
3603 am__universal=false
3604 case " $depcc " in #(
3605 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3606 esac
3607
3608 for depmode in $am_compiler_list; do
3609 # Setup a source with many dependencies, because some compilers
3610 # like to wrap large dependency lists on column 80 (with \), and
3611 # we should not choose a depcomp mode which is confused by this.
3612 #
3613 # We need to recreate these files for each test, as the compiler may
3614 # overwrite some of them when testing with obscure command lines.
3615 # This happens at least with the AIX C compiler.
3616 : > sub/conftest.c
3617 for i in 1 2 3 4 5 6; do
3618 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3619 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3620 # Solaris 8's {/usr,}/bin/sh.
3621 touch sub/conftst$i.h
3622 done
3623 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3624
3625 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3626 # mode. It turns out that the SunPro C++ compiler does not properly
3627 # handle `-M -o', and we need to detect this. Also, some Intel
3628 # versions had trouble with output in subdirs
3629 am__obj=sub/conftest.${OBJEXT-o}
3630 am__minus_obj="-o $am__obj"
3631 case $depmode in
3632 gcc)
3633 # This depmode causes a compiler race in universal mode.
3634 test "$am__universal" = false || continue
3635 ;;
3636 nosideeffect)
3637 # after this tag, mechanisms are not by side-effect, so they'll
3638 # only be used when explicitly requested
3639 if test "x$enable_dependency_tracking" = xyes; then
3640 continue
3641 else
3642 break
3643 fi
3644 ;;
3645 msvisualcpp | msvcmsys)
3646 # This compiler won't grok `-c -o', but also, the minuso test has
3647 # not run yet. These depmodes are late enough in the game, and
3648 # so weak that their functioning should not be impacted.
3649 am__obj=conftest.${OBJEXT-o}
3650 am__minus_obj=
3651 ;;
3652 none) break ;;
3653 esac
3654 if depmode=$depmode \
3655 source=sub/conftest.c object=$am__obj \
3656 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3657 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3658 >/dev/null 2>conftest.err &&
3659 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3660 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3661 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3662 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3663 # icc doesn't choke on unknown options, it will just issue warnings
3664 # or remarks (even with -Werror). So we grep stderr for any message
3665 # that says an option was ignored or not supported.
3666 # When given -MP, icc 7.0 and 7.1 complain thusly:
3667 # icc: Command line warning: ignoring option '-M'; no argument required
3668 # The diagnosis changed in icc 8.0:
3669 # icc: Command line remark: option '-MP' not supported
3670 if (grep 'ignoring option' conftest.err ||
3671 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3672 am_cv_CC_dependencies_compiler_type=$depmode
3673 break
3674 fi
3675 fi
3676 done
3677
3678 cd ..
3679 rm -rf conftest.dir
3680 else
3681 am_cv_CC_dependencies_compiler_type=none
3682 fi
3683
3684 fi
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3686 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3687 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3688
3689 if
3690 test "x$enable_dependency_tracking" != xno \
3691 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3692 am__fastdepCC_TRUE=
3693 am__fastdepCC_FALSE='#'
3694 else
3695 am__fastdepCC_TRUE='#'
3696 am__fastdepCC_FALSE=
3697 fi
3698
3699
3700 case `pwd` in
3701 *\ * | *\ *)
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3703 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3704 esac
3705
3706
3707
3708 macro_version='2.2.10'
3709 macro_revision='1.3175'
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723 ltmain="$ac_aux_dir/ltmain.sh"
3724
3725 # Make sure we can run config.sub.
3726 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3727 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3728
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3730 $as_echo_n "checking build system type... " >&6; }
3731 if ${ac_cv_build+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 ac_build_alias=$build_alias
3735 test "x$ac_build_alias" = x &&
3736 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3737 test "x$ac_build_alias" = x &&
3738 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3739 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3740 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3741
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3744 $as_echo "$ac_cv_build" >&6; }
3745 case $ac_cv_build in
3746 *-*-*) ;;
3747 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3748 esac
3749 build=$ac_cv_build
3750 ac_save_IFS=$IFS; IFS='-'
3751 set x $ac_cv_build
3752 shift
3753 build_cpu=$1
3754 build_vendor=$2
3755 shift; shift
3756 # Remember, the first character of IFS is used to create $*,
3757 # except with old shells:
3758 build_os=$*
3759 IFS=$ac_save_IFS
3760 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3761
3762
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3764 $as_echo_n "checking host system type... " >&6; }
3765 if ${ac_cv_host+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test "x$host_alias" = x; then
3769 ac_cv_host=$ac_cv_build
3770 else
3771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3772 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3773 fi
3774
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3777 $as_echo "$ac_cv_host" >&6; }
3778 case $ac_cv_host in
3779 *-*-*) ;;
3780 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3781 esac
3782 host=$ac_cv_host
3783 ac_save_IFS=$IFS; IFS='-'
3784 set x $ac_cv_host
3785 shift
3786 host_cpu=$1
3787 host_vendor=$2
3788 shift; shift
3789 # Remember, the first character of IFS is used to create $*,
3790 # except with old shells:
3791 host_os=$*
3792 IFS=$ac_save_IFS
3793 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3794
3795
3796 # Backslashify metacharacters that are still active within
3797 # double-quoted strings.
3798 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3799
3800 # Same as above, but do not quote variable references.
3801 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3802
3803 # Sed substitution to delay expansion of an escaped shell variable in a
3804 # double_quote_subst'ed string.
3805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3806
3807 # Sed substitution to delay expansion of an escaped single quote.
3808 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3809
3810 # Sed substitution to avoid accidental globbing in evaled expressions
3811 no_glob_subst='s/\*/\\\*/g'
3812
3813 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3814 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3815 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3816
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3818 $as_echo_n "checking how to print strings... " >&6; }
3819 # Test print first, because it will be a builtin if present.
3820 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3821 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3822 ECHO='print -r --'
3823 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3824 ECHO='printf %s\n'
3825 else
3826 # Use this function as a fallback that always works.
3827 func_fallback_echo ()
3828 {
3829 eval 'cat <<_LTECHO_EOF
3830 $1
3831 _LTECHO_EOF'
3832 }
3833 ECHO='func_fallback_echo'
3834 fi
3835
3836 # func_echo_all arg...
3837 # Invoke $ECHO with all args, space-separated.
3838 func_echo_all ()
3839 {
3840 $ECHO ""
3841 }
3842
3843 case "$ECHO" in
3844 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3845 $as_echo "printf" >&6; } ;;
3846 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3847 $as_echo "print -r" >&6; } ;;
3848 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3849 $as_echo "cat" >&6; } ;;
3850 esac
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3866 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3867 if ${ac_cv_path_SED+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3871 for ac_i in 1 2 3 4 5 6 7; do
3872 ac_script="$ac_script$as_nl$ac_script"
3873 done
3874 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3875 { ac_script=; unset ac_script;}
3876 if test -z "$SED"; then
3877 ac_path_SED_found=false
3878 # Loop through the user's path and test for each of PROGNAME-LIST
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3881 do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_prog in sed gsed; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3887 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3888 # Check for GNU ac_path_SED and select it if it is found.
3889 # Check for GNU $ac_path_SED
3890 case `"$ac_path_SED" --version 2>&1` in
3891 *GNU*)
3892 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3893 *)
3894 ac_count=0
3895 $as_echo_n 0123456789 >"conftest.in"
3896 while :
3897 do
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 $as_echo '' >> "conftest.nl"
3902 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904 as_fn_arith $ac_count + 1 && ac_count=$as_val
3905 if test $ac_count -gt ${ac_path_SED_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_SED="$ac_path_SED"
3908 ac_path_SED_max=$ac_count
3909 fi
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3912 done
3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914 esac
3915
3916 $ac_path_SED_found && break 3
3917 done
3918 done
3919 done
3920 IFS=$as_save_IFS
3921 if test -z "$ac_cv_path_SED"; then
3922 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3923 fi
3924 else
3925 ac_cv_path_SED=$SED
3926 fi
3927
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3930 $as_echo "$ac_cv_path_SED" >&6; }
3931 SED="$ac_cv_path_SED"
3932 rm -f conftest.sed
3933
3934 test -z "$SED" && SED=sed
3935 Xsed="$SED -e 1s/^X//"
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3948 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3949 if ${ac_cv_path_GREP+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if test -z "$GREP"; then
3953 ac_path_GREP_found=false
3954 # Loop through the user's path and test for each of PROGNAME-LIST
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3957 do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_prog in grep ggrep; do
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3963 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3964 # Check for GNU ac_path_GREP and select it if it is found.
3965 # Check for GNU $ac_path_GREP
3966 case `"$ac_path_GREP" --version 2>&1` in
3967 *GNU*)
3968 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3969 *)
3970 ac_count=0
3971 $as_echo_n 0123456789 >"conftest.in"
3972 while :
3973 do
3974 cat "conftest.in" "conftest.in" >"conftest.tmp"
3975 mv "conftest.tmp" "conftest.in"
3976 cp "conftest.in" "conftest.nl"
3977 $as_echo 'GREP' >> "conftest.nl"
3978 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3980 as_fn_arith $ac_count + 1 && ac_count=$as_val
3981 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3982 # Best one so far, save it but keep looking for a better one
3983 ac_cv_path_GREP="$ac_path_GREP"
3984 ac_path_GREP_max=$ac_count
3985 fi
3986 # 10*(2^10) chars as input seems more than enough
3987 test $ac_count -gt 10 && break
3988 done
3989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3990 esac
3991
3992 $ac_path_GREP_found && break 3
3993 done
3994 done
3995 done
3996 IFS=$as_save_IFS
3997 if test -z "$ac_cv_path_GREP"; then
3998 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3999 fi
4000 else
4001 ac_cv_path_GREP=$GREP
4002 fi
4003
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4006 $as_echo "$ac_cv_path_GREP" >&6; }
4007 GREP="$ac_cv_path_GREP"
4008
4009
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4011 $as_echo_n "checking for egrep... " >&6; }
4012 if ${ac_cv_path_EGREP+:} false; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4016 then ac_cv_path_EGREP="$GREP -E"
4017 else
4018 if test -z "$EGREP"; then
4019 ac_path_EGREP_found=false
4020 # Loop through the user's path and test for each of PROGNAME-LIST
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4023 do
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 for ac_prog in egrep; do
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4029 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4030 # Check for GNU ac_path_EGREP and select it if it is found.
4031 # Check for GNU $ac_path_EGREP
4032 case `"$ac_path_EGREP" --version 2>&1` in
4033 *GNU*)
4034 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4035 *)
4036 ac_count=0
4037 $as_echo_n 0123456789 >"conftest.in"
4038 while :
4039 do
4040 cat "conftest.in" "conftest.in" >"conftest.tmp"
4041 mv "conftest.tmp" "conftest.in"
4042 cp "conftest.in" "conftest.nl"
4043 $as_echo 'EGREP' >> "conftest.nl"
4044 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4046 as_fn_arith $ac_count + 1 && ac_count=$as_val
4047 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4048 # Best one so far, save it but keep looking for a better one
4049 ac_cv_path_EGREP="$ac_path_EGREP"
4050 ac_path_EGREP_max=$ac_count
4051 fi
4052 # 10*(2^10) chars as input seems more than enough
4053 test $ac_count -gt 10 && break
4054 done
4055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4056 esac
4057
4058 $ac_path_EGREP_found && break 3
4059 done
4060 done
4061 done
4062 IFS=$as_save_IFS
4063 if test -z "$ac_cv_path_EGREP"; then
4064 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4065 fi
4066 else
4067 ac_cv_path_EGREP=$EGREP
4068 fi
4069
4070 fi
4071 fi
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4073 $as_echo "$ac_cv_path_EGREP" >&6; }
4074 EGREP="$ac_cv_path_EGREP"
4075
4076
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4078 $as_echo_n "checking for fgrep... " >&6; }
4079 if ${ac_cv_path_FGREP+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4083 then ac_cv_path_FGREP="$GREP -F"
4084 else
4085 if test -z "$FGREP"; then
4086 ac_path_FGREP_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090 do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_prog in fgrep; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4096 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4097 # Check for GNU ac_path_FGREP and select it if it is found.
4098 # Check for GNU $ac_path_FGREP
4099 case `"$ac_path_FGREP" --version 2>&1` in
4100 *GNU*)
4101 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4102 *)
4103 ac_count=0
4104 $as_echo_n 0123456789 >"conftest.in"
4105 while :
4106 do
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 $as_echo 'FGREP' >> "conftest.nl"
4111 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113 as_fn_arith $ac_count + 1 && ac_count=$as_val
4114 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_FGREP="$ac_path_FGREP"
4117 ac_path_FGREP_max=$ac_count
4118 fi
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4121 done
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 esac
4124
4125 $ac_path_FGREP_found && break 3
4126 done
4127 done
4128 done
4129 IFS=$as_save_IFS
4130 if test -z "$ac_cv_path_FGREP"; then
4131 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132 fi
4133 else
4134 ac_cv_path_FGREP=$FGREP
4135 fi
4136
4137 fi
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4140 $as_echo "$ac_cv_path_FGREP" >&6; }
4141 FGREP="$ac_cv_path_FGREP"
4142
4143
4144 test -z "$GREP" && GREP=grep
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164 # Check whether --with-gnu-ld was given.
4165 if test "${with_gnu_ld+set}" = set; then :
4166 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4167 else
4168 with_gnu_ld=no
4169 fi
4170
4171 ac_prog=ld
4172 if test "$GCC" = yes; then
4173 # Check if gcc -print-prog-name=ld gives a path.
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4175 $as_echo_n "checking for ld used by $CC... " >&6; }
4176 case $host in
4177 *-*-mingw*)
4178 # gcc leaves a trailing carriage return which upsets mingw
4179 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4180 *)
4181 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4182 esac
4183 case $ac_prog in
4184 # Accept absolute paths.
4185 [\\/]* | ?:[\\/]*)
4186 re_direlt='/[^/][^/]*/\.\./'
4187 # Canonicalize the pathname of ld
4188 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4189 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4190 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4191 done
4192 test -z "$LD" && LD="$ac_prog"
4193 ;;
4194 "")
4195 # If it fails, then pretend we aren't using GCC.
4196 ac_prog=ld
4197 ;;
4198 *)
4199 # If it is relative, then search for the first ld in PATH.
4200 with_gnu_ld=unknown
4201 ;;
4202 esac
4203 elif test "$with_gnu_ld" = yes; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4205 $as_echo_n "checking for GNU ld... " >&6; }
4206 else
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4208 $as_echo_n "checking for non-GNU ld... " >&6; }
4209 fi
4210 if ${lt_cv_path_LD+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if test -z "$LD"; then
4214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4215 for ac_dir in $PATH; do
4216 IFS="$lt_save_ifs"
4217 test -z "$ac_dir" && ac_dir=.
4218 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4219 lt_cv_path_LD="$ac_dir/$ac_prog"
4220 # Check to see if the program is GNU ld. I'd rather use --version,
4221 # but apparently some variants of GNU ld only accept -v.
4222 # Break only if it was the GNU/non-GNU ld that we prefer.
4223 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4224 *GNU* | *'with BFD'*)
4225 test "$with_gnu_ld" != no && break
4226 ;;
4227 *)
4228 test "$with_gnu_ld" != yes && break
4229 ;;
4230 esac
4231 fi
4232 done
4233 IFS="$lt_save_ifs"
4234 else
4235 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4236 fi
4237 fi
4238
4239 LD="$lt_cv_path_LD"
4240 if test -n "$LD"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4242 $as_echo "$LD" >&6; }
4243 else
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4246 fi
4247 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4249 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4250 if ${lt_cv_prog_gnu_ld+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4254 case `$LD -v 2>&1 </dev/null` in
4255 *GNU* | *'with BFD'*)
4256 lt_cv_prog_gnu_ld=yes
4257 ;;
4258 *)
4259 lt_cv_prog_gnu_ld=no
4260 ;;
4261 esac
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4264 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4265 with_gnu_ld=$lt_cv_prog_gnu_ld
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4276 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4277 if ${lt_cv_path_NM+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 if test -n "$NM"; then
4281 # Let the user override the test.
4282 lt_cv_path_NM="$NM"
4283 else
4284 lt_nm_to_check="${ac_tool_prefix}nm"
4285 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4286 lt_nm_to_check="$lt_nm_to_check nm"
4287 fi
4288 for lt_tmp_nm in $lt_nm_to_check; do
4289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4290 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4291 IFS="$lt_save_ifs"
4292 test -z "$ac_dir" && ac_dir=.
4293 tmp_nm="$ac_dir/$lt_tmp_nm"
4294 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4295 # Check to see if the nm accepts a BSD-compat flag.
4296 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4297 # nm: unknown option "B" ignored
4298 # Tru64's nm complains that /dev/null is an invalid object file
4299 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4300 */dev/null* | *'Invalid file or object type'*)
4301 lt_cv_path_NM="$tmp_nm -B"
4302 break
4303 ;;
4304 *)
4305 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4306 */dev/null*)
4307 lt_cv_path_NM="$tmp_nm -p"
4308 break
4309 ;;
4310 *)
4311 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4312 continue # so that we can try to find one that supports BSD flags
4313 ;;
4314 esac
4315 ;;
4316 esac
4317 fi
4318 done
4319 IFS="$lt_save_ifs"
4320 done
4321 : ${lt_cv_path_NM=no}
4322 fi
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4325 $as_echo "$lt_cv_path_NM" >&6; }
4326 if test "$lt_cv_path_NM" != "no"; then
4327 NM="$lt_cv_path_NM"
4328 else
4329 # Didn't find any BSD compatible name lister, look for dumpbin.
4330 if test -n "$DUMPBIN"; then :
4331 # Let the user override the test.
4332 else
4333 if test -n "$ac_tool_prefix"; then
4334 for ac_prog in dumpbin "link -dump"
4335 do
4336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if ${ac_cv_prog_DUMPBIN+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 if test -n "$DUMPBIN"; then
4344 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357 done
4358 done
4359 IFS=$as_save_IFS
4360
4361 fi
4362 fi
4363 DUMPBIN=$ac_cv_prog_DUMPBIN
4364 if test -n "$DUMPBIN"; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4366 $as_echo "$DUMPBIN" >&6; }
4367 else
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4370 fi
4371
4372
4373 test -n "$DUMPBIN" && break
4374 done
4375 fi
4376 if test -z "$DUMPBIN"; then
4377 ac_ct_DUMPBIN=$DUMPBIN
4378 for ac_prog in dumpbin "link -dump"
4379 do
4380 # Extract the first word of "$ac_prog", so it can be a program name with args.
4381 set dummy $ac_prog; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -n "$ac_ct_DUMPBIN"; then
4388 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4400 fi
4401 done
4402 done
4403 IFS=$as_save_IFS
4404
4405 fi
4406 fi
4407 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4408 if test -n "$ac_ct_DUMPBIN"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4410 $as_echo "$ac_ct_DUMPBIN" >&6; }
4411 else
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413 $as_echo "no" >&6; }
4414 fi
4415
4416
4417 test -n "$ac_ct_DUMPBIN" && break
4418 done
4419
4420 if test "x$ac_ct_DUMPBIN" = x; then
4421 DUMPBIN=":"
4422 else
4423 case $cross_compiling:$ac_tool_warned in
4424 yes:)
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4427 ac_tool_warned=yes ;;
4428 esac
4429 DUMPBIN=$ac_ct_DUMPBIN
4430 fi
4431 fi
4432
4433 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4434 *COFF*)
4435 DUMPBIN="$DUMPBIN -symbols"
4436 ;;
4437 *)
4438 DUMPBIN=:
4439 ;;
4440 esac
4441 fi
4442
4443 if test "$DUMPBIN" != ":"; then
4444 NM="$DUMPBIN"
4445 fi
4446 fi
4447 test -z "$NM" && NM=nm
4448
4449
4450
4451
4452
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4455 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4456 if ${lt_cv_nm_interface+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 lt_cv_nm_interface="BSD nm"
4460 echo "int some_variable = 0;" > conftest.$ac_ext
4461 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4462 (eval "$ac_compile" 2>conftest.err)
4463 cat conftest.err >&5
4464 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4465 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4466 cat conftest.err >&5
4467 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4468 cat conftest.out >&5
4469 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4470 lt_cv_nm_interface="MS dumpbin"
4471 fi
4472 rm -f conftest*
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4475 $as_echo "$lt_cv_nm_interface" >&6; }
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4478 $as_echo_n "checking whether ln -s works... " >&6; }
4479 LN_S=$as_ln_s
4480 if test "$LN_S" = "ln -s"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482 $as_echo "yes" >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4485 $as_echo "no, using $LN_S" >&6; }
4486 fi
4487
4488 # find the maximum length of command line arguments
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4490 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4491 if ${lt_cv_sys_max_cmd_len+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 i=0
4495 teststring="ABCD"
4496
4497 case $build_os in
4498 msdosdjgpp*)
4499 # On DJGPP, this test can blow up pretty badly due to problems in libc
4500 # (any single argument exceeding 2000 bytes causes a buffer overrun
4501 # during glob expansion). Even if it were fixed, the result of this
4502 # check would be larger than it should be.
4503 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4504 ;;
4505
4506 gnu*)
4507 # Under GNU Hurd, this test is not required because there is
4508 # no limit to the length of command line arguments.
4509 # Libtool will interpret -1 as no limit whatsoever
4510 lt_cv_sys_max_cmd_len=-1;
4511 ;;
4512
4513 cygwin* | mingw* | cegcc*)
4514 # On Win9x/ME, this test blows up -- it succeeds, but takes
4515 # about 5 minutes as the teststring grows exponentially.
4516 # Worse, since 9x/ME are not pre-emptively multitasking,
4517 # you end up with a "frozen" computer, even though with patience
4518 # the test eventually succeeds (with a max line length of 256k).
4519 # Instead, let's just punt: use the minimum linelength reported by
4520 # all of the supported platforms: 8192 (on NT/2K/XP).
4521 lt_cv_sys_max_cmd_len=8192;
4522 ;;
4523
4524 mint*)
4525 # On MiNT this can take a long time and run out of memory.
4526 lt_cv_sys_max_cmd_len=8192;
4527 ;;
4528
4529 amigaos*)
4530 # On AmigaOS with pdksh, this test takes hours, literally.
4531 # So we just punt and use a minimum line length of 8192.
4532 lt_cv_sys_max_cmd_len=8192;
4533 ;;
4534
4535 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4536 # This has been around since 386BSD, at least. Likely further.
4537 if test -x /sbin/sysctl; then
4538 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4539 elif test -x /usr/sbin/sysctl; then
4540 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4541 else
4542 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4543 fi
4544 # And add a safety zone
4545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4547 ;;
4548
4549 interix*)
4550 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4551 lt_cv_sys_max_cmd_len=196608
4552 ;;
4553
4554 osf*)
4555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4557 # nice to cause kernel panics so lets avoid the loop below.
4558 # First set a reasonable default.
4559 lt_cv_sys_max_cmd_len=16384
4560 #
4561 if test -x /sbin/sysconfig; then
4562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4563 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4564 esac
4565 fi
4566 ;;
4567 sco3.2v5*)
4568 lt_cv_sys_max_cmd_len=102400
4569 ;;
4570 sysv5* | sco5v6* | sysv4.2uw2*)
4571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4572 if test -n "$kargmax"; then
4573 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4574 else
4575 lt_cv_sys_max_cmd_len=32768
4576 fi
4577 ;;
4578 *)
4579 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4580 if test -n "$lt_cv_sys_max_cmd_len"; then
4581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4583 else
4584 # Make teststring a little bigger before we do anything with it.
4585 # a 1K string should be a reasonable start.
4586 for i in 1 2 3 4 5 6 7 8 ; do
4587 teststring=$teststring$teststring
4588 done
4589 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4590 # If test is not a shell built-in, we'll probably end up computing a
4591 # maximum length that is only half of the actual maximum length, but
4592 # we can't tell.
4593 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4594 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4595 test $i != 17 # 1/2 MB should be enough
4596 do
4597 i=`expr $i + 1`
4598 teststring=$teststring$teststring
4599 done
4600 # Only check the string length outside the loop.
4601 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4602 teststring=
4603 # Add a significant safety factor because C++ compilers can tack on
4604 # massive amounts of additional arguments before passing them to the
4605 # linker. It appears as though 1/2 is a usable value.
4606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4607 fi
4608 ;;
4609 esac
4610
4611 fi
4612
4613 if test -n $lt_cv_sys_max_cmd_len ; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4615 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4618 $as_echo "none" >&6; }
4619 fi
4620 max_cmd_len=$lt_cv_sys_max_cmd_len
4621
4622
4623
4624
4625
4626
4627 : ${CP="cp -f"}
4628 : ${MV="mv -f"}
4629 : ${RM="rm -f"}
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4632 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4633 # Try some XSI features
4634 xsi_shell=no
4635 ( _lt_dummy="a/b/c"
4636 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4637 = c,a/b,, \
4638 && eval 'test $(( 1 + 1 )) -eq 2 \
4639 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4640 && xsi_shell=yes
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4642 $as_echo "$xsi_shell" >&6; }
4643
4644
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4646 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4647 lt_shell_append=no
4648 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4649 >/dev/null 2>&1 \
4650 && lt_shell_append=yes
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4652 $as_echo "$lt_shell_append" >&6; }
4653
4654
4655 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4656 lt_unset=unset
4657 else
4658 lt_unset=false
4659 fi
4660
4661
4662
4663
4664
4665 # test EBCDIC or ASCII
4666 case `echo X|tr X '\101'` in
4667 A) # ASCII based system
4668 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4669 lt_SP2NL='tr \040 \012'
4670 lt_NL2SP='tr \015\012 \040\040'
4671 ;;
4672 *) # EBCDIC based system
4673 lt_SP2NL='tr \100 \n'
4674 lt_NL2SP='tr \r\n \100\100'
4675 ;;
4676 esac
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4687 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4688 if ${lt_cv_ld_reload_flag+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 lt_cv_ld_reload_flag='-r'
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4694 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4695 reload_flag=$lt_cv_ld_reload_flag
4696 case $reload_flag in
4697 "" | " "*) ;;
4698 *) reload_flag=" $reload_flag" ;;
4699 esac
4700 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4701 case $host_os in
4702 darwin*)
4703 if test "$GCC" = yes; then
4704 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4705 else
4706 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4707 fi
4708 ;;
4709 esac
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719 if test -n "$ac_tool_prefix"; then
4720 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4721 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if ${ac_cv_prog_OBJDUMP+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 if test -n "$OBJDUMP"; then
4728 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741 done
4742 done
4743 IFS=$as_save_IFS
4744
4745 fi
4746 fi
4747 OBJDUMP=$ac_cv_prog_OBJDUMP
4748 if test -n "$OBJDUMP"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4750 $as_echo "$OBJDUMP" >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4754 fi
4755
4756
4757 fi
4758 if test -z "$ac_cv_prog_OBJDUMP"; then
4759 ac_ct_OBJDUMP=$OBJDUMP
4760 # Extract the first word of "objdump", so it can be a program name with args.
4761 set dummy objdump; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 if test -n "$ac_ct_OBJDUMP"; then
4768 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4784
4785 fi
4786 fi
4787 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4788 if test -n "$ac_ct_OBJDUMP"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4790 $as_echo "$ac_ct_OBJDUMP" >&6; }
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4794 fi
4795
4796 if test "x$ac_ct_OBJDUMP" = x; then
4797 OBJDUMP="false"
4798 else
4799 case $cross_compiling:$ac_tool_warned in
4800 yes:)
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803 ac_tool_warned=yes ;;
4804 esac
4805 OBJDUMP=$ac_ct_OBJDUMP
4806 fi
4807 else
4808 OBJDUMP="$ac_cv_prog_OBJDUMP"
4809 fi
4810
4811 test -z "$OBJDUMP" && OBJDUMP=objdump
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4822 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4823 if ${lt_cv_deplibs_check_method+:} false; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 lt_cv_file_magic_cmd='$MAGIC_CMD'
4827 lt_cv_file_magic_test_file=
4828 lt_cv_deplibs_check_method='unknown'
4829 # Need to set the preceding variable on all platforms that support
4830 # interlibrary dependencies.
4831 # 'none' -- dependencies not supported.
4832 # `unknown' -- same as none, but documents that we really don't know.
4833 # 'pass_all' -- all dependencies passed with no checks.
4834 # 'test_compile' -- check by making test program.
4835 # 'file_magic [[regex]]' -- check by looking for files in library path
4836 # which responds to the $file_magic_cmd with a given extended regex.
4837 # If you have `file' or equivalent on your system and you're not sure
4838 # whether `pass_all' will *always* work, you probably want this one.
4839
4840 case $host_os in
4841 aix[4-9]*)
4842 lt_cv_deplibs_check_method=pass_all
4843 ;;
4844
4845 beos*)
4846 lt_cv_deplibs_check_method=pass_all
4847 ;;
4848
4849 bsdi[45]*)
4850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4851 lt_cv_file_magic_cmd='/usr/bin/file -L'
4852 lt_cv_file_magic_test_file=/shlib/libc.so
4853 ;;
4854
4855 cygwin*)
4856 # func_win32_libid is a shell function defined in ltmain.sh
4857 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4858 lt_cv_file_magic_cmd='func_win32_libid'
4859 ;;
4860
4861 mingw* | pw32*)
4862 # Base MSYS/MinGW do not provide the 'file' command needed by
4863 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4864 # unless we find 'file', for example because we are cross-compiling.
4865 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4866 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4867 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4868 lt_cv_file_magic_cmd='func_win32_libid'
4869 else
4870 # Keep this pattern in sync with the one in func_win32_libid.
4871 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4872 lt_cv_file_magic_cmd='$OBJDUMP -f'
4873 fi
4874 ;;
4875
4876 cegcc*)
4877 # use the weaker test based on 'objdump'. See mingw*.
4878 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4879 lt_cv_file_magic_cmd='$OBJDUMP -f'
4880 ;;
4881
4882 darwin* | rhapsody*)
4883 lt_cv_deplibs_check_method=pass_all
4884 ;;
4885
4886 freebsd* | dragonfly*)
4887 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4888 case $host_cpu in
4889 i*86 )
4890 # Not sure whether the presence of OpenBSD here was a mistake.
4891 # Let's accept both of them until this is cleared up.
4892 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4893 lt_cv_file_magic_cmd=/usr/bin/file
4894 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4895 ;;
4896 esac
4897 else
4898 lt_cv_deplibs_check_method=pass_all
4899 fi
4900 ;;
4901
4902 gnu*)
4903 lt_cv_deplibs_check_method=pass_all
4904 ;;
4905
4906 haiku*)
4907 lt_cv_deplibs_check_method=pass_all
4908 ;;
4909
4910 hpux10.20* | hpux11*)
4911 lt_cv_file_magic_cmd=/usr/bin/file
4912 case $host_cpu in
4913 ia64*)
4914 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4915 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4916 ;;
4917 hppa*64*)
4918 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]'
4919 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4920 ;;
4921 *)
4922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4923 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4924 ;;
4925 esac
4926 ;;
4927
4928 interix[3-9]*)
4929 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4931 ;;
4932
4933 irix5* | irix6* | nonstopux*)
4934 case $LD in
4935 *-32|*"-32 ") libmagic=32-bit;;
4936 *-n32|*"-n32 ") libmagic=N32;;
4937 *-64|*"-64 ") libmagic=64-bit;;
4938 *) libmagic=never-match;;
4939 esac
4940 lt_cv_deplibs_check_method=pass_all
4941 ;;
4942
4943 # This must be Linux ELF.
4944 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4945 lt_cv_deplibs_check_method=pass_all
4946 ;;
4947
4948 netbsd*)
4949 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4951 else
4952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4953 fi
4954 ;;
4955
4956 newos6*)
4957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4958 lt_cv_file_magic_cmd=/usr/bin/file
4959 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4960 ;;
4961
4962 *nto* | *qnx*)
4963 lt_cv_deplibs_check_method=pass_all
4964 ;;
4965
4966 openbsd*)
4967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4969 else
4970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4971 fi
4972 ;;
4973
4974 osf3* | osf4* | osf5*)
4975 lt_cv_deplibs_check_method=pass_all
4976 ;;
4977
4978 rdos*)
4979 lt_cv_deplibs_check_method=pass_all
4980 ;;
4981
4982 solaris*)
4983 lt_cv_deplibs_check_method=pass_all
4984 ;;
4985
4986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4987 lt_cv_deplibs_check_method=pass_all
4988 ;;
4989
4990 sysv4 | sysv4.3*)
4991 case $host_vendor in
4992 motorola)
4993 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]'
4994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4995 ;;
4996 ncr)
4997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999 sequent)
5000 lt_cv_file_magic_cmd='/bin/file'
5001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5002 ;;
5003 sni)
5004 lt_cv_file_magic_cmd='/bin/file'
5005 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5006 lt_cv_file_magic_test_file=/lib/libc.so
5007 ;;
5008 siemens)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
5011 pc)
5012 lt_cv_deplibs_check_method=pass_all
5013 ;;
5014 esac
5015 ;;
5016
5017 tpf*)
5018 lt_cv_deplibs_check_method=pass_all
5019 ;;
5020 esac
5021
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5024 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5025 file_magic_cmd=$lt_cv_file_magic_cmd
5026 deplibs_check_method=$lt_cv_deplibs_check_method
5027 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040 if test -n "$ac_tool_prefix"; then
5041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5042 set dummy ${ac_tool_prefix}ar; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_AR+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$AR"; then
5049 ac_cv_prog_AR="$AR" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_AR="${ac_tool_prefix}ar"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062 done
5063 done
5064 IFS=$as_save_IFS
5065
5066 fi
5067 fi
5068 AR=$ac_cv_prog_AR
5069 if test -n "$AR"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5071 $as_echo "$AR" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 fi
5076
5077
5078 fi
5079 if test -z "$ac_cv_prog_AR"; then
5080 ac_ct_AR=$AR
5081 # Extract the first word of "ar", so it can be a program name with args.
5082 set dummy ar; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$ac_ct_AR"; then
5089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_ac_ct_AR="ar"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5101 fi
5102 done
5103 done
5104 IFS=$as_save_IFS
5105
5106 fi
5107 fi
5108 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5109 if test -n "$ac_ct_AR"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5111 $as_echo "$ac_ct_AR" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5115 fi
5116
5117 if test "x$ac_ct_AR" = x; then
5118 AR="false"
5119 else
5120 case $cross_compiling:$ac_tool_warned in
5121 yes:)
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5124 ac_tool_warned=yes ;;
5125 esac
5126 AR=$ac_ct_AR
5127 fi
5128 else
5129 AR="$ac_cv_prog_AR"
5130 fi
5131
5132 test -z "$AR" && AR=ar
5133 test -z "$AR_FLAGS" && AR_FLAGS=cru
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145 if test -n "$ac_tool_prefix"; then
5146 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5147 set dummy ${ac_tool_prefix}strip; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_STRIP+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$STRIP"; then
5154 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167 done
5168 done
5169 IFS=$as_save_IFS
5170
5171 fi
5172 fi
5173 STRIP=$ac_cv_prog_STRIP
5174 if test -n "$STRIP"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5176 $as_echo "$STRIP" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181
5182
5183 fi
5184 if test -z "$ac_cv_prog_STRIP"; then
5185 ac_ct_STRIP=$STRIP
5186 # Extract the first word of "strip", so it can be a program name with args.
5187 set dummy strip; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$ac_ct_STRIP"; then
5194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_ac_ct_STRIP="strip"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207 done
5208 done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5214 if test -n "$ac_ct_STRIP"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5216 $as_echo "$ac_ct_STRIP" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222 if test "x$ac_ct_STRIP" = x; then
5223 STRIP=":"
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226 yes:)
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5230 esac
5231 STRIP=$ac_ct_STRIP
5232 fi
5233 else
5234 STRIP="$ac_cv_prog_STRIP"
5235 fi
5236
5237 test -z "$STRIP" && STRIP=:
5238
5239
5240
5241
5242
5243
5244 if test -n "$ac_tool_prefix"; then
5245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_RANLIB+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$RANLIB"; then
5253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5265 fi
5266 done
5267 done
5268 IFS=$as_save_IFS
5269
5270 fi
5271 fi
5272 RANLIB=$ac_cv_prog_RANLIB
5273 if test -n "$RANLIB"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5275 $as_echo "$RANLIB" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 fi
5280
5281
5282 fi
5283 if test -z "$ac_cv_prog_RANLIB"; then
5284 ac_ct_RANLIB=$RANLIB
5285 # Extract the first word of "ranlib", so it can be a program name with args.
5286 set dummy ranlib; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if test -n "$ac_ct_RANLIB"; then
5293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302 ac_cv_prog_ac_ct_RANLIB="ranlib"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5305 fi
5306 done
5307 done
5308 IFS=$as_save_IFS
5309
5310 fi
5311 fi
5312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5313 if test -n "$ac_ct_RANLIB"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5315 $as_echo "$ac_ct_RANLIB" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321 if test "x$ac_ct_RANLIB" = x; then
5322 RANLIB=":"
5323 else
5324 case $cross_compiling:$ac_tool_warned in
5325 yes:)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5328 ac_tool_warned=yes ;;
5329 esac
5330 RANLIB=$ac_ct_RANLIB
5331 fi
5332 else
5333 RANLIB="$ac_cv_prog_RANLIB"
5334 fi
5335
5336 test -z "$RANLIB" && RANLIB=:
5337
5338
5339
5340
5341
5342
5343 # Determine commands to create old-style static archives.
5344 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5345 old_postinstall_cmds='chmod 644 $oldlib'
5346 old_postuninstall_cmds=
5347
5348 if test -n "$RANLIB"; then
5349 case $host_os in
5350 openbsd*)
5351 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5352 ;;
5353 *)
5354 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5355 ;;
5356 esac
5357 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5358 fi
5359
5360 case $host_os in
5361 darwin*)
5362 lock_old_archive_extraction=yes ;;
5363 *)
5364 lock_old_archive_extraction=no ;;
5365 esac
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405 # If no C compiler was specified, use CC.
5406 LTCC=${LTCC-"$CC"}
5407
5408 # If no C compiler flags were specified, use CFLAGS.
5409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5410
5411 # Allow CC to be a program name with arguments.
5412 compiler=$CC
5413
5414
5415 # Check for command to grab the raw symbol name followed by C symbol from nm.
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5417 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5418 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421
5422 # These are sane defaults that work on at least a few old systems.
5423 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5424
5425 # Character class describing NM global symbol codes.
5426 symcode='[BCDEGRST]'
5427
5428 # Regexp to match symbols that can be accessed directly from C.
5429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5430
5431 # Define system-specific variables.
5432 case $host_os in
5433 aix*)
5434 symcode='[BCDT]'
5435 ;;
5436 cygwin* | mingw* | pw32* | cegcc*)
5437 symcode='[ABCDGISTW]'
5438 ;;
5439 hpux*)
5440 if test "$host_cpu" = ia64; then
5441 symcode='[ABCDEGRST]'
5442 fi
5443 ;;
5444 irix* | nonstopux*)
5445 symcode='[BCDEGRST]'
5446 ;;
5447 osf*)
5448 symcode='[BCDEGQRST]'
5449 ;;
5450 solaris*)
5451 symcode='[BDRT]'
5452 ;;
5453 sco3.2v5*)
5454 symcode='[DT]'
5455 ;;
5456 sysv4.2uw2*)
5457 symcode='[DT]'
5458 ;;
5459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5460 symcode='[ABDT]'
5461 ;;
5462 sysv4)
5463 symcode='[DFNSTU]'
5464 ;;
5465 esac
5466
5467 # If we're using GNU nm, then use its standard symbol codes.
5468 case `$NM -V 2>&1` in
5469 *GNU* | *'with BFD'*)
5470 symcode='[ABCDGIRSTW]' ;;
5471 esac
5472
5473 # Transform an extracted symbol line into a proper C declaration.
5474 # Some systems (esp. on ia64) link data and code symbols differently,
5475 # so use this general approach.
5476 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5477
5478 # Transform an extracted symbol line into symbol name and symbol address
5479 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5480 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5481
5482 # Handle CRLF in mingw tool chain
5483 opt_cr=
5484 case $build_os in
5485 mingw*)
5486 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5487 ;;
5488 esac
5489
5490 # Try without a prefix underscore, then with it.
5491 for ac_symprfx in "" "_"; do
5492
5493 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5494 symxfrm="\\1 $ac_symprfx\\2 \\2"
5495
5496 # Write the raw and C identifiers.
5497 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5498 # Fake it for dumpbin and say T for any non-static function
5499 # and D for any global variable.
5500 # Also find C++ and __fastcall symbols from MSVC++,
5501 # which start with @ or ?.
5502 lt_cv_sys_global_symbol_pipe="$AWK '"\
5503 " {last_section=section; section=\$ 3};"\
5504 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5505 " \$ 0!~/External *\|/{next};"\
5506 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5507 " {if(hide[section]) next};"\
5508 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5509 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5510 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5511 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5512 " ' prfx=^$ac_symprfx"
5513 else
5514 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5515 fi
5516
5517 # Check to see that the pipe works correctly.
5518 pipe_works=no
5519
5520 rm -f conftest*
5521 cat > conftest.$ac_ext <<_LT_EOF
5522 #ifdef __cplusplus
5523 extern "C" {
5524 #endif
5525 char nm_test_var;
5526 void nm_test_func(void);
5527 void nm_test_func(void){}
5528 #ifdef __cplusplus
5529 }
5530 #endif
5531 int main(){nm_test_var='a';nm_test_func();return(0);}
5532 _LT_EOF
5533
5534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5535 (eval $ac_compile) 2>&5
5536 ac_status=$?
5537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5538 test $ac_status = 0; }; then
5539 # Now try to grab the symbols.
5540 nlist=conftest.nm
5541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5542 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5543 ac_status=$?
5544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545 test $ac_status = 0; } && test -s "$nlist"; then
5546 # Try sorting and uniquifying the output.
5547 if sort "$nlist" | uniq > "$nlist"T; then
5548 mv -f "$nlist"T "$nlist"
5549 else
5550 rm -f "$nlist"T
5551 fi
5552
5553 # Make sure that we snagged all the symbols we need.
5554 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5555 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5556 cat <<_LT_EOF > conftest.$ac_ext
5557 #ifdef __cplusplus
5558 extern "C" {
5559 #endif
5560
5561 _LT_EOF
5562 # Now generate the symbol file.
5563 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5564
5565 cat <<_LT_EOF >> conftest.$ac_ext
5566
5567 /* The mapping between symbol names and symbols. */
5568 const struct {
5569 const char *name;
5570 void *address;
5571 }
5572 lt__PROGRAM__LTX_preloaded_symbols[] =
5573 {
5574 { "@PROGRAM@", (void *) 0 },
5575 _LT_EOF
5576 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5577 cat <<\_LT_EOF >> conftest.$ac_ext
5578 {0, (void *) 0}
5579 };
5580
5581 /* This works around a problem in FreeBSD linker */
5582 #ifdef FREEBSD_WORKAROUND
5583 static const void *lt_preloaded_setup() {
5584 return lt__PROGRAM__LTX_preloaded_symbols;
5585 }
5586 #endif
5587
5588 #ifdef __cplusplus
5589 }
5590 #endif
5591 _LT_EOF
5592 # Now try linking the two files.
5593 mv conftest.$ac_objext conftstm.$ac_objext
5594 lt_save_LIBS="$LIBS"
5595 lt_save_CFLAGS="$CFLAGS"
5596 LIBS="conftstm.$ac_objext"
5597 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5599 (eval $ac_link) 2>&5
5600 ac_status=$?
5601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5602 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5603 pipe_works=yes
5604 fi
5605 LIBS="$lt_save_LIBS"
5606 CFLAGS="$lt_save_CFLAGS"
5607 else
5608 echo "cannot find nm_test_func in $nlist" >&5
5609 fi
5610 else
5611 echo "cannot find nm_test_var in $nlist" >&5
5612 fi
5613 else
5614 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5615 fi
5616 else
5617 echo "$progname: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 fi
5620 rm -rf conftest* conftst*
5621
5622 # Do not use the global_symbol_pipe unless it works.
5623 if test "$pipe_works" = yes; then
5624 break
5625 else
5626 lt_cv_sys_global_symbol_pipe=
5627 fi
5628 done
5629
5630 fi
5631
5632 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5633 lt_cv_sys_global_symbol_to_cdecl=
5634 fi
5635 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5637 $as_echo "failed" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5640 $as_echo "ok" >&6; }
5641 fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665 # Check whether --enable-libtool-lock was given.
5666 if test "${enable_libtool_lock+set}" = set; then :
5667 enableval=$enable_libtool_lock;
5668 fi
5669
5670 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5671
5672 # Some flags need to be propagated to the compiler or linker for good
5673 # libtool support.
5674 case $host in
5675 ia64-*-hpux*)
5676 # Find out which ABI we are using.
5677 echo 'int i;' > conftest.$ac_ext
5678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5679 (eval $ac_compile) 2>&5
5680 ac_status=$?
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; }; then
5683 case `/usr/bin/file conftest.$ac_objext` in
5684 *ELF-32*)
5685 HPUX_IA64_MODE="32"
5686 ;;
5687 *ELF-64*)
5688 HPUX_IA64_MODE="64"
5689 ;;
5690 esac
5691 fi
5692 rm -rf conftest*
5693 ;;
5694 *-*-irix6*)
5695 # Find out which ABI we are using.
5696 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5698 (eval $ac_compile) 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; }; then
5702 if test "$lt_cv_prog_gnu_ld" = yes; then
5703 case `/usr/bin/file conftest.$ac_objext` in
5704 *32-bit*)
5705 LD="${LD-ld} -melf32bsmip"
5706 ;;
5707 *N32*)
5708 LD="${LD-ld} -melf32bmipn32"
5709 ;;
5710 *64-bit*)
5711 LD="${LD-ld} -melf64bmip"
5712 ;;
5713 esac
5714 else
5715 case `/usr/bin/file conftest.$ac_objext` in
5716 *32-bit*)
5717 LD="${LD-ld} -32"
5718 ;;
5719 *N32*)
5720 LD="${LD-ld} -n32"
5721 ;;
5722 *64-bit*)
5723 LD="${LD-ld} -64"
5724 ;;
5725 esac
5726 fi
5727 fi
5728 rm -rf conftest*
5729 ;;
5730
5731 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5732 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5733 # Find out which ABI we are using.
5734 echo 'int i;' > conftest.$ac_ext
5735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5736 (eval $ac_compile) 2>&5
5737 ac_status=$?
5738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5739 test $ac_status = 0; }; then
5740 case `/usr/bin/file conftest.o` in
5741 *32-bit*)
5742 case $host in
5743 x86_64-*kfreebsd*-gnu)
5744 LD="${LD-ld} -m elf_i386_fbsd"
5745 ;;
5746 x86_64-*linux*)
5747 LD="${LD-ld} -m elf_i386"
5748 ;;
5749 ppc64-*linux*|powerpc64-*linux*)
5750 LD="${LD-ld} -m elf32ppclinux"
5751 ;;
5752 s390x-*linux*)
5753 LD="${LD-ld} -m elf_s390"
5754 ;;
5755 sparc64-*linux*)
5756 LD="${LD-ld} -m elf32_sparc"
5757 ;;
5758 esac
5759 ;;
5760 *64-bit*)
5761 case $host in
5762 x86_64-*kfreebsd*-gnu)
5763 LD="${LD-ld} -m elf_x86_64_fbsd"
5764 ;;
5765 x86_64-*linux*)
5766 LD="${LD-ld} -m elf_x86_64"
5767 ;;
5768 ppc*-*linux*|powerpc*-*linux*)
5769 LD="${LD-ld} -m elf64ppc"
5770 ;;
5771 s390*-*linux*|s390*-*tpf*)
5772 LD="${LD-ld} -m elf64_s390"
5773 ;;
5774 sparc*-*linux*)
5775 LD="${LD-ld} -m elf64_sparc"
5776 ;;
5777 esac
5778 ;;
5779 esac
5780 fi
5781 rm -rf conftest*
5782 ;;
5783
5784 *-*-sco3.2v5*)
5785 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5786 SAVE_CFLAGS="$CFLAGS"
5787 CFLAGS="$CFLAGS -belf"
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5789 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5790 if ${lt_cv_cc_needs_belf+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 ac_ext=c
5794 ac_cpp='$CPP $CPPFLAGS'
5795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801
5802 int
5803 main ()
5804 {
5805
5806 ;
5807 return 0;
5808 }
5809 _ACEOF
5810 if ac_fn_c_try_link "$LINENO"; then :
5811 lt_cv_cc_needs_belf=yes
5812 else
5813 lt_cv_cc_needs_belf=no
5814 fi
5815 rm -f core conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5817 ac_ext=c
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5825 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5826 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5827 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5828 CFLAGS="$SAVE_CFLAGS"
5829 fi
5830 ;;
5831 sparc*-*solaris*)
5832 # Find out which ABI we are using.
5833 echo 'int i;' > conftest.$ac_ext
5834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5835 (eval $ac_compile) 2>&5
5836 ac_status=$?
5837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5838 test $ac_status = 0; }; then
5839 case `/usr/bin/file conftest.o` in
5840 *64-bit*)
5841 case $lt_cv_prog_gnu_ld in
5842 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5843 *)
5844 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5845 LD="${LD-ld} -64"
5846 fi
5847 ;;
5848 esac
5849 ;;
5850 esac
5851 fi
5852 rm -rf conftest*
5853 ;;
5854 esac
5855
5856 need_locks="$enable_libtool_lock"
5857
5858
5859 case $host_os in
5860 rhapsody* | darwin*)
5861 if test -n "$ac_tool_prefix"; then
5862 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -n "$DSYMUTIL"; then
5870 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5890 if test -n "$DSYMUTIL"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5892 $as_echo "$DSYMUTIL" >&6; }
5893 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898
5899 fi
5900 if test -z "$ac_cv_prog_DSYMUTIL"; then
5901 ac_ct_DSYMUTIL=$DSYMUTIL
5902 # Extract the first word of "dsymutil", so it can be a program name with args.
5903 set dummy dsymutil; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$ac_ct_DSYMUTIL"; then
5910 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5930 if test -n "$ac_ct_DSYMUTIL"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5932 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938 if test "x$ac_ct_DSYMUTIL" = x; then
5939 DSYMUTIL=":"
5940 else
5941 case $cross_compiling:$ac_tool_warned in
5942 yes:)
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5945 ac_tool_warned=yes ;;
5946 esac
5947 DSYMUTIL=$ac_ct_DSYMUTIL
5948 fi
5949 else
5950 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5951 fi
5952
5953 if test -n "$ac_tool_prefix"; then
5954 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_NMEDIT+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$NMEDIT"; then
5962 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5974 fi
5975 done
5976 done
5977 IFS=$as_save_IFS
5978
5979 fi
5980 fi
5981 NMEDIT=$ac_cv_prog_NMEDIT
5982 if test -n "$NMEDIT"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5984 $as_echo "$NMEDIT" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5988 fi
5989
5990
5991 fi
5992 if test -z "$ac_cv_prog_NMEDIT"; then
5993 ac_ct_NMEDIT=$NMEDIT
5994 # Extract the first word of "nmedit", so it can be a program name with args.
5995 set dummy nmedit; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$ac_ct_NMEDIT"; then
6002 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6022 if test -n "$ac_ct_NMEDIT"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6024 $as_echo "$ac_ct_NMEDIT" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6028 fi
6029
6030 if test "x$ac_ct_NMEDIT" = x; then
6031 NMEDIT=":"
6032 else
6033 case $cross_compiling:$ac_tool_warned in
6034 yes:)
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037 ac_tool_warned=yes ;;
6038 esac
6039 NMEDIT=$ac_ct_NMEDIT
6040 fi
6041 else
6042 NMEDIT="$ac_cv_prog_NMEDIT"
6043 fi
6044
6045 if test -n "$ac_tool_prefix"; then
6046 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6047 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if ${ac_cv_prog_LIPO+:} false; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 if test -n "$LIPO"; then
6054 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6066 fi
6067 done
6068 done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 LIPO=$ac_cv_prog_LIPO
6074 if test -n "$LIPO"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6076 $as_echo "$LIPO" >&6; }
6077 else
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6080 fi
6081
6082
6083 fi
6084 if test -z "$ac_cv_prog_LIPO"; then
6085 ac_ct_LIPO=$LIPO
6086 # Extract the first word of "lipo", so it can be a program name with args.
6087 set dummy lipo; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if test -n "$ac_ct_LIPO"; then
6094 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_ac_ct_LIPO="lipo"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6114 if test -n "$ac_ct_LIPO"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6116 $as_echo "$ac_ct_LIPO" >&6; }
6117 else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 fi
6121
6122 if test "x$ac_ct_LIPO" = x; then
6123 LIPO=":"
6124 else
6125 case $cross_compiling:$ac_tool_warned in
6126 yes:)
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129 ac_tool_warned=yes ;;
6130 esac
6131 LIPO=$ac_ct_LIPO
6132 fi
6133 else
6134 LIPO="$ac_cv_prog_LIPO"
6135 fi
6136
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}otool; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_OTOOL+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$OTOOL"; then
6146 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 OTOOL=$ac_cv_prog_OTOOL
6166 if test -n "$OTOOL"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6168 $as_echo "$OTOOL" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174
6175 fi
6176 if test -z "$ac_cv_prog_OTOOL"; then
6177 ac_ct_OTOOL=$OTOOL
6178 # Extract the first word of "otool", so it can be a program name with args.
6179 set dummy otool; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 if test -n "$ac_ct_OTOOL"; then
6186 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_ac_ct_OTOOL="otool"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203 fi
6204 fi
6205 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6206 if test -n "$ac_ct_OTOOL"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6208 $as_echo "$ac_ct_OTOOL" >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6212 fi
6213
6214 if test "x$ac_ct_OTOOL" = x; then
6215 OTOOL=":"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 OTOOL=$ac_ct_OTOOL
6224 fi
6225 else
6226 OTOOL="$ac_cv_prog_OTOOL"
6227 fi
6228
6229 if test -n "$ac_tool_prefix"; then
6230 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_OTOOL64+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 if test -n "$OTOOL64"; then
6238 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6250 fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 OTOOL64=$ac_cv_prog_OTOOL64
6258 if test -n "$OTOOL64"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6260 $as_echo "$OTOOL64" >&6; }
6261 else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266
6267 fi
6268 if test -z "$ac_cv_prog_OTOOL64"; then
6269 ac_ct_OTOOL64=$OTOOL64
6270 # Extract the first word of "otool64", so it can be a program name with args.
6271 set dummy otool64; ac_word=$2
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6275 $as_echo_n "(cached) " >&6
6276 else
6277 if test -n "$ac_ct_OTOOL64"; then
6278 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_ac_ct_OTOOL64="otool64"
6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6290 fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6298 if test -n "$ac_ct_OTOOL64"; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6300 $as_echo "$ac_ct_OTOOL64" >&6; }
6301 else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6304 fi
6305
6306 if test "x$ac_ct_OTOOL64" = x; then
6307 OTOOL64=":"
6308 else
6309 case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6313 ac_tool_warned=yes ;;
6314 esac
6315 OTOOL64=$ac_ct_OTOOL64
6316 fi
6317 else
6318 OTOOL64="$ac_cv_prog_OTOOL64"
6319 fi
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6348 $as_echo_n "checking for -single_module linker flag... " >&6; }
6349 if ${lt_cv_apple_cc_single_mod+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 lt_cv_apple_cc_single_mod=no
6353 if test -z "${LT_MULTI_MODULE}"; then
6354 # By default we will add the -single_module flag. You can override
6355 # by either setting the environment variable LT_MULTI_MODULE
6356 # non-empty at configure time, or by adding -multi_module to the
6357 # link flags.
6358 rm -rf libconftest.dylib*
6359 echo "int foo(void){return 1;}" > conftest.c
6360 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6361 -dynamiclib -Wl,-single_module conftest.c" >&5
6362 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6363 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6364 _lt_result=$?
6365 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6366 lt_cv_apple_cc_single_mod=yes
6367 else
6368 cat conftest.err >&5
6369 fi
6370 rm -rf libconftest.dylib*
6371 rm -f conftest.*
6372 fi
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6375 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6377 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6378 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 lt_cv_ld_exported_symbols_list=no
6382 save_LDFLAGS=$LDFLAGS
6383 echo "_main" > conftest.sym
6384 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387
6388 int
6389 main ()
6390 {
6391
6392 ;
6393 return 0;
6394 }
6395 _ACEOF
6396 if ac_fn_c_try_link "$LINENO"; then :
6397 lt_cv_ld_exported_symbols_list=yes
6398 else
6399 lt_cv_ld_exported_symbols_list=no
6400 fi
6401 rm -f core conftest.err conftest.$ac_objext \
6402 conftest$ac_exeext conftest.$ac_ext
6403 LDFLAGS="$save_LDFLAGS"
6404
6405 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6407 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6409 $as_echo_n "checking for -force_load linker flag... " >&6; }
6410 if ${lt_cv_ld_force_load+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 lt_cv_ld_force_load=no
6414 cat > conftest.c << _LT_EOF
6415 int forced_loaded() { return 2;}
6416 _LT_EOF
6417 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6418 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6419 echo "$AR cru libconftest.a conftest.o" >&5
6420 $AR cru libconftest.a conftest.o 2>&5
6421 echo "$RANLIB libconftest.a" >&5
6422 $RANLIB libconftest.a 2>&5
6423 cat > conftest.c << _LT_EOF
6424 int main() { return 0;}
6425 _LT_EOF
6426 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6427 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6428 _lt_result=$?
6429 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6430 lt_cv_ld_force_load=yes
6431 else
6432 cat conftest.err >&5
6433 fi
6434 rm -f conftest.err libconftest.a conftest conftest.c
6435 rm -rf conftest.dSYM
6436
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6439 $as_echo "$lt_cv_ld_force_load" >&6; }
6440 case $host_os in
6441 rhapsody* | darwin1.[012])
6442 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6443 darwin1.*)
6444 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6445 darwin*) # darwin 5.x on
6446 # if running on 10.5 or later, the deployment target defaults
6447 # to the OS version, if on x86, and 10.4, the deployment
6448 # target defaults to 10.4. Don't you love it?
6449 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6450 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6451 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6452 10.[012]*)
6453 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6454 10.*)
6455 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6456 esac
6457 ;;
6458 esac
6459 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6460 _lt_dar_single_mod='$single_module'
6461 fi
6462 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6463 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6464 else
6465 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6466 fi
6467 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6468 _lt_dsymutil='~$DSYMUTIL $lib || :'
6469 else
6470 _lt_dsymutil=
6471 fi
6472 ;;
6473 esac
6474
6475 ac_ext=c
6476 ac_cpp='$CPP $CPPFLAGS'
6477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6481 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6482 # On Suns, sometimes $CPP names a directory.
6483 if test -n "$CPP" && test -d "$CPP"; then
6484 CPP=
6485 fi
6486 if test -z "$CPP"; then
6487 if ${ac_cv_prog_CPP+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 # Double quotes because CPP needs to be expanded
6491 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6492 do
6493 ac_preproc_ok=false
6494 for ac_c_preproc_warn_flag in '' yes
6495 do
6496 # Use a header file that comes with gcc, so configuring glibc
6497 # with a fresh cross-compiler works.
6498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6499 # <limits.h> exists even on freestanding compilers.
6500 # On the NeXT, cc -E runs the code through the compiler's parser,
6501 # not just through cpp. "Syntax error" is here to catch this case.
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 #ifdef __STDC__
6505 # include <limits.h>
6506 #else
6507 # include <assert.h>
6508 #endif
6509 Syntax error
6510 _ACEOF
6511 if ac_fn_c_try_cpp "$LINENO"; then :
6512
6513 else
6514 # Broken: fails on valid input.
6515 continue
6516 fi
6517 rm -f conftest.err conftest.i conftest.$ac_ext
6518
6519 # OK, works on sane cases. Now check whether nonexistent headers
6520 # can be detected and how.
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 #include <ac_nonexistent.h>
6524 _ACEOF
6525 if ac_fn_c_try_cpp "$LINENO"; then :
6526 # Broken: success on invalid input.
6527 continue
6528 else
6529 # Passes both tests.
6530 ac_preproc_ok=:
6531 break
6532 fi
6533 rm -f conftest.err conftest.i conftest.$ac_ext
6534
6535 done
6536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6537 rm -f conftest.i conftest.err conftest.$ac_ext
6538 if $ac_preproc_ok; then :
6539 break
6540 fi
6541
6542 done
6543 ac_cv_prog_CPP=$CPP
6544
6545 fi
6546 CPP=$ac_cv_prog_CPP
6547 else
6548 ac_cv_prog_CPP=$CPP
6549 fi
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6551 $as_echo "$CPP" >&6; }
6552 ac_preproc_ok=false
6553 for ac_c_preproc_warn_flag in '' yes
6554 do
6555 # Use a header file that comes with gcc, so configuring glibc
6556 # with a fresh cross-compiler works.
6557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6558 # <limits.h> exists even on freestanding compilers.
6559 # On the NeXT, cc -E runs the code through the compiler's parser,
6560 # not just through cpp. "Syntax error" is here to catch this case.
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 #ifdef __STDC__
6564 # include <limits.h>
6565 #else
6566 # include <assert.h>
6567 #endif
6568 Syntax error
6569 _ACEOF
6570 if ac_fn_c_try_cpp "$LINENO"; then :
6571
6572 else
6573 # Broken: fails on valid input.
6574 continue
6575 fi
6576 rm -f conftest.err conftest.i conftest.$ac_ext
6577
6578 # OK, works on sane cases. Now check whether nonexistent headers
6579 # can be detected and how.
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 #include <ac_nonexistent.h>
6583 _ACEOF
6584 if ac_fn_c_try_cpp "$LINENO"; then :
6585 # Broken: success on invalid input.
6586 continue
6587 else
6588 # Passes both tests.
6589 ac_preproc_ok=:
6590 break
6591 fi
6592 rm -f conftest.err conftest.i conftest.$ac_ext
6593
6594 done
6595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6596 rm -f conftest.i conftest.err conftest.$ac_ext
6597 if $ac_preproc_ok; then :
6598
6599 else
6600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6602 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6603 See \`config.log' for more details" "$LINENO" 5; }
6604 fi
6605
6606 ac_ext=c
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611
6612
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6614 $as_echo_n "checking for ANSI C header files... " >&6; }
6615 if ${ac_cv_header_stdc+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 #include <stdlib.h>
6621 #include <stdarg.h>
6622 #include <string.h>
6623 #include <float.h>
6624
6625 int
6626 main ()
6627 {
6628
6629 ;
6630 return 0;
6631 }
6632 _ACEOF
6633 if ac_fn_c_try_compile "$LINENO"; then :
6634 ac_cv_header_stdc=yes
6635 else
6636 ac_cv_header_stdc=no
6637 fi
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639
6640 if test $ac_cv_header_stdc = yes; then
6641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 #include <string.h>
6645
6646 _ACEOF
6647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6648 $EGREP "memchr" >/dev/null 2>&1; then :
6649
6650 else
6651 ac_cv_header_stdc=no
6652 fi
6653 rm -f conftest*
6654
6655 fi
6656
6657 if test $ac_cv_header_stdc = yes; then
6658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6661 #include <stdlib.h>
6662
6663 _ACEOF
6664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6665 $EGREP "free" >/dev/null 2>&1; then :
6666
6667 else
6668 ac_cv_header_stdc=no
6669 fi
6670 rm -f conftest*
6671
6672 fi
6673
6674 if test $ac_cv_header_stdc = yes; then
6675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6676 if test "$cross_compiling" = yes; then :
6677 :
6678 else
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 #include <ctype.h>
6682 #include <stdlib.h>
6683 #if ((' ' & 0x0FF) == 0x020)
6684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6686 #else
6687 # define ISLOWER(c) \
6688 (('a' <= (c) && (c) <= 'i') \
6689 || ('j' <= (c) && (c) <= 'r') \
6690 || ('s' <= (c) && (c) <= 'z'))
6691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6692 #endif
6693
6694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6695 int
6696 main ()
6697 {
6698 int i;
6699 for (i = 0; i < 256; i++)
6700 if (XOR (islower (i), ISLOWER (i))
6701 || toupper (i) != TOUPPER (i))
6702 return 2;
6703 return 0;
6704 }
6705 _ACEOF
6706 if ac_fn_c_try_run "$LINENO"; then :
6707
6708 else
6709 ac_cv_header_stdc=no
6710 fi
6711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6712 conftest.$ac_objext conftest.beam conftest.$ac_ext
6713 fi
6714
6715 fi
6716 fi
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6718 $as_echo "$ac_cv_header_stdc" >&6; }
6719 if test $ac_cv_header_stdc = yes; then
6720
6721 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6722
6723 fi
6724
6725 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6726 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6727 inttypes.h stdint.h unistd.h
6728 do :
6729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6730 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6731 "
6732 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6733 cat >>confdefs.h <<_ACEOF
6734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6735 _ACEOF
6736
6737 fi
6738
6739 done
6740
6741
6742 for ac_header in dlfcn.h
6743 do :
6744 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6745 "
6746 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6747 cat >>confdefs.h <<_ACEOF
6748 #define HAVE_DLFCN_H 1
6749 _ACEOF
6750
6751 fi
6752
6753 done
6754
6755
6756
6757
6758
6759 # Set options
6760
6761
6762
6763 enable_dlopen=no
6764
6765
6766 enable_win32_dll=no
6767
6768
6769 # Check whether --enable-shared was given.
6770 if test "${enable_shared+set}" = set; then :
6771 enableval=$enable_shared; p=${PACKAGE-default}
6772 case $enableval in
6773 yes) enable_shared=yes ;;
6774 no) enable_shared=no ;;
6775 *)
6776 enable_shared=no
6777 # Look at the argument we got. We use all the common list separators.
6778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6779 for pkg in $enableval; do
6780 IFS="$lt_save_ifs"
6781 if test "X$pkg" = "X$p"; then
6782 enable_shared=yes
6783 fi
6784 done
6785 IFS="$lt_save_ifs"
6786 ;;
6787 esac
6788 else
6789 enable_shared=yes
6790 fi
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800 # Check whether --enable-static was given.
6801 if test "${enable_static+set}" = set; then :
6802 enableval=$enable_static; p=${PACKAGE-default}
6803 case $enableval in
6804 yes) enable_static=yes ;;
6805 no) enable_static=no ;;
6806 *)
6807 enable_static=no
6808 # Look at the argument we got. We use all the common list separators.
6809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6810 for pkg in $enableval; do
6811 IFS="$lt_save_ifs"
6812 if test "X$pkg" = "X$p"; then
6813 enable_static=yes
6814 fi
6815 done
6816 IFS="$lt_save_ifs"
6817 ;;
6818 esac
6819 else
6820 enable_static=yes
6821 fi
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832 # Check whether --with-pic was given.
6833 if test "${with_pic+set}" = set; then :
6834 withval=$with_pic; pic_mode="$withval"
6835 else
6836 pic_mode=default
6837 fi
6838
6839
6840 test -z "$pic_mode" && pic_mode=default
6841
6842
6843
6844
6845
6846
6847
6848 # Check whether --enable-fast-install was given.
6849 if test "${enable_fast_install+set}" = set; then :
6850 enableval=$enable_fast_install; p=${PACKAGE-default}
6851 case $enableval in
6852 yes) enable_fast_install=yes ;;
6853 no) enable_fast_install=no ;;
6854 *)
6855 enable_fast_install=no
6856 # Look at the argument we got. We use all the common list separators.
6857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6858 for pkg in $enableval; do
6859 IFS="$lt_save_ifs"
6860 if test "X$pkg" = "X$p"; then
6861 enable_fast_install=yes
6862 fi
6863 done
6864 IFS="$lt_save_ifs"
6865 ;;
6866 esac
6867 else
6868 enable_fast_install=yes
6869 fi
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881 # This can be used to rebuild libtool when needed
6882 LIBTOOL_DEPS="$ltmain"
6883
6884 # Always use our own libtool.
6885 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912 test -z "$LN_S" && LN_S="ln -s"
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927 if test -n "${ZSH_VERSION+set}" ; then
6928 setopt NO_GLOB_SUBST
6929 fi
6930
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6932 $as_echo_n "checking for objdir... " >&6; }
6933 if ${lt_cv_objdir+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 rm -f .libs 2>/dev/null
6937 mkdir .libs 2>/dev/null
6938 if test -d .libs; then
6939 lt_cv_objdir=.libs
6940 else
6941 # MS-DOS does not allow filenames that begin with a dot.
6942 lt_cv_objdir=_libs
6943 fi
6944 rmdir .libs 2>/dev/null
6945 fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6947 $as_echo "$lt_cv_objdir" >&6; }
6948 objdir=$lt_cv_objdir
6949
6950
6951
6952
6953
6954 cat >>confdefs.h <<_ACEOF
6955 #define LT_OBJDIR "$lt_cv_objdir/"
6956 _ACEOF
6957
6958
6959
6960
6961 case $host_os in
6962 aix3*)
6963 # AIX sometimes has problems with the GCC collect2 program. For some
6964 # reason, if we set the COLLECT_NAMES environment variable, the problems
6965 # vanish in a puff of smoke.
6966 if test "X${COLLECT_NAMES+set}" != Xset; then
6967 COLLECT_NAMES=
6968 export COLLECT_NAMES
6969 fi
6970 ;;
6971 esac
6972
6973 # Global variables:
6974 ofile=libtool
6975 can_build_shared=yes
6976
6977 # All known linkers require a `.a' archive for static linking (except MSVC,
6978 # which needs '.lib').
6979 libext=a
6980
6981 with_gnu_ld="$lt_cv_prog_gnu_ld"
6982
6983 old_CC="$CC"
6984 old_CFLAGS="$CFLAGS"
6985
6986 # Set sane defaults for various variables
6987 test -z "$CC" && CC=cc
6988 test -z "$LTCC" && LTCC=$CC
6989 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6990 test -z "$LD" && LD=ld
6991 test -z "$ac_objext" && ac_objext=o
6992
6993 for cc_temp in $compiler""; do
6994 case $cc_temp in
6995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6997 \-*) ;;
6998 *) break;;
6999 esac
7000 done
7001 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7002
7003
7004 # Only perform the check for file, if the check method requires it
7005 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7006 case $deplibs_check_method in
7007 file_magic*)
7008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7010 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7011 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 case $MAGIC_CMD in
7015 [\\/*] | ?:[\\/]*)
7016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7017 ;;
7018 *)
7019 lt_save_MAGIC_CMD="$MAGIC_CMD"
7020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7022 for ac_dir in $ac_dummy; do
7023 IFS="$lt_save_ifs"
7024 test -z "$ac_dir" && ac_dir=.
7025 if test -f $ac_dir/${ac_tool_prefix}file; then
7026 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7027 if test -n "$file_magic_test_file"; then
7028 case $deplibs_check_method in
7029 "file_magic "*)
7030 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7033 $EGREP "$file_magic_regex" > /dev/null; then
7034 :
7035 else
7036 cat <<_LT_EOF 1>&2
7037
7038 *** Warning: the command libtool uses to detect shared libraries,
7039 *** $file_magic_cmd, produces output that libtool cannot recognize.
7040 *** The result is that libtool may fail to recognize shared libraries
7041 *** as such. This will affect the creation of libtool libraries that
7042 *** depend on shared libraries, but programs linked with such libtool
7043 *** libraries will work regardless of this problem. Nevertheless, you
7044 *** may want to report the problem to your system manager and/or to
7045 *** bug-libtool@gnu.org
7046
7047 _LT_EOF
7048 fi ;;
7049 esac
7050 fi
7051 break
7052 fi
7053 done
7054 IFS="$lt_save_ifs"
7055 MAGIC_CMD="$lt_save_MAGIC_CMD"
7056 ;;
7057 esac
7058 fi
7059
7060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7061 if test -n "$MAGIC_CMD"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7063 $as_echo "$MAGIC_CMD" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069
7070
7071
7072
7073 if test -z "$lt_cv_path_MAGIC_CMD"; then
7074 if test -n "$ac_tool_prefix"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7076 $as_echo_n "checking for file... " >&6; }
7077 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 case $MAGIC_CMD in
7081 [\\/*] | ?:[\\/]*)
7082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7083 ;;
7084 *)
7085 lt_save_MAGIC_CMD="$MAGIC_CMD"
7086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7087 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7088 for ac_dir in $ac_dummy; do
7089 IFS="$lt_save_ifs"
7090 test -z "$ac_dir" && ac_dir=.
7091 if test -f $ac_dir/file; then
7092 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7093 if test -n "$file_magic_test_file"; then
7094 case $deplibs_check_method in
7095 "file_magic "*)
7096 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7098 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7099 $EGREP "$file_magic_regex" > /dev/null; then
7100 :
7101 else
7102 cat <<_LT_EOF 1>&2
7103
7104 *** Warning: the command libtool uses to detect shared libraries,
7105 *** $file_magic_cmd, produces output that libtool cannot recognize.
7106 *** The result is that libtool may fail to recognize shared libraries
7107 *** as such. This will affect the creation of libtool libraries that
7108 *** depend on shared libraries, but programs linked with such libtool
7109 *** libraries will work regardless of this problem. Nevertheless, you
7110 *** may want to report the problem to your system manager and/or to
7111 *** bug-libtool@gnu.org
7112
7113 _LT_EOF
7114 fi ;;
7115 esac
7116 fi
7117 break
7118 fi
7119 done
7120 IFS="$lt_save_ifs"
7121 MAGIC_CMD="$lt_save_MAGIC_CMD"
7122 ;;
7123 esac
7124 fi
7125
7126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7127 if test -n "$MAGIC_CMD"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7129 $as_echo "$MAGIC_CMD" >&6; }
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135
7136 else
7137 MAGIC_CMD=:
7138 fi
7139 fi
7140
7141 fi
7142 ;;
7143 esac
7144
7145 # Use C for the default configuration in the libtool script
7146
7147 lt_save_CC="$CC"
7148 ac_ext=c
7149 ac_cpp='$CPP $CPPFLAGS'
7150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7153
7154
7155 # Source file extension for C test sources.
7156 ac_ext=c
7157
7158 # Object file extension for compiled C test sources.
7159 objext=o
7160 objext=$objext
7161
7162 # Code to be used in simple compile tests
7163 lt_simple_compile_test_code="int some_variable = 0;"
7164
7165 # Code to be used in simple link tests
7166 lt_simple_link_test_code='int main(){return(0);}'
7167
7168
7169
7170
7171
7172
7173
7174 # If no C compiler was specified, use CC.
7175 LTCC=${LTCC-"$CC"}
7176
7177 # If no C compiler flags were specified, use CFLAGS.
7178 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7179
7180 # Allow CC to be a program name with arguments.
7181 compiler=$CC
7182
7183 # Save the default compiler, since it gets overwritten when the other
7184 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7185 compiler_DEFAULT=$CC
7186
7187 # save warnings/boilerplate of simple test code
7188 ac_outfile=conftest.$ac_objext
7189 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7191 _lt_compiler_boilerplate=`cat conftest.err`
7192 $RM conftest*
7193
7194 ac_outfile=conftest.$ac_objext
7195 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7197 _lt_linker_boilerplate=`cat conftest.err`
7198 $RM -r conftest*
7199
7200
7201 if test -n "$compiler"; then
7202
7203 lt_prog_compiler_no_builtin_flag=
7204
7205 if test "$GCC" = yes; then
7206 case $cc_basename in
7207 nvcc*)
7208 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7209 *)
7210 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7211 esac
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7214 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7215 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 lt_cv_prog_compiler_rtti_exceptions=no
7219 ac_outfile=conftest.$ac_objext
7220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7221 lt_compiler_flag="-fno-rtti -fno-exceptions"
7222 # Insert the option either (1) after the last *FLAGS variable, or
7223 # (2) before a word containing "conftest.", or (3) at the end.
7224 # Note that $ac_compile itself does not contain backslashes and begins
7225 # with a dollar sign (not a hyphen), so the echo should work correctly.
7226 # The option is referenced via a variable to avoid confusing sed.
7227 lt_compile=`echo "$ac_compile" | $SED \
7228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7230 -e 's:$: $lt_compiler_flag:'`
7231 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7232 (eval "$lt_compile" 2>conftest.err)
7233 ac_status=$?
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 if (exit $ac_status) && test -s "$ac_outfile"; then
7237 # The compiler can only warn and ignore the option if not recognized
7238 # So say no if there are warnings other than the usual output.
7239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7242 lt_cv_prog_compiler_rtti_exceptions=yes
7243 fi
7244 fi
7245 $RM conftest*
7246
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7249 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7250
7251 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7252 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7253 else
7254 :
7255 fi
7256
7257 fi
7258
7259
7260
7261
7262
7263
7264 lt_prog_compiler_wl=
7265 lt_prog_compiler_pic=
7266 lt_prog_compiler_static=
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7269 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7270
7271 if test "$GCC" = yes; then
7272 lt_prog_compiler_wl='-Wl,'
7273 lt_prog_compiler_static='-static'
7274
7275 case $host_os in
7276 aix*)
7277 # All AIX code is PIC.
7278 if test "$host_cpu" = ia64; then
7279 # AIX 5 now supports IA64 processor
7280 lt_prog_compiler_static='-Bstatic'
7281 fi
7282 ;;
7283
7284 amigaos*)
7285 case $host_cpu in
7286 powerpc)
7287 # see comment about AmigaOS4 .so support
7288 lt_prog_compiler_pic='-fPIC'
7289 ;;
7290 m68k)
7291 # FIXME: we need at least 68020 code to build shared libraries, but
7292 # adding the `-m68020' flag to GCC prevents building anything better,
7293 # like `-m68040'.
7294 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7295 ;;
7296 esac
7297 ;;
7298
7299 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7300 # PIC is the default for these OSes.
7301 ;;
7302
7303 mingw* | cygwin* | pw32* | os2* | cegcc*)
7304 # This hack is so that the source file can tell whether it is being
7305 # built for inclusion in a dll (and should export symbols for example).
7306 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7307 # (--disable-auto-import) libraries
7308 lt_prog_compiler_pic='-DDLL_EXPORT'
7309 ;;
7310
7311 darwin* | rhapsody*)
7312 # PIC is the default on this platform
7313 # Common symbols not allowed in MH_DYLIB files
7314 lt_prog_compiler_pic='-fno-common'
7315 ;;
7316
7317 haiku*)
7318 # PIC is the default for Haiku.
7319 # The "-static" flag exists, but is broken.
7320 lt_prog_compiler_static=
7321 ;;
7322
7323 hpux*)
7324 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7325 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7326 # sets the default TLS model and affects inlining.
7327 case $host_cpu in
7328 hppa*64*)
7329 # +Z the default
7330 ;;
7331 *)
7332 lt_prog_compiler_pic='-fPIC'
7333 ;;
7334 esac
7335 ;;
7336
7337 interix[3-9]*)
7338 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7339 # Instead, we relocate shared libraries at runtime.
7340 ;;
7341
7342 msdosdjgpp*)
7343 # Just because we use GCC doesn't mean we suddenly get shared libraries
7344 # on systems that don't support them.
7345 lt_prog_compiler_can_build_shared=no
7346 enable_shared=no
7347 ;;
7348
7349 *nto* | *qnx*)
7350 # QNX uses GNU C++, but need to define -shared option too, otherwise
7351 # it will coredump.
7352 lt_prog_compiler_pic='-fPIC -shared'
7353 ;;
7354
7355 sysv4*MP*)
7356 if test -d /usr/nec; then
7357 lt_prog_compiler_pic=-Kconform_pic
7358 fi
7359 ;;
7360
7361 *)
7362 lt_prog_compiler_pic='-fPIC'
7363 ;;
7364 esac
7365
7366 case $cc_basename in
7367 nvcc*) # Cuda Compiler Driver 2.2
7368 lt_prog_compiler_wl='-Xlinker '
7369 lt_prog_compiler_pic='-Xcompiler -fPIC'
7370 ;;
7371 esac
7372 else
7373 # PORTME Check for flag to pass linker flags through the system compiler.
7374 case $host_os in
7375 aix*)
7376 lt_prog_compiler_wl='-Wl,'
7377 if test "$host_cpu" = ia64; then
7378 # AIX 5 now supports IA64 processor
7379 lt_prog_compiler_static='-Bstatic'
7380 else
7381 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7382 fi
7383 ;;
7384
7385 mingw* | cygwin* | pw32* | os2* | cegcc*)
7386 # This hack is so that the source file can tell whether it is being
7387 # built for inclusion in a dll (and should export symbols for example).
7388 lt_prog_compiler_pic='-DDLL_EXPORT'
7389 ;;
7390
7391 hpux9* | hpux10* | hpux11*)
7392 lt_prog_compiler_wl='-Wl,'
7393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7394 # not for PA HP-UX.
7395 case $host_cpu in
7396 hppa*64*|ia64*)
7397 # +Z the default
7398 ;;
7399 *)
7400 lt_prog_compiler_pic='+Z'
7401 ;;
7402 esac
7403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7404 lt_prog_compiler_static='${wl}-a ${wl}archive'
7405 ;;
7406
7407 irix5* | irix6* | nonstopux*)
7408 lt_prog_compiler_wl='-Wl,'
7409 # PIC (with -KPIC) is the default.
7410 lt_prog_compiler_static='-non_shared'
7411 ;;
7412
7413 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7414 case $cc_basename in
7415 # old Intel for x86_64 which still supported -KPIC.
7416 ecc*)
7417 lt_prog_compiler_wl='-Wl,'
7418 lt_prog_compiler_pic='-KPIC'
7419 lt_prog_compiler_static='-static'
7420 ;;
7421 # icc used to be incompatible with GCC.
7422 # ICC 10 doesn't accept -KPIC any more.
7423 icc* | ifort*)
7424 lt_prog_compiler_wl='-Wl,'
7425 lt_prog_compiler_pic='-fPIC'
7426 lt_prog_compiler_static='-static'
7427 ;;
7428 # Lahey Fortran 8.1.
7429 lf95*)
7430 lt_prog_compiler_wl='-Wl,'
7431 lt_prog_compiler_pic='--shared'
7432 lt_prog_compiler_static='--static'
7433 ;;
7434 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7435 # Portland Group compilers (*not* the Pentium gcc compiler,
7436 # which looks to be a dead project)
7437 lt_prog_compiler_wl='-Wl,'
7438 lt_prog_compiler_pic='-fpic'
7439 lt_prog_compiler_static='-Bstatic'
7440 ;;
7441 ccc*)
7442 lt_prog_compiler_wl='-Wl,'
7443 # All Alpha code is PIC.
7444 lt_prog_compiler_static='-non_shared'
7445 ;;
7446 xl* | bgxl* | bgf* | mpixl*)
7447 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7448 lt_prog_compiler_wl='-Wl,'
7449 lt_prog_compiler_pic='-qpic'
7450 lt_prog_compiler_static='-qstaticlink'
7451 ;;
7452 *)
7453 case `$CC -V 2>&1 | sed 5q` in
7454 *Sun\ F* | *Sun*Fortran*)
7455 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7456 lt_prog_compiler_pic='-KPIC'
7457 lt_prog_compiler_static='-Bstatic'
7458 lt_prog_compiler_wl=''
7459 ;;
7460 *Sun\ C*)
7461 # Sun C 5.9
7462 lt_prog_compiler_pic='-KPIC'
7463 lt_prog_compiler_static='-Bstatic'
7464 lt_prog_compiler_wl='-Wl,'
7465 ;;
7466 esac
7467 ;;
7468 esac
7469 ;;
7470
7471 newsos6)
7472 lt_prog_compiler_pic='-KPIC'
7473 lt_prog_compiler_static='-Bstatic'
7474 ;;
7475
7476 *nto* | *qnx*)
7477 # QNX uses GNU C++, but need to define -shared option too, otherwise
7478 # it will coredump.
7479 lt_prog_compiler_pic='-fPIC -shared'
7480 ;;
7481
7482 osf3* | osf4* | osf5*)
7483 lt_prog_compiler_wl='-Wl,'
7484 # All OSF/1 code is PIC.
7485 lt_prog_compiler_static='-non_shared'
7486 ;;
7487
7488 rdos*)
7489 lt_prog_compiler_static='-non_shared'
7490 ;;
7491
7492 solaris*)
7493 lt_prog_compiler_pic='-KPIC'
7494 lt_prog_compiler_static='-Bstatic'
7495 case $cc_basename in
7496 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7497 lt_prog_compiler_wl='-Qoption ld ';;
7498 *)
7499 lt_prog_compiler_wl='-Wl,';;
7500 esac
7501 ;;
7502
7503 sunos4*)
7504 lt_prog_compiler_wl='-Qoption ld '
7505 lt_prog_compiler_pic='-PIC'
7506 lt_prog_compiler_static='-Bstatic'
7507 ;;
7508
7509 sysv4 | sysv4.2uw2* | sysv4.3*)
7510 lt_prog_compiler_wl='-Wl,'
7511 lt_prog_compiler_pic='-KPIC'
7512 lt_prog_compiler_static='-Bstatic'
7513 ;;
7514
7515 sysv4*MP*)
7516 if test -d /usr/nec ;then
7517 lt_prog_compiler_pic='-Kconform_pic'
7518 lt_prog_compiler_static='-Bstatic'
7519 fi
7520 ;;
7521
7522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7523 lt_prog_compiler_wl='-Wl,'
7524 lt_prog_compiler_pic='-KPIC'
7525 lt_prog_compiler_static='-Bstatic'
7526 ;;
7527
7528 unicos*)
7529 lt_prog_compiler_wl='-Wl,'
7530 lt_prog_compiler_can_build_shared=no
7531 ;;
7532
7533 uts4*)
7534 lt_prog_compiler_pic='-pic'
7535 lt_prog_compiler_static='-Bstatic'
7536 ;;
7537
7538 *)
7539 lt_prog_compiler_can_build_shared=no
7540 ;;
7541 esac
7542 fi
7543
7544 case $host_os in
7545 # For platforms which do not support PIC, -DPIC is meaningless:
7546 *djgpp*)
7547 lt_prog_compiler_pic=
7548 ;;
7549 *)
7550 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7551 ;;
7552 esac
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7554 $as_echo "$lt_prog_compiler_pic" >&6; }
7555
7556
7557
7558
7559
7560
7561 #
7562 # Check to make sure the PIC flag actually works.
7563 #
7564 if test -n "$lt_prog_compiler_pic"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7566 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7567 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 lt_cv_prog_compiler_pic_works=no
7571 ac_outfile=conftest.$ac_objext
7572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7573 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7574 # Insert the option either (1) after the last *FLAGS variable, or
7575 # (2) before a word containing "conftest.", or (3) at the end.
7576 # Note that $ac_compile itself does not contain backslashes and begins
7577 # with a dollar sign (not a hyphen), so the echo should work correctly.
7578 # The option is referenced via a variable to avoid confusing sed.
7579 lt_compile=`echo "$ac_compile" | $SED \
7580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582 -e 's:$: $lt_compiler_flag:'`
7583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7584 (eval "$lt_compile" 2>conftest.err)
7585 ac_status=$?
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 if (exit $ac_status) && test -s "$ac_outfile"; then
7589 # The compiler can only warn and ignore the option if not recognized
7590 # So say no if there are warnings other than the usual output.
7591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7594 lt_cv_prog_compiler_pic_works=yes
7595 fi
7596 fi
7597 $RM conftest*
7598
7599 fi
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7601 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7602
7603 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7604 case $lt_prog_compiler_pic in
7605 "" | " "*) ;;
7606 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7607 esac
7608 else
7609 lt_prog_compiler_pic=
7610 lt_prog_compiler_can_build_shared=no
7611 fi
7612
7613 fi
7614
7615
7616
7617
7618
7619
7620 #
7621 # Check to make sure the static flag actually works.
7622 #
7623 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7625 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7626 if ${lt_cv_prog_compiler_static_works+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 lt_cv_prog_compiler_static_works=no
7630 save_LDFLAGS="$LDFLAGS"
7631 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7632 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7634 # The linker can only warn and ignore the option if not recognized
7635 # So say no if there are warnings
7636 if test -s conftest.err; then
7637 # Append any errors to the config.log.
7638 cat conftest.err 1>&5
7639 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7641 if diff conftest.exp conftest.er2 >/dev/null; then
7642 lt_cv_prog_compiler_static_works=yes
7643 fi
7644 else
7645 lt_cv_prog_compiler_static_works=yes
7646 fi
7647 fi
7648 $RM -r conftest*
7649 LDFLAGS="$save_LDFLAGS"
7650
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7653 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7654
7655 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7656 :
7657 else
7658 lt_prog_compiler_static=
7659 fi
7660
7661
7662
7663
7664
7665
7666
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7669 if ${lt_cv_prog_compiler_c_o+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 lt_cv_prog_compiler_c_o=no
7673 $RM -r conftest 2>/dev/null
7674 mkdir conftest
7675 cd conftest
7676 mkdir out
7677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7678
7679 lt_compiler_flag="-o out/conftest2.$ac_objext"
7680 # Insert the option either (1) after the last *FLAGS variable, or
7681 # (2) before a word containing "conftest.", or (3) at the end.
7682 # Note that $ac_compile itself does not contain backslashes and begins
7683 # with a dollar sign (not a hyphen), so the echo should work correctly.
7684 lt_compile=`echo "$ac_compile" | $SED \
7685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7687 -e 's:$: $lt_compiler_flag:'`
7688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7689 (eval "$lt_compile" 2>out/conftest.err)
7690 ac_status=$?
7691 cat out/conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7694 then
7695 # The compiler can only warn and ignore the option if not recognized
7696 # So say no if there are warnings
7697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7700 lt_cv_prog_compiler_c_o=yes
7701 fi
7702 fi
7703 chmod u+w . 2>&5
7704 $RM conftest*
7705 # SGI C++ compiler will create directory out/ii_files/ for
7706 # template instantiation
7707 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7708 $RM out/* && rmdir out
7709 cd ..
7710 $RM -r conftest
7711 $RM conftest*
7712
7713 fi
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7715 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7716
7717
7718
7719
7720
7721
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7723 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7724 if ${lt_cv_prog_compiler_c_o+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 lt_cv_prog_compiler_c_o=no
7728 $RM -r conftest 2>/dev/null
7729 mkdir conftest
7730 cd conftest
7731 mkdir out
7732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7733
7734 lt_compiler_flag="-o out/conftest2.$ac_objext"
7735 # Insert the option either (1) after the last *FLAGS variable, or
7736 # (2) before a word containing "conftest.", or (3) at the end.
7737 # Note that $ac_compile itself does not contain backslashes and begins
7738 # with a dollar sign (not a hyphen), so the echo should work correctly.
7739 lt_compile=`echo "$ac_compile" | $SED \
7740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7742 -e 's:$: $lt_compiler_flag:'`
7743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7744 (eval "$lt_compile" 2>out/conftest.err)
7745 ac_status=$?
7746 cat out/conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7749 then
7750 # The compiler can only warn and ignore the option if not recognized
7751 # So say no if there are warnings
7752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7755 lt_cv_prog_compiler_c_o=yes
7756 fi
7757 fi
7758 chmod u+w . 2>&5
7759 $RM conftest*
7760 # SGI C++ compiler will create directory out/ii_files/ for
7761 # template instantiation
7762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7763 $RM out/* && rmdir out
7764 cd ..
7765 $RM -r conftest
7766 $RM conftest*
7767
7768 fi
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7770 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7771
7772
7773
7774
7775 hard_links="nottested"
7776 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7777 # do not overwrite the value of need_locks provided by the user
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7779 $as_echo_n "checking if we can lock with hard links... " >&6; }
7780 hard_links=yes
7781 $RM conftest*
7782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7783 touch conftest.a
7784 ln conftest.a conftest.b 2>&5 || hard_links=no
7785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7787 $as_echo "$hard_links" >&6; }
7788 if test "$hard_links" = no; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7790 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7791 need_locks=warn
7792 fi
7793 else
7794 need_locks=no
7795 fi
7796
7797
7798
7799
7800
7801
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7803 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7804
7805 runpath_var=
7806 allow_undefined_flag=
7807 always_export_symbols=no
7808 archive_cmds=
7809 archive_expsym_cmds=
7810 compiler_needs_object=no
7811 enable_shared_with_static_runtimes=no
7812 export_dynamic_flag_spec=
7813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7814 hardcode_automatic=no
7815 hardcode_direct=no
7816 hardcode_direct_absolute=no
7817 hardcode_libdir_flag_spec=
7818 hardcode_libdir_flag_spec_ld=
7819 hardcode_libdir_separator=
7820 hardcode_minus_L=no
7821 hardcode_shlibpath_var=unsupported
7822 inherit_rpath=no
7823 link_all_deplibs=unknown
7824 module_cmds=
7825 module_expsym_cmds=
7826 old_archive_from_new_cmds=
7827 old_archive_from_expsyms_cmds=
7828 thread_safe_flag_spec=
7829 whole_archive_flag_spec=
7830 # include_expsyms should be a list of space-separated symbols to be *always*
7831 # included in the symbol list
7832 include_expsyms=
7833 # exclude_expsyms can be an extended regexp of symbols to exclude
7834 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7835 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7836 # as well as any symbol that contains `d'.
7837 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7838 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7839 # platforms (ab)use it in PIC code, but their linkers get confused if
7840 # the symbol is explicitly referenced. Since portable code cannot
7841 # rely on this symbol name, it's probably fine to never include it in
7842 # preloaded symbol tables.
7843 # Exclude shared library initialization/finalization symbols.
7844 extract_expsyms_cmds=
7845
7846 case $host_os in
7847 cygwin* | mingw* | pw32* | cegcc*)
7848 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7849 # When not using gcc, we currently assume that we are using
7850 # Microsoft Visual C++.
7851 if test "$GCC" != yes; then
7852 with_gnu_ld=no
7853 fi
7854 ;;
7855 interix*)
7856 # we just hope/assume this is gcc and not c89 (= MSVC++)
7857 with_gnu_ld=yes
7858 ;;
7859 openbsd*)
7860 with_gnu_ld=no
7861 ;;
7862 esac
7863
7864 ld_shlibs=yes
7865
7866 # On some targets, GNU ld is compatible enough with the native linker
7867 # that we're better off using the native interface for both.
7868 lt_use_gnu_ld_interface=no
7869 if test "$with_gnu_ld" = yes; then
7870 case $host_os in
7871 aix*)
7872 # The AIX port of GNU ld has always aspired to compatibility
7873 # with the native linker. However, as the warning in the GNU ld
7874 # block says, versions before 2.19.5* couldn't really create working
7875 # shared libraries, regardless of the interface used.
7876 case `$LD -v 2>&1` in
7877 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7878 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7879 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7880 *)
7881 lt_use_gnu_ld_interface=yes
7882 ;;
7883 esac
7884 ;;
7885 *)
7886 lt_use_gnu_ld_interface=yes
7887 ;;
7888 esac
7889 fi
7890
7891 if test "$lt_use_gnu_ld_interface" = yes; then
7892 # If archive_cmds runs LD, not CC, wlarc should be empty
7893 wlarc='${wl}'
7894
7895 # Set some defaults for GNU ld with shared library support. These
7896 # are reset later if shared libraries are not supported. Putting them
7897 # here allows them to be overridden if necessary.
7898 runpath_var=LD_RUN_PATH
7899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7900 export_dynamic_flag_spec='${wl}--export-dynamic'
7901 # ancient GNU ld didn't support --whole-archive et. al.
7902 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7903 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7904 else
7905 whole_archive_flag_spec=
7906 fi
7907 supports_anon_versioning=no
7908 case `$LD -v 2>&1` in
7909 *GNU\ gold*) supports_anon_versioning=yes ;;
7910 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7911 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7912 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7913 *\ 2.11.*) ;; # other 2.11 versions
7914 *) supports_anon_versioning=yes ;;
7915 esac
7916
7917 # See if GNU ld supports shared libraries.
7918 case $host_os in
7919 aix[3-9]*)
7920 # On AIX/PPC, the GNU linker is very broken
7921 if test "$host_cpu" != ia64; then
7922 ld_shlibs=no
7923 cat <<_LT_EOF 1>&2
7924
7925 *** Warning: the GNU linker, at least up to release 2.19, is reported
7926 *** to be unable to reliably create shared libraries on AIX.
7927 *** Therefore, libtool is disabling shared libraries support. If you
7928 *** really care for shared libraries, you may want to install binutils
7929 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7930 *** You will then need to restart the configuration process.
7931
7932 _LT_EOF
7933 fi
7934 ;;
7935
7936 amigaos*)
7937 case $host_cpu in
7938 powerpc)
7939 # see comment about AmigaOS4 .so support
7940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7941 archive_expsym_cmds=''
7942 ;;
7943 m68k)
7944 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)'
7945 hardcode_libdir_flag_spec='-L$libdir'
7946 hardcode_minus_L=yes
7947 ;;
7948 esac
7949 ;;
7950
7951 beos*)
7952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7953 allow_undefined_flag=unsupported
7954 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7955 # support --undefined. This deserves some investigation. FIXME
7956 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7957 else
7958 ld_shlibs=no
7959 fi
7960 ;;
7961
7962 cygwin* | mingw* | pw32* | cegcc*)
7963 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7964 # as there is no search path for DLLs.
7965 hardcode_libdir_flag_spec='-L$libdir'
7966 export_dynamic_flag_spec='${wl}--export-all-symbols'
7967 allow_undefined_flag=unsupported
7968 always_export_symbols=no
7969 enable_shared_with_static_runtimes=yes
7970 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7971
7972 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7974 # If the export-symbols file already is a .def file (1st line
7975 # is EXPORTS), use it as is; otherwise, prepend...
7976 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7977 cp $export_symbols $output_objdir/$soname.def;
7978 else
7979 echo EXPORTS > $output_objdir/$soname.def;
7980 cat $export_symbols >> $output_objdir/$soname.def;
7981 fi~
7982 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7983 else
7984 ld_shlibs=no
7985 fi
7986 ;;
7987
7988 haiku*)
7989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7990 link_all_deplibs=yes
7991 ;;
7992
7993 interix[3-9]*)
7994 hardcode_direct=no
7995 hardcode_shlibpath_var=no
7996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7997 export_dynamic_flag_spec='${wl}-E'
7998 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7999 # Instead, shared libraries are loaded at an image base (0x10000000 by
8000 # default) and relocated if they conflict, which is a slow very memory
8001 # consuming and fragmenting process. To avoid this, we pick a random,
8002 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8003 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8004 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8005 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'
8006 ;;
8007
8008 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8009 tmp_diet=no
8010 if test "$host_os" = linux-dietlibc; then
8011 case $cc_basename in
8012 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8013 esac
8014 fi
8015 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8016 && test "$tmp_diet" = no
8017 then
8018 tmp_addflag=
8019 tmp_sharedflag='-shared'
8020 case $cc_basename,$host_cpu in
8021 pgcc*) # Portland Group C compiler
8022 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'
8023 tmp_addflag=' $pic_flag'
8024 ;;
8025 pgf77* | pgf90* | pgf95* | pgfortran*)
8026 # Portland Group f77 and f90 compilers
8027 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'
8028 tmp_addflag=' $pic_flag -Mnomain' ;;
8029 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8030 tmp_addflag=' -i_dynamic' ;;
8031 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8032 tmp_addflag=' -i_dynamic -nofor_main' ;;
8033 ifc* | ifort*) # Intel Fortran compiler
8034 tmp_addflag=' -nofor_main' ;;
8035 lf95*) # Lahey Fortran 8.1
8036 whole_archive_flag_spec=
8037 tmp_sharedflag='--shared' ;;
8038 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8039 tmp_sharedflag='-qmkshrobj'
8040 tmp_addflag= ;;
8041 nvcc*) # Cuda Compiler Driver 2.2
8042 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'
8043 compiler_needs_object=yes
8044 ;;
8045 esac
8046 case `$CC -V 2>&1 | sed 5q` in
8047 *Sun\ C*) # Sun C 5.9
8048 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'
8049 compiler_needs_object=yes
8050 tmp_sharedflag='-G' ;;
8051 *Sun\ F*) # Sun Fortran 8.3
8052 tmp_sharedflag='-G' ;;
8053 esac
8054 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8055
8056 if test "x$supports_anon_versioning" = xyes; then
8057 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8059 echo "local: *; };" >> $output_objdir/$libname.ver~
8060 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8061 fi
8062
8063 case $cc_basename in
8064 xlf* | bgf* | bgxlf* | mpixlf*)
8065 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8066 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8067 hardcode_libdir_flag_spec=
8068 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8069 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8070 if test "x$supports_anon_versioning" = xyes; then
8071 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8073 echo "local: *; };" >> $output_objdir/$libname.ver~
8074 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8075 fi
8076 ;;
8077 esac
8078 else
8079 ld_shlibs=no
8080 fi
8081 ;;
8082
8083 netbsd*)
8084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8085 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8086 wlarc=
8087 else
8088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8090 fi
8091 ;;
8092
8093 solaris*)
8094 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8095 ld_shlibs=no
8096 cat <<_LT_EOF 1>&2
8097
8098 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8099 *** create shared libraries on Solaris systems. Therefore, libtool
8100 *** is disabling shared libraries support. We urge you to upgrade GNU
8101 *** binutils to release 2.9.1 or newer. Another option is to modify
8102 *** your PATH or compiler configuration so that the native linker is
8103 *** used, and then restart.
8104
8105 _LT_EOF
8106 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8109 else
8110 ld_shlibs=no
8111 fi
8112 ;;
8113
8114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8115 case `$LD -v 2>&1` in
8116 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8117 ld_shlibs=no
8118 cat <<_LT_EOF 1>&2
8119
8120 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8121 *** reliably create shared libraries on SCO systems. Therefore, libtool
8122 *** is disabling shared libraries support. We urge you to upgrade GNU
8123 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8124 *** your PATH or compiler configuration so that the native linker is
8125 *** used, and then restart.
8126
8127 _LT_EOF
8128 ;;
8129 *)
8130 # For security reasons, it is highly recommended that you always
8131 # use absolute paths for naming shared libraries, and exclude the
8132 # DT_RUNPATH tag from executables and libraries. But doing so
8133 # requires that you compile everything twice, which is a pain.
8134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8138 else
8139 ld_shlibs=no
8140 fi
8141 ;;
8142 esac
8143 ;;
8144
8145 sunos4*)
8146 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8147 wlarc=
8148 hardcode_direct=yes
8149 hardcode_shlibpath_var=no
8150 ;;
8151
8152 *)
8153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8156 else
8157 ld_shlibs=no
8158 fi
8159 ;;
8160 esac
8161
8162 if test "$ld_shlibs" = no; then
8163 runpath_var=
8164 hardcode_libdir_flag_spec=
8165 export_dynamic_flag_spec=
8166 whole_archive_flag_spec=
8167 fi
8168 else
8169 # PORTME fill in a description of your system's linker (not GNU ld)
8170 case $host_os in
8171 aix3*)
8172 allow_undefined_flag=unsupported
8173 always_export_symbols=yes
8174 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'
8175 # Note: this linker hardcodes the directories in LIBPATH if there
8176 # are no directories specified by -L.
8177 hardcode_minus_L=yes
8178 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8179 # Neither direct hardcoding nor static linking is supported with a
8180 # broken collect2.
8181 hardcode_direct=unsupported
8182 fi
8183 ;;
8184
8185 aix[4-9]*)
8186 if test "$host_cpu" = ia64; then
8187 # On IA64, the linker does run time linking by default, so we don't
8188 # have to do anything special.
8189 aix_use_runtimelinking=no
8190 exp_sym_flag='-Bexport'
8191 no_entry_flag=""
8192 else
8193 # If we're using GNU nm, then we don't want the "-C" option.
8194 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8195 # Also, AIX nm treats weak defined symbols like other global
8196 # defined symbols, whereas GNU nm marks them as "W".
8197 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8198 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8199 else
8200 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8201 fi
8202 aix_use_runtimelinking=no
8203
8204 # Test if we are trying to use run time linking or normal
8205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8206 # need to do runtime linking.
8207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8208 for ld_flag in $LDFLAGS; do
8209 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8210 aix_use_runtimelinking=yes
8211 break
8212 fi
8213 done
8214 ;;
8215 esac
8216
8217 exp_sym_flag='-bexport'
8218 no_entry_flag='-bnoentry'
8219 fi
8220
8221 # When large executables or shared objects are built, AIX ld can
8222 # have problems creating the table of contents. If linking a library
8223 # or program results in "error TOC overflow" add -mminimal-toc to
8224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8226
8227 archive_cmds=''
8228 hardcode_direct=yes
8229 hardcode_direct_absolute=yes
8230 hardcode_libdir_separator=':'
8231 link_all_deplibs=yes
8232 file_list_spec='${wl}-f,'
8233
8234 if test "$GCC" = yes; then
8235 case $host_os in aix4.[012]|aix4.[012].*)
8236 # We only want to do this on AIX 4.2 and lower, the check
8237 # below for broken collect2 doesn't work under 4.3+
8238 collect2name=`${CC} -print-prog-name=collect2`
8239 if test -f "$collect2name" &&
8240 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8241 then
8242 # We have reworked collect2
8243 :
8244 else
8245 # We have old collect2
8246 hardcode_direct=unsupported
8247 # It fails to find uninstalled libraries when the uninstalled
8248 # path is not listed in the libpath. Setting hardcode_minus_L
8249 # to unsupported forces relinking
8250 hardcode_minus_L=yes
8251 hardcode_libdir_flag_spec='-L$libdir'
8252 hardcode_libdir_separator=
8253 fi
8254 ;;
8255 esac
8256 shared_flag='-shared'
8257 if test "$aix_use_runtimelinking" = yes; then
8258 shared_flag="$shared_flag "'${wl}-G'
8259 fi
8260 else
8261 # not using gcc
8262 if test "$host_cpu" = ia64; then
8263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8264 # chokes on -Wl,-G. The following line is correct:
8265 shared_flag='-G'
8266 else
8267 if test "$aix_use_runtimelinking" = yes; then
8268 shared_flag='${wl}-G'
8269 else
8270 shared_flag='${wl}-bM:SRE'
8271 fi
8272 fi
8273 fi
8274
8275 export_dynamic_flag_spec='${wl}-bexpall'
8276 # It seems that -bexpall does not export symbols beginning with
8277 # underscore (_), so it is better to generate a list of symbols to export.
8278 always_export_symbols=yes
8279 if test "$aix_use_runtimelinking" = yes; then
8280 # Warning - without using the other runtime loading flags (-brtl),
8281 # -berok will link without error, but may produce a broken library.
8282 allow_undefined_flag='-berok'
8283 # Determine the default libpath from the value encoded in an
8284 # empty executable.
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287
8288 int
8289 main ()
8290 {
8291
8292 ;
8293 return 0;
8294 }
8295 _ACEOF
8296 if ac_fn_c_try_link "$LINENO"; then :
8297
8298 lt_aix_libpath_sed='
8299 /Import File Strings/,/^$/ {
8300 /^0/ {
8301 s/^0 *\(.*\)$/\1/
8302 p
8303 }
8304 }'
8305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8306 # Check for a 64-bit object if we didn't find anything.
8307 if test -z "$aix_libpath"; then
8308 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8309 fi
8310 fi
8311 rm -f core conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8314
8315 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8316 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8317 else
8318 if test "$host_cpu" = ia64; then
8319 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8320 allow_undefined_flag="-z nodefs"
8321 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"
8322 else
8323 # Determine the default libpath from the value encoded in an
8324 # empty executable.
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327
8328 int
8329 main ()
8330 {
8331
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 if ac_fn_c_try_link "$LINENO"; then :
8337
8338 lt_aix_libpath_sed='
8339 /Import File Strings/,/^$/ {
8340 /^0/ {
8341 s/^0 *\(.*\)$/\1/
8342 p
8343 }
8344 }'
8345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8346 # Check for a 64-bit object if we didn't find anything.
8347 if test -z "$aix_libpath"; then
8348 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8349 fi
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8354
8355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8356 # Warning - without using the other run time loading flags,
8357 # -berok will link without error, but may produce a broken library.
8358 no_undefined_flag=' ${wl}-bernotok'
8359 allow_undefined_flag=' ${wl}-berok'
8360 if test "$with_gnu_ld" = yes; then
8361 # We only use this code for GNU lds that support --whole-archive.
8362 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8363 else
8364 # Exported symbols can be pulled into shared objects from archives
8365 whole_archive_flag_spec='$convenience'
8366 fi
8367 archive_cmds_need_lc=yes
8368 # This is similar to how AIX traditionally builds its shared libraries.
8369 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8370 fi
8371 fi
8372 ;;
8373
8374 amigaos*)
8375 case $host_cpu in
8376 powerpc)
8377 # see comment about AmigaOS4 .so support
8378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8379 archive_expsym_cmds=''
8380 ;;
8381 m68k)
8382 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)'
8383 hardcode_libdir_flag_spec='-L$libdir'
8384 hardcode_minus_L=yes
8385 ;;
8386 esac
8387 ;;
8388
8389 bsdi[45]*)
8390 export_dynamic_flag_spec=-rdynamic
8391 ;;
8392
8393 cygwin* | mingw* | pw32* | cegcc*)
8394 # When not using gcc, we currently assume that we are using
8395 # Microsoft Visual C++.
8396 # hardcode_libdir_flag_spec is actually meaningless, as there is
8397 # no search path for DLLs.
8398 hardcode_libdir_flag_spec=' '
8399 allow_undefined_flag=unsupported
8400 # Tell ltmain to make .lib files, not .a files.
8401 libext=lib
8402 # Tell ltmain to make .dll files, not .so files.
8403 shrext_cmds=".dll"
8404 # FIXME: Setting linknames here is a bad hack.
8405 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8406 # The linker will automatically build a .lib file if we build a DLL.
8407 old_archive_from_new_cmds='true'
8408 # FIXME: Should let the user specify the lib program.
8409 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8410 fix_srcfile_path='`cygpath -w "$srcfile"`'
8411 enable_shared_with_static_runtimes=yes
8412 ;;
8413
8414 darwin* | rhapsody*)
8415
8416
8417 archive_cmds_need_lc=no
8418 hardcode_direct=no
8419 hardcode_automatic=yes
8420 hardcode_shlibpath_var=unsupported
8421 if test "$lt_cv_ld_force_load" = "yes"; then
8422 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\"`'
8423 else
8424 whole_archive_flag_spec=''
8425 fi
8426 link_all_deplibs=yes
8427 allow_undefined_flag="$_lt_dar_allow_undefined"
8428 case $cc_basename in
8429 ifort*) _lt_dar_can_shared=yes ;;
8430 *) _lt_dar_can_shared=$GCC ;;
8431 esac
8432 if test "$_lt_dar_can_shared" = "yes"; then
8433 output_verbose_link_cmd=func_echo_all
8434 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8435 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8436 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}"
8437 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}"
8438
8439 else
8440 ld_shlibs=no
8441 fi
8442
8443 ;;
8444
8445 dgux*)
8446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_shlibpath_var=no
8449 ;;
8450
8451 freebsd1*)
8452 ld_shlibs=no
8453 ;;
8454
8455 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8456 # support. Future versions do this automatically, but an explicit c++rt0.o
8457 # does not break anything, and helps significantly (at the cost of a little
8458 # extra space).
8459 freebsd2.2*)
8460 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8461 hardcode_libdir_flag_spec='-R$libdir'
8462 hardcode_direct=yes
8463 hardcode_shlibpath_var=no
8464 ;;
8465
8466 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8467 freebsd2*)
8468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_direct=yes
8470 hardcode_minus_L=yes
8471 hardcode_shlibpath_var=no
8472 ;;
8473
8474 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8475 freebsd* | dragonfly*)
8476 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8477 hardcode_libdir_flag_spec='-R$libdir'
8478 hardcode_direct=yes
8479 hardcode_shlibpath_var=no
8480 ;;
8481
8482 hpux9*)
8483 if test "$GCC" = yes; then
8484 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8485 else
8486 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8487 fi
8488 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8489 hardcode_libdir_separator=:
8490 hardcode_direct=yes
8491
8492 # hardcode_minus_L: Not really in the search PATH,
8493 # but as the default location of the library.
8494 hardcode_minus_L=yes
8495 export_dynamic_flag_spec='${wl}-E'
8496 ;;
8497
8498 hpux10*)
8499 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8500 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8501 else
8502 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8503 fi
8504 if test "$with_gnu_ld" = no; then
8505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8506 hardcode_libdir_flag_spec_ld='+b $libdir'
8507 hardcode_libdir_separator=:
8508 hardcode_direct=yes
8509 hardcode_direct_absolute=yes
8510 export_dynamic_flag_spec='${wl}-E'
8511 # hardcode_minus_L: Not really in the search PATH,
8512 # but as the default location of the library.
8513 hardcode_minus_L=yes
8514 fi
8515 ;;
8516
8517 hpux11*)
8518 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8519 case $host_cpu in
8520 hppa*64*)
8521 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8522 ;;
8523 ia64*)
8524 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8525 ;;
8526 *)
8527 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8528 ;;
8529 esac
8530 else
8531 case $host_cpu in
8532 hppa*64*)
8533 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8534 ;;
8535 ia64*)
8536 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8537 ;;
8538 *)
8539
8540 # Older versions of the 11.00 compiler do not understand -b yet
8541 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8543 $as_echo_n "checking if $CC understands -b... " >&6; }
8544 if ${lt_cv_prog_compiler__b+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 lt_cv_prog_compiler__b=no
8548 save_LDFLAGS="$LDFLAGS"
8549 LDFLAGS="$LDFLAGS -b"
8550 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8552 # The linker can only warn and ignore the option if not recognized
8553 # So say no if there are warnings
8554 if test -s conftest.err; then
8555 # Append any errors to the config.log.
8556 cat conftest.err 1>&5
8557 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8559 if diff conftest.exp conftest.er2 >/dev/null; then
8560 lt_cv_prog_compiler__b=yes
8561 fi
8562 else
8563 lt_cv_prog_compiler__b=yes
8564 fi
8565 fi
8566 $RM -r conftest*
8567 LDFLAGS="$save_LDFLAGS"
8568
8569 fi
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8571 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8572
8573 if test x"$lt_cv_prog_compiler__b" = xyes; then
8574 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8575 else
8576 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8577 fi
8578
8579 ;;
8580 esac
8581 fi
8582 if test "$with_gnu_ld" = no; then
8583 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8584 hardcode_libdir_separator=:
8585
8586 case $host_cpu in
8587 hppa*64*|ia64*)
8588 hardcode_direct=no
8589 hardcode_shlibpath_var=no
8590 ;;
8591 *)
8592 hardcode_direct=yes
8593 hardcode_direct_absolute=yes
8594 export_dynamic_flag_spec='${wl}-E'
8595
8596 # hardcode_minus_L: Not really in the search PATH,
8597 # but as the default location of the library.
8598 hardcode_minus_L=yes
8599 ;;
8600 esac
8601 fi
8602 ;;
8603
8604 irix5* | irix6* | nonstopux*)
8605 if test "$GCC" = yes; then
8606 archive_cmds='$CC -shared $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'
8607 # Try to use the -exported_symbol ld option, if it does not
8608 # work, assume that -exports_file does not work either and
8609 # implicitly export all symbols.
8610 save_LDFLAGS="$LDFLAGS"
8611 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 int foo(void) {}
8615 _ACEOF
8616 if ac_fn_c_try_link "$LINENO"; then :
8617 archive_expsym_cmds='$CC -shared $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'
8618
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LDFLAGS="$save_LDFLAGS"
8623 else
8624 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'
8625 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'
8626 fi
8627 archive_cmds_need_lc='no'
8628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8629 hardcode_libdir_separator=:
8630 inherit_rpath=yes
8631 link_all_deplibs=yes
8632 ;;
8633
8634 netbsd*)
8635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8637 else
8638 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8639 fi
8640 hardcode_libdir_flag_spec='-R$libdir'
8641 hardcode_direct=yes
8642 hardcode_shlibpath_var=no
8643 ;;
8644
8645 newsos6)
8646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647 hardcode_direct=yes
8648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649 hardcode_libdir_separator=:
8650 hardcode_shlibpath_var=no
8651 ;;
8652
8653 *nto* | *qnx*)
8654 ;;
8655
8656 openbsd*)
8657 if test -f /usr/libexec/ld.so; then
8658 hardcode_direct=yes
8659 hardcode_shlibpath_var=no
8660 hardcode_direct_absolute=yes
8661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8665 export_dynamic_flag_spec='${wl}-E'
8666 else
8667 case $host_os in
8668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_libdir_flag_spec='-R$libdir'
8671 ;;
8672 *)
8673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8675 ;;
8676 esac
8677 fi
8678 else
8679 ld_shlibs=no
8680 fi
8681 ;;
8682
8683 os2*)
8684 hardcode_libdir_flag_spec='-L$libdir'
8685 hardcode_minus_L=yes
8686 allow_undefined_flag=unsupported
8687 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8688 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8689 ;;
8690
8691 osf3*)
8692 if test "$GCC" = yes; then
8693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8694 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'
8695 else
8696 allow_undefined_flag=' -expect_unresolved \*'
8697 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'
8698 fi
8699 archive_cmds_need_lc='no'
8700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8701 hardcode_libdir_separator=:
8702 ;;
8703
8704 osf4* | osf5*) # as osf3* with the addition of -msym flag
8705 if test "$GCC" = yes; then
8706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8707 archive_cmds='$CC -shared${allow_undefined_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'
8708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709 else
8710 allow_undefined_flag=' -expect_unresolved \*'
8711 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'
8712 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~
8713 $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'
8714
8715 # Both c and cxx compiler support -rpath directly
8716 hardcode_libdir_flag_spec='-rpath $libdir'
8717 fi
8718 archive_cmds_need_lc='no'
8719 hardcode_libdir_separator=:
8720 ;;
8721
8722 solaris*)
8723 no_undefined_flag=' -z defs'
8724 if test "$GCC" = yes; then
8725 wlarc='${wl}'
8726 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8728 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8729 else
8730 case `$CC -V 2>&1` in
8731 *"Compilers 5.0"*)
8732 wlarc=''
8733 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8735 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8736 ;;
8737 *)
8738 wlarc='${wl}'
8739 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8740 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8741 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8742 ;;
8743 esac
8744 fi
8745 hardcode_libdir_flag_spec='-R$libdir'
8746 hardcode_shlibpath_var=no
8747 case $host_os in
8748 solaris2.[0-5] | solaris2.[0-5].*) ;;
8749 *)
8750 # The compiler driver will combine and reorder linker options,
8751 # but understands `-z linker_flag'. GCC discards it without `$wl',
8752 # but is careful enough not to reorder.
8753 # Supported since Solaris 2.6 (maybe 2.5.1?)
8754 if test "$GCC" = yes; then
8755 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8756 else
8757 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8758 fi
8759 ;;
8760 esac
8761 link_all_deplibs=yes
8762 ;;
8763
8764 sunos4*)
8765 if test "x$host_vendor" = xsequent; then
8766 # Use $CC to link under sequent, because it throws in some extra .o
8767 # files that make .init and .fini sections work.
8768 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8769 else
8770 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8771 fi
8772 hardcode_libdir_flag_spec='-L$libdir'
8773 hardcode_direct=yes
8774 hardcode_minus_L=yes
8775 hardcode_shlibpath_var=no
8776 ;;
8777
8778 sysv4)
8779 case $host_vendor in
8780 sni)
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_direct=yes # is this really true???
8783 ;;
8784 siemens)
8785 ## LD is ld it makes a PLAMLIB
8786 ## CC just makes a GrossModule.
8787 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8788 reload_cmds='$CC -r -o $output$reload_objs'
8789 hardcode_direct=no
8790 ;;
8791 motorola)
8792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8793 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8794 ;;
8795 esac
8796 runpath_var='LD_RUN_PATH'
8797 hardcode_shlibpath_var=no
8798 ;;
8799
8800 sysv4.3*)
8801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802 hardcode_shlibpath_var=no
8803 export_dynamic_flag_spec='-Bexport'
8804 ;;
8805
8806 sysv4*MP*)
8807 if test -d /usr/nec; then
8808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_shlibpath_var=no
8810 runpath_var=LD_RUN_PATH
8811 hardcode_runpath_var=yes
8812 ld_shlibs=yes
8813 fi
8814 ;;
8815
8816 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8817 no_undefined_flag='${wl}-z,text'
8818 archive_cmds_need_lc=no
8819 hardcode_shlibpath_var=no
8820 runpath_var='LD_RUN_PATH'
8821
8822 if test "$GCC" = yes; then
8823 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825 else
8826 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 fi
8829 ;;
8830
8831 sysv5* | sco3.2v5* | sco5v6*)
8832 # Note: We can NOT use -z defs as we might desire, because we do not
8833 # link with -lc, and that would cause any symbols used from libc to
8834 # always be unresolved, which means just about no library would
8835 # ever link correctly. If we're not using GNU ld we use -z text
8836 # though, which does catch some bad symbols but isn't as heavy-handed
8837 # as -z defs.
8838 no_undefined_flag='${wl}-z,text'
8839 allow_undefined_flag='${wl}-z,nodefs'
8840 archive_cmds_need_lc=no
8841 hardcode_shlibpath_var=no
8842 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8843 hardcode_libdir_separator=':'
8844 link_all_deplibs=yes
8845 export_dynamic_flag_spec='${wl}-Bexport'
8846 runpath_var='LD_RUN_PATH'
8847
8848 if test "$GCC" = yes; then
8849 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 else
8852 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8854 fi
8855 ;;
8856
8857 uts4*)
8858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859 hardcode_libdir_flag_spec='-L$libdir'
8860 hardcode_shlibpath_var=no
8861 ;;
8862
8863 *)
8864 ld_shlibs=no
8865 ;;
8866 esac
8867
8868 if test x$host_vendor = xsni; then
8869 case $host in
8870 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8871 export_dynamic_flag_spec='${wl}-Blargedynsym'
8872 ;;
8873 esac
8874 fi
8875 fi
8876
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8878 $as_echo "$ld_shlibs" >&6; }
8879 test "$ld_shlibs" = no && can_build_shared=no
8880
8881 with_gnu_ld=$with_gnu_ld
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897 #
8898 # Do we need to explicitly link libc?
8899 #
8900 case "x$archive_cmds_need_lc" in
8901 x|xyes)
8902 # Assume -lc should be added
8903 archive_cmds_need_lc=yes
8904
8905 if test "$enable_shared" = yes && test "$GCC" = yes; then
8906 case $archive_cmds in
8907 *'~'*)
8908 # FIXME: we may have to deal with multi-command sequences.
8909 ;;
8910 '$CC '*)
8911 # Test whether the compiler implicitly links with -lc since on some
8912 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8913 # to ld, don't add -lc before -lgcc.
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8915 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8916 if ${lt_cv_archive_cmds_need_lc+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 $RM conftest*
8920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921
8922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8923 (eval $ac_compile) 2>&5
8924 ac_status=$?
8925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8926 test $ac_status = 0; } 2>conftest.err; then
8927 soname=conftest
8928 lib=conftest
8929 libobjs=conftest.$ac_objext
8930 deplibs=
8931 wl=$lt_prog_compiler_wl
8932 pic_flag=$lt_prog_compiler_pic
8933 compiler_flags=-v
8934 linker_flags=-v
8935 verstring=
8936 output_objdir=.
8937 libname=conftest
8938 lt_save_allow_undefined_flag=$allow_undefined_flag
8939 allow_undefined_flag=
8940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8941 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8942 ac_status=$?
8943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8944 test $ac_status = 0; }
8945 then
8946 lt_cv_archive_cmds_need_lc=no
8947 else
8948 lt_cv_archive_cmds_need_lc=yes
8949 fi
8950 allow_undefined_flag=$lt_save_allow_undefined_flag
8951 else
8952 cat conftest.err 1>&5
8953 fi
8954 $RM conftest*
8955
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8958 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8959 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8960 ;;
8961 esac
8962 fi
8963 ;;
8964 esac
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9123 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9124
9125 if test "$GCC" = yes; then
9126 case $host_os in
9127 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9128 *) lt_awk_arg="/^libraries:/" ;;
9129 esac
9130 case $host_os in
9131 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9132 *) lt_sed_strip_eq="s,=/,/,g" ;;
9133 esac
9134 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9135 case $lt_search_path_spec in
9136 *\;*)
9137 # if the path contains ";" then we assume it to be the separator
9138 # otherwise default to the standard path separator (i.e. ":") - it is
9139 # assumed that no part of a normal pathname contains ";" but that should
9140 # okay in the real world where ";" in dirpaths is itself problematic.
9141 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9142 ;;
9143 *)
9144 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9145 ;;
9146 esac
9147 # Ok, now we have the path, separated by spaces, we can step through it
9148 # and add multilib dir if necessary.
9149 lt_tmp_lt_search_path_spec=
9150 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9151 for lt_sys_path in $lt_search_path_spec; do
9152 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9153 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9154 else
9155 test -d "$lt_sys_path" && \
9156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9157 fi
9158 done
9159 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9160 BEGIN {RS=" "; FS="/|\n";} {
9161 lt_foo="";
9162 lt_count=0;
9163 for (lt_i = NF; lt_i > 0; lt_i--) {
9164 if ($lt_i != "" && $lt_i != ".") {
9165 if ($lt_i == "..") {
9166 lt_count++;
9167 } else {
9168 if (lt_count == 0) {
9169 lt_foo="/" $lt_i lt_foo;
9170 } else {
9171 lt_count--;
9172 }
9173 }
9174 }
9175 }
9176 if (lt_foo != "") { lt_freq[lt_foo]++; }
9177 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9178 }'`
9179 # AWK program above erroneously prepends '/' to C:/dos/paths
9180 # for these hosts.
9181 case $host_os in
9182 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9183 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9184 esac
9185 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9186 else
9187 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9188 fi
9189 library_names_spec=
9190 libname_spec='lib$name'
9191 soname_spec=
9192 shrext_cmds=".so"
9193 postinstall_cmds=
9194 postuninstall_cmds=
9195 finish_cmds=
9196 finish_eval=
9197 shlibpath_var=
9198 shlibpath_overrides_runpath=unknown
9199 version_type=none
9200 dynamic_linker="$host_os ld.so"
9201 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9202 need_lib_prefix=unknown
9203 hardcode_into_libs=no
9204
9205 # when you set need_version to no, make sure it does not cause -set_version
9206 # flags to be left without arguments
9207 need_version=unknown
9208
9209 case $host_os in
9210 aix3*)
9211 version_type=linux
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9213 shlibpath_var=LIBPATH
9214
9215 # AIX 3 has no versioning support, so we append a major version to the name.
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 ;;
9218
9219 aix[4-9]*)
9220 version_type=linux
9221 need_lib_prefix=no
9222 need_version=no
9223 hardcode_into_libs=yes
9224 if test "$host_cpu" = ia64; then
9225 # AIX 5 supports IA64
9226 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 else
9229 # With GCC up to 2.95.x, collect2 would create an import file
9230 # for dependence libraries. The import file would start with
9231 # the line `#! .'. This would cause the generated library to
9232 # depend on `.', always an invalid library. This was fixed in
9233 # development snapshots of GCC prior to 3.0.
9234 case $host_os in
9235 aix4 | aix4.[01] | aix4.[01].*)
9236 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9237 echo ' yes '
9238 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9239 :
9240 else
9241 can_build_shared=no
9242 fi
9243 ;;
9244 esac
9245 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9246 # soname into executable. Probably we can add versioning support to
9247 # collect2, so additional links can be useful in future.
9248 if test "$aix_use_runtimelinking" = yes; then
9249 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9250 # instead of lib<name>.a to let people know that these are not
9251 # typical AIX shared libraries.
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 else
9254 # We preserve .a as extension for shared libraries through AIX4.2
9255 # and later when we are not doing run time linking.
9256 library_names_spec='${libname}${release}.a $libname.a'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 fi
9259 shlibpath_var=LIBPATH
9260 fi
9261 ;;
9262
9263 amigaos*)
9264 case $host_cpu in
9265 powerpc)
9266 # Since July 2007 AmigaOS4 officially supports .so libraries.
9267 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 ;;
9270 m68k)
9271 library_names_spec='$libname.ixlibrary $libname.a'
9272 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9273 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
9274 ;;
9275 esac
9276 ;;
9277
9278 beos*)
9279 library_names_spec='${libname}${shared_ext}'
9280 dynamic_linker="$host_os ld.so"
9281 shlibpath_var=LIBRARY_PATH
9282 ;;
9283
9284 bsdi[45]*)
9285 version_type=linux
9286 need_version=no
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288 soname_spec='${libname}${release}${shared_ext}$major'
9289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9293 # the default ld.so.conf also contains /usr/contrib/lib and
9294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9295 # libtool to hard-code these into programs
9296 ;;
9297
9298 cygwin* | mingw* | pw32* | cegcc*)
9299 version_type=windows
9300 shrext_cmds=".dll"
9301 need_version=no
9302 need_lib_prefix=no
9303
9304 case $GCC,$host_os in
9305 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9306 library_names_spec='$libname.dll.a'
9307 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9308 postinstall_cmds='base_file=`basename \${file}`~
9309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9310 dldir=$destdir/`dirname \$dlpath`~
9311 test -d \$dldir || mkdir -p \$dldir~
9312 $install_prog $dir/$dlname \$dldir/$dlname~
9313 chmod a+x \$dldir/$dlname~
9314 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9315 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9316 fi'
9317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9318 dlpath=$dir/\$dldll~
9319 $RM \$dlpath'
9320 shlibpath_overrides_runpath=yes
9321
9322 case $host_os in
9323 cygwin*)
9324 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9325 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9326
9327 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9328 ;;
9329 mingw* | cegcc*)
9330 # MinGW DLLs use traditional 'lib' prefix
9331 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9332 ;;
9333 pw32*)
9334 # pw32 DLLs use 'pw' prefix rather than 'lib'
9335 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9336 ;;
9337 esac
9338 ;;
9339
9340 *)
9341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9342 ;;
9343 esac
9344 dynamic_linker='Win32 ld.exe'
9345 # FIXME: first we should search . and the directory the executable is in
9346 shlibpath_var=PATH
9347 ;;
9348
9349 darwin* | rhapsody*)
9350 dynamic_linker="$host_os dyld"
9351 version_type=darwin
9352 need_lib_prefix=no
9353 need_version=no
9354 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9355 soname_spec='${libname}${release}${major}$shared_ext'
9356 shlibpath_overrides_runpath=yes
9357 shlibpath_var=DYLD_LIBRARY_PATH
9358 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9359
9360 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9361 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9362 ;;
9363
9364 dgux*)
9365 version_type=linux
9366 need_lib_prefix=no
9367 need_version=no
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 ;;
9372
9373 freebsd1*)
9374 dynamic_linker=no
9375 ;;
9376
9377 freebsd* | dragonfly*)
9378 # DragonFly does not have aout. When/if they implement a new
9379 # versioning mechanism, adjust this.
9380 if test -x /usr/bin/objformat; then
9381 objformat=`/usr/bin/objformat`
9382 else
9383 case $host_os in
9384 freebsd[123]*) objformat=aout ;;
9385 *) objformat=elf ;;
9386 esac
9387 fi
9388 version_type=freebsd-$objformat
9389 case $version_type in
9390 freebsd-elf*)
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9392 need_version=no
9393 need_lib_prefix=no
9394 ;;
9395 freebsd-*)
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9397 need_version=yes
9398 ;;
9399 esac
9400 shlibpath_var=LD_LIBRARY_PATH
9401 case $host_os in
9402 freebsd2*)
9403 shlibpath_overrides_runpath=yes
9404 ;;
9405 freebsd3.[01]* | freebsdelf3.[01]*)
9406 shlibpath_overrides_runpath=yes
9407 hardcode_into_libs=yes
9408 ;;
9409 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9410 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9411 shlibpath_overrides_runpath=no
9412 hardcode_into_libs=yes
9413 ;;
9414 *) # from 4.6 on, and DragonFly
9415 shlibpath_overrides_runpath=yes
9416 hardcode_into_libs=yes
9417 ;;
9418 esac
9419 ;;
9420
9421 gnu*)
9422 version_type=linux
9423 need_lib_prefix=no
9424 need_version=no
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 hardcode_into_libs=yes
9429 ;;
9430
9431 haiku*)
9432 version_type=linux
9433 need_lib_prefix=no
9434 need_version=no
9435 dynamic_linker="$host_os runtime_loader"
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 shlibpath_var=LIBRARY_PATH
9439 shlibpath_overrides_runpath=yes
9440 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9441 hardcode_into_libs=yes
9442 ;;
9443
9444 hpux9* | hpux10* | hpux11*)
9445 # Give a soname corresponding to the major version so that dld.sl refuses to
9446 # link against other versions.
9447 version_type=sunos
9448 need_lib_prefix=no
9449 need_version=no
9450 case $host_cpu in
9451 ia64*)
9452 shrext_cmds='.so'
9453 hardcode_into_libs=yes
9454 dynamic_linker="$host_os dld.so"
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 if test "X$HPUX_IA64_MODE" = X32; then
9460 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9461 else
9462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9463 fi
9464 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9465 ;;
9466 hppa*64*)
9467 shrext_cmds='.sl'
9468 hardcode_into_libs=yes
9469 dynamic_linker="$host_os dld.sl"
9470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473 soname_spec='${libname}${release}${shared_ext}$major'
9474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9476 ;;
9477 *)
9478 shrext_cmds='.sl'
9479 dynamic_linker="$host_os dld.sl"
9480 shlibpath_var=SHLIB_PATH
9481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 ;;
9485 esac
9486 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9487 postinstall_cmds='chmod 555 $lib'
9488 # or fails outright, so override atomically:
9489 install_override_mode=555
9490 ;;
9491
9492 interix[3-9]*)
9493 version_type=linux
9494 need_lib_prefix=no
9495 need_version=no
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9498 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9499 shlibpath_var=LD_LIBRARY_PATH
9500 shlibpath_overrides_runpath=no
9501 hardcode_into_libs=yes
9502 ;;
9503
9504 irix5* | irix6* | nonstopux*)
9505 case $host_os in
9506 nonstopux*) version_type=nonstopux ;;
9507 *)
9508 if test "$lt_cv_prog_gnu_ld" = yes; then
9509 version_type=linux
9510 else
9511 version_type=irix
9512 fi ;;
9513 esac
9514 need_lib_prefix=no
9515 need_version=no
9516 soname_spec='${libname}${release}${shared_ext}$major'
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9518 case $host_os in
9519 irix5* | nonstopux*)
9520 libsuff= shlibsuff=
9521 ;;
9522 *)
9523 case $LD in # libtool.m4 will add one of these switches to LD
9524 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9525 libsuff= shlibsuff= libmagic=32-bit;;
9526 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9527 libsuff=32 shlibsuff=N32 libmagic=N32;;
9528 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9529 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9530 *) libsuff= shlibsuff= libmagic=never-match;;
9531 esac
9532 ;;
9533 esac
9534 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9535 shlibpath_overrides_runpath=no
9536 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9537 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9538 hardcode_into_libs=yes
9539 ;;
9540
9541 # No shared lib support for Linux oldld, aout, or coff.
9542 linux*oldld* | linux*aout* | linux*coff*)
9543 dynamic_linker=no
9544 ;;
9545
9546 # This must be Linux ELF.
9547 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9548 version_type=linux
9549 need_lib_prefix=no
9550 need_version=no
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 soname_spec='${libname}${release}${shared_ext}$major'
9553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9554 shlibpath_var=LD_LIBRARY_PATH
9555 shlibpath_overrides_runpath=no
9556
9557 # Some binutils ld are patched to set DT_RUNPATH
9558 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 lt_cv_shlibpath_overrides_runpath=no
9562 save_LDFLAGS=$LDFLAGS
9563 save_libdir=$libdir
9564 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9565 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568
9569 int
9570 main ()
9571 {
9572
9573 ;
9574 return 0;
9575 }
9576 _ACEOF
9577 if ac_fn_c_try_link "$LINENO"; then :
9578 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9579 lt_cv_shlibpath_overrides_runpath=yes
9580 fi
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9584 LDFLAGS=$save_LDFLAGS
9585 libdir=$save_libdir
9586
9587 fi
9588
9589 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9590
9591 # This implies no fast_install, which is unacceptable.
9592 # Some rework will be needed to allow for fast_install
9593 # before this can be enabled.
9594 hardcode_into_libs=yes
9595
9596 # Append ld.so.conf contents to the search path
9597 if test -f /etc/ld.so.conf; then
9598 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' ' '`
9599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9600 fi
9601
9602 # We used to test for /lib/ld.so.1 and disable shared libraries on
9603 # powerpc, because MkLinux only supported shared libraries with the
9604 # GNU dynamic linker. Since this was broken with cross compilers,
9605 # most powerpc-linux boxes support dynamic linking these days and
9606 # people can always --disable-shared, the test was removed, and we
9607 # assume the GNU/Linux dynamic linker is in use.
9608 dynamic_linker='GNU/Linux ld.so'
9609 ;;
9610
9611 netbsd*)
9612 version_type=sunos
9613 need_lib_prefix=no
9614 need_version=no
9615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9618 dynamic_linker='NetBSD (a.out) ld.so'
9619 else
9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 dynamic_linker='NetBSD ld.elf_so'
9623 fi
9624 shlibpath_var=LD_LIBRARY_PATH
9625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9627 ;;
9628
9629 newsos6)
9630 version_type=linux
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632 shlibpath_var=LD_LIBRARY_PATH
9633 shlibpath_overrides_runpath=yes
9634 ;;
9635
9636 *nto* | *qnx*)
9637 version_type=qnx
9638 need_lib_prefix=no
9639 need_version=no
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath=no
9644 hardcode_into_libs=yes
9645 dynamic_linker='ldqnx.so'
9646 ;;
9647
9648 openbsd*)
9649 version_type=sunos
9650 sys_lib_dlsearch_path_spec="/usr/lib"
9651 need_lib_prefix=no
9652 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9653 case $host_os in
9654 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9655 *) need_version=no ;;
9656 esac
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9659 shlibpath_var=LD_LIBRARY_PATH
9660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9661 case $host_os in
9662 openbsd2.[89] | openbsd2.[89].*)
9663 shlibpath_overrides_runpath=no
9664 ;;
9665 *)
9666 shlibpath_overrides_runpath=yes
9667 ;;
9668 esac
9669 else
9670 shlibpath_overrides_runpath=yes
9671 fi
9672 ;;
9673
9674 os2*)
9675 libname_spec='$name'
9676 shrext_cmds=".dll"
9677 need_lib_prefix=no
9678 library_names_spec='$libname${shared_ext} $libname.a'
9679 dynamic_linker='OS/2 ld.exe'
9680 shlibpath_var=LIBPATH
9681 ;;
9682
9683 osf3* | osf4* | osf5*)
9684 version_type=osf
9685 need_lib_prefix=no
9686 need_version=no
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9692 ;;
9693
9694 rdos*)
9695 dynamic_linker=no
9696 ;;
9697
9698 solaris*)
9699 version_type=linux
9700 need_lib_prefix=no
9701 need_version=no
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 shlibpath_var=LD_LIBRARY_PATH
9705 shlibpath_overrides_runpath=yes
9706 hardcode_into_libs=yes
9707 # ldd complains unless libraries are executable
9708 postinstall_cmds='chmod +x $lib'
9709 ;;
9710
9711 sunos4*)
9712 version_type=sunos
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9715 shlibpath_var=LD_LIBRARY_PATH
9716 shlibpath_overrides_runpath=yes
9717 if test "$with_gnu_ld" = yes; then
9718 need_lib_prefix=no
9719 fi
9720 need_version=yes
9721 ;;
9722
9723 sysv4 | sysv4.3*)
9724 version_type=linux
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 case $host_vendor in
9729 sni)
9730 shlibpath_overrides_runpath=no
9731 need_lib_prefix=no
9732 runpath_var=LD_RUN_PATH
9733 ;;
9734 siemens)
9735 need_lib_prefix=no
9736 ;;
9737 motorola)
9738 need_lib_prefix=no
9739 need_version=no
9740 shlibpath_overrides_runpath=no
9741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9742 ;;
9743 esac
9744 ;;
9745
9746 sysv4*MP*)
9747 if test -d /usr/nec ;then
9748 version_type=linux
9749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9750 soname_spec='$libname${shared_ext}.$major'
9751 shlibpath_var=LD_LIBRARY_PATH
9752 fi
9753 ;;
9754
9755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9756 version_type=freebsd-elf
9757 need_lib_prefix=no
9758 need_version=no
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 shlibpath_overrides_runpath=yes
9763 hardcode_into_libs=yes
9764 if test "$with_gnu_ld" = yes; then
9765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9766 else
9767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9768 case $host_os in
9769 sco3.2v5*)
9770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9771 ;;
9772 esac
9773 fi
9774 sys_lib_dlsearch_path_spec='/usr/lib'
9775 ;;
9776
9777 tpf*)
9778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9779 version_type=linux
9780 need_lib_prefix=no
9781 need_version=no
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 shlibpath_var=LD_LIBRARY_PATH
9784 shlibpath_overrides_runpath=no
9785 hardcode_into_libs=yes
9786 ;;
9787
9788 uts4*)
9789 version_type=linux
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791 soname_spec='${libname}${release}${shared_ext}$major'
9792 shlibpath_var=LD_LIBRARY_PATH
9793 ;;
9794
9795 *)
9796 dynamic_linker=no
9797 ;;
9798 esac
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9800 $as_echo "$dynamic_linker" >&6; }
9801 test "$dynamic_linker" = no && can_build_shared=no
9802
9803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9804 if test "$GCC" = yes; then
9805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9806 fi
9807
9808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9809 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9810 fi
9811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9812 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9813 fi
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9907 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9908 hardcode_action=
9909 if test -n "$hardcode_libdir_flag_spec" ||
9910 test -n "$runpath_var" ||
9911 test "X$hardcode_automatic" = "Xyes" ; then
9912
9913 # We can hardcode non-existent directories.
9914 if test "$hardcode_direct" != no &&
9915 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9916 # have to relink, otherwise we might link with an installed library
9917 # when we should be linking with a yet-to-be-installed one
9918 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9919 test "$hardcode_minus_L" != no; then
9920 # Linking always hardcodes the temporary library directory.
9921 hardcode_action=relink
9922 else
9923 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9924 hardcode_action=immediate
9925 fi
9926 else
9927 # We cannot hardcode anything, or else we can only hardcode existing
9928 # directories.
9929 hardcode_action=unsupported
9930 fi
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9932 $as_echo "$hardcode_action" >&6; }
9933
9934 if test "$hardcode_action" = relink ||
9935 test "$inherit_rpath" = yes; then
9936 # Fast installation is not supported
9937 enable_fast_install=no
9938 elif test "$shlibpath_overrides_runpath" = yes ||
9939 test "$enable_shared" = no; then
9940 # Fast installation is not necessary
9941 enable_fast_install=needless
9942 fi
9943
9944
9945
9946
9947
9948
9949 if test "x$enable_dlopen" != xyes; then
9950 enable_dlopen=unknown
9951 enable_dlopen_self=unknown
9952 enable_dlopen_self_static=unknown
9953 else
9954 lt_cv_dlopen=no
9955 lt_cv_dlopen_libs=
9956
9957 case $host_os in
9958 beos*)
9959 lt_cv_dlopen="load_add_on"
9960 lt_cv_dlopen_libs=
9961 lt_cv_dlopen_self=yes
9962 ;;
9963
9964 mingw* | pw32* | cegcc*)
9965 lt_cv_dlopen="LoadLibrary"
9966 lt_cv_dlopen_libs=
9967 ;;
9968
9969 cygwin*)
9970 lt_cv_dlopen="dlopen"
9971 lt_cv_dlopen_libs=
9972 ;;
9973
9974 darwin*)
9975 # if libdl is installed we need to link against it
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9978 if ${ac_cv_lib_dl_dlopen+:} false; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 ac_check_lib_save_LIBS=$LIBS
9982 LIBS="-ldl $LIBS"
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9985
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 char dlopen ();
9993 int
9994 main ()
9995 {
9996 return dlopen ();
9997 ;
9998 return 0;
9999 }
10000 _ACEOF
10001 if ac_fn_c_try_link "$LINENO"; then :
10002 ac_cv_lib_dl_dlopen=yes
10003 else
10004 ac_cv_lib_dl_dlopen=no
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10009 fi
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10012 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10014 else
10015
10016 lt_cv_dlopen="dyld"
10017 lt_cv_dlopen_libs=
10018 lt_cv_dlopen_self=yes
10019
10020 fi
10021
10022 ;;
10023
10024 *)
10025 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10026 if test "x$ac_cv_func_shl_load" = xyes; then :
10027 lt_cv_dlopen="shl_load"
10028 else
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10030 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10031 if ${ac_cv_lib_dld_shl_load+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 ac_check_lib_save_LIBS=$LIBS
10035 LIBS="-ldld $LIBS"
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10042 #ifdef __cplusplus
10043 extern "C"
10044 #endif
10045 char shl_load ();
10046 int
10047 main ()
10048 {
10049 return shl_load ();
10050 ;
10051 return 0;
10052 }
10053 _ACEOF
10054 if ac_fn_c_try_link "$LINENO"; then :
10055 ac_cv_lib_dld_shl_load=yes
10056 else
10057 ac_cv_lib_dld_shl_load=no
10058 fi
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10062 fi
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10064 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10065 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10066 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10067 else
10068 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10069 if test "x$ac_cv_func_dlopen" = xyes; then :
10070 lt_cv_dlopen="dlopen"
10071 else
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10073 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10074 if ${ac_cv_lib_dl_dlopen+:} false; then :
10075 $as_echo_n "(cached) " >&6
10076 else
10077 ac_check_lib_save_LIBS=$LIBS
10078 LIBS="-ldl $LIBS"
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081
10082 /* Override any GCC internal prototype to avoid an error.
10083 Use char because int might match the return type of a GCC
10084 builtin and then its argument prototype would still apply. */
10085 #ifdef __cplusplus
10086 extern "C"
10087 #endif
10088 char dlopen ();
10089 int
10090 main ()
10091 {
10092 return dlopen ();
10093 ;
10094 return 0;
10095 }
10096 _ACEOF
10097 if ac_fn_c_try_link "$LINENO"; then :
10098 ac_cv_lib_dl_dlopen=yes
10099 else
10100 ac_cv_lib_dl_dlopen=no
10101 fi
10102 rm -f core conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 LIBS=$ac_check_lib_save_LIBS
10105 fi
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10107 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10108 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10110 else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10112 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10113 if ${ac_cv_lib_svld_dlopen+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 ac_check_lib_save_LIBS=$LIBS
10117 LIBS="-lsvld $LIBS"
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120
10121 /* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10124 #ifdef __cplusplus
10125 extern "C"
10126 #endif
10127 char dlopen ();
10128 int
10129 main ()
10130 {
10131 return dlopen ();
10132 ;
10133 return 0;
10134 }
10135 _ACEOF
10136 if ac_fn_c_try_link "$LINENO"; then :
10137 ac_cv_lib_svld_dlopen=yes
10138 else
10139 ac_cv_lib_svld_dlopen=no
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10146 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10147 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10149 else
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10151 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10152 if ${ac_cv_lib_dld_dld_link+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 ac_check_lib_save_LIBS=$LIBS
10156 LIBS="-ldld $LIBS"
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159
10160 /* Override any GCC internal prototype to avoid an error.
10161 Use char because int might match the return type of a GCC
10162 builtin and then its argument prototype would still apply. */
10163 #ifdef __cplusplus
10164 extern "C"
10165 #endif
10166 char dld_link ();
10167 int
10168 main ()
10169 {
10170 return dld_link ();
10171 ;
10172 return 0;
10173 }
10174 _ACEOF
10175 if ac_fn_c_try_link "$LINENO"; then :
10176 ac_cv_lib_dld_dld_link=yes
10177 else
10178 ac_cv_lib_dld_dld_link=no
10179 fi
10180 rm -f core conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
10182 LIBS=$ac_check_lib_save_LIBS
10183 fi
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10185 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10186 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10187 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10188 fi
10189
10190
10191 fi
10192
10193
10194 fi
10195
10196
10197 fi
10198
10199
10200 fi
10201
10202
10203 fi
10204
10205 ;;
10206 esac
10207
10208 if test "x$lt_cv_dlopen" != xno; then
10209 enable_dlopen=yes
10210 else
10211 enable_dlopen=no
10212 fi
10213
10214 case $lt_cv_dlopen in
10215 dlopen)
10216 save_CPPFLAGS="$CPPFLAGS"
10217 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10218
10219 save_LDFLAGS="$LDFLAGS"
10220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10221
10222 save_LIBS="$LIBS"
10223 LIBS="$lt_cv_dlopen_libs $LIBS"
10224
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10226 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10227 if ${lt_cv_dlopen_self+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 if test "$cross_compiling" = yes; then :
10231 lt_cv_dlopen_self=cross
10232 else
10233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10234 lt_status=$lt_dlunknown
10235 cat > conftest.$ac_ext <<_LT_EOF
10236 #line $LINENO "configure"
10237 #include "confdefs.h"
10238
10239 #if HAVE_DLFCN_H
10240 #include <dlfcn.h>
10241 #endif
10242
10243 #include <stdio.h>
10244
10245 #ifdef RTLD_GLOBAL
10246 # define LT_DLGLOBAL RTLD_GLOBAL
10247 #else
10248 # ifdef DL_GLOBAL
10249 # define LT_DLGLOBAL DL_GLOBAL
10250 # else
10251 # define LT_DLGLOBAL 0
10252 # endif
10253 #endif
10254
10255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10256 find out it does not work in some platform. */
10257 #ifndef LT_DLLAZY_OR_NOW
10258 # ifdef RTLD_LAZY
10259 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10260 # else
10261 # ifdef DL_LAZY
10262 # define LT_DLLAZY_OR_NOW DL_LAZY
10263 # else
10264 # ifdef RTLD_NOW
10265 # define LT_DLLAZY_OR_NOW RTLD_NOW
10266 # else
10267 # ifdef DL_NOW
10268 # define LT_DLLAZY_OR_NOW DL_NOW
10269 # else
10270 # define LT_DLLAZY_OR_NOW 0
10271 # endif
10272 # endif
10273 # endif
10274 # endif
10275 #endif
10276
10277 /* When -fvisbility=hidden is used, assume the code has been annotated
10278 correspondingly for the symbols needed. */
10279 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10280 void fnord () __attribute__((visibility("default")));
10281 #endif
10282
10283 void fnord () { int i=42; }
10284 int main ()
10285 {
10286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10287 int status = $lt_dlunknown;
10288
10289 if (self)
10290 {
10291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10292 else
10293 {
10294 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10295 else puts (dlerror ());
10296 }
10297 /* dlclose (self); */
10298 }
10299 else
10300 puts (dlerror ());
10301
10302 return status;
10303 }
10304 _LT_EOF
10305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10306 (eval $ac_link) 2>&5
10307 ac_status=$?
10308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10309 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10310 (./conftest; exit; ) >&5 2>/dev/null
10311 lt_status=$?
10312 case x$lt_status in
10313 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10314 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10315 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10316 esac
10317 else :
10318 # compilation failed
10319 lt_cv_dlopen_self=no
10320 fi
10321 fi
10322 rm -fr conftest*
10323
10324
10325 fi
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10327 $as_echo "$lt_cv_dlopen_self" >&6; }
10328
10329 if test "x$lt_cv_dlopen_self" = xyes; then
10330 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10332 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10333 if ${lt_cv_dlopen_self_static+:} false; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 if test "$cross_compiling" = yes; then :
10337 lt_cv_dlopen_self_static=cross
10338 else
10339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10340 lt_status=$lt_dlunknown
10341 cat > conftest.$ac_ext <<_LT_EOF
10342 #line $LINENO "configure"
10343 #include "confdefs.h"
10344
10345 #if HAVE_DLFCN_H
10346 #include <dlfcn.h>
10347 #endif
10348
10349 #include <stdio.h>
10350
10351 #ifdef RTLD_GLOBAL
10352 # define LT_DLGLOBAL RTLD_GLOBAL
10353 #else
10354 # ifdef DL_GLOBAL
10355 # define LT_DLGLOBAL DL_GLOBAL
10356 # else
10357 # define LT_DLGLOBAL 0
10358 # endif
10359 #endif
10360
10361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10362 find out it does not work in some platform. */
10363 #ifndef LT_DLLAZY_OR_NOW
10364 # ifdef RTLD_LAZY
10365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10366 # else
10367 # ifdef DL_LAZY
10368 # define LT_DLLAZY_OR_NOW DL_LAZY
10369 # else
10370 # ifdef RTLD_NOW
10371 # define LT_DLLAZY_OR_NOW RTLD_NOW
10372 # else
10373 # ifdef DL_NOW
10374 # define LT_DLLAZY_OR_NOW DL_NOW
10375 # else
10376 # define LT_DLLAZY_OR_NOW 0
10377 # endif
10378 # endif
10379 # endif
10380 # endif
10381 #endif
10382
10383 /* When -fvisbility=hidden is used, assume the code has been annotated
10384 correspondingly for the symbols needed. */
10385 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10386 void fnord () __attribute__((visibility("default")));
10387 #endif
10388
10389 void fnord () { int i=42; }
10390 int main ()
10391 {
10392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10393 int status = $lt_dlunknown;
10394
10395 if (self)
10396 {
10397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10398 else
10399 {
10400 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10401 else puts (dlerror ());
10402 }
10403 /* dlclose (self); */
10404 }
10405 else
10406 puts (dlerror ());
10407
10408 return status;
10409 }
10410 _LT_EOF
10411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10412 (eval $ac_link) 2>&5
10413 ac_status=$?
10414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10415 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10416 (./conftest; exit; ) >&5 2>/dev/null
10417 lt_status=$?
10418 case x$lt_status in
10419 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10420 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10421 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10422 esac
10423 else :
10424 # compilation failed
10425 lt_cv_dlopen_self_static=no
10426 fi
10427 fi
10428 rm -fr conftest*
10429
10430
10431 fi
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10433 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10434 fi
10435
10436 CPPFLAGS="$save_CPPFLAGS"
10437 LDFLAGS="$save_LDFLAGS"
10438 LIBS="$save_LIBS"
10439 ;;
10440 esac
10441
10442 case $lt_cv_dlopen_self in
10443 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10444 *) enable_dlopen_self=unknown ;;
10445 esac
10446
10447 case $lt_cv_dlopen_self_static in
10448 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10449 *) enable_dlopen_self_static=unknown ;;
10450 esac
10451 fi
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469 striplib=
10470 old_striplib=
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10472 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10473 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10474 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10475 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10477 $as_echo "yes" >&6; }
10478 else
10479 # FIXME - insert some real tests, host_os isn't really good enough
10480 case $host_os in
10481 darwin*)
10482 if test -n "$STRIP" ; then
10483 striplib="$STRIP -x"
10484 old_striplib="$STRIP -S"
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10486 $as_echo "yes" >&6; }
10487 else
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10490 fi
10491 ;;
10492 *)
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494 $as_echo "no" >&6; }
10495 ;;
10496 esac
10497 fi
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510 # Report which library types will actually be built
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10512 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10514 $as_echo "$can_build_shared" >&6; }
10515
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10517 $as_echo_n "checking whether to build shared libraries... " >&6; }
10518 test "$can_build_shared" = "no" && enable_shared=no
10519
10520 # On AIX, shared libraries and static libraries use the same namespace, and
10521 # are all built from PIC.
10522 case $host_os in
10523 aix3*)
10524 test "$enable_shared" = yes && enable_static=no
10525 if test -n "$RANLIB"; then
10526 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10527 postinstall_cmds='$RANLIB $lib'
10528 fi
10529 ;;
10530
10531 aix[4-9]*)
10532 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10533 test "$enable_shared" = yes && enable_static=no
10534 fi
10535 ;;
10536 esac
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10538 $as_echo "$enable_shared" >&6; }
10539
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10541 $as_echo_n "checking whether to build static libraries... " >&6; }
10542 # Make sure either enable_shared or enable_static is yes.
10543 test "$enable_shared" = yes || enable_static=yes
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10545 $as_echo "$enable_static" >&6; }
10546
10547
10548
10549
10550 fi
10551 ac_ext=c
10552 ac_cpp='$CPP $CPPFLAGS'
10553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10556
10557 CC="$lt_save_CC"
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571 ac_config_commands="$ac_config_commands libtool"
10572
10573
10574
10575
10576 # Only expand once:
10577
10578
10579
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10581 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10582 if ${ac_cv_prog_cc_c99+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 ac_cv_prog_cc_c99=no
10586 ac_save_CC=$CC
10587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h. */
10589 #include <stdarg.h>
10590 #include <stdbool.h>
10591 #include <stdlib.h>
10592 #include <wchar.h>
10593 #include <stdio.h>
10594
10595 // Check varargs macros. These examples are taken from C99 6.10.3.5.
10596 #define debug(...) fprintf (stderr, __VA_ARGS__)
10597 #define showlist(...) puts (#__VA_ARGS__)
10598 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10599 static void
10600 test_varargs_macros (void)
10601 {
10602 int x = 1234;
10603 int y = 5678;
10604 debug ("Flag");
10605 debug ("X = %d\n", x);
10606 showlist (The first, second, and third items.);
10607 report (x>y, "x is %d but y is %d", x, y);
10608 }
10609
10610 // Check long long types.
10611 #define BIG64 18446744073709551615ull
10612 #define BIG32 4294967295ul
10613 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10614 #if !BIG_OK
10615 your preprocessor is broken;
10616 #endif
10617 #if BIG_OK
10618 #else
10619 your preprocessor is broken;
10620 #endif
10621 static long long int bignum = -9223372036854775807LL;
10622 static unsigned long long int ubignum = BIG64;
10623
10624 struct incomplete_array
10625 {
10626 int datasize;
10627 double data[];
10628 };
10629
10630 struct named_init {
10631 int number;
10632 const wchar_t *name;
10633 double average;
10634 };
10635
10636 typedef const char *ccp;
10637
10638 static inline int
10639 test_restrict (ccp restrict text)
10640 {
10641 // See if C++-style comments work.
10642 // Iterate through items via the restricted pointer.
10643 // Also check for declarations in for loops.
10644 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10645 continue;
10646 return 0;
10647 }
10648
10649 // Check varargs and va_copy.
10650 static void
10651 test_varargs (const char *format, ...)
10652 {
10653 va_list args;
10654 va_start (args, format);
10655 va_list args_copy;
10656 va_copy (args_copy, args);
10657
10658 const char *str;
10659 int number;
10660 float fnumber;
10661
10662 while (*format)
10663 {
10664 switch (*format++)
10665 {
10666 case 's': // string
10667 str = va_arg (args_copy, const char *);
10668 break;
10669 case 'd': // int
10670 number = va_arg (args_copy, int);
10671 break;
10672 case 'f': // float
10673 fnumber = va_arg (args_copy, double);
10674 break;
10675 default:
10676 break;
10677 }
10678 }
10679 va_end (args_copy);
10680 va_end (args);
10681 }
10682
10683 int
10684 main ()
10685 {
10686
10687 // Check bool.
10688 _Bool success = false;
10689
10690 // Check restrict.
10691 if (test_restrict ("String literal") == 0)
10692 success = true;
10693 char *restrict newvar = "Another string";
10694
10695 // Check varargs.
10696 test_varargs ("s, d' f .", "string", 65, 34.234);
10697 test_varargs_macros ();
10698
10699 // Check flexible array members.
10700 struct incomplete_array *ia =
10701 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10702 ia->datasize = 10;
10703 for (int i = 0; i < ia->datasize; ++i)
10704 ia->data[i] = i * 1.234;
10705
10706 // Check named initializers.
10707 struct named_init ni = {
10708 .number = 34,
10709 .name = L"Test wide string",
10710 .average = 543.34343,
10711 };
10712
10713 ni.number = 58;
10714
10715 int dynamic_array[ni.number];
10716 dynamic_array[ni.number - 1] = 543;
10717
10718 // work around unused variable warnings
10719 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10720 || dynamic_array[ni.number - 1] != 543);
10721
10722 ;
10723 return 0;
10724 }
10725 _ACEOF
10726 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10727 do
10728 CC="$ac_save_CC $ac_arg"
10729 if ac_fn_c_try_compile "$LINENO"; then :
10730 ac_cv_prog_cc_c99=$ac_arg
10731 fi
10732 rm -f core conftest.err conftest.$ac_objext
10733 test "x$ac_cv_prog_cc_c99" != "xno" && break
10734 done
10735 rm -f conftest.$ac_ext
10736 CC=$ac_save_CC
10737
10738 fi
10739 # AC_CACHE_VAL
10740 case "x$ac_cv_prog_cc_c99" in
10741 x)
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10743 $as_echo "none needed" >&6; } ;;
10744 xno)
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10746 $as_echo "unsupported" >&6; } ;;
10747 *)
10748 CC="$CC $ac_cv_prog_cc_c99"
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10750 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10751 esac
10752 if test "x$ac_cv_prog_cc_c99" != xno; then :
10753
10754 fi
10755
10756
10757
10758
10759 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10760 if test -n "$ac_tool_prefix"; then
10761 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10762 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764 $as_echo_n "checking for $ac_word... " >&6; }
10765 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 case $PKG_CONFIG in
10769 [\\/]* | ?:[\\/]*)
10770 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10771 ;;
10772 *)
10773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10774 for as_dir in $PATH
10775 do
10776 IFS=$as_save_IFS
10777 test -z "$as_dir" && as_dir=.
10778 for ac_exec_ext in '' $ac_executable_extensions; do
10779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10780 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10782 break 2
10783 fi
10784 done
10785 done
10786 IFS=$as_save_IFS
10787
10788 ;;
10789 esac
10790 fi
10791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10792 if test -n "$PKG_CONFIG"; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10794 $as_echo "$PKG_CONFIG" >&6; }
10795 else
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; }
10798 fi
10799
10800
10801 fi
10802 if test -z "$ac_cv_path_PKG_CONFIG"; then
10803 ac_pt_PKG_CONFIG=$PKG_CONFIG
10804 # Extract the first word of "pkg-config", so it can be a program name with args.
10805 set dummy pkg-config; ac_word=$2
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807 $as_echo_n "checking for $ac_word... " >&6; }
10808 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 case $ac_pt_PKG_CONFIG in
10812 [\\/]* | ?:[\\/]*)
10813 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10814 ;;
10815 *)
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10818 do
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10823 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10826 fi
10827 done
10828 done
10829 IFS=$as_save_IFS
10830
10831 ;;
10832 esac
10833 fi
10834 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10835 if test -n "$ac_pt_PKG_CONFIG"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10837 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10838 else
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10841 fi
10842
10843 if test "x$ac_pt_PKG_CONFIG" = x; then
10844 PKG_CONFIG=""
10845 else
10846 case $cross_compiling:$ac_tool_warned in
10847 yes:)
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10850 ac_tool_warned=yes ;;
10851 esac
10852 PKG_CONFIG=$ac_pt_PKG_CONFIG
10853 fi
10854 else
10855 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10856 fi
10857
10858 fi
10859 if test -n "$PKG_CONFIG"; then
10860 _pkg_min_version=0.9.0
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10862 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10863 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10865 $as_echo "yes" >&6; }
10866 else
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868 $as_echo "no" >&6; }
10869 PKG_CONFIG=""
10870 fi
10871
10872 fi
10873
10874
10875
10876
10877 if test "x$GCC" = xyes ; then
10878 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10879 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10880 -Wbad-function-cast -Wformat=2"
10881 case `$CC -dumpversion` in
10882 3.4.* | 4.*)
10883 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
10884 ;;
10885 esac
10886 else
10887 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10888 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
10889 SUNCC="yes"
10890 else
10891 SUNCC="no"
10892 fi
10893
10894 if test "x$SUNCC" = "xyes"; then
10895 CWARNFLAGS="-v"
10896 fi
10897 fi
10898
10899
10900
10901 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10902
10903
10904
10905 # Check whether --enable-strict-compilation was given.
10906 if test "${enable_strict_compilation+set}" = set; then :
10907 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10908 else
10909 STRICT_COMPILE=no
10910 fi
10911
10912 if test "x$STRICT_COMPILE" = "xyes"; then
10913 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10914 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
10915 SUNCC="yes"
10916 else
10917 SUNCC="no"
10918 fi
10919
10920 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10921 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
10922 INTELCC="yes"
10923 else
10924 INTELCC="no"
10925 fi
10926
10927 if test "x$GCC" = xyes ; then
10928 STRICT_CFLAGS="-pedantic -Werror"
10929 elif test "x$SUNCC" = "xyes"; then
10930 STRICT_CFLAGS="-errwarn"
10931 elif test "x$INTELCC" = "xyes"; then
10932 STRICT_CFLAGS="-Werror"
10933 fi
10934 fi
10935 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10936
10937
10938
10939
10940 cat >>confdefs.h <<_ACEOF
10941 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10942 _ACEOF
10943
10944 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10945 if test "x$PVM" = "x"; then
10946 PVM="0"
10947 fi
10948
10949 cat >>confdefs.h <<_ACEOF
10950 #define PACKAGE_VERSION_MINOR $PVM
10951 _ACEOF
10952
10953 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10954 if test "x$PVP" = "x"; then
10955 PVP="0"
10956 fi
10957
10958 cat >>confdefs.h <<_ACEOF
10959 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10960 _ACEOF
10961
10962
10963
10964 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10965 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10966 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10967 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10968
10969
10970
10971
10972 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10973 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10974 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10975 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10976 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10977
10978
10979
10980
10981
10982
10983 if test x$APP_MAN_SUFFIX = x ; then
10984 APP_MAN_SUFFIX=1
10985 fi
10986 if test x$APP_MAN_DIR = x ; then
10987 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10988 fi
10989
10990 if test x$LIB_MAN_SUFFIX = x ; then
10991 LIB_MAN_SUFFIX=3
10992 fi
10993 if test x$LIB_MAN_DIR = x ; then
10994 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10995 fi
10996
10997 if test x$FILE_MAN_SUFFIX = x ; then
10998 case $host_os in
10999 solaris*) FILE_MAN_SUFFIX=4 ;;
11000 *) FILE_MAN_SUFFIX=5 ;;
11001 esac
11002 fi
11003 if test x$FILE_MAN_DIR = x ; then
11004 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11005 fi
11006
11007 if test x$MISC_MAN_SUFFIX = x ; then
11008 case $host_os in
11009 solaris*) MISC_MAN_SUFFIX=5 ;;
11010 *) MISC_MAN_SUFFIX=7 ;;
11011 esac
11012 fi
11013 if test x$MISC_MAN_DIR = x ; then
11014 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11015 fi
11016
11017 if test x$DRIVER_MAN_SUFFIX = x ; then
11018 case $host_os in
11019 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11020 *) DRIVER_MAN_SUFFIX=4 ;;
11021 esac
11022 fi
11023 if test x$DRIVER_MAN_DIR = x ; then
11024 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11025 fi
11026
11027 if test x$ADMIN_MAN_SUFFIX = x ; then
11028 case $host_os in
11029 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11030 *) ADMIN_MAN_SUFFIX=8 ;;
11031 esac
11032 fi
11033 if test x$ADMIN_MAN_DIR = x ; then
11034 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11035 fi
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051 XORG_MAN_PAGE="X Version 11"
11052
11053 MAN_SUBSTS="\
11054 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11055 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11056 -e 's|__xservername__|Xorg|g' \
11057 -e 's|__xconfigfile__|xorg.conf|g' \
11058 -e 's|__projectroot__|\$(prefix)|g' \
11059 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11060 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11061 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11062 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11063 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11064 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11065 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11066
11067
11068
11069 # Check whether --enable-silent-rules was given.
11070 if test "${enable_silent_rules+set}" = set; then :
11071 enableval=$enable_silent_rules;
11072 fi
11073
11074 case $enable_silent_rules in
11075 yes) AM_DEFAULT_VERBOSITY=0;;
11076 no) AM_DEFAULT_VERBOSITY=1;;
11077 *) AM_DEFAULT_VERBOSITY=0;;
11078 esac
11079 AM_BACKSLASH='\'
11080
11081
11082
11083 # get modules
11084
11085 # Check xres configuration, strip extra digits from package version to
11086 # find the required protocol version
11087 RES_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
11088
11089 pkg_failed=no
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRES" >&5
11091 $as_echo_n "checking for XRES... " >&6; }
11092
11093 if test -n "$XRES_CFLAGS"; then
11094 pkg_cv_XRES_CFLAGS="$XRES_CFLAGS"
11095 elif test -n "$PKG_CONFIG"; then
11096 if test -n "$PKG_CONFIG" && \
11097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto resourceproto >= \$RES_VERSION\""; } >&5
11098 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION") 2>&5
11099 ac_status=$?
11100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11101 test $ac_status = 0; }; then
11102 pkg_cv_XRES_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto resourceproto >= $RES_VERSION" 2>/dev/null`
11103 else
11104 pkg_failed=yes
11105 fi
11106 else
11107 pkg_failed=untried
11108 fi
11109 if test -n "$XRES_LIBS"; then
11110 pkg_cv_XRES_LIBS="$XRES_LIBS"
11111 elif test -n "$PKG_CONFIG"; then
11112 if test -n "$PKG_CONFIG" && \
11113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto resourceproto >= \$RES_VERSION\""; } >&5
11114 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION") 2>&5
11115 ac_status=$?
11116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11117 test $ac_status = 0; }; then
11118 pkg_cv_XRES_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto resourceproto >= $RES_VERSION" 2>/dev/null`
11119 else
11120 pkg_failed=yes
11121 fi
11122 else
11123 pkg_failed=untried
11124 fi
11125
11126
11127
11128 if test $pkg_failed = yes; then
11129
11130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11131 _pkg_short_errors_supported=yes
11132 else
11133 _pkg_short_errors_supported=no
11134 fi
11135 if test $_pkg_short_errors_supported = yes; then
11136 XRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION" 2>&1`
11137 else
11138 XRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION" 2>&1`
11139 fi
11140 # Put the nasty error message in config.log where it belongs
11141 echo "$XRES_PKG_ERRORS" >&5
11142
11143 as_fn_error $? "Package requirements (x11 xext xextproto resourceproto >= $RES_VERSION) were not met:
11144
11145 $XRES_PKG_ERRORS
11146
11147 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11148 installed software in a non-standard prefix.
11149
11150 Alternatively, you may set the environment variables XRES_CFLAGS
11151 and XRES_LIBS to avoid the need to call pkg-config.
11152 See the pkg-config man page for more details.
11153 " "$LINENO" 5
11154 elif test $pkg_failed = untried; then
11155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11157 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11158 is in your PATH or set the PKG_CONFIG environment variable to the full
11159 path to pkg-config.
11160
11161 Alternatively, you may set the environment variables XRES_CFLAGS
11162 and XRES_LIBS to avoid the need to call pkg-config.
11163 See the pkg-config man page for more details.
11164
11165 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11166 See \`config.log' for more details" "$LINENO" 5; }
11167 else
11168 XRES_CFLAGS=$pkg_cv_XRES_CFLAGS
11169 XRES_LIBS=$pkg_cv_XRES_LIBS
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11171 $as_echo "yes" >&6; }
11172 :
11173 fi
11174
11175
11176 # Check whether --enable-malloc0returnsnull was given.
11177 if test "${enable_malloc0returnsnull+set}" = set; then :
11178 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
11179 else
11180 MALLOC_ZERO_RETURNS_NULL=auto
11181 fi
11182
11183
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
11185 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
11186 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
11187 if test "$cross_compiling" = yes; then :
11188 MALLOC_ZERO_RETURNS_NULL=yes
11189 else
11190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h. */
11192
11193 char *malloc();
11194 char *realloc();
11195 char *calloc();
11196 main() {
11197 char *m0, *r0, *c0, *p;
11198 m0 = malloc(0);
11199 p = malloc(10);
11200 r0 = realloc(p,0);
11201 c0 = calloc(0);
11202 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
11203 }
11204 _ACEOF
11205 if ac_fn_c_try_run "$LINENO"; then :
11206 MALLOC_ZERO_RETURNS_NULL=yes
11207 else
11208 MALLOC_ZERO_RETURNS_NULL=no
11209 fi
11210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11211 conftest.$ac_objext conftest.beam conftest.$ac_ext
11212 fi
11213
11214 fi
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
11216 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
11217
11218 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
11219 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
11220 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
11221 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
11222 else
11223 MALLOC_ZERO_CFLAGS=""
11224 XMALLOC_ZERO_CFLAGS=""
11225 XTMALLOC_ZERO_CFLAGS=""
11226 fi
11227
11228
11229
11230
11231
11232
11233 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xres.pc"
11234
11235 cat >confcache <<\_ACEOF
11236 # This file is a shell script that caches the results of configure
11237 # tests run on this system so they can be shared between configure
11238 # scripts and configure runs, see configure's option --config-cache.
11239 # It is not useful on other systems. If it contains results you don't
11240 # want to keep, you may remove or edit it.
11241 #
11242 # config.status only pays attention to the cache file if you give it
11243 # the --recheck option to rerun configure.
11244 #
11245 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11246 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11247 # following values.
11248
11249 _ACEOF
11250
11251 # The following way of writing the cache mishandles newlines in values,
11252 # but we know of no workaround that is simple, portable, and efficient.
11253 # So, we kill variables containing newlines.
11254 # Ultrix sh set writes to stderr and can't be redirected directly,
11255 # and sets the high bit in the cache file unless we assign to the vars.
11256 (
11257 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11258 eval ac_val=\$$ac_var
11259 case $ac_val in #(
11260 *${as_nl}*)
11261 case $ac_var in #(
11262 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11263 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11264 esac
11265 case $ac_var in #(
11266 _ | IFS | as_nl) ;; #(
11267 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11268 *) { eval $ac_var=; unset $ac_var;} ;;
11269 esac ;;
11270 esac
11271 done
11272
11273 (set) 2>&1 |
11274 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11275 *${as_nl}ac_space=\ *)
11276 # `set' does not quote correctly, so add quotes: double-quote
11277 # substitution turns \\\\ into \\, and sed turns \\ into \.
11278 sed -n \
11279 "s/'/'\\\\''/g;
11280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11281 ;; #(
11282 *)
11283 # `set' quotes correctly as required by POSIX, so do not add quotes.
11284 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11285 ;;
11286 esac |
11287 sort
11288 ) |
11289 sed '
11290 /^ac_cv_env_/b end
11291 t clear
11292 :clear
11293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11294 t end
11295 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11296 :end' >>confcache
11297 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11298 if test -w "$cache_file"; then
11299 if test "x$cache_file" != "x/dev/null"; then
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11301 $as_echo "$as_me: updating cache $cache_file" >&6;}
11302 if test ! -f "$cache_file" || test -h "$cache_file"; then
11303 cat confcache >"$cache_file"
11304 else
11305 case $cache_file in #(
11306 */* | ?:*)
11307 mv -f confcache "$cache_file"$$ &&
11308 mv -f "$cache_file"$$ "$cache_file" ;; #(
11309 *)
11310 mv -f confcache "$cache_file" ;;
11311 esac
11312 fi
11313 fi
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11316 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11317 fi
11318 fi
11319 rm -f confcache
11320
11321 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11322 # Let make expand exec_prefix.
11323 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11324
11325 DEFS=-DHAVE_CONFIG_H
11326
11327 ac_libobjs=
11328 ac_ltlibobjs=
11329 U=
11330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11331 # 1. Remove the extension, and $U if already installed.
11332 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11333 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11334 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11335 # will be set to the directory where LIBOBJS objects are built.
11336 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11337 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11338 done
11339 LIBOBJS=$ac_libobjs
11340
11341 LTLIBOBJS=$ac_ltlibobjs
11342
11343
11344 if test -n "$EXEEXT"; then
11345 am__EXEEXT_TRUE=
11346 am__EXEEXT_FALSE='#'
11347 else
11348 am__EXEEXT_TRUE='#'
11349 am__EXEEXT_FALSE=
11350 fi
11351
11352 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11353 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11355 fi
11356 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11357 as_fn_error $? "conditional \"AMDEP\" was never defined.
11358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11359 fi
11360 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11361 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11363 fi
11364
11365 : "${CONFIG_STATUS=./config.status}"
11366 ac_write_fail=0
11367 ac_clean_files_save=$ac_clean_files
11368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11371 as_write_fail=0
11372 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11373 #! $SHELL
11374 # Generated by $as_me.
11375 # Run this file to recreate the current configuration.
11376 # Compiler output produced by configure, useful for debugging
11377 # configure, is in config.log if it exists.
11378
11379 debug=false
11380 ac_cs_recheck=false
11381 ac_cs_silent=false
11382
11383 SHELL=\${CONFIG_SHELL-$SHELL}
11384 export SHELL
11385 _ASEOF
11386 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11387 ## -------------------- ##
11388 ## M4sh Initialization. ##
11389 ## -------------------- ##
11390
11391 # Be more Bourne compatible
11392 DUALCASE=1; export DUALCASE # for MKS sh
11393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11394 emulate sh
11395 NULLCMD=:
11396 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11397 # is contrary to our usage. Disable this feature.
11398 alias -g '${1+"$@"}'='"$@"'
11399 setopt NO_GLOB_SUBST
11400 else
11401 case `(set -o) 2>/dev/null` in #(
11402 *posix*) :
11403 set -o posix ;; #(
11404 *) :
11405 ;;
11406 esac
11407 fi
11408
11409
11410 as_nl='
11411 '
11412 export as_nl
11413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11417 # Prefer a ksh shell builtin over an external printf program on Solaris,
11418 # but without wasting forks for bash or zsh.
11419 if test -z "$BASH_VERSION$ZSH_VERSION" \
11420 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11421 as_echo='print -r --'
11422 as_echo_n='print -rn --'
11423 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11424 as_echo='printf %s\n'
11425 as_echo_n='printf %s'
11426 else
11427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11429 as_echo_n='/usr/ucb/echo -n'
11430 else
11431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11432 as_echo_n_body='eval
11433 arg=$1;
11434 case $arg in #(
11435 *"$as_nl"*)
11436 expr "X$arg" : "X\\(.*\\)$as_nl";
11437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11438 esac;
11439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11440 '
11441 export as_echo_n_body
11442 as_echo_n='sh -c $as_echo_n_body as_echo'
11443 fi
11444 export as_echo_body
11445 as_echo='sh -c $as_echo_body as_echo'
11446 fi
11447
11448 # The user is always right.
11449 if test "${PATH_SEPARATOR+set}" != set; then
11450 PATH_SEPARATOR=:
11451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11453 PATH_SEPARATOR=';'
11454 }
11455 fi
11456
11457
11458 # IFS
11459 # We need space, tab and new line, in precisely that order. Quoting is
11460 # there to prevent editors from complaining about space-tab.
11461 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11462 # splitting by setting IFS to empty value.)
11463 IFS=" "" $as_nl"
11464
11465 # Find who we are. Look in the path if we contain no directory separator.
11466 as_myself=
11467 case $0 in #((
11468 *[\\/]* ) as_myself=$0 ;;
11469 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in $PATH
11471 do
11472 IFS=$as_save_IFS
11473 test -z "$as_dir" && as_dir=.
11474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11475 done
11476 IFS=$as_save_IFS
11477
11478 ;;
11479 esac
11480 # We did not find ourselves, most probably we were run as `sh COMMAND'
11481 # in which case we are not to be found in the path.
11482 if test "x$as_myself" = x; then
11483 as_myself=$0
11484 fi
11485 if test ! -f "$as_myself"; then
11486 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11487 exit 1
11488 fi
11489
11490 # Unset variables that we do not need and which cause bugs (e.g. in
11491 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11492 # suppresses any "Segmentation fault" message there. '((' could
11493 # trigger a bug in pdksh 5.2.14.
11494 for as_var in BASH_ENV ENV MAIL MAILPATH
11495 do eval test x\${$as_var+set} = xset \
11496 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11497 done
11498 PS1='$ '
11499 PS2='> '
11500 PS4='+ '
11501
11502 # NLS nuisances.
11503 LC_ALL=C
11504 export LC_ALL
11505 LANGUAGE=C
11506 export LANGUAGE
11507
11508 # CDPATH.
11509 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11510
11511
11512 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11513 # ----------------------------------------
11514 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11515 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11516 # script with STATUS, using 1 if that was 0.
11517 as_fn_error ()
11518 {
11519 as_status=$1; test $as_status -eq 0 && as_status=1
11520 if test "$4"; then
11521 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11522 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11523 fi
11524 $as_echo "$as_me: error: $2" >&2
11525 as_fn_exit $as_status
11526 } # as_fn_error
11527
11528
11529 # as_fn_set_status STATUS
11530 # -----------------------
11531 # Set $? to STATUS, without forking.
11532 as_fn_set_status ()
11533 {
11534 return $1
11535 } # as_fn_set_status
11536
11537 # as_fn_exit STATUS
11538 # -----------------
11539 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11540 as_fn_exit ()
11541 {
11542 set +e
11543 as_fn_set_status $1
11544 exit $1
11545 } # as_fn_exit
11546
11547 # as_fn_unset VAR
11548 # ---------------
11549 # Portably unset VAR.
11550 as_fn_unset ()
11551 {
11552 { eval $1=; unset $1;}
11553 }
11554 as_unset=as_fn_unset
11555 # as_fn_append VAR VALUE
11556 # ----------------------
11557 # Append the text in VALUE to the end of the definition contained in VAR. Take
11558 # advantage of any shell optimizations that allow amortized linear growth over
11559 # repeated appends, instead of the typical quadratic growth present in naive
11560 # implementations.
11561 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11562 eval 'as_fn_append ()
11563 {
11564 eval $1+=\$2
11565 }'
11566 else
11567 as_fn_append ()
11568 {
11569 eval $1=\$$1\$2
11570 }
11571 fi # as_fn_append
11572
11573 # as_fn_arith ARG...
11574 # ------------------
11575 # Perform arithmetic evaluation on the ARGs, and store the result in the
11576 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11577 # must be portable across $(()) and expr.
11578 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11579 eval 'as_fn_arith ()
11580 {
11581 as_val=$(( $* ))
11582 }'
11583 else
11584 as_fn_arith ()
11585 {
11586 as_val=`expr "$@" || test $? -eq 1`
11587 }
11588 fi # as_fn_arith
11589
11590
11591 if expr a : '\(a\)' >/dev/null 2>&1 &&
11592 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11593 as_expr=expr
11594 else
11595 as_expr=false
11596 fi
11597
11598 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11599 as_basename=basename
11600 else
11601 as_basename=false
11602 fi
11603
11604 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11605 as_dirname=dirname
11606 else
11607 as_dirname=false
11608 fi
11609
11610 as_me=`$as_basename -- "$0" ||
11611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11612 X"$0" : 'X\(//\)$' \| \
11613 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11614 $as_echo X/"$0" |
11615 sed '/^.*\/\([^/][^/]*\)\/*$/{
11616 s//\1/
11617 q
11618 }
11619 /^X\/\(\/\/\)$/{
11620 s//\1/
11621 q
11622 }
11623 /^X\/\(\/\).*/{
11624 s//\1/
11625 q
11626 }
11627 s/.*/./; q'`
11628
11629 # Avoid depending upon Character Ranges.
11630 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11631 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11632 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11633 as_cr_digits='0123456789'
11634 as_cr_alnum=$as_cr_Letters$as_cr_digits
11635
11636 ECHO_C= ECHO_N= ECHO_T=
11637 case `echo -n x` in #(((((
11638 -n*)
11639 case `echo 'xy\c'` in
11640 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11641 xy) ECHO_C='\c';;
11642 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11643 ECHO_T=' ';;
11644 esac;;
11645 *)
11646 ECHO_N='-n';;
11647 esac
11648
11649 rm -f conf$$ conf$$.exe conf$$.file
11650 if test -d conf$$.dir; then
11651 rm -f conf$$.dir/conf$$.file
11652 else
11653 rm -f conf$$.dir
11654 mkdir conf$$.dir 2>/dev/null
11655 fi
11656 if (echo >conf$$.file) 2>/dev/null; then
11657 if ln -s conf$$.file conf$$ 2>/dev/null; then
11658 as_ln_s='ln -s'
11659 # ... but there are two gotchas:
11660 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11661 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11662 # In both cases, we have to default to `cp -p'.
11663 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11664 as_ln_s='cp -p'
11665 elif ln conf$$.file conf$$ 2>/dev/null; then
11666 as_ln_s=ln
11667 else
11668 as_ln_s='cp -p'
11669 fi
11670 else
11671 as_ln_s='cp -p'
11672 fi
11673 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11674 rmdir conf$$.dir 2>/dev/null
11675
11676
11677 # as_fn_mkdir_p
11678 # -------------
11679 # Create "$as_dir" as a directory, including parents if necessary.
11680 as_fn_mkdir_p ()
11681 {
11682
11683 case $as_dir in #(
11684 -*) as_dir=./$as_dir;;
11685 esac
11686 test -d "$as_dir" || eval $as_mkdir_p || {
11687 as_dirs=
11688 while :; do
11689 case $as_dir in #(
11690 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11691 *) as_qdir=$as_dir;;
11692 esac
11693 as_dirs="'$as_qdir' $as_dirs"
11694 as_dir=`$as_dirname -- "$as_dir" ||
11695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11696 X"$as_dir" : 'X\(//\)[^/]' \| \
11697 X"$as_dir" : 'X\(//\)$' \| \
11698 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11699 $as_echo X"$as_dir" |
11700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11701 s//\1/
11702 q
11703 }
11704 /^X\(\/\/\)[^/].*/{
11705 s//\1/
11706 q
11707 }
11708 /^X\(\/\/\)$/{
11709 s//\1/
11710 q
11711 }
11712 /^X\(\/\).*/{
11713 s//\1/
11714 q
11715 }
11716 s/.*/./; q'`
11717 test -d "$as_dir" && break
11718 done
11719 test -z "$as_dirs" || eval "mkdir $as_dirs"
11720 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11721
11722
11723 } # as_fn_mkdir_p
11724 if mkdir -p . 2>/dev/null; then
11725 as_mkdir_p='mkdir -p "$as_dir"'
11726 else
11727 test -d ./-p && rmdir ./-p
11728 as_mkdir_p=false
11729 fi
11730
11731 if test -x / >/dev/null 2>&1; then
11732 as_test_x='test -x'
11733 else
11734 if ls -dL / >/dev/null 2>&1; then
11735 as_ls_L_option=L
11736 else
11737 as_ls_L_option=
11738 fi
11739 as_test_x='
11740 eval sh -c '\''
11741 if test -d "$1"; then
11742 test -d "$1/.";
11743 else
11744 case $1 in #(
11745 -*)set "./$1";;
11746 esac;
11747 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11748 ???[sx]*):;;*)false;;esac;fi
11749 '\'' sh
11750 '
11751 fi
11752 as_executable_p=$as_test_x
11753
11754 # Sed expression to map a string onto a valid CPP name.
11755 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11756
11757 # Sed expression to map a string onto a valid variable name.
11758 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11759
11760
11761 exec 6>&1
11762 ## ----------------------------------- ##
11763 ## Main body of $CONFIG_STATUS script. ##
11764 ## ----------------------------------- ##
11765 _ASEOF
11766 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11767
11768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11769 # Save the log message, to keep $0 and so on meaningful, and to
11770 # report actual input values of CONFIG_FILES etc. instead of their
11771 # values after options handling.
11772 ac_log="
11773 This file was extended by libXres $as_me 1.0.5, which was
11774 generated by GNU Autoconf 2.68. Invocation command line was
11775
11776 CONFIG_FILES = $CONFIG_FILES
11777 CONFIG_HEADERS = $CONFIG_HEADERS
11778 CONFIG_LINKS = $CONFIG_LINKS
11779 CONFIG_COMMANDS = $CONFIG_COMMANDS
11780 $ $0 $@
11781
11782 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11783 "
11784
11785 _ACEOF
11786
11787 case $ac_config_files in *"
11788 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11789 esac
11790
11791 case $ac_config_headers in *"
11792 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11793 esac
11794
11795
11796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11797 # Files that config.status was made for.
11798 config_files="$ac_config_files"
11799 config_headers="$ac_config_headers"
11800 config_commands="$ac_config_commands"
11801
11802 _ACEOF
11803
11804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11805 ac_cs_usage="\
11806 \`$as_me' instantiates files and other configuration actions
11807 from templates according to the current configuration. Unless the files
11808 and actions are specified as TAGs, all are instantiated by default.
11809
11810 Usage: $0 [OPTION]... [TAG]...
11811
11812 -h, --help print this help, then exit
11813 -V, --version print version number and configuration settings, then exit
11814 --config print configuration, then exit
11815 -q, --quiet, --silent
11816 do not print progress messages
11817 -d, --debug don't remove temporary files
11818 --recheck update $as_me by reconfiguring in the same conditions
11819 --file=FILE[:TEMPLATE]
11820 instantiate the configuration file FILE
11821 --header=FILE[:TEMPLATE]
11822 instantiate the configuration header FILE
11823
11824 Configuration files:
11825 $config_files
11826
11827 Configuration headers:
11828 $config_headers
11829
11830 Configuration commands:
11831 $config_commands
11832
11833 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11834
11835 _ACEOF
11836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11837 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11838 ac_cs_version="\\
11839 libXres config.status 1.0.5
11840 configured by $0, generated by GNU Autoconf 2.68,
11841 with options \\"\$ac_cs_config\\"
11842
11843 Copyright (C) 2010 Free Software Foundation, Inc.
11844 This config.status script is free software; the Free Software Foundation
11845 gives unlimited permission to copy, distribute and modify it."
11846
11847 ac_pwd='$ac_pwd'
11848 srcdir='$srcdir'
11849 INSTALL='$INSTALL'
11850 MKDIR_P='$MKDIR_P'
11851 AWK='$AWK'
11852 test -n "\$AWK" || AWK=awk
11853 _ACEOF
11854
11855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11856 # The default lists apply if the user does not specify any file.
11857 ac_need_defaults=:
11858 while test $# != 0
11859 do
11860 case $1 in
11861 --*=?*)
11862 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11863 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11864 ac_shift=:
11865 ;;
11866 --*=)
11867 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11868 ac_optarg=
11869 ac_shift=:
11870 ;;
11871 *)
11872 ac_option=$1
11873 ac_optarg=$2
11874 ac_shift=shift
11875 ;;
11876 esac
11877
11878 case $ac_option in
11879 # Handling of the options.
11880 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11881 ac_cs_recheck=: ;;
11882 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11883 $as_echo "$ac_cs_version"; exit ;;
11884 --config | --confi | --conf | --con | --co | --c )
11885 $as_echo "$ac_cs_config"; exit ;;
11886 --debug | --debu | --deb | --de | --d | -d )
11887 debug=: ;;
11888 --file | --fil | --fi | --f )
11889 $ac_shift
11890 case $ac_optarg in
11891 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11892 '') as_fn_error $? "missing file argument" ;;
11893 esac
11894 as_fn_append CONFIG_FILES " '$ac_optarg'"
11895 ac_need_defaults=false;;
11896 --header | --heade | --head | --hea )
11897 $ac_shift
11898 case $ac_optarg in
11899 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11900 esac
11901 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11902 ac_need_defaults=false;;
11903 --he | --h)
11904 # Conflict between --help and --header
11905 as_fn_error $? "ambiguous option: \`$1'
11906 Try \`$0 --help' for more information.";;
11907 --help | --hel | -h )
11908 $as_echo "$ac_cs_usage"; exit ;;
11909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11910 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11911 ac_cs_silent=: ;;
11912
11913 # This is an error.
11914 -*) as_fn_error $? "unrecognized option: \`$1'
11915 Try \`$0 --help' for more information." ;;
11916
11917 *) as_fn_append ac_config_targets " $1"
11918 ac_need_defaults=false ;;
11919
11920 esac
11921 shift
11922 done
11923
11924 ac_configure_extra_args=
11925
11926 if $ac_cs_silent; then
11927 exec 6>/dev/null
11928 ac_configure_extra_args="$ac_configure_extra_args --silent"
11929 fi
11930
11931 _ACEOF
11932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11933 if \$ac_cs_recheck; then
11934 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11935 shift
11936 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11937 CONFIG_SHELL='$SHELL'
11938 export CONFIG_SHELL
11939 exec "\$@"
11940 fi
11941
11942 _ACEOF
11943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11944 exec 5>>config.log
11945 {
11946 echo
11947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11948 ## Running $as_me. ##
11949 _ASBOX
11950 $as_echo "$ac_log"
11951 } >&5
11952
11953 _ACEOF
11954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11955 #
11956 # INIT-COMMANDS
11957 #
11958 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11959
11960
11961 # The HP-UX ksh and POSIX shell print the target directory to stdout
11962 # if CDPATH is set.
11963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11964
11965 sed_quote_subst='$sed_quote_subst'
11966 double_quote_subst='$double_quote_subst'
11967 delay_variable_subst='$delay_variable_subst'
11968 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11969 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11970 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11971 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11972 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11973 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11974 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11975 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11976 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11977 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11978 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11979 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11980 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11981 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11982 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11983 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11984 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11985 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11986 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11987 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11988 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11989 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11990 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11991 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11992 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11993 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11994 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11995 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11996 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11997 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11998 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11999 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12000 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12001 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12002 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12003 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12004 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12005 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12006 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12007 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12008 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12009 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12010 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12011 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12012 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12013 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12014 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12015 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12016 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"`'
12017 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12018 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12019 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12020 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12021 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12022 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12023 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12024 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12025 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12026 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12027 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12028 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12029 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12030 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12031 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12032 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12033 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12034 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12035 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12036 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12037 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12038 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12039 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12040 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12041 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12042 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12043 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12044 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12045 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12046 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12047 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12048 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12049 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12050 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12051 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12052 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12053 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12054 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12055 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12056 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12057 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12058 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12059 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12060 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12061 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12062 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12063 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12064 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12065 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12066 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12067 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12068 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12069 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12070 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12071 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12072 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12073 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12074 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12075 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12076 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12077 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12078 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12079 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12080 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12081 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12082 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12083 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12084 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12085 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12086 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12087 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12088
12089 LTCC='$LTCC'
12090 LTCFLAGS='$LTCFLAGS'
12091 compiler='$compiler_DEFAULT'
12092
12093 # A function that is used when there is no print builtin or printf.
12094 func_fallback_echo ()
12095 {
12096 eval 'cat <<_LTECHO_EOF
12097 \$1
12098 _LTECHO_EOF'
12099 }
12100
12101 # Quote evaled strings.
12102 for var in SHELL \
12103 ECHO \
12104 SED \
12105 GREP \
12106 EGREP \
12107 FGREP \
12108 LD \
12109 NM \
12110 LN_S \
12111 lt_SP2NL \
12112 lt_NL2SP \
12113 reload_flag \
12114 OBJDUMP \
12115 deplibs_check_method \
12116 file_magic_cmd \
12117 AR \
12118 AR_FLAGS \
12119 STRIP \
12120 RANLIB \
12121 CC \
12122 CFLAGS \
12123 compiler \
12124 lt_cv_sys_global_symbol_pipe \
12125 lt_cv_sys_global_symbol_to_cdecl \
12126 lt_cv_sys_global_symbol_to_c_name_address \
12127 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12128 lt_prog_compiler_no_builtin_flag \
12129 lt_prog_compiler_wl \
12130 lt_prog_compiler_pic \
12131 lt_prog_compiler_static \
12132 lt_cv_prog_compiler_c_o \
12133 need_locks \
12134 DSYMUTIL \
12135 NMEDIT \
12136 LIPO \
12137 OTOOL \
12138 OTOOL64 \
12139 shrext_cmds \
12140 export_dynamic_flag_spec \
12141 whole_archive_flag_spec \
12142 compiler_needs_object \
12143 with_gnu_ld \
12144 allow_undefined_flag \
12145 no_undefined_flag \
12146 hardcode_libdir_flag_spec \
12147 hardcode_libdir_flag_spec_ld \
12148 hardcode_libdir_separator \
12149 fix_srcfile_path \
12150 exclude_expsyms \
12151 include_expsyms \
12152 file_list_spec \
12153 variables_saved_for_relink \
12154 libname_spec \
12155 library_names_spec \
12156 soname_spec \
12157 install_override_mode \
12158 finish_eval \
12159 old_striplib \
12160 striplib; do
12161 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12162 *[\\\\\\\`\\"\\\$]*)
12163 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12164 ;;
12165 *)
12166 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12167 ;;
12168 esac
12169 done
12170
12171 # Double-quote double-evaled strings.
12172 for var in reload_cmds \
12173 old_postinstall_cmds \
12174 old_postuninstall_cmds \
12175 old_archive_cmds \
12176 extract_expsyms_cmds \
12177 old_archive_from_new_cmds \
12178 old_archive_from_expsyms_cmds \
12179 archive_cmds \
12180 archive_expsym_cmds \
12181 module_cmds \
12182 module_expsym_cmds \
12183 export_symbols_cmds \
12184 prelink_cmds \
12185 postinstall_cmds \
12186 postuninstall_cmds \
12187 finish_cmds \
12188 sys_lib_search_path_spec \
12189 sys_lib_dlsearch_path_spec; do
12190 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12191 *[\\\\\\\`\\"\\\$]*)
12192 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12193 ;;
12194 *)
12195 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12196 ;;
12197 esac
12198 done
12199
12200 ac_aux_dir='$ac_aux_dir'
12201 xsi_shell='$xsi_shell'
12202 lt_shell_append='$lt_shell_append'
12203
12204 # See if we are running on zsh, and set the options which allow our
12205 # commands through without removal of \ escapes INIT.
12206 if test -n "\${ZSH_VERSION+set}" ; then
12207 setopt NO_GLOB_SUBST
12208 fi
12209
12210
12211 PACKAGE='$PACKAGE'
12212 VERSION='$VERSION'
12213 TIMESTAMP='$TIMESTAMP'
12214 RM='$RM'
12215 ofile='$ofile'
12216
12217
12218
12219
12220 _ACEOF
12221
12222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12223
12224 # Handling of arguments.
12225 for ac_config_target in $ac_config_targets
12226 do
12227 case $ac_config_target in
12228 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12229 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12230 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12231 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12232 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12233 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12234 "xres.pc") CONFIG_FILES="$CONFIG_FILES xres.pc" ;;
12235
12236 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12237 esac
12238 done
12239
12240
12241 # If the user did not use the arguments to specify the items to instantiate,
12242 # then the envvar interface is used. Set only those that are not.
12243 # We use the long form for the default assignment because of an extremely
12244 # bizarre bug on SunOS 4.1.3.
12245 if $ac_need_defaults; then
12246 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12247 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12248 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12249 fi
12250
12251 # Have a temporary directory for convenience. Make it in the build tree
12252 # simply because there is no reason against having it here, and in addition,
12253 # creating and moving files from /tmp can sometimes cause problems.
12254 # Hook for its removal unless debugging.
12255 # Note that there is a small window in which the directory will not be cleaned:
12256 # after its creation but before its name has been assigned to `$tmp'.
12257 $debug ||
12258 {
12259 tmp= ac_tmp=
12260 trap 'exit_status=$?
12261 : "${ac_tmp:=$tmp}"
12262 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12263 ' 0
12264 trap 'as_fn_exit 1' 1 2 13 15
12265 }
12266 # Create a (secure) tmp directory for tmp files.
12267
12268 {
12269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12270 test -d "$tmp"
12271 } ||
12272 {
12273 tmp=./conf$$-$RANDOM
12274 (umask 077 && mkdir "$tmp")
12275 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12276 ac_tmp=$tmp
12277
12278 # Set up the scripts for CONFIG_FILES section.
12279 # No need to generate them if there are no CONFIG_FILES.
12280 # This happens for instance with `./config.status config.h'.
12281 if test -n "$CONFIG_FILES"; then
12282
12283
12284 ac_cr=`echo X | tr X '\015'`
12285 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12286 # But we know of no other shell where ac_cr would be empty at this
12287 # point, so we can use a bashism as a fallback.
12288 if test "x$ac_cr" = x; then
12289 eval ac_cr=\$\'\\r\'
12290 fi
12291 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12292 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12293 ac_cs_awk_cr='\\r'
12294 else
12295 ac_cs_awk_cr=$ac_cr
12296 fi
12297
12298 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12299 _ACEOF
12300
12301
12302 {
12303 echo "cat >conf$$subs.awk <<_ACEOF" &&
12304 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12305 echo "_ACEOF"
12306 } >conf$$subs.sh ||
12307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12308 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12309 ac_delim='%!_!# '
12310 for ac_last_try in false false false false false :; do
12311 . ./conf$$subs.sh ||
12312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12313
12314 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12315 if test $ac_delim_n = $ac_delim_num; then
12316 break
12317 elif $ac_last_try; then
12318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12319 else
12320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12321 fi
12322 done
12323 rm -f conf$$subs.sh
12324
12325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12326 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12327 _ACEOF
12328 sed -n '
12329 h
12330 s/^/S["/; s/!.*/"]=/
12331 p
12332 g
12333 s/^[^!]*!//
12334 :repl
12335 t repl
12336 s/'"$ac_delim"'$//
12337 t delim
12338 :nl
12339 h
12340 s/\(.\{148\}\)..*/\1/
12341 t more1
12342 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12343 p
12344 n
12345 b repl
12346 :more1
12347 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12348 p
12349 g
12350 s/.\{148\}//
12351 t nl
12352 :delim
12353 h
12354 s/\(.\{148\}\)..*/\1/
12355 t more2
12356 s/["\\]/\\&/g; s/^/"/; s/$/"/
12357 p
12358 b
12359 :more2
12360 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12361 p
12362 g
12363 s/.\{148\}//
12364 t delim
12365 ' <conf$$subs.awk | sed '
12366 /^[^""]/{
12367 N
12368 s/\n//
12369 }
12370 ' >>$CONFIG_STATUS || ac_write_fail=1
12371 rm -f conf$$subs.awk
12372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12373 _ACAWK
12374 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12375 for (key in S) S_is_set[key] = 1
12376 FS = ""
12377
12378 }
12379 {
12380 line = $ 0
12381 nfields = split(line, field, "@")
12382 substed = 0
12383 len = length(field[1])
12384 for (i = 2; i < nfields; i++) {
12385 key = field[i]
12386 keylen = length(key)
12387 if (S_is_set[key]) {
12388 value = S[key]
12389 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12390 len += length(value) + length(field[++i])
12391 substed = 1
12392 } else
12393 len += 1 + keylen
12394 }
12395
12396 print line
12397 }
12398
12399 _ACAWK
12400 _ACEOF
12401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12402 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12403 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12404 else
12405 cat
12406 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12407 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12408 _ACEOF
12409
12410 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12411 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12412 # trailing colons and then remove the whole line if VPATH becomes empty
12413 # (actually we leave an empty line to preserve line numbers).
12414 if test "x$srcdir" = x.; then
12415 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12416 h
12417 s///
12418 s/^/:/
12419 s/[ ]*$/:/
12420 s/:\$(srcdir):/:/g
12421 s/:\${srcdir}:/:/g
12422 s/:@srcdir@:/:/g
12423 s/^:*//
12424 s/:*$//
12425 x
12426 s/\(=[ ]*\).*/\1/
12427 G
12428 s/\n//
12429 s/^[^=]*=[ ]*$//
12430 }'
12431 fi
12432
12433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12434 fi # test -n "$CONFIG_FILES"
12435
12436 # Set up the scripts for CONFIG_HEADERS section.
12437 # No need to generate them if there are no CONFIG_HEADERS.
12438 # This happens for instance with `./config.status Makefile'.
12439 if test -n "$CONFIG_HEADERS"; then
12440 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12441 BEGIN {
12442 _ACEOF
12443
12444 # Transform confdefs.h into an awk script `defines.awk', embedded as
12445 # here-document in config.status, that substitutes the proper values into
12446 # config.h.in to produce config.h.
12447
12448 # Create a delimiter string that does not exist in confdefs.h, to ease
12449 # handling of long lines.
12450 ac_delim='%!_!# '
12451 for ac_last_try in false false :; do
12452 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12453 if test -z "$ac_tt"; then
12454 break
12455 elif $ac_last_try; then
12456 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12457 else
12458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12459 fi
12460 done
12461
12462 # For the awk script, D is an array of macro values keyed by name,
12463 # likewise P contains macro parameters if any. Preserve backslash
12464 # newline sequences.
12465
12466 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12467 sed -n '
12468 s/.\{148\}/&'"$ac_delim"'/g
12469 t rset
12470 :rset
12471 s/^[ ]*#[ ]*define[ ][ ]*/ /
12472 t def
12473 d
12474 :def
12475 s/\\$//
12476 t bsnl
12477 s/["\\]/\\&/g
12478 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12479 D["\1"]=" \3"/p
12480 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12481 d
12482 :bsnl
12483 s/["\\]/\\&/g
12484 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12485 D["\1"]=" \3\\\\\\n"\\/p
12486 t cont
12487 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12488 t cont
12489 d
12490 :cont
12491 n
12492 s/.\{148\}/&'"$ac_delim"'/g
12493 t clear
12494 :clear
12495 s/\\$//
12496 t bsnlc
12497 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12498 d
12499 :bsnlc
12500 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12501 b cont
12502 ' <confdefs.h | sed '
12503 s/'"$ac_delim"'/"\\\
12504 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12505
12506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12507 for (key in D) D_is_set[key] = 1
12508 FS = ""
12509 }
12510 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12511 line = \$ 0
12512 split(line, arg, " ")
12513 if (arg[1] == "#") {
12514 defundef = arg[2]
12515 mac1 = arg[3]
12516 } else {
12517 defundef = substr(arg[1], 2)
12518 mac1 = arg[2]
12519 }
12520 split(mac1, mac2, "(") #)
12521 macro = mac2[1]
12522 prefix = substr(line, 1, index(line, defundef) - 1)
12523 if (D_is_set[macro]) {
12524 # Preserve the white space surrounding the "#".
12525 print prefix "define", macro P[macro] D[macro]
12526 next
12527 } else {
12528 # Replace #undef with comments. This is necessary, for example,
12529 # in the case of _POSIX_SOURCE, which is predefined and required
12530 # on some systems where configure will not decide to define it.
12531 if (defundef == "undef") {
12532 print "/*", prefix defundef, macro, "*/"
12533 next
12534 }
12535 }
12536 }
12537 { print }
12538 _ACAWK
12539 _ACEOF
12540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12541 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12542 fi # test -n "$CONFIG_HEADERS"
12543
12544
12545 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12546 shift
12547 for ac_tag
12548 do
12549 case $ac_tag in
12550 :[FHLC]) ac_mode=$ac_tag; continue;;
12551 esac
12552 case $ac_mode$ac_tag in
12553 :[FHL]*:*);;
12554 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12555 :[FH]-) ac_tag=-:-;;
12556 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12557 esac
12558 ac_save_IFS=$IFS
12559 IFS=:
12560 set x $ac_tag
12561 IFS=$ac_save_IFS
12562 shift
12563 ac_file=$1
12564 shift
12565
12566 case $ac_mode in
12567 :L) ac_source=$1;;
12568 :[FH])
12569 ac_file_inputs=
12570 for ac_f
12571 do
12572 case $ac_f in
12573 -) ac_f="$ac_tmp/stdin";;
12574 *) # Look for the file first in the build tree, then in the source tree
12575 # (if the path is not absolute). The absolute path cannot be DOS-style,
12576 # because $ac_f cannot contain `:'.
12577 test -f "$ac_f" ||
12578 case $ac_f in
12579 [\\/$]*) false;;
12580 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12581 esac ||
12582 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12583 esac
12584 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12585 as_fn_append ac_file_inputs " '$ac_f'"
12586 done
12587
12588 # Let's still pretend it is `configure' which instantiates (i.e., don't
12589 # use $as_me), people would be surprised to read:
12590 # /* config.h. Generated by config.status. */
12591 configure_input='Generated from '`
12592 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12593 `' by configure.'
12594 if test x"$ac_file" != x-; then
12595 configure_input="$ac_file. $configure_input"
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12597 $as_echo "$as_me: creating $ac_file" >&6;}
12598 fi
12599 # Neutralize special characters interpreted by sed in replacement strings.
12600 case $configure_input in #(
12601 *\&* | *\|* | *\\* )
12602 ac_sed_conf_input=`$as_echo "$configure_input" |
12603 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12604 *) ac_sed_conf_input=$configure_input;;
12605 esac
12606
12607 case $ac_tag in
12608 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12610 esac
12611 ;;
12612 esac
12613
12614 ac_dir=`$as_dirname -- "$ac_file" ||
12615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12616 X"$ac_file" : 'X\(//\)[^/]' \| \
12617 X"$ac_file" : 'X\(//\)$' \| \
12618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12619 $as_echo X"$ac_file" |
12620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12621 s//\1/
12622 q
12623 }
12624 /^X\(\/\/\)[^/].*/{
12625 s//\1/
12626 q
12627 }
12628 /^X\(\/\/\)$/{
12629 s//\1/
12630 q
12631 }
12632 /^X\(\/\).*/{
12633 s//\1/
12634 q
12635 }
12636 s/.*/./; q'`
12637 as_dir="$ac_dir"; as_fn_mkdir_p
12638 ac_builddir=.
12639
12640 case "$ac_dir" in
12641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12642 *)
12643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12644 # A ".." for each directory in $ac_dir_suffix.
12645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12646 case $ac_top_builddir_sub in
12647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12649 esac ;;
12650 esac
12651 ac_abs_top_builddir=$ac_pwd
12652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12653 # for backward compatibility:
12654 ac_top_builddir=$ac_top_build_prefix
12655
12656 case $srcdir in
12657 .) # We are building in place.
12658 ac_srcdir=.
12659 ac_top_srcdir=$ac_top_builddir_sub
12660 ac_abs_top_srcdir=$ac_pwd ;;
12661 [\\/]* | ?:[\\/]* ) # Absolute name.
12662 ac_srcdir=$srcdir$ac_dir_suffix;
12663 ac_top_srcdir=$srcdir
12664 ac_abs_top_srcdir=$srcdir ;;
12665 *) # Relative name.
12666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12667 ac_top_srcdir=$ac_top_build_prefix$srcdir
12668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12669 esac
12670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12671
12672
12673 case $ac_mode in
12674 :F)
12675 #
12676 # CONFIG_FILE
12677 #
12678
12679 case $INSTALL in
12680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12682 esac
12683 ac_MKDIR_P=$MKDIR_P
12684 case $MKDIR_P in
12685 [\\/$]* | ?:[\\/]* ) ;;
12686 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12687 esac
12688 _ACEOF
12689
12690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12691 # If the template does not know about datarootdir, expand it.
12692 # FIXME: This hack should be removed a few years after 2.60.
12693 ac_datarootdir_hack=; ac_datarootdir_seen=
12694 ac_sed_dataroot='
12695 /datarootdir/ {
12696 p
12697 q
12698 }
12699 /@datadir@/p
12700 /@docdir@/p
12701 /@infodir@/p
12702 /@localedir@/p
12703 /@mandir@/p'
12704 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12705 *datarootdir*) ac_datarootdir_seen=yes;;
12706 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12708 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12709 _ACEOF
12710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12711 ac_datarootdir_hack='
12712 s&@datadir@&$datadir&g
12713 s&@docdir@&$docdir&g
12714 s&@infodir@&$infodir&g
12715 s&@localedir@&$localedir&g
12716 s&@mandir@&$mandir&g
12717 s&\\\${datarootdir}&$datarootdir&g' ;;
12718 esac
12719 _ACEOF
12720
12721 # Neutralize VPATH when `$srcdir' = `.'.
12722 # Shell code in configure.ac might set extrasub.
12723 # FIXME: do we really want to maintain this feature?
12724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12725 ac_sed_extra="$ac_vpsub
12726 $extrasub
12727 _ACEOF
12728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12729 :t
12730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12731 s|@configure_input@|$ac_sed_conf_input|;t t
12732 s&@top_builddir@&$ac_top_builddir_sub&;t t
12733 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12734 s&@srcdir@&$ac_srcdir&;t t
12735 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12736 s&@top_srcdir@&$ac_top_srcdir&;t t
12737 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12738 s&@builddir@&$ac_builddir&;t t
12739 s&@abs_builddir@&$ac_abs_builddir&;t t
12740 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12741 s&@INSTALL@&$ac_INSTALL&;t t
12742 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12743 $ac_datarootdir_hack
12744 "
12745 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12746 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12747
12748 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12749 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12750 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12751 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12753 which seems to be undefined. Please make sure it is defined" >&5
12754 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12755 which seems to be undefined. Please make sure it is defined" >&2;}
12756
12757 rm -f "$ac_tmp/stdin"
12758 case $ac_file in
12759 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12760 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12761 esac \
12762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12763 ;;
12764 :H)
12765 #
12766 # CONFIG_HEADER
12767 #
12768 if test x"$ac_file" != x-; then
12769 {
12770 $as_echo "/* $configure_input */" \
12771 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12772 } >"$ac_tmp/config.h" \
12773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12774 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12776 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12777 else
12778 rm -f "$ac_file"
12779 mv "$ac_tmp/config.h" "$ac_file" \
12780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12781 fi
12782 else
12783 $as_echo "/* $configure_input */" \
12784 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12785 || as_fn_error $? "could not create -" "$LINENO" 5
12786 fi
12787 # Compute "$ac_file"'s index in $config_headers.
12788 _am_arg="$ac_file"
12789 _am_stamp_count=1
12790 for _am_header in $config_headers :; do
12791 case $_am_header in
12792 $_am_arg | $_am_arg:* )
12793 break ;;
12794 * )
12795 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12796 esac
12797 done
12798 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12799 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12800 X"$_am_arg" : 'X\(//\)[^/]' \| \
12801 X"$_am_arg" : 'X\(//\)$' \| \
12802 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12803 $as_echo X"$_am_arg" |
12804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12805 s//\1/
12806 q
12807 }
12808 /^X\(\/\/\)[^/].*/{
12809 s//\1/
12810 q
12811 }
12812 /^X\(\/\/\)$/{
12813 s//\1/
12814 q
12815 }
12816 /^X\(\/\).*/{
12817 s//\1/
12818 q
12819 }
12820 s/.*/./; q'`/stamp-h$_am_stamp_count
12821 ;;
12822
12823 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12824 $as_echo "$as_me: executing $ac_file commands" >&6;}
12825 ;;
12826 esac
12827
12828
12829 case $ac_file$ac_mode in
12830 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12831 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12832 # are listed without --file. Let's play safe and only enable the eval
12833 # if we detect the quoting.
12834 case $CONFIG_FILES in
12835 *\'*) eval set x "$CONFIG_FILES" ;;
12836 *) set x $CONFIG_FILES ;;
12837 esac
12838 shift
12839 for mf
12840 do
12841 # Strip MF so we end up with the name of the file.
12842 mf=`echo "$mf" | sed -e 's/:.*$//'`
12843 # Check whether this is an Automake generated Makefile or not.
12844 # We used to match only the files named `Makefile.in', but
12845 # some people rename them; so instead we look at the file content.
12846 # Grep'ing the first line is not enough: some people post-process
12847 # each Makefile.in and add a new line on top of each file to say so.
12848 # Grep'ing the whole file is not good either: AIX grep has a line
12849 # limit of 2048, but all sed's we know have understand at least 4000.
12850 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12851 dirpart=`$as_dirname -- "$mf" ||
12852 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12853 X"$mf" : 'X\(//\)[^/]' \| \
12854 X"$mf" : 'X\(//\)$' \| \
12855 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12856 $as_echo X"$mf" |
12857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12858 s//\1/
12859 q
12860 }
12861 /^X\(\/\/\)[^/].*/{
12862 s//\1/
12863 q
12864 }
12865 /^X\(\/\/\)$/{
12866 s//\1/
12867 q
12868 }
12869 /^X\(\/\).*/{
12870 s//\1/
12871 q
12872 }
12873 s/.*/./; q'`
12874 else
12875 continue
12876 fi
12877 # Extract the definition of DEPDIR, am__include, and am__quote
12878 # from the Makefile without running `make'.
12879 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12880 test -z "$DEPDIR" && continue
12881 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12882 test -z "am__include" && continue
12883 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12884 # When using ansi2knr, U may be empty or an underscore; expand it
12885 U=`sed -n 's/^U = //p' < "$mf"`
12886 # Find all dependency output files, they are included files with
12887 # $(DEPDIR) in their names. We invoke sed twice because it is the
12888 # simplest approach to changing $(DEPDIR) to its actual value in the
12889 # expansion.
12890 for file in `sed -n "
12891 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12892 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12893 # Make sure the directory exists.
12894 test -f "$dirpart/$file" && continue
12895 fdir=`$as_dirname -- "$file" ||
12896 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12897 X"$file" : 'X\(//\)[^/]' \| \
12898 X"$file" : 'X\(//\)$' \| \
12899 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12900 $as_echo X"$file" |
12901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12902 s//\1/
12903 q
12904 }
12905 /^X\(\/\/\)[^/].*/{
12906 s//\1/
12907 q
12908 }
12909 /^X\(\/\/\)$/{
12910 s//\1/
12911 q
12912 }
12913 /^X\(\/\).*/{
12914 s//\1/
12915 q
12916 }
12917 s/.*/./; q'`
12918 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12919 # echo "creating $dirpart/$file"
12920 echo '# dummy' > "$dirpart/$file"
12921 done
12922 done
12923 }
12924 ;;
12925 "libtool":C)
12926
12927 # See if we are running on zsh, and set the options which allow our
12928 # commands through without removal of \ escapes.
12929 if test -n "${ZSH_VERSION+set}" ; then
12930 setopt NO_GLOB_SUBST
12931 fi
12932
12933 cfgfile="${ofile}T"
12934 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12935 $RM "$cfgfile"
12936
12937 cat <<_LT_EOF >> "$cfgfile"
12938 #! $SHELL
12939
12940 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12941 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12943 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12944 #
12945 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12946 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12947 # Inc.
12948 # Written by Gordon Matzigkeit, 1996
12949 #
12950 # This file is part of GNU Libtool.
12951 #
12952 # GNU Libtool is free software; you can redistribute it and/or
12953 # modify it under the terms of the GNU General Public License as
12954 # published by the Free Software Foundation; either version 2 of
12955 # the License, or (at your option) any later version.
12956 #
12957 # As a special exception to the GNU General Public License,
12958 # if you distribute this file as part of a program or library that
12959 # is built using GNU Libtool, you may include this file under the
12960 # same distribution terms that you use for the rest of that program.
12961 #
12962 # GNU Libtool is distributed in the hope that it will be useful,
12963 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12964 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12965 # GNU General Public License for more details.
12966 #
12967 # You should have received a copy of the GNU General Public License
12968 # along with GNU Libtool; see the file COPYING. If not, a copy
12969 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12970 # obtained by writing to the Free Software Foundation, Inc.,
12971 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12972
12973
12974 # The names of the tagged configurations supported by this script.
12975 available_tags=""
12976
12977 # ### BEGIN LIBTOOL CONFIG
12978
12979 # Which release of libtool.m4 was used?
12980 macro_version=$macro_version
12981 macro_revision=$macro_revision
12982
12983 # Whether or not to build shared libraries.
12984 build_libtool_libs=$enable_shared
12985
12986 # Whether or not to build static libraries.
12987 build_old_libs=$enable_static
12988
12989 # What type of objects to build.
12990 pic_mode=$pic_mode
12991
12992 # Whether or not to optimize for fast installation.
12993 fast_install=$enable_fast_install
12994
12995 # Shell to use when invoking shell scripts.
12996 SHELL=$lt_SHELL
12997
12998 # An echo program that protects backslashes.
12999 ECHO=$lt_ECHO
13000
13001 # The host system.
13002 host_alias=$host_alias
13003 host=$host
13004 host_os=$host_os
13005
13006 # The build system.
13007 build_alias=$build_alias
13008 build=$build
13009 build_os=$build_os
13010
13011 # A sed program that does not truncate output.
13012 SED=$lt_SED
13013
13014 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13015 Xsed="\$SED -e 1s/^X//"
13016
13017 # A grep program that handles long lines.
13018 GREP=$lt_GREP
13019
13020 # An ERE matcher.
13021 EGREP=$lt_EGREP
13022
13023 # A literal string matcher.
13024 FGREP=$lt_FGREP
13025
13026 # A BSD- or MS-compatible name lister.
13027 NM=$lt_NM
13028
13029 # Whether we need soft or hard links.
13030 LN_S=$lt_LN_S
13031
13032 # What is the maximum length of a command?
13033 max_cmd_len=$max_cmd_len
13034
13035 # Object file suffix (normally "o").
13036 objext=$ac_objext
13037
13038 # Executable file suffix (normally "").
13039 exeext=$exeext
13040
13041 # whether the shell understands "unset".
13042 lt_unset=$lt_unset
13043
13044 # turn spaces into newlines.
13045 SP2NL=$lt_lt_SP2NL
13046
13047 # turn newlines into spaces.
13048 NL2SP=$lt_lt_NL2SP
13049
13050 # An object symbol dumper.
13051 OBJDUMP=$lt_OBJDUMP
13052
13053 # Method to check whether dependent libraries are shared objects.
13054 deplibs_check_method=$lt_deplibs_check_method
13055
13056 # Command to use when deplibs_check_method == "file_magic".
13057 file_magic_cmd=$lt_file_magic_cmd
13058
13059 # The archiver.
13060 AR=$lt_AR
13061 AR_FLAGS=$lt_AR_FLAGS
13062
13063 # A symbol stripping program.
13064 STRIP=$lt_STRIP
13065
13066 # Commands used to install an old-style archive.
13067 RANLIB=$lt_RANLIB
13068 old_postinstall_cmds=$lt_old_postinstall_cmds
13069 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13070
13071 # Whether to use a lock for old archive extraction.
13072 lock_old_archive_extraction=$lock_old_archive_extraction
13073
13074 # A C compiler.
13075 LTCC=$lt_CC
13076
13077 # LTCC compiler flags.
13078 LTCFLAGS=$lt_CFLAGS
13079
13080 # Take the output of nm and produce a listing of raw symbols and C names.
13081 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13082
13083 # Transform the output of nm in a proper C declaration.
13084 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13085
13086 # Transform the output of nm in a C name address pair.
13087 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13088
13089 # Transform the output of nm in a C name address pair when lib prefix is needed.
13090 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13091
13092 # The name of the directory that contains temporary libtool files.
13093 objdir=$objdir
13094
13095 # Used to examine libraries when file_magic_cmd begins with "file".
13096 MAGIC_CMD=$MAGIC_CMD
13097
13098 # Must we lock files when doing compilation?
13099 need_locks=$lt_need_locks
13100
13101 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13102 DSYMUTIL=$lt_DSYMUTIL
13103
13104 # Tool to change global to local symbols on Mac OS X.
13105 NMEDIT=$lt_NMEDIT
13106
13107 # Tool to manipulate fat objects and archives on Mac OS X.
13108 LIPO=$lt_LIPO
13109
13110 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13111 OTOOL=$lt_OTOOL
13112
13113 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13114 OTOOL64=$lt_OTOOL64
13115
13116 # Old archive suffix (normally "a").
13117 libext=$libext
13118
13119 # Shared library suffix (normally ".so").
13120 shrext_cmds=$lt_shrext_cmds
13121
13122 # The commands to extract the exported symbol list from a shared archive.
13123 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13124
13125 # Variables whose values should be saved in libtool wrapper scripts and
13126 # restored at link time.
13127 variables_saved_for_relink=$lt_variables_saved_for_relink
13128
13129 # Do we need the "lib" prefix for modules?
13130 need_lib_prefix=$need_lib_prefix
13131
13132 # Do we need a version for libraries?
13133 need_version=$need_version
13134
13135 # Library versioning type.
13136 version_type=$version_type
13137
13138 # Shared library runtime path variable.
13139 runpath_var=$runpath_var
13140
13141 # Shared library path variable.
13142 shlibpath_var=$shlibpath_var
13143
13144 # Is shlibpath searched before the hard-coded library search path?
13145 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13146
13147 # Format of library name prefix.
13148 libname_spec=$lt_libname_spec
13149
13150 # List of archive names. First name is the real one, the rest are links.
13151 # The last name is the one that the linker finds with -lNAME
13152 library_names_spec=$lt_library_names_spec
13153
13154 # The coded name of the library, if different from the real name.
13155 soname_spec=$lt_soname_spec
13156
13157 # Permission mode override for installation of shared libraries.
13158 install_override_mode=$lt_install_override_mode
13159
13160 # Command to use after installation of a shared archive.
13161 postinstall_cmds=$lt_postinstall_cmds
13162
13163 # Command to use after uninstallation of a shared archive.
13164 postuninstall_cmds=$lt_postuninstall_cmds
13165
13166 # Commands used to finish a libtool library installation in a directory.
13167 finish_cmds=$lt_finish_cmds
13168
13169 # As "finish_cmds", except a single script fragment to be evaled but
13170 # not shown.
13171 finish_eval=$lt_finish_eval
13172
13173 # Whether we should hardcode library paths into libraries.
13174 hardcode_into_libs=$hardcode_into_libs
13175
13176 # Compile-time system search path for libraries.
13177 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13178
13179 # Run-time system search path for libraries.
13180 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13181
13182 # Whether dlopen is supported.
13183 dlopen_support=$enable_dlopen
13184
13185 # Whether dlopen of programs is supported.
13186 dlopen_self=$enable_dlopen_self
13187
13188 # Whether dlopen of statically linked programs is supported.
13189 dlopen_self_static=$enable_dlopen_self_static
13190
13191 # Commands to strip libraries.
13192 old_striplib=$lt_old_striplib
13193 striplib=$lt_striplib
13194
13195
13196 # The linker used to build libraries.
13197 LD=$lt_LD
13198
13199 # How to create reloadable object files.
13200 reload_flag=$lt_reload_flag
13201 reload_cmds=$lt_reload_cmds
13202
13203 # Commands used to build an old-style archive.
13204 old_archive_cmds=$lt_old_archive_cmds
13205
13206 # A language specific compiler.
13207 CC=$lt_compiler
13208
13209 # Is the compiler the GNU compiler?
13210 with_gcc=$GCC
13211
13212 # Compiler flag to turn off builtin functions.
13213 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13214
13215 # How to pass a linker flag through the compiler.
13216 wl=$lt_lt_prog_compiler_wl
13217
13218 # Additional compiler flags for building library objects.
13219 pic_flag=$lt_lt_prog_compiler_pic
13220
13221 # Compiler flag to prevent dynamic linking.
13222 link_static_flag=$lt_lt_prog_compiler_static
13223
13224 # Does compiler simultaneously support -c and -o options?
13225 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13226
13227 # Whether or not to add -lc for building shared libraries.
13228 build_libtool_need_lc=$archive_cmds_need_lc
13229
13230 # Whether or not to disallow shared libs when runtime libs are static.
13231 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13232
13233 # Compiler flag to allow reflexive dlopens.
13234 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13235
13236 # Compiler flag to generate shared objects directly from archives.
13237 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13238
13239 # Whether the compiler copes with passing no objects directly.
13240 compiler_needs_object=$lt_compiler_needs_object
13241
13242 # Create an old-style archive from a shared archive.
13243 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13244
13245 # Create a temporary old-style archive to link instead of a shared archive.
13246 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13247
13248 # Commands used to build a shared archive.
13249 archive_cmds=$lt_archive_cmds
13250 archive_expsym_cmds=$lt_archive_expsym_cmds
13251
13252 # Commands used to build a loadable module if different from building
13253 # a shared archive.
13254 module_cmds=$lt_module_cmds
13255 module_expsym_cmds=$lt_module_expsym_cmds
13256
13257 # Whether we are building with GNU ld or not.
13258 with_gnu_ld=$lt_with_gnu_ld
13259
13260 # Flag that allows shared libraries with undefined symbols to be built.
13261 allow_undefined_flag=$lt_allow_undefined_flag
13262
13263 # Flag that enforces no undefined symbols.
13264 no_undefined_flag=$lt_no_undefined_flag
13265
13266 # Flag to hardcode \$libdir into a binary during linking.
13267 # This must work even if \$libdir does not exist
13268 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13269
13270 # If ld is used when linking, flag to hardcode \$libdir into a binary
13271 # during linking. This must work even if \$libdir does not exist.
13272 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13273
13274 # Whether we need a single "-rpath" flag with a separated argument.
13275 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13276
13277 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13278 # DIR into the resulting binary.
13279 hardcode_direct=$hardcode_direct
13280
13281 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13282 # DIR into the resulting binary and the resulting library dependency is
13283 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13284 # library is relocated.
13285 hardcode_direct_absolute=$hardcode_direct_absolute
13286
13287 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13288 # into the resulting binary.
13289 hardcode_minus_L=$hardcode_minus_L
13290
13291 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13292 # into the resulting binary.
13293 hardcode_shlibpath_var=$hardcode_shlibpath_var
13294
13295 # Set to "yes" if building a shared library automatically hardcodes DIR
13296 # into the library and all subsequent libraries and executables linked
13297 # against it.
13298 hardcode_automatic=$hardcode_automatic
13299
13300 # Set to yes if linker adds runtime paths of dependent libraries
13301 # to runtime path list.
13302 inherit_rpath=$inherit_rpath
13303
13304 # Whether libtool must link a program against all its dependency libraries.
13305 link_all_deplibs=$link_all_deplibs
13306
13307 # Fix the shell variable \$srcfile for the compiler.
13308 fix_srcfile_path=$lt_fix_srcfile_path
13309
13310 # Set to "yes" if exported symbols are required.
13311 always_export_symbols=$always_export_symbols
13312
13313 # The commands to list exported symbols.
13314 export_symbols_cmds=$lt_export_symbols_cmds
13315
13316 # Symbols that should not be listed in the preloaded symbols.
13317 exclude_expsyms=$lt_exclude_expsyms
13318
13319 # Symbols that must always be exported.
13320 include_expsyms=$lt_include_expsyms
13321
13322 # Commands necessary for linking programs (against libraries) with templates.
13323 prelink_cmds=$lt_prelink_cmds
13324
13325 # Specify filename containing input files.
13326 file_list_spec=$lt_file_list_spec
13327
13328 # How to hardcode a shared library path into an executable.
13329 hardcode_action=$hardcode_action
13330
13331 # ### END LIBTOOL CONFIG
13332
13333 _LT_EOF
13334
13335 case $host_os in
13336 aix3*)
13337 cat <<\_LT_EOF >> "$cfgfile"
13338 # AIX sometimes has problems with the GCC collect2 program. For some
13339 # reason, if we set the COLLECT_NAMES environment variable, the problems
13340 # vanish in a puff of smoke.
13341 if test "X${COLLECT_NAMES+set}" != Xset; then
13342 COLLECT_NAMES=
13343 export COLLECT_NAMES
13344 fi
13345 _LT_EOF
13346 ;;
13347 esac
13348
13349
13350 ltmain="$ac_aux_dir/ltmain.sh"
13351
13352
13353 # We use sed instead of cat because bash on DJGPP gets confused if
13354 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13355 # text mode, it properly converts lines to CR/LF. This bash problem
13356 # is reportedly fixed, but why not run on old versions too?
13357 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13358 || (rm -f "$cfgfile"; exit 1)
13359
13360 case $xsi_shell in
13361 yes)
13362 cat << \_LT_EOF >> "$cfgfile"
13363
13364 # func_dirname file append nondir_replacement
13365 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13366 # otherwise set result to NONDIR_REPLACEMENT.
13367 func_dirname ()
13368 {
13369 case ${1} in
13370 */*) func_dirname_result="${1%/*}${2}" ;;
13371 * ) func_dirname_result="${3}" ;;
13372 esac
13373 }
13374
13375 # func_basename file
13376 func_basename ()
13377 {
13378 func_basename_result="${1##*/}"
13379 }
13380
13381 # func_dirname_and_basename file append nondir_replacement
13382 # perform func_basename and func_dirname in a single function
13383 # call:
13384 # dirname: Compute the dirname of FILE. If nonempty,
13385 # add APPEND to the result, otherwise set result
13386 # to NONDIR_REPLACEMENT.
13387 # value returned in "$func_dirname_result"
13388 # basename: Compute filename of FILE.
13389 # value retuned in "$func_basename_result"
13390 # Implementation must be kept synchronized with func_dirname
13391 # and func_basename. For efficiency, we do not delegate to
13392 # those functions but instead duplicate the functionality here.
13393 func_dirname_and_basename ()
13394 {
13395 case ${1} in
13396 */*) func_dirname_result="${1%/*}${2}" ;;
13397 * ) func_dirname_result="${3}" ;;
13398 esac
13399 func_basename_result="${1##*/}"
13400 }
13401
13402 # func_stripname prefix suffix name
13403 # strip PREFIX and SUFFIX off of NAME.
13404 # PREFIX and SUFFIX must not contain globbing or regex special
13405 # characters, hashes, percent signs, but SUFFIX may contain a leading
13406 # dot (in which case that matches only a dot).
13407 func_stripname ()
13408 {
13409 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13410 # positional parameters, so assign one to ordinary parameter first.
13411 func_stripname_result=${3}
13412 func_stripname_result=${func_stripname_result#"${1}"}
13413 func_stripname_result=${func_stripname_result%"${2}"}
13414 }
13415
13416 # func_opt_split
13417 func_opt_split ()
13418 {
13419 func_opt_split_opt=${1%%=*}
13420 func_opt_split_arg=${1#*=}
13421 }
13422
13423 # func_lo2o object
13424 func_lo2o ()
13425 {
13426 case ${1} in
13427 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13428 *) func_lo2o_result=${1} ;;
13429 esac
13430 }
13431
13432 # func_xform libobj-or-source
13433 func_xform ()
13434 {
13435 func_xform_result=${1%.*}.lo
13436 }
13437
13438 # func_arith arithmetic-term...
13439 func_arith ()
13440 {
13441 func_arith_result=$(( $* ))
13442 }
13443
13444 # func_len string
13445 # STRING may not start with a hyphen.
13446 func_len ()
13447 {
13448 func_len_result=${#1}
13449 }
13450
13451 _LT_EOF
13452 ;;
13453 *) # Bourne compatible functions.
13454 cat << \_LT_EOF >> "$cfgfile"
13455
13456 # func_dirname file append nondir_replacement
13457 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13458 # otherwise set result to NONDIR_REPLACEMENT.
13459 func_dirname ()
13460 {
13461 # Extract subdirectory from the argument.
13462 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13463 if test "X$func_dirname_result" = "X${1}"; then
13464 func_dirname_result="${3}"
13465 else
13466 func_dirname_result="$func_dirname_result${2}"
13467 fi
13468 }
13469
13470 # func_basename file
13471 func_basename ()
13472 {
13473 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13474 }
13475
13476
13477 # func_stripname prefix suffix name
13478 # strip PREFIX and SUFFIX off of NAME.
13479 # PREFIX and SUFFIX must not contain globbing or regex special
13480 # characters, hashes, percent signs, but SUFFIX may contain a leading
13481 # dot (in which case that matches only a dot).
13482 # func_strip_suffix prefix name
13483 func_stripname ()
13484 {
13485 case ${2} in
13486 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13487 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13488 esac
13489 }
13490
13491 # sed scripts:
13492 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13493 my_sed_long_arg='1s/^-[^=]*=//'
13494
13495 # func_opt_split
13496 func_opt_split ()
13497 {
13498 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13499 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13500 }
13501
13502 # func_lo2o object
13503 func_lo2o ()
13504 {
13505 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13506 }
13507
13508 # func_xform libobj-or-source
13509 func_xform ()
13510 {
13511 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13512 }
13513
13514 # func_arith arithmetic-term...
13515 func_arith ()
13516 {
13517 func_arith_result=`expr "$@"`
13518 }
13519
13520 # func_len string
13521 # STRING may not start with a hyphen.
13522 func_len ()
13523 {
13524 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13525 }
13526
13527 _LT_EOF
13528 esac
13529
13530 case $lt_shell_append in
13531 yes)
13532 cat << \_LT_EOF >> "$cfgfile"
13533
13534 # func_append var value
13535 # Append VALUE to the end of shell variable VAR.
13536 func_append ()
13537 {
13538 eval "$1+=\$2"
13539 }
13540 _LT_EOF
13541 ;;
13542 *)
13543 cat << \_LT_EOF >> "$cfgfile"
13544
13545 # func_append var value
13546 # Append VALUE to the end of shell variable VAR.
13547 func_append ()
13548 {
13549 eval "$1=\$$1\$2"
13550 }
13551
13552 _LT_EOF
13553 ;;
13554 esac
13555
13556
13557 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13558 || (rm -f "$cfgfile"; exit 1)
13559
13560 mv -f "$cfgfile" "$ofile" ||
13561 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13562 chmod +x "$ofile"
13563
13564 ;;
13565
13566 esac
13567 done # for ac_tag
13568
13569
13570 as_fn_exit 0
13571 _ACEOF
13572 ac_clean_files=$ac_clean_files_save
13573
13574 test $ac_write_fail = 0 ||
13575 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13576
13577
13578 # configure is writing to config.log, and then calls config.status.
13579 # config.status does its own redirection, appending to config.log.
13580 # Unfortunately, on DOS this fails, as config.log is still kept open
13581 # by configure, so config.status won't be able to write to it; its
13582 # output is simply discarded. So we exec the FD to /dev/null,
13583 # effectively closing config.log, so it can be properly (re)opened and
13584 # appended to by config.status. When coming back to configure, we
13585 # need to make the FD available again.
13586 if test "$no_create" != yes; then
13587 ac_cs_success=:
13588 ac_config_status_args=
13589 test "$silent" = yes &&
13590 ac_config_status_args="$ac_config_status_args --quiet"
13591 exec 5>/dev/null
13592 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13593 exec 5>>config.log
13594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13595 # would make configure fail if this is the last instruction.
13596 $ac_cs_success || as_fn_exit 1
13597 fi
13598 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13600 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13601 fi
13602
13603
13604