configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for libICE 1.0.7.
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 Free Software Foundation,
10 # 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 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
234 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
238 $0: have one."
239 fi
240 exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258 { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267 return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275 set +e
276 as_fn_set_status $1
277 exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286 case $as_dir in #(
287 -*) as_dir=./$as_dir;;
288 esac
289 test -d "$as_dir" || eval $as_mkdir_p || {
290 as_dirs=
291 while :; do
292 case $as_dir in #(
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 *) as_qdir=$as_dir;;
295 esac
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)[^/].*/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\).*/{
316 s//\1/
317 q
318 }
319 s/.*/./; q'`
320 test -d "$as_dir" && break
321 done
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
335 {
336 eval $1+=\$2
337 }'
338 else
339 as_fn_append ()
340 {
341 eval $1=\$$1\$2
342 }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351 eval 'as_fn_arith ()
352 {
353 as_val=$(( $* ))
354 }'
355 else
356 as_fn_arith ()
357 {
358 as_val=`expr "$@" || test $? -eq 1`
359 }
360 fi # as_fn_arith
361
362
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
368 as_fn_error ()
369 {
370 as_status=$?; test $as_status -eq 0 && as_status=1
371 if test "$3"; then
372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 fi
375 $as_echo "$as_me: error: $1" >&2
376 as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
381 as_expr=expr
382 else
383 as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387 as_basename=basename
388 else
389 as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393 as_dirname=dirname
394 else
395 as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\/\)$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\).*/{
412 s//\1/
413 q
414 }
415 s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
430 sed -n '
431 p
432 /[$]LINENO/=
433 ' <$as_myself |
434 sed '
435 s/[$]LINENO.*/&-/
436 t lineno
437 b
438 :lineno
439 N
440 :loop
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 t loop
443 s/-\n.*//
444 ' >$as_me.lineno &&
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
451 . "./$as_me.lineno"
452 # Exit status is that of the last command.
453 exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 xy) ECHO_C='\c';;
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 ECHO_T=' ';;
464 esac;;
465 *)
466 ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
472 else
473 rm -f conf$$.dir
474 mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 as_ln_s='ln -s'
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 as_ln_s='cp -p'
485 elif ln conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s=ln
487 else
488 as_ln_s='cp -p'
489 fi
490 else
491 as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
498 else
499 test -d ./-p && rmdir ./-p
500 as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504 as_test_x='test -x'
505 else
506 if ls -dL / >/dev/null 2>&1; then
507 as_ls_L_option=L
508 else
509 as_ls_L_option=
510 fi
511 as_test_x='
512 eval sh -c '\''
513 if test -d "$1"; then
514 test -d "$1/.";
515 else
516 case $1 in #(
517 -*)set "./$1";;
518 esac;
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
521 '\'' sh
522 '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532 as_awk_strverscmp='
533 # Use only awk features that work with 7th edition Unix awk (1978).
534 # My, what an old awk you have, Mr. Solaris!
535 END {
536 while (length(v1) && length(v2)) {
537 # Set d1 to be the next thing to compare from v1, and likewise for d2.
538 # Normally this is a single character, but if v1 and v2 contain digits,
539 # compare them as integers and fractions as strverscmp does.
540 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
541 # Split v1 and v2 into their leading digit string components d1 and d2,
542 # and advance v1 and v2 past the leading digit strings.
543 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
544 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
545 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
546 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
547 if (d1 ~ /^0/) {
548 if (d2 ~ /^0/) {
549 # Compare two fractions.
550 while (d1 ~ /^0/ && d2 ~ /^0/) {
551 d1 = substr(d1, 2); len1--
552 d2 = substr(d2, 2); len2--
553 }
554 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
555 # The two components differ in length, and the common prefix
556 # contains only leading zeros. Consider the longer to be less.
557 d1 = -len1
558 d2 = -len2
559 } else {
560 # Otherwise, compare as strings.
561 d1 = "x" d1
562 d2 = "x" d2
563 }
564 } else {
565 # A fraction is less than an integer.
566 exit 1
567 }
568 } else {
569 if (d2 ~ /^0/) {
570 # An integer is greater than a fraction.
571 exit 2
572 } else {
573 # Compare two integers.
574 d1 += 0
575 d2 += 0
576 }
577 }
578 } else {
579 # The normal case, without worrying about digits.
580 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
581 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
582 }
583 if (d1 < d2) exit 1
584 if (d1 > d2) exit 2
585 }
586 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
587 # which mishandles some comparisons of empty strings to integers.
588 if (length(v2)) exit 1
589 if (length(v1)) exit 2
590 }
591 '
592
593
594 # Check that we are running under the correct shell.
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597 case X$lt_ECHO in
598 X*--fallback-echo)
599 # Remove one level of quotation (which was required for Make).
600 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
601 ;;
602 esac
603
604 ECHO=${lt_ECHO-echo}
605 if test "X$1" = X--no-reexec; then
606 # Discard the --no-reexec flag, and continue.
607 shift
608 elif test "X$1" = X--fallback-echo; then
609 # Avoid inline document here, it may be left over
610 :
611 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
612 # Yippee, $ECHO works!
613 :
614 else
615 # Restart under the correct shell.
616 exec $SHELL "$0" --no-reexec ${1+"$@"}
617 fi
618
619 if test "X$1" = X--fallback-echo; then
620 # used as fallback echo
621 shift
622 cat <<_LT_EOF
623 $*
624 _LT_EOF
625 exit 0
626 fi
627
628 # The HP-UX ksh and POSIX shell print the target directory to stdout
629 # if CDPATH is set.
630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
631
632 if test -z "$lt_ECHO"; then
633 if test "X${echo_test_string+set}" != Xset; then
634 # find a string as large as possible, as long as the shell can cope with it
635 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
636 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
637 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
638 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
639 then
640 break
641 fi
642 done
643 fi
644
645 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
646 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
648 :
649 else
650 # The Solaris, AIX, and Digital Unix default echo programs unquote
651 # backslashes. This makes it impossible to quote backslashes using
652 # echo "$something" | sed 's/\\/\\\\/g'
653 #
654 # So, first we look for a working echo in the user's PATH.
655
656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
657 for dir in $PATH /usr/ucb; do
658 IFS="$lt_save_ifs"
659 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
660 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
661 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
662 test "X$echo_testing_string" = "X$echo_test_string"; then
663 ECHO="$dir/echo"
664 break
665 fi
666 done
667 IFS="$lt_save_ifs"
668
669 if test "X$ECHO" = Xecho; then
670 # We didn't find a better echo, so look for alternatives.
671 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # This shell has a builtin print -r that does the trick.
675 ECHO='print -r'
676 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
677 test "X$CONFIG_SHELL" != X/bin/ksh; then
678 # If we have ksh, try running configure again with it.
679 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
680 export ORIGINAL_CONFIG_SHELL
681 CONFIG_SHELL=/bin/ksh
682 export CONFIG_SHELL
683 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
684 else
685 # Try using printf.
686 ECHO='printf %s\n'
687 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
688 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
689 test "X$echo_testing_string" = "X$echo_test_string"; then
690 # Cool, printf works
691 :
692 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
693 test "X$echo_testing_string" = 'X\t' &&
694 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
695 test "X$echo_testing_string" = "X$echo_test_string"; then
696 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
697 export CONFIG_SHELL
698 SHELL="$CONFIG_SHELL"
699 export SHELL
700 ECHO="$CONFIG_SHELL $0 --fallback-echo"
701 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
702 test "X$echo_testing_string" = 'X\t' &&
703 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
704 test "X$echo_testing_string" = "X$echo_test_string"; then
705 ECHO="$CONFIG_SHELL $0 --fallback-echo"
706 else
707 # maybe with a smaller string...
708 prev=:
709
710 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
711 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
712 then
713 break
714 fi
715 prev="$cmd"
716 done
717
718 if test "$prev" != 'sed 50q "$0"'; then
719 echo_test_string=`eval $prev`
720 export echo_test_string
721 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
722 else
723 # Oops. We lost completely, so just stick with echo.
724 ECHO=echo
725 fi
726 fi
727 fi
728 fi
729 fi
730 fi
731
732 # Copy echo and quote the copy suitably for passing to libtool from
733 # the Makefile, instead of quoting the original, which is used later.
734 lt_ECHO=$ECHO
735 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
736 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
737 fi
738
739
740
741
742 test -n "$DJDIR" || exec 7<&0 </dev/null
743 exec 6>&1
744
745 # Name of the host.
746 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
747 # so uname gets run too.
748 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
749
750 #
751 # Initializations.
752 #
753 ac_default_prefix=/usr/local
754 ac_clean_files=
755 ac_config_libobj_dir=.
756 LIBOBJS=
757 cross_compiling=no
758 subdirs=
759 MFLAGS=
760 MAKEFLAGS=
761
762 # Identity of this package.
763 PACKAGE_NAME='libICE'
764 PACKAGE_TARNAME='libICE'
765 PACKAGE_VERSION='1.0.7'
766 PACKAGE_STRING='libICE 1.0.7'
767 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
768 PACKAGE_URL=''
769
770 ac_unique_file="Makefile.am"
771 # Factoring default headers for most tests.
772 ac_includes_default="\
773 #include <stdio.h>
774 #ifdef HAVE_SYS_TYPES_H
775 # include <sys/types.h>
776 #endif
777 #ifdef HAVE_SYS_STAT_H
778 # include <sys/stat.h>
779 #endif
780 #ifdef STDC_HEADERS
781 # include <stdlib.h>
782 # include <stddef.h>
783 #else
784 # ifdef HAVE_STDLIB_H
785 # include <stdlib.h>
786 # endif
787 #endif
788 #ifdef HAVE_STRING_H
789 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
790 # include <memory.h>
791 # endif
792 # include <string.h>
793 #endif
794 #ifdef HAVE_STRINGS_H
795 # include <strings.h>
796 #endif
797 #ifdef HAVE_INTTYPES_H
798 # include <inttypes.h>
799 #endif
800 #ifdef HAVE_STDINT_H
801 # include <stdint.h>
802 #endif
803 #ifdef HAVE_UNISTD_H
804 # include <unistd.h>
805 #endif"
806
807 ac_subst_vars='am__EXEEXT_FALSE
808 am__EXEEXT_TRUE
809 LTLIBOBJS
810 LIBOBJS
811 MAKE_LINT_LIB_FALSE
812 MAKE_LINT_LIB_TRUE
813 LINTLIB
814 LINT_FALSE
815 LINT_TRUE
816 LINT_FLAGS
817 LINT
818 XTRANS_LIBS
819 XTRANS_CFLAGS
820 ICE_LIBS
821 ICE_CFLAGS
822 OTOOL64
823 OTOOL
824 LIPO
825 NMEDIT
826 DSYMUTIL
827 lt_ECHO
828 RANLIB
829 AR
830 OBJDUMP
831 LN_S
832 NM
833 ac_ct_DUMPBIN
834 DUMPBIN
835 LD
836 FGREP
837 LIBTOOL
838 HAVE_STYLESHEETS_FALSE
839 HAVE_STYLESHEETS_TRUE
840 XSL_STYLESHEET
841 STYLESHEET_SRCDIR
842 XORG_SGML_PATH
843 HAVE_FOP_FALSE
844 HAVE_FOP_TRUE
845 FOP
846 HAVE_XMLTO_FALSE
847 HAVE_XMLTO_TRUE
848 HAVE_XMLTO_TEXT_FALSE
849 HAVE_XMLTO_TEXT_TRUE
850 XMLTO
851 ENABLE_SPECS_FALSE
852 ENABLE_SPECS_TRUE
853 ENABLE_DOCS_FALSE
854 ENABLE_DOCS_TRUE
855 AM_BACKSLASH
856 AM_DEFAULT_VERBOSITY
857 MAN_SUBSTS
858 XORG_MAN_PAGE
859 ADMIN_MAN_DIR
860 DRIVER_MAN_DIR
861 MISC_MAN_DIR
862 FILE_MAN_DIR
863 LIB_MAN_DIR
864 APP_MAN_DIR
865 ADMIN_MAN_SUFFIX
866 DRIVER_MAN_SUFFIX
867 MISC_MAN_SUFFIX
868 FILE_MAN_SUFFIX
869 LIB_MAN_SUFFIX
870 APP_MAN_SUFFIX
871 SED
872 host_os
873 host_vendor
874 host_cpu
875 host
876 build_os
877 build_vendor
878 build_cpu
879 build
880 INSTALL_CMD
881 PKG_CONFIG
882 CHANGELOG_CMD
883 CWARNFLAGS
884 EGREP
885 GREP
886 CPP
887 am__fastdepCC_FALSE
888 am__fastdepCC_TRUE
889 CCDEPMODE
890 AMDEPBACKSLASH
891 AMDEP_FALSE
892 AMDEP_TRUE
893 am__quote
894 am__include
895 DEPDIR
896 OBJEXT
897 EXEEXT
898 ac_ct_CC
899 CPPFLAGS
900 LDFLAGS
901 CFLAGS
902 CC
903 MAINT
904 MAINTAINER_MODE_FALSE
905 MAINTAINER_MODE_TRUE
906 am__untar
907 am__tar
908 AMTAR
909 am__leading_dot
910 SET_MAKE
911 AWK
912 mkdir_p
913 MKDIR_P
914 INSTALL_STRIP_PROGRAM
915 STRIP
916 install_sh
917 MAKEINFO
918 AUTOHEADER
919 AUTOMAKE
920 AUTOCONF
921 ACLOCAL
922 VERSION
923 PACKAGE
924 CYGPATH_W
925 am__isrc
926 INSTALL_DATA
927 INSTALL_SCRIPT
928 INSTALL_PROGRAM
929 target_alias
930 host_alias
931 build_alias
932 LIBS
933 ECHO_T
934 ECHO_N
935 ECHO_C
936 DEFS
937 mandir
938 localedir
939 libdir
940 psdir
941 pdfdir
942 dvidir
943 htmldir
944 infodir
945 docdir
946 oldincludedir
947 includedir
948 localstatedir
949 sharedstatedir
950 sysconfdir
951 datadir
952 datarootdir
953 libexecdir
954 sbindir
955 bindir
956 program_transform_name
957 prefix
958 exec_prefix
959 PACKAGE_URL
960 PACKAGE_BUGREPORT
961 PACKAGE_STRING
962 PACKAGE_VERSION
963 PACKAGE_TARNAME
964 PACKAGE_NAME
965 PATH_SEPARATOR
966 SHELL'
967 ac_subst_files=''
968 ac_user_opts='
969 enable_option_checking
970 enable_maintainer_mode
971 enable_dependency_tracking
972 enable_strict_compilation
973 enable_silent_rules
974 enable_docs
975 enable_specs
976 with_xmlto
977 with_fop
978 enable_shared
979 enable_static
980 with_pic
981 enable_fast_install
982 with_gnu_ld
983 enable_libtool_lock
984 enable_unix_transport
985 enable_tcp_transport
986 enable_ipv6
987 enable_local_transport
988 with_lint
989 enable_lint_library
990 '
991 ac_precious_vars='build_alias
992 host_alias
993 target_alias
994 CC
995 CFLAGS
996 LDFLAGS
997 LIBS
998 CPPFLAGS
999 CPP
1000 PKG_CONFIG
1001 XMLTO
1002 FOP
1003 ICE_CFLAGS
1004 ICE_LIBS
1005 XTRANS_CFLAGS
1006 XTRANS_LIBS
1007 LINT
1008 LINT_FLAGS'
1009
1010
1011 # Initialize some variables set by options.
1012 ac_init_help=
1013 ac_init_version=false
1014 ac_unrecognized_opts=
1015 ac_unrecognized_sep=
1016 # The variables have the same names as the options, with
1017 # dashes changed to underlines.
1018 cache_file=/dev/null
1019 exec_prefix=NONE
1020 no_create=
1021 no_recursion=
1022 prefix=NONE
1023 program_prefix=NONE
1024 program_suffix=NONE
1025 program_transform_name=s,x,x,
1026 silent=
1027 site=
1028 srcdir=
1029 verbose=
1030 x_includes=NONE
1031 x_libraries=NONE
1032
1033 # Installation directory options.
1034 # These are left unexpanded so users can "make install exec_prefix=/foo"
1035 # and all the variables that are supposed to be based on exec_prefix
1036 # by default will actually change.
1037 # Use braces instead of parens because sh, perl, etc. also accept them.
1038 # (The list follows the same order as the GNU Coding Standards.)
1039 bindir='${exec_prefix}/bin'
1040 sbindir='${exec_prefix}/sbin'
1041 libexecdir='${exec_prefix}/libexec'
1042 datarootdir='${prefix}/share'
1043 datadir='${datarootdir}'
1044 sysconfdir='${prefix}/etc'
1045 sharedstatedir='${prefix}/com'
1046 localstatedir='${prefix}/var'
1047 includedir='${prefix}/include'
1048 oldincludedir='/usr/include'
1049 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1050 infodir='${datarootdir}/info'
1051 htmldir='${docdir}'
1052 dvidir='${docdir}'
1053 pdfdir='${docdir}'
1054 psdir='${docdir}'
1055 libdir='${exec_prefix}/lib'
1056 localedir='${datarootdir}/locale'
1057 mandir='${datarootdir}/man'
1058
1059 ac_prev=
1060 ac_dashdash=
1061 for ac_option
1062 do
1063 # If the previous option needs an argument, assign it.
1064 if test -n "$ac_prev"; then
1065 eval $ac_prev=\$ac_option
1066 ac_prev=
1067 continue
1068 fi
1069
1070 case $ac_option in
1071 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1072 *) ac_optarg=yes ;;
1073 esac
1074
1075 # Accept the important Cygnus configure options, so we can diagnose typos.
1076
1077 case $ac_dashdash$ac_option in
1078 --)
1079 ac_dashdash=yes ;;
1080
1081 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1082 ac_prev=bindir ;;
1083 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1084 bindir=$ac_optarg ;;
1085
1086 -build | --build | --buil | --bui | --bu)
1087 ac_prev=build_alias ;;
1088 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1089 build_alias=$ac_optarg ;;
1090
1091 -cache-file | --cache-file | --cache-fil | --cache-fi \
1092 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1093 ac_prev=cache_file ;;
1094 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1095 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1096 cache_file=$ac_optarg ;;
1097
1098 --config-cache | -C)
1099 cache_file=config.cache ;;
1100
1101 -datadir | --datadir | --datadi | --datad)
1102 ac_prev=datadir ;;
1103 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1104 datadir=$ac_optarg ;;
1105
1106 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1107 | --dataroo | --dataro | --datar)
1108 ac_prev=datarootdir ;;
1109 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1110 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1111 datarootdir=$ac_optarg ;;
1112
1113 -disable-* | --disable-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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 feature 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 "enable_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval enable_$ac_useropt=no ;;
1128
1129 -docdir | --docdir | --docdi | --doc | --do)
1130 ac_prev=docdir ;;
1131 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1132 docdir=$ac_optarg ;;
1133
1134 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1135 ac_prev=dvidir ;;
1136 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1137 dvidir=$ac_optarg ;;
1138
1139 -enable-* | --enable-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error "invalid feature name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "enable_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval enable_$ac_useropt=\$ac_optarg ;;
1154
1155 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1156 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1157 | --exec | --exe | --ex)
1158 ac_prev=exec_prefix ;;
1159 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1160 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1161 | --exec=* | --exe=* | --ex=*)
1162 exec_prefix=$ac_optarg ;;
1163
1164 -gas | --gas | --ga | --g)
1165 # Obsolete; use --with-gas.
1166 with_gas=yes ;;
1167
1168 -help | --help | --hel | --he | -h)
1169 ac_init_help=long ;;
1170 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1171 ac_init_help=recursive ;;
1172 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1173 ac_init_help=short ;;
1174
1175 -host | --host | --hos | --ho)
1176 ac_prev=host_alias ;;
1177 -host=* | --host=* | --hos=* | --ho=*)
1178 host_alias=$ac_optarg ;;
1179
1180 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1181 ac_prev=htmldir ;;
1182 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1183 | --ht=*)
1184 htmldir=$ac_optarg ;;
1185
1186 -includedir | --includedir | --includedi | --included | --include \
1187 | --includ | --inclu | --incl | --inc)
1188 ac_prev=includedir ;;
1189 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1190 | --includ=* | --inclu=* | --incl=* | --inc=*)
1191 includedir=$ac_optarg ;;
1192
1193 -infodir | --infodir | --infodi | --infod | --info | --inf)
1194 ac_prev=infodir ;;
1195 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1196 infodir=$ac_optarg ;;
1197
1198 -libdir | --libdir | --libdi | --libd)
1199 ac_prev=libdir ;;
1200 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1201 libdir=$ac_optarg ;;
1202
1203 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1204 | --libexe | --libex | --libe)
1205 ac_prev=libexecdir ;;
1206 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1207 | --libexe=* | --libex=* | --libe=*)
1208 libexecdir=$ac_optarg ;;
1209
1210 -localedir | --localedir | --localedi | --localed | --locale)
1211 ac_prev=localedir ;;
1212 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1213 localedir=$ac_optarg ;;
1214
1215 -localstatedir | --localstatedir | --localstatedi | --localstated \
1216 | --localstate | --localstat | --localsta | --localst | --locals)
1217 ac_prev=localstatedir ;;
1218 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1219 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1220 localstatedir=$ac_optarg ;;
1221
1222 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1223 ac_prev=mandir ;;
1224 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1225 mandir=$ac_optarg ;;
1226
1227 -nfp | --nfp | --nf)
1228 # Obsolete; use --without-fp.
1229 with_fp=no ;;
1230
1231 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1232 | --no-cr | --no-c | -n)
1233 no_create=yes ;;
1234
1235 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1236 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1237 no_recursion=yes ;;
1238
1239 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1240 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1241 | --oldin | --oldi | --old | --ol | --o)
1242 ac_prev=oldincludedir ;;
1243 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1244 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1245 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1246 oldincludedir=$ac_optarg ;;
1247
1248 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1249 ac_prev=prefix ;;
1250 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1251 prefix=$ac_optarg ;;
1252
1253 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1254 | --program-pre | --program-pr | --program-p)
1255 ac_prev=program_prefix ;;
1256 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1257 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1258 program_prefix=$ac_optarg ;;
1259
1260 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1261 | --program-suf | --program-su | --program-s)
1262 ac_prev=program_suffix ;;
1263 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1264 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1265 program_suffix=$ac_optarg ;;
1266
1267 -program-transform-name | --program-transform-name \
1268 | --program-transform-nam | --program-transform-na \
1269 | --program-transform-n | --program-transform- \
1270 | --program-transform | --program-transfor \
1271 | --program-transfo | --program-transf \
1272 | --program-trans | --program-tran \
1273 | --progr-tra | --program-tr | --program-t)
1274 ac_prev=program_transform_name ;;
1275 -program-transform-name=* | --program-transform-name=* \
1276 | --program-transform-nam=* | --program-transform-na=* \
1277 | --program-transform-n=* | --program-transform-=* \
1278 | --program-transform=* | --program-transfor=* \
1279 | --program-transfo=* | --program-transf=* \
1280 | --program-trans=* | --program-tran=* \
1281 | --progr-tra=* | --program-tr=* | --program-t=*)
1282 program_transform_name=$ac_optarg ;;
1283
1284 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1285 ac_prev=pdfdir ;;
1286 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1287 pdfdir=$ac_optarg ;;
1288
1289 -psdir | --psdir | --psdi | --psd | --ps)
1290 ac_prev=psdir ;;
1291 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1292 psdir=$ac_optarg ;;
1293
1294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295 | -silent | --silent | --silen | --sile | --sil)
1296 silent=yes ;;
1297
1298 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1299 ac_prev=sbindir ;;
1300 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1301 | --sbi=* | --sb=*)
1302 sbindir=$ac_optarg ;;
1303
1304 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1305 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1306 | --sharedst | --shareds | --shared | --share | --shar \
1307 | --sha | --sh)
1308 ac_prev=sharedstatedir ;;
1309 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1310 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1311 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1312 | --sha=* | --sh=*)
1313 sharedstatedir=$ac_optarg ;;
1314
1315 -site | --site | --sit)
1316 ac_prev=site ;;
1317 -site=* | --site=* | --sit=*)
1318 site=$ac_optarg ;;
1319
1320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1321 ac_prev=srcdir ;;
1322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1323 srcdir=$ac_optarg ;;
1324
1325 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1326 | --syscon | --sysco | --sysc | --sys | --sy)
1327 ac_prev=sysconfdir ;;
1328 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1329 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1330 sysconfdir=$ac_optarg ;;
1331
1332 -target | --target | --targe | --targ | --tar | --ta | --t)
1333 ac_prev=target_alias ;;
1334 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1335 target_alias=$ac_optarg ;;
1336
1337 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1338 verbose=yes ;;
1339
1340 -version | --version | --versio | --versi | --vers | -V)
1341 ac_init_version=: ;;
1342
1343 -with-* | --with-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 as_fn_error "invalid package name: $ac_useropt"
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1351 *"
1352 "with_$ac_useropt"
1353 "*) ;;
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1356 esac
1357 eval with_$ac_useropt=\$ac_optarg ;;
1358
1359 -without-* | --without-*)
1360 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1361 # Reject names that are not valid shell variable names.
1362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363 as_fn_error "invalid package name: $ac_useropt"
1364 ac_useropt_orig=$ac_useropt
1365 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1366 case $ac_user_opts in
1367 *"
1368 "with_$ac_useropt"
1369 "*) ;;
1370 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1371 ac_unrecognized_sep=', ';;
1372 esac
1373 eval with_$ac_useropt=no ;;
1374
1375 --x)
1376 # Obsolete; use --with-x.
1377 with_x=yes ;;
1378
1379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1380 | --x-incl | --x-inc | --x-in | --x-i)
1381 ac_prev=x_includes ;;
1382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1384 x_includes=$ac_optarg ;;
1385
1386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1388 ac_prev=x_libraries ;;
1389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1391 x_libraries=$ac_optarg ;;
1392
1393 -*) as_fn_error "unrecognized option: \`$ac_option'
1394 Try \`$0 --help' for more information."
1395 ;;
1396
1397 *=*)
1398 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1399 # Reject names that are not valid shell variable names.
1400 case $ac_envvar in #(
1401 '' | [0-9]* | *[!_$as_cr_alnum]* )
1402 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1403 esac
1404 eval $ac_envvar=\$ac_optarg
1405 export $ac_envvar ;;
1406
1407 *)
1408 # FIXME: should be removed in autoconf 3.0.
1409 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1410 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1412 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1413 ;;
1414
1415 esac
1416 done
1417
1418 if test -n "$ac_prev"; then
1419 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1420 as_fn_error "missing argument to $ac_option"
1421 fi
1422
1423 if test -n "$ac_unrecognized_opts"; then
1424 case $enable_option_checking in
1425 no) ;;
1426 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1427 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1428 esac
1429 fi
1430
1431 # Check all directory arguments for consistency.
1432 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1433 datadir sysconfdir sharedstatedir localstatedir includedir \
1434 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1435 libdir localedir mandir
1436 do
1437 eval ac_val=\$$ac_var
1438 # Remove trailing slashes.
1439 case $ac_val in
1440 */ )
1441 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1442 eval $ac_var=\$ac_val;;
1443 esac
1444 # Be sure to have absolute directory names.
1445 case $ac_val in
1446 [\\/$]* | ?:[\\/]* ) continue;;
1447 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1448 esac
1449 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1450 done
1451
1452 # There might be people who depend on the old broken behavior: `$host'
1453 # used to hold the argument of --host etc.
1454 # FIXME: To remove some day.
1455 build=$build_alias
1456 host=$host_alias
1457 target=$target_alias
1458
1459 # FIXME: To remove some day.
1460 if test "x$host_alias" != x; then
1461 if test "x$build_alias" = x; then
1462 cross_compiling=maybe
1463 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1464 If a cross compiler is detected then cross compile mode will be used." >&2
1465 elif test "x$build_alias" != "x$host_alias"; then
1466 cross_compiling=yes
1467 fi
1468 fi
1469
1470 ac_tool_prefix=
1471 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1472
1473 test "$silent" = yes && exec 6>/dev/null
1474
1475
1476 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1477 ac_ls_di=`ls -di .` &&
1478 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1479 as_fn_error "working directory cannot be determined"
1480 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481 as_fn_error "pwd does not report name of working directory"
1482
1483
1484 # Find the source files, if location was not specified.
1485 if test -z "$srcdir"; then
1486 ac_srcdir_defaulted=yes
1487 # Try the directory containing this script, then the parent directory.
1488 ac_confdir=`$as_dirname -- "$as_myself" ||
1489 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1490 X"$as_myself" : 'X\(//\)[^/]' \| \
1491 X"$as_myself" : 'X\(//\)$' \| \
1492 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1493 $as_echo X"$as_myself" |
1494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1495 s//\1/
1496 q
1497 }
1498 /^X\(\/\/\)[^/].*/{
1499 s//\1/
1500 q
1501 }
1502 /^X\(\/\/\)$/{
1503 s//\1/
1504 q
1505 }
1506 /^X\(\/\).*/{
1507 s//\1/
1508 q
1509 }
1510 s/.*/./; q'`
1511 srcdir=$ac_confdir
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1513 srcdir=..
1514 fi
1515 else
1516 ac_srcdir_defaulted=no
1517 fi
1518 if test ! -r "$srcdir/$ac_unique_file"; then
1519 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1520 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1521 fi
1522 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1523 ac_abs_confdir=`(
1524 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1525 pwd)`
1526 # When building in place, set srcdir=.
1527 if test "$ac_abs_confdir" = "$ac_pwd"; then
1528 srcdir=.
1529 fi
1530 # Remove unnecessary trailing slashes from srcdir.
1531 # Double slashes in file names in object file debugging info
1532 # mess up M-x gdb in Emacs.
1533 case $srcdir in
1534 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535 esac
1536 for ac_var in $ac_precious_vars; do
1537 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1538 eval ac_env_${ac_var}_value=\$${ac_var}
1539 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1540 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1541 done
1542
1543 #
1544 # Report the --help message.
1545 #
1546 if test "$ac_init_help" = "long"; then
1547 # Omit some internal or obsolete options to make the list less imposing.
1548 # This message is too long to be a string in the A/UX 3.1 sh.
1549 cat <<_ACEOF
1550 \`configure' configures libICE 1.0.7 to adapt to many kinds of systems.
1551
1552 Usage: $0 [OPTION]... [VAR=VALUE]...
1553
1554 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555 VAR=VALUE. See below for descriptions of some of the useful variables.
1556
1557 Defaults for the options are specified in brackets.
1558
1559 Configuration:
1560 -h, --help display this help and exit
1561 --help=short display options specific to this package
1562 --help=recursive display the short help of all the included packages
1563 -V, --version display version information and exit
1564 -q, --quiet, --silent do not print \`checking...' messages
1565 --cache-file=FILE cache test results in FILE [disabled]
1566 -C, --config-cache alias for \`--cache-file=config.cache'
1567 -n, --no-create do not create output files
1568 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1569
1570 Installation directories:
1571 --prefix=PREFIX install architecture-independent files in PREFIX
1572 [$ac_default_prefix]
1573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1574 [PREFIX]
1575
1576 By default, \`make install' will install all the files in
1577 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1578 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579 for instance \`--prefix=\$HOME'.
1580
1581 For better control, use the options below.
1582
1583 Fine tuning of the installation directories:
1584 --bindir=DIR user executables [EPREFIX/bin]
1585 --sbindir=DIR system admin executables [EPREFIX/sbin]
1586 --libexecdir=DIR program executables [EPREFIX/libexec]
1587 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1588 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1589 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1590 --libdir=DIR object code libraries [EPREFIX/lib]
1591 --includedir=DIR C header files [PREFIX/include]
1592 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1593 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1594 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1595 --infodir=DIR info documentation [DATAROOTDIR/info]
1596 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1597 --mandir=DIR man documentation [DATAROOTDIR/man]
1598 --docdir=DIR documentation root [DATAROOTDIR/doc/libICE]
1599 --htmldir=DIR html documentation [DOCDIR]
1600 --dvidir=DIR dvi documentation [DOCDIR]
1601 --pdfdir=DIR pdf documentation [DOCDIR]
1602 --psdir=DIR ps documentation [DOCDIR]
1603 _ACEOF
1604
1605 cat <<\_ACEOF
1606
1607 Program names:
1608 --program-prefix=PREFIX prepend PREFIX to installed program names
1609 --program-suffix=SUFFIX append SUFFIX to installed program names
1610 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1611
1612 System types:
1613 --build=BUILD configure for building on BUILD [guessed]
1614 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1615 _ACEOF
1616 fi
1617
1618 if test -n "$ac_init_help"; then
1619 case $ac_init_help in
1620 short | recursive ) echo "Configuration of libICE 1.0.7:";;
1621 esac
1622 cat <<\_ACEOF
1623
1624 Optional Features:
1625 --disable-option-checking ignore unrecognized --enable/--with options
1626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1628 --enable-maintainer-mode enable make rules and dependencies not useful
1629 (and sometimes confusing) to the casual installer
1630 --disable-dependency-tracking speeds up one-time build
1631 --enable-dependency-tracking do not reject slow dependency extractors
1632 --enable-strict-compilation
1633 Enable all warnings from compiler and make them
1634 errors (default: disabled)
1635 --enable-silent-rules less verbose build output (undo: `make V=1')
1636 --disable-silent-rules verbose build output (undo: `make V=0')
1637 --enable-docs Enable building the documentation (default: yes)
1638 --enable-specs Enable building the specs (default: yes)
1639 --enable-shared[=PKGS] build shared libraries [default=yes]
1640 --enable-static[=PKGS] build static libraries [default=yes]
1641 --enable-fast-install[=PKGS]
1642 optimize for fast installation [default=yes]
1643 --disable-libtool-lock avoid locking (might break parallel builds)
1644 --enable-unix-transport Enable UNIX domain socket transport
1645 --enable-tcp-transport Enable TCP socket transport
1646 --enable-IPv6 Enable IPv6 support
1647 --enable-local-transport
1648 Enable os-specific local transport
1649 --enable-lint-library Create lint library (default: disabled)
1650
1651 Optional Packages:
1652 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1653 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1654 --with-xmlto Use xmlto to regenerate documentation (default: yes,
1655 if installed)
1656 --with-fop Use fop to regenerate documentation (default: yes,
1657 if installed)
1658 --with-pic try to use only PIC/non-PIC objects [default=use
1659 both]
1660 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1661 --with-lint Use a lint-style source code checker (default:
1662 disabled)
1663
1664 Some influential environment variables:
1665 CC C compiler command
1666 CFLAGS C compiler flags
1667 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1668 nonstandard directory <lib dir>
1669 LIBS libraries to pass to the linker, e.g. -l<library>
1670 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1671 you have headers in a nonstandard directory <include dir>
1672 CPP C preprocessor
1673 PKG_CONFIG path to pkg-config utility
1674 XMLTO Path to xmlto command
1675 FOP Path to fop command
1676 ICE_CFLAGS C compiler flags for ICE, overriding pkg-config
1677 ICE_LIBS linker flags for ICE, overriding pkg-config
1678 XTRANS_CFLAGS
1679 C compiler flags for XTRANS, overriding pkg-config
1680 XTRANS_LIBS linker flags for XTRANS, overriding pkg-config
1681 LINT Path to a lint-style command
1682 LINT_FLAGS Flags for the lint-style command
1683
1684 Use these variables to override the choices made by `configure' or to help
1685 it to find libraries and programs with nonstandard names/locations.
1686
1687 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1688 _ACEOF
1689 ac_status=$?
1690 fi
1691
1692 if test "$ac_init_help" = "recursive"; then
1693 # If there are subdirs, report their specific --help.
1694 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1695 test -d "$ac_dir" ||
1696 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1697 continue
1698 ac_builddir=.
1699
1700 case "$ac_dir" in
1701 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *)
1703 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1704 # A ".." for each directory in $ac_dir_suffix.
1705 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1706 case $ac_top_builddir_sub in
1707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1709 esac ;;
1710 esac
1711 ac_abs_top_builddir=$ac_pwd
1712 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1713 # for backward compatibility:
1714 ac_top_builddir=$ac_top_build_prefix
1715
1716 case $srcdir in
1717 .) # We are building in place.
1718 ac_srcdir=.
1719 ac_top_srcdir=$ac_top_builddir_sub
1720 ac_abs_top_srcdir=$ac_pwd ;;
1721 [\\/]* | ?:[\\/]* ) # Absolute name.
1722 ac_srcdir=$srcdir$ac_dir_suffix;
1723 ac_top_srcdir=$srcdir
1724 ac_abs_top_srcdir=$srcdir ;;
1725 *) # Relative name.
1726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1727 ac_top_srcdir=$ac_top_build_prefix$srcdir
1728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1729 esac
1730 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1731
1732 cd "$ac_dir" || { ac_status=$?; continue; }
1733 # Check for guested configure.
1734 if test -f "$ac_srcdir/configure.gnu"; then
1735 echo &&
1736 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1737 elif test -f "$ac_srcdir/configure"; then
1738 echo &&
1739 $SHELL "$ac_srcdir/configure" --help=recursive
1740 else
1741 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1742 fi || ac_status=$?
1743 cd "$ac_pwd" || { ac_status=$?; break; }
1744 done
1745 fi
1746
1747 test -n "$ac_init_help" && exit $ac_status
1748 if $ac_init_version; then
1749 cat <<\_ACEOF
1750 libICE configure 1.0.7
1751 generated by GNU Autoconf 2.65
1752
1753 Copyright (C) 2009 Free Software Foundation, Inc.
1754 This configure script is free software; the Free Software Foundation
1755 gives unlimited permission to copy, distribute and modify it.
1756 _ACEOF
1757 exit
1758 fi
1759
1760 ## ------------------------ ##
1761 ## Autoconf initialization. ##
1762 ## ------------------------ ##
1763
1764 # ac_fn_c_try_compile LINENO
1765 # --------------------------
1766 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_compile ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.$ac_objext; then :
1790 ac_retval=0
1791 else
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 ac_retval=1
1796 fi
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_compile
1801
1802 # ac_fn_c_check_decl LINENO SYMBOL VAR
1803 # ------------------------------------
1804 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1805 ac_fn_c_check_decl ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1809 $as_echo_n "checking whether $2 is declared... " >&6; }
1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 $4
1816 int
1817 main ()
1818 {
1819 #ifndef $2
1820 (void) $2;
1821 #endif
1822
1823 ;
1824 return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 eval "$3=yes"
1829 else
1830 eval "$3=no"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839 } # ac_fn_c_check_decl
1840
1841 # ac_fn_c_try_cpp LINENO
1842 # ----------------------
1843 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_c_try_cpp ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_cpp conftest.$ac_ext"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1860 fi
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } >/dev/null && {
1863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 }; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872 fi
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 as_fn_set_status $ac_retval
1875
1876 } # ac_fn_c_try_cpp
1877
1878 # ac_fn_c_try_run LINENO
1879 # ----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1881 # that executables *can* be run.
1882 ac_fn_c_try_run ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_link"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>&5
1893 ac_status=$?
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1896 { { case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_try") 2>&5
1903 ac_status=$?
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; }; }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: program exited with status $ac_status" >&5
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 ac_retval=$ac_status
1913 fi
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916 as_fn_set_status $ac_retval
1917
1918 } # ac_fn_c_try_run
1919
1920 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1921 # -------------------------------------------------------
1922 # Tests whether HEADER exists and can be compiled using the include files in
1923 # INCLUDES, setting the cache variable VAR accordingly.
1924 ac_fn_c_check_header_compile ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 #include <$2>
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 eval "$3=yes"
1939 else
1940 eval "$3=no"
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 fi
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948
1949 } # ac_fn_c_check_header_compile
1950
1951 # ac_fn_c_try_link LINENO
1952 # -----------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded.
1954 ac_fn_c_try_link ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 rm -f conftest.$ac_objext conftest$ac_exeext
1958 if { { ac_try="$ac_link"
1959 case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_link") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1971 fi
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && {
1974 test -z "$ac_c_werror_flag" ||
1975 test ! -s conftest.err
1976 } && test -s conftest$ac_exeext && {
1977 test "$cross_compiling" = yes ||
1978 $as_test_x conftest$ac_exeext
1979 }; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1984
1985 ac_retval=1
1986 fi
1987 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1988 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1989 # interfere with the next link command; also delete a directory that is
1990 # left behind by Apple's compiler. We do this before executing the actions.
1991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 as_fn_set_status $ac_retval
1994
1995 } # ac_fn_c_try_link
1996
1997 # ac_fn_c_check_func LINENO FUNC VAR
1998 # ----------------------------------
1999 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2000 ac_fn_c_check_func ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2006 $as_echo_n "(cached) " >&6
2007 else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2012 #define $2 innocuous_$2
2013
2014 /* System header to define __stub macros and hopefully few prototypes,
2015 which can conflict with char $2 (); below.
2016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2017 <limits.h> exists even on freestanding compilers. */
2018
2019 #ifdef __STDC__
2020 # include <limits.h>
2021 #else
2022 # include <assert.h>
2023 #endif
2024
2025 #undef $2
2026
2027 /* Override any GCC internal prototype to avoid an error.
2028 Use char because int might match the return type of a GCC
2029 builtin and then its argument prototype would still apply. */
2030 #ifdef __cplusplus
2031 extern "C"
2032 #endif
2033 char $2 ();
2034 /* The GNU C library defines this for functions which it implements
2035 to always fail with ENOSYS. Some functions are actually named
2036 something starting with __ and the normal name is an alias. */
2037 #if defined __stub_$2 || defined __stub___$2
2038 choke me
2039 #endif
2040
2041 int
2042 main ()
2043 {
2044 return $2 ();
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_link "$LINENO"; then :
2050 eval "$3=yes"
2051 else
2052 eval "$3=no"
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext \
2055 conftest$ac_exeext conftest.$ac_ext
2056 fi
2057 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061
2062 } # ac_fn_c_check_func
2063
2064 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2065 # ----------------------------------------------------
2066 # Tries to find if the field MEMBER exists in type AGGR, after including
2067 # INCLUDES, setting cache variable VAR accordingly.
2068 ac_fn_c_check_member ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2072 $as_echo_n "checking for $2.$3... " >&6; }
2073 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $5
2079 int
2080 main ()
2081 {
2082 static $2 ac_aggr;
2083 if (ac_aggr.$3)
2084 return 0;
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 eval "$4=yes"
2091 else
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2094 $5
2095 int
2096 main ()
2097 {
2098 static $2 ac_aggr;
2099 if (sizeof ac_aggr.$3)
2100 return 0;
2101 ;
2102 return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 eval "$4=yes"
2107 else
2108 eval "$4=no"
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 eval ac_res=\$$4
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118
2119 } # ac_fn_c_check_member
2120
2121 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2122 # -------------------------------------------
2123 # Tests whether TYPE exists after having included INCLUDES, setting cache
2124 # variable VAR accordingly.
2125 ac_fn_c_check_type ()
2126 {
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2131 $as_echo_n "(cached) " >&6
2132 else
2133 eval "$3=no"
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $4
2137 int
2138 main ()
2139 {
2140 if (sizeof ($2))
2141 return 0;
2142 ;
2143 return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 $4
2150 int
2151 main ()
2152 {
2153 if (sizeof (($2)))
2154 return 0;
2155 ;
2156 return 0;
2157 }
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160
2161 else
2162 eval "$3=yes"
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172
2173 } # ac_fn_c_check_type
2174 cat >config.log <<_ACEOF
2175 This file contains any messages produced by compilers while
2176 running configure, to aid debugging if configure makes a mistake.
2177
2178 It was created by libICE $as_me 1.0.7, which was
2179 generated by GNU Autoconf 2.65. Invocation command line was
2180
2181 $ $0 $@
2182
2183 _ACEOF
2184 exec 5>>config.log
2185 {
2186 cat <<_ASUNAME
2187 ## --------- ##
2188 ## Platform. ##
2189 ## --------- ##
2190
2191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2196
2197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2199
2200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2207
2208 _ASUNAME
2209
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 $as_echo "PATH: $as_dir"
2216 done
2217 IFS=$as_save_IFS
2218
2219 } >&5
2220
2221 cat >&5 <<_ACEOF
2222
2223
2224 ## ----------- ##
2225 ## Core tests. ##
2226 ## ----------- ##
2227
2228 _ACEOF
2229
2230
2231 # Keep a trace of the command line.
2232 # Strip out --no-create and --no-recursion so they do not pile up.
2233 # Strip out --silent because we don't want to record it for future runs.
2234 # Also quote any args containing shell meta-characters.
2235 # Make two passes to allow for proper duplicate-argument suppression.
2236 ac_configure_args=
2237 ac_configure_args0=
2238 ac_configure_args1=
2239 ac_must_keep_next=false
2240 for ac_pass in 1 2
2241 do
2242 for ac_arg
2243 do
2244 case $ac_arg in
2245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247 | -silent | --silent | --silen | --sile | --sil)
2248 continue ;;
2249 *\'*)
2250 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251 esac
2252 case $ac_pass in
2253 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2254 2)
2255 as_fn_append ac_configure_args1 " '$ac_arg'"
2256 if test $ac_must_keep_next = true; then
2257 ac_must_keep_next=false # Got value, back to normal.
2258 else
2259 case $ac_arg in
2260 *=* | --config-cache | -C | -disable-* | --disable-* \
2261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263 | -with-* | --with-* | -without-* | --without-* | --x)
2264 case "$ac_configure_args0 " in
2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2266 esac
2267 ;;
2268 -* ) ac_must_keep_next=true ;;
2269 esac
2270 fi
2271 as_fn_append ac_configure_args " '$ac_arg'"
2272 ;;
2273 esac
2274 done
2275 done
2276 { ac_configure_args0=; unset ac_configure_args0;}
2277 { ac_configure_args1=; unset ac_configure_args1;}
2278
2279 # When interrupted or exit'd, cleanup temporary files, and complete
2280 # config.log. We remove comments because anyway the quotes in there
2281 # would cause problems or look ugly.
2282 # WARNING: Use '\'' to represent an apostrophe within the trap.
2283 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284 trap 'exit_status=$?
2285 # Save into config.log some information that might help in debugging.
2286 {
2287 echo
2288
2289 cat <<\_ASBOX
2290 ## ---------------- ##
2291 ## Cache variables. ##
2292 ## ---------------- ##
2293 _ASBOX
2294 echo
2295 # The following way of writing the cache mishandles newlines in values,
2296 (
2297 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2298 eval ac_val=\$$ac_var
2299 case $ac_val in #(
2300 *${as_nl}*)
2301 case $ac_var in #(
2302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2303 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2304 esac
2305 case $ac_var in #(
2306 _ | IFS | as_nl) ;; #(
2307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2308 *) { eval $ac_var=; unset $ac_var;} ;;
2309 esac ;;
2310 esac
2311 done
2312 (set) 2>&1 |
2313 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2314 *${as_nl}ac_space=\ *)
2315 sed -n \
2316 "s/'\''/'\''\\\\'\'''\''/g;
2317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2318 ;; #(
2319 *)
2320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2321 ;;
2322 esac |
2323 sort
2324 )
2325 echo
2326
2327 cat <<\_ASBOX
2328 ## ----------------- ##
2329 ## Output variables. ##
2330 ## ----------------- ##
2331 _ASBOX
2332 echo
2333 for ac_var in $ac_subst_vars
2334 do
2335 eval ac_val=\$$ac_var
2336 case $ac_val in
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 esac
2339 $as_echo "$ac_var='\''$ac_val'\''"
2340 done | sort
2341 echo
2342
2343 if test -n "$ac_subst_files"; then
2344 cat <<\_ASBOX
2345 ## ------------------- ##
2346 ## File substitutions. ##
2347 ## ------------------- ##
2348 _ASBOX
2349 echo
2350 for ac_var in $ac_subst_files
2351 do
2352 eval ac_val=\$$ac_var
2353 case $ac_val in
2354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355 esac
2356 $as_echo "$ac_var='\''$ac_val'\''"
2357 done | sort
2358 echo
2359 fi
2360
2361 if test -s confdefs.h; then
2362 cat <<\_ASBOX
2363 ## ----------- ##
2364 ## confdefs.h. ##
2365 ## ----------- ##
2366 _ASBOX
2367 echo
2368 cat confdefs.h
2369 echo
2370 fi
2371 test "$ac_signal" != 0 &&
2372 $as_echo "$as_me: caught signal $ac_signal"
2373 $as_echo "$as_me: exit $exit_status"
2374 } >&5
2375 rm -f core *.core core.conftest.* &&
2376 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2377 exit $exit_status
2378 ' 0
2379 for ac_signal in 1 2 13 15; do
2380 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2381 done
2382 ac_signal=0
2383
2384 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2385 rm -f -r conftest* confdefs.h
2386
2387 $as_echo "/* confdefs.h */" > confdefs.h
2388
2389 # Predefined preprocessor variables.
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_NAME "$PACKAGE_NAME"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_STRING "$PACKAGE_STRING"
2405 _ACEOF
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2409 _ACEOF
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_URL "$PACKAGE_URL"
2413 _ACEOF
2414
2415
2416 # Let the site file select an alternate cache file if it wants to.
2417 # Prefer an explicitly selected file to automatically selected ones.
2418 ac_site_file1=NONE
2419 ac_site_file2=NONE
2420 if test -n "$CONFIG_SITE"; then
2421 ac_site_file1=$CONFIG_SITE
2422 elif test "x$prefix" != xNONE; then
2423 ac_site_file1=$prefix/share/config.site
2424 ac_site_file2=$prefix/etc/config.site
2425 else
2426 ac_site_file1=$ac_default_prefix/share/config.site
2427 ac_site_file2=$ac_default_prefix/etc/config.site
2428 fi
2429 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2430 do
2431 test "x$ac_site_file" = xNONE && continue
2432 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2434 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2435 sed 's/^/| /' "$ac_site_file" >&5
2436 . "$ac_site_file"
2437 fi
2438 done
2439
2440 if test -r "$cache_file"; then
2441 # Some versions of bash will fail to source /dev/null (special files
2442 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2443 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2445 $as_echo "$as_me: loading cache $cache_file" >&6;}
2446 case $cache_file in
2447 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2448 *) . "./$cache_file";;
2449 esac
2450 fi
2451 else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2453 $as_echo "$as_me: creating cache $cache_file" >&6;}
2454 >$cache_file
2455 fi
2456
2457 # Check that the precious variables saved in the cache have kept the same
2458 # value.
2459 ac_cache_corrupted=false
2460 for ac_var in $ac_precious_vars; do
2461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2462 eval ac_new_set=\$ac_env_${ac_var}_set
2463 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2464 eval ac_new_val=\$ac_env_${ac_var}_value
2465 case $ac_old_set,$ac_new_set in
2466 set,)
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,set)
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2472 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2473 ac_cache_corrupted=: ;;
2474 ,);;
2475 *)
2476 if test "x$ac_old_val" != "x$ac_new_val"; then
2477 # differences in whitespace do not lead to failure.
2478 ac_old_val_w=`echo x $ac_old_val`
2479 ac_new_val_w=`echo x $ac_new_val`
2480 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2482 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2483 ac_cache_corrupted=:
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2486 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2487 eval $ac_var=\$ac_old_val
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2490 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2492 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2493 fi;;
2494 esac
2495 # Pass precious variables to config.status.
2496 if test "$ac_new_set" = set; then
2497 case $ac_new_val in
2498 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2499 *) ac_arg=$ac_var=$ac_new_val ;;
2500 esac
2501 case " $ac_configure_args " in
2502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2503 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2504 esac
2505 fi
2506 done
2507 if $ac_cache_corrupted; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2511 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2512 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2513 fi
2514 ## -------------------- ##
2515 ## Main body of script. ##
2516 ## -------------------- ##
2517
2518 ac_ext=c
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
2524
2525
2526
2527 am__api_version='1.11'
2528
2529 ac_aux_dir=
2530 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2531 for ac_t in install-sh install.sh shtool; do
2532 if test -f "$ac_dir/$ac_t"; then
2533 ac_aux_dir=$ac_dir
2534 ac_install_sh="$ac_aux_dir/$ac_t -c"
2535 break 2
2536 fi
2537 done
2538 done
2539 if test -z "$ac_aux_dir"; then
2540 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2541 fi
2542
2543 # These three variables are undocumented and unsupported,
2544 # and are intended to be withdrawn in a future Autoconf release.
2545 # They can cause serious problems if a builder's source tree is in a directory
2546 # whose full name contains unusual characters.
2547 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2548 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2549 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2550
2551
2552 # Find a good install program. We prefer a C program (faster),
2553 # so one script is as good as another. But avoid the broken or
2554 # incompatible versions:
2555 # SysV /etc/install, /usr/sbin/install
2556 # SunOS /usr/etc/install
2557 # IRIX /sbin/install
2558 # AIX /bin/install
2559 # AmigaOS /C/install, which installs bootblocks on floppy discs
2560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2563 # OS/2's system install, which has a completely different semantic
2564 # ./install, which can be erroneously created by make from ./install.sh.
2565 # Reject install programs that cannot install multiple files.
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2567 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2568 if test -z "$INSTALL"; then
2569 if test "${ac_cv_path_install+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 # Account for people who put trailing slashes in PATH elements.
2578 case $as_dir/ in #((
2579 ./ | .// | /[cC]/* | \
2580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2581 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2582 /usr/ucb/* ) ;;
2583 *)
2584 # OSF1 and SCO ODT 3.0 have their own names for install.
2585 # Don't use installbsd from OSF since it installs stuff as root
2586 # by default.
2587 for ac_prog in ginstall scoinst install; do
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2590 if test $ac_prog = install &&
2591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2592 # AIX install. It has an incompatible calling convention.
2593 :
2594 elif test $ac_prog = install &&
2595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2596 # program-specific install script used by HP pwplus--don't use.
2597 :
2598 else
2599 rm -rf conftest.one conftest.two conftest.dir
2600 echo one > conftest.one
2601 echo two > conftest.two
2602 mkdir conftest.dir
2603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2604 test -s conftest.one && test -s conftest.two &&
2605 test -s conftest.dir/conftest.one &&
2606 test -s conftest.dir/conftest.two
2607 then
2608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2609 break 3
2610 fi
2611 fi
2612 fi
2613 done
2614 done
2615 ;;
2616 esac
2617
2618 done
2619 IFS=$as_save_IFS
2620
2621 rm -rf conftest.one conftest.two conftest.dir
2622
2623 fi
2624 if test "${ac_cv_path_install+set}" = set; then
2625 INSTALL=$ac_cv_path_install
2626 else
2627 # As a last resort, use the slow shell script. Don't cache a
2628 # value for INSTALL within a source directory, because that will
2629 # break other packages using the cache if that directory is
2630 # removed, or if the value is a relative name.
2631 INSTALL=$ac_install_sh
2632 fi
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2635 $as_echo "$INSTALL" >&6; }
2636
2637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2638 # It thinks the first close brace ends the variable substitution.
2639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2640
2641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2642
2643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2644
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2646 $as_echo_n "checking whether build environment is sane... " >&6; }
2647 # Just in case
2648 sleep 1
2649 echo timestamp > conftest.file
2650 # Reject unsafe characters in $srcdir or the absolute working directory
2651 # name. Accept space and tab only in the latter.
2652 am_lf='
2653 '
2654 case `pwd` in
2655 *[\\\"\#\$\&\'\`$am_lf]*)
2656 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2657 esac
2658 case $srcdir in
2659 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2660 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2661 esac
2662
2663 # Do `set' in a subshell so we don't clobber the current shell's
2664 # arguments. Must try -L first in case configure is actually a
2665 # symlink; some systems play weird games with the mod time of symlinks
2666 # (eg FreeBSD returns the mod time of the symlink's containing
2667 # directory).
2668 if (
2669 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2670 if test "$*" = "X"; then
2671 # -L didn't work.
2672 set X `ls -t "$srcdir/configure" conftest.file`
2673 fi
2674 rm -f conftest.file
2675 if test "$*" != "X $srcdir/configure conftest.file" \
2676 && test "$*" != "X conftest.file $srcdir/configure"; then
2677
2678 # If neither matched, then we have a broken ls. This can happen
2679 # if, for instance, CONFIG_SHELL is bash and it inherits a
2680 # broken ls alias from the environment. This has actually
2681 # happened. Such a system could not be considered "sane".
2682 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2683 alias in your environment" "$LINENO" 5
2684 fi
2685
2686 test "$2" = conftest.file
2687 )
2688 then
2689 # Ok.
2690 :
2691 else
2692 as_fn_error "newly created file is older than distributed files!
2693 Check your system clock" "$LINENO" 5
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2696 $as_echo "yes" >&6; }
2697 test "$program_prefix" != NONE &&
2698 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2699 # Use a double $ so make ignores it.
2700 test "$program_suffix" != NONE &&
2701 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2702 # Double any \ or $.
2703 # By default was `s,x,x', remove it if useless.
2704 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2705 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2706
2707 # expand $ac_aux_dir to an absolute path
2708 am_aux_dir=`cd $ac_aux_dir && pwd`
2709
2710 if test x"${MISSING+set}" != xset; then
2711 case $am_aux_dir in
2712 *\ * | *\ *)
2713 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2714 *)
2715 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2716 esac
2717 fi
2718 # Use eval to expand $SHELL
2719 if eval "$MISSING --run true"; then
2720 am_missing_run="$MISSING --run "
2721 else
2722 am_missing_run=
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2724 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2725 fi
2726
2727 if test x"${install_sh}" != xset; then
2728 case $am_aux_dir in
2729 *\ * | *\ *)
2730 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2731 *)
2732 install_sh="\${SHELL} $am_aux_dir/install-sh"
2733 esac
2734 fi
2735
2736 # Installed binaries are usually stripped using `strip' when the user
2737 # run `make install-strip'. However `strip' might not be the right
2738 # tool to use in cross-compilation environments, therefore Automake
2739 # will honor the `STRIP' environment variable to overrule this program.
2740 if test "$cross_compiling" != no; then
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}strip; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_STRIP+set}" = set; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if test -n "$STRIP"; then
2750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2762 fi
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 STRIP=$ac_cv_prog_STRIP
2770 if test -n "$STRIP"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2772 $as_echo "$STRIP" >&6; }
2773 else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2776 fi
2777
2778
2779 fi
2780 if test -z "$ac_cv_prog_STRIP"; then
2781 ac_ct_STRIP=$STRIP
2782 # Extract the first word of "strip", so it can be a program name with args.
2783 set dummy strip; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$ac_ct_STRIP"; then
2790 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_STRIP="strip"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2810 if test -n "$ac_ct_STRIP"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2812 $as_echo "$ac_ct_STRIP" >&6; }
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818 if test "x$ac_ct_STRIP" = x; then
2819 STRIP=":"
2820 else
2821 case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827 STRIP=$ac_ct_STRIP
2828 fi
2829 else
2830 STRIP="$ac_cv_prog_STRIP"
2831 fi
2832
2833 fi
2834 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2835
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2837 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2838 if test -z "$MKDIR_P"; then
2839 if test "${ac_cv_path_mkdir+set}" = set; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2844 do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_prog in mkdir gmkdir; do
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2850 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2851 'mkdir (GNU coreutils) '* | \
2852 'mkdir (coreutils) '* | \
2853 'mkdir (fileutils) '4.1*)
2854 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2855 break 3;;
2856 esac
2857 done
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863
2864 test -d ./--version && rmdir ./--version
2865 if test "${ac_cv_path_mkdir+set}" = set; then
2866 MKDIR_P="$ac_cv_path_mkdir -p"
2867 else
2868 # As a last resort, use the slow shell script. Don't cache a
2869 # value for MKDIR_P within a source directory, because that will
2870 # break other packages using the cache if that directory is
2871 # removed, or if the value is a relative name.
2872 MKDIR_P="$ac_install_sh -d"
2873 fi
2874 fi
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2876 $as_echo "$MKDIR_P" >&6; }
2877
2878 mkdir_p="$MKDIR_P"
2879 case $mkdir_p in
2880 [\\/$]* | ?:[\\/]*) ;;
2881 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2882 esac
2883
2884 for ac_prog in gawk mawk nawk awk
2885 do
2886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_AWK+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$AWK"; then
2894 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_AWK="$ac_prog"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 AWK=$ac_cv_prog_AWK
2914 if test -n "$AWK"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2916 $as_echo "$AWK" >&6; }
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922
2923 test -n "$AWK" && break
2924 done
2925
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2927 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2928 set x ${MAKE-make}
2929 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2930 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 cat >conftest.make <<\_ACEOF
2934 SHELL = /bin/sh
2935 all:
2936 @echo '@@@%%%=$(MAKE)=@@@%%%'
2937 _ACEOF
2938 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2939 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2940 *@@@%%%=?*=@@@%%%*)
2941 eval ac_cv_prog_make_${ac_make}_set=yes;;
2942 *)
2943 eval ac_cv_prog_make_${ac_make}_set=no;;
2944 esac
2945 rm -f conftest.make
2946 fi
2947 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949 $as_echo "yes" >&6; }
2950 SET_MAKE=
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 SET_MAKE="MAKE=${MAKE-make}"
2955 fi
2956
2957 rm -rf .tst 2>/dev/null
2958 mkdir .tst 2>/dev/null
2959 if test -d .tst; then
2960 am__leading_dot=.
2961 else
2962 am__leading_dot=_
2963 fi
2964 rmdir .tst 2>/dev/null
2965
2966 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2967 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2968 # is not polluted with repeated "-I."
2969 am__isrc=' -I$(srcdir)'
2970 # test to see if srcdir already configured
2971 if test -f $srcdir/config.status; then
2972 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2973 fi
2974 fi
2975
2976 # test whether we have cygpath
2977 if test -z "$CYGPATH_W"; then
2978 if (cygpath --version) >/dev/null 2>/dev/null; then
2979 CYGPATH_W='cygpath -w'
2980 else
2981 CYGPATH_W=echo
2982 fi
2983 fi
2984
2985
2986 # Define the identity of the package.
2987 PACKAGE='libICE'
2988 VERSION='1.0.7'
2989
2990
2991 cat >>confdefs.h <<_ACEOF
2992 #define PACKAGE "$PACKAGE"
2993 _ACEOF
2994
2995
2996 cat >>confdefs.h <<_ACEOF
2997 #define VERSION "$VERSION"
2998 _ACEOF
2999
3000 # Some tools Automake needs.
3001
3002 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3003
3004
3005 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3006
3007
3008 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3009
3010
3011 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3012
3013
3014 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3015
3016 # We need awk for the "check" target. The system "awk" is bad on
3017 # some platforms.
3018 # Always define AMTAR for backward compatibility.
3019
3020 AMTAR=${AMTAR-"${am_missing_run}tar"}
3021
3022 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3023
3024
3025
3026
3027
3028
3029
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3031 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3032 # Check whether --enable-maintainer-mode was given.
3033 if test "${enable_maintainer_mode+set}" = set; then :
3034 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3035 else
3036 USE_MAINTAINER_MODE=no
3037 fi
3038
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3040 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3041 if test $USE_MAINTAINER_MODE = yes; then
3042 MAINTAINER_MODE_TRUE=
3043 MAINTAINER_MODE_FALSE='#'
3044 else
3045 MAINTAINER_MODE_TRUE='#'
3046 MAINTAINER_MODE_FALSE=
3047 fi
3048
3049 MAINT=$MAINTAINER_MODE_TRUE
3050
3051
3052 ac_config_headers="$ac_config_headers config.h"
3053
3054
3055 # Require xorg-macros minimum of 1.10 for DocBook XML documentation
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067 DEPDIR="${am__leading_dot}deps"
3068
3069 ac_config_commands="$ac_config_commands depfiles"
3070
3071
3072 am_make=${MAKE-make}
3073 cat > confinc << 'END'
3074 am__doit:
3075 @echo this is the am__doit target
3076 .PHONY: am__doit
3077 END
3078 # If we don't find an include directive, just comment out the code.
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3080 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3081 am__include="#"
3082 am__quote=
3083 _am_result=none
3084 # First try GNU make style include.
3085 echo "include confinc" > confmf
3086 # Ignore all kinds of additional output from `make'.
3087 case `$am_make -s -f confmf 2> /dev/null` in #(
3088 *the\ am__doit\ target*)
3089 am__include=include
3090 am__quote=
3091 _am_result=GNU
3092 ;;
3093 esac
3094 # Now try BSD make style include.
3095 if test "$am__include" = "#"; then
3096 echo '.include "confinc"' > confmf
3097 case `$am_make -s -f confmf 2> /dev/null` in #(
3098 *the\ am__doit\ target*)
3099 am__include=.include
3100 am__quote="\""
3101 _am_result=BSD
3102 ;;
3103 esac
3104 fi
3105
3106
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3108 $as_echo "$_am_result" >&6; }
3109 rm -f confinc confmf
3110
3111 # Check whether --enable-dependency-tracking was given.
3112 if test "${enable_dependency_tracking+set}" = set; then :
3113 enableval=$enable_dependency_tracking;
3114 fi
3115
3116 if test "x$enable_dependency_tracking" != xno; then
3117 am_depcomp="$ac_aux_dir/depcomp"
3118 AMDEPBACKSLASH='\'
3119 fi
3120 if test "x$enable_dependency_tracking" != xno; then
3121 AMDEP_TRUE=
3122 AMDEP_FALSE='#'
3123 else
3124 AMDEP_TRUE='#'
3125 AMDEP_FALSE=
3126 fi
3127
3128
3129 ac_ext=c
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if test "${ac_cv_prog_CC+set}" = set; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3155 fi
3156 done
3157 done
3158 IFS=$as_save_IFS
3159
3160 fi
3161 fi
3162 CC=$ac_cv_prog_CC
3163 if test -n "$CC"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165 $as_echo "$CC" >&6; }
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 fi
3170
3171
3172 fi
3173 if test -z "$ac_cv_prog_CC"; then
3174 ac_ct_CC=$CC
3175 # Extract the first word of "gcc", so it can be a program name with args.
3176 set dummy gcc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$ac_ct_CC"; then
3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_ac_ct_CC="gcc"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196 done
3197 done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203 if test -n "$ac_ct_CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205 $as_echo "$ac_ct_CC" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211 if test "x$ac_ct_CC" = x; then
3212 CC=""
3213 else
3214 case $cross_compiling:$ac_tool_warned in
3215 yes:)
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3218 ac_tool_warned=yes ;;
3219 esac
3220 CC=$ac_ct_CC
3221 fi
3222 else
3223 CC="$ac_cv_prog_CC"
3224 fi
3225
3226 if test -z "$CC"; then
3227 if test -n "$ac_tool_prefix"; then
3228 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3229 set dummy ${ac_tool_prefix}cc; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if test "${ac_cv_prog_CC+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if test -n "$CC"; then
3236 ac_cv_prog_CC="$CC" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3240 do
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_CC="${ac_tool_prefix}cc"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 fi
3254 fi
3255 CC=$ac_cv_prog_CC
3256 if test -n "$CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 $as_echo "$CC" >&6; }
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3262 fi
3263
3264
3265 fi
3266 fi
3267 if test -z "$CC"; then
3268 # Extract the first word of "cc", so it can be a program name with args.
3269 set dummy cc; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if test "${ac_cv_prog_CC+set}" = set; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 else
3278 ac_prog_rejected=no
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3287 ac_prog_rejected=yes
3288 continue
3289 fi
3290 ac_cv_prog_CC="cc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 if test $ac_prog_rejected = yes; then
3299 # We found a bogon in the path, so make sure we never use it.
3300 set dummy $ac_cv_prog_CC
3301 shift
3302 if test $# != 0; then
3303 # We chose a different compiler from the bogus one.
3304 # However, it has the same basename, so the bogon will be chosen
3305 # first if we set CC to just the basename; use the full file name.
3306 shift
3307 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3308 fi
3309 fi
3310 fi
3311 fi
3312 CC=$ac_cv_prog_CC
3313 if test -n "$CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 fi
3320
3321
3322 fi
3323 if test -z "$CC"; then
3324 if test -n "$ac_tool_prefix"; then
3325 for ac_prog in cl.exe
3326 do
3327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_CC+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3347 fi
3348 done
3349 done
3350 IFS=$as_save_IFS
3351
3352 fi
3353 fi
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 fi
3362
3363
3364 test -n "$CC" && break
3365 done
3366 fi
3367 if test -z "$CC"; then
3368 ac_ct_CC=$CC
3369 for ac_prog in cl.exe
3370 do
3371 # Extract the first word of "$ac_prog", so it can be a program name with args.
3372 set dummy $ac_prog; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 if test -n "$ac_ct_CC"; then
3379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388 ac_cv_prog_ac_ct_CC="$ac_prog"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 fi
3397 fi
3398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3399 if test -n "$ac_ct_CC"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3401 $as_echo "$ac_ct_CC" >&6; }
3402 else
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 fi
3406
3407
3408 test -n "$ac_ct_CC" && break
3409 done
3410
3411 if test "x$ac_ct_CC" = x; then
3412 CC=""
3413 else
3414 case $cross_compiling:$ac_tool_warned in
3415 yes:)
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3418 ac_tool_warned=yes ;;
3419 esac
3420 CC=$ac_ct_CC
3421 fi
3422 fi
3423
3424 fi
3425
3426
3427 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429 as_fn_error "no acceptable C compiler found in \$PATH
3430 See \`config.log' for more details." "$LINENO" 5; }
3431
3432 # Provide some information about the compiler.
3433 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3434 set X $ac_compile
3435 ac_compiler=$2
3436 for ac_option in --version -v -V -qversion; do
3437 { { ac_try="$ac_compiler $ac_option >&5"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3445 ac_status=$?
3446 if test -s conftest.err; then
3447 sed '10a\
3448 ... rest of stderr output deleted ...
3449 10q' conftest.err >conftest.er1
3450 cat conftest.er1 >&5
3451 fi
3452 rm -f conftest.er1 conftest.err
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }
3455 done
3456
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459
3460 int
3461 main ()
3462 {
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 ac_clean_files_save=$ac_clean_files
3469 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3470 # Try to create an executable without -o first, disregard a.out.
3471 # It will help us diagnose broken compilers, and finding out an intuition
3472 # of exeext.
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3474 $as_echo_n "checking whether the C compiler works... " >&6; }
3475 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3476
3477 # The possible output files:
3478 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3479
3480 ac_rmfiles=
3481 for ac_file in $ac_files
3482 do
3483 case $ac_file in
3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3485 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3486 esac
3487 done
3488 rm -f $ac_rmfiles
3489
3490 if { { ac_try="$ac_link_default"
3491 case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497 (eval "$ac_link_default") 2>&5
3498 ac_status=$?
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }; then :
3501 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3502 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3503 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3504 # so that the user can short-circuit this test for compilers unknown to
3505 # Autoconf.
3506 for ac_file in $ac_files ''
3507 do
3508 test -f "$ac_file" || continue
3509 case $ac_file in
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3511 ;;
3512 [ab].out )
3513 # We found the default executable, but exeext='' is most
3514 # certainly right.
3515 break;;
3516 *.* )
3517 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3518 then :; else
3519 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3520 fi
3521 # We set ac_cv_exeext here because the later test for it is not
3522 # safe: cross compilers may not add the suffix if given an `-o'
3523 # argument, so we may need to know it at that point already.
3524 # Even if this section looks crufty: it has the advantage of
3525 # actually working.
3526 break;;
3527 * )
3528 break;;
3529 esac
3530 done
3531 test "$ac_cv_exeext" = no && ac_cv_exeext=
3532
3533 else
3534 ac_file=''
3535 fi
3536 if test -z "$ac_file"; then :
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 $as_echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3544 { as_fn_set_status 77
3545 as_fn_error "C compiler cannot create executables
3546 See \`config.log' for more details." "$LINENO" 5; }; }
3547 else
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3549 $as_echo "yes" >&6; }
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3552 $as_echo_n "checking for C compiler default output file name... " >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3554 $as_echo "$ac_file" >&6; }
3555 ac_exeext=$ac_cv_exeext
3556
3557 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3558 ac_clean_files=$ac_clean_files_save
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3560 $as_echo_n "checking for suffix of executables... " >&6; }
3561 if { { ac_try="$ac_link"
3562 case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_link") 2>&5
3569 ac_status=$?
3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }; then :
3572 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3573 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3574 # work properly (i.e., refer to `conftest.exe'), while it won't with
3575 # `rm'.
3576 for ac_file in conftest.exe conftest conftest.*; do
3577 test -f "$ac_file" || continue
3578 case $ac_file in
3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3580 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3581 break;;
3582 * ) break;;
3583 esac
3584 done
3585 else
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error "cannot compute suffix of executables: cannot compile and link
3589 See \`config.log' for more details." "$LINENO" 5; }
3590 fi
3591 rm -f conftest conftest$ac_cv_exeext
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3593 $as_echo "$ac_cv_exeext" >&6; }
3594
3595 rm -f conftest.$ac_ext
3596 EXEEXT=$ac_cv_exeext
3597 ac_exeext=$EXEEXT
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600 #include <stdio.h>
3601 int
3602 main ()
3603 {
3604 FILE *f = fopen ("conftest.out", "w");
3605 return ferror (f) || fclose (f) != 0;
3606
3607 ;
3608 return 0;
3609 }
3610 _ACEOF
3611 ac_clean_files="$ac_clean_files conftest.out"
3612 # Check that the compiler produces executables we can run. If not, either
3613 # the compiler is broken, or we cross compile.
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3615 $as_echo_n "checking whether we are cross compiling... " >&6; }
3616 if test "$cross_compiling" != yes; then
3617 { { ac_try="$ac_link"
3618 case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_link") 2>&5
3625 ac_status=$?
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }
3628 if { ac_try='./conftest$ac_cv_exeext'
3629 { { case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635 (eval "$ac_try") 2>&5
3636 ac_status=$?
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }; }; then
3639 cross_compiling=no
3640 else
3641 if test "$cross_compiling" = maybe; then
3642 cross_compiling=yes
3643 else
3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646 as_fn_error "cannot run C compiled programs.
3647 If you meant to cross compile, use \`--host'.
3648 See \`config.log' for more details." "$LINENO" 5; }
3649 fi
3650 fi
3651 fi
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3653 $as_echo "$cross_compiling" >&6; }
3654
3655 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3656 ac_clean_files=$ac_clean_files_save
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3658 $as_echo_n "checking for suffix of object files... " >&6; }
3659 if test "${ac_cv_objext+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664
3665 int
3666 main ()
3667 {
3668
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 rm -f conftest.o conftest.obj
3674 if { { ac_try="$ac_compile"
3675 case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680 $as_echo "$ac_try_echo"; } >&5
3681 (eval "$ac_compile") 2>&5
3682 ac_status=$?
3683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3684 test $ac_status = 0; }; then :
3685 for ac_file in conftest.o conftest.obj conftest.*; do
3686 test -f "$ac_file" || continue;
3687 case $ac_file in
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3689 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3690 break;;
3691 esac
3692 done
3693 else
3694 $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699 as_fn_error "cannot compute suffix of object files: cannot compile
3700 See \`config.log' for more details." "$LINENO" 5; }
3701 fi
3702 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3703 fi
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3705 $as_echo "$ac_cv_objext" >&6; }
3706 OBJEXT=$ac_cv_objext
3707 ac_objext=$OBJEXT
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3709 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3710 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715
3716 int
3717 main ()
3718 {
3719 #ifndef __GNUC__
3720 choke me
3721 #endif
3722
3723 ;
3724 return 0;
3725 }
3726 _ACEOF
3727 if ac_fn_c_try_compile "$LINENO"; then :
3728 ac_compiler_gnu=yes
3729 else
3730 ac_compiler_gnu=no
3731 fi
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3734
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3737 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3738 if test $ac_compiler_gnu = yes; then
3739 GCC=yes
3740 else
3741 GCC=
3742 fi
3743 ac_test_CFLAGS=${CFLAGS+set}
3744 ac_save_CFLAGS=$CFLAGS
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3746 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3747 if test "${ac_cv_prog_cc_g+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 ac_save_c_werror_flag=$ac_c_werror_flag
3751 ac_c_werror_flag=yes
3752 ac_cv_prog_cc_g=no
3753 CFLAGS="-g"
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756
3757 int
3758 main ()
3759 {
3760
3761 ;
3762 return 0;
3763 }
3764 _ACEOF
3765 if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_cv_prog_cc_g=yes
3767 else
3768 CFLAGS=""
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771
3772 int
3773 main ()
3774 {
3775
3776 ;
3777 return 0;
3778 }
3779 _ACEOF
3780 if ac_fn_c_try_compile "$LINENO"; then :
3781
3782 else
3783 ac_c_werror_flag=$ac_save_c_werror_flag
3784 CFLAGS="-g"
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787
3788 int
3789 main ()
3790 {
3791
3792 ;
3793 return 0;
3794 }
3795 _ACEOF
3796 if ac_fn_c_try_compile "$LINENO"; then :
3797 ac_cv_prog_cc_g=yes
3798 fi
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 fi
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 ac_c_werror_flag=$ac_save_c_werror_flag
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3807 $as_echo "$ac_cv_prog_cc_g" >&6; }
3808 if test "$ac_test_CFLAGS" = set; then
3809 CFLAGS=$ac_save_CFLAGS
3810 elif test $ac_cv_prog_cc_g = yes; then
3811 if test "$GCC" = yes; then
3812 CFLAGS="-g -O2"
3813 else
3814 CFLAGS="-g"
3815 fi
3816 else
3817 if test "$GCC" = yes; then
3818 CFLAGS="-O2"
3819 else
3820 CFLAGS=
3821 fi
3822 fi
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3824 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3825 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 ac_cv_prog_cc_c89=no
3829 ac_save_CC=$CC
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832 #include <stdarg.h>
3833 #include <stdio.h>
3834 #include <sys/types.h>
3835 #include <sys/stat.h>
3836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3837 struct buf { int x; };
3838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3839 static char *e (p, i)
3840 char **p;
3841 int i;
3842 {
3843 return p[i];
3844 }
3845 static char *f (char * (*g) (char **, int), char **p, ...)
3846 {
3847 char *s;
3848 va_list v;
3849 va_start (v,p);
3850 s = g (p, va_arg (v,int));
3851 va_end (v);
3852 return s;
3853 }
3854
3855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3856 function prototypes and stuff, but not '\xHH' hex character constants.
3857 These don't provoke an error unfortunately, instead are silently treated
3858 as 'x'. The following induces an error, until -std is added to get
3859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3860 array size at least. It's necessary to write '\x00'==0 to get something
3861 that's true only with -std. */
3862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3863
3864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3865 inside strings and character constants. */
3866 #define FOO(x) 'x'
3867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3868
3869 int test (int i, double x);
3870 struct s1 {int (*f) (int a);};
3871 struct s2 {int (*f) (double a);};
3872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3873 int argc;
3874 char **argv;
3875 int
3876 main ()
3877 {
3878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3879 ;
3880 return 0;
3881 }
3882 _ACEOF
3883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3885 do
3886 CC="$ac_save_CC $ac_arg"
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_cv_prog_cc_c89=$ac_arg
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext
3891 test "x$ac_cv_prog_cc_c89" != "xno" && break
3892 done
3893 rm -f conftest.$ac_ext
3894 CC=$ac_save_CC
3895
3896 fi
3897 # AC_CACHE_VAL
3898 case "x$ac_cv_prog_cc_c89" in
3899 x)
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3901 $as_echo "none needed" >&6; } ;;
3902 xno)
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3904 $as_echo "unsupported" >&6; } ;;
3905 *)
3906 CC="$CC $ac_cv_prog_cc_c89"
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3908 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3909 esac
3910 if test "x$ac_cv_prog_cc_c89" != xno; then :
3911
3912 fi
3913
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919
3920 depcc="$CC" am_compiler_list=
3921
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3923 $as_echo_n "checking dependency style of $depcc... " >&6; }
3924 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3928 # We make a subdir and do the tests there. Otherwise we can end up
3929 # making bogus files that we don't know about and never remove. For
3930 # instance it was reported that on HP-UX the gcc test will end up
3931 # making a dummy file named `D' -- because `-MD' means `put the output
3932 # in D'.
3933 mkdir conftest.dir
3934 # Copy depcomp to subdir because otherwise we won't find it if we're
3935 # using a relative directory.
3936 cp "$am_depcomp" conftest.dir
3937 cd conftest.dir
3938 # We will build objects and dependencies in a subdirectory because
3939 # it helps to detect inapplicable dependency modes. For instance
3940 # both Tru64's cc and ICC support -MD to output dependencies as a
3941 # side effect of compilation, but ICC will put the dependencies in
3942 # the current directory while Tru64 will put them in the object
3943 # directory.
3944 mkdir sub
3945
3946 am_cv_CC_dependencies_compiler_type=none
3947 if test "$am_compiler_list" = ""; then
3948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3949 fi
3950 am__universal=false
3951 case " $depcc " in #(
3952 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3953 esac
3954
3955 for depmode in $am_compiler_list; do
3956 # Setup a source with many dependencies, because some compilers
3957 # like to wrap large dependency lists on column 80 (with \), and
3958 # we should not choose a depcomp mode which is confused by this.
3959 #
3960 # We need to recreate these files for each test, as the compiler may
3961 # overwrite some of them when testing with obscure command lines.
3962 # This happens at least with the AIX C compiler.
3963 : > sub/conftest.c
3964 for i in 1 2 3 4 5 6; do
3965 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3966 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3967 # Solaris 8's {/usr,}/bin/sh.
3968 touch sub/conftst$i.h
3969 done
3970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3971
3972 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3973 # mode. It turns out that the SunPro C++ compiler does not properly
3974 # handle `-M -o', and we need to detect this. Also, some Intel
3975 # versions had trouble with output in subdirs
3976 am__obj=sub/conftest.${OBJEXT-o}
3977 am__minus_obj="-o $am__obj"
3978 case $depmode in
3979 gcc)
3980 # This depmode causes a compiler race in universal mode.
3981 test "$am__universal" = false || continue
3982 ;;
3983 nosideeffect)
3984 # after this tag, mechanisms are not by side-effect, so they'll
3985 # only be used when explicitly requested
3986 if test "x$enable_dependency_tracking" = xyes; then
3987 continue
3988 else
3989 break
3990 fi
3991 ;;
3992 msvisualcpp | msvcmsys)
3993 # This compiler won't grok `-c -o', but also, the minuso test has
3994 # not run yet. These depmodes are late enough in the game, and
3995 # so weak that their functioning should not be impacted.
3996 am__obj=conftest.${OBJEXT-o}
3997 am__minus_obj=
3998 ;;
3999 none) break ;;
4000 esac
4001 if depmode=$depmode \
4002 source=sub/conftest.c object=$am__obj \
4003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4004 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4005 >/dev/null 2>conftest.err &&
4006 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4007 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4008 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4010 # icc doesn't choke on unknown options, it will just issue warnings
4011 # or remarks (even with -Werror). So we grep stderr for any message
4012 # that says an option was ignored or not supported.
4013 # When given -MP, icc 7.0 and 7.1 complain thusly:
4014 # icc: Command line warning: ignoring option '-M'; no argument required
4015 # The diagnosis changed in icc 8.0:
4016 # icc: Command line remark: option '-MP' not supported
4017 if (grep 'ignoring option' conftest.err ||
4018 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4019 am_cv_CC_dependencies_compiler_type=$depmode
4020 break
4021 fi
4022 fi
4023 done
4024
4025 cd ..
4026 rm -rf conftest.dir
4027 else
4028 am_cv_CC_dependencies_compiler_type=none
4029 fi
4030
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4035
4036 if
4037 test "x$enable_dependency_tracking" != xno \
4038 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4039 am__fastdepCC_TRUE=
4040 am__fastdepCC_FALSE='#'
4041 else
4042 am__fastdepCC_TRUE='#'
4043 am__fastdepCC_FALSE=
4044 fi
4045
4046
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4048 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4049 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 ac_cv_prog_cc_c99=no
4053 ac_save_CC=$CC
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056 #include <stdarg.h>
4057 #include <stdbool.h>
4058 #include <stdlib.h>
4059 #include <wchar.h>
4060 #include <stdio.h>
4061
4062 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4063 #define debug(...) fprintf (stderr, __VA_ARGS__)
4064 #define showlist(...) puts (#__VA_ARGS__)
4065 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4066 static void
4067 test_varargs_macros (void)
4068 {
4069 int x = 1234;
4070 int y = 5678;
4071 debug ("Flag");
4072 debug ("X = %d\n", x);
4073 showlist (The first, second, and third items.);
4074 report (x>y, "x is %d but y is %d", x, y);
4075 }
4076
4077 // Check long long types.
4078 #define BIG64 18446744073709551615ull
4079 #define BIG32 4294967295ul
4080 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4081 #if !BIG_OK
4082 your preprocessor is broken;
4083 #endif
4084 #if BIG_OK
4085 #else
4086 your preprocessor is broken;
4087 #endif
4088 static long long int bignum = -9223372036854775807LL;
4089 static unsigned long long int ubignum = BIG64;
4090
4091 struct incomplete_array
4092 {
4093 int datasize;
4094 double data[];
4095 };
4096
4097 struct named_init {
4098 int number;
4099 const wchar_t *name;
4100 double average;
4101 };
4102
4103 typedef const char *ccp;
4104
4105 static inline int
4106 test_restrict (ccp restrict text)
4107 {
4108 // See if C++-style comments work.
4109 // Iterate through items via the restricted pointer.
4110 // Also check for declarations in for loops.
4111 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4112 continue;
4113 return 0;
4114 }
4115
4116 // Check varargs and va_copy.
4117 static void
4118 test_varargs (const char *format, ...)
4119 {
4120 va_list args;
4121 va_start (args, format);
4122 va_list args_copy;
4123 va_copy (args_copy, args);
4124
4125 const char *str;
4126 int number;
4127 float fnumber;
4128
4129 while (*format)
4130 {
4131 switch (*format++)
4132 {
4133 case 's': // string
4134 str = va_arg (args_copy, const char *);
4135 break;
4136 case 'd': // int
4137 number = va_arg (args_copy, int);
4138 break;
4139 case 'f': // float
4140 fnumber = va_arg (args_copy, double);
4141 break;
4142 default:
4143 break;
4144 }
4145 }
4146 va_end (args_copy);
4147 va_end (args);
4148 }
4149
4150 int
4151 main ()
4152 {
4153
4154 // Check bool.
4155 _Bool success = false;
4156
4157 // Check restrict.
4158 if (test_restrict ("String literal") == 0)
4159 success = true;
4160 char *restrict newvar = "Another string";
4161
4162 // Check varargs.
4163 test_varargs ("s, d' f .", "string", 65, 34.234);
4164 test_varargs_macros ();
4165
4166 // Check flexible array members.
4167 struct incomplete_array *ia =
4168 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4169 ia->datasize = 10;
4170 for (int i = 0; i < ia->datasize; ++i)
4171 ia->data[i] = i * 1.234;
4172
4173 // Check named initializers.
4174 struct named_init ni = {
4175 .number = 34,
4176 .name = L"Test wide string",
4177 .average = 543.34343,
4178 };
4179
4180 ni.number = 58;
4181
4182 int dynamic_array[ni.number];
4183 dynamic_array[ni.number - 1] = 543;
4184
4185 // work around unused variable warnings
4186 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4187 || dynamic_array[ni.number - 1] != 543);
4188
4189 ;
4190 return 0;
4191 }
4192 _ACEOF
4193 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4194 do
4195 CC="$ac_save_CC $ac_arg"
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_cv_prog_cc_c99=$ac_arg
4198 fi
4199 rm -f core conftest.err conftest.$ac_objext
4200 test "x$ac_cv_prog_cc_c99" != "xno" && break
4201 done
4202 rm -f conftest.$ac_ext
4203 CC=$ac_save_CC
4204
4205 fi
4206 # AC_CACHE_VAL
4207 case "x$ac_cv_prog_cc_c99" in
4208 x)
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4210 $as_echo "none needed" >&6; } ;;
4211 xno)
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4213 $as_echo "unsupported" >&6; } ;;
4214 *)
4215 CC="$CC $ac_cv_prog_cc_c99"
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4217 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4218 esac
4219 if test "x$ac_cv_prog_cc_c99" != xno; then :
4220
4221 fi
4222
4223
4224
4225 ac_ext=c
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4231 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4232 # On Suns, sometimes $CPP names a directory.
4233 if test -n "$CPP" && test -d "$CPP"; then
4234 CPP=
4235 fi
4236 if test -z "$CPP"; then
4237 if test "${ac_cv_prog_CPP+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 # Double quotes because CPP needs to be expanded
4241 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4242 do
4243 ac_preproc_ok=false
4244 for ac_c_preproc_warn_flag in '' yes
4245 do
4246 # Use a header file that comes with gcc, so configuring glibc
4247 # with a fresh cross-compiler works.
4248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4249 # <limits.h> exists even on freestanding compilers.
4250 # On the NeXT, cc -E runs the code through the compiler's parser,
4251 # not just through cpp. "Syntax error" is here to catch this case.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #ifdef __STDC__
4255 # include <limits.h>
4256 #else
4257 # include <assert.h>
4258 #endif
4259 Syntax error
4260 _ACEOF
4261 if ac_fn_c_try_cpp "$LINENO"; then :
4262
4263 else
4264 # Broken: fails on valid input.
4265 continue
4266 fi
4267 rm -f conftest.err conftest.$ac_ext
4268
4269 # OK, works on sane cases. Now check whether nonexistent headers
4270 # can be detected and how.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 #include <ac_nonexistent.h>
4274 _ACEOF
4275 if ac_fn_c_try_cpp "$LINENO"; then :
4276 # Broken: success on invalid input.
4277 continue
4278 else
4279 # Passes both tests.
4280 ac_preproc_ok=:
4281 break
4282 fi
4283 rm -f conftest.err conftest.$ac_ext
4284
4285 done
4286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287 rm -f conftest.err conftest.$ac_ext
4288 if $ac_preproc_ok; then :
4289 break
4290 fi
4291
4292 done
4293 ac_cv_prog_CPP=$CPP
4294
4295 fi
4296 CPP=$ac_cv_prog_CPP
4297 else
4298 ac_cv_prog_CPP=$CPP
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4301 $as_echo "$CPP" >&6; }
4302 ac_preproc_ok=false
4303 for ac_c_preproc_warn_flag in '' yes
4304 do
4305 # Use a header file that comes with gcc, so configuring glibc
4306 # with a fresh cross-compiler works.
4307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4308 # <limits.h> exists even on freestanding compilers.
4309 # On the NeXT, cc -E runs the code through the compiler's parser,
4310 # not just through cpp. "Syntax error" is here to catch this case.
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313 #ifdef __STDC__
4314 # include <limits.h>
4315 #else
4316 # include <assert.h>
4317 #endif
4318 Syntax error
4319 _ACEOF
4320 if ac_fn_c_try_cpp "$LINENO"; then :
4321
4322 else
4323 # Broken: fails on valid input.
4324 continue
4325 fi
4326 rm -f conftest.err conftest.$ac_ext
4327
4328 # OK, works on sane cases. Now check whether nonexistent headers
4329 # can be detected and how.
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332 #include <ac_nonexistent.h>
4333 _ACEOF
4334 if ac_fn_c_try_cpp "$LINENO"; then :
4335 # Broken: success on invalid input.
4336 continue
4337 else
4338 # Passes both tests.
4339 ac_preproc_ok=:
4340 break
4341 fi
4342 rm -f conftest.err conftest.$ac_ext
4343
4344 done
4345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4346 rm -f conftest.err conftest.$ac_ext
4347 if $ac_preproc_ok; then :
4348
4349 else
4350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4353 See \`config.log' for more details." "$LINENO" 5; }
4354 fi
4355
4356 ac_ext=c
4357 ac_cpp='$CPP $CPPFLAGS'
4358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4364 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4365 if test "${ac_cv_path_GREP+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 if test -z "$GREP"; then
4369 ac_path_GREP_found=false
4370 # Loop through the user's path and test for each of PROGNAME-LIST
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4373 do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_prog in grep ggrep; do
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4379 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4380 # Check for GNU ac_path_GREP and select it if it is found.
4381 # Check for GNU $ac_path_GREP
4382 case `"$ac_path_GREP" --version 2>&1` in
4383 *GNU*)
4384 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4385 *)
4386 ac_count=0
4387 $as_echo_n 0123456789 >"conftest.in"
4388 while :
4389 do
4390 cat "conftest.in" "conftest.in" >"conftest.tmp"
4391 mv "conftest.tmp" "conftest.in"
4392 cp "conftest.in" "conftest.nl"
4393 $as_echo 'GREP' >> "conftest.nl"
4394 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4396 as_fn_arith $ac_count + 1 && ac_count=$as_val
4397 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4398 # Best one so far, save it but keep looking for a better one
4399 ac_cv_path_GREP="$ac_path_GREP"
4400 ac_path_GREP_max=$ac_count
4401 fi
4402 # 10*(2^10) chars as input seems more than enough
4403 test $ac_count -gt 10 && break
4404 done
4405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4406 esac
4407
4408 $ac_path_GREP_found && break 3
4409 done
4410 done
4411 done
4412 IFS=$as_save_IFS
4413 if test -z "$ac_cv_path_GREP"; then
4414 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4415 fi
4416 else
4417 ac_cv_path_GREP=$GREP
4418 fi
4419
4420 fi
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4422 $as_echo "$ac_cv_path_GREP" >&6; }
4423 GREP="$ac_cv_path_GREP"
4424
4425
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4427 $as_echo_n "checking for egrep... " >&6; }
4428 if test "${ac_cv_path_EGREP+set}" = set; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4432 then ac_cv_path_EGREP="$GREP -E"
4433 else
4434 if test -z "$EGREP"; then
4435 ac_path_EGREP_found=false
4436 # Loop through the user's path and test for each of PROGNAME-LIST
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4439 do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_prog in egrep; do
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4445 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4446 # Check for GNU ac_path_EGREP and select it if it is found.
4447 # Check for GNU $ac_path_EGREP
4448 case `"$ac_path_EGREP" --version 2>&1` in
4449 *GNU*)
4450 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4451 *)
4452 ac_count=0
4453 $as_echo_n 0123456789 >"conftest.in"
4454 while :
4455 do
4456 cat "conftest.in" "conftest.in" >"conftest.tmp"
4457 mv "conftest.tmp" "conftest.in"
4458 cp "conftest.in" "conftest.nl"
4459 $as_echo 'EGREP' >> "conftest.nl"
4460 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4462 as_fn_arith $ac_count + 1 && ac_count=$as_val
4463 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4464 # Best one so far, save it but keep looking for a better one
4465 ac_cv_path_EGREP="$ac_path_EGREP"
4466 ac_path_EGREP_max=$ac_count
4467 fi
4468 # 10*(2^10) chars as input seems more than enough
4469 test $ac_count -gt 10 && break
4470 done
4471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4472 esac
4473
4474 $ac_path_EGREP_found && break 3
4475 done
4476 done
4477 done
4478 IFS=$as_save_IFS
4479 if test -z "$ac_cv_path_EGREP"; then
4480 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4481 fi
4482 else
4483 ac_cv_path_EGREP=$EGREP
4484 fi
4485
4486 fi
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4489 $as_echo "$ac_cv_path_EGREP" >&6; }
4490 EGREP="$ac_cv_path_EGREP"
4491
4492
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4494 $as_echo_n "checking for ANSI C header files... " >&6; }
4495 if test "${ac_cv_header_stdc+set}" = set; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 #include <stdlib.h>
4501 #include <stdarg.h>
4502 #include <string.h>
4503 #include <float.h>
4504
4505 int
4506 main ()
4507 {
4508
4509 ;
4510 return 0;
4511 }
4512 _ACEOF
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_header_stdc=yes
4515 else
4516 ac_cv_header_stdc=no
4517 fi
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519
4520 if test $ac_cv_header_stdc = yes; then
4521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <string.h>
4525
4526 _ACEOF
4527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4528 $EGREP "memchr" >/dev/null 2>&1; then :
4529
4530 else
4531 ac_cv_header_stdc=no
4532 fi
4533 rm -f conftest*
4534
4535 fi
4536
4537 if test $ac_cv_header_stdc = yes; then
4538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541 #include <stdlib.h>
4542
4543 _ACEOF
4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "free" >/dev/null 2>&1; then :
4546
4547 else
4548 ac_cv_header_stdc=no
4549 fi
4550 rm -f conftest*
4551
4552 fi
4553
4554 if test $ac_cv_header_stdc = yes; then
4555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556 if test "$cross_compiling" = yes; then :
4557 :
4558 else
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561 #include <ctype.h>
4562 #include <stdlib.h>
4563 #if ((' ' & 0x0FF) == 0x020)
4564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4566 #else
4567 # define ISLOWER(c) \
4568 (('a' <= (c) && (c) <= 'i') \
4569 || ('j' <= (c) && (c) <= 'r') \
4570 || ('s' <= (c) && (c) <= 'z'))
4571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4572 #endif
4573
4574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4575 int
4576 main ()
4577 {
4578 int i;
4579 for (i = 0; i < 256; i++)
4580 if (XOR (islower (i), ISLOWER (i))
4581 || toupper (i) != TOUPPER (i))
4582 return 2;
4583 return 0;
4584 }
4585 _ACEOF
4586 if ac_fn_c_try_run "$LINENO"; then :
4587
4588 else
4589 ac_cv_header_stdc=no
4590 fi
4591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4592 conftest.$ac_objext conftest.beam conftest.$ac_ext
4593 fi
4594
4595 fi
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4598 $as_echo "$ac_cv_header_stdc" >&6; }
4599 if test $ac_cv_header_stdc = yes; then
4600
4601 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4602
4603 fi
4604
4605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4606 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4607 inttypes.h stdint.h unistd.h
4608 do :
4609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4610 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4611 "
4612 eval as_val=\$$as_ac_Header
4613 if test "x$as_val" = x""yes; then :
4614 cat >>confdefs.h <<_ACEOF
4615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4616 _ACEOF
4617
4618 fi
4619
4620 done
4621
4622
4623
4624
4625 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4628 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 case $PKG_CONFIG in
4635 [\\/]* | ?:[\\/]*)
4636 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4637 ;;
4638 *)
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650 done
4651 done
4652 IFS=$as_save_IFS
4653
4654 ;;
4655 esac
4656 fi
4657 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4658 if test -n "$PKG_CONFIG"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4660 $as_echo "$PKG_CONFIG" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 fi
4665
4666
4667 fi
4668 if test -z "$ac_cv_path_PKG_CONFIG"; then
4669 ac_pt_PKG_CONFIG=$PKG_CONFIG
4670 # Extract the first word of "pkg-config", so it can be a program name with args.
4671 set dummy pkg-config; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 case $ac_pt_PKG_CONFIG in
4678 [\\/]* | ?:[\\/]*)
4679 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4680 ;;
4681 *)
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 ;;
4698 esac
4699 fi
4700 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4701 if test -n "$ac_pt_PKG_CONFIG"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4703 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4704 else
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4707 fi
4708
4709 if test "x$ac_pt_PKG_CONFIG" = x; then
4710 PKG_CONFIG=""
4711 else
4712 case $cross_compiling:$ac_tool_warned in
4713 yes:)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716 ac_tool_warned=yes ;;
4717 esac
4718 PKG_CONFIG=$ac_pt_PKG_CONFIG
4719 fi
4720 else
4721 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4722 fi
4723
4724 fi
4725 if test -n "$PKG_CONFIG"; then
4726 _pkg_min_version=0.9.0
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4728 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4729 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731 $as_echo "yes" >&6; }
4732 else
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 PKG_CONFIG=""
4736 fi
4737
4738 fi
4739 # Make sure we can run config.sub.
4740 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4741 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4744 $as_echo_n "checking build system type... " >&6; }
4745 if test "${ac_cv_build+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 ac_build_alias=$build_alias
4749 test "x$ac_build_alias" = x &&
4750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4751 test "x$ac_build_alias" = x &&
4752 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4754 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4755
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4758 $as_echo "$ac_cv_build" >&6; }
4759 case $ac_cv_build in
4760 *-*-*) ;;
4761 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4762 esac
4763 build=$ac_cv_build
4764 ac_save_IFS=$IFS; IFS='-'
4765 set x $ac_cv_build
4766 shift
4767 build_cpu=$1
4768 build_vendor=$2
4769 shift; shift
4770 # Remember, the first character of IFS is used to create $*,
4771 # except with old shells:
4772 build_os=$*
4773 IFS=$ac_save_IFS
4774 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4775
4776
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4778 $as_echo_n "checking host system type... " >&6; }
4779 if test "${ac_cv_host+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test "x$host_alias" = x; then
4783 ac_cv_host=$ac_cv_build
4784 else
4785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4786 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4787 fi
4788
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4791 $as_echo "$ac_cv_host" >&6; }
4792 case $ac_cv_host in
4793 *-*-*) ;;
4794 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4795 esac
4796 host=$ac_cv_host
4797 ac_save_IFS=$IFS; IFS='-'
4798 set x $ac_cv_host
4799 shift
4800 host_cpu=$1
4801 host_vendor=$2
4802 shift; shift
4803 # Remember, the first character of IFS is used to create $*,
4804 # except with old shells:
4805 host_os=$*
4806 IFS=$ac_save_IFS
4807 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4811 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4812 if test "${ac_cv_path_SED+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4816 for ac_i in 1 2 3 4 5 6 7; do
4817 ac_script="$ac_script$as_nl$ac_script"
4818 done
4819 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4820 { ac_script=; unset ac_script;}
4821 if test -z "$SED"; then
4822 ac_path_SED_found=false
4823 # Loop through the user's path and test for each of PROGNAME-LIST
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_prog in sed gsed; do
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4832 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4833 # Check for GNU ac_path_SED and select it if it is found.
4834 # Check for GNU $ac_path_SED
4835 case `"$ac_path_SED" --version 2>&1` in
4836 *GNU*)
4837 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4838 *)
4839 ac_count=0
4840 $as_echo_n 0123456789 >"conftest.in"
4841 while :
4842 do
4843 cat "conftest.in" "conftest.in" >"conftest.tmp"
4844 mv "conftest.tmp" "conftest.in"
4845 cp "conftest.in" "conftest.nl"
4846 $as_echo '' >> "conftest.nl"
4847 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849 as_fn_arith $ac_count + 1 && ac_count=$as_val
4850 if test $ac_count -gt ${ac_path_SED_max-0}; then
4851 # Best one so far, save it but keep looking for a better one
4852 ac_cv_path_SED="$ac_path_SED"
4853 ac_path_SED_max=$ac_count
4854 fi
4855 # 10*(2^10) chars as input seems more than enough
4856 test $ac_count -gt 10 && break
4857 done
4858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859 esac
4860
4861 $ac_path_SED_found && break 3
4862 done
4863 done
4864 done
4865 IFS=$as_save_IFS
4866 if test -z "$ac_cv_path_SED"; then
4867 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4868 fi
4869 else
4870 ac_cv_path_SED=$SED
4871 fi
4872
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4875 $as_echo "$ac_cv_path_SED" >&6; }
4876 SED="$ac_cv_path_SED"
4877 rm -f conftest.sed
4878
4879
4880
4881
4882
4883 if test "x$GCC" = xyes ; then
4884 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4885 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4886 -Wbad-function-cast -Wformat=2"
4887 case `$CC -dumpversion` in
4888 3.4.* | 4.*)
4889 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4890 ;;
4891 esac
4892 else
4893 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4894 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4895 SUNCC="yes"
4896 else
4897 SUNCC="no"
4898 fi
4899
4900 if test "x$SUNCC" = "xyes"; then
4901 CWARNFLAGS="-v"
4902 fi
4903 fi
4904
4905
4906
4907 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4908
4909
4910
4911 # Check whether --enable-strict-compilation was given.
4912 if test "${enable_strict_compilation+set}" = set; then :
4913 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4914 else
4915 STRICT_COMPILE=no
4916 fi
4917
4918 if test "x$STRICT_COMPILE" = "xyes"; then
4919 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4920 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4921 SUNCC="yes"
4922 else
4923 SUNCC="no"
4924 fi
4925
4926 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4927 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4928 INTELCC="yes"
4929 else
4930 INTELCC="no"
4931 fi
4932
4933 if test "x$GCC" = xyes ; then
4934 STRICT_CFLAGS="-pedantic -Werror"
4935 elif test "x$SUNCC" = "xyes"; then
4936 STRICT_CFLAGS="-errwarn"
4937 elif test "x$INTELCC" = "xyes"; then
4938 STRICT_CFLAGS="-Werror"
4939 fi
4940 fi
4941 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4942
4943
4944
4945
4946 cat >>confdefs.h <<_ACEOF
4947 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4948 _ACEOF
4949
4950 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4951 if test "x$PVM" = "x"; then
4952 PVM="0"
4953 fi
4954
4955 cat >>confdefs.h <<_ACEOF
4956 #define PACKAGE_VERSION_MINOR $PVM
4957 _ACEOF
4958
4959 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4960 if test "x$PVP" = "x"; then
4961 PVP="0"
4962 fi
4963
4964 cat >>confdefs.h <<_ACEOF
4965 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4966 _ACEOF
4967
4968
4969
4970 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4971 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4972 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4973 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4974
4975
4976
4977
4978 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4979 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4980 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4981 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4982 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4983
4984
4985
4986
4987
4988
4989 if test x$APP_MAN_SUFFIX = x ; then
4990 APP_MAN_SUFFIX=1
4991 fi
4992 if test x$APP_MAN_DIR = x ; then
4993 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4994 fi
4995
4996 if test x$LIB_MAN_SUFFIX = x ; then
4997 LIB_MAN_SUFFIX=3
4998 fi
4999 if test x$LIB_MAN_DIR = x ; then
5000 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5001 fi
5002
5003 if test x$FILE_MAN_SUFFIX = x ; then
5004 case $host_os in
5005 solaris*) FILE_MAN_SUFFIX=4 ;;
5006 *) FILE_MAN_SUFFIX=5 ;;
5007 esac
5008 fi
5009 if test x$FILE_MAN_DIR = x ; then
5010 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5011 fi
5012
5013 if test x$MISC_MAN_SUFFIX = x ; then
5014 case $host_os in
5015 solaris*) MISC_MAN_SUFFIX=5 ;;
5016 *) MISC_MAN_SUFFIX=7 ;;
5017 esac
5018 fi
5019 if test x$MISC_MAN_DIR = x ; then
5020 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5021 fi
5022
5023 if test x$DRIVER_MAN_SUFFIX = x ; then
5024 case $host_os in
5025 solaris*) DRIVER_MAN_SUFFIX=7 ;;
5026 *) DRIVER_MAN_SUFFIX=4 ;;
5027 esac
5028 fi
5029 if test x$DRIVER_MAN_DIR = x ; then
5030 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5031 fi
5032
5033 if test x$ADMIN_MAN_SUFFIX = x ; then
5034 case $host_os in
5035 solaris*) ADMIN_MAN_SUFFIX=1m ;;
5036 *) ADMIN_MAN_SUFFIX=8 ;;
5037 esac
5038 fi
5039 if test x$ADMIN_MAN_DIR = x ; then
5040 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5041 fi
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057 XORG_MAN_PAGE="X Version 11"
5058
5059 MAN_SUBSTS="\
5060 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5061 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
5062 -e 's|__xservername__|Xorg|g' \
5063 -e 's|__xconfigfile__|xorg.conf|g' \
5064 -e 's|__projectroot__|\$(prefix)|g' \
5065 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
5066 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
5067 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
5068 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
5069 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
5070 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
5071
5072
5073
5074 # Check whether --enable-silent-rules was given.
5075 if test "${enable_silent_rules+set}" = set; then :
5076 enableval=$enable_silent_rules;
5077 fi
5078
5079 case $enable_silent_rules in
5080 yes) AM_DEFAULT_VERBOSITY=0;;
5081 no) AM_DEFAULT_VERBOSITY=1;;
5082 *) AM_DEFAULT_VERBOSITY=0;;
5083 esac
5084 AM_BACKSLASH='\'
5085
5086
5087
5088 default=
5089 if test "x$default" = x ; then
5090 default="yes"
5091 fi
5092 # Check whether --enable-docs was given.
5093 if test "${enable_docs+set}" = set; then :
5094 enableval=$enable_docs; build_docs=$enableval
5095 else
5096 build_docs=$default
5097 fi
5098
5099 if test x$build_docs = xyes; then
5100 ENABLE_DOCS_TRUE=
5101 ENABLE_DOCS_FALSE='#'
5102 else
5103 ENABLE_DOCS_TRUE='#'
5104 ENABLE_DOCS_FALSE=
5105 fi
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
5108 $as_echo_n "checking whether to build documentation... " >&6; }
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
5110 $as_echo "$build_docs" >&6; }
5111
5112
5113 spec_default=
5114 if test "x$spec_default" = x ; then
5115 spec_default="yes"
5116 fi
5117 # Check whether --enable-specs was given.
5118 if test "${enable_specs+set}" = set; then :
5119 enableval=$enable_specs; build_specs=$enableval
5120 else
5121 build_specs=$spec_default
5122 fi
5123
5124 if test x$build_specs = xyes; then
5125 ENABLE_SPECS_TRUE=
5126 ENABLE_SPECS_FALSE='#'
5127 else
5128 ENABLE_SPECS_TRUE='#'
5129 ENABLE_SPECS_FALSE=
5130 fi
5131
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
5133 $as_echo_n "checking whether to build functional specifications... " >&6; }
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
5135 $as_echo "$build_specs" >&6; }
5136
5137
5138
5139
5140 # Check whether --with-xmlto was given.
5141 if test "${with_xmlto+set}" = set; then :
5142 withval=$with_xmlto; use_xmlto=$withval
5143 else
5144 use_xmlto=auto
5145 fi
5146
5147
5148 if test "x$use_xmlto" = x"auto"; then
5149 # Extract the first word of "xmlto", so it can be a program name with args.
5150 set dummy xmlto; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if test "${ac_cv_path_XMLTO+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 case $XMLTO in
5157 [\\/]* | ?:[\\/]*)
5158 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5159 ;;
5160 *)
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174 IFS=$as_save_IFS
5175
5176 ;;
5177 esac
5178 fi
5179 XMLTO=$ac_cv_path_XMLTO
5180 if test -n "$XMLTO"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5182 $as_echo "$XMLTO" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5186 fi
5187
5188
5189 if test "x$XMLTO" = "x"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
5191 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
5192 have_xmlto=no
5193 else
5194 have_xmlto=yes
5195 fi
5196 elif test "x$use_xmlto" = x"yes" ; then
5197 # Extract the first word of "xmlto", so it can be a program name with args.
5198 set dummy xmlto; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if test "${ac_cv_path_XMLTO+set}" = set; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 case $XMLTO in
5205 [\\/]* | ?:[\\/]*)
5206 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5207 ;;
5208 *)
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220 done
5221 done
5222 IFS=$as_save_IFS
5223
5224 ;;
5225 esac
5226 fi
5227 XMLTO=$ac_cv_path_XMLTO
5228 if test -n "$XMLTO"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5230 $as_echo "$XMLTO" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237 if test "x$XMLTO" = "x"; then
5238 as_fn_error "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
5239 fi
5240 have_xmlto=yes
5241 elif test "x$use_xmlto" = x"no" ; then
5242 if test "x$XMLTO" != "x"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
5244 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
5245 fi
5246 have_xmlto=no
5247 else
5248 as_fn_error "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
5249 fi
5250
5251 # Test for a minimum version of xmlto, if provided.
5252 if test "$have_xmlto" = yes; then
5253 # scrape the xmlto version
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
5255 $as_echo_n "checking the xmlto version... " >&6; }
5256 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
5258 $as_echo "$xmlto_version" >&6; }
5259 as_arg_v1=$xmlto_version
5260 as_arg_v2=0.0.20
5261 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5262 case $? in #(
5263 1) :
5264 if test "x$use_xmlto" = xauto; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
5266 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
5267 have_xmlto=no
5268 else
5269 as_fn_error "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
5270 fi ;; #(
5271 0) :
5272 ;; #(
5273 2) :
5274 ;; #(
5275 *) :
5276 ;;
5277 esac
5278 fi
5279
5280 # Test for the ability of xmlto to generate a text target
5281 have_xmlto_text=no
5282 cat > conftest.xml << "EOF"
5283 EOF
5284 if test "$have_xmlto" = yes; then :
5285 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
5286 have_xmlto_text=yes
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
5289 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
5290 fi
5291 fi
5292 rm -f conftest.xml
5293 if test $have_xmlto_text = yes; then
5294 HAVE_XMLTO_TEXT_TRUE=
5295 HAVE_XMLTO_TEXT_FALSE='#'
5296 else
5297 HAVE_XMLTO_TEXT_TRUE='#'
5298 HAVE_XMLTO_TEXT_FALSE=
5299 fi
5300
5301 if test "$have_xmlto" = yes; then
5302 HAVE_XMLTO_TRUE=
5303 HAVE_XMLTO_FALSE='#'
5304 else
5305 HAVE_XMLTO_TRUE='#'
5306 HAVE_XMLTO_FALSE=
5307 fi
5308
5309
5310
5311
5312
5313 # Check whether --with-fop was given.
5314 if test "${with_fop+set}" = set; then :
5315 withval=$with_fop; use_fop=$withval
5316 else
5317 use_fop=auto
5318 fi
5319
5320
5321 if test "x$use_fop" = x"auto"; then
5322 # Extract the first word of "fop", so it can be a program name with args.
5323 set dummy fop; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_FOP+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 case $FOP in
5330 [\\/]* | ?:[\\/]*)
5331 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5332 ;;
5333 *)
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5348
5349 ;;
5350 esac
5351 fi
5352 FOP=$ac_cv_path_FOP
5353 if test -n "$FOP"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5355 $as_echo "$FOP" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360
5361
5362 if test "x$FOP" = "x"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
5364 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
5365 have_fop=no
5366 else
5367 have_fop=yes
5368 fi
5369 elif test "x$use_fop" = x"yes" ; then
5370 # Extract the first word of "fop", so it can be a program name with args.
5371 set dummy fop; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if test "${ac_cv_path_FOP+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 case $FOP in
5378 [\\/]* | ?:[\\/]*)
5379 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5380 ;;
5381 *)
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 break 2
5392 fi
5393 done
5394 done
5395 IFS=$as_save_IFS
5396
5397 ;;
5398 esac
5399 fi
5400 FOP=$ac_cv_path_FOP
5401 if test -n "$FOP"; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5403 $as_echo "$FOP" >&6; }
5404 else
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5407 fi
5408
5409
5410 if test "x$FOP" = "x"; then
5411 as_fn_error "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
5412 fi
5413 have_fop=yes
5414 elif test "x$use_fop" = x"no" ; then
5415 if test "x$FOP" != "x"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
5417 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
5418 fi
5419 have_fop=no
5420 else
5421 as_fn_error "--with-fop expects 'yes' or 'no'" "$LINENO" 5
5422 fi
5423 if test "$have_fop" = yes; then
5424 HAVE_FOP_TRUE=
5425 HAVE_FOP_FALSE='#'
5426 else
5427 HAVE_FOP_TRUE='#'
5428 HAVE_FOP_FALSE=
5429 fi
5430
5431
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
5434 $as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
5435 XORG_SGML_PATH=
5436 if test -n "$PKG_CONFIG" && \
5437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
5438 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
5439 ac_status=$?
5440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5441 test $ac_status = 0; }; then
5442 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
5443 else
5444 :
5445
5446 fi
5447
5448 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
5449 # the path and the name of the doc stylesheet
5450 if test "x$XORG_SGML_PATH" != "x" ; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
5452 $as_echo "$XORG_SGML_PATH" >&6; }
5453 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
5454 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460
5461
5462
5463 if test "x$XSL_STYLESHEET" != "x"; then
5464 HAVE_STYLESHEETS_TRUE=
5465 HAVE_STYLESHEETS_FALSE='#'
5466 else
5467 HAVE_STYLESHEETS_TRUE='#'
5468 HAVE_STYLESHEETS_FALSE=
5469 fi
5470
5471
5472
5473 # Checks for programs.
5474 case `pwd` in
5475 *\ * | *\ *)
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5477 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5478 esac
5479
5480
5481
5482 macro_version='2.2.6b'
5483 macro_revision='1.3017'
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497 ltmain="$ac_aux_dir/ltmain.sh"
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5500 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5501 if test "${ac_cv_path_SED+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5505 for ac_i in 1 2 3 4 5 6 7; do
5506 ac_script="$ac_script$as_nl$ac_script"
5507 done
5508 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5509 { ac_script=; unset ac_script;}
5510 if test -z "$SED"; then
5511 ac_path_SED_found=false
5512 # Loop through the user's path and test for each of PROGNAME-LIST
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_prog in sed gsed; do
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5521 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5522 # Check for GNU ac_path_SED and select it if it is found.
5523 # Check for GNU $ac_path_SED
5524 case `"$ac_path_SED" --version 2>&1` in
5525 *GNU*)
5526 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5527 *)
5528 ac_count=0
5529 $as_echo_n 0123456789 >"conftest.in"
5530 while :
5531 do
5532 cat "conftest.in" "conftest.in" >"conftest.tmp"
5533 mv "conftest.tmp" "conftest.in"
5534 cp "conftest.in" "conftest.nl"
5535 $as_echo '' >> "conftest.nl"
5536 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5538 as_fn_arith $ac_count + 1 && ac_count=$as_val
5539 if test $ac_count -gt ${ac_path_SED_max-0}; then
5540 # Best one so far, save it but keep looking for a better one
5541 ac_cv_path_SED="$ac_path_SED"
5542 ac_path_SED_max=$ac_count
5543 fi
5544 # 10*(2^10) chars as input seems more than enough
5545 test $ac_count -gt 10 && break
5546 done
5547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5548 esac
5549
5550 $ac_path_SED_found && break 3
5551 done
5552 done
5553 done
5554 IFS=$as_save_IFS
5555 if test -z "$ac_cv_path_SED"; then
5556 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5557 fi
5558 else
5559 ac_cv_path_SED=$SED
5560 fi
5561
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5564 $as_echo "$ac_cv_path_SED" >&6; }
5565 SED="$ac_cv_path_SED"
5566 rm -f conftest.sed
5567
5568 test -z "$SED" && SED=sed
5569 Xsed="$SED -e 1s/^X//"
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5582 $as_echo_n "checking for fgrep... " >&6; }
5583 if test "${ac_cv_path_FGREP+set}" = set; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5587 then ac_cv_path_FGREP="$GREP -F"
5588 else
5589 if test -z "$FGREP"; then
5590 ac_path_FGREP_found=false
5591 # Loop through the user's path and test for each of PROGNAME-LIST
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5594 do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_prog in fgrep; do
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5600 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5601 # Check for GNU ac_path_FGREP and select it if it is found.
5602 # Check for GNU $ac_path_FGREP
5603 case `"$ac_path_FGREP" --version 2>&1` in
5604 *GNU*)
5605 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5606 *)
5607 ac_count=0
5608 $as_echo_n 0123456789 >"conftest.in"
5609 while :
5610 do
5611 cat "conftest.in" "conftest.in" >"conftest.tmp"
5612 mv "conftest.tmp" "conftest.in"
5613 cp "conftest.in" "conftest.nl"
5614 $as_echo 'FGREP' >> "conftest.nl"
5615 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5617 as_fn_arith $ac_count + 1 && ac_count=$as_val
5618 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5619 # Best one so far, save it but keep looking for a better one
5620 ac_cv_path_FGREP="$ac_path_FGREP"
5621 ac_path_FGREP_max=$ac_count
5622 fi
5623 # 10*(2^10) chars as input seems more than enough
5624 test $ac_count -gt 10 && break
5625 done
5626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5627 esac
5628
5629 $ac_path_FGREP_found && break 3
5630 done
5631 done
5632 done
5633 IFS=$as_save_IFS
5634 if test -z "$ac_cv_path_FGREP"; then
5635 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5636 fi
5637 else
5638 ac_cv_path_FGREP=$FGREP
5639 fi
5640
5641 fi
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5644 $as_echo "$ac_cv_path_FGREP" >&6; }
5645 FGREP="$ac_cv_path_FGREP"
5646
5647
5648 test -z "$GREP" && GREP=grep
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668 # Check whether --with-gnu-ld was given.
5669 if test "${with_gnu_ld+set}" = set; then :
5670 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5671 else
5672 with_gnu_ld=no
5673 fi
5674
5675 ac_prog=ld
5676 if test "$GCC" = yes; then
5677 # Check if gcc -print-prog-name=ld gives a path.
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5679 $as_echo_n "checking for ld used by $CC... " >&6; }
5680 case $host in
5681 *-*-mingw*)
5682 # gcc leaves a trailing carriage return which upsets mingw
5683 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5684 *)
5685 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5686 esac
5687 case $ac_prog in
5688 # Accept absolute paths.
5689 [\\/]* | ?:[\\/]*)
5690 re_direlt='/[^/][^/]*/\.\./'
5691 # Canonicalize the pathname of ld
5692 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5693 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5694 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5695 done
5696 test -z "$LD" && LD="$ac_prog"
5697 ;;
5698 "")
5699 # If it fails, then pretend we aren't using GCC.
5700 ac_prog=ld
5701 ;;
5702 *)
5703 # If it is relative, then search for the first ld in PATH.
5704 with_gnu_ld=unknown
5705 ;;
5706 esac
5707 elif test "$with_gnu_ld" = yes; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5709 $as_echo_n "checking for GNU ld... " >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5712 $as_echo_n "checking for non-GNU ld... " >&6; }
5713 fi
5714 if test "${lt_cv_path_LD+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if test -z "$LD"; then
5718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5719 for ac_dir in $PATH; do
5720 IFS="$lt_save_ifs"
5721 test -z "$ac_dir" && ac_dir=.
5722 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5723 lt_cv_path_LD="$ac_dir/$ac_prog"
5724 # Check to see if the program is GNU ld. I'd rather use --version,
5725 # but apparently some variants of GNU ld only accept -v.
5726 # Break only if it was the GNU/non-GNU ld that we prefer.
5727 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5728 *GNU* | *'with BFD'*)
5729 test "$with_gnu_ld" != no && break
5730 ;;
5731 *)
5732 test "$with_gnu_ld" != yes && break
5733 ;;
5734 esac
5735 fi
5736 done
5737 IFS="$lt_save_ifs"
5738 else
5739 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5740 fi
5741 fi
5742
5743 LD="$lt_cv_path_LD"
5744 if test -n "$LD"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5746 $as_echo "$LD" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5753 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5754 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5758 case `$LD -v 2>&1 </dev/null` in
5759 *GNU* | *'with BFD'*)
5760 lt_cv_prog_gnu_ld=yes
5761 ;;
5762 *)
5763 lt_cv_prog_gnu_ld=no
5764 ;;
5765 esac
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5768 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5769 with_gnu_ld=$lt_cv_prog_gnu_ld
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5780 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5781 if test "${lt_cv_path_NM+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 if test -n "$NM"; then
5785 # Let the user override the test.
5786 lt_cv_path_NM="$NM"
5787 else
5788 lt_nm_to_check="${ac_tool_prefix}nm"
5789 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5790 lt_nm_to_check="$lt_nm_to_check nm"
5791 fi
5792 for lt_tmp_nm in $lt_nm_to_check; do
5793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5794 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5795 IFS="$lt_save_ifs"
5796 test -z "$ac_dir" && ac_dir=.
5797 tmp_nm="$ac_dir/$lt_tmp_nm"
5798 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5799 # Check to see if the nm accepts a BSD-compat flag.
5800 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5801 # nm: unknown option "B" ignored
5802 # Tru64's nm complains that /dev/null is an invalid object file
5803 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5804 */dev/null* | *'Invalid file or object type'*)
5805 lt_cv_path_NM="$tmp_nm -B"
5806 break
5807 ;;
5808 *)
5809 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5810 */dev/null*)
5811 lt_cv_path_NM="$tmp_nm -p"
5812 break
5813 ;;
5814 *)
5815 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5816 continue # so that we can try to find one that supports BSD flags
5817 ;;
5818 esac
5819 ;;
5820 esac
5821 fi
5822 done
5823 IFS="$lt_save_ifs"
5824 done
5825 : ${lt_cv_path_NM=no}
5826 fi
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5829 $as_echo "$lt_cv_path_NM" >&6; }
5830 if test "$lt_cv_path_NM" != "no"; then
5831 NM="$lt_cv_path_NM"
5832 else
5833 # Didn't find any BSD compatible name lister, look for dumpbin.
5834 if test -n "$ac_tool_prefix"; then
5835 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5836 do
5837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$DUMPBIN"; then
5845 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 DUMPBIN=$ac_cv_prog_DUMPBIN
5865 if test -n "$DUMPBIN"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5867 $as_echo "$DUMPBIN" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874 test -n "$DUMPBIN" && break
5875 done
5876 fi
5877 if test -z "$DUMPBIN"; then
5878 ac_ct_DUMPBIN=$DUMPBIN
5879 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5880 do
5881 # Extract the first word of "$ac_prog", so it can be a program name with args.
5882 set dummy $ac_prog; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 if test -n "$ac_ct_DUMPBIN"; then
5889 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 break 2
5901 fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5909 if test -n "$ac_ct_DUMPBIN"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5911 $as_echo "$ac_ct_DUMPBIN" >&6; }
5912 else
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 fi
5916
5917
5918 test -n "$ac_ct_DUMPBIN" && break
5919 done
5920
5921 if test "x$ac_ct_DUMPBIN" = x; then
5922 DUMPBIN=":"
5923 else
5924 case $cross_compiling:$ac_tool_warned in
5925 yes:)
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928 ac_tool_warned=yes ;;
5929 esac
5930 DUMPBIN=$ac_ct_DUMPBIN
5931 fi
5932 fi
5933
5934
5935 if test "$DUMPBIN" != ":"; then
5936 NM="$DUMPBIN"
5937 fi
5938 fi
5939 test -z "$NM" && NM=nm
5940
5941
5942
5943
5944
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5947 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5948 if test "${lt_cv_nm_interface+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 lt_cv_nm_interface="BSD nm"
5952 echo "int some_variable = 0;" > conftest.$ac_ext
5953 (eval echo "\"\$as_me:5953: $ac_compile\"" >&5)
5954 (eval "$ac_compile" 2>conftest.err)
5955 cat conftest.err >&5
5956 (eval echo "\"\$as_me:5956: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5957 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5958 cat conftest.err >&5
5959 (eval echo "\"\$as_me:5959: output\"" >&5)
5960 cat conftest.out >&5
5961 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5962 lt_cv_nm_interface="MS dumpbin"
5963 fi
5964 rm -f conftest*
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5967 $as_echo "$lt_cv_nm_interface" >&6; }
5968
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5970 $as_echo_n "checking whether ln -s works... " >&6; }
5971 LN_S=$as_ln_s
5972 if test "$LN_S" = "ln -s"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5974 $as_echo "yes" >&6; }
5975 else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5977 $as_echo "no, using $LN_S" >&6; }
5978 fi
5979
5980 # find the maximum length of command line arguments
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5982 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5983 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 i=0
5987 teststring="ABCD"
5988
5989 case $build_os in
5990 msdosdjgpp*)
5991 # On DJGPP, this test can blow up pretty badly due to problems in libc
5992 # (any single argument exceeding 2000 bytes causes a buffer overrun
5993 # during glob expansion). Even if it were fixed, the result of this
5994 # check would be larger than it should be.
5995 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5996 ;;
5997
5998 gnu*)
5999 # Under GNU Hurd, this test is not required because there is
6000 # no limit to the length of command line arguments.
6001 # Libtool will interpret -1 as no limit whatsoever
6002 lt_cv_sys_max_cmd_len=-1;
6003 ;;
6004
6005 cygwin* | mingw* | cegcc*)
6006 # On Win9x/ME, this test blows up -- it succeeds, but takes
6007 # about 5 minutes as the teststring grows exponentially.
6008 # Worse, since 9x/ME are not pre-emptively multitasking,
6009 # you end up with a "frozen" computer, even though with patience
6010 # the test eventually succeeds (with a max line length of 256k).
6011 # Instead, let's just punt: use the minimum linelength reported by
6012 # all of the supported platforms: 8192 (on NT/2K/XP).
6013 lt_cv_sys_max_cmd_len=8192;
6014 ;;
6015
6016 amigaos*)
6017 # On AmigaOS with pdksh, this test takes hours, literally.
6018 # So we just punt and use a minimum line length of 8192.
6019 lt_cv_sys_max_cmd_len=8192;
6020 ;;
6021
6022 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6023 # This has been around since 386BSD, at least. Likely further.
6024 if test -x /sbin/sysctl; then
6025 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6026 elif test -x /usr/sbin/sysctl; then
6027 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6028 else
6029 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6030 fi
6031 # And add a safety zone
6032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6034 ;;
6035
6036 interix*)
6037 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6038 lt_cv_sys_max_cmd_len=196608
6039 ;;
6040
6041 osf*)
6042 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6043 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6044 # nice to cause kernel panics so lets avoid the loop below.
6045 # First set a reasonable default.
6046 lt_cv_sys_max_cmd_len=16384
6047 #
6048 if test -x /sbin/sysconfig; then
6049 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6050 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6051 esac
6052 fi
6053 ;;
6054 sco3.2v5*)
6055 lt_cv_sys_max_cmd_len=102400
6056 ;;
6057 sysv5* | sco5v6* | sysv4.2uw2*)
6058 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6059 if test -n "$kargmax"; then
6060 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6061 else
6062 lt_cv_sys_max_cmd_len=32768
6063 fi
6064 ;;
6065 *)
6066 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6067 if test -n "$lt_cv_sys_max_cmd_len"; then
6068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6070 else
6071 # Make teststring a little bigger before we do anything with it.
6072 # a 1K string should be a reasonable start.
6073 for i in 1 2 3 4 5 6 7 8 ; do
6074 teststring=$teststring$teststring
6075 done
6076 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6077 # If test is not a shell built-in, we'll probably end up computing a
6078 # maximum length that is only half of the actual maximum length, but
6079 # we can't tell.
6080 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6081 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6082 test $i != 17 # 1/2 MB should be enough
6083 do
6084 i=`expr $i + 1`
6085 teststring=$teststring$teststring
6086 done
6087 # Only check the string length outside the loop.
6088 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6089 teststring=
6090 # Add a significant safety factor because C++ compilers can tack on
6091 # massive amounts of additional arguments before passing them to the
6092 # linker. It appears as though 1/2 is a usable value.
6093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6094 fi
6095 ;;
6096 esac
6097
6098 fi
6099
6100 if test -n $lt_cv_sys_max_cmd_len ; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6102 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6103 else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6105 $as_echo "none" >&6; }
6106 fi
6107 max_cmd_len=$lt_cv_sys_max_cmd_len
6108
6109
6110
6111
6112
6113
6114 : ${CP="cp -f"}
6115 : ${MV="mv -f"}
6116 : ${RM="rm -f"}
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6119 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6120 # Try some XSI features
6121 xsi_shell=no
6122 ( _lt_dummy="a/b/c"
6123 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6124 = c,a/b,, \
6125 && eval 'test $(( 1 + 1 )) -eq 2 \
6126 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6127 && xsi_shell=yes
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6129 $as_echo "$xsi_shell" >&6; }
6130
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6133 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6134 lt_shell_append=no
6135 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6136 >/dev/null 2>&1 \
6137 && lt_shell_append=yes
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6139 $as_echo "$lt_shell_append" >&6; }
6140
6141
6142 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6143 lt_unset=unset
6144 else
6145 lt_unset=false
6146 fi
6147
6148
6149
6150
6151
6152 # test EBCDIC or ASCII
6153 case `echo X|tr X '\101'` in
6154 A) # ASCII based system
6155 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6156 lt_SP2NL='tr \040 \012'
6157 lt_NL2SP='tr \015\012 \040\040'
6158 ;;
6159 *) # EBCDIC based system
6160 lt_SP2NL='tr \100 \n'
6161 lt_NL2SP='tr \r\n \100\100'
6162 ;;
6163 esac
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6174 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6175 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 lt_cv_ld_reload_flag='-r'
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6181 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6182 reload_flag=$lt_cv_ld_reload_flag
6183 case $reload_flag in
6184 "" | " "*) ;;
6185 *) reload_flag=" $reload_flag" ;;
6186 esac
6187 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6188 case $host_os in
6189 darwin*)
6190 if test "$GCC" = yes; then
6191 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6192 else
6193 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6194 fi
6195 ;;
6196 esac
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 if test -n "$ac_tool_prefix"; then
6207 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6208 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 if test -n "$OBJDUMP"; then
6215 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 OBJDUMP=$ac_cv_prog_OBJDUMP
6235 if test -n "$OBJDUMP"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6237 $as_echo "$OBJDUMP" >&6; }
6238 else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6241 fi
6242
6243
6244 fi
6245 if test -z "$ac_cv_prog_OBJDUMP"; then
6246 ac_ct_OBJDUMP=$OBJDUMP
6247 # Extract the first word of "objdump", so it can be a program name with args.
6248 set dummy objdump; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 if test -n "$ac_ct_OBJDUMP"; then
6255 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6275 if test -n "$ac_ct_OBJDUMP"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6277 $as_echo "$ac_ct_OBJDUMP" >&6; }
6278 else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282
6283 if test "x$ac_ct_OBJDUMP" = x; then
6284 OBJDUMP="false"
6285 else
6286 case $cross_compiling:$ac_tool_warned in
6287 yes:)
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290 ac_tool_warned=yes ;;
6291 esac
6292 OBJDUMP=$ac_ct_OBJDUMP
6293 fi
6294 else
6295 OBJDUMP="$ac_cv_prog_OBJDUMP"
6296 fi
6297
6298 test -z "$OBJDUMP" && OBJDUMP=objdump
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6309 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6310 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 lt_cv_file_magic_cmd='$MAGIC_CMD'
6314 lt_cv_file_magic_test_file=
6315 lt_cv_deplibs_check_method='unknown'
6316 # Need to set the preceding variable on all platforms that support
6317 # interlibrary dependencies.
6318 # 'none' -- dependencies not supported.
6319 # `unknown' -- same as none, but documents that we really don't know.
6320 # 'pass_all' -- all dependencies passed with no checks.
6321 # 'test_compile' -- check by making test program.
6322 # 'file_magic [[regex]]' -- check by looking for files in library path
6323 # which responds to the $file_magic_cmd with a given extended regex.
6324 # If you have `file' or equivalent on your system and you're not sure
6325 # whether `pass_all' will *always* work, you probably want this one.
6326
6327 case $host_os in
6328 aix[4-9]*)
6329 lt_cv_deplibs_check_method=pass_all
6330 ;;
6331
6332 beos*)
6333 lt_cv_deplibs_check_method=pass_all
6334 ;;
6335
6336 bsdi[45]*)
6337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6338 lt_cv_file_magic_cmd='/usr/bin/file -L'
6339 lt_cv_file_magic_test_file=/shlib/libc.so
6340 ;;
6341
6342 cygwin*)
6343 # func_win32_libid is a shell function defined in ltmain.sh
6344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6345 lt_cv_file_magic_cmd='func_win32_libid'
6346 ;;
6347
6348 mingw* | pw32*)
6349 # Base MSYS/MinGW do not provide the 'file' command needed by
6350 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6351 # unless we find 'file', for example because we are cross-compiling.
6352 if ( file / ) >/dev/null 2>&1; then
6353 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6354 lt_cv_file_magic_cmd='func_win32_libid'
6355 else
6356 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6357 lt_cv_file_magic_cmd='$OBJDUMP -f'
6358 fi
6359 ;;
6360
6361 cegcc)
6362 # use the weaker test based on 'objdump'. See mingw*.
6363 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6364 lt_cv_file_magic_cmd='$OBJDUMP -f'
6365 ;;
6366
6367 darwin* | rhapsody*)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370
6371 freebsd* | dragonfly*)
6372 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6373 case $host_cpu in
6374 i*86 )
6375 # Not sure whether the presence of OpenBSD here was a mistake.
6376 # Let's accept both of them until this is cleared up.
6377 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6378 lt_cv_file_magic_cmd=/usr/bin/file
6379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6380 ;;
6381 esac
6382 else
6383 lt_cv_deplibs_check_method=pass_all
6384 fi
6385 ;;
6386
6387 gnu*)
6388 lt_cv_deplibs_check_method=pass_all
6389 ;;
6390
6391 hpux10.20* | hpux11*)
6392 lt_cv_file_magic_cmd=/usr/bin/file
6393 case $host_cpu in
6394 ia64*)
6395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6396 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6397 ;;
6398 hppa*64*)
6399 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6400 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6401 ;;
6402 *)
6403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6404 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6405 ;;
6406 esac
6407 ;;
6408
6409 interix[3-9]*)
6410 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6412 ;;
6413
6414 irix5* | irix6* | nonstopux*)
6415 case $LD in
6416 *-32|*"-32 ") libmagic=32-bit;;
6417 *-n32|*"-n32 ") libmagic=N32;;
6418 *-64|*"-64 ") libmagic=64-bit;;
6419 *) libmagic=never-match;;
6420 esac
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424 # This must be Linux ELF.
6425 linux* | k*bsd*-gnu)
6426 lt_cv_deplibs_check_method=pass_all
6427 ;;
6428
6429 netbsd*)
6430 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6432 else
6433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6434 fi
6435 ;;
6436
6437 newos6*)
6438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6439 lt_cv_file_magic_cmd=/usr/bin/file
6440 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6441 ;;
6442
6443 *nto* | *qnx*)
6444 lt_cv_deplibs_check_method=pass_all
6445 ;;
6446
6447 openbsd*)
6448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6450 else
6451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6452 fi
6453 ;;
6454
6455 osf3* | osf4* | osf5*)
6456 lt_cv_deplibs_check_method=pass_all
6457 ;;
6458
6459 rdos*)
6460 lt_cv_deplibs_check_method=pass_all
6461 ;;
6462
6463 solaris*)
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
6466
6467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6468 lt_cv_deplibs_check_method=pass_all
6469 ;;
6470
6471 sysv4 | sysv4.3*)
6472 case $host_vendor in
6473 motorola)
6474 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]'
6475 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6476 ;;
6477 ncr)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480 sequent)
6481 lt_cv_file_magic_cmd='/bin/file'
6482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6483 ;;
6484 sni)
6485 lt_cv_file_magic_cmd='/bin/file'
6486 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6487 lt_cv_file_magic_test_file=/lib/libc.so
6488 ;;
6489 siemens)
6490 lt_cv_deplibs_check_method=pass_all
6491 ;;
6492 pc)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495 esac
6496 ;;
6497
6498 tpf*)
6499 lt_cv_deplibs_check_method=pass_all
6500 ;;
6501 esac
6502
6503 fi
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6505 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6506 file_magic_cmd=$lt_cv_file_magic_cmd
6507 deplibs_check_method=$lt_cv_deplibs_check_method
6508 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}ar; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if test "${ac_cv_prog_AR+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if test -n "$AR"; then
6530 ac_cv_prog_AR="$AR" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539 ac_cv_prog_AR="${ac_tool_prefix}ar"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 AR=$ac_cv_prog_AR
6550 if test -n "$AR"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6552 $as_echo "$AR" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558
6559 fi
6560 if test -z "$ac_cv_prog_AR"; then
6561 ac_ct_AR=$AR
6562 # Extract the first word of "ar", so it can be a program name with args.
6563 set dummy ar; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 if test -n "$ac_ct_AR"; then
6570 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_ac_ct_AR="ar"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6590 if test -n "$ac_ct_AR"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6592 $as_echo "$ac_ct_AR" >&6; }
6593 else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598 if test "x$ac_ct_AR" = x; then
6599 AR="false"
6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607 AR=$ac_ct_AR
6608 fi
6609 else
6610 AR="$ac_cv_prog_AR"
6611 fi
6612
6613 test -z "$AR" && AR=ar
6614 test -z "$AR_FLAGS" && AR_FLAGS=cru
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}strip; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if test "${ac_cv_prog_STRIP+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$STRIP"; then
6635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 STRIP=$ac_cv_prog_STRIP
6655 if test -n "$STRIP"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6657 $as_echo "$STRIP" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_STRIP"; then
6666 ac_ct_STRIP=$STRIP
6667 # Extract the first word of "strip", so it can be a program name with args.
6668 set dummy strip; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if test -n "$ac_ct_STRIP"; then
6675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_ac_ct_STRIP="strip"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6695 if test -n "$ac_ct_STRIP"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6697 $as_echo "$ac_ct_STRIP" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702
6703 if test "x$ac_ct_STRIP" = x; then
6704 STRIP=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712 STRIP=$ac_ct_STRIP
6713 fi
6714 else
6715 STRIP="$ac_cv_prog_STRIP"
6716 fi
6717
6718 test -z "$STRIP" && STRIP=:
6719
6720
6721
6722
6723
6724
6725 if test -n "$ac_tool_prefix"; then
6726 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 if test -n "$RANLIB"; then
6734 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751 fi
6752 fi
6753 RANLIB=$ac_cv_prog_RANLIB
6754 if test -n "$RANLIB"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6756 $as_echo "$RANLIB" >&6; }
6757 else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6760 fi
6761
6762
6763 fi
6764 if test -z "$ac_cv_prog_RANLIB"; then
6765 ac_ct_RANLIB=$RANLIB
6766 # Extract the first word of "ranlib", so it can be a program name with args.
6767 set dummy ranlib; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 if test -n "$ac_ct_RANLIB"; then
6774 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_prog_ac_ct_RANLIB="ranlib"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6794 if test -n "$ac_ct_RANLIB"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6796 $as_echo "$ac_ct_RANLIB" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6800 fi
6801
6802 if test "x$ac_ct_RANLIB" = x; then
6803 RANLIB=":"
6804 else
6805 case $cross_compiling:$ac_tool_warned in
6806 yes:)
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809 ac_tool_warned=yes ;;
6810 esac
6811 RANLIB=$ac_ct_RANLIB
6812 fi
6813 else
6814 RANLIB="$ac_cv_prog_RANLIB"
6815 fi
6816
6817 test -z "$RANLIB" && RANLIB=:
6818
6819
6820
6821
6822
6823
6824 # Determine commands to create old-style static archives.
6825 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6826 old_postinstall_cmds='chmod 644 $oldlib'
6827 old_postuninstall_cmds=
6828
6829 if test -n "$RANLIB"; then
6830 case $host_os in
6831 openbsd*)
6832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6833 ;;
6834 *)
6835 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6836 ;;
6837 esac
6838 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6839 fi
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874 # If no C compiler was specified, use CC.
6875 LTCC=${LTCC-"$CC"}
6876
6877 # If no C compiler flags were specified, use CFLAGS.
6878 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6879
6880 # Allow CC to be a program name with arguments.
6881 compiler=$CC
6882
6883
6884 # Check for command to grab the raw symbol name followed by C symbol from nm.
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6886 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6887 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890
6891 # These are sane defaults that work on at least a few old systems.
6892 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6893
6894 # Character class describing NM global symbol codes.
6895 symcode='[BCDEGRST]'
6896
6897 # Regexp to match symbols that can be accessed directly from C.
6898 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6899
6900 # Define system-specific variables.
6901 case $host_os in
6902 aix*)
6903 symcode='[BCDT]'
6904 ;;
6905 cygwin* | mingw* | pw32* | cegcc*)
6906 symcode='[ABCDGISTW]'
6907 ;;
6908 hpux*)
6909 if test "$host_cpu" = ia64; then
6910 symcode='[ABCDEGRST]'
6911 fi
6912 ;;
6913 irix* | nonstopux*)
6914 symcode='[BCDEGRST]'
6915 ;;
6916 osf*)
6917 symcode='[BCDEGQRST]'
6918 ;;
6919 solaris*)
6920 symcode='[BDRT]'
6921 ;;
6922 sco3.2v5*)
6923 symcode='[DT]'
6924 ;;
6925 sysv4.2uw2*)
6926 symcode='[DT]'
6927 ;;
6928 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6929 symcode='[ABDT]'
6930 ;;
6931 sysv4)
6932 symcode='[DFNSTU]'
6933 ;;
6934 esac
6935
6936 # If we're using GNU nm, then use its standard symbol codes.
6937 case `$NM -V 2>&1` in
6938 *GNU* | *'with BFD'*)
6939 symcode='[ABCDGIRSTW]' ;;
6940 esac
6941
6942 # Transform an extracted symbol line into a proper C declaration.
6943 # Some systems (esp. on ia64) link data and code symbols differently,
6944 # so use this general approach.
6945 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6946
6947 # Transform an extracted symbol line into symbol name and symbol address
6948 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6949 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'"
6950
6951 # Handle CRLF in mingw tool chain
6952 opt_cr=
6953 case $build_os in
6954 mingw*)
6955 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6956 ;;
6957 esac
6958
6959 # Try without a prefix underscore, then with it.
6960 for ac_symprfx in "" "_"; do
6961
6962 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6963 symxfrm="\\1 $ac_symprfx\\2 \\2"
6964
6965 # Write the raw and C identifiers.
6966 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6967 # Fake it for dumpbin and say T for any non-static function
6968 # and D for any global variable.
6969 # Also find C++ and __fastcall symbols from MSVC++,
6970 # which start with @ or ?.
6971 lt_cv_sys_global_symbol_pipe="$AWK '"\
6972 " {last_section=section; section=\$ 3};"\
6973 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6974 " \$ 0!~/External *\|/{next};"\
6975 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6976 " {if(hide[section]) next};"\
6977 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6978 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6979 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6980 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6981 " ' prfx=^$ac_symprfx"
6982 else
6983 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6984 fi
6985
6986 # Check to see that the pipe works correctly.
6987 pipe_works=no
6988
6989 rm -f conftest*
6990 cat > conftest.$ac_ext <<_LT_EOF
6991 #ifdef __cplusplus
6992 extern "C" {
6993 #endif
6994 char nm_test_var;
6995 void nm_test_func(void);
6996 void nm_test_func(void){}
6997 #ifdef __cplusplus
6998 }
6999 #endif
7000 int main(){nm_test_var='a';nm_test_func();return(0);}
7001 _LT_EOF
7002
7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7004 (eval $ac_compile) 2>&5
7005 ac_status=$?
7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007 test $ac_status = 0; }; then
7008 # Now try to grab the symbols.
7009 nlist=conftest.nm
7010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7011 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7012 ac_status=$?
7013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014 test $ac_status = 0; } && test -s "$nlist"; then
7015 # Try sorting and uniquifying the output.
7016 if sort "$nlist" | uniq > "$nlist"T; then
7017 mv -f "$nlist"T "$nlist"
7018 else
7019 rm -f "$nlist"T
7020 fi
7021
7022 # Make sure that we snagged all the symbols we need.
7023 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7024 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7025 cat <<_LT_EOF > conftest.$ac_ext
7026 #ifdef __cplusplus
7027 extern "C" {
7028 #endif
7029
7030 _LT_EOF
7031 # Now generate the symbol file.
7032 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7033
7034 cat <<_LT_EOF >> conftest.$ac_ext
7035
7036 /* The mapping between symbol names and symbols. */
7037 const struct {
7038 const char *name;
7039 void *address;
7040 }
7041 lt__PROGRAM__LTX_preloaded_symbols[] =
7042 {
7043 { "@PROGRAM@", (void *) 0 },
7044 _LT_EOF
7045 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7046 cat <<\_LT_EOF >> conftest.$ac_ext
7047 {0, (void *) 0}
7048 };
7049
7050 /* This works around a problem in FreeBSD linker */
7051 #ifdef FREEBSD_WORKAROUND
7052 static const void *lt_preloaded_setup() {
7053 return lt__PROGRAM__LTX_preloaded_symbols;
7054 }
7055 #endif
7056
7057 #ifdef __cplusplus
7058 }
7059 #endif
7060 _LT_EOF
7061 # Now try linking the two files.
7062 mv conftest.$ac_objext conftstm.$ac_objext
7063 lt_save_LIBS="$LIBS"
7064 lt_save_CFLAGS="$CFLAGS"
7065 LIBS="conftstm.$ac_objext"
7066 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7068 (eval $ac_link) 2>&5
7069 ac_status=$?
7070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7071 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7072 pipe_works=yes
7073 fi
7074 LIBS="$lt_save_LIBS"
7075 CFLAGS="$lt_save_CFLAGS"
7076 else
7077 echo "cannot find nm_test_func in $nlist" >&5
7078 fi
7079 else
7080 echo "cannot find nm_test_var in $nlist" >&5
7081 fi
7082 else
7083 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7084 fi
7085 else
7086 echo "$progname: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7088 fi
7089 rm -rf conftest* conftst*
7090
7091 # Do not use the global_symbol_pipe unless it works.
7092 if test "$pipe_works" = yes; then
7093 break
7094 else
7095 lt_cv_sys_global_symbol_pipe=
7096 fi
7097 done
7098
7099 fi
7100
7101 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7102 lt_cv_sys_global_symbol_to_cdecl=
7103 fi
7104 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7106 $as_echo "failed" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7109 $as_echo "ok" >&6; }
7110 fi
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133 # Check whether --enable-libtool-lock was given.
7134 if test "${enable_libtool_lock+set}" = set; then :
7135 enableval=$enable_libtool_lock;
7136 fi
7137
7138 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7139
7140 # Some flags need to be propagated to the compiler or linker for good
7141 # libtool support.
7142 case $host in
7143 ia64-*-hpux*)
7144 # Find out which ABI we are using.
7145 echo 'int i;' > conftest.$ac_ext
7146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7147 (eval $ac_compile) 2>&5
7148 ac_status=$?
7149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150 test $ac_status = 0; }; then
7151 case `/usr/bin/file conftest.$ac_objext` in
7152 *ELF-32*)
7153 HPUX_IA64_MODE="32"
7154 ;;
7155 *ELF-64*)
7156 HPUX_IA64_MODE="64"
7157 ;;
7158 esac
7159 fi
7160 rm -rf conftest*
7161 ;;
7162 *-*-irix6*)
7163 # Find out which ABI we are using.
7164 echo '#line 7164 "configure"' > conftest.$ac_ext
7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166 (eval $ac_compile) 2>&5
7167 ac_status=$?
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; }; then
7170 if test "$lt_cv_prog_gnu_ld" = yes; then
7171 case `/usr/bin/file conftest.$ac_objext` in
7172 *32-bit*)
7173 LD="${LD-ld} -melf32bsmip"
7174 ;;
7175 *N32*)
7176 LD="${LD-ld} -melf32bmipn32"
7177 ;;
7178 *64-bit*)
7179 LD="${LD-ld} -melf64bmip"
7180 ;;
7181 esac
7182 else
7183 case `/usr/bin/file conftest.$ac_objext` in
7184 *32-bit*)
7185 LD="${LD-ld} -32"
7186 ;;
7187 *N32*)
7188 LD="${LD-ld} -n32"
7189 ;;
7190 *64-bit*)
7191 LD="${LD-ld} -64"
7192 ;;
7193 esac
7194 fi
7195 fi
7196 rm -rf conftest*
7197 ;;
7198
7199 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7200 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7201 # Find out which ABI we are using.
7202 echo 'int i;' > conftest.$ac_ext
7203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7204 (eval $ac_compile) 2>&5
7205 ac_status=$?
7206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7207 test $ac_status = 0; }; then
7208 case `/usr/bin/file conftest.o` in
7209 *32-bit*)
7210 case $host in
7211 x86_64-*kfreebsd*-gnu)
7212 LD="${LD-ld} -m elf_i386_fbsd"
7213 ;;
7214 x86_64-*linux*)
7215 LD="${LD-ld} -m elf_i386"
7216 ;;
7217 ppc64-*linux*|powerpc64-*linux*)
7218 LD="${LD-ld} -m elf32ppclinux"
7219 ;;
7220 s390x-*linux*)
7221 LD="${LD-ld} -m elf_s390"
7222 ;;
7223 sparc64-*linux*)
7224 LD="${LD-ld} -m elf32_sparc"
7225 ;;
7226 esac
7227 ;;
7228 *64-bit*)
7229 case $host in
7230 x86_64-*kfreebsd*-gnu)
7231 LD="${LD-ld} -m elf_x86_64_fbsd"
7232 ;;
7233 x86_64-*linux*)
7234 LD="${LD-ld} -m elf_x86_64"
7235 ;;
7236 ppc*-*linux*|powerpc*-*linux*)
7237 LD="${LD-ld} -m elf64ppc"
7238 ;;
7239 s390*-*linux*|s390*-*tpf*)
7240 LD="${LD-ld} -m elf64_s390"
7241 ;;
7242 sparc*-*linux*)
7243 LD="${LD-ld} -m elf64_sparc"
7244 ;;
7245 esac
7246 ;;
7247 esac
7248 fi
7249 rm -rf conftest*
7250 ;;
7251
7252 *-*-sco3.2v5*)
7253 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7254 SAVE_CFLAGS="$CFLAGS"
7255 CFLAGS="$CFLAGS -belf"
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7257 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7258 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7259 $as_echo_n "(cached) " >&6
7260 else
7261 ac_ext=c
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269
7270 int
7271 main ()
7272 {
7273
7274 ;
7275 return 0;
7276 }
7277 _ACEOF
7278 if ac_fn_c_try_link "$LINENO"; then :
7279 lt_cv_cc_needs_belf=yes
7280 else
7281 lt_cv_cc_needs_belf=no
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7285 ac_ext=c
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7290
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7293 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7294 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7295 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7296 CFLAGS="$SAVE_CFLAGS"
7297 fi
7298 ;;
7299 sparc*-*solaris*)
7300 # Find out which ABI we are using.
7301 echo 'int i;' > conftest.$ac_ext
7302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7303 (eval $ac_compile) 2>&5
7304 ac_status=$?
7305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7306 test $ac_status = 0; }; then
7307 case `/usr/bin/file conftest.o` in
7308 *64-bit*)
7309 case $lt_cv_prog_gnu_ld in
7310 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7311 *)
7312 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7313 LD="${LD-ld} -64"
7314 fi
7315 ;;
7316 esac
7317 ;;
7318 esac
7319 fi
7320 rm -rf conftest*
7321 ;;
7322 esac
7323
7324 need_locks="$enable_libtool_lock"
7325
7326
7327 case $host_os in
7328 rhapsody* | darwin*)
7329 if test -n "$ac_tool_prefix"; then
7330 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7331 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 if test -n "$DSYMUTIL"; then
7338 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 break 2
7350 fi
7351 done
7352 done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7358 if test -n "$DSYMUTIL"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7360 $as_echo "$DSYMUTIL" >&6; }
7361 else
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366
7367 fi
7368 if test -z "$ac_cv_prog_DSYMUTIL"; then
7369 ac_ct_DSYMUTIL=$DSYMUTIL
7370 # Extract the first word of "dsymutil", so it can be a program name with args.
7371 set dummy dsymutil; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 if test -n "$ac_ct_DSYMUTIL"; then
7378 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391 done
7392 done
7393 IFS=$as_save_IFS
7394
7395 fi
7396 fi
7397 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7398 if test -n "$ac_ct_DSYMUTIL"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7400 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406 if test "x$ac_ct_DSYMUTIL" = x; then
7407 DSYMUTIL=":"
7408 else
7409 case $cross_compiling:$ac_tool_warned in
7410 yes:)
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413 ac_tool_warned=yes ;;
7414 esac
7415 DSYMUTIL=$ac_ct_DSYMUTIL
7416 fi
7417 else
7418 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7419 fi
7420
7421 if test -n "$ac_tool_prefix"; then
7422 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7423 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 if test -n "$NMEDIT"; then
7430 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7431 else
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7442 fi
7443 done
7444 done
7445 IFS=$as_save_IFS
7446
7447 fi
7448 fi
7449 NMEDIT=$ac_cv_prog_NMEDIT
7450 if test -n "$NMEDIT"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7452 $as_echo "$NMEDIT" >&6; }
7453 else
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7456 fi
7457
7458
7459 fi
7460 if test -z "$ac_cv_prog_NMEDIT"; then
7461 ac_ct_NMEDIT=$NMEDIT
7462 # Extract the first word of "nmedit", so it can be a program name with args.
7463 set dummy nmedit; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 if test -n "$ac_ct_NMEDIT"; then
7470 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7482 fi
7483 done
7484 done
7485 IFS=$as_save_IFS
7486
7487 fi
7488 fi
7489 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7490 if test -n "$ac_ct_NMEDIT"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7492 $as_echo "$ac_ct_NMEDIT" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7496 fi
7497
7498 if test "x$ac_ct_NMEDIT" = x; then
7499 NMEDIT=":"
7500 else
7501 case $cross_compiling:$ac_tool_warned in
7502 yes:)
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7505 ac_tool_warned=yes ;;
7506 esac
7507 NMEDIT=$ac_ct_NMEDIT
7508 fi
7509 else
7510 NMEDIT="$ac_cv_prog_NMEDIT"
7511 fi
7512
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_LIPO+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$LIPO"; then
7522 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535 done
7536 done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 LIPO=$ac_cv_prog_LIPO
7542 if test -n "$LIPO"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7544 $as_echo "$LIPO" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550
7551 fi
7552 if test -z "$ac_cv_prog_LIPO"; then
7553 ac_ct_LIPO=$LIPO
7554 # Extract the first word of "lipo", so it can be a program name with args.
7555 set dummy lipo; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$ac_ct_LIPO"; then
7562 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_ac_ct_LIPO="lipo"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579 fi
7580 fi
7581 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7582 if test -n "$ac_ct_LIPO"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7584 $as_echo "$ac_ct_LIPO" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588 fi
7589
7590 if test "x$ac_ct_LIPO" = x; then
7591 LIPO=":"
7592 else
7593 case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7598 esac
7599 LIPO=$ac_ct_LIPO
7600 fi
7601 else
7602 LIPO="$ac_cv_prog_LIPO"
7603 fi
7604
7605 if test -n "$ac_tool_prefix"; then
7606 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}otool; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$OTOOL"; then
7614 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7626 fi
7627 done
7628 done
7629 IFS=$as_save_IFS
7630
7631 fi
7632 fi
7633 OTOOL=$ac_cv_prog_OTOOL
7634 if test -n "$OTOOL"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7636 $as_echo "$OTOOL" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7640 fi
7641
7642
7643 fi
7644 if test -z "$ac_cv_prog_OTOOL"; then
7645 ac_ct_OTOOL=$OTOOL
7646 # Extract the first word of "otool", so it can be a program name with args.
7647 set dummy otool; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 if test -n "$ac_ct_OTOOL"; then
7654 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663 ac_cv_prog_ac_ct_OTOOL="otool"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7666 fi
7667 done
7668 done
7669 IFS=$as_save_IFS
7670
7671 fi
7672 fi
7673 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7674 if test -n "$ac_ct_OTOOL"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7676 $as_echo "$ac_ct_OTOOL" >&6; }
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 fi
7681
7682 if test "x$ac_ct_OTOOL" = x; then
7683 OTOOL=":"
7684 else
7685 case $cross_compiling:$ac_tool_warned in
7686 yes:)
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689 ac_tool_warned=yes ;;
7690 esac
7691 OTOOL=$ac_ct_OTOOL
7692 fi
7693 else
7694 OTOOL="$ac_cv_prog_OTOOL"
7695 fi
7696
7697 if test -n "$ac_tool_prefix"; then
7698 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7699 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 if test -n "$OTOOL64"; then
7706 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719 done
7720 done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 OTOOL64=$ac_cv_prog_OTOOL64
7726 if test -n "$OTOOL64"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7728 $as_echo "$OTOOL64" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734
7735 fi
7736 if test -z "$ac_cv_prog_OTOOL64"; then
7737 ac_ct_OTOOL64=$OTOOL64
7738 # Extract the first word of "otool64", so it can be a program name with args.
7739 set dummy otool64; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 if test -n "$ac_ct_OTOOL64"; then
7746 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_prog_ac_ct_OTOOL64="otool64"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763 fi
7764 fi
7765 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7766 if test -n "$ac_ct_OTOOL64"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7768 $as_echo "$ac_ct_OTOOL64" >&6; }
7769 else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7772 fi
7773
7774 if test "x$ac_ct_OTOOL64" = x; then
7775 OTOOL64=":"
7776 else
7777 case $cross_compiling:$ac_tool_warned in
7778 yes:)
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781 ac_tool_warned=yes ;;
7782 esac
7783 OTOOL64=$ac_ct_OTOOL64
7784 fi
7785 else
7786 OTOOL64="$ac_cv_prog_OTOOL64"
7787 fi
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7816 $as_echo_n "checking for -single_module linker flag... " >&6; }
7817 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 lt_cv_apple_cc_single_mod=no
7821 if test -z "${LT_MULTI_MODULE}"; then
7822 # By default we will add the -single_module flag. You can override
7823 # by either setting the environment variable LT_MULTI_MODULE
7824 # non-empty at configure time, or by adding -multi_module to the
7825 # link flags.
7826 rm -rf libconftest.dylib*
7827 echo "int foo(void){return 1;}" > conftest.c
7828 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7829 -dynamiclib -Wl,-single_module conftest.c" >&5
7830 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7831 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7832 _lt_result=$?
7833 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7834 lt_cv_apple_cc_single_mod=yes
7835 else
7836 cat conftest.err >&5
7837 fi
7838 rm -rf libconftest.dylib*
7839 rm -f conftest.*
7840 fi
7841 fi
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7843 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7845 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7846 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 lt_cv_ld_exported_symbols_list=no
7850 save_LDFLAGS=$LDFLAGS
7851 echo "_main" > conftest.sym
7852 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855
7856 int
7857 main ()
7858 {
7859
7860 ;
7861 return 0;
7862 }
7863 _ACEOF
7864 if ac_fn_c_try_link "$LINENO"; then :
7865 lt_cv_ld_exported_symbols_list=yes
7866 else
7867 lt_cv_ld_exported_symbols_list=no
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
7871 LDFLAGS="$save_LDFLAGS"
7872
7873 fi
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7875 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7876 case $host_os in
7877 rhapsody* | darwin1.[012])
7878 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7879 darwin1.*)
7880 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7881 darwin*) # darwin 5.x on
7882 # if running on 10.5 or later, the deployment target defaults
7883 # to the OS version, if on x86, and 10.4, the deployment
7884 # target defaults to 10.4. Don't you love it?
7885 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7886 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7887 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7888 10.[012]*)
7889 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7890 10.*)
7891 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7892 esac
7893 ;;
7894 esac
7895 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7896 _lt_dar_single_mod='$single_module'
7897 fi
7898 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7899 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7900 else
7901 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7902 fi
7903 if test "$DSYMUTIL" != ":"; then
7904 _lt_dsymutil='~$DSYMUTIL $lib || :'
7905 else
7906 _lt_dsymutil=
7907 fi
7908 ;;
7909 esac
7910
7911 for ac_header in dlfcn.h
7912 do :
7913 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7914 "
7915 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7916 cat >>confdefs.h <<_ACEOF
7917 #define HAVE_DLFCN_H 1
7918 _ACEOF
7919
7920 fi
7921
7922 done
7923
7924
7925
7926 # Set options
7927
7928
7929
7930 enable_dlopen=no
7931
7932
7933 enable_win32_dll=no
7934
7935
7936 # Check whether --enable-shared was given.
7937 if test "${enable_shared+set}" = set; then :
7938 enableval=$enable_shared; p=${PACKAGE-default}
7939 case $enableval in
7940 yes) enable_shared=yes ;;
7941 no) enable_shared=no ;;
7942 *)
7943 enable_shared=no
7944 # Look at the argument we got. We use all the common list separators.
7945 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7946 for pkg in $enableval; do
7947 IFS="$lt_save_ifs"
7948 if test "X$pkg" = "X$p"; then
7949 enable_shared=yes
7950 fi
7951 done
7952 IFS="$lt_save_ifs"
7953 ;;
7954 esac
7955 else
7956 enable_shared=yes
7957 fi
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967 # Check whether --enable-static was given.
7968 if test "${enable_static+set}" = set; then :
7969 enableval=$enable_static; p=${PACKAGE-default}
7970 case $enableval in
7971 yes) enable_static=yes ;;
7972 no) enable_static=no ;;
7973 *)
7974 enable_static=no
7975 # Look at the argument we got. We use all the common list separators.
7976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7977 for pkg in $enableval; do
7978 IFS="$lt_save_ifs"
7979 if test "X$pkg" = "X$p"; then
7980 enable_static=yes
7981 fi
7982 done
7983 IFS="$lt_save_ifs"
7984 ;;
7985 esac
7986 else
7987 enable_static=yes
7988 fi
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999 # Check whether --with-pic was given.
8000 if test "${with_pic+set}" = set; then :
8001 withval=$with_pic; pic_mode="$withval"
8002 else
8003 pic_mode=default
8004 fi
8005
8006
8007 test -z "$pic_mode" && pic_mode=default
8008
8009
8010
8011
8012
8013
8014
8015 # Check whether --enable-fast-install was given.
8016 if test "${enable_fast_install+set}" = set; then :
8017 enableval=$enable_fast_install; p=${PACKAGE-default}
8018 case $enableval in
8019 yes) enable_fast_install=yes ;;
8020 no) enable_fast_install=no ;;
8021 *)
8022 enable_fast_install=no
8023 # Look at the argument we got. We use all the common list separators.
8024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8025 for pkg in $enableval; do
8026 IFS="$lt_save_ifs"
8027 if test "X$pkg" = "X$p"; then
8028 enable_fast_install=yes
8029 fi
8030 done
8031 IFS="$lt_save_ifs"
8032 ;;
8033 esac
8034 else
8035 enable_fast_install=yes
8036 fi
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048 # This can be used to rebuild libtool when needed
8049 LIBTOOL_DEPS="$ltmain"
8050
8051 # Always use our own libtool.
8052 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 test -z "$LN_S" && LN_S="ln -s"
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 if test -n "${ZSH_VERSION+set}" ; then
8094 setopt NO_GLOB_SUBST
8095 fi
8096
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8098 $as_echo_n "checking for objdir... " >&6; }
8099 if test "${lt_cv_objdir+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 rm -f .libs 2>/dev/null
8103 mkdir .libs 2>/dev/null
8104 if test -d .libs; then
8105 lt_cv_objdir=.libs
8106 else
8107 # MS-DOS does not allow filenames that begin with a dot.
8108 lt_cv_objdir=_libs
8109 fi
8110 rmdir .libs 2>/dev/null
8111 fi
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8113 $as_echo "$lt_cv_objdir" >&6; }
8114 objdir=$lt_cv_objdir
8115
8116
8117
8118
8119
8120 cat >>confdefs.h <<_ACEOF
8121 #define LT_OBJDIR "$lt_cv_objdir/"
8122 _ACEOF
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140 case $host_os in
8141 aix3*)
8142 # AIX sometimes has problems with the GCC collect2 program. For some
8143 # reason, if we set the COLLECT_NAMES environment variable, the problems
8144 # vanish in a puff of smoke.
8145 if test "X${COLLECT_NAMES+set}" != Xset; then
8146 COLLECT_NAMES=
8147 export COLLECT_NAMES
8148 fi
8149 ;;
8150 esac
8151
8152 # Sed substitution that helps us do robust quoting. It backslashifies
8153 # metacharacters that are still active within double-quoted strings.
8154 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8155
8156 # Same as above, but do not quote variable references.
8157 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8158
8159 # Sed substitution to delay expansion of an escaped shell variable in a
8160 # double_quote_subst'ed string.
8161 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8162
8163 # Sed substitution to delay expansion of an escaped single quote.
8164 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8165
8166 # Sed substitution to avoid accidental globbing in evaled expressions
8167 no_glob_subst='s/\*/\\\*/g'
8168
8169 # Global variables:
8170 ofile=libtool
8171 can_build_shared=yes
8172
8173 # All known linkers require a `.a' archive for static linking (except MSVC,
8174 # which needs '.lib').
8175 libext=a
8176
8177 with_gnu_ld="$lt_cv_prog_gnu_ld"
8178
8179 old_CC="$CC"
8180 old_CFLAGS="$CFLAGS"
8181
8182 # Set sane defaults for various variables
8183 test -z "$CC" && CC=cc
8184 test -z "$LTCC" && LTCC=$CC
8185 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8186 test -z "$LD" && LD=ld
8187 test -z "$ac_objext" && ac_objext=o
8188
8189 for cc_temp in $compiler""; do
8190 case $cc_temp in
8191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8193 \-*) ;;
8194 *) break;;
8195 esac
8196 done
8197 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8198
8199
8200 # Only perform the check for file, if the check method requires it
8201 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8202 case $deplibs_check_method in
8203 file_magic*)
8204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8206 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8207 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 case $MAGIC_CMD in
8211 [\\/*] | ?:[\\/]*)
8212 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8213 ;;
8214 *)
8215 lt_save_MAGIC_CMD="$MAGIC_CMD"
8216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8217 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8218 for ac_dir in $ac_dummy; do
8219 IFS="$lt_save_ifs"
8220 test -z "$ac_dir" && ac_dir=.
8221 if test -f $ac_dir/${ac_tool_prefix}file; then
8222 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8223 if test -n "$file_magic_test_file"; then
8224 case $deplibs_check_method in
8225 "file_magic "*)
8226 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8228 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8229 $EGREP "$file_magic_regex" > /dev/null; then
8230 :
8231 else
8232 cat <<_LT_EOF 1>&2
8233
8234 *** Warning: the command libtool uses to detect shared libraries,
8235 *** $file_magic_cmd, produces output that libtool cannot recognize.
8236 *** The result is that libtool may fail to recognize shared libraries
8237 *** as such. This will affect the creation of libtool libraries that
8238 *** depend on shared libraries, but programs linked with such libtool
8239 *** libraries will work regardless of this problem. Nevertheless, you
8240 *** may want to report the problem to your system manager and/or to
8241 *** bug-libtool@gnu.org
8242
8243 _LT_EOF
8244 fi ;;
8245 esac
8246 fi
8247 break
8248 fi
8249 done
8250 IFS="$lt_save_ifs"
8251 MAGIC_CMD="$lt_save_MAGIC_CMD"
8252 ;;
8253 esac
8254 fi
8255
8256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8257 if test -n "$MAGIC_CMD"; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8259 $as_echo "$MAGIC_CMD" >&6; }
8260 else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8263 fi
8264
8265
8266
8267
8268
8269 if test -z "$lt_cv_path_MAGIC_CMD"; then
8270 if test -n "$ac_tool_prefix"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8272 $as_echo_n "checking for file... " >&6; }
8273 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 case $MAGIC_CMD in
8277 [\\/*] | ?:[\\/]*)
8278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8279 ;;
8280 *)
8281 lt_save_MAGIC_CMD="$MAGIC_CMD"
8282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8283 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8284 for ac_dir in $ac_dummy; do
8285 IFS="$lt_save_ifs"
8286 test -z "$ac_dir" && ac_dir=.
8287 if test -f $ac_dir/file; then
8288 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8289 if test -n "$file_magic_test_file"; then
8290 case $deplibs_check_method in
8291 "file_magic "*)
8292 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8294 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8295 $EGREP "$file_magic_regex" > /dev/null; then
8296 :
8297 else
8298 cat <<_LT_EOF 1>&2
8299
8300 *** Warning: the command libtool uses to detect shared libraries,
8301 *** $file_magic_cmd, produces output that libtool cannot recognize.
8302 *** The result is that libtool may fail to recognize shared libraries
8303 *** as such. This will affect the creation of libtool libraries that
8304 *** depend on shared libraries, but programs linked with such libtool
8305 *** libraries will work regardless of this problem. Nevertheless, you
8306 *** may want to report the problem to your system manager and/or to
8307 *** bug-libtool@gnu.org
8308
8309 _LT_EOF
8310 fi ;;
8311 esac
8312 fi
8313 break
8314 fi
8315 done
8316 IFS="$lt_save_ifs"
8317 MAGIC_CMD="$lt_save_MAGIC_CMD"
8318 ;;
8319 esac
8320 fi
8321
8322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8323 if test -n "$MAGIC_CMD"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8325 $as_echo "$MAGIC_CMD" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 fi
8330
8331
8332 else
8333 MAGIC_CMD=:
8334 fi
8335 fi
8336
8337 fi
8338 ;;
8339 esac
8340
8341 # Use C for the default configuration in the libtool script
8342
8343 lt_save_CC="$CC"
8344 ac_ext=c
8345 ac_cpp='$CPP $CPPFLAGS'
8346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8349
8350
8351 # Source file extension for C test sources.
8352 ac_ext=c
8353
8354 # Object file extension for compiled C test sources.
8355 objext=o
8356 objext=$objext
8357
8358 # Code to be used in simple compile tests
8359 lt_simple_compile_test_code="int some_variable = 0;"
8360
8361 # Code to be used in simple link tests
8362 lt_simple_link_test_code='int main(){return(0);}'
8363
8364
8365
8366
8367
8368
8369
8370 # If no C compiler was specified, use CC.
8371 LTCC=${LTCC-"$CC"}
8372
8373 # If no C compiler flags were specified, use CFLAGS.
8374 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8375
8376 # Allow CC to be a program name with arguments.
8377 compiler=$CC
8378
8379 # Save the default compiler, since it gets overwritten when the other
8380 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8381 compiler_DEFAULT=$CC
8382
8383 # save warnings/boilerplate of simple test code
8384 ac_outfile=conftest.$ac_objext
8385 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8386 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8387 _lt_compiler_boilerplate=`cat conftest.err`
8388 $RM conftest*
8389
8390 ac_outfile=conftest.$ac_objext
8391 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8392 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8393 _lt_linker_boilerplate=`cat conftest.err`
8394 $RM -r conftest*
8395
8396
8397 if test -n "$compiler"; then
8398
8399 lt_prog_compiler_no_builtin_flag=
8400
8401 if test "$GCC" = yes; then
8402 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8403
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8405 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8406 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 lt_cv_prog_compiler_rtti_exceptions=no
8410 ac_outfile=conftest.$ac_objext
8411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8412 lt_compiler_flag="-fno-rtti -fno-exceptions"
8413 # Insert the option either (1) after the last *FLAGS variable, or
8414 # (2) before a word containing "conftest.", or (3) at the end.
8415 # Note that $ac_compile itself does not contain backslashes and begins
8416 # with a dollar sign (not a hyphen), so the echo should work correctly.
8417 # The option is referenced via a variable to avoid confusing sed.
8418 lt_compile=`echo "$ac_compile" | $SED \
8419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8421 -e 's:$: $lt_compiler_flag:'`
8422 (eval echo "\"\$as_me:8422: $lt_compile\"" >&5)
8423 (eval "$lt_compile" 2>conftest.err)
8424 ac_status=$?
8425 cat conftest.err >&5
8426 echo "$as_me:8426: \$? = $ac_status" >&5
8427 if (exit $ac_status) && test -s "$ac_outfile"; then
8428 # The compiler can only warn and ignore the option if not recognized
8429 # So say no if there are warnings other than the usual output.
8430 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8433 lt_cv_prog_compiler_rtti_exceptions=yes
8434 fi
8435 fi
8436 $RM conftest*
8437
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8440 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8441
8442 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8443 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8444 else
8445 :
8446 fi
8447
8448 fi
8449
8450
8451
8452
8453
8454
8455 lt_prog_compiler_wl=
8456 lt_prog_compiler_pic=
8457 lt_prog_compiler_static=
8458
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8460 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8461
8462 if test "$GCC" = yes; then
8463 lt_prog_compiler_wl='-Wl,'
8464 lt_prog_compiler_static='-static'
8465
8466 case $host_os in
8467 aix*)
8468 # All AIX code is PIC.
8469 if test "$host_cpu" = ia64; then
8470 # AIX 5 now supports IA64 processor
8471 lt_prog_compiler_static='-Bstatic'
8472 fi
8473 ;;
8474
8475 amigaos*)
8476 case $host_cpu in
8477 powerpc)
8478 # see comment about AmigaOS4 .so support
8479 lt_prog_compiler_pic='-fPIC'
8480 ;;
8481 m68k)
8482 # FIXME: we need at least 68020 code to build shared libraries, but
8483 # adding the `-m68020' flag to GCC prevents building anything better,
8484 # like `-m68040'.
8485 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8486 ;;
8487 esac
8488 ;;
8489
8490 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8491 # PIC is the default for these OSes.
8492 ;;
8493
8494 mingw* | cygwin* | pw32* | os2* | cegcc*)
8495 # This hack is so that the source file can tell whether it is being
8496 # built for inclusion in a dll (and should export symbols for example).
8497 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8498 # (--disable-auto-import) libraries
8499 lt_prog_compiler_pic='-DDLL_EXPORT'
8500 ;;
8501
8502 darwin* | rhapsody*)
8503 # PIC is the default on this platform
8504 # Common symbols not allowed in MH_DYLIB files
8505 lt_prog_compiler_pic='-fno-common'
8506 ;;
8507
8508 hpux*)
8509 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8510 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8511 # sets the default TLS model and affects inlining.
8512 case $host_cpu in
8513 hppa*64*)
8514 # +Z the default
8515 ;;
8516 *)
8517 lt_prog_compiler_pic='-fPIC'
8518 ;;
8519 esac
8520 ;;
8521
8522 interix[3-9]*)
8523 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8524 # Instead, we relocate shared libraries at runtime.
8525 ;;
8526
8527 msdosdjgpp*)
8528 # Just because we use GCC doesn't mean we suddenly get shared libraries
8529 # on systems that don't support them.
8530 lt_prog_compiler_can_build_shared=no
8531 enable_shared=no
8532 ;;
8533
8534 *nto* | *qnx*)
8535 # QNX uses GNU C++, but need to define -shared option too, otherwise
8536 # it will coredump.
8537 lt_prog_compiler_pic='-fPIC -shared'
8538 ;;
8539
8540 sysv4*MP*)
8541 if test -d /usr/nec; then
8542 lt_prog_compiler_pic=-Kconform_pic
8543 fi
8544 ;;
8545
8546 *)
8547 lt_prog_compiler_pic='-fPIC'
8548 ;;
8549 esac
8550 else
8551 # PORTME Check for flag to pass linker flags through the system compiler.
8552 case $host_os in
8553 aix*)
8554 lt_prog_compiler_wl='-Wl,'
8555 if test "$host_cpu" = ia64; then
8556 # AIX 5 now supports IA64 processor
8557 lt_prog_compiler_static='-Bstatic'
8558 else
8559 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8560 fi
8561 ;;
8562
8563 mingw* | cygwin* | pw32* | os2* | cegcc*)
8564 # This hack is so that the source file can tell whether it is being
8565 # built for inclusion in a dll (and should export symbols for example).
8566 lt_prog_compiler_pic='-DDLL_EXPORT'
8567 ;;
8568
8569 hpux9* | hpux10* | hpux11*)
8570 lt_prog_compiler_wl='-Wl,'
8571 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8572 # not for PA HP-UX.
8573 case $host_cpu in
8574 hppa*64*|ia64*)
8575 # +Z the default
8576 ;;
8577 *)
8578 lt_prog_compiler_pic='+Z'
8579 ;;
8580 esac
8581 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8582 lt_prog_compiler_static='${wl}-a ${wl}archive'
8583 ;;
8584
8585 irix5* | irix6* | nonstopux*)
8586 lt_prog_compiler_wl='-Wl,'
8587 # PIC (with -KPIC) is the default.
8588 lt_prog_compiler_static='-non_shared'
8589 ;;
8590
8591 linux* | k*bsd*-gnu)
8592 case $cc_basename in
8593 # old Intel for x86_64 which still supported -KPIC.
8594 ecc*)
8595 lt_prog_compiler_wl='-Wl,'
8596 lt_prog_compiler_pic='-KPIC'
8597 lt_prog_compiler_static='-static'
8598 ;;
8599 # icc used to be incompatible with GCC.
8600 # ICC 10 doesn't accept -KPIC any more.
8601 icc* | ifort*)
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_pic='-fPIC'
8604 lt_prog_compiler_static='-static'
8605 ;;
8606 # Lahey Fortran 8.1.
8607 lf95*)
8608 lt_prog_compiler_wl='-Wl,'
8609 lt_prog_compiler_pic='--shared'
8610 lt_prog_compiler_static='--static'
8611 ;;
8612 pgcc* | pgf77* | pgf90* | pgf95*)
8613 # Portland Group compilers (*not* the Pentium gcc compiler,
8614 # which looks to be a dead project)
8615 lt_prog_compiler_wl='-Wl,'
8616 lt_prog_compiler_pic='-fpic'
8617 lt_prog_compiler_static='-Bstatic'
8618 ;;
8619 ccc*)
8620 lt_prog_compiler_wl='-Wl,'
8621 # All Alpha code is PIC.
8622 lt_prog_compiler_static='-non_shared'
8623 ;;
8624 xl*)
8625 # IBM XL C 8.0/Fortran 10.1 on PPC
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-qpic'
8628 lt_prog_compiler_static='-qstaticlink'
8629 ;;
8630 *)
8631 case `$CC -V 2>&1 | sed 5q` in
8632 *Sun\ C*)
8633 # Sun C 5.9
8634 lt_prog_compiler_pic='-KPIC'
8635 lt_prog_compiler_static='-Bstatic'
8636 lt_prog_compiler_wl='-Wl,'
8637 ;;
8638 *Sun\ F*)
8639 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-Bstatic'
8642 lt_prog_compiler_wl=''
8643 ;;
8644 esac
8645 ;;
8646 esac
8647 ;;
8648
8649 newsos6)
8650 lt_prog_compiler_pic='-KPIC'
8651 lt_prog_compiler_static='-Bstatic'
8652 ;;
8653
8654 *nto* | *qnx*)
8655 # QNX uses GNU C++, but need to define -shared option too, otherwise
8656 # it will coredump.
8657 lt_prog_compiler_pic='-fPIC -shared'
8658 ;;
8659
8660 osf3* | osf4* | osf5*)
8661 lt_prog_compiler_wl='-Wl,'
8662 # All OSF/1 code is PIC.
8663 lt_prog_compiler_static='-non_shared'
8664 ;;
8665
8666 rdos*)
8667 lt_prog_compiler_static='-non_shared'
8668 ;;
8669
8670 solaris*)
8671 lt_prog_compiler_pic='-KPIC'
8672 lt_prog_compiler_static='-Bstatic'
8673 case $cc_basename in
8674 f77* | f90* | f95*)
8675 lt_prog_compiler_wl='-Qoption ld ';;
8676 *)
8677 lt_prog_compiler_wl='-Wl,';;
8678 esac
8679 ;;
8680
8681 sunos4*)
8682 lt_prog_compiler_wl='-Qoption ld '
8683 lt_prog_compiler_pic='-PIC'
8684 lt_prog_compiler_static='-Bstatic'
8685 ;;
8686
8687 sysv4 | sysv4.2uw2* | sysv4.3*)
8688 lt_prog_compiler_wl='-Wl,'
8689 lt_prog_compiler_pic='-KPIC'
8690 lt_prog_compiler_static='-Bstatic'
8691 ;;
8692
8693 sysv4*MP*)
8694 if test -d /usr/nec ;then
8695 lt_prog_compiler_pic='-Kconform_pic'
8696 lt_prog_compiler_static='-Bstatic'
8697 fi
8698 ;;
8699
8700 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8701 lt_prog_compiler_wl='-Wl,'
8702 lt_prog_compiler_pic='-KPIC'
8703 lt_prog_compiler_static='-Bstatic'
8704 ;;
8705
8706 unicos*)
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_can_build_shared=no
8709 ;;
8710
8711 uts4*)
8712 lt_prog_compiler_pic='-pic'
8713 lt_prog_compiler_static='-Bstatic'
8714 ;;
8715
8716 *)
8717 lt_prog_compiler_can_build_shared=no
8718 ;;
8719 esac
8720 fi
8721
8722 case $host_os in
8723 # For platforms which do not support PIC, -DPIC is meaningless:
8724 *djgpp*)
8725 lt_prog_compiler_pic=
8726 ;;
8727 *)
8728 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8729 ;;
8730 esac
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8732 $as_echo "$lt_prog_compiler_pic" >&6; }
8733
8734
8735
8736
8737
8738
8739 #
8740 # Check to make sure the PIC flag actually works.
8741 #
8742 if test -n "$lt_prog_compiler_pic"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8744 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8745 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 lt_cv_prog_compiler_pic_works=no
8749 ac_outfile=conftest.$ac_objext
8750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8751 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8752 # Insert the option either (1) after the last *FLAGS variable, or
8753 # (2) before a word containing "conftest.", or (3) at the end.
8754 # Note that $ac_compile itself does not contain backslashes and begins
8755 # with a dollar sign (not a hyphen), so the echo should work correctly.
8756 # The option is referenced via a variable to avoid confusing sed.
8757 lt_compile=`echo "$ac_compile" | $SED \
8758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8760 -e 's:$: $lt_compiler_flag:'`
8761 (eval echo "\"\$as_me:8761: $lt_compile\"" >&5)
8762 (eval "$lt_compile" 2>conftest.err)
8763 ac_status=$?
8764 cat conftest.err >&5
8765 echo "$as_me:8765: \$? = $ac_status" >&5
8766 if (exit $ac_status) && test -s "$ac_outfile"; then
8767 # The compiler can only warn and ignore the option if not recognized
8768 # So say no if there are warnings other than the usual output.
8769 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8772 lt_cv_prog_compiler_pic_works=yes
8773 fi
8774 fi
8775 $RM conftest*
8776
8777 fi
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8779 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8780
8781 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8782 case $lt_prog_compiler_pic in
8783 "" | " "*) ;;
8784 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8785 esac
8786 else
8787 lt_prog_compiler_pic=
8788 lt_prog_compiler_can_build_shared=no
8789 fi
8790
8791 fi
8792
8793
8794
8795
8796
8797
8798 #
8799 # Check to make sure the static flag actually works.
8800 #
8801 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8803 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8804 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 lt_cv_prog_compiler_static_works=no
8808 save_LDFLAGS="$LDFLAGS"
8809 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8810 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8811 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8812 # The linker can only warn and ignore the option if not recognized
8813 # So say no if there are warnings
8814 if test -s conftest.err; then
8815 # Append any errors to the config.log.
8816 cat conftest.err 1>&5
8817 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8819 if diff conftest.exp conftest.er2 >/dev/null; then
8820 lt_cv_prog_compiler_static_works=yes
8821 fi
8822 else
8823 lt_cv_prog_compiler_static_works=yes
8824 fi
8825 fi
8826 $RM -r conftest*
8827 LDFLAGS="$save_LDFLAGS"
8828
8829 fi
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8831 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8832
8833 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8834 :
8835 else
8836 lt_prog_compiler_static=
8837 fi
8838
8839
8840
8841
8842
8843
8844
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8846 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8847 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 lt_cv_prog_compiler_c_o=no
8851 $RM -r conftest 2>/dev/null
8852 mkdir conftest
8853 cd conftest
8854 mkdir out
8855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8856
8857 lt_compiler_flag="-o out/conftest2.$ac_objext"
8858 # Insert the option either (1) after the last *FLAGS variable, or
8859 # (2) before a word containing "conftest.", or (3) at the end.
8860 # Note that $ac_compile itself does not contain backslashes and begins
8861 # with a dollar sign (not a hyphen), so the echo should work correctly.
8862 lt_compile=`echo "$ac_compile" | $SED \
8863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8865 -e 's:$: $lt_compiler_flag:'`
8866 (eval echo "\"\$as_me:8866: $lt_compile\"" >&5)
8867 (eval "$lt_compile" 2>out/conftest.err)
8868 ac_status=$?
8869 cat out/conftest.err >&5
8870 echo "$as_me:8870: \$? = $ac_status" >&5
8871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8872 then
8873 # The compiler can only warn and ignore the option if not recognized
8874 # So say no if there are warnings
8875 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8878 lt_cv_prog_compiler_c_o=yes
8879 fi
8880 fi
8881 chmod u+w . 2>&5
8882 $RM conftest*
8883 # SGI C++ compiler will create directory out/ii_files/ for
8884 # template instantiation
8885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8886 $RM out/* && rmdir out
8887 cd ..
8888 $RM -r conftest
8889 $RM conftest*
8890
8891 fi
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8893 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8894
8895
8896
8897
8898
8899
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8902 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8905 lt_cv_prog_compiler_c_o=no
8906 $RM -r conftest 2>/dev/null
8907 mkdir conftest
8908 cd conftest
8909 mkdir out
8910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8911
8912 lt_compiler_flag="-o out/conftest2.$ac_objext"
8913 # Insert the option either (1) after the last *FLAGS variable, or
8914 # (2) before a word containing "conftest.", or (3) at the end.
8915 # Note that $ac_compile itself does not contain backslashes and begins
8916 # with a dollar sign (not a hyphen), so the echo should work correctly.
8917 lt_compile=`echo "$ac_compile" | $SED \
8918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8920 -e 's:$: $lt_compiler_flag:'`
8921 (eval echo "\"\$as_me:8921: $lt_compile\"" >&5)
8922 (eval "$lt_compile" 2>out/conftest.err)
8923 ac_status=$?
8924 cat out/conftest.err >&5
8925 echo "$as_me:8925: \$? = $ac_status" >&5
8926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8927 then
8928 # The compiler can only warn and ignore the option if not recognized
8929 # So say no if there are warnings
8930 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8933 lt_cv_prog_compiler_c_o=yes
8934 fi
8935 fi
8936 chmod u+w . 2>&5
8937 $RM conftest*
8938 # SGI C++ compiler will create directory out/ii_files/ for
8939 # template instantiation
8940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8941 $RM out/* && rmdir out
8942 cd ..
8943 $RM -r conftest
8944 $RM conftest*
8945
8946 fi
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8948 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8949
8950
8951
8952
8953 hard_links="nottested"
8954 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8955 # do not overwrite the value of need_locks provided by the user
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8957 $as_echo_n "checking if we can lock with hard links... " >&6; }
8958 hard_links=yes
8959 $RM conftest*
8960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8961 touch conftest.a
8962 ln conftest.a conftest.b 2>&5 || hard_links=no
8963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8965 $as_echo "$hard_links" >&6; }
8966 if test "$hard_links" = no; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8968 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8969 need_locks=warn
8970 fi
8971 else
8972 need_locks=no
8973 fi
8974
8975
8976
8977
8978
8979
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8981 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8982
8983 runpath_var=
8984 allow_undefined_flag=
8985 always_export_symbols=no
8986 archive_cmds=
8987 archive_expsym_cmds=
8988 compiler_needs_object=no
8989 enable_shared_with_static_runtimes=no
8990 export_dynamic_flag_spec=
8991 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8992 hardcode_automatic=no
8993 hardcode_direct=no
8994 hardcode_direct_absolute=no
8995 hardcode_libdir_flag_spec=
8996 hardcode_libdir_flag_spec_ld=
8997 hardcode_libdir_separator=
8998 hardcode_minus_L=no
8999 hardcode_shlibpath_var=unsupported
9000 inherit_rpath=no
9001 link_all_deplibs=unknown
9002 module_cmds=
9003 module_expsym_cmds=
9004 old_archive_from_new_cmds=
9005 old_archive_from_expsyms_cmds=
9006 thread_safe_flag_spec=
9007 whole_archive_flag_spec=
9008 # include_expsyms should be a list of space-separated symbols to be *always*
9009 # included in the symbol list
9010 include_expsyms=
9011 # exclude_expsyms can be an extended regexp of symbols to exclude
9012 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9013 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9014 # as well as any symbol that contains `d'.
9015 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9016 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9017 # platforms (ab)use it in PIC code, but their linkers get confused if
9018 # the symbol is explicitly referenced. Since portable code cannot
9019 # rely on this symbol name, it's probably fine to never include it in
9020 # preloaded symbol tables.
9021 # Exclude shared library initialization/finalization symbols.
9022 extract_expsyms_cmds=
9023
9024 case $host_os in
9025 cygwin* | mingw* | pw32* | cegcc*)
9026 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9027 # When not using gcc, we currently assume that we are using
9028 # Microsoft Visual C++.
9029 if test "$GCC" != yes; then
9030 with_gnu_ld=no
9031 fi
9032 ;;
9033 interix*)
9034 # we just hope/assume this is gcc and not c89 (= MSVC++)
9035 with_gnu_ld=yes
9036 ;;
9037 openbsd*)
9038 with_gnu_ld=no
9039 ;;
9040 esac
9041
9042 ld_shlibs=yes
9043 if test "$with_gnu_ld" = yes; then
9044 # If archive_cmds runs LD, not CC, wlarc should be empty
9045 wlarc='${wl}'
9046
9047 # Set some defaults for GNU ld with shared library support. These
9048 # are reset later if shared libraries are not supported. Putting them
9049 # here allows them to be overridden if necessary.
9050 runpath_var=LD_RUN_PATH
9051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9052 export_dynamic_flag_spec='${wl}--export-dynamic'
9053 # ancient GNU ld didn't support --whole-archive et. al.
9054 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9055 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9056 else
9057 whole_archive_flag_spec=
9058 fi
9059 supports_anon_versioning=no
9060 case `$LD -v 2>&1` in
9061 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9064 *\ 2.11.*) ;; # other 2.11 versions
9065 *) supports_anon_versioning=yes ;;
9066 esac
9067
9068 # See if GNU ld supports shared libraries.
9069 case $host_os in
9070 aix[3-9]*)
9071 # On AIX/PPC, the GNU linker is very broken
9072 if test "$host_cpu" != ia64; then
9073 ld_shlibs=no
9074 cat <<_LT_EOF 1>&2
9075
9076 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9077 *** to be unable to reliably create shared libraries on AIX.
9078 *** Therefore, libtool is disabling shared libraries support. If you
9079 *** really care for shared libraries, you may want to modify your PATH
9080 *** so that a non-GNU linker is found, and then restart.
9081
9082 _LT_EOF
9083 fi
9084 ;;
9085
9086 amigaos*)
9087 case $host_cpu in
9088 powerpc)
9089 # see comment about AmigaOS4 .so support
9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091 archive_expsym_cmds=''
9092 ;;
9093 m68k)
9094 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)'
9095 hardcode_libdir_flag_spec='-L$libdir'
9096 hardcode_minus_L=yes
9097 ;;
9098 esac
9099 ;;
9100
9101 beos*)
9102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9103 allow_undefined_flag=unsupported
9104 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9105 # support --undefined. This deserves some investigation. FIXME
9106 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107 else
9108 ld_shlibs=no
9109 fi
9110 ;;
9111
9112 cygwin* | mingw* | pw32* | cegcc*)
9113 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9114 # as there is no search path for DLLs.
9115 hardcode_libdir_flag_spec='-L$libdir'
9116 allow_undefined_flag=unsupported
9117 always_export_symbols=no
9118 enable_shared_with_static_runtimes=yes
9119 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9120
9121 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9123 # If the export-symbols file already is a .def file (1st line
9124 # is EXPORTS), use it as is; otherwise, prepend...
9125 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9126 cp $export_symbols $output_objdir/$soname.def;
9127 else
9128 echo EXPORTS > $output_objdir/$soname.def;
9129 cat $export_symbols >> $output_objdir/$soname.def;
9130 fi~
9131 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9132 else
9133 ld_shlibs=no
9134 fi
9135 ;;
9136
9137 interix[3-9]*)
9138 hardcode_direct=no
9139 hardcode_shlibpath_var=no
9140 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9141 export_dynamic_flag_spec='${wl}-E'
9142 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9143 # Instead, shared libraries are loaded at an image base (0x10000000 by
9144 # default) and relocated if they conflict, which is a slow very memory
9145 # consuming and fragmenting process. To avoid this, we pick a random,
9146 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9147 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9149 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'
9150 ;;
9151
9152 gnu* | linux* | tpf* | k*bsd*-gnu)
9153 tmp_diet=no
9154 if test "$host_os" = linux-dietlibc; then
9155 case $cc_basename in
9156 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9157 esac
9158 fi
9159 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9160 && test "$tmp_diet" = no
9161 then
9162 tmp_addflag=
9163 tmp_sharedflag='-shared'
9164 case $cc_basename,$host_cpu in
9165 pgcc*) # Portland Group C compiler
9166 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9167 tmp_addflag=' $pic_flag'
9168 ;;
9169 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9170 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9171 tmp_addflag=' $pic_flag -Mnomain' ;;
9172 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9173 tmp_addflag=' -i_dynamic' ;;
9174 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9175 tmp_addflag=' -i_dynamic -nofor_main' ;;
9176 ifc* | ifort*) # Intel Fortran compiler
9177 tmp_addflag=' -nofor_main' ;;
9178 lf95*) # Lahey Fortran 8.1
9179 whole_archive_flag_spec=
9180 tmp_sharedflag='--shared' ;;
9181 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9182 tmp_sharedflag='-qmkshrobj'
9183 tmp_addflag= ;;
9184 esac
9185 case `$CC -V 2>&1 | sed 5q` in
9186 *Sun\ C*) # Sun C 5.9
9187 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9188 compiler_needs_object=yes
9189 tmp_sharedflag='-G' ;;
9190 *Sun\ F*) # Sun Fortran 8.3
9191 tmp_sharedflag='-G' ;;
9192 esac
9193 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9194
9195 if test "x$supports_anon_versioning" = xyes; then
9196 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9198 echo "local: *; };" >> $output_objdir/$libname.ver~
9199 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9200 fi
9201
9202 case $cc_basename in
9203 xlf*)
9204 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9205 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9206 hardcode_libdir_flag_spec=
9207 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9208 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9209 if test "x$supports_anon_versioning" = xyes; then
9210 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9212 echo "local: *; };" >> $output_objdir/$libname.ver~
9213 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9214 fi
9215 ;;
9216 esac
9217 else
9218 ld_shlibs=no
9219 fi
9220 ;;
9221
9222 netbsd*)
9223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9224 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9225 wlarc=
9226 else
9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9229 fi
9230 ;;
9231
9232 solaris*)
9233 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9234 ld_shlibs=no
9235 cat <<_LT_EOF 1>&2
9236
9237 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9238 *** create shared libraries on Solaris systems. Therefore, libtool
9239 *** is disabling shared libraries support. We urge you to upgrade GNU
9240 *** binutils to release 2.9.1 or newer. Another option is to modify
9241 *** your PATH or compiler configuration so that the native linker is
9242 *** used, and then restart.
9243
9244 _LT_EOF
9245 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9248 else
9249 ld_shlibs=no
9250 fi
9251 ;;
9252
9253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9254 case `$LD -v 2>&1` in
9255 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9256 ld_shlibs=no
9257 cat <<_LT_EOF 1>&2
9258
9259 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9260 *** reliably create shared libraries on SCO systems. Therefore, libtool
9261 *** is disabling shared libraries support. We urge you to upgrade GNU
9262 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9263 *** your PATH or compiler configuration so that the native linker is
9264 *** used, and then restart.
9265
9266 _LT_EOF
9267 ;;
9268 *)
9269 # For security reasons, it is highly recommended that you always
9270 # use absolute paths for naming shared libraries, and exclude the
9271 # DT_RUNPATH tag from executables and libraries. But doing so
9272 # requires that you compile everything twice, which is a pain.
9273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9277 else
9278 ld_shlibs=no
9279 fi
9280 ;;
9281 esac
9282 ;;
9283
9284 sunos4*)
9285 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9286 wlarc=
9287 hardcode_direct=yes
9288 hardcode_shlibpath_var=no
9289 ;;
9290
9291 *)
9292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9295 else
9296 ld_shlibs=no
9297 fi
9298 ;;
9299 esac
9300
9301 if test "$ld_shlibs" = no; then
9302 runpath_var=
9303 hardcode_libdir_flag_spec=
9304 export_dynamic_flag_spec=
9305 whole_archive_flag_spec=
9306 fi
9307 else
9308 # PORTME fill in a description of your system's linker (not GNU ld)
9309 case $host_os in
9310 aix3*)
9311 allow_undefined_flag=unsupported
9312 always_export_symbols=yes
9313 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'
9314 # Note: this linker hardcodes the directories in LIBPATH if there
9315 # are no directories specified by -L.
9316 hardcode_minus_L=yes
9317 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9318 # Neither direct hardcoding nor static linking is supported with a
9319 # broken collect2.
9320 hardcode_direct=unsupported
9321 fi
9322 ;;
9323
9324 aix[4-9]*)
9325 if test "$host_cpu" = ia64; then
9326 # On IA64, the linker does run time linking by default, so we don't
9327 # have to do anything special.
9328 aix_use_runtimelinking=no
9329 exp_sym_flag='-Bexport'
9330 no_entry_flag=""
9331 else
9332 # If we're using GNU nm, then we don't want the "-C" option.
9333 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9334 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9335 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9336 else
9337 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'
9338 fi
9339 aix_use_runtimelinking=no
9340
9341 # Test if we are trying to use run time linking or normal
9342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9343 # need to do runtime linking.
9344 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9345 for ld_flag in $LDFLAGS; do
9346 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9347 aix_use_runtimelinking=yes
9348 break
9349 fi
9350 done
9351 ;;
9352 esac
9353
9354 exp_sym_flag='-bexport'
9355 no_entry_flag='-bnoentry'
9356 fi
9357
9358 # When large executables or shared objects are built, AIX ld can
9359 # have problems creating the table of contents. If linking a library
9360 # or program results in "error TOC overflow" add -mminimal-toc to
9361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9363
9364 archive_cmds=''
9365 hardcode_direct=yes
9366 hardcode_direct_absolute=yes
9367 hardcode_libdir_separator=':'
9368 link_all_deplibs=yes
9369 file_list_spec='${wl}-f,'
9370
9371 if test "$GCC" = yes; then
9372 case $host_os in aix4.[012]|aix4.[012].*)
9373 # We only want to do this on AIX 4.2 and lower, the check
9374 # below for broken collect2 doesn't work under 4.3+
9375 collect2name=`${CC} -print-prog-name=collect2`
9376 if test -f "$collect2name" &&
9377 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9378 then
9379 # We have reworked collect2
9380 :
9381 else
9382 # We have old collect2
9383 hardcode_direct=unsupported
9384 # It fails to find uninstalled libraries when the uninstalled
9385 # path is not listed in the libpath. Setting hardcode_minus_L
9386 # to unsupported forces relinking
9387 hardcode_minus_L=yes
9388 hardcode_libdir_flag_spec='-L$libdir'
9389 hardcode_libdir_separator=
9390 fi
9391 ;;
9392 esac
9393 shared_flag='-shared'
9394 if test "$aix_use_runtimelinking" = yes; then
9395 shared_flag="$shared_flag "'${wl}-G'
9396 fi
9397 else
9398 # not using gcc
9399 if test "$host_cpu" = ia64; then
9400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9401 # chokes on -Wl,-G. The following line is correct:
9402 shared_flag='-G'
9403 else
9404 if test "$aix_use_runtimelinking" = yes; then
9405 shared_flag='${wl}-G'
9406 else
9407 shared_flag='${wl}-bM:SRE'
9408 fi
9409 fi
9410 fi
9411
9412 export_dynamic_flag_spec='${wl}-bexpall'
9413 # It seems that -bexpall does not export symbols beginning with
9414 # underscore (_), so it is better to generate a list of symbols to export.
9415 always_export_symbols=yes
9416 if test "$aix_use_runtimelinking" = yes; then
9417 # Warning - without using the other runtime loading flags (-brtl),
9418 # -berok will link without error, but may produce a broken library.
9419 allow_undefined_flag='-berok'
9420 # Determine the default libpath from the value encoded in an
9421 # empty executable.
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9424
9425 int
9426 main ()
9427 {
9428
9429 ;
9430 return 0;
9431 }
9432 _ACEOF
9433 if ac_fn_c_try_link "$LINENO"; then :
9434
9435 lt_aix_libpath_sed='
9436 /Import File Strings/,/^$/ {
9437 /^0/ {
9438 s/^0 *\(.*\)$/\1/
9439 p
9440 }
9441 }'
9442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9443 # Check for a 64-bit object if we didn't find anything.
9444 if test -z "$aix_libpath"; then
9445 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9446 fi
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9450 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9451
9452 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9453 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9454 else
9455 if test "$host_cpu" = ia64; then
9456 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9457 allow_undefined_flag="-z nodefs"
9458 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"
9459 else
9460 # Determine the default libpath from the value encoded in an
9461 # empty executable.
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464
9465 int
9466 main ()
9467 {
9468
9469 ;
9470 return 0;
9471 }
9472 _ACEOF
9473 if ac_fn_c_try_link "$LINENO"; then :
9474
9475 lt_aix_libpath_sed='
9476 /Import File Strings/,/^$/ {
9477 /^0/ {
9478 s/^0 *\(.*\)$/\1/
9479 p
9480 }
9481 }'
9482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9483 # Check for a 64-bit object if we didn't find anything.
9484 if test -z "$aix_libpath"; then
9485 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9486 fi
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9491
9492 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9493 # Warning - without using the other run time loading flags,
9494 # -berok will link without error, but may produce a broken library.
9495 no_undefined_flag=' ${wl}-bernotok'
9496 allow_undefined_flag=' ${wl}-berok'
9497 # Exported symbols can be pulled into shared objects from archives
9498 whole_archive_flag_spec='$convenience'
9499 archive_cmds_need_lc=yes
9500 # This is similar to how AIX traditionally builds its shared libraries.
9501 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'
9502 fi
9503 fi
9504 ;;
9505
9506 amigaos*)
9507 case $host_cpu in
9508 powerpc)
9509 # see comment about AmigaOS4 .so support
9510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9511 archive_expsym_cmds=''
9512 ;;
9513 m68k)
9514 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)'
9515 hardcode_libdir_flag_spec='-L$libdir'
9516 hardcode_minus_L=yes
9517 ;;
9518 esac
9519 ;;
9520
9521 bsdi[45]*)
9522 export_dynamic_flag_spec=-rdynamic
9523 ;;
9524
9525 cygwin* | mingw* | pw32* | cegcc*)
9526 # When not using gcc, we currently assume that we are using
9527 # Microsoft Visual C++.
9528 # hardcode_libdir_flag_spec is actually meaningless, as there is
9529 # no search path for DLLs.
9530 hardcode_libdir_flag_spec=' '
9531 allow_undefined_flag=unsupported
9532 # Tell ltmain to make .lib files, not .a files.
9533 libext=lib
9534 # Tell ltmain to make .dll files, not .so files.
9535 shrext_cmds=".dll"
9536 # FIXME: Setting linknames here is a bad hack.
9537 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9538 # The linker will automatically build a .lib file if we build a DLL.
9539 old_archive_from_new_cmds='true'
9540 # FIXME: Should let the user specify the lib program.
9541 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9542 fix_srcfile_path='`cygpath -w "$srcfile"`'
9543 enable_shared_with_static_runtimes=yes
9544 ;;
9545
9546 darwin* | rhapsody*)
9547
9548
9549 archive_cmds_need_lc=no
9550 hardcode_direct=no
9551 hardcode_automatic=yes
9552 hardcode_shlibpath_var=unsupported
9553 whole_archive_flag_spec=''
9554 link_all_deplibs=yes
9555 allow_undefined_flag="$_lt_dar_allow_undefined"
9556 case $cc_basename in
9557 ifort*) _lt_dar_can_shared=yes ;;
9558 *) _lt_dar_can_shared=$GCC ;;
9559 esac
9560 if test "$_lt_dar_can_shared" = "yes"; then
9561 output_verbose_link_cmd=echo
9562 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9563 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9564 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}"
9565 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}"
9566
9567 else
9568 ld_shlibs=no
9569 fi
9570
9571 ;;
9572
9573 dgux*)
9574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575 hardcode_libdir_flag_spec='-L$libdir'
9576 hardcode_shlibpath_var=no
9577 ;;
9578
9579 freebsd1*)
9580 ld_shlibs=no
9581 ;;
9582
9583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9584 # support. Future versions do this automatically, but an explicit c++rt0.o
9585 # does not break anything, and helps significantly (at the cost of a little
9586 # extra space).
9587 freebsd2.2*)
9588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9589 hardcode_libdir_flag_spec='-R$libdir'
9590 hardcode_direct=yes
9591 hardcode_shlibpath_var=no
9592 ;;
9593
9594 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9595 freebsd2*)
9596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9597 hardcode_direct=yes
9598 hardcode_minus_L=yes
9599 hardcode_shlibpath_var=no
9600 ;;
9601
9602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9603 freebsd* | dragonfly*)
9604 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9605 hardcode_libdir_flag_spec='-R$libdir'
9606 hardcode_direct=yes
9607 hardcode_shlibpath_var=no
9608 ;;
9609
9610 hpux9*)
9611 if test "$GCC" = yes; then
9612 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'
9613 else
9614 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'
9615 fi
9616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9617 hardcode_libdir_separator=:
9618 hardcode_direct=yes
9619
9620 # hardcode_minus_L: Not really in the search PATH,
9621 # but as the default location of the library.
9622 hardcode_minus_L=yes
9623 export_dynamic_flag_spec='${wl}-E'
9624 ;;
9625
9626 hpux10*)
9627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9628 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9629 else
9630 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9631 fi
9632 if test "$with_gnu_ld" = no; then
9633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9634 hardcode_libdir_flag_spec_ld='+b $libdir'
9635 hardcode_libdir_separator=:
9636 hardcode_direct=yes
9637 hardcode_direct_absolute=yes
9638 export_dynamic_flag_spec='${wl}-E'
9639 # hardcode_minus_L: Not really in the search PATH,
9640 # but as the default location of the library.
9641 hardcode_minus_L=yes
9642 fi
9643 ;;
9644
9645 hpux11*)
9646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9647 case $host_cpu in
9648 hppa*64*)
9649 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9650 ;;
9651 ia64*)
9652 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9653 ;;
9654 *)
9655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9656 ;;
9657 esac
9658 else
9659 case $host_cpu in
9660 hppa*64*)
9661 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9662 ;;
9663 ia64*)
9664 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9665 ;;
9666 *)
9667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9668 ;;
9669 esac
9670 fi
9671 if test "$with_gnu_ld" = no; then
9672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9673 hardcode_libdir_separator=:
9674
9675 case $host_cpu in
9676 hppa*64*|ia64*)
9677 hardcode_direct=no
9678 hardcode_shlibpath_var=no
9679 ;;
9680 *)
9681 hardcode_direct=yes
9682 hardcode_direct_absolute=yes
9683 export_dynamic_flag_spec='${wl}-E'
9684
9685 # hardcode_minus_L: Not really in the search PATH,
9686 # but as the default location of the library.
9687 hardcode_minus_L=yes
9688 ;;
9689 esac
9690 fi
9691 ;;
9692
9693 irix5* | irix6* | nonstopux*)
9694 if test "$GCC" = yes; then
9695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9696 # Try to use the -exported_symbol ld option, if it does not
9697 # work, assume that -exports_file does not work either and
9698 # implicitly export all symbols.
9699 save_LDFLAGS="$LDFLAGS"
9700 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9703 int foo(void) {}
9704 _ACEOF
9705 if ac_fn_c_try_link "$LINENO"; then :
9706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9707
9708 fi
9709 rm -f core conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9711 LDFLAGS="$save_LDFLAGS"
9712 else
9713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9715 fi
9716 archive_cmds_need_lc='no'
9717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9718 hardcode_libdir_separator=:
9719 inherit_rpath=yes
9720 link_all_deplibs=yes
9721 ;;
9722
9723 netbsd*)
9724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9726 else
9727 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9728 fi
9729 hardcode_libdir_flag_spec='-R$libdir'
9730 hardcode_direct=yes
9731 hardcode_shlibpath_var=no
9732 ;;
9733
9734 newsos6)
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_direct=yes
9737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9738 hardcode_libdir_separator=:
9739 hardcode_shlibpath_var=no
9740 ;;
9741
9742 *nto* | *qnx*)
9743 ;;
9744
9745 openbsd*)
9746 if test -f /usr/libexec/ld.so; then
9747 hardcode_direct=yes
9748 hardcode_shlibpath_var=no
9749 hardcode_direct_absolute=yes
9750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9751 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9752 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9754 export_dynamic_flag_spec='${wl}-E'
9755 else
9756 case $host_os in
9757 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_libdir_flag_spec='-R$libdir'
9760 ;;
9761 *)
9762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9764 ;;
9765 esac
9766 fi
9767 else
9768 ld_shlibs=no
9769 fi
9770 ;;
9771
9772 os2*)
9773 hardcode_libdir_flag_spec='-L$libdir'
9774 hardcode_minus_L=yes
9775 allow_undefined_flag=unsupported
9776 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'
9777 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9778 ;;
9779
9780 osf3*)
9781 if test "$GCC" = yes; then
9782 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9783 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9784 else
9785 allow_undefined_flag=' -expect_unresolved \*'
9786 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9787 fi
9788 archive_cmds_need_lc='no'
9789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9790 hardcode_libdir_separator=:
9791 ;;
9792
9793 osf4* | osf5*) # as osf3* with the addition of -msym flag
9794 if test "$GCC" = yes; then
9795 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9796 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9798 else
9799 allow_undefined_flag=' -expect_unresolved \*'
9800 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9801 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~
9802 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9803
9804 # Both c and cxx compiler support -rpath directly
9805 hardcode_libdir_flag_spec='-rpath $libdir'
9806 fi
9807 archive_cmds_need_lc='no'
9808 hardcode_libdir_separator=:
9809 ;;
9810
9811 solaris*)
9812 no_undefined_flag=' -z defs'
9813 if test "$GCC" = yes; then
9814 wlarc='${wl}'
9815 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9817 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9818 else
9819 case `$CC -V 2>&1` in
9820 *"Compilers 5.0"*)
9821 wlarc=''
9822 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9825 ;;
9826 *)
9827 wlarc='${wl}'
9828 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9830 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9831 ;;
9832 esac
9833 fi
9834 hardcode_libdir_flag_spec='-R$libdir'
9835 hardcode_shlibpath_var=no
9836 case $host_os in
9837 solaris2.[0-5] | solaris2.[0-5].*) ;;
9838 *)
9839 # The compiler driver will combine and reorder linker options,
9840 # but understands `-z linker_flag'. GCC discards it without `$wl',
9841 # but is careful enough not to reorder.
9842 # Supported since Solaris 2.6 (maybe 2.5.1?)
9843 if test "$GCC" = yes; then
9844 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9845 else
9846 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9847 fi
9848 ;;
9849 esac
9850 link_all_deplibs=yes
9851 ;;
9852
9853 sunos4*)
9854 if test "x$host_vendor" = xsequent; then
9855 # Use $CC to link under sequent, because it throws in some extra .o
9856 # files that make .init and .fini sections work.
9857 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9858 else
9859 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9860 fi
9861 hardcode_libdir_flag_spec='-L$libdir'
9862 hardcode_direct=yes
9863 hardcode_minus_L=yes
9864 hardcode_shlibpath_var=no
9865 ;;
9866
9867 sysv4)
9868 case $host_vendor in
9869 sni)
9870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9871 hardcode_direct=yes # is this really true???
9872 ;;
9873 siemens)
9874 ## LD is ld it makes a PLAMLIB
9875 ## CC just makes a GrossModule.
9876 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9877 reload_cmds='$CC -r -o $output$reload_objs'
9878 hardcode_direct=no
9879 ;;
9880 motorola)
9881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9882 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9883 ;;
9884 esac
9885 runpath_var='LD_RUN_PATH'
9886 hardcode_shlibpath_var=no
9887 ;;
9888
9889 sysv4.3*)
9890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891 hardcode_shlibpath_var=no
9892 export_dynamic_flag_spec='-Bexport'
9893 ;;
9894
9895 sysv4*MP*)
9896 if test -d /usr/nec; then
9897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898 hardcode_shlibpath_var=no
9899 runpath_var=LD_RUN_PATH
9900 hardcode_runpath_var=yes
9901 ld_shlibs=yes
9902 fi
9903 ;;
9904
9905 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9906 no_undefined_flag='${wl}-z,text'
9907 archive_cmds_need_lc=no
9908 hardcode_shlibpath_var=no
9909 runpath_var='LD_RUN_PATH'
9910
9911 if test "$GCC" = yes; then
9912 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9913 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9914 else
9915 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9916 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9917 fi
9918 ;;
9919
9920 sysv5* | sco3.2v5* | sco5v6*)
9921 # Note: We can NOT use -z defs as we might desire, because we do not
9922 # link with -lc, and that would cause any symbols used from libc to
9923 # always be unresolved, which means just about no library would
9924 # ever link correctly. If we're not using GNU ld we use -z text
9925 # though, which does catch some bad symbols but isn't as heavy-handed
9926 # as -z defs.
9927 no_undefined_flag='${wl}-z,text'
9928 allow_undefined_flag='${wl}-z,nodefs'
9929 archive_cmds_need_lc=no
9930 hardcode_shlibpath_var=no
9931 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9932 hardcode_libdir_separator=':'
9933 link_all_deplibs=yes
9934 export_dynamic_flag_spec='${wl}-Bexport'
9935 runpath_var='LD_RUN_PATH'
9936
9937 if test "$GCC" = yes; then
9938 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9940 else
9941 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9942 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9943 fi
9944 ;;
9945
9946 uts4*)
9947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948 hardcode_libdir_flag_spec='-L$libdir'
9949 hardcode_shlibpath_var=no
9950 ;;
9951
9952 *)
9953 ld_shlibs=no
9954 ;;
9955 esac
9956
9957 if test x$host_vendor = xsni; then
9958 case $host in
9959 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9960 export_dynamic_flag_spec='${wl}-Blargedynsym'
9961 ;;
9962 esac
9963 fi
9964 fi
9965
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9967 $as_echo "$ld_shlibs" >&6; }
9968 test "$ld_shlibs" = no && can_build_shared=no
9969
9970 with_gnu_ld=$with_gnu_ld
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986 #
9987 # Do we need to explicitly link libc?
9988 #
9989 case "x$archive_cmds_need_lc" in
9990 x|xyes)
9991 # Assume -lc should be added
9992 archive_cmds_need_lc=yes
9993
9994 if test "$enable_shared" = yes && test "$GCC" = yes; then
9995 case $archive_cmds in
9996 *'~'*)
9997 # FIXME: we may have to deal with multi-command sequences.
9998 ;;
9999 '$CC '*)
10000 # Test whether the compiler implicitly links with -lc since on some
10001 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10002 # to ld, don't add -lc before -lgcc.
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10004 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10005 $RM conftest*
10006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10007
10008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10009 (eval $ac_compile) 2>&5
10010 ac_status=$?
10011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10012 test $ac_status = 0; } 2>conftest.err; then
10013 soname=conftest
10014 lib=conftest
10015 libobjs=conftest.$ac_objext
10016 deplibs=
10017 wl=$lt_prog_compiler_wl
10018 pic_flag=$lt_prog_compiler_pic
10019 compiler_flags=-v
10020 linker_flags=-v
10021 verstring=
10022 output_objdir=.
10023 libname=conftest
10024 lt_save_allow_undefined_flag=$allow_undefined_flag
10025 allow_undefined_flag=
10026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10027 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10028 ac_status=$?
10029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10030 test $ac_status = 0; }
10031 then
10032 archive_cmds_need_lc=no
10033 else
10034 archive_cmds_need_lc=yes
10035 fi
10036 allow_undefined_flag=$lt_save_allow_undefined_flag
10037 else
10038 cat conftest.err 1>&5
10039 fi
10040 $RM conftest*
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10042 $as_echo "$archive_cmds_need_lc" >&6; }
10043 ;;
10044 esac
10045 fi
10046 ;;
10047 esac
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10206 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10207
10208 if test "$GCC" = yes; then
10209 case $host_os in
10210 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10211 *) lt_awk_arg="/^libraries:/" ;;
10212 esac
10213 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10214 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10215 # if the path contains ";" then we assume it to be the separator
10216 # otherwise default to the standard path separator (i.e. ":") - it is
10217 # assumed that no part of a normal pathname contains ";" but that should
10218 # okay in the real world where ";" in dirpaths is itself problematic.
10219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10220 else
10221 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10222 fi
10223 # Ok, now we have the path, separated by spaces, we can step through it
10224 # and add multilib dir if necessary.
10225 lt_tmp_lt_search_path_spec=
10226 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10227 for lt_sys_path in $lt_search_path_spec; do
10228 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10229 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10230 else
10231 test -d "$lt_sys_path" && \
10232 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10233 fi
10234 done
10235 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10236 BEGIN {RS=" "; FS="/|\n";} {
10237 lt_foo="";
10238 lt_count=0;
10239 for (lt_i = NF; lt_i > 0; lt_i--) {
10240 if ($lt_i != "" && $lt_i != ".") {
10241 if ($lt_i == "..") {
10242 lt_count++;
10243 } else {
10244 if (lt_count == 0) {
10245 lt_foo="/" $lt_i lt_foo;
10246 } else {
10247 lt_count--;
10248 }
10249 }
10250 }
10251 }
10252 if (lt_foo != "") { lt_freq[lt_foo]++; }
10253 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10254 }'`
10255 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10256 else
10257 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10258 fi
10259 library_names_spec=
10260 libname_spec='lib$name'
10261 soname_spec=
10262 shrext_cmds=".so"
10263 postinstall_cmds=
10264 postuninstall_cmds=
10265 finish_cmds=
10266 finish_eval=
10267 shlibpath_var=
10268 shlibpath_overrides_runpath=unknown
10269 version_type=none
10270 dynamic_linker="$host_os ld.so"
10271 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10272 need_lib_prefix=unknown
10273 hardcode_into_libs=no
10274
10275 # when you set need_version to no, make sure it does not cause -set_version
10276 # flags to be left without arguments
10277 need_version=unknown
10278
10279 case $host_os in
10280 aix3*)
10281 version_type=linux
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10283 shlibpath_var=LIBPATH
10284
10285 # AIX 3 has no versioning support, so we append a major version to the name.
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 ;;
10288
10289 aix[4-9]*)
10290 version_type=linux
10291 need_lib_prefix=no
10292 need_version=no
10293 hardcode_into_libs=yes
10294 if test "$host_cpu" = ia64; then
10295 # AIX 5 supports IA64
10296 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 else
10299 # With GCC up to 2.95.x, collect2 would create an import file
10300 # for dependence libraries. The import file would start with
10301 # the line `#! .'. This would cause the generated library to
10302 # depend on `.', always an invalid library. This was fixed in
10303 # development snapshots of GCC prior to 3.0.
10304 case $host_os in
10305 aix4 | aix4.[01] | aix4.[01].*)
10306 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10307 echo ' yes '
10308 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10309 :
10310 else
10311 can_build_shared=no
10312 fi
10313 ;;
10314 esac
10315 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10316 # soname into executable. Probably we can add versioning support to
10317 # collect2, so additional links can be useful in future.
10318 if test "$aix_use_runtimelinking" = yes; then
10319 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10320 # instead of lib<name>.a to let people know that these are not
10321 # typical AIX shared libraries.
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 else
10324 # We preserve .a as extension for shared libraries through AIX4.2
10325 # and later when we are not doing run time linking.
10326 library_names_spec='${libname}${release}.a $libname.a'
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 fi
10329 shlibpath_var=LIBPATH
10330 fi
10331 ;;
10332
10333 amigaos*)
10334 case $host_cpu in
10335 powerpc)
10336 # Since July 2007 AmigaOS4 officially supports .so libraries.
10337 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 ;;
10340 m68k)
10341 library_names_spec='$libname.ixlibrary $libname.a'
10342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10343 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10344 ;;
10345 esac
10346 ;;
10347
10348 beos*)
10349 library_names_spec='${libname}${shared_ext}'
10350 dynamic_linker="$host_os ld.so"
10351 shlibpath_var=LIBRARY_PATH
10352 ;;
10353
10354 bsdi[45]*)
10355 version_type=linux
10356 need_version=no
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10363 # the default ld.so.conf also contains /usr/contrib/lib and
10364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10365 # libtool to hard-code these into programs
10366 ;;
10367
10368 cygwin* | mingw* | pw32* | cegcc*)
10369 version_type=windows
10370 shrext_cmds=".dll"
10371 need_version=no
10372 need_lib_prefix=no
10373
10374 case $GCC,$host_os in
10375 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10376 library_names_spec='$libname.dll.a'
10377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10378 postinstall_cmds='base_file=`basename \${file}`~
10379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10380 dldir=$destdir/`dirname \$dlpath`~
10381 test -d \$dldir || mkdir -p \$dldir~
10382 $install_prog $dir/$dlname \$dldir/$dlname~
10383 chmod a+x \$dldir/$dlname~
10384 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10385 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10386 fi'
10387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10388 dlpath=$dir/\$dldll~
10389 $RM \$dlpath'
10390 shlibpath_overrides_runpath=yes
10391
10392 case $host_os in
10393 cygwin*)
10394 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10395 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10396 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10397 ;;
10398 mingw* | cegcc*)
10399 # MinGW DLLs use traditional 'lib' prefix
10400 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10401 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10402 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10403 # It is most probably a Windows format PATH printed by
10404 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10405 # path with ; separators, and with drive letters. We can handle the
10406 # drive letters (cygwin fileutils understands them), so leave them,
10407 # especially as we might pass files found there to a mingw objdump,
10408 # which wouldn't understand a cygwinified path. Ahh.
10409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10410 else
10411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10412 fi
10413 ;;
10414 pw32*)
10415 # pw32 DLLs use 'pw' prefix rather than 'lib'
10416 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10417 ;;
10418 esac
10419 ;;
10420
10421 *)
10422 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10423 ;;
10424 esac
10425 dynamic_linker='Win32 ld.exe'
10426 # FIXME: first we should search . and the directory the executable is in
10427 shlibpath_var=PATH
10428 ;;
10429
10430 darwin* | rhapsody*)
10431 dynamic_linker="$host_os dyld"
10432 version_type=darwin
10433 need_lib_prefix=no
10434 need_version=no
10435 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10436 soname_spec='${libname}${release}${major}$shared_ext'
10437 shlibpath_overrides_runpath=yes
10438 shlibpath_var=DYLD_LIBRARY_PATH
10439 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10440
10441 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10442 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10443 ;;
10444
10445 dgux*)
10446 version_type=linux
10447 need_lib_prefix=no
10448 need_version=no
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 ;;
10453
10454 freebsd1*)
10455 dynamic_linker=no
10456 ;;
10457
10458 freebsd* | dragonfly*)
10459 # DragonFly does not have aout. When/if they implement a new
10460 # versioning mechanism, adjust this.
10461 if test -x /usr/bin/objformat; then
10462 objformat=`/usr/bin/objformat`
10463 else
10464 case $host_os in
10465 freebsd[123]*) objformat=aout ;;
10466 *) objformat=elf ;;
10467 esac
10468 fi
10469 version_type=freebsd-$objformat
10470 case $version_type in
10471 freebsd-elf*)
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10473 need_version=no
10474 need_lib_prefix=no
10475 ;;
10476 freebsd-*)
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10478 need_version=yes
10479 ;;
10480 esac
10481 shlibpath_var=LD_LIBRARY_PATH
10482 case $host_os in
10483 freebsd2*)
10484 shlibpath_overrides_runpath=yes
10485 ;;
10486 freebsd3.[01]* | freebsdelf3.[01]*)
10487 shlibpath_overrides_runpath=yes
10488 hardcode_into_libs=yes
10489 ;;
10490 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10491 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10492 shlibpath_overrides_runpath=no
10493 hardcode_into_libs=yes
10494 ;;
10495 *) # from 4.6 on, and DragonFly
10496 shlibpath_overrides_runpath=yes
10497 hardcode_into_libs=yes
10498 ;;
10499 esac
10500 ;;
10501
10502 gnu*)
10503 version_type=linux
10504 need_lib_prefix=no
10505 need_version=no
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10507 soname_spec='${libname}${release}${shared_ext}$major'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 hardcode_into_libs=yes
10510 ;;
10511
10512 hpux9* | hpux10* | hpux11*)
10513 # Give a soname corresponding to the major version so that dld.sl refuses to
10514 # link against other versions.
10515 version_type=sunos
10516 need_lib_prefix=no
10517 need_version=no
10518 case $host_cpu in
10519 ia64*)
10520 shrext_cmds='.so'
10521 hardcode_into_libs=yes
10522 dynamic_linker="$host_os dld.so"
10523 shlibpath_var=LD_LIBRARY_PATH
10524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 if test "X$HPUX_IA64_MODE" = X32; then
10528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10529 else
10530 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10531 fi
10532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10533 ;;
10534 hppa*64*)
10535 shrext_cmds='.sl'
10536 hardcode_into_libs=yes
10537 dynamic_linker="$host_os dld.sl"
10538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10544 ;;
10545 *)
10546 shrext_cmds='.sl'
10547 dynamic_linker="$host_os dld.sl"
10548 shlibpath_var=SHLIB_PATH
10549 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 ;;
10553 esac
10554 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10555 postinstall_cmds='chmod 555 $lib'
10556 ;;
10557
10558 interix[3-9]*)
10559 version_type=linux
10560 need_lib_prefix=no
10561 need_version=no
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10563 soname_spec='${libname}${release}${shared_ext}$major'
10564 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 shlibpath_overrides_runpath=no
10567 hardcode_into_libs=yes
10568 ;;
10569
10570 irix5* | irix6* | nonstopux*)
10571 case $host_os in
10572 nonstopux*) version_type=nonstopux ;;
10573 *)
10574 if test "$lt_cv_prog_gnu_ld" = yes; then
10575 version_type=linux
10576 else
10577 version_type=irix
10578 fi ;;
10579 esac
10580 need_lib_prefix=no
10581 need_version=no
10582 soname_spec='${libname}${release}${shared_ext}$major'
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10584 case $host_os in
10585 irix5* | nonstopux*)
10586 libsuff= shlibsuff=
10587 ;;
10588 *)
10589 case $LD in # libtool.m4 will add one of these switches to LD
10590 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10591 libsuff= shlibsuff= libmagic=32-bit;;
10592 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10593 libsuff=32 shlibsuff=N32 libmagic=N32;;
10594 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10595 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10596 *) libsuff= shlibsuff= libmagic=never-match;;
10597 esac
10598 ;;
10599 esac
10600 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10601 shlibpath_overrides_runpath=no
10602 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10603 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10604 hardcode_into_libs=yes
10605 ;;
10606
10607 # No shared lib support for Linux oldld, aout, or coff.
10608 linux*oldld* | linux*aout* | linux*coff*)
10609 dynamic_linker=no
10610 ;;
10611
10612 # This must be Linux ELF.
10613 linux* | k*bsd*-gnu)
10614 version_type=linux
10615 need_lib_prefix=no
10616 need_version=no
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath=no
10622 # Some binutils ld are patched to set DT_RUNPATH
10623 save_LDFLAGS=$LDFLAGS
10624 save_libdir=$libdir
10625 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10626 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629
10630 int
10631 main ()
10632 {
10633
10634 ;
10635 return 0;
10636 }
10637 _ACEOF
10638 if ac_fn_c_try_link "$LINENO"; then :
10639 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10640 shlibpath_overrides_runpath=yes
10641 fi
10642 fi
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LDFLAGS=$save_LDFLAGS
10646 libdir=$save_libdir
10647
10648 # This implies no fast_install, which is unacceptable.
10649 # Some rework will be needed to allow for fast_install
10650 # before this can be enabled.
10651 hardcode_into_libs=yes
10652
10653 # Add ABI-specific directories to the system library path.
10654 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10655
10656 # Append ld.so.conf contents to the search path
10657 if test -f /etc/ld.so.conf; then
10658 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;/^$/d' | tr '\n' ' '`
10659 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10660 fi
10661
10662 # We used to test for /lib/ld.so.1 and disable shared libraries on
10663 # powerpc, because MkLinux only supported shared libraries with the
10664 # GNU dynamic linker. Since this was broken with cross compilers,
10665 # most powerpc-linux boxes support dynamic linking these days and
10666 # people can always --disable-shared, the test was removed, and we
10667 # assume the GNU/Linux dynamic linker is in use.
10668 dynamic_linker='GNU/Linux ld.so'
10669 ;;
10670
10671 netbsd*)
10672 version_type=sunos
10673 need_lib_prefix=no
10674 need_version=no
10675 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10678 dynamic_linker='NetBSD (a.out) ld.so'
10679 else
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 dynamic_linker='NetBSD ld.elf_so'
10683 fi
10684 shlibpath_var=LD_LIBRARY_PATH
10685 shlibpath_overrides_runpath=yes
10686 hardcode_into_libs=yes
10687 ;;
10688
10689 newsos6)
10690 version_type=linux
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 shlibpath_overrides_runpath=yes
10694 ;;
10695
10696 *nto* | *qnx*)
10697 version_type=qnx
10698 need_lib_prefix=no
10699 need_version=no
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath=no
10704 hardcode_into_libs=yes
10705 dynamic_linker='ldqnx.so'
10706 ;;
10707
10708 openbsd*)
10709 version_type=sunos
10710 sys_lib_dlsearch_path_spec="/usr/lib"
10711 need_lib_prefix=no
10712 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10713 case $host_os in
10714 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10715 *) need_version=no ;;
10716 esac
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10721 case $host_os in
10722 openbsd2.[89] | openbsd2.[89].*)
10723 shlibpath_overrides_runpath=no
10724 ;;
10725 *)
10726 shlibpath_overrides_runpath=yes
10727 ;;
10728 esac
10729 else
10730 shlibpath_overrides_runpath=yes
10731 fi
10732 ;;
10733
10734 os2*)
10735 libname_spec='$name'
10736 shrext_cmds=".dll"
10737 need_lib_prefix=no
10738 library_names_spec='$libname${shared_ext} $libname.a'
10739 dynamic_linker='OS/2 ld.exe'
10740 shlibpath_var=LIBPATH
10741 ;;
10742
10743 osf3* | osf4* | osf5*)
10744 version_type=osf
10745 need_lib_prefix=no
10746 need_version=no
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10751 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10752 ;;
10753
10754 rdos*)
10755 dynamic_linker=no
10756 ;;
10757
10758 solaris*)
10759 version_type=linux
10760 need_lib_prefix=no
10761 need_version=no
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 shlibpath_overrides_runpath=yes
10766 hardcode_into_libs=yes
10767 # ldd complains unless libraries are executable
10768 postinstall_cmds='chmod +x $lib'
10769 ;;
10770
10771 sunos4*)
10772 version_type=sunos
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10774 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10775 shlibpath_var=LD_LIBRARY_PATH
10776 shlibpath_overrides_runpath=yes
10777 if test "$with_gnu_ld" = yes; then
10778 need_lib_prefix=no
10779 fi
10780 need_version=yes
10781 ;;
10782
10783 sysv4 | sysv4.3*)
10784 version_type=linux
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 shlibpath_var=LD_LIBRARY_PATH
10788 case $host_vendor in
10789 sni)
10790 shlibpath_overrides_runpath=no
10791 need_lib_prefix=no
10792 runpath_var=LD_RUN_PATH
10793 ;;
10794 siemens)
10795 need_lib_prefix=no
10796 ;;
10797 motorola)
10798 need_lib_prefix=no
10799 need_version=no
10800 shlibpath_overrides_runpath=no
10801 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10802 ;;
10803 esac
10804 ;;
10805
10806 sysv4*MP*)
10807 if test -d /usr/nec ;then
10808 version_type=linux
10809 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10810 soname_spec='$libname${shared_ext}.$major'
10811 shlibpath_var=LD_LIBRARY_PATH
10812 fi
10813 ;;
10814
10815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10816 version_type=freebsd-elf
10817 need_lib_prefix=no
10818 need_version=no
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 shlibpath_var=LD_LIBRARY_PATH
10822 shlibpath_overrides_runpath=yes
10823 hardcode_into_libs=yes
10824 if test "$with_gnu_ld" = yes; then
10825 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10826 else
10827 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10828 case $host_os in
10829 sco3.2v5*)
10830 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10831 ;;
10832 esac
10833 fi
10834 sys_lib_dlsearch_path_spec='/usr/lib'
10835 ;;
10836
10837 tpf*)
10838 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10839 version_type=linux
10840 need_lib_prefix=no
10841 need_version=no
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 shlibpath_overrides_runpath=no
10845 hardcode_into_libs=yes
10846 ;;
10847
10848 uts4*)
10849 version_type=linux
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 ;;
10854
10855 *)
10856 dynamic_linker=no
10857 ;;
10858 esac
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10860 $as_echo "$dynamic_linker" >&6; }
10861 test "$dynamic_linker" = no && can_build_shared=no
10862
10863 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10864 if test "$GCC" = yes; then
10865 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10866 fi
10867
10868 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10869 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10870 fi
10871 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10872 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10873 fi
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10962 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10963 hardcode_action=
10964 if test -n "$hardcode_libdir_flag_spec" ||
10965 test -n "$runpath_var" ||
10966 test "X$hardcode_automatic" = "Xyes" ; then
10967
10968 # We can hardcode non-existent directories.
10969 if test "$hardcode_direct" != no &&
10970 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10971 # have to relink, otherwise we might link with an installed library
10972 # when we should be linking with a yet-to-be-installed one
10973 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10974 test "$hardcode_minus_L" != no; then
10975 # Linking always hardcodes the temporary library directory.
10976 hardcode_action=relink
10977 else
10978 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10979 hardcode_action=immediate
10980 fi
10981 else
10982 # We cannot hardcode anything, or else we can only hardcode existing
10983 # directories.
10984 hardcode_action=unsupported
10985 fi
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10987 $as_echo "$hardcode_action" >&6; }
10988
10989 if test "$hardcode_action" = relink ||
10990 test "$inherit_rpath" = yes; then
10991 # Fast installation is not supported
10992 enable_fast_install=no
10993 elif test "$shlibpath_overrides_runpath" = yes ||
10994 test "$enable_shared" = no; then
10995 # Fast installation is not necessary
10996 enable_fast_install=needless
10997 fi
10998
10999
11000
11001
11002
11003
11004 if test "x$enable_dlopen" != xyes; then
11005 enable_dlopen=unknown
11006 enable_dlopen_self=unknown
11007 enable_dlopen_self_static=unknown
11008 else
11009 lt_cv_dlopen=no
11010 lt_cv_dlopen_libs=
11011
11012 case $host_os in
11013 beos*)
11014 lt_cv_dlopen="load_add_on"
11015 lt_cv_dlopen_libs=
11016 lt_cv_dlopen_self=yes
11017 ;;
11018
11019 mingw* | pw32* | cegcc*)
11020 lt_cv_dlopen="LoadLibrary"
11021 lt_cv_dlopen_libs=
11022 ;;
11023
11024 cygwin*)
11025 lt_cv_dlopen="dlopen"
11026 lt_cv_dlopen_libs=
11027 ;;
11028
11029 darwin*)
11030 # if libdl is installed we need to link against it
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11032 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11033 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 ac_check_lib_save_LIBS=$LIBS
11037 LIBS="-ldl $LIBS"
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11040
11041 /* Override any GCC internal prototype to avoid an error.
11042 Use char because int might match the return type of a GCC
11043 builtin and then its argument prototype would still apply. */
11044 #ifdef __cplusplus
11045 extern "C"
11046 #endif
11047 char dlopen ();
11048 int
11049 main ()
11050 {
11051 return dlopen ();
11052 ;
11053 return 0;
11054 }
11055 _ACEOF
11056 if ac_fn_c_try_link "$LINENO"; then :
11057 ac_cv_lib_dl_dlopen=yes
11058 else
11059 ac_cv_lib_dl_dlopen=no
11060 fi
11061 rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11063 LIBS=$ac_check_lib_save_LIBS
11064 fi
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11066 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11067 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11069 else
11070
11071 lt_cv_dlopen="dyld"
11072 lt_cv_dlopen_libs=
11073 lt_cv_dlopen_self=yes
11074
11075 fi
11076
11077 ;;
11078
11079 *)
11080 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11081 if test "x$ac_cv_func_shl_load" = x""yes; then :
11082 lt_cv_dlopen="shl_load"
11083 else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11085 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11086 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 ac_check_lib_save_LIBS=$LIBS
11090 LIBS="-ldld $LIBS"
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 char shl_load ();
11101 int
11102 main ()
11103 {
11104 return shl_load ();
11105 ;
11106 return 0;
11107 }
11108 _ACEOF
11109 if ac_fn_c_try_link "$LINENO"; then :
11110 ac_cv_lib_dld_shl_load=yes
11111 else
11112 ac_cv_lib_dld_shl_load=no
11113 fi
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11117 fi
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11119 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11120 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11121 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11122 else
11123 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11124 if test "x$ac_cv_func_dlopen" = x""yes; then :
11125 lt_cv_dlopen="dlopen"
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11128 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11129 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 ac_check_lib_save_LIBS=$LIBS
11133 LIBS="-ldl $LIBS"
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11136
11137 /* Override any GCC internal prototype to avoid an error.
11138 Use char because int might match the return type of a GCC
11139 builtin and then its argument prototype would still apply. */
11140 #ifdef __cplusplus
11141 extern "C"
11142 #endif
11143 char dlopen ();
11144 int
11145 main ()
11146 {
11147 return dlopen ();
11148 ;
11149 return 0;
11150 }
11151 _ACEOF
11152 if ac_fn_c_try_link "$LINENO"; then :
11153 ac_cv_lib_dl_dlopen=yes
11154 else
11155 ac_cv_lib_dl_dlopen=no
11156 fi
11157 rm -f core conftest.err conftest.$ac_objext \
11158 conftest$ac_exeext conftest.$ac_ext
11159 LIBS=$ac_check_lib_save_LIBS
11160 fi
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11162 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11163 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11164 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11165 else
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11167 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11168 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 ac_check_lib_save_LIBS=$LIBS
11172 LIBS="-lsvld $LIBS"
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11175
11176 /* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11179 #ifdef __cplusplus
11180 extern "C"
11181 #endif
11182 char dlopen ();
11183 int
11184 main ()
11185 {
11186 return dlopen ();
11187 ;
11188 return 0;
11189 }
11190 _ACEOF
11191 if ac_fn_c_try_link "$LINENO"; then :
11192 ac_cv_lib_svld_dlopen=yes
11193 else
11194 ac_cv_lib_svld_dlopen=no
11195 fi
11196 rm -f core conftest.err conftest.$ac_objext \
11197 conftest$ac_exeext conftest.$ac_ext
11198 LIBS=$ac_check_lib_save_LIBS
11199 fi
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11201 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11202 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11204 else
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11206 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11207 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 ac_check_lib_save_LIBS=$LIBS
11211 LIBS="-ldld $LIBS"
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11214
11215 /* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
11218 #ifdef __cplusplus
11219 extern "C"
11220 #endif
11221 char dld_link ();
11222 int
11223 main ()
11224 {
11225 return dld_link ();
11226 ;
11227 return 0;
11228 }
11229 _ACEOF
11230 if ac_fn_c_try_link "$LINENO"; then :
11231 ac_cv_lib_dld_dld_link=yes
11232 else
11233 ac_cv_lib_dld_dld_link=no
11234 fi
11235 rm -f core conftest.err conftest.$ac_objext \
11236 conftest$ac_exeext conftest.$ac_ext
11237 LIBS=$ac_check_lib_save_LIBS
11238 fi
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11240 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11241 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11242 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11243 fi
11244
11245
11246 fi
11247
11248
11249 fi
11250
11251
11252 fi
11253
11254
11255 fi
11256
11257
11258 fi
11259
11260 ;;
11261 esac
11262
11263 if test "x$lt_cv_dlopen" != xno; then
11264 enable_dlopen=yes
11265 else
11266 enable_dlopen=no
11267 fi
11268
11269 case $lt_cv_dlopen in
11270 dlopen)
11271 save_CPPFLAGS="$CPPFLAGS"
11272 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11273
11274 save_LDFLAGS="$LDFLAGS"
11275 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11276
11277 save_LIBS="$LIBS"
11278 LIBS="$lt_cv_dlopen_libs $LIBS"
11279
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11281 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11282 if test "${lt_cv_dlopen_self+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 if test "$cross_compiling" = yes; then :
11286 lt_cv_dlopen_self=cross
11287 else
11288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11289 lt_status=$lt_dlunknown
11290 cat > conftest.$ac_ext <<_LT_EOF
11291 #line 11291 "configure"
11292 #include "confdefs.h"
11293
11294 #if HAVE_DLFCN_H
11295 #include <dlfcn.h>
11296 #endif
11297
11298 #include <stdio.h>
11299
11300 #ifdef RTLD_GLOBAL
11301 # define LT_DLGLOBAL RTLD_GLOBAL
11302 #else
11303 # ifdef DL_GLOBAL
11304 # define LT_DLGLOBAL DL_GLOBAL
11305 # else
11306 # define LT_DLGLOBAL 0
11307 # endif
11308 #endif
11309
11310 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11311 find out it does not work in some platform. */
11312 #ifndef LT_DLLAZY_OR_NOW
11313 # ifdef RTLD_LAZY
11314 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11315 # else
11316 # ifdef DL_LAZY
11317 # define LT_DLLAZY_OR_NOW DL_LAZY
11318 # else
11319 # ifdef RTLD_NOW
11320 # define LT_DLLAZY_OR_NOW RTLD_NOW
11321 # else
11322 # ifdef DL_NOW
11323 # define LT_DLLAZY_OR_NOW DL_NOW
11324 # else
11325 # define LT_DLLAZY_OR_NOW 0
11326 # endif
11327 # endif
11328 # endif
11329 # endif
11330 #endif
11331
11332 void fnord() { int i=42;}
11333 int main ()
11334 {
11335 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11336 int status = $lt_dlunknown;
11337
11338 if (self)
11339 {
11340 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11341 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11342 /* dlclose (self); */
11343 }
11344 else
11345 puts (dlerror ());
11346
11347 return status;
11348 }
11349 _LT_EOF
11350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11351 (eval $ac_link) 2>&5
11352 ac_status=$?
11353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11354 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11355 (./conftest; exit; ) >&5 2>/dev/null
11356 lt_status=$?
11357 case x$lt_status in
11358 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11359 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11360 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11361 esac
11362 else :
11363 # compilation failed
11364 lt_cv_dlopen_self=no
11365 fi
11366 fi
11367 rm -fr conftest*
11368
11369
11370 fi
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11372 $as_echo "$lt_cv_dlopen_self" >&6; }
11373
11374 if test "x$lt_cv_dlopen_self" = xyes; then
11375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11377 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11378 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11381 if test "$cross_compiling" = yes; then :
11382 lt_cv_dlopen_self_static=cross
11383 else
11384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11385 lt_status=$lt_dlunknown
11386 cat > conftest.$ac_ext <<_LT_EOF
11387 #line 11387 "configure"
11388 #include "confdefs.h"
11389
11390 #if HAVE_DLFCN_H
11391 #include <dlfcn.h>
11392 #endif
11393
11394 #include <stdio.h>
11395
11396 #ifdef RTLD_GLOBAL
11397 # define LT_DLGLOBAL RTLD_GLOBAL
11398 #else
11399 # ifdef DL_GLOBAL
11400 # define LT_DLGLOBAL DL_GLOBAL
11401 # else
11402 # define LT_DLGLOBAL 0
11403 # endif
11404 #endif
11405
11406 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11407 find out it does not work in some platform. */
11408 #ifndef LT_DLLAZY_OR_NOW
11409 # ifdef RTLD_LAZY
11410 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11411 # else
11412 # ifdef DL_LAZY
11413 # define LT_DLLAZY_OR_NOW DL_LAZY
11414 # else
11415 # ifdef RTLD_NOW
11416 # define LT_DLLAZY_OR_NOW RTLD_NOW
11417 # else
11418 # ifdef DL_NOW
11419 # define LT_DLLAZY_OR_NOW DL_NOW
11420 # else
11421 # define LT_DLLAZY_OR_NOW 0
11422 # endif
11423 # endif
11424 # endif
11425 # endif
11426 #endif
11427
11428 void fnord() { int i=42;}
11429 int main ()
11430 {
11431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11432 int status = $lt_dlunknown;
11433
11434 if (self)
11435 {
11436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11437 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11438 /* dlclose (self); */
11439 }
11440 else
11441 puts (dlerror ());
11442
11443 return status;
11444 }
11445 _LT_EOF
11446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11447 (eval $ac_link) 2>&5
11448 ac_status=$?
11449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11450 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11451 (./conftest; exit; ) >&5 2>/dev/null
11452 lt_status=$?
11453 case x$lt_status in
11454 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11455 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11456 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11457 esac
11458 else :
11459 # compilation failed
11460 lt_cv_dlopen_self_static=no
11461 fi
11462 fi
11463 rm -fr conftest*
11464
11465
11466 fi
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11468 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11469 fi
11470
11471 CPPFLAGS="$save_CPPFLAGS"
11472 LDFLAGS="$save_LDFLAGS"
11473 LIBS="$save_LIBS"
11474 ;;
11475 esac
11476
11477 case $lt_cv_dlopen_self in
11478 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11479 *) enable_dlopen_self=unknown ;;
11480 esac
11481
11482 case $lt_cv_dlopen_self_static in
11483 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11484 *) enable_dlopen_self_static=unknown ;;
11485 esac
11486 fi
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504 striplib=
11505 old_striplib=
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11507 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11508 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11509 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11510 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11512 $as_echo "yes" >&6; }
11513 else
11514 # FIXME - insert some real tests, host_os isn't really good enough
11515 case $host_os in
11516 darwin*)
11517 if test -n "$STRIP" ; then
11518 striplib="$STRIP -x"
11519 old_striplib="$STRIP -S"
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521 $as_echo "yes" >&6; }
11522 else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11525 fi
11526 ;;
11527 *)
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11530 ;;
11531 esac
11532 fi
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545 # Report which library types will actually be built
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11547 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11549 $as_echo "$can_build_shared" >&6; }
11550
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11552 $as_echo_n "checking whether to build shared libraries... " >&6; }
11553 test "$can_build_shared" = "no" && enable_shared=no
11554
11555 # On AIX, shared libraries and static libraries use the same namespace, and
11556 # are all built from PIC.
11557 case $host_os in
11558 aix3*)
11559 test "$enable_shared" = yes && enable_static=no
11560 if test -n "$RANLIB"; then
11561 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11562 postinstall_cmds='$RANLIB $lib'
11563 fi
11564 ;;
11565
11566 aix[4-9]*)
11567 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11568 test "$enable_shared" = yes && enable_static=no
11569 fi
11570 ;;
11571 esac
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11573 $as_echo "$enable_shared" >&6; }
11574
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11576 $as_echo_n "checking whether to build static libraries... " >&6; }
11577 # Make sure either enable_shared or enable_static is yes.
11578 test "$enable_shared" = yes || enable_static=yes
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11580 $as_echo "$enable_static" >&6; }
11581
11582
11583
11584
11585 fi
11586 ac_ext=c
11587 ac_cpp='$CPP $CPPFLAGS'
11588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11591
11592 CC="$lt_save_CC"
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606 ac_config_commands="$ac_config_commands libtool"
11607
11608
11609
11610
11611 # Only expand once:
11612
11613
11614 ac_ext=c
11615 ac_cpp='$CPP $CPPFLAGS'
11616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11619 if test -n "$ac_tool_prefix"; then
11620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if test "${ac_cv_prog_CC+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 if test -n "$CC"; then
11628 ac_cv_prog_CC="$CC" # Let the user override the test.
11629 else
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 for as_dir in $PATH
11632 do
11633 IFS=$as_save_IFS
11634 test -z "$as_dir" && as_dir=.
11635 for ac_exec_ext in '' $ac_executable_extensions; do
11636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 break 2
11640 fi
11641 done
11642 done
11643 IFS=$as_save_IFS
11644
11645 fi
11646 fi
11647 CC=$ac_cv_prog_CC
11648 if test -n "$CC"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11650 $as_echo "$CC" >&6; }
11651 else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11654 fi
11655
11656
11657 fi
11658 if test -z "$ac_cv_prog_CC"; then
11659 ac_ct_CC=$CC
11660 # Extract the first word of "gcc", so it can be a program name with args.
11661 set dummy gcc; ac_word=$2
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663 $as_echo_n "checking for $ac_word... " >&6; }
11664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 if test -n "$ac_ct_CC"; then
11668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11669 else
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11672 do
11673 IFS=$as_save_IFS
11674 test -z "$as_dir" && as_dir=.
11675 for ac_exec_ext in '' $ac_executable_extensions; do
11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11677 ac_cv_prog_ac_ct_CC="gcc"
11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 break 2
11680 fi
11681 done
11682 done
11683 IFS=$as_save_IFS
11684
11685 fi
11686 fi
11687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11688 if test -n "$ac_ct_CC"; then
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11690 $as_echo "$ac_ct_CC" >&6; }
11691 else
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693 $as_echo "no" >&6; }
11694 fi
11695
11696 if test "x$ac_ct_CC" = x; then
11697 CC=""
11698 else
11699 case $cross_compiling:$ac_tool_warned in
11700 yes:)
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11703 ac_tool_warned=yes ;;
11704 esac
11705 CC=$ac_ct_CC
11706 fi
11707 else
11708 CC="$ac_cv_prog_CC"
11709 fi
11710
11711 if test -z "$CC"; then
11712 if test -n "$ac_tool_prefix"; then
11713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11714 set dummy ${ac_tool_prefix}cc; ac_word=$2
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716 $as_echo_n "checking for $ac_word... " >&6; }
11717 if test "${ac_cv_prog_CC+set}" = set; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 if test -n "$CC"; then
11721 ac_cv_prog_CC="$CC" # Let the user override the test.
11722 else
11723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724 for as_dir in $PATH
11725 do
11726 IFS=$as_save_IFS
11727 test -z "$as_dir" && as_dir=.
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11730 ac_cv_prog_CC="${ac_tool_prefix}cc"
11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11732 break 2
11733 fi
11734 done
11735 done
11736 IFS=$as_save_IFS
11737
11738 fi
11739 fi
11740 CC=$ac_cv_prog_CC
11741 if test -n "$CC"; then
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11743 $as_echo "$CC" >&6; }
11744 else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11747 fi
11748
11749
11750 fi
11751 fi
11752 if test -z "$CC"; then
11753 # Extract the first word of "cc", so it can be a program name with args.
11754 set dummy cc; ac_word=$2
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11756 $as_echo_n "checking for $ac_word... " >&6; }
11757 if test "${ac_cv_prog_CC+set}" = set; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 if test -n "$CC"; then
11761 ac_cv_prog_CC="$CC" # Let the user override the test.
11762 else
11763 ac_prog_rejected=no
11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765 for as_dir in $PATH
11766 do
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11772 ac_prog_rejected=yes
11773 continue
11774 fi
11775 ac_cv_prog_CC="cc"
11776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11777 break 2
11778 fi
11779 done
11780 done
11781 IFS=$as_save_IFS
11782
11783 if test $ac_prog_rejected = yes; then
11784 # We found a bogon in the path, so make sure we never use it.
11785 set dummy $ac_cv_prog_CC
11786 shift
11787 if test $# != 0; then
11788 # We chose a different compiler from the bogus one.
11789 # However, it has the same basename, so the bogon will be chosen
11790 # first if we set CC to just the basename; use the full file name.
11791 shift
11792 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11793 fi
11794 fi
11795 fi
11796 fi
11797 CC=$ac_cv_prog_CC
11798 if test -n "$CC"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11800 $as_echo "$CC" >&6; }
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11804 fi
11805
11806
11807 fi
11808 if test -z "$CC"; then
11809 if test -n "$ac_tool_prefix"; then
11810 for ac_prog in cl.exe
11811 do
11812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815 $as_echo_n "checking for $ac_word... " >&6; }
11816 if test "${ac_cv_prog_CC+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 if test -n "$CC"; then
11820 ac_cv_prog_CC="$CC" # Let the user override the test.
11821 else
11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH
11824 do
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
11827 for ac_exec_ext in '' $ac_executable_extensions; do
11828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831 break 2
11832 fi
11833 done
11834 done
11835 IFS=$as_save_IFS
11836
11837 fi
11838 fi
11839 CC=$ac_cv_prog_CC
11840 if test -n "$CC"; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11842 $as_echo "$CC" >&6; }
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11846 fi
11847
11848
11849 test -n "$CC" && break
11850 done
11851 fi
11852 if test -z "$CC"; then
11853 ac_ct_CC=$CC
11854 for ac_prog in cl.exe
11855 do
11856 # Extract the first word of "$ac_prog", so it can be a program name with args.
11857 set dummy $ac_prog; ac_word=$2
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859 $as_echo_n "checking for $ac_word... " >&6; }
11860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11861 $as_echo_n "(cached) " >&6
11862 else
11863 if test -n "$ac_ct_CC"; then
11864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11865 else
11866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867 for as_dir in $PATH
11868 do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11873 ac_cv_prog_ac_ct_CC="$ac_prog"
11874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11876 fi
11877 done
11878 done
11879 IFS=$as_save_IFS
11880
11881 fi
11882 fi
11883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11884 if test -n "$ac_ct_CC"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11886 $as_echo "$ac_ct_CC" >&6; }
11887 else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11890 fi
11891
11892
11893 test -n "$ac_ct_CC" && break
11894 done
11895
11896 if test "x$ac_ct_CC" = x; then
11897 CC=""
11898 else
11899 case $cross_compiling:$ac_tool_warned in
11900 yes:)
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11903 ac_tool_warned=yes ;;
11904 esac
11905 CC=$ac_ct_CC
11906 fi
11907 fi
11908
11909 fi
11910
11911
11912 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11914 as_fn_error "no acceptable C compiler found in \$PATH
11915 See \`config.log' for more details." "$LINENO" 5; }
11916
11917 # Provide some information about the compiler.
11918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11919 set X $ac_compile
11920 ac_compiler=$2
11921 for ac_option in --version -v -V -qversion; do
11922 { { ac_try="$ac_compiler $ac_option >&5"
11923 case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926 esac
11927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11928 $as_echo "$ac_try_echo"; } >&5
11929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11930 ac_status=$?
11931 if test -s conftest.err; then
11932 sed '10a\
11933 ... rest of stderr output deleted ...
11934 10q' conftest.err >conftest.er1
11935 cat conftest.er1 >&5
11936 fi
11937 rm -f conftest.er1 conftest.err
11938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11939 test $ac_status = 0; }
11940 done
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11943 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11944 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949
11950 int
11951 main ()
11952 {
11953 #ifndef __GNUC__
11954 choke me
11955 #endif
11956
11957 ;
11958 return 0;
11959 }
11960 _ACEOF
11961 if ac_fn_c_try_compile "$LINENO"; then :
11962 ac_compiler_gnu=yes
11963 else
11964 ac_compiler_gnu=no
11965 fi
11966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11968
11969 fi
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11971 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11972 if test $ac_compiler_gnu = yes; then
11973 GCC=yes
11974 else
11975 GCC=
11976 fi
11977 ac_test_CFLAGS=${CFLAGS+set}
11978 ac_save_CFLAGS=$CFLAGS
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11980 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11981 if test "${ac_cv_prog_cc_g+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 ac_save_c_werror_flag=$ac_c_werror_flag
11985 ac_c_werror_flag=yes
11986 ac_cv_prog_cc_g=no
11987 CFLAGS="-g"
11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11990
11991 int
11992 main ()
11993 {
11994
11995 ;
11996 return 0;
11997 }
11998 _ACEOF
11999 if ac_fn_c_try_compile "$LINENO"; then :
12000 ac_cv_prog_cc_g=yes
12001 else
12002 CFLAGS=""
12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004 /* end confdefs.h. */
12005
12006 int
12007 main ()
12008 {
12009
12010 ;
12011 return 0;
12012 }
12013 _ACEOF
12014 if ac_fn_c_try_compile "$LINENO"; then :
12015
12016 else
12017 ac_c_werror_flag=$ac_save_c_werror_flag
12018 CFLAGS="-g"
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12021
12022 int
12023 main ()
12024 {
12025
12026 ;
12027 return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_compile "$LINENO"; then :
12031 ac_cv_prog_cc_g=yes
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036 fi
12037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 ac_c_werror_flag=$ac_save_c_werror_flag
12039 fi
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12041 $as_echo "$ac_cv_prog_cc_g" >&6; }
12042 if test "$ac_test_CFLAGS" = set; then
12043 CFLAGS=$ac_save_CFLAGS
12044 elif test $ac_cv_prog_cc_g = yes; then
12045 if test "$GCC" = yes; then
12046 CFLAGS="-g -O2"
12047 else
12048 CFLAGS="-g"
12049 fi
12050 else
12051 if test "$GCC" = yes; then
12052 CFLAGS="-O2"
12053 else
12054 CFLAGS=
12055 fi
12056 fi
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12058 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12059 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 ac_cv_prog_cc_c89=no
12063 ac_save_CC=$CC
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12066 #include <stdarg.h>
12067 #include <stdio.h>
12068 #include <sys/types.h>
12069 #include <sys/stat.h>
12070 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12071 struct buf { int x; };
12072 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12073 static char *e (p, i)
12074 char **p;
12075 int i;
12076 {
12077 return p[i];
12078 }
12079 static char *f (char * (*g) (char **, int), char **p, ...)
12080 {
12081 char *s;
12082 va_list v;
12083 va_start (v,p);
12084 s = g (p, va_arg (v,int));
12085 va_end (v);
12086 return s;
12087 }
12088
12089 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12090 function prototypes and stuff, but not '\xHH' hex character constants.
12091 These don't provoke an error unfortunately, instead are silently treated
12092 as 'x'. The following induces an error, until -std is added to get
12093 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12094 array size at least. It's necessary to write '\x00'==0 to get something
12095 that's true only with -std. */
12096 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12097
12098 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12099 inside strings and character constants. */
12100 #define FOO(x) 'x'
12101 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12102
12103 int test (int i, double x);
12104 struct s1 {int (*f) (int a);};
12105 struct s2 {int (*f) (double a);};
12106 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12107 int argc;
12108 char **argv;
12109 int
12110 main ()
12111 {
12112 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12113 ;
12114 return 0;
12115 }
12116 _ACEOF
12117 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12118 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12119 do
12120 CC="$ac_save_CC $ac_arg"
12121 if ac_fn_c_try_compile "$LINENO"; then :
12122 ac_cv_prog_cc_c89=$ac_arg
12123 fi
12124 rm -f core conftest.err conftest.$ac_objext
12125 test "x$ac_cv_prog_cc_c89" != "xno" && break
12126 done
12127 rm -f conftest.$ac_ext
12128 CC=$ac_save_CC
12129
12130 fi
12131 # AC_CACHE_VAL
12132 case "x$ac_cv_prog_cc_c89" in
12133 x)
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12135 $as_echo "none needed" >&6; } ;;
12136 xno)
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12138 $as_echo "unsupported" >&6; } ;;
12139 *)
12140 CC="$CC $ac_cv_prog_cc_c89"
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12142 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12143 esac
12144 if test "x$ac_cv_prog_cc_c89" != xno; then :
12145
12146 fi
12147
12148 ac_ext=c
12149 ac_cpp='$CPP $CPPFLAGS'
12150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12153
12154 depcc="$CC" am_compiler_list=
12155
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12157 $as_echo_n "checking dependency style of $depcc... " >&6; }
12158 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12162 # We make a subdir and do the tests there. Otherwise we can end up
12163 # making bogus files that we don't know about and never remove. For
12164 # instance it was reported that on HP-UX the gcc test will end up
12165 # making a dummy file named `D' -- because `-MD' means `put the output
12166 # in D'.
12167 mkdir conftest.dir
12168 # Copy depcomp to subdir because otherwise we won't find it if we're
12169 # using a relative directory.
12170 cp "$am_depcomp" conftest.dir
12171 cd conftest.dir
12172 # We will build objects and dependencies in a subdirectory because
12173 # it helps to detect inapplicable dependency modes. For instance
12174 # both Tru64's cc and ICC support -MD to output dependencies as a
12175 # side effect of compilation, but ICC will put the dependencies in
12176 # the current directory while Tru64 will put them in the object
12177 # directory.
12178 mkdir sub
12179
12180 am_cv_CC_dependencies_compiler_type=none
12181 if test "$am_compiler_list" = ""; then
12182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12183 fi
12184 am__universal=false
12185 case " $depcc " in #(
12186 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12187 esac
12188
12189 for depmode in $am_compiler_list; do
12190 # Setup a source with many dependencies, because some compilers
12191 # like to wrap large dependency lists on column 80 (with \), and
12192 # we should not choose a depcomp mode which is confused by this.
12193 #
12194 # We need to recreate these files for each test, as the compiler may
12195 # overwrite some of them when testing with obscure command lines.
12196 # This happens at least with the AIX C compiler.
12197 : > sub/conftest.c
12198 for i in 1 2 3 4 5 6; do
12199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12201 # Solaris 8's {/usr,}/bin/sh.
12202 touch sub/conftst$i.h
12203 done
12204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12205
12206 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12207 # mode. It turns out that the SunPro C++ compiler does not properly
12208 # handle `-M -o', and we need to detect this. Also, some Intel
12209 # versions had trouble with output in subdirs
12210 am__obj=sub/conftest.${OBJEXT-o}
12211 am__minus_obj="-o $am__obj"
12212 case $depmode in
12213 gcc)
12214 # This depmode causes a compiler race in universal mode.
12215 test "$am__universal" = false || continue
12216 ;;
12217 nosideeffect)
12218 # after this tag, mechanisms are not by side-effect, so they'll
12219 # only be used when explicitly requested
12220 if test "x$enable_dependency_tracking" = xyes; then
12221 continue
12222 else
12223 break
12224 fi
12225 ;;
12226 msvisualcpp | msvcmsys)
12227 # This compiler won't grok `-c -o', but also, the minuso test has
12228 # not run yet. These depmodes are late enough in the game, and
12229 # so weak that their functioning should not be impacted.
12230 am__obj=conftest.${OBJEXT-o}
12231 am__minus_obj=
12232 ;;
12233 none) break ;;
12234 esac
12235 if depmode=$depmode \
12236 source=sub/conftest.c object=$am__obj \
12237 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12238 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12239 >/dev/null 2>conftest.err &&
12240 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12241 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12242 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12244 # icc doesn't choke on unknown options, it will just issue warnings
12245 # or remarks (even with -Werror). So we grep stderr for any message
12246 # that says an option was ignored or not supported.
12247 # When given -MP, icc 7.0 and 7.1 complain thusly:
12248 # icc: Command line warning: ignoring option '-M'; no argument required
12249 # The diagnosis changed in icc 8.0:
12250 # icc: Command line remark: option '-MP' not supported
12251 if (grep 'ignoring option' conftest.err ||
12252 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12253 am_cv_CC_dependencies_compiler_type=$depmode
12254 break
12255 fi
12256 fi
12257 done
12258
12259 cd ..
12260 rm -rf conftest.dir
12261 else
12262 am_cv_CC_dependencies_compiler_type=none
12263 fi
12264
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12267 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12268 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12269
12270 if
12271 test "x$enable_dependency_tracking" != xno \
12272 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12273 am__fastdepCC_TRUE=
12274 am__fastdepCC_FALSE='#'
12275 else
12276 am__fastdepCC_TRUE='#'
12277 am__fastdepCC_FALSE=
12278 fi
12279
12280
12281
12282 # Checks for pkg-config packages
12283
12284 pkg_failed=no
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICE" >&5
12286 $as_echo_n "checking for ICE... " >&6; }
12287
12288 if test -n "$ICE_CFLAGS"; then
12289 pkg_cv_ICE_CFLAGS="$ICE_CFLAGS"
12290 elif test -n "$PKG_CONFIG"; then
12291 if test -n "$PKG_CONFIG" && \
12292 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
12293 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
12294 ac_status=$?
12295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12296 test $ac_status = 0; }; then
12297 pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
12298 else
12299 pkg_failed=yes
12300 fi
12301 else
12302 pkg_failed=untried
12303 fi
12304 if test -n "$ICE_LIBS"; then
12305 pkg_cv_ICE_LIBS="$ICE_LIBS"
12306 elif test -n "$PKG_CONFIG"; then
12307 if test -n "$PKG_CONFIG" && \
12308 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
12309 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
12310 ac_status=$?
12311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12312 test $ac_status = 0; }; then
12313 pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
12314 else
12315 pkg_failed=yes
12316 fi
12317 else
12318 pkg_failed=untried
12319 fi
12320
12321
12322
12323 if test $pkg_failed = yes; then
12324
12325 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12326 _pkg_short_errors_supported=yes
12327 else
12328 _pkg_short_errors_supported=no
12329 fi
12330 if test $_pkg_short_errors_supported = yes; then
12331 ICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
12332 else
12333 ICE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
12334 fi
12335 # Put the nasty error message in config.log where it belongs
12336 echo "$ICE_PKG_ERRORS" >&5
12337
12338 as_fn_error "Package requirements (xproto) were not met:
12339
12340 $ICE_PKG_ERRORS
12341
12342 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12343 installed software in a non-standard prefix.
12344
12345 Alternatively, you may set the environment variables ICE_CFLAGS
12346 and ICE_LIBS to avoid the need to call pkg-config.
12347 See the pkg-config man page for more details.
12348 " "$LINENO" 5
12349 elif test $pkg_failed = untried; then
12350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12352 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
12353 is in your PATH or set the PKG_CONFIG environment variable to the full
12354 path to pkg-config.
12355
12356 Alternatively, you may set the environment variables ICE_CFLAGS
12357 and ICE_LIBS to avoid the need to call pkg-config.
12358 See the pkg-config man page for more details.
12359
12360 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12361 See \`config.log' for more details." "$LINENO" 5; }
12362 else
12363 ICE_CFLAGS=$pkg_cv_ICE_CFLAGS
12364 ICE_LIBS=$pkg_cv_ICE_LIBS
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12366 $as_echo "yes" >&6; }
12367 :
12368 fi
12369
12370
12371 pkg_failed=no
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTRANS" >&5
12373 $as_echo_n "checking for XTRANS... " >&6; }
12374
12375 if test -n "$XTRANS_CFLAGS"; then
12376 pkg_cv_XTRANS_CFLAGS="$XTRANS_CFLAGS"
12377 elif test -n "$PKG_CONFIG"; then
12378 if test -n "$PKG_CONFIG" && \
12379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtrans\""; } >&5
12380 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
12381 ac_status=$?
12382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12383 test $ac_status = 0; }; then
12384 pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null`
12385 else
12386 pkg_failed=yes
12387 fi
12388 else
12389 pkg_failed=untried
12390 fi
12391 if test -n "$XTRANS_LIBS"; then
12392 pkg_cv_XTRANS_LIBS="$XTRANS_LIBS"
12393 elif test -n "$PKG_CONFIG"; then
12394 if test -n "$PKG_CONFIG" && \
12395 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtrans\""; } >&5
12396 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
12397 ac_status=$?
12398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12399 test $ac_status = 0; }; then
12400 pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null`
12401 else
12402 pkg_failed=yes
12403 fi
12404 else
12405 pkg_failed=untried
12406 fi
12407
12408
12409
12410 if test $pkg_failed = yes; then
12411
12412 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12413 _pkg_short_errors_supported=yes
12414 else
12415 _pkg_short_errors_supported=no
12416 fi
12417 if test $_pkg_short_errors_supported = yes; then
12418 XTRANS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtrans" 2>&1`
12419 else
12420 XTRANS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtrans" 2>&1`
12421 fi
12422 # Put the nasty error message in config.log where it belongs
12423 echo "$XTRANS_PKG_ERRORS" >&5
12424
12425 as_fn_error "Package requirements (xtrans) were not met:
12426
12427 $XTRANS_PKG_ERRORS
12428
12429 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12430 installed software in a non-standard prefix.
12431
12432 Alternatively, you may set the environment variables XTRANS_CFLAGS
12433 and XTRANS_LIBS to avoid the need to call pkg-config.
12434 See the pkg-config man page for more details.
12435 " "$LINENO" 5
12436 elif test $pkg_failed = untried; then
12437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12439 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
12440 is in your PATH or set the PKG_CONFIG environment variable to the full
12441 path to pkg-config.
12442
12443 Alternatively, you may set the environment variables XTRANS_CFLAGS
12444 and XTRANS_LIBS to avoid the need to call pkg-config.
12445 See the pkg-config man page for more details.
12446
12447 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12448 See \`config.log' for more details." "$LINENO" 5; }
12449 else
12450 XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS
12451 XTRANS_LIBS=$pkg_cv_XTRANS_LIBS
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12453 $as_echo "yes" >&6; }
12454 :
12455 fi
12456
12457
12458
12459 # Transport selection macro from xtrans.m4
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12461 $as_echo_n "checking return type of signal handlers... " >&6; }
12462 if test "${ac_cv_type_signal+set}" = set; then :
12463 $as_echo_n "(cached) " >&6
12464 else
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12467 #include <sys/types.h>
12468 #include <signal.h>
12469
12470 int
12471 main ()
12472 {
12473 return *(signal (0, 0)) (0) == 1;
12474 ;
12475 return 0;
12476 }
12477 _ACEOF
12478 if ac_fn_c_try_compile "$LINENO"; then :
12479 ac_cv_type_signal=int
12480 else
12481 ac_cv_type_signal=void
12482 fi
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12486 $as_echo "$ac_cv_type_signal" >&6; }
12487
12488 cat >>confdefs.h <<_ACEOF
12489 #define RETSIGTYPE $ac_cv_type_signal
12490 _ACEOF
12491
12492
12493
12494
12495
12496 case $host_os in
12497 mingw*) unixdef="no" ;;
12498 *) unixdef="yes" ;;
12499 esac
12500 # Check whether --enable-unix-transport was given.
12501 if test "${enable_unix_transport+set}" = set; then :
12502 enableval=$enable_unix_transport; UNIXCONN=$enableval
12503 else
12504 UNIXCONN=$unixdef
12505 fi
12506
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
12508 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
12509 if test "$UNIXCONN" = "yes"; then
12510
12511 $as_echo "#define UNIXCONN 1" >>confdefs.h
12512
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
12515 $as_echo "$UNIXCONN" >&6; }
12516 # Check whether --enable-tcp-transport was given.
12517 if test "${enable_tcp_transport+set}" = set; then :
12518 enableval=$enable_tcp_transport; TCPCONN=$enableval
12519 else
12520 TCPCONN=yes
12521 fi
12522
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
12524 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
12526 $as_echo "$TCPCONN" >&6; }
12527 if test "$TCPCONN" = "yes"; then
12528
12529 $as_echo "#define TCPCONN 1" >>confdefs.h
12530
12531
12532 # SVR4 hides these in libraries other than libc
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12534 $as_echo_n "checking for library containing socket... " >&6; }
12535 if test "${ac_cv_search_socket+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 ac_func_search_save_LIBS=$LIBS
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541
12542 /* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
12545 #ifdef __cplusplus
12546 extern "C"
12547 #endif
12548 char socket ();
12549 int
12550 main ()
12551 {
12552 return socket ();
12553 ;
12554 return 0;
12555 }
12556 _ACEOF
12557 for ac_lib in '' socket; do
12558 if test -z "$ac_lib"; then
12559 ac_res="none required"
12560 else
12561 ac_res=-l$ac_lib
12562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12563 fi
12564 if ac_fn_c_try_link "$LINENO"; then :
12565 ac_cv_search_socket=$ac_res
12566 fi
12567 rm -f core conftest.err conftest.$ac_objext \
12568 conftest$ac_exeext
12569 if test "${ac_cv_search_socket+set}" = set; then :
12570 break
12571 fi
12572 done
12573 if test "${ac_cv_search_socket+set}" = set; then :
12574
12575 else
12576 ac_cv_search_socket=no
12577 fi
12578 rm conftest.$ac_ext
12579 LIBS=$ac_func_search_save_LIBS
12580 fi
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12582 $as_echo "$ac_cv_search_socket" >&6; }
12583 ac_res=$ac_cv_search_socket
12584 if test "$ac_res" != no; then :
12585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12586
12587 fi
12588
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12590 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12591 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 ac_func_search_save_LIBS=$LIBS
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597
12598 /* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12601 #ifdef __cplusplus
12602 extern "C"
12603 #endif
12604 char gethostbyname ();
12605 int
12606 main ()
12607 {
12608 return gethostbyname ();
12609 ;
12610 return 0;
12611 }
12612 _ACEOF
12613 for ac_lib in '' nsl; do
12614 if test -z "$ac_lib"; then
12615 ac_res="none required"
12616 else
12617 ac_res=-l$ac_lib
12618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12619 fi
12620 if ac_fn_c_try_link "$LINENO"; then :
12621 ac_cv_search_gethostbyname=$ac_res
12622 fi
12623 rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext
12625 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12626 break
12627 fi
12628 done
12629 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12630
12631 else
12632 ac_cv_search_gethostbyname=no
12633 fi
12634 rm conftest.$ac_ext
12635 LIBS=$ac_func_search_save_LIBS
12636 fi
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12638 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12639 ac_res=$ac_cv_search_gethostbyname
12640 if test "$ac_res" != no; then :
12641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12642
12643 fi
12644
12645
12646 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
12647 # Check whether --enable-ipv6 was given.
12648 if test "${enable_ipv6+set}" = set; then :
12649 enableval=$enable_ipv6; IPV6CONN=$enableval
12650 else
12651 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12652 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
12653 IPV6CONN=yes
12654 else
12655 IPV6CONN=no
12656 fi
12657
12658 fi
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
12661 $as_echo_n "checking if IPv6 support should be built... " >&6; }
12662 if test "$IPV6CONN" = "yes"; then
12663
12664 $as_echo "#define IPv6 1" >>confdefs.h
12665
12666 fi
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
12668 $as_echo "$IPV6CONN" >&6; }
12669
12670 # 4.3BSD-Reno added a new member to struct sockaddr_in
12671 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
12672 #include <sys/types.h>
12673 #include <sys/socket.h>
12674 #include <netinet/in.h>
12675
12676 "
12677 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12678
12679 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
12680
12681 fi
12682
12683
12684 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12685 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
12686 $ac_includes_default
12687 #include <sys/socket.h>
12688 "
12689 if test "x$ac_cv_type_socklen_t" = x""yes; then :
12690
12691 cat >>confdefs.h <<_ACEOF
12692 #define HAVE_SOCKLEN_T 1
12693 _ACEOF
12694
12695
12696 fi
12697
12698
12699
12700 fi
12701 case $host_os in
12702 solaris*|sco*|sysv4*) localdef="yes" ;;
12703 *) localdef="no" ;;
12704 esac
12705 # Check whether --enable-local-transport was given.
12706 if test "${enable_local_transport+set}" = set; then :
12707 enableval=$enable_local_transport; LOCALCONN=$enableval
12708 else
12709 LOCALCONN=$localdef
12710 fi
12711
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
12713 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
12715 $as_echo "$LOCALCONN" >&6; }
12716 if test "$LOCALCONN" = "yes"; then
12717
12718 $as_echo "#define LOCALCONN 1" >>confdefs.h
12719
12720 fi
12721
12722
12723
12724 $as_echo "#define ICE_t 1" >>confdefs.h
12725
12726
12727 # Checks for libraries.
12728
12729 # Checks for header files.
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12731 $as_echo_n "checking for ANSI C header files... " >&6; }
12732 if test "${ac_cv_header_stdc+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737 #include <stdlib.h>
12738 #include <stdarg.h>
12739 #include <string.h>
12740 #include <float.h>
12741
12742 int
12743 main ()
12744 {
12745
12746 ;
12747 return 0;
12748 }
12749 _ACEOF
12750 if ac_fn_c_try_compile "$LINENO"; then :
12751 ac_cv_header_stdc=yes
12752 else
12753 ac_cv_header_stdc=no
12754 fi
12755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756
12757 if test $ac_cv_header_stdc = yes; then
12758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12761 #include <string.h>
12762
12763 _ACEOF
12764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12765 $EGREP "memchr" >/dev/null 2>&1; then :
12766
12767 else
12768 ac_cv_header_stdc=no
12769 fi
12770 rm -f conftest*
12771
12772 fi
12773
12774 if test $ac_cv_header_stdc = yes; then
12775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12778 #include <stdlib.h>
12779
12780 _ACEOF
12781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12782 $EGREP "free" >/dev/null 2>&1; then :
12783
12784 else
12785 ac_cv_header_stdc=no
12786 fi
12787 rm -f conftest*
12788
12789 fi
12790
12791 if test $ac_cv_header_stdc = yes; then
12792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12793 if test "$cross_compiling" = yes; then :
12794 :
12795 else
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798 #include <ctype.h>
12799 #include <stdlib.h>
12800 #if ((' ' & 0x0FF) == 0x020)
12801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12803 #else
12804 # define ISLOWER(c) \
12805 (('a' <= (c) && (c) <= 'i') \
12806 || ('j' <= (c) && (c) <= 'r') \
12807 || ('s' <= (c) && (c) <= 'z'))
12808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12809 #endif
12810
12811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12812 int
12813 main ()
12814 {
12815 int i;
12816 for (i = 0; i < 256; i++)
12817 if (XOR (islower (i), ISLOWER (i))
12818 || toupper (i) != TOUPPER (i))
12819 return 2;
12820 return 0;
12821 }
12822 _ACEOF
12823 if ac_fn_c_try_run "$LINENO"; then :
12824
12825 else
12826 ac_cv_header_stdc=no
12827 fi
12828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12829 conftest.$ac_objext conftest.beam conftest.$ac_ext
12830 fi
12831
12832 fi
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12835 $as_echo "$ac_cv_header_stdc" >&6; }
12836 if test $ac_cv_header_stdc = yes; then
12837
12838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12839
12840 fi
12841
12842
12843
12844
12845
12846
12847
12848 # Check whether --with-lint was given.
12849 if test "${with_lint+set}" = set; then :
12850 withval=$with_lint; use_lint=$withval
12851 else
12852 use_lint=no
12853 fi
12854
12855
12856 # Obtain platform specific info like program name and options
12857 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
12858 case $host_os in
12859 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12860 lint_name=splint
12861 lint_options="-badflag"
12862 ;;
12863 *freebsd* | *netbsd*)
12864 lint_name=lint
12865 lint_options="-u -b"
12866 ;;
12867 *solaris*)
12868 lint_name=lint
12869 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12870 ;;
12871 esac
12872
12873 # Test for the presence of the program (either guessed by the code or spelled out by the user)
12874 if test "x$use_lint" = x"yes" ; then
12875 # Extract the first word of "$lint_name", so it can be a program name with args.
12876 set dummy $lint_name; ac_word=$2
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878 $as_echo_n "checking for $ac_word... " >&6; }
12879 if test "${ac_cv_path_LINT+set}" = set; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 case $LINT in
12883 [\\/]* | ?:[\\/]*)
12884 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12885 ;;
12886 *)
12887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888 for as_dir in $PATH
12889 do
12890 IFS=$as_save_IFS
12891 test -z "$as_dir" && as_dir=.
12892 for ac_exec_ext in '' $ac_executable_extensions; do
12893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12894 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
12895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12896 break 2
12897 fi
12898 done
12899 done
12900 IFS=$as_save_IFS
12901
12902 ;;
12903 esac
12904 fi
12905 LINT=$ac_cv_path_LINT
12906 if test -n "$LINT"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12908 $as_echo "$LINT" >&6; }
12909 else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12912 fi
12913
12914
12915 if test "x$LINT" = "x"; then
12916 as_fn_error "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12917 fi
12918 elif test "x$use_lint" = x"no" ; then
12919 if test "x$LINT" != "x"; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12921 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12922 fi
12923 else
12924 as_fn_error "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12925 fi
12926
12927 # User supplied flags override default flags
12928 if test "x$LINT_FLAGS" != "x"; then
12929 lint_options=$LINT_FLAGS
12930 fi
12931
12932 LINT_FLAGS=$lint_options
12933
12934 if test "x$LINT" != x; then
12935 LINT_TRUE=
12936 LINT_FALSE='#'
12937 else
12938 LINT_TRUE='#'
12939 LINT_FALSE=
12940 fi
12941
12942
12943
12944
12945
12946 # Check whether --enable-lint-library was given.
12947 if test "${enable_lint_library+set}" = set; then :
12948 enableval=$enable_lint_library; make_lint_lib=$enableval
12949 else
12950 make_lint_lib=no
12951 fi
12952
12953
12954 if test "x$make_lint_lib" = x"yes" ; then
12955 LINTLIB=llib-lICE.ln
12956 if test "x$LINT" = "x"; then
12957 as_fn_error "Cannot make lint library without --with-lint" "$LINENO" 5
12958 fi
12959 elif test "x$make_lint_lib" != x"no" ; then
12960 as_fn_error "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
12961 fi
12962
12963
12964 if test x$make_lint_lib != xno; then
12965 MAKE_LINT_LIB_TRUE=
12966 MAKE_LINT_LIB_FALSE='#'
12967 else
12968 MAKE_LINT_LIB_TRUE='#'
12969 MAKE_LINT_LIB_FALSE=
12970 fi
12971
12972
12973
12974 LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}"
12975
12976
12977 ac_config_files="$ac_config_files Makefile doc/Makefile specs/Makefile src/Makefile ice.pc"
12978
12979 cat >confcache <<\_ACEOF
12980 # This file is a shell script that caches the results of configure
12981 # tests run on this system so they can be shared between configure
12982 # scripts and configure runs, see configure's option --config-cache.
12983 # It is not useful on other systems. If it contains results you don't
12984 # want to keep, you may remove or edit it.
12985 #
12986 # config.status only pays attention to the cache file if you give it
12987 # the --recheck option to rerun configure.
12988 #
12989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12991 # following values.
12992
12993 _ACEOF
12994
12995 # The following way of writing the cache mishandles newlines in values,
12996 # but we know of no workaround that is simple, portable, and efficient.
12997 # So, we kill variables containing newlines.
12998 # Ultrix sh set writes to stderr and can't be redirected directly,
12999 # and sets the high bit in the cache file unless we assign to the vars.
13000 (
13001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13002 eval ac_val=\$$ac_var
13003 case $ac_val in #(
13004 *${as_nl}*)
13005 case $ac_var in #(
13006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13008 esac
13009 case $ac_var in #(
13010 _ | IFS | as_nl) ;; #(
13011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13012 *) { eval $ac_var=; unset $ac_var;} ;;
13013 esac ;;
13014 esac
13015 done
13016
13017 (set) 2>&1 |
13018 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13019 *${as_nl}ac_space=\ *)
13020 # `set' does not quote correctly, so add quotes: double-quote
13021 # substitution turns \\\\ into \\, and sed turns \\ into \.
13022 sed -n \
13023 "s/'/'\\\\''/g;
13024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13025 ;; #(
13026 *)
13027 # `set' quotes correctly as required by POSIX, so do not add quotes.
13028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13029 ;;
13030 esac |
13031 sort
13032 ) |
13033 sed '
13034 /^ac_cv_env_/b end
13035 t clear
13036 :clear
13037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13038 t end
13039 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13040 :end' >>confcache
13041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13042 if test -w "$cache_file"; then
13043 test "x$cache_file" != "x/dev/null" &&
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13045 $as_echo "$as_me: updating cache $cache_file" >&6;}
13046 cat confcache >$cache_file
13047 else
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13049 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13050 fi
13051 fi
13052 rm -f confcache
13053
13054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13055 # Let make expand exec_prefix.
13056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13057
13058 DEFS=-DHAVE_CONFIG_H
13059
13060 ac_libobjs=
13061 ac_ltlibobjs=
13062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13063 # 1. Remove the extension, and $U if already installed.
13064 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13065 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13066 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13067 # will be set to the directory where LIBOBJS objects are built.
13068 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13069 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13070 done
13071 LIBOBJS=$ac_libobjs
13072
13073 LTLIBOBJS=$ac_ltlibobjs
13074
13075
13076 if test -n "$EXEEXT"; then
13077 am__EXEEXT_TRUE=
13078 am__EXEEXT_FALSE='#'
13079 else
13080 am__EXEEXT_TRUE='#'
13081 am__EXEEXT_FALSE=
13082 fi
13083
13084 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13085 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13087 fi
13088 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13089 as_fn_error "conditional \"AMDEP\" was never defined.
13090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13091 fi
13092 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13093 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13095 fi
13096 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
13097 as_fn_error "conditional \"ENABLE_DOCS\" was never defined.
13098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13099 fi
13100 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
13101 as_fn_error "conditional \"ENABLE_SPECS\" was never defined.
13102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13103 fi
13104 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
13105 as_fn_error "conditional \"HAVE_XMLTO_TEXT\" was never defined.
13106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13107 fi
13108 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
13109 as_fn_error "conditional \"HAVE_XMLTO\" was never defined.
13110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13111 fi
13112 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
13113 as_fn_error "conditional \"HAVE_FOP\" was never defined.
13114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13115 fi
13116 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
13117 as_fn_error "conditional \"HAVE_STYLESHEETS\" was never defined.
13118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13119 fi
13120 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13121 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13123 fi
13124 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
13125 as_fn_error "conditional \"LINT\" was never defined.
13126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13127 fi
13128 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
13129 as_fn_error "conditional \"MAKE_LINT_LIB\" was never defined.
13130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13131 fi
13132
13133 : ${CONFIG_STATUS=./config.status}
13134 ac_write_fail=0
13135 ac_clean_files_save=$ac_clean_files
13136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13138 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13139 as_write_fail=0
13140 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13141 #! $SHELL
13142 # Generated by $as_me.
13143 # Run this file to recreate the current configuration.
13144 # Compiler output produced by configure, useful for debugging
13145 # configure, is in config.log if it exists.
13146
13147 debug=false
13148 ac_cs_recheck=false
13149 ac_cs_silent=false
13150
13151 SHELL=\${CONFIG_SHELL-$SHELL}
13152 export SHELL
13153 _ASEOF
13154 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13155 ## -------------------- ##
13156 ## M4sh Initialization. ##
13157 ## -------------------- ##
13158
13159 # Be more Bourne compatible
13160 DUALCASE=1; export DUALCASE # for MKS sh
13161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13162 emulate sh
13163 NULLCMD=:
13164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13165 # is contrary to our usage. Disable this feature.
13166 alias -g '${1+"$@"}'='"$@"'
13167 setopt NO_GLOB_SUBST
13168 else
13169 case `(set -o) 2>/dev/null` in #(
13170 *posix*) :
13171 set -o posix ;; #(
13172 *) :
13173 ;;
13174 esac
13175 fi
13176
13177
13178 as_nl='
13179 '
13180 export as_nl
13181 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13182 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13185 # Prefer a ksh shell builtin over an external printf program on Solaris,
13186 # but without wasting forks for bash or zsh.
13187 if test -z "$BASH_VERSION$ZSH_VERSION" \
13188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13189 as_echo='print -r --'
13190 as_echo_n='print -rn --'
13191 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13192 as_echo='printf %s\n'
13193 as_echo_n='printf %s'
13194 else
13195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13197 as_echo_n='/usr/ucb/echo -n'
13198 else
13199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13200 as_echo_n_body='eval
13201 arg=$1;
13202 case $arg in #(
13203 *"$as_nl"*)
13204 expr "X$arg" : "X\\(.*\\)$as_nl";
13205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13206 esac;
13207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13208 '
13209 export as_echo_n_body
13210 as_echo_n='sh -c $as_echo_n_body as_echo'
13211 fi
13212 export as_echo_body
13213 as_echo='sh -c $as_echo_body as_echo'
13214 fi
13215
13216 # The user is always right.
13217 if test "${PATH_SEPARATOR+set}" != set; then
13218 PATH_SEPARATOR=:
13219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13221 PATH_SEPARATOR=';'
13222 }
13223 fi
13224
13225
13226 # IFS
13227 # We need space, tab and new line, in precisely that order. Quoting is
13228 # there to prevent editors from complaining about space-tab.
13229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13230 # splitting by setting IFS to empty value.)
13231 IFS=" "" $as_nl"
13232
13233 # Find who we are. Look in the path if we contain no directory separator.
13234 case $0 in #((
13235 *[\\/]* ) as_myself=$0 ;;
13236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237 for as_dir in $PATH
13238 do
13239 IFS=$as_save_IFS
13240 test -z "$as_dir" && as_dir=.
13241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13242 done
13243 IFS=$as_save_IFS
13244
13245 ;;
13246 esac
13247 # We did not find ourselves, most probably we were run as `sh COMMAND'
13248 # in which case we are not to be found in the path.
13249 if test "x$as_myself" = x; then
13250 as_myself=$0
13251 fi
13252 if test ! -f "$as_myself"; then
13253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13254 exit 1
13255 fi
13256
13257 # Unset variables that we do not need and which cause bugs (e.g. in
13258 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13259 # suppresses any "Segmentation fault" message there. '((' could
13260 # trigger a bug in pdksh 5.2.14.
13261 for as_var in BASH_ENV ENV MAIL MAILPATH
13262 do eval test x\${$as_var+set} = xset \
13263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13264 done
13265 PS1='$ '
13266 PS2='> '
13267 PS4='+ '
13268
13269 # NLS nuisances.
13270 LC_ALL=C
13271 export LC_ALL
13272 LANGUAGE=C
13273 export LANGUAGE
13274
13275 # CDPATH.
13276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13277
13278
13279 # as_fn_error ERROR [LINENO LOG_FD]
13280 # ---------------------------------
13281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13283 # script with status $?, using 1 if that was 0.
13284 as_fn_error ()
13285 {
13286 as_status=$?; test $as_status -eq 0 && as_status=1
13287 if test "$3"; then
13288 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13290 fi
13291 $as_echo "$as_me: error: $1" >&2
13292 as_fn_exit $as_status
13293 } # as_fn_error
13294
13295
13296 # as_fn_set_status STATUS
13297 # -----------------------
13298 # Set $? to STATUS, without forking.
13299 as_fn_set_status ()
13300 {
13301 return $1
13302 } # as_fn_set_status
13303
13304 # as_fn_exit STATUS
13305 # -----------------
13306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13307 as_fn_exit ()
13308 {
13309 set +e
13310 as_fn_set_status $1
13311 exit $1
13312 } # as_fn_exit
13313
13314 # as_fn_unset VAR
13315 # ---------------
13316 # Portably unset VAR.
13317 as_fn_unset ()
13318 {
13319 { eval $1=; unset $1;}
13320 }
13321 as_unset=as_fn_unset
13322 # as_fn_append VAR VALUE
13323 # ----------------------
13324 # Append the text in VALUE to the end of the definition contained in VAR. Take
13325 # advantage of any shell optimizations that allow amortized linear growth over
13326 # repeated appends, instead of the typical quadratic growth present in naive
13327 # implementations.
13328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13329 eval 'as_fn_append ()
13330 {
13331 eval $1+=\$2
13332 }'
13333 else
13334 as_fn_append ()
13335 {
13336 eval $1=\$$1\$2
13337 }
13338 fi # as_fn_append
13339
13340 # as_fn_arith ARG...
13341 # ------------------
13342 # Perform arithmetic evaluation on the ARGs, and store the result in the
13343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13344 # must be portable across $(()) and expr.
13345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13346 eval 'as_fn_arith ()
13347 {
13348 as_val=$(( $* ))
13349 }'
13350 else
13351 as_fn_arith ()
13352 {
13353 as_val=`expr "$@" || test $? -eq 1`
13354 }
13355 fi # as_fn_arith
13356
13357
13358 if expr a : '\(a\)' >/dev/null 2>&1 &&
13359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13360 as_expr=expr
13361 else
13362 as_expr=false
13363 fi
13364
13365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13366 as_basename=basename
13367 else
13368 as_basename=false
13369 fi
13370
13371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13372 as_dirname=dirname
13373 else
13374 as_dirname=false
13375 fi
13376
13377 as_me=`$as_basename -- "$0" ||
13378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13379 X"$0" : 'X\(//\)$' \| \
13380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13381 $as_echo X/"$0" |
13382 sed '/^.*\/\([^/][^/]*\)\/*$/{
13383 s//\1/
13384 q
13385 }
13386 /^X\/\(\/\/\)$/{
13387 s//\1/
13388 q
13389 }
13390 /^X\/\(\/\).*/{
13391 s//\1/
13392 q
13393 }
13394 s/.*/./; q'`
13395
13396 # Avoid depending upon Character Ranges.
13397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13400 as_cr_digits='0123456789'
13401 as_cr_alnum=$as_cr_Letters$as_cr_digits
13402
13403 ECHO_C= ECHO_N= ECHO_T=
13404 case `echo -n x` in #(((((
13405 -n*)
13406 case `echo 'xy\c'` in
13407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13408 xy) ECHO_C='\c';;
13409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13410 ECHO_T=' ';;
13411 esac;;
13412 *)
13413 ECHO_N='-n';;
13414 esac
13415
13416 rm -f conf$$ conf$$.exe conf$$.file
13417 if test -d conf$$.dir; then
13418 rm -f conf$$.dir/conf$$.file
13419 else
13420 rm -f conf$$.dir
13421 mkdir conf$$.dir 2>/dev/null
13422 fi
13423 if (echo >conf$$.file) 2>/dev/null; then
13424 if ln -s conf$$.file conf$$ 2>/dev/null; then
13425 as_ln_s='ln -s'
13426 # ... but there are two gotchas:
13427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13429 # In both cases, we have to default to `cp -p'.
13430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13431 as_ln_s='cp -p'
13432 elif ln conf$$.file conf$$ 2>/dev/null; then
13433 as_ln_s=ln
13434 else
13435 as_ln_s='cp -p'
13436 fi
13437 else
13438 as_ln_s='cp -p'
13439 fi
13440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13441 rmdir conf$$.dir 2>/dev/null
13442
13443
13444 # as_fn_mkdir_p
13445 # -------------
13446 # Create "$as_dir" as a directory, including parents if necessary.
13447 as_fn_mkdir_p ()
13448 {
13449
13450 case $as_dir in #(
13451 -*) as_dir=./$as_dir;;
13452 esac
13453 test -d "$as_dir" || eval $as_mkdir_p || {
13454 as_dirs=
13455 while :; do
13456 case $as_dir in #(
13457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13458 *) as_qdir=$as_dir;;
13459 esac
13460 as_dirs="'$as_qdir' $as_dirs"
13461 as_dir=`$as_dirname -- "$as_dir" ||
13462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13463 X"$as_dir" : 'X\(//\)[^/]' \| \
13464 X"$as_dir" : 'X\(//\)$' \| \
13465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13466 $as_echo X"$as_dir" |
13467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13468 s//\1/
13469 q
13470 }
13471 /^X\(\/\/\)[^/].*/{
13472 s//\1/
13473 q
13474 }
13475 /^X\(\/\/\)$/{
13476 s//\1/
13477 q
13478 }
13479 /^X\(\/\).*/{
13480 s//\1/
13481 q
13482 }
13483 s/.*/./; q'`
13484 test -d "$as_dir" && break
13485 done
13486 test -z "$as_dirs" || eval "mkdir $as_dirs"
13487 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13488
13489
13490 } # as_fn_mkdir_p
13491 if mkdir -p . 2>/dev/null; then
13492 as_mkdir_p='mkdir -p "$as_dir"'
13493 else
13494 test -d ./-p && rmdir ./-p
13495 as_mkdir_p=false
13496 fi
13497
13498 if test -x / >/dev/null 2>&1; then
13499 as_test_x='test -x'
13500 else
13501 if ls -dL / >/dev/null 2>&1; then
13502 as_ls_L_option=L
13503 else
13504 as_ls_L_option=
13505 fi
13506 as_test_x='
13507 eval sh -c '\''
13508 if test -d "$1"; then
13509 test -d "$1/.";
13510 else
13511 case $1 in #(
13512 -*)set "./$1";;
13513 esac;
13514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13515 ???[sx]*):;;*)false;;esac;fi
13516 '\'' sh
13517 '
13518 fi
13519 as_executable_p=$as_test_x
13520
13521 # Sed expression to map a string onto a valid CPP name.
13522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13523
13524 # Sed expression to map a string onto a valid variable name.
13525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13526
13527
13528 exec 6>&1
13529 ## ----------------------------------- ##
13530 ## Main body of $CONFIG_STATUS script. ##
13531 ## ----------------------------------- ##
13532 _ASEOF
13533 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13534
13535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13536 # Save the log message, to keep $0 and so on meaningful, and to
13537 # report actual input values of CONFIG_FILES etc. instead of their
13538 # values after options handling.
13539 ac_log="
13540 This file was extended by libICE $as_me 1.0.7, which was
13541 generated by GNU Autoconf 2.65. Invocation command line was
13542
13543 CONFIG_FILES = $CONFIG_FILES
13544 CONFIG_HEADERS = $CONFIG_HEADERS
13545 CONFIG_LINKS = $CONFIG_LINKS
13546 CONFIG_COMMANDS = $CONFIG_COMMANDS
13547 $ $0 $@
13548
13549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13550 "
13551
13552 _ACEOF
13553
13554 case $ac_config_files in *"
13555 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13556 esac
13557
13558 case $ac_config_headers in *"
13559 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13560 esac
13561
13562
13563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13564 # Files that config.status was made for.
13565 config_files="$ac_config_files"
13566 config_headers="$ac_config_headers"
13567 config_commands="$ac_config_commands"
13568
13569 _ACEOF
13570
13571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13572 ac_cs_usage="\
13573 \`$as_me' instantiates files and other configuration actions
13574 from templates according to the current configuration. Unless the files
13575 and actions are specified as TAGs, all are instantiated by default.
13576
13577 Usage: $0 [OPTION]... [TAG]...
13578
13579 -h, --help print this help, then exit
13580 -V, --version print version number and configuration settings, then exit
13581 --config print configuration, then exit
13582 -q, --quiet, --silent
13583 do not print progress messages
13584 -d, --debug don't remove temporary files
13585 --recheck update $as_me by reconfiguring in the same conditions
13586 --file=FILE[:TEMPLATE]
13587 instantiate the configuration file FILE
13588 --header=FILE[:TEMPLATE]
13589 instantiate the configuration header FILE
13590
13591 Configuration files:
13592 $config_files
13593
13594 Configuration headers:
13595 $config_headers
13596
13597 Configuration commands:
13598 $config_commands
13599
13600 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13601
13602 _ACEOF
13603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13604 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13605 ac_cs_version="\\
13606 libICE config.status 1.0.7
13607 configured by $0, generated by GNU Autoconf 2.65,
13608 with options \\"\$ac_cs_config\\"
13609
13610 Copyright (C) 2009 Free Software Foundation, Inc.
13611 This config.status script is free software; the Free Software Foundation
13612 gives unlimited permission to copy, distribute and modify it."
13613
13614 ac_pwd='$ac_pwd'
13615 srcdir='$srcdir'
13616 INSTALL='$INSTALL'
13617 MKDIR_P='$MKDIR_P'
13618 AWK='$AWK'
13619 test -n "\$AWK" || AWK=awk
13620 _ACEOF
13621
13622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13623 # The default lists apply if the user does not specify any file.
13624 ac_need_defaults=:
13625 while test $# != 0
13626 do
13627 case $1 in
13628 --*=*)
13629 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13630 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13631 ac_shift=:
13632 ;;
13633 *)
13634 ac_option=$1
13635 ac_optarg=$2
13636 ac_shift=shift
13637 ;;
13638 esac
13639
13640 case $ac_option in
13641 # Handling of the options.
13642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13643 ac_cs_recheck=: ;;
13644 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13645 $as_echo "$ac_cs_version"; exit ;;
13646 --config | --confi | --conf | --con | --co | --c )
13647 $as_echo "$ac_cs_config"; exit ;;
13648 --debug | --debu | --deb | --de | --d | -d )
13649 debug=: ;;
13650 --file | --fil | --fi | --f )
13651 $ac_shift
13652 case $ac_optarg in
13653 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13654 esac
13655 as_fn_append CONFIG_FILES " '$ac_optarg'"
13656 ac_need_defaults=false;;
13657 --header | --heade | --head | --hea )
13658 $ac_shift
13659 case $ac_optarg in
13660 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13661 esac
13662 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13663 ac_need_defaults=false;;
13664 --he | --h)
13665 # Conflict between --help and --header
13666 as_fn_error "ambiguous option: \`$1'
13667 Try \`$0 --help' for more information.";;
13668 --help | --hel | -h )
13669 $as_echo "$ac_cs_usage"; exit ;;
13670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13671 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13672 ac_cs_silent=: ;;
13673
13674 # This is an error.
13675 -*) as_fn_error "unrecognized option: \`$1'
13676 Try \`$0 --help' for more information." ;;
13677
13678 *) as_fn_append ac_config_targets " $1"
13679 ac_need_defaults=false ;;
13680
13681 esac
13682 shift
13683 done
13684
13685 ac_configure_extra_args=
13686
13687 if $ac_cs_silent; then
13688 exec 6>/dev/null
13689 ac_configure_extra_args="$ac_configure_extra_args --silent"
13690 fi
13691
13692 _ACEOF
13693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13694 if \$ac_cs_recheck; then
13695 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13696 shift
13697 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13698 CONFIG_SHELL='$SHELL'
13699 export CONFIG_SHELL
13700 exec "\$@"
13701 fi
13702
13703 _ACEOF
13704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13705 exec 5>>config.log
13706 {
13707 echo
13708 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13709 ## Running $as_me. ##
13710 _ASBOX
13711 $as_echo "$ac_log"
13712 } >&5
13713
13714 _ACEOF
13715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13716 #
13717 # INIT-COMMANDS
13718 #
13719 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13720
13721
13722 # The HP-UX ksh and POSIX shell print the target directory to stdout
13723 # if CDPATH is set.
13724 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13725
13726 sed_quote_subst='$sed_quote_subst'
13727 double_quote_subst='$double_quote_subst'
13728 delay_variable_subst='$delay_variable_subst'
13729 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13730 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13731 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13732 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13733 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13734 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13735 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13736 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13737 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13738 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13739 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13740 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13741 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13742 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13743 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13744 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13745 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13746 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13747 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13748 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13749 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13750 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13751 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13752 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13753 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13754 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13755 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13756 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13757 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13758 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13759 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13760 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13761 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13762 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13763 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13764 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13765 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13766 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13767 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13768 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13769 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13770 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13771 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13772 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13773 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13774 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13775 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13776 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13777 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13778 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13779 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13780 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13781 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13782 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13783 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13784 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13785 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13786 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13787 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13788 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13789 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13790 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13791 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13792 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13793 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13794 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13795 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13796 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13797 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13798 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13799 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13800 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13801 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13802 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13803 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13804 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13805 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13806 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13807 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13808 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13809 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13810 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13811 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13812 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13813 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13814 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13815 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13816 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13817 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13818 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13819 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13820 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13821 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13822 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13823 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13824 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13825 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13826 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13827 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13828 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13829 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13830 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13831 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13832 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13833 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13834 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13835 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13836 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13837 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13838 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13839 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13840 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13841 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13842 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13843 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13844 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13845 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13846 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13847
13848 LTCC='$LTCC'
13849 LTCFLAGS='$LTCFLAGS'
13850 compiler='$compiler_DEFAULT'
13851
13852 # Quote evaled strings.
13853 for var in SED \
13854 GREP \
13855 EGREP \
13856 FGREP \
13857 LD \
13858 NM \
13859 LN_S \
13860 lt_SP2NL \
13861 lt_NL2SP \
13862 reload_flag \
13863 OBJDUMP \
13864 deplibs_check_method \
13865 file_magic_cmd \
13866 AR \
13867 AR_FLAGS \
13868 STRIP \
13869 RANLIB \
13870 CC \
13871 CFLAGS \
13872 compiler \
13873 lt_cv_sys_global_symbol_pipe \
13874 lt_cv_sys_global_symbol_to_cdecl \
13875 lt_cv_sys_global_symbol_to_c_name_address \
13876 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13877 SHELL \
13878 ECHO \
13879 lt_prog_compiler_no_builtin_flag \
13880 lt_prog_compiler_wl \
13881 lt_prog_compiler_pic \
13882 lt_prog_compiler_static \
13883 lt_cv_prog_compiler_c_o \
13884 need_locks \
13885 DSYMUTIL \
13886 NMEDIT \
13887 LIPO \
13888 OTOOL \
13889 OTOOL64 \
13890 shrext_cmds \
13891 export_dynamic_flag_spec \
13892 whole_archive_flag_spec \
13893 compiler_needs_object \
13894 with_gnu_ld \
13895 allow_undefined_flag \
13896 no_undefined_flag \
13897 hardcode_libdir_flag_spec \
13898 hardcode_libdir_flag_spec_ld \
13899 hardcode_libdir_separator \
13900 fix_srcfile_path \
13901 exclude_expsyms \
13902 include_expsyms \
13903 file_list_spec \
13904 variables_saved_for_relink \
13905 libname_spec \
13906 library_names_spec \
13907 soname_spec \
13908 finish_eval \
13909 old_striplib \
13910 striplib; do
13911 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13912 *[\\\\\\\`\\"\\\$]*)
13913 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13914 ;;
13915 *)
13916 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13917 ;;
13918 esac
13919 done
13920
13921 # Double-quote double-evaled strings.
13922 for var in reload_cmds \
13923 old_postinstall_cmds \
13924 old_postuninstall_cmds \
13925 old_archive_cmds \
13926 extract_expsyms_cmds \
13927 old_archive_from_new_cmds \
13928 old_archive_from_expsyms_cmds \
13929 archive_cmds \
13930 archive_expsym_cmds \
13931 module_cmds \
13932 module_expsym_cmds \
13933 export_symbols_cmds \
13934 prelink_cmds \
13935 postinstall_cmds \
13936 postuninstall_cmds \
13937 finish_cmds \
13938 sys_lib_search_path_spec \
13939 sys_lib_dlsearch_path_spec; do
13940 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13941 *[\\\\\\\`\\"\\\$]*)
13942 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13943 ;;
13944 *)
13945 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13946 ;;
13947 esac
13948 done
13949
13950 # Fix-up fallback echo if it was mangled by the above quoting rules.
13951 case \$lt_ECHO in
13952 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13953 ;;
13954 esac
13955
13956 ac_aux_dir='$ac_aux_dir'
13957 xsi_shell='$xsi_shell'
13958 lt_shell_append='$lt_shell_append'
13959
13960 # See if we are running on zsh, and set the options which allow our
13961 # commands through without removal of \ escapes INIT.
13962 if test -n "\${ZSH_VERSION+set}" ; then
13963 setopt NO_GLOB_SUBST
13964 fi
13965
13966
13967 PACKAGE='$PACKAGE'
13968 VERSION='$VERSION'
13969 TIMESTAMP='$TIMESTAMP'
13970 RM='$RM'
13971 ofile='$ofile'
13972
13973
13974
13975
13976 _ACEOF
13977
13978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13979
13980 # Handling of arguments.
13981 for ac_config_target in $ac_config_targets
13982 do
13983 case $ac_config_target in
13984 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13985 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13986 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13987 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13988 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13989 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
13990 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13991 "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;;
13992
13993 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13994 esac
13995 done
13996
13997
13998 # If the user did not use the arguments to specify the items to instantiate,
13999 # then the envvar interface is used. Set only those that are not.
14000 # We use the long form for the default assignment because of an extremely
14001 # bizarre bug on SunOS 4.1.3.
14002 if $ac_need_defaults; then
14003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14006 fi
14007
14008 # Have a temporary directory for convenience. Make it in the build tree
14009 # simply because there is no reason against having it here, and in addition,
14010 # creating and moving files from /tmp can sometimes cause problems.
14011 # Hook for its removal unless debugging.
14012 # Note that there is a small window in which the directory will not be cleaned:
14013 # after its creation but before its name has been assigned to `$tmp'.
14014 $debug ||
14015 {
14016 tmp=
14017 trap 'exit_status=$?
14018 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14019 ' 0
14020 trap 'as_fn_exit 1' 1 2 13 15
14021 }
14022 # Create a (secure) tmp directory for tmp files.
14023
14024 {
14025 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14026 test -n "$tmp" && test -d "$tmp"
14027 } ||
14028 {
14029 tmp=./conf$$-$RANDOM
14030 (umask 077 && mkdir "$tmp")
14031 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14032
14033 # Set up the scripts for CONFIG_FILES section.
14034 # No need to generate them if there are no CONFIG_FILES.
14035 # This happens for instance with `./config.status config.h'.
14036 if test -n "$CONFIG_FILES"; then
14037
14038
14039 ac_cr=`echo X | tr X '\015'`
14040 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14041 # But we know of no other shell where ac_cr would be empty at this
14042 # point, so we can use a bashism as a fallback.
14043 if test "x$ac_cr" = x; then
14044 eval ac_cr=\$\'\\r\'
14045 fi
14046 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14047 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14048 ac_cs_awk_cr='\r'
14049 else
14050 ac_cs_awk_cr=$ac_cr
14051 fi
14052
14053 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14054 _ACEOF
14055
14056
14057 {
14058 echo "cat >conf$$subs.awk <<_ACEOF" &&
14059 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14060 echo "_ACEOF"
14061 } >conf$$subs.sh ||
14062 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14063 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14064 ac_delim='%!_!# '
14065 for ac_last_try in false false false false false :; do
14066 . ./conf$$subs.sh ||
14067 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14068
14069 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14070 if test $ac_delim_n = $ac_delim_num; then
14071 break
14072 elif $ac_last_try; then
14073 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14074 else
14075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14076 fi
14077 done
14078 rm -f conf$$subs.sh
14079
14080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14081 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14082 _ACEOF
14083 sed -n '
14084 h
14085 s/^/S["/; s/!.*/"]=/
14086 p
14087 g
14088 s/^[^!]*!//
14089 :repl
14090 t repl
14091 s/'"$ac_delim"'$//
14092 t delim
14093 :nl
14094 h
14095 s/\(.\{148\}\)..*/\1/
14096 t more1
14097 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14098 p
14099 n
14100 b repl
14101 :more1
14102 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14103 p
14104 g
14105 s/.\{148\}//
14106 t nl
14107 :delim
14108 h
14109 s/\(.\{148\}\)..*/\1/
14110 t more2
14111 s/["\\]/\\&/g; s/^/"/; s/$/"/
14112 p
14113 b
14114 :more2
14115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14116 p
14117 g
14118 s/.\{148\}//
14119 t delim
14120 ' <conf$$subs.awk | sed '
14121 /^[^""]/{
14122 N
14123 s/\n//
14124 }
14125 ' >>$CONFIG_STATUS || ac_write_fail=1
14126 rm -f conf$$subs.awk
14127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14128 _ACAWK
14129 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14130 for (key in S) S_is_set[key] = 1
14131 FS = ""
14132
14133 }
14134 {
14135 line = $ 0
14136 nfields = split(line, field, "@")
14137 substed = 0
14138 len = length(field[1])
14139 for (i = 2; i < nfields; i++) {
14140 key = field[i]
14141 keylen = length(key)
14142 if (S_is_set[key]) {
14143 value = S[key]
14144 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14145 len += length(value) + length(field[++i])
14146 substed = 1
14147 } else
14148 len += 1 + keylen
14149 }
14150
14151 print line
14152 }
14153
14154 _ACAWK
14155 _ACEOF
14156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14157 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14158 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14159 else
14160 cat
14161 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14162 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14163 _ACEOF
14164
14165 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14166 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14167 # trailing colons and then remove the whole line if VPATH becomes empty
14168 # (actually we leave an empty line to preserve line numbers).
14169 if test "x$srcdir" = x.; then
14170 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14171 s/:*\$(srcdir):*/:/
14172 s/:*\${srcdir}:*/:/
14173 s/:*@srcdir@:*/:/
14174 s/^\([^=]*=[ ]*\):*/\1/
14175 s/:*$//
14176 s/^[^=]*=[ ]*$//
14177 }'
14178 fi
14179
14180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14181 fi # test -n "$CONFIG_FILES"
14182
14183 # Set up the scripts for CONFIG_HEADERS section.
14184 # No need to generate them if there are no CONFIG_HEADERS.
14185 # This happens for instance with `./config.status Makefile'.
14186 if test -n "$CONFIG_HEADERS"; then
14187 cat >"$tmp/defines.awk" <<\_ACAWK ||
14188 BEGIN {
14189 _ACEOF
14190
14191 # Transform confdefs.h into an awk script `defines.awk', embedded as
14192 # here-document in config.status, that substitutes the proper values into
14193 # config.h.in to produce config.h.
14194
14195 # Create a delimiter string that does not exist in confdefs.h, to ease
14196 # handling of long lines.
14197 ac_delim='%!_!# '
14198 for ac_last_try in false false :; do
14199 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14200 if test -z "$ac_t"; then
14201 break
14202 elif $ac_last_try; then
14203 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14204 else
14205 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14206 fi
14207 done
14208
14209 # For the awk script, D is an array of macro values keyed by name,
14210 # likewise P contains macro parameters if any. Preserve backslash
14211 # newline sequences.
14212
14213 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14214 sed -n '
14215 s/.\{148\}/&'"$ac_delim"'/g
14216 t rset
14217 :rset
14218 s/^[ ]*#[ ]*define[ ][ ]*/ /
14219 t def
14220 d
14221 :def
14222 s/\\$//
14223 t bsnl
14224 s/["\\]/\\&/g
14225 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14226 D["\1"]=" \3"/p
14227 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14228 d
14229 :bsnl
14230 s/["\\]/\\&/g
14231 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14232 D["\1"]=" \3\\\\\\n"\\/p
14233 t cont
14234 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14235 t cont
14236 d
14237 :cont
14238 n
14239 s/.\{148\}/&'"$ac_delim"'/g
14240 t clear
14241 :clear
14242 s/\\$//
14243 t bsnlc
14244 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14245 d
14246 :bsnlc
14247 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14248 b cont
14249 ' <confdefs.h | sed '
14250 s/'"$ac_delim"'/"\\\
14251 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14252
14253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14254 for (key in D) D_is_set[key] = 1
14255 FS = ""
14256 }
14257 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14258 line = \$ 0
14259 split(line, arg, " ")
14260 if (arg[1] == "#") {
14261 defundef = arg[2]
14262 mac1 = arg[3]
14263 } else {
14264 defundef = substr(arg[1], 2)
14265 mac1 = arg[2]
14266 }
14267 split(mac1, mac2, "(") #)
14268 macro = mac2[1]
14269 prefix = substr(line, 1, index(line, defundef) - 1)
14270 if (D_is_set[macro]) {
14271 # Preserve the white space surrounding the "#".
14272 print prefix "define", macro P[macro] D[macro]
14273 next
14274 } else {
14275 # Replace #undef with comments. This is necessary, for example,
14276 # in the case of _POSIX_SOURCE, which is predefined and required
14277 # on some systems where configure will not decide to define it.
14278 if (defundef == "undef") {
14279 print "/*", prefix defundef, macro, "*/"
14280 next
14281 }
14282 }
14283 }
14284 { print }
14285 _ACAWK
14286 _ACEOF
14287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14288 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14289 fi # test -n "$CONFIG_HEADERS"
14290
14291
14292 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14293 shift
14294 for ac_tag
14295 do
14296 case $ac_tag in
14297 :[FHLC]) ac_mode=$ac_tag; continue;;
14298 esac
14299 case $ac_mode$ac_tag in
14300 :[FHL]*:*);;
14301 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14302 :[FH]-) ac_tag=-:-;;
14303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14304 esac
14305 ac_save_IFS=$IFS
14306 IFS=:
14307 set x $ac_tag
14308 IFS=$ac_save_IFS
14309 shift
14310 ac_file=$1
14311 shift
14312
14313 case $ac_mode in
14314 :L) ac_source=$1;;
14315 :[FH])
14316 ac_file_inputs=
14317 for ac_f
14318 do
14319 case $ac_f in
14320 -) ac_f="$tmp/stdin";;
14321 *) # Look for the file first in the build tree, then in the source tree
14322 # (if the path is not absolute). The absolute path cannot be DOS-style,
14323 # because $ac_f cannot contain `:'.
14324 test -f "$ac_f" ||
14325 case $ac_f in
14326 [\\/$]*) false;;
14327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14328 esac ||
14329 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14330 esac
14331 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14332 as_fn_append ac_file_inputs " '$ac_f'"
14333 done
14334
14335 # Let's still pretend it is `configure' which instantiates (i.e., don't
14336 # use $as_me), people would be surprised to read:
14337 # /* config.h. Generated by config.status. */
14338 configure_input='Generated from '`
14339 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14340 `' by configure.'
14341 if test x"$ac_file" != x-; then
14342 configure_input="$ac_file. $configure_input"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14344 $as_echo "$as_me: creating $ac_file" >&6;}
14345 fi
14346 # Neutralize special characters interpreted by sed in replacement strings.
14347 case $configure_input in #(
14348 *\&* | *\|* | *\\* )
14349 ac_sed_conf_input=`$as_echo "$configure_input" |
14350 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14351 *) ac_sed_conf_input=$configure_input;;
14352 esac
14353
14354 case $ac_tag in
14355 *:-:* | *:-) cat >"$tmp/stdin" \
14356 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14357 esac
14358 ;;
14359 esac
14360
14361 ac_dir=`$as_dirname -- "$ac_file" ||
14362 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14363 X"$ac_file" : 'X\(//\)[^/]' \| \
14364 X"$ac_file" : 'X\(//\)$' \| \
14365 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14366 $as_echo X"$ac_file" |
14367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14368 s//\1/
14369 q
14370 }
14371 /^X\(\/\/\)[^/].*/{
14372 s//\1/
14373 q
14374 }
14375 /^X\(\/\/\)$/{
14376 s//\1/
14377 q
14378 }
14379 /^X\(\/\).*/{
14380 s//\1/
14381 q
14382 }
14383 s/.*/./; q'`
14384 as_dir="$ac_dir"; as_fn_mkdir_p
14385 ac_builddir=.
14386
14387 case "$ac_dir" in
14388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14389 *)
14390 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14391 # A ".." for each directory in $ac_dir_suffix.
14392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14393 case $ac_top_builddir_sub in
14394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14396 esac ;;
14397 esac
14398 ac_abs_top_builddir=$ac_pwd
14399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14400 # for backward compatibility:
14401 ac_top_builddir=$ac_top_build_prefix
14402
14403 case $srcdir in
14404 .) # We are building in place.
14405 ac_srcdir=.
14406 ac_top_srcdir=$ac_top_builddir_sub
14407 ac_abs_top_srcdir=$ac_pwd ;;
14408 [\\/]* | ?:[\\/]* ) # Absolute name.
14409 ac_srcdir=$srcdir$ac_dir_suffix;
14410 ac_top_srcdir=$srcdir
14411 ac_abs_top_srcdir=$srcdir ;;
14412 *) # Relative name.
14413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14414 ac_top_srcdir=$ac_top_build_prefix$srcdir
14415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14416 esac
14417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14418
14419
14420 case $ac_mode in
14421 :F)
14422 #
14423 # CONFIG_FILE
14424 #
14425
14426 case $INSTALL in
14427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14428 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14429 esac
14430 ac_MKDIR_P=$MKDIR_P
14431 case $MKDIR_P in
14432 [\\/$]* | ?:[\\/]* ) ;;
14433 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14434 esac
14435 _ACEOF
14436
14437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14438 # If the template does not know about datarootdir, expand it.
14439 # FIXME: This hack should be removed a few years after 2.60.
14440 ac_datarootdir_hack=; ac_datarootdir_seen=
14441 ac_sed_dataroot='
14442 /datarootdir/ {
14443 p
14444 q
14445 }
14446 /@datadir@/p
14447 /@docdir@/p
14448 /@infodir@/p
14449 /@localedir@/p
14450 /@mandir@/p'
14451 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14452 *datarootdir*) ac_datarootdir_seen=yes;;
14453 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14455 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14456 _ACEOF
14457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14458 ac_datarootdir_hack='
14459 s&@datadir@&$datadir&g
14460 s&@docdir@&$docdir&g
14461 s&@infodir@&$infodir&g
14462 s&@localedir@&$localedir&g
14463 s&@mandir@&$mandir&g
14464 s&\\\${datarootdir}&$datarootdir&g' ;;
14465 esac
14466 _ACEOF
14467
14468 # Neutralize VPATH when `$srcdir' = `.'.
14469 # Shell code in configure.ac might set extrasub.
14470 # FIXME: do we really want to maintain this feature?
14471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14472 ac_sed_extra="$ac_vpsub
14473 $extrasub
14474 _ACEOF
14475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14476 :t
14477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14478 s|@configure_input@|$ac_sed_conf_input|;t t
14479 s&@top_builddir@&$ac_top_builddir_sub&;t t
14480 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14481 s&@srcdir@&$ac_srcdir&;t t
14482 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14483 s&@top_srcdir@&$ac_top_srcdir&;t t
14484 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14485 s&@builddir@&$ac_builddir&;t t
14486 s&@abs_builddir@&$ac_abs_builddir&;t t
14487 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14488 s&@INSTALL@&$ac_INSTALL&;t t
14489 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14490 $ac_datarootdir_hack
14491 "
14492 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14493 || as_fn_error "could not create $ac_file" "$LINENO" 5
14494
14495 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14496 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14497 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14499 which seems to be undefined. Please make sure it is defined." >&5
14500 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14501 which seems to be undefined. Please make sure it is defined." >&2;}
14502
14503 rm -f "$tmp/stdin"
14504 case $ac_file in
14505 -) cat "$tmp/out" && rm -f "$tmp/out";;
14506 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14507 esac \
14508 || as_fn_error "could not create $ac_file" "$LINENO" 5
14509 ;;
14510 :H)
14511 #
14512 # CONFIG_HEADER
14513 #
14514 if test x"$ac_file" != x-; then
14515 {
14516 $as_echo "/* $configure_input */" \
14517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14518 } >"$tmp/config.h" \
14519 || as_fn_error "could not create $ac_file" "$LINENO" 5
14520 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14522 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14523 else
14524 rm -f "$ac_file"
14525 mv "$tmp/config.h" "$ac_file" \
14526 || as_fn_error "could not create $ac_file" "$LINENO" 5
14527 fi
14528 else
14529 $as_echo "/* $configure_input */" \
14530 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14531 || as_fn_error "could not create -" "$LINENO" 5
14532 fi
14533 # Compute "$ac_file"'s index in $config_headers.
14534 _am_arg="$ac_file"
14535 _am_stamp_count=1
14536 for _am_header in $config_headers :; do
14537 case $_am_header in
14538 $_am_arg | $_am_arg:* )
14539 break ;;
14540 * )
14541 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14542 esac
14543 done
14544 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14545 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14546 X"$_am_arg" : 'X\(//\)[^/]' \| \
14547 X"$_am_arg" : 'X\(//\)$' \| \
14548 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14549 $as_echo X"$_am_arg" |
14550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14551 s//\1/
14552 q
14553 }
14554 /^X\(\/\/\)[^/].*/{
14555 s//\1/
14556 q
14557 }
14558 /^X\(\/\/\)$/{
14559 s//\1/
14560 q
14561 }
14562 /^X\(\/\).*/{
14563 s//\1/
14564 q
14565 }
14566 s/.*/./; q'`/stamp-h$_am_stamp_count
14567 ;;
14568
14569 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14570 $as_echo "$as_me: executing $ac_file commands" >&6;}
14571 ;;
14572 esac
14573
14574
14575 case $ac_file$ac_mode in
14576 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14577 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14578 # are listed without --file. Let's play safe and only enable the eval
14579 # if we detect the quoting.
14580 case $CONFIG_FILES in
14581 *\'*) eval set x "$CONFIG_FILES" ;;
14582 *) set x $CONFIG_FILES ;;
14583 esac
14584 shift
14585 for mf
14586 do
14587 # Strip MF so we end up with the name of the file.
14588 mf=`echo "$mf" | sed -e 's/:.*$//'`
14589 # Check whether this is an Automake generated Makefile or not.
14590 # We used to match only the files named `Makefile.in', but
14591 # some people rename them; so instead we look at the file content.
14592 # Grep'ing the first line is not enough: some people post-process
14593 # each Makefile.in and add a new line on top of each file to say so.
14594 # Grep'ing the whole file is not good either: AIX grep has a line
14595 # limit of 2048, but all sed's we know have understand at least 4000.
14596 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14597 dirpart=`$as_dirname -- "$mf" ||
14598 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14599 X"$mf" : 'X\(//\)[^/]' \| \
14600 X"$mf" : 'X\(//\)$' \| \
14601 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14602 $as_echo X"$mf" |
14603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14604 s//\1/
14605 q
14606 }
14607 /^X\(\/\/\)[^/].*/{
14608 s//\1/
14609 q
14610 }
14611 /^X\(\/\/\)$/{
14612 s//\1/
14613 q
14614 }
14615 /^X\(\/\).*/{
14616 s//\1/
14617 q
14618 }
14619 s/.*/./; q'`
14620 else
14621 continue
14622 fi
14623 # Extract the definition of DEPDIR, am__include, and am__quote
14624 # from the Makefile without running `make'.
14625 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14626 test -z "$DEPDIR" && continue
14627 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14628 test -z "am__include" && continue
14629 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14630 # When using ansi2knr, U may be empty or an underscore; expand it
14631 U=`sed -n 's/^U = //p' < "$mf"`
14632 # Find all dependency output files, they are included files with
14633 # $(DEPDIR) in their names. We invoke sed twice because it is the
14634 # simplest approach to changing $(DEPDIR) to its actual value in the
14635 # expansion.
14636 for file in `sed -n "
14637 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14638 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14639 # Make sure the directory exists.
14640 test -f "$dirpart/$file" && continue
14641 fdir=`$as_dirname -- "$file" ||
14642 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14643 X"$file" : 'X\(//\)[^/]' \| \
14644 X"$file" : 'X\(//\)$' \| \
14645 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14646 $as_echo X"$file" |
14647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14648 s//\1/
14649 q
14650 }
14651 /^X\(\/\/\)[^/].*/{
14652 s//\1/
14653 q
14654 }
14655 /^X\(\/\/\)$/{
14656 s//\1/
14657 q
14658 }
14659 /^X\(\/\).*/{
14660 s//\1/
14661 q
14662 }
14663 s/.*/./; q'`
14664 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14665 # echo "creating $dirpart/$file"
14666 echo '# dummy' > "$dirpart/$file"
14667 done
14668 done
14669 }
14670 ;;
14671 "libtool":C)
14672
14673 # See if we are running on zsh, and set the options which allow our
14674 # commands through without removal of \ escapes.
14675 if test -n "${ZSH_VERSION+set}" ; then
14676 setopt NO_GLOB_SUBST
14677 fi
14678
14679 cfgfile="${ofile}T"
14680 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14681 $RM "$cfgfile"
14682
14683 cat <<_LT_EOF >> "$cfgfile"
14684 #! $SHELL
14685
14686 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14687 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14689 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14690 #
14691 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14692 # 2006, 2007, 2008 Free Software Foundation, Inc.
14693 # Written by Gordon Matzigkeit, 1996
14694 #
14695 # This file is part of GNU Libtool.
14696 #
14697 # GNU Libtool is free software; you can redistribute it and/or
14698 # modify it under the terms of the GNU General Public License as
14699 # published by the Free Software Foundation; either version 2 of
14700 # the License, or (at your option) any later version.
14701 #
14702 # As a special exception to the GNU General Public License,
14703 # if you distribute this file as part of a program or library that
14704 # is built using GNU Libtool, you may include this file under the
14705 # same distribution terms that you use for the rest of that program.
14706 #
14707 # GNU Libtool is distributed in the hope that it will be useful,
14708 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14709 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14710 # GNU General Public License for more details.
14711 #
14712 # You should have received a copy of the GNU General Public License
14713 # along with GNU Libtool; see the file COPYING. If not, a copy
14714 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14715 # obtained by writing to the Free Software Foundation, Inc.,
14716 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14717
14718
14719 # The names of the tagged configurations supported by this script.
14720 available_tags=""
14721
14722 # ### BEGIN LIBTOOL CONFIG
14723
14724 # Which release of libtool.m4 was used?
14725 macro_version=$macro_version
14726 macro_revision=$macro_revision
14727
14728 # Whether or not to build shared libraries.
14729 build_libtool_libs=$enable_shared
14730
14731 # Whether or not to build static libraries.
14732 build_old_libs=$enable_static
14733
14734 # What type of objects to build.
14735 pic_mode=$pic_mode
14736
14737 # Whether or not to optimize for fast installation.
14738 fast_install=$enable_fast_install
14739
14740 # The host system.
14741 host_alias=$host_alias
14742 host=$host
14743 host_os=$host_os
14744
14745 # The build system.
14746 build_alias=$build_alias
14747 build=$build
14748 build_os=$build_os
14749
14750 # A sed program that does not truncate output.
14751 SED=$lt_SED
14752
14753 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14754 Xsed="\$SED -e 1s/^X//"
14755
14756 # A grep program that handles long lines.
14757 GREP=$lt_GREP
14758
14759 # An ERE matcher.
14760 EGREP=$lt_EGREP
14761
14762 # A literal string matcher.
14763 FGREP=$lt_FGREP
14764
14765 # A BSD- or MS-compatible name lister.
14766 NM=$lt_NM
14767
14768 # Whether we need soft or hard links.
14769 LN_S=$lt_LN_S
14770
14771 # What is the maximum length of a command?
14772 max_cmd_len=$max_cmd_len
14773
14774 # Object file suffix (normally "o").
14775 objext=$ac_objext
14776
14777 # Executable file suffix (normally "").
14778 exeext=$exeext
14779
14780 # whether the shell understands "unset".
14781 lt_unset=$lt_unset
14782
14783 # turn spaces into newlines.
14784 SP2NL=$lt_lt_SP2NL
14785
14786 # turn newlines into spaces.
14787 NL2SP=$lt_lt_NL2SP
14788
14789 # How to create reloadable object files.
14790 reload_flag=$lt_reload_flag
14791 reload_cmds=$lt_reload_cmds
14792
14793 # An object symbol dumper.
14794 OBJDUMP=$lt_OBJDUMP
14795
14796 # Method to check whether dependent libraries are shared objects.
14797 deplibs_check_method=$lt_deplibs_check_method
14798
14799 # Command to use when deplibs_check_method == "file_magic".
14800 file_magic_cmd=$lt_file_magic_cmd
14801
14802 # The archiver.
14803 AR=$lt_AR
14804 AR_FLAGS=$lt_AR_FLAGS
14805
14806 # A symbol stripping program.
14807 STRIP=$lt_STRIP
14808
14809 # Commands used to install an old-style archive.
14810 RANLIB=$lt_RANLIB
14811 old_postinstall_cmds=$lt_old_postinstall_cmds
14812 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14813
14814 # A C compiler.
14815 LTCC=$lt_CC
14816
14817 # LTCC compiler flags.
14818 LTCFLAGS=$lt_CFLAGS
14819
14820 # Take the output of nm and produce a listing of raw symbols and C names.
14821 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14822
14823 # Transform the output of nm in a proper C declaration.
14824 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14825
14826 # Transform the output of nm in a C name address pair.
14827 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14828
14829 # Transform the output of nm in a C name address pair when lib prefix is needed.
14830 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14831
14832 # The name of the directory that contains temporary libtool files.
14833 objdir=$objdir
14834
14835 # Shell to use when invoking shell scripts.
14836 SHELL=$lt_SHELL
14837
14838 # An echo program that does not interpret backslashes.
14839 ECHO=$lt_ECHO
14840
14841 # Used to examine libraries when file_magic_cmd begins with "file".
14842 MAGIC_CMD=$MAGIC_CMD
14843
14844 # Must we lock files when doing compilation?
14845 need_locks=$lt_need_locks
14846
14847 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14848 DSYMUTIL=$lt_DSYMUTIL
14849
14850 # Tool to change global to local symbols on Mac OS X.
14851 NMEDIT=$lt_NMEDIT
14852
14853 # Tool to manipulate fat objects and archives on Mac OS X.
14854 LIPO=$lt_LIPO
14855
14856 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14857 OTOOL=$lt_OTOOL
14858
14859 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14860 OTOOL64=$lt_OTOOL64
14861
14862 # Old archive suffix (normally "a").
14863 libext=$libext
14864
14865 # Shared library suffix (normally ".so").
14866 shrext_cmds=$lt_shrext_cmds
14867
14868 # The commands to extract the exported symbol list from a shared archive.
14869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14870
14871 # Variables whose values should be saved in libtool wrapper scripts and
14872 # restored at link time.
14873 variables_saved_for_relink=$lt_variables_saved_for_relink
14874
14875 # Do we need the "lib" prefix for modules?
14876 need_lib_prefix=$need_lib_prefix
14877
14878 # Do we need a version for libraries?
14879 need_version=$need_version
14880
14881 # Library versioning type.
14882 version_type=$version_type
14883
14884 # Shared library runtime path variable.
14885 runpath_var=$runpath_var
14886
14887 # Shared library path variable.
14888 shlibpath_var=$shlibpath_var
14889
14890 # Is shlibpath searched before the hard-coded library search path?
14891 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14892
14893 # Format of library name prefix.
14894 libname_spec=$lt_libname_spec
14895
14896 # List of archive names. First name is the real one, the rest are links.
14897 # The last name is the one that the linker finds with -lNAME
14898 library_names_spec=$lt_library_names_spec
14899
14900 # The coded name of the library, if different from the real name.
14901 soname_spec=$lt_soname_spec
14902
14903 # Command to use after installation of a shared archive.
14904 postinstall_cmds=$lt_postinstall_cmds
14905
14906 # Command to use after uninstallation of a shared archive.
14907 postuninstall_cmds=$lt_postuninstall_cmds
14908
14909 # Commands used to finish a libtool library installation in a directory.
14910 finish_cmds=$lt_finish_cmds
14911
14912 # As "finish_cmds", except a single script fragment to be evaled but
14913 # not shown.
14914 finish_eval=$lt_finish_eval
14915
14916 # Whether we should hardcode library paths into libraries.
14917 hardcode_into_libs=$hardcode_into_libs
14918
14919 # Compile-time system search path for libraries.
14920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14921
14922 # Run-time system search path for libraries.
14923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14924
14925 # Whether dlopen is supported.
14926 dlopen_support=$enable_dlopen
14927
14928 # Whether dlopen of programs is supported.
14929 dlopen_self=$enable_dlopen_self
14930
14931 # Whether dlopen of statically linked programs is supported.
14932 dlopen_self_static=$enable_dlopen_self_static
14933
14934 # Commands to strip libraries.
14935 old_striplib=$lt_old_striplib
14936 striplib=$lt_striplib
14937
14938
14939 # The linker used to build libraries.
14940 LD=$lt_LD
14941
14942 # Commands used to build an old-style archive.
14943 old_archive_cmds=$lt_old_archive_cmds
14944
14945 # A language specific compiler.
14946 CC=$lt_compiler
14947
14948 # Is the compiler the GNU compiler?
14949 with_gcc=$GCC
14950
14951 # Compiler flag to turn off builtin functions.
14952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14953
14954 # How to pass a linker flag through the compiler.
14955 wl=$lt_lt_prog_compiler_wl
14956
14957 # Additional compiler flags for building library objects.
14958 pic_flag=$lt_lt_prog_compiler_pic
14959
14960 # Compiler flag to prevent dynamic linking.
14961 link_static_flag=$lt_lt_prog_compiler_static
14962
14963 # Does compiler simultaneously support -c and -o options?
14964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14965
14966 # Whether or not to add -lc for building shared libraries.
14967 build_libtool_need_lc=$archive_cmds_need_lc
14968
14969 # Whether or not to disallow shared libs when runtime libs are static.
14970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14971
14972 # Compiler flag to allow reflexive dlopens.
14973 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14974
14975 # Compiler flag to generate shared objects directly from archives.
14976 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14977
14978 # Whether the compiler copes with passing no objects directly.
14979 compiler_needs_object=$lt_compiler_needs_object
14980
14981 # Create an old-style archive from a shared archive.
14982 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14983
14984 # Create a temporary old-style archive to link instead of a shared archive.
14985 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14986
14987 # Commands used to build a shared archive.
14988 archive_cmds=$lt_archive_cmds
14989 archive_expsym_cmds=$lt_archive_expsym_cmds
14990
14991 # Commands used to build a loadable module if different from building
14992 # a shared archive.
14993 module_cmds=$lt_module_cmds
14994 module_expsym_cmds=$lt_module_expsym_cmds
14995
14996 # Whether we are building with GNU ld or not.
14997 with_gnu_ld=$lt_with_gnu_ld
14998
14999 # Flag that allows shared libraries with undefined symbols to be built.
15000 allow_undefined_flag=$lt_allow_undefined_flag
15001
15002 # Flag that enforces no undefined symbols.
15003 no_undefined_flag=$lt_no_undefined_flag
15004
15005 # Flag to hardcode \$libdir into a binary during linking.
15006 # This must work even if \$libdir does not exist
15007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15008
15009 # If ld is used when linking, flag to hardcode \$libdir into a binary
15010 # during linking. This must work even if \$libdir does not exist.
15011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15012
15013 # Whether we need a single "-rpath" flag with a separated argument.
15014 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15015
15016 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15017 # DIR into the resulting binary.
15018 hardcode_direct=$hardcode_direct
15019
15020 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15021 # DIR into the resulting binary and the resulting library dependency is
15022 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15023 # library is relocated.
15024 hardcode_direct_absolute=$hardcode_direct_absolute
15025
15026 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15027 # into the resulting binary.
15028 hardcode_minus_L=$hardcode_minus_L
15029
15030 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15031 # into the resulting binary.
15032 hardcode_shlibpath_var=$hardcode_shlibpath_var
15033
15034 # Set to "yes" if building a shared library automatically hardcodes DIR
15035 # into the library and all subsequent libraries and executables linked
15036 # against it.
15037 hardcode_automatic=$hardcode_automatic
15038
15039 # Set to yes if linker adds runtime paths of dependent libraries
15040 # to runtime path list.
15041 inherit_rpath=$inherit_rpath
15042
15043 # Whether libtool must link a program against all its dependency libraries.
15044 link_all_deplibs=$link_all_deplibs
15045
15046 # Fix the shell variable \$srcfile for the compiler.
15047 fix_srcfile_path=$lt_fix_srcfile_path
15048
15049 # Set to "yes" if exported symbols are required.
15050 always_export_symbols=$always_export_symbols
15051
15052 # The commands to list exported symbols.
15053 export_symbols_cmds=$lt_export_symbols_cmds
15054
15055 # Symbols that should not be listed in the preloaded symbols.
15056 exclude_expsyms=$lt_exclude_expsyms
15057
15058 # Symbols that must always be exported.
15059 include_expsyms=$lt_include_expsyms
15060
15061 # Commands necessary for linking programs (against libraries) with templates.
15062 prelink_cmds=$lt_prelink_cmds
15063
15064 # Specify filename containing input files.
15065 file_list_spec=$lt_file_list_spec
15066
15067 # How to hardcode a shared library path into an executable.
15068 hardcode_action=$hardcode_action
15069
15070 # ### END LIBTOOL CONFIG
15071
15072 _LT_EOF
15073
15074 case $host_os in
15075 aix3*)
15076 cat <<\_LT_EOF >> "$cfgfile"
15077 # AIX sometimes has problems with the GCC collect2 program. For some
15078 # reason, if we set the COLLECT_NAMES environment variable, the problems
15079 # vanish in a puff of smoke.
15080 if test "X${COLLECT_NAMES+set}" != Xset; then
15081 COLLECT_NAMES=
15082 export COLLECT_NAMES
15083 fi
15084 _LT_EOF
15085 ;;
15086 esac
15087
15088
15089 ltmain="$ac_aux_dir/ltmain.sh"
15090
15091
15092 # We use sed instead of cat because bash on DJGPP gets confused if
15093 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15094 # text mode, it properly converts lines to CR/LF. This bash problem
15095 # is reportedly fixed, but why not run on old versions too?
15096 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15097 || (rm -f "$cfgfile"; exit 1)
15098
15099 case $xsi_shell in
15100 yes)
15101 cat << \_LT_EOF >> "$cfgfile"
15102
15103 # func_dirname file append nondir_replacement
15104 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15105 # otherwise set result to NONDIR_REPLACEMENT.
15106 func_dirname ()
15107 {
15108 case ${1} in
15109 */*) func_dirname_result="${1%/*}${2}" ;;
15110 * ) func_dirname_result="${3}" ;;
15111 esac
15112 }
15113
15114 # func_basename file
15115 func_basename ()
15116 {
15117 func_basename_result="${1##*/}"
15118 }
15119
15120 # func_dirname_and_basename file append nondir_replacement
15121 # perform func_basename and func_dirname in a single function
15122 # call:
15123 # dirname: Compute the dirname of FILE. If nonempty,
15124 # add APPEND to the result, otherwise set result
15125 # to NONDIR_REPLACEMENT.
15126 # value returned in "$func_dirname_result"
15127 # basename: Compute filename of FILE.
15128 # value retuned in "$func_basename_result"
15129 # Implementation must be kept synchronized with func_dirname
15130 # and func_basename. For efficiency, we do not delegate to
15131 # those functions but instead duplicate the functionality here.
15132 func_dirname_and_basename ()
15133 {
15134 case ${1} in
15135 */*) func_dirname_result="${1%/*}${2}" ;;
15136 * ) func_dirname_result="${3}" ;;
15137 esac
15138 func_basename_result="${1##*/}"
15139 }
15140
15141 # func_stripname prefix suffix name
15142 # strip PREFIX and SUFFIX off of NAME.
15143 # PREFIX and SUFFIX must not contain globbing or regex special
15144 # characters, hashes, percent signs, but SUFFIX may contain a leading
15145 # dot (in which case that matches only a dot).
15146 func_stripname ()
15147 {
15148 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15149 # positional parameters, so assign one to ordinary parameter first.
15150 func_stripname_result=${3}
15151 func_stripname_result=${func_stripname_result#"${1}"}
15152 func_stripname_result=${func_stripname_result%"${2}"}
15153 }
15154
15155 # func_opt_split
15156 func_opt_split ()
15157 {
15158 func_opt_split_opt=${1%%=*}
15159 func_opt_split_arg=${1#*=}
15160 }
15161
15162 # func_lo2o object
15163 func_lo2o ()
15164 {
15165 case ${1} in
15166 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15167 *) func_lo2o_result=${1} ;;
15168 esac
15169 }
15170
15171 # func_xform libobj-or-source
15172 func_xform ()
15173 {
15174 func_xform_result=${1%.*}.lo
15175 }
15176
15177 # func_arith arithmetic-term...
15178 func_arith ()
15179 {
15180 func_arith_result=$(( $* ))
15181 }
15182
15183 # func_len string
15184 # STRING may not start with a hyphen.
15185 func_len ()
15186 {
15187 func_len_result=${#1}
15188 }
15189
15190 _LT_EOF
15191 ;;
15192 *) # Bourne compatible functions.
15193 cat << \_LT_EOF >> "$cfgfile"
15194
15195 # func_dirname file append nondir_replacement
15196 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15197 # otherwise set result to NONDIR_REPLACEMENT.
15198 func_dirname ()
15199 {
15200 # Extract subdirectory from the argument.
15201 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15202 if test "X$func_dirname_result" = "X${1}"; then
15203 func_dirname_result="${3}"
15204 else
15205 func_dirname_result="$func_dirname_result${2}"
15206 fi
15207 }
15208
15209 # func_basename file
15210 func_basename ()
15211 {
15212 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15213 }
15214
15215
15216 # func_stripname prefix suffix name
15217 # strip PREFIX and SUFFIX off of NAME.
15218 # PREFIX and SUFFIX must not contain globbing or regex special
15219 # characters, hashes, percent signs, but SUFFIX may contain a leading
15220 # dot (in which case that matches only a dot).
15221 # func_strip_suffix prefix name
15222 func_stripname ()
15223 {
15224 case ${2} in
15225 .*) func_stripname_result=`$ECHO "X${3}" \
15226 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15227 *) func_stripname_result=`$ECHO "X${3}" \
15228 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15229 esac
15230 }
15231
15232 # sed scripts:
15233 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15234 my_sed_long_arg='1s/^-[^=]*=//'
15235
15236 # func_opt_split
15237 func_opt_split ()
15238 {
15239 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15240 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15241 }
15242
15243 # func_lo2o object
15244 func_lo2o ()
15245 {
15246 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15247 }
15248
15249 # func_xform libobj-or-source
15250 func_xform ()
15251 {
15252 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15253 }
15254
15255 # func_arith arithmetic-term...
15256 func_arith ()
15257 {
15258 func_arith_result=`expr "$@"`
15259 }
15260
15261 # func_len string
15262 # STRING may not start with a hyphen.
15263 func_len ()
15264 {
15265 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15266 }
15267
15268 _LT_EOF
15269 esac
15270
15271 case $lt_shell_append in
15272 yes)
15273 cat << \_LT_EOF >> "$cfgfile"
15274
15275 # func_append var value
15276 # Append VALUE to the end of shell variable VAR.
15277 func_append ()
15278 {
15279 eval "$1+=\$2"
15280 }
15281 _LT_EOF
15282 ;;
15283 *)
15284 cat << \_LT_EOF >> "$cfgfile"
15285
15286 # func_append var value
15287 # Append VALUE to the end of shell variable VAR.
15288 func_append ()
15289 {
15290 eval "$1=\$$1\$2"
15291 }
15292
15293 _LT_EOF
15294 ;;
15295 esac
15296
15297
15298 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15299 || (rm -f "$cfgfile"; exit 1)
15300
15301 mv -f "$cfgfile" "$ofile" ||
15302 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15303 chmod +x "$ofile"
15304
15305 ;;
15306
15307 esac
15308 done # for ac_tag
15309
15310
15311 as_fn_exit 0
15312 _ACEOF
15313 ac_clean_files=$ac_clean_files_save
15314
15315 test $ac_write_fail = 0 ||
15316 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15317
15318
15319 # configure is writing to config.log, and then calls config.status.
15320 # config.status does its own redirection, appending to config.log.
15321 # Unfortunately, on DOS this fails, as config.log is still kept open
15322 # by configure, so config.status won't be able to write to it; its
15323 # output is simply discarded. So we exec the FD to /dev/null,
15324 # effectively closing config.log, so it can be properly (re)opened and
15325 # appended to by config.status. When coming back to configure, we
15326 # need to make the FD available again.
15327 if test "$no_create" != yes; then
15328 ac_cs_success=:
15329 ac_config_status_args=
15330 test "$silent" = yes &&
15331 ac_config_status_args="$ac_config_status_args --quiet"
15332 exec 5>/dev/null
15333 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15334 exec 5>>config.log
15335 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15336 # would make configure fail if this is the last instruction.
15337 $ac_cs_success || as_fn_exit $?
15338 fi
15339 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15341 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15342 fi
15343
15344