configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libSM 1.2.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 as_awk_strverscmp='
549 # Use only awk features that work with 7th edition Unix awk (1978).
550 # My, what an old awk you have, Mr. Solaris!
551 END {
552 while (length(v1) && length(v2)) {
553 # Set d1 to be the next thing to compare from v1, and likewise for d2.
554 # Normally this is a single character, but if v1 and v2 contain digits,
555 # compare them as integers and fractions as strverscmp does.
556 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
557 # Split v1 and v2 into their leading digit string components d1 and d2,
558 # and advance v1 and v2 past the leading digit strings.
559 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
560 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
561 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
562 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
563 if (d1 ~ /^0/) {
564 if (d2 ~ /^0/) {
565 # Compare two fractions.
566 while (d1 ~ /^0/ && d2 ~ /^0/) {
567 d1 = substr(d1, 2); len1--
568 d2 = substr(d2, 2); len2--
569 }
570 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
571 # The two components differ in length, and the common prefix
572 # contains only leading zeros. Consider the longer to be less.
573 d1 = -len1
574 d2 = -len2
575 } else {
576 # Otherwise, compare as strings.
577 d1 = "x" d1
578 d2 = "x" d2
579 }
580 } else {
581 # A fraction is less than an integer.
582 exit 1
583 }
584 } else {
585 if (d2 ~ /^0/) {
586 # An integer is greater than a fraction.
587 exit 2
588 } else {
589 # Compare two integers.
590 d1 += 0
591 d2 += 0
592 }
593 }
594 } else {
595 # The normal case, without worrying about digits.
596 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
597 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
598 }
599 if (d1 < d2) exit 1
600 if (d1 > d2) exit 2
601 }
602 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
603 # which mishandles some comparisons of empty strings to integers.
604 if (length(v2)) exit 1
605 if (length(v1)) exit 2
606 }
607 '
608 SHELL=${CONFIG_SHELL-/bin/sh}
609
610
611 test -n "$DJDIR" || exec 7<&0 </dev/null
612 exec 6>&1
613
614 # Name of the host.
615 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616 # so uname gets run too.
617 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619 #
620 # Initializations.
621 #
622 ac_default_prefix=/usr/local
623 ac_clean_files=
624 ac_config_libobj_dir=.
625 LIBOBJS=
626 cross_compiling=no
627 subdirs=
628 MFLAGS=
629 MAKEFLAGS=
630
631 # Identity of this package.
632 PACKAGE_NAME='libSM'
633 PACKAGE_TARNAME='libSM'
634 PACKAGE_VERSION='1.2.0'
635 PACKAGE_STRING='libSM 1.2.0'
636 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637 PACKAGE_URL=''
638
639 ac_unique_file="Makefile.am"
640 # Factoring default headers for most tests.
641 ac_includes_default="\
642 #include <stdio.h>
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef STDC_HEADERS
650 # include <stdlib.h>
651 # include <stddef.h>
652 #else
653 # ifdef HAVE_STDLIB_H
654 # include <stdlib.h>
655 # endif
656 #endif
657 #ifdef HAVE_STRING_H
658 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659 # include <memory.h>
660 # endif
661 # include <string.h>
662 #endif
663 #ifdef HAVE_STRINGS_H
664 # include <strings.h>
665 #endif
666 #ifdef HAVE_INTTYPES_H
667 # include <inttypes.h>
668 #endif
669 #ifdef HAVE_STDINT_H
670 # include <stdint.h>
671 #endif
672 #ifdef HAVE_UNISTD_H
673 # include <unistd.h>
674 #endif"
675
676 ac_subst_vars='am__EXEEXT_FALSE
677 am__EXEEXT_TRUE
678 LTLIBOBJS
679 LIBOBJS
680 WITH_LIBUUID_FALSE
681 WITH_LIBUUID_TRUE
682 LIBUUID_LIBS
683 LIBUUID_CFLAGS
684 XTRANS_LIBS
685 XTRANS_CFLAGS
686 SM_LIBS
687 SM_CFLAGS
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 RANLIB
694 AR
695 OBJDUMP
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 LIBTOOL
703 HAVE_STYLESHEETS_FALSE
704 HAVE_STYLESHEETS_TRUE
705 XSL_STYLESHEET
706 STYLESHEET_SRCDIR
707 XORG_SGML_PATH
708 HAVE_FOP_FALSE
709 HAVE_FOP_TRUE
710 FOP
711 HAVE_XMLTO_FALSE
712 HAVE_XMLTO_TRUE
713 HAVE_XMLTO_TEXT_FALSE
714 HAVE_XMLTO_TEXT_TRUE
715 XMLTO
716 ENABLE_DOCS_FALSE
717 ENABLE_DOCS_TRUE
718 AM_BACKSLASH
719 AM_DEFAULT_VERBOSITY
720 MAN_SUBSTS
721 XORG_MAN_PAGE
722 ADMIN_MAN_DIR
723 DRIVER_MAN_DIR
724 MISC_MAN_DIR
725 FILE_MAN_DIR
726 LIB_MAN_DIR
727 APP_MAN_DIR
728 ADMIN_MAN_SUFFIX
729 DRIVER_MAN_SUFFIX
730 MISC_MAN_SUFFIX
731 FILE_MAN_SUFFIX
732 LIB_MAN_SUFFIX
733 APP_MAN_SUFFIX
734 SED
735 host_os
736 host_vendor
737 host_cpu
738 host
739 build_os
740 build_vendor
741 build_cpu
742 build
743 INSTALL_CMD
744 PKG_CONFIG
745 CHANGELOG_CMD
746 CWARNFLAGS
747 EGREP
748 GREP
749 CPP
750 am__fastdepCC_FALSE
751 am__fastdepCC_TRUE
752 CCDEPMODE
753 AMDEPBACKSLASH
754 AMDEP_FALSE
755 AMDEP_TRUE
756 am__quote
757 am__include
758 DEPDIR
759 OBJEXT
760 EXEEXT
761 ac_ct_CC
762 CPPFLAGS
763 LDFLAGS
764 CFLAGS
765 CC
766 MAINT
767 MAINTAINER_MODE_FALSE
768 MAINTAINER_MODE_TRUE
769 am__untar
770 am__tar
771 AMTAR
772 am__leading_dot
773 SET_MAKE
774 AWK
775 mkdir_p
776 MKDIR_P
777 INSTALL_STRIP_PROGRAM
778 STRIP
779 install_sh
780 MAKEINFO
781 AUTOHEADER
782 AUTOMAKE
783 AUTOCONF
784 ACLOCAL
785 VERSION
786 PACKAGE
787 CYGPATH_W
788 am__isrc
789 INSTALL_DATA
790 INSTALL_SCRIPT
791 INSTALL_PROGRAM
792 target_alias
793 host_alias
794 build_alias
795 LIBS
796 ECHO_T
797 ECHO_N
798 ECHO_C
799 DEFS
800 mandir
801 localedir
802 libdir
803 psdir
804 pdfdir
805 dvidir
806 htmldir
807 infodir
808 docdir
809 oldincludedir
810 includedir
811 localstatedir
812 sharedstatedir
813 sysconfdir
814 datadir
815 datarootdir
816 libexecdir
817 sbindir
818 bindir
819 program_transform_name
820 prefix
821 exec_prefix
822 PACKAGE_URL
823 PACKAGE_BUGREPORT
824 PACKAGE_STRING
825 PACKAGE_VERSION
826 PACKAGE_TARNAME
827 PACKAGE_NAME
828 PATH_SEPARATOR
829 SHELL'
830 ac_subst_files=''
831 ac_user_opts='
832 enable_option_checking
833 enable_maintainer_mode
834 enable_dependency_tracking
835 enable_strict_compilation
836 enable_silent_rules
837 enable_docs
838 with_xmlto
839 with_fop
840 enable_shared
841 enable_static
842 with_pic
843 enable_fast_install
844 with_gnu_ld
845 enable_libtool_lock
846 enable_unix_transport
847 enable_tcp_transport
848 enable_ipv6
849 enable_local_transport
850 with_libuuid
851 '
852 ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CPP
861 PKG_CONFIG
862 XMLTO
863 FOP
864 SM_CFLAGS
865 SM_LIBS
866 XTRANS_CFLAGS
867 XTRANS_LIBS
868 LIBUUID_CFLAGS
869 LIBUUID_LIBS'
870
871
872 # Initialize some variables set by options.
873 ac_init_help=
874 ac_init_version=false
875 ac_unrecognized_opts=
876 ac_unrecognized_sep=
877 # The variables have the same names as the options, with
878 # dashes changed to underlines.
879 cache_file=/dev/null
880 exec_prefix=NONE
881 no_create=
882 no_recursion=
883 prefix=NONE
884 program_prefix=NONE
885 program_suffix=NONE
886 program_transform_name=s,x,x,
887 silent=
888 site=
889 srcdir=
890 verbose=
891 x_includes=NONE
892 x_libraries=NONE
893
894 # Installation directory options.
895 # These are left unexpanded so users can "make install exec_prefix=/foo"
896 # and all the variables that are supposed to be based on exec_prefix
897 # by default will actually change.
898 # Use braces instead of parens because sh, perl, etc. also accept them.
899 # (The list follows the same order as the GNU Coding Standards.)
900 bindir='${exec_prefix}/bin'
901 sbindir='${exec_prefix}/sbin'
902 libexecdir='${exec_prefix}/libexec'
903 datarootdir='${prefix}/share'
904 datadir='${datarootdir}'
905 sysconfdir='${prefix}/etc'
906 sharedstatedir='${prefix}/com'
907 localstatedir='${prefix}/var'
908 includedir='${prefix}/include'
909 oldincludedir='/usr/include'
910 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
911 infodir='${datarootdir}/info'
912 htmldir='${docdir}'
913 dvidir='${docdir}'
914 pdfdir='${docdir}'
915 psdir='${docdir}'
916 libdir='${exec_prefix}/lib'
917 localedir='${datarootdir}/locale'
918 mandir='${datarootdir}/man'
919
920 ac_prev=
921 ac_dashdash=
922 for ac_option
923 do
924 # If the previous option needs an argument, assign it.
925 if test -n "$ac_prev"; then
926 eval $ac_prev=\$ac_option
927 ac_prev=
928 continue
929 fi
930
931 case $ac_option in
932 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 *=) ac_optarg= ;;
934 *) ac_optarg=yes ;;
935 esac
936
937 # Accept the important Cygnus configure options, so we can diagnose typos.
938
939 case $ac_dashdash$ac_option in
940 --)
941 ac_dashdash=yes ;;
942
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 ac_prev=bindir ;;
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 bindir=$ac_optarg ;;
947
948 -build | --build | --buil | --bui | --bu)
949 ac_prev=build_alias ;;
950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951 build_alias=$ac_optarg ;;
952
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958 cache_file=$ac_optarg ;;
959
960 --config-cache | -C)
961 cache_file=config.cache ;;
962
963 -datadir | --datadir | --datadi | --datad)
964 ac_prev=datadir ;;
965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
966 datadir=$ac_optarg ;;
967
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
974
975 -disable-* | --disable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=no ;;
990
991 -docdir | --docdir | --docdi | --doc | --do)
992 ac_prev=docdir ;;
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 docdir=$ac_optarg ;;
995
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 ac_prev=dvidir ;;
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 dvidir=$ac_optarg ;;
1000
1001 -enable-* | --enable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error $? "invalid feature name: $ac_useropt"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1009 *"
1010 "enable_$ac_useropt"
1011 "*) ;;
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1014 esac
1015 eval enable_$ac_useropt=\$ac_optarg ;;
1016
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
1024 exec_prefix=$ac_optarg ;;
1025
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1028 with_gas=yes ;;
1029
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
1036
1037 -host | --host | --hos | --ho)
1038 ac_prev=host_alias ;;
1039 -host=* | --host=* | --hos=* | --ho=*)
1040 host_alias=$ac_optarg ;;
1041
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 ac_prev=htmldir ;;
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 | --ht=*)
1046 htmldir=$ac_optarg ;;
1047
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
1053 includedir=$ac_optarg ;;
1054
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 ac_prev=infodir ;;
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058 infodir=$ac_optarg ;;
1059
1060 -libdir | --libdir | --libdi | --libd)
1061 ac_prev=libdir ;;
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063 libdir=$ac_optarg ;;
1064
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
1070 libexecdir=$ac_optarg ;;
1071
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1076
1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
1078 | --localstate | --localstat | --localsta | --localst | --locals)
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082 localstatedir=$ac_optarg ;;
1083
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 ac_prev=mandir ;;
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087 mandir=$ac_optarg ;;
1088
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1091 with_fp=no ;;
1092
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094 | --no-cr | --no-c | -n)
1095 no_create=yes ;;
1096
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 no_recursion=yes ;;
1100
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108 oldincludedir=$ac_optarg ;;
1109
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 ac_prev=prefix ;;
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113 prefix=$ac_optarg ;;
1114
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120 program_prefix=$ac_optarg ;;
1121
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127 program_suffix=$ac_optarg ;;
1128
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
1144 program_transform_name=$ac_optarg ;;
1145
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 ac_prev=pdfdir ;;
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1150
1151 -psdir | --psdir | --psdi | --psd | --ps)
1152 ac_prev=psdir ;;
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 psdir=$ac_optarg ;;
1155
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 silent=yes ;;
1159
1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 ac_prev=sbindir ;;
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 | --sbi=* | --sb=*)
1164 sbindir=$ac_optarg ;;
1165
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1169 | --sha | --sh)
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 | --sha=* | --sh=*)
1175 sharedstatedir=$ac_optarg ;;
1176
1177 -site | --site | --sit)
1178 ac_prev=site ;;
1179 -site=* | --site=* | --sit=*)
1180 site=$ac_optarg ;;
1181
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 ac_prev=srcdir ;;
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185 srcdir=$ac_optarg ;;
1186
1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192 sysconfdir=$ac_optarg ;;
1193
1194 -target | --target | --targe | --targ | --tar | --ta | --t)
1195 ac_prev=target_alias ;;
1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197 target_alias=$ac_optarg ;;
1198
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 verbose=yes ;;
1201
1202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
1204
1205 -with-* | --with-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=\$ac_optarg ;;
1220
1221 -without-* | --without-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error $? "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=no ;;
1236
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1240
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1247
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1254
1255 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256 Try \`$0 --help' for more information"
1257 ;;
1258
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 case $ac_envvar in #(
1263 '' | [0-9]* | *[!_$as_cr_alnum]* )
1264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1265 esac
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1268
1269 *)
1270 # FIXME: should be removed in autoconf 3.0.
1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1275 ;;
1276
1277 esac
1278 done
1279
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 as_fn_error $? "missing argument to $ac_option"
1283 fi
1284
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1287 no) ;;
1288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 esac
1291 fi
1292
1293 # Check all directory arguments for consistency.
1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1298 do
1299 eval ac_val=\$$ac_var
1300 # Remove trailing slashes.
1301 case $ac_val in
1302 */ )
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
1305 esac
1306 # Be sure to have absolute directory names.
1307 case $ac_val in
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 esac
1311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used" >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
1373 srcdir=$ac_confdir
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 srcdir=..
1376 fi
1377 else
1378 ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387 pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412 \`configure' configures libSM 1.2.0 to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/libSM]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1465 _ACEOF
1466
1467 cat <<\_ACEOF
1468
1469 Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of libSM 1.2.0:";;
1483 esac
1484 cat <<\_ACEOF
1485
1486 Optional Features:
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-maintainer-mode enable make rules and dependencies not useful
1491 (and sometimes confusing) to the casual installer
1492 --disable-dependency-tracking speeds up one-time build
1493 --enable-dependency-tracking do not reject slow dependency extractors
1494 --enable-strict-compilation
1495 Enable all warnings from compiler and make them
1496 errors (default: disabled)
1497 --enable-silent-rules less verbose build output (undo: `make V=1')
1498 --disable-silent-rules verbose build output (undo: `make V=0')
1499 --enable-docs Enable building the documentation (default: yes)
1500 --enable-shared[=PKGS] build shared libraries [default=yes]
1501 --enable-static[=PKGS] build static libraries [default=yes]
1502 --enable-fast-install[=PKGS]
1503 optimize for fast installation [default=yes]
1504 --disable-libtool-lock avoid locking (might break parallel builds)
1505 --enable-unix-transport Enable UNIX domain socket transport
1506 --enable-tcp-transport Enable TCP socket transport
1507 --enable-ipv6 Enable IPv6 support
1508 --enable-local-transport
1509 Enable os-specific local transport
1510
1511 Optional Packages:
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-xmlto Use xmlto to regenerate documentation (default: yes,
1515 if installed)
1516 --with-fop Use fop to regenerate documentation (default: yes,
1517 if installed)
1518 --with-pic try to use only PIC/non-PIC objects [default=use
1519 both]
1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521 --with-libuuid Build with libuuid support for client IDs
1522
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 CPP C preprocessor
1532 PKG_CONFIG path to pkg-config utility
1533 XMLTO Path to xmlto command
1534 FOP Path to fop command
1535 SM_CFLAGS C compiler flags for SM, overriding pkg-config
1536 SM_LIBS linker flags for SM, overriding pkg-config
1537 XTRANS_CFLAGS
1538 C compiler flags for XTRANS, overriding pkg-config
1539 XTRANS_LIBS linker flags for XTRANS, overriding pkg-config
1540 LIBUUID_CFLAGS
1541 C compiler flags for LIBUUID, overriding pkg-config
1542 LIBUUID_LIBS
1543 linker flags for LIBUUID, overriding pkg-config
1544
1545 Use these variables to override the choices made by `configure' or to help
1546 it to find libraries and programs with nonstandard names/locations.
1547
1548 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1549 _ACEOF
1550 ac_status=$?
1551 fi
1552
1553 if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556 test -d "$ac_dir" ||
1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 continue
1559 ac_builddir=.
1560
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *)
1564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1576
1577 case $srcdir in
1578 .) # We are building in place.
1579 ac_srcdir=.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 libSM configure 1.2.0
1612 generated by GNU Autoconf 2.68
1613
1614 Copyright (C) 2010 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1619 fi
1620
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1624
1625 # ac_fn_c_try_compile LINENO
1626 # --------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_compile
1662
1663 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1664 # ---------------------------------------------
1665 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1666 # accordingly.
1667 ac_fn_c_check_decl ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 as_decl_name=`echo $2|sed 's/ *(.*//'`
1671 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1673 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1676 else
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 $4
1680 int
1681 main ()
1682 {
1683 #ifndef $as_decl_name
1684 #ifdef __cplusplus
1685 (void) $as_decl_use;
1686 #else
1687 (void) $as_decl_name;
1688 #endif
1689 #endif
1690
1691 ;
1692 return 0;
1693 }
1694 _ACEOF
1695 if ac_fn_c_try_compile "$LINENO"; then :
1696 eval "$3=yes"
1697 else
1698 eval "$3=no"
1699 fi
1700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701 fi
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707 } # ac_fn_c_check_decl
1708
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_cpp ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i && {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=1
1740 fi
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_cpp
1745
1746 # ac_fn_c_try_run LINENO
1747 # ----------------------
1748 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749 # that executables *can* be run.
1750 ac_fn_c_try_run ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_link"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_link") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764 { { case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_try") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; }; }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: program exited with status $ac_status" >&5
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=$ac_status
1781 fi
1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_run
1787
1788 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists and can be compiled using the include files in
1791 # INCLUDES, setting the cache variable VAR accordingly.
1792 ac_fn_c_check_header_compile ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 $4
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 eval "$3=yes"
1807 else
1808 eval "$3=no"
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 fi
1812 eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817 } # ac_fn_c_check_header_compile
1818
1819 # ac_fn_c_try_link LINENO
1820 # -----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_link ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext conftest$ac_exeext
1826 if { { ac_try="$ac_link"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 $as_test_x conftest$ac_exeext
1847 }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=1
1854 fi
1855 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857 # interfere with the next link command; also delete a directory that is
1858 # left behind by Apple's compiler. We do this before executing the actions.
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1862
1863 } # ac_fn_c_try_link
1864
1865 # ac_fn_c_check_func LINENO FUNC VAR
1866 # ----------------------------------
1867 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1868 ac_fn_c_check_func ()
1869 {
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1875 else
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1880 #define $2 innocuous_$2
1881
1882 /* System header to define __stub macros and hopefully few prototypes,
1883 which can conflict with char $2 (); below.
1884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885 <limits.h> exists even on freestanding compilers. */
1886
1887 #ifdef __STDC__
1888 # include <limits.h>
1889 #else
1890 # include <assert.h>
1891 #endif
1892
1893 #undef $2
1894
1895 /* Override any GCC internal prototype to avoid an error.
1896 Use char because int might match the return type of a GCC
1897 builtin and then its argument prototype would still apply. */
1898 #ifdef __cplusplus
1899 extern "C"
1900 #endif
1901 char $2 ();
1902 /* The GNU C library defines this for functions which it implements
1903 to always fail with ENOSYS. Some functions are actually named
1904 something starting with __ and the normal name is an alias. */
1905 #if defined __stub_$2 || defined __stub___$2
1906 choke me
1907 #endif
1908
1909 int
1910 main ()
1911 {
1912 return $2 ();
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_link "$LINENO"; then :
1918 eval "$3=yes"
1919 else
1920 eval "$3=no"
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext \
1923 conftest$ac_exeext conftest.$ac_ext
1924 fi
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930 } # ac_fn_c_check_func
1931
1932 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1933 # ----------------------------------------------------
1934 # Tries to find if the field MEMBER exists in type AGGR, after including
1935 # INCLUDES, setting cache variable VAR accordingly.
1936 ac_fn_c_check_member ()
1937 {
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1940 $as_echo_n "checking for $2.$3... " >&6; }
1941 if eval \${$4+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $5
1947 int
1948 main ()
1949 {
1950 static $2 ac_aggr;
1951 if (ac_aggr.$3)
1952 return 0;
1953 ;
1954 return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 eval "$4=yes"
1959 else
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1962 $5
1963 int
1964 main ()
1965 {
1966 static $2 ac_aggr;
1967 if (sizeof ac_aggr.$3)
1968 return 0;
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 eval "$4=yes"
1975 else
1976 eval "$4=no"
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 fi
1982 eval ac_res=\$$4
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987 } # ac_fn_c_check_member
1988
1989 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1990 # -------------------------------------------
1991 # Tests whether TYPE exists after having included INCLUDES, setting cache
1992 # variable VAR accordingly.
1993 ac_fn_c_check_type ()
1994 {
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 eval "$3=no"
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 $4
2005 int
2006 main ()
2007 {
2008 if (sizeof ($2))
2009 return 0;
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $4
2018 int
2019 main ()
2020 {
2021 if (sizeof (($2)))
2022 return 0;
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028
2029 else
2030 eval "$3=yes"
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 fi
2036 eval ac_res=\$$3
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040
2041 } # ac_fn_c_check_type
2042 cat >config.log <<_ACEOF
2043 This file contains any messages produced by compilers while
2044 running configure, to aid debugging if configure makes a mistake.
2045
2046 It was created by libSM $as_me 1.2.0, which was
2047 generated by GNU Autoconf 2.68. Invocation command line was
2048
2049 $ $0 $@
2050
2051 _ACEOF
2052 exec 5>>config.log
2053 {
2054 cat <<_ASUNAME
2055 ## --------- ##
2056 ## Platform. ##
2057 ## --------- ##
2058
2059 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2060 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2061 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2062 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2063 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2064
2065 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2066 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2067
2068 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2069 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2070 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2071 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2072 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2073 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2074 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2075
2076 _ASUNAME
2077
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 $as_echo "PATH: $as_dir"
2084 done
2085 IFS=$as_save_IFS
2086
2087 } >&5
2088
2089 cat >&5 <<_ACEOF
2090
2091
2092 ## ----------- ##
2093 ## Core tests. ##
2094 ## ----------- ##
2095
2096 _ACEOF
2097
2098
2099 # Keep a trace of the command line.
2100 # Strip out --no-create and --no-recursion so they do not pile up.
2101 # Strip out --silent because we don't want to record it for future runs.
2102 # Also quote any args containing shell meta-characters.
2103 # Make two passes to allow for proper duplicate-argument suppression.
2104 ac_configure_args=
2105 ac_configure_args0=
2106 ac_configure_args1=
2107 ac_must_keep_next=false
2108 for ac_pass in 1 2
2109 do
2110 for ac_arg
2111 do
2112 case $ac_arg in
2113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2115 | -silent | --silent | --silen | --sile | --sil)
2116 continue ;;
2117 *\'*)
2118 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2119 esac
2120 case $ac_pass in
2121 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2122 2)
2123 as_fn_append ac_configure_args1 " '$ac_arg'"
2124 if test $ac_must_keep_next = true; then
2125 ac_must_keep_next=false # Got value, back to normal.
2126 else
2127 case $ac_arg in
2128 *=* | --config-cache | -C | -disable-* | --disable-* \
2129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2131 | -with-* | --with-* | -without-* | --without-* | --x)
2132 case "$ac_configure_args0 " in
2133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2134 esac
2135 ;;
2136 -* ) ac_must_keep_next=true ;;
2137 esac
2138 fi
2139 as_fn_append ac_configure_args " '$ac_arg'"
2140 ;;
2141 esac
2142 done
2143 done
2144 { ac_configure_args0=; unset ac_configure_args0;}
2145 { ac_configure_args1=; unset ac_configure_args1;}
2146
2147 # When interrupted or exit'd, cleanup temporary files, and complete
2148 # config.log. We remove comments because anyway the quotes in there
2149 # would cause problems or look ugly.
2150 # WARNING: Use '\'' to represent an apostrophe within the trap.
2151 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2152 trap 'exit_status=$?
2153 # Save into config.log some information that might help in debugging.
2154 {
2155 echo
2156
2157 $as_echo "## ---------------- ##
2158 ## Cache variables. ##
2159 ## ---------------- ##"
2160 echo
2161 # The following way of writing the cache mishandles newlines in values,
2162 (
2163 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2164 eval ac_val=\$$ac_var
2165 case $ac_val in #(
2166 *${as_nl}*)
2167 case $ac_var in #(
2168 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2169 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2170 esac
2171 case $ac_var in #(
2172 _ | IFS | as_nl) ;; #(
2173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2174 *) { eval $ac_var=; unset $ac_var;} ;;
2175 esac ;;
2176 esac
2177 done
2178 (set) 2>&1 |
2179 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2180 *${as_nl}ac_space=\ *)
2181 sed -n \
2182 "s/'\''/'\''\\\\'\'''\''/g;
2183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2184 ;; #(
2185 *)
2186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2187 ;;
2188 esac |
2189 sort
2190 )
2191 echo
2192
2193 $as_echo "## ----------------- ##
2194 ## Output variables. ##
2195 ## ----------------- ##"
2196 echo
2197 for ac_var in $ac_subst_vars
2198 do
2199 eval ac_val=\$$ac_var
2200 case $ac_val in
2201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202 esac
2203 $as_echo "$ac_var='\''$ac_val'\''"
2204 done | sort
2205 echo
2206
2207 if test -n "$ac_subst_files"; then
2208 $as_echo "## ------------------- ##
2209 ## File substitutions. ##
2210 ## ------------------- ##"
2211 echo
2212 for ac_var in $ac_subst_files
2213 do
2214 eval ac_val=\$$ac_var
2215 case $ac_val in
2216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217 esac
2218 $as_echo "$ac_var='\''$ac_val'\''"
2219 done | sort
2220 echo
2221 fi
2222
2223 if test -s confdefs.h; then
2224 $as_echo "## ----------- ##
2225 ## confdefs.h. ##
2226 ## ----------- ##"
2227 echo
2228 cat confdefs.h
2229 echo
2230 fi
2231 test "$ac_signal" != 0 &&
2232 $as_echo "$as_me: caught signal $ac_signal"
2233 $as_echo "$as_me: exit $exit_status"
2234 } >&5
2235 rm -f core *.core core.conftest.* &&
2236 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2237 exit $exit_status
2238 ' 0
2239 for ac_signal in 1 2 13 15; do
2240 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2241 done
2242 ac_signal=0
2243
2244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2245 rm -f -r conftest* confdefs.h
2246
2247 $as_echo "/* confdefs.h */" > confdefs.h
2248
2249 # Predefined preprocessor variables.
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_NAME "$PACKAGE_NAME"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2257 _ACEOF
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_STRING "$PACKAGE_STRING"
2265 _ACEOF
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2269 _ACEOF
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_URL "$PACKAGE_URL"
2273 _ACEOF
2274
2275
2276 # Let the site file select an alternate cache file if it wants to.
2277 # Prefer an explicitly selected file to automatically selected ones.
2278 ac_site_file1=NONE
2279 ac_site_file2=NONE
2280 if test -n "$CONFIG_SITE"; then
2281 # We do not want a PATH search for config.site.
2282 case $CONFIG_SITE in #((
2283 -*) ac_site_file1=./$CONFIG_SITE;;
2284 */*) ac_site_file1=$CONFIG_SITE;;
2285 *) ac_site_file1=./$CONFIG_SITE;;
2286 esac
2287 elif test "x$prefix" != xNONE; then
2288 ac_site_file1=$prefix/share/config.site
2289 ac_site_file2=$prefix/etc/config.site
2290 else
2291 ac_site_file1=$ac_default_prefix/share/config.site
2292 ac_site_file2=$ac_default_prefix/etc/config.site
2293 fi
2294 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2295 do
2296 test "x$ac_site_file" = xNONE && continue
2297 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2299 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2300 sed 's/^/| /' "$ac_site_file" >&5
2301 . "$ac_site_file" \
2302 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 as_fn_error $? "failed to load site script $ac_site_file
2305 See \`config.log' for more details" "$LINENO" 5; }
2306 fi
2307 done
2308
2309 if test -r "$cache_file"; then
2310 # Some versions of bash will fail to source /dev/null (special files
2311 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2312 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2314 $as_echo "$as_me: loading cache $cache_file" >&6;}
2315 case $cache_file in
2316 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2317 *) . "./$cache_file";;
2318 esac
2319 fi
2320 else
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2322 $as_echo "$as_me: creating cache $cache_file" >&6;}
2323 >$cache_file
2324 fi
2325
2326 # Check that the precious variables saved in the cache have kept the same
2327 # value.
2328 ac_cache_corrupted=false
2329 for ac_var in $ac_precious_vars; do
2330 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2331 eval ac_new_set=\$ac_env_${ac_var}_set
2332 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2333 eval ac_new_val=\$ac_env_${ac_var}_value
2334 case $ac_old_set,$ac_new_set in
2335 set,)
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2337 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2338 ac_cache_corrupted=: ;;
2339 ,set)
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2341 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2342 ac_cache_corrupted=: ;;
2343 ,);;
2344 *)
2345 if test "x$ac_old_val" != "x$ac_new_val"; then
2346 # differences in whitespace do not lead to failure.
2347 ac_old_val_w=`echo x $ac_old_val`
2348 ac_new_val_w=`echo x $ac_new_val`
2349 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2351 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2352 ac_cache_corrupted=:
2353 else
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2355 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2356 eval $ac_var=\$ac_old_val
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2359 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2361 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2362 fi;;
2363 esac
2364 # Pass precious variables to config.status.
2365 if test "$ac_new_set" = set; then
2366 case $ac_new_val in
2367 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2368 *) ac_arg=$ac_var=$ac_new_val ;;
2369 esac
2370 case " $ac_configure_args " in
2371 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2372 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2373 esac
2374 fi
2375 done
2376 if $ac_cache_corrupted; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2380 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2381 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2382 fi
2383 ## -------------------- ##
2384 ## Main body of script. ##
2385 ## -------------------- ##
2386
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392
2393
2394
2395
2396 am__api_version='1.11'
2397
2398 ac_aux_dir=
2399 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2400 if test -f "$ac_dir/install-sh"; then
2401 ac_aux_dir=$ac_dir
2402 ac_install_sh="$ac_aux_dir/install-sh -c"
2403 break
2404 elif test -f "$ac_dir/install.sh"; then
2405 ac_aux_dir=$ac_dir
2406 ac_install_sh="$ac_aux_dir/install.sh -c"
2407 break
2408 elif test -f "$ac_dir/shtool"; then
2409 ac_aux_dir=$ac_dir
2410 ac_install_sh="$ac_aux_dir/shtool install -c"
2411 break
2412 fi
2413 done
2414 if test -z "$ac_aux_dir"; then
2415 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2416 fi
2417
2418 # These three variables are undocumented and unsupported,
2419 # and are intended to be withdrawn in a future Autoconf release.
2420 # They can cause serious problems if a builder's source tree is in a directory
2421 # whose full name contains unusual characters.
2422 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2423 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2424 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2425
2426
2427 # Find a good install program. We prefer a C program (faster),
2428 # so one script is as good as another. But avoid the broken or
2429 # incompatible versions:
2430 # SysV /etc/install, /usr/sbin/install
2431 # SunOS /usr/etc/install
2432 # IRIX /sbin/install
2433 # AIX /bin/install
2434 # AmigaOS /C/install, which installs bootblocks on floppy discs
2435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2438 # OS/2's system install, which has a completely different semantic
2439 # ./install, which can be erroneously created by make from ./install.sh.
2440 # Reject install programs that cannot install multiple files.
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2442 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2443 if test -z "$INSTALL"; then
2444 if ${ac_cv_path_install+:} false; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 # Account for people who put trailing slashes in PATH elements.
2453 case $as_dir/ in #((
2454 ./ | .// | /[cC]/* | \
2455 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2456 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2457 /usr/ucb/* ) ;;
2458 *)
2459 # OSF1 and SCO ODT 3.0 have their own names for install.
2460 # Don't use installbsd from OSF since it installs stuff as root
2461 # by default.
2462 for ac_prog in ginstall scoinst install; do
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2465 if test $ac_prog = install &&
2466 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2467 # AIX install. It has an incompatible calling convention.
2468 :
2469 elif test $ac_prog = install &&
2470 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471 # program-specific install script used by HP pwplus--don't use.
2472 :
2473 else
2474 rm -rf conftest.one conftest.two conftest.dir
2475 echo one > conftest.one
2476 echo two > conftest.two
2477 mkdir conftest.dir
2478 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2479 test -s conftest.one && test -s conftest.two &&
2480 test -s conftest.dir/conftest.one &&
2481 test -s conftest.dir/conftest.two
2482 then
2483 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2484 break 3
2485 fi
2486 fi
2487 fi
2488 done
2489 done
2490 ;;
2491 esac
2492
2493 done
2494 IFS=$as_save_IFS
2495
2496 rm -rf conftest.one conftest.two conftest.dir
2497
2498 fi
2499 if test "${ac_cv_path_install+set}" = set; then
2500 INSTALL=$ac_cv_path_install
2501 else
2502 # As a last resort, use the slow shell script. Don't cache a
2503 # value for INSTALL within a source directory, because that will
2504 # break other packages using the cache if that directory is
2505 # removed, or if the value is a relative name.
2506 INSTALL=$ac_install_sh
2507 fi
2508 fi
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2510 $as_echo "$INSTALL" >&6; }
2511
2512 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2513 # It thinks the first close brace ends the variable substitution.
2514 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2515
2516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2517
2518 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2519
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2521 $as_echo_n "checking whether build environment is sane... " >&6; }
2522 # Just in case
2523 sleep 1
2524 echo timestamp > conftest.file
2525 # Reject unsafe characters in $srcdir or the absolute working directory
2526 # name. Accept space and tab only in the latter.
2527 am_lf='
2528 '
2529 case `pwd` in
2530 *[\\\"\#\$\&\'\`$am_lf]*)
2531 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2532 esac
2533 case $srcdir in
2534 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2535 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2536 esac
2537
2538 # Do `set' in a subshell so we don't clobber the current shell's
2539 # arguments. Must try -L first in case configure is actually a
2540 # symlink; some systems play weird games with the mod time of symlinks
2541 # (eg FreeBSD returns the mod time of the symlink's containing
2542 # directory).
2543 if (
2544 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2545 if test "$*" = "X"; then
2546 # -L didn't work.
2547 set X `ls -t "$srcdir/configure" conftest.file`
2548 fi
2549 rm -f conftest.file
2550 if test "$*" != "X $srcdir/configure conftest.file" \
2551 && test "$*" != "X conftest.file $srcdir/configure"; then
2552
2553 # If neither matched, then we have a broken ls. This can happen
2554 # if, for instance, CONFIG_SHELL is bash and it inherits a
2555 # broken ls alias from the environment. This has actually
2556 # happened. Such a system could not be considered "sane".
2557 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2558 alias in your environment" "$LINENO" 5
2559 fi
2560
2561 test "$2" = conftest.file
2562 )
2563 then
2564 # Ok.
2565 :
2566 else
2567 as_fn_error $? "newly created file is older than distributed files!
2568 Check your system clock" "$LINENO" 5
2569 fi
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2571 $as_echo "yes" >&6; }
2572 test "$program_prefix" != NONE &&
2573 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2574 # Use a double $ so make ignores it.
2575 test "$program_suffix" != NONE &&
2576 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2577 # Double any \ or $.
2578 # By default was `s,x,x', remove it if useless.
2579 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2580 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2581
2582 # expand $ac_aux_dir to an absolute path
2583 am_aux_dir=`cd $ac_aux_dir && pwd`
2584
2585 if test x"${MISSING+set}" != xset; then
2586 case $am_aux_dir in
2587 *\ * | *\ *)
2588 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2589 *)
2590 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2591 esac
2592 fi
2593 # Use eval to expand $SHELL
2594 if eval "$MISSING --run true"; then
2595 am_missing_run="$MISSING --run "
2596 else
2597 am_missing_run=
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2599 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2600 fi
2601
2602 if test x"${install_sh}" != xset; then
2603 case $am_aux_dir in
2604 *\ * | *\ *)
2605 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2606 *)
2607 install_sh="\${SHELL} $am_aux_dir/install-sh"
2608 esac
2609 fi
2610
2611 # Installed binaries are usually stripped using `strip' when the user
2612 # run `make install-strip'. However `strip' might not be the right
2613 # tool to use in cross-compilation environments, therefore Automake
2614 # will honor the `STRIP' environment variable to overrule this program.
2615 if test "$cross_compiling" != no; then
2616 if test -n "$ac_tool_prefix"; then
2617 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2618 set dummy ${ac_tool_prefix}strip; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if ${ac_cv_prog_STRIP+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if test -n "$STRIP"; then
2625 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 STRIP=$ac_cv_prog_STRIP
2645 if test -n "$STRIP"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2647 $as_echo "$STRIP" >&6; }
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653
2654 fi
2655 if test -z "$ac_cv_prog_STRIP"; then
2656 ac_ct_STRIP=$STRIP
2657 # Extract the first word of "strip", so it can be a program name with args.
2658 set dummy strip; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 if test -n "$ac_ct_STRIP"; then
2665 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_ac_ct_STRIP="strip"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2685 if test -n "$ac_ct_STRIP"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2687 $as_echo "$ac_ct_STRIP" >&6; }
2688 else
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693 if test "x$ac_ct_STRIP" = x; then
2694 STRIP=":"
2695 else
2696 case $cross_compiling:$ac_tool_warned in
2697 yes:)
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2700 ac_tool_warned=yes ;;
2701 esac
2702 STRIP=$ac_ct_STRIP
2703 fi
2704 else
2705 STRIP="$ac_cv_prog_STRIP"
2706 fi
2707
2708 fi
2709 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2710
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2712 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2713 if test -z "$MKDIR_P"; then
2714 if ${ac_cv_path_mkdir+:} false; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2719 do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_prog in mkdir gmkdir; do
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2725 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2726 'mkdir (GNU coreutils) '* | \
2727 'mkdir (coreutils) '* | \
2728 'mkdir (fileutils) '4.1*)
2729 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2730 break 3;;
2731 esac
2732 done
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 fi
2738
2739 test -d ./--version && rmdir ./--version
2740 if test "${ac_cv_path_mkdir+set}" = set; then
2741 MKDIR_P="$ac_cv_path_mkdir -p"
2742 else
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for MKDIR_P within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 MKDIR_P="$ac_install_sh -d"
2748 fi
2749 fi
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2751 $as_echo "$MKDIR_P" >&6; }
2752
2753 mkdir_p="$MKDIR_P"
2754 case $mkdir_p in
2755 [\\/$]* | ?:[\\/]*) ;;
2756 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2757 esac
2758
2759 for ac_prog in gawk mawk nawk awk
2760 do
2761 # Extract the first word of "$ac_prog", so it can be a program name with args.
2762 set dummy $ac_prog; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_AWK+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if test -n "$AWK"; then
2769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_AWK="$ac_prog"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 AWK=$ac_cv_prog_AWK
2789 if test -n "$AWK"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2791 $as_echo "$AWK" >&6; }
2792 else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797
2798 test -n "$AWK" && break
2799 done
2800
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2802 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2803 set x ${MAKE-make}
2804 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2805 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 cat >conftest.make <<\_ACEOF
2809 SHELL = /bin/sh
2810 all:
2811 @echo '@@@%%%=$(MAKE)=@@@%%%'
2812 _ACEOF
2813 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2814 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2815 *@@@%%%=?*=@@@%%%*)
2816 eval ac_cv_prog_make_${ac_make}_set=yes;;
2817 *)
2818 eval ac_cv_prog_make_${ac_make}_set=no;;
2819 esac
2820 rm -f conftest.make
2821 fi
2822 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2824 $as_echo "yes" >&6; }
2825 SET_MAKE=
2826 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2829 SET_MAKE="MAKE=${MAKE-make}"
2830 fi
2831
2832 rm -rf .tst 2>/dev/null
2833 mkdir .tst 2>/dev/null
2834 if test -d .tst; then
2835 am__leading_dot=.
2836 else
2837 am__leading_dot=_
2838 fi
2839 rmdir .tst 2>/dev/null
2840
2841 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2842 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2843 # is not polluted with repeated "-I."
2844 am__isrc=' -I$(srcdir)'
2845 # test to see if srcdir already configured
2846 if test -f $srcdir/config.status; then
2847 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2848 fi
2849 fi
2850
2851 # test whether we have cygpath
2852 if test -z "$CYGPATH_W"; then
2853 if (cygpath --version) >/dev/null 2>/dev/null; then
2854 CYGPATH_W='cygpath -w'
2855 else
2856 CYGPATH_W=echo
2857 fi
2858 fi
2859
2860
2861 # Define the identity of the package.
2862 PACKAGE='libSM'
2863 VERSION='1.2.0'
2864
2865
2866 cat >>confdefs.h <<_ACEOF
2867 #define PACKAGE "$PACKAGE"
2868 _ACEOF
2869
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define VERSION "$VERSION"
2873 _ACEOF
2874
2875 # Some tools Automake needs.
2876
2877 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2878
2879
2880 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2881
2882
2883 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2884
2885
2886 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2887
2888
2889 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2890
2891 # We need awk for the "check" target. The system "awk" is bad on
2892 # some platforms.
2893 # Always define AMTAR for backward compatibility.
2894
2895 AMTAR=${AMTAR-"${am_missing_run}tar"}
2896
2897 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2898
2899
2900
2901
2902
2903
2904
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2906 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2907 # Check whether --enable-maintainer-mode was given.
2908 if test "${enable_maintainer_mode+set}" = set; then :
2909 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2910 else
2911 USE_MAINTAINER_MODE=no
2912 fi
2913
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2915 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2916 if test $USE_MAINTAINER_MODE = yes; then
2917 MAINTAINER_MODE_TRUE=
2918 MAINTAINER_MODE_FALSE='#'
2919 else
2920 MAINTAINER_MODE_TRUE='#'
2921 MAINTAINER_MODE_FALSE=
2922 fi
2923
2924 MAINT=$MAINTAINER_MODE_TRUE
2925
2926
2927
2928 # Require xorg-macros minimum of 1.10 for DocBook XML documentation
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940 DEPDIR="${am__leading_dot}deps"
2941
2942 ac_config_commands="$ac_config_commands depfiles"
2943
2944
2945 am_make=${MAKE-make}
2946 cat > confinc << 'END'
2947 am__doit:
2948 @echo this is the am__doit target
2949 .PHONY: am__doit
2950 END
2951 # If we don't find an include directive, just comment out the code.
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2953 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2954 am__include="#"
2955 am__quote=
2956 _am_result=none
2957 # First try GNU make style include.
2958 echo "include confinc" > confmf
2959 # Ignore all kinds of additional output from `make'.
2960 case `$am_make -s -f confmf 2> /dev/null` in #(
2961 *the\ am__doit\ target*)
2962 am__include=include
2963 am__quote=
2964 _am_result=GNU
2965 ;;
2966 esac
2967 # Now try BSD make style include.
2968 if test "$am__include" = "#"; then
2969 echo '.include "confinc"' > confmf
2970 case `$am_make -s -f confmf 2> /dev/null` in #(
2971 *the\ am__doit\ target*)
2972 am__include=.include
2973 am__quote="\""
2974 _am_result=BSD
2975 ;;
2976 esac
2977 fi
2978
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2981 $as_echo "$_am_result" >&6; }
2982 rm -f confinc confmf
2983
2984 # Check whether --enable-dependency-tracking was given.
2985 if test "${enable_dependency_tracking+set}" = set; then :
2986 enableval=$enable_dependency_tracking;
2987 fi
2988
2989 if test "x$enable_dependency_tracking" != xno; then
2990 am_depcomp="$ac_aux_dir/depcomp"
2991 AMDEPBACKSLASH='\'
2992 fi
2993 if test "x$enable_dependency_tracking" != xno; then
2994 AMDEP_TRUE=
2995 AMDEP_FALSE='#'
2996 else
2997 AMDEP_TRUE='#'
2998 AMDEP_FALSE=
2999 fi
3000
3001
3002 ac_ext=c
3003 ac_cpp='$CPP $CPPFLAGS'
3004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_CC+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 CC=$ac_cv_prog_CC
3036 if test -n "$CC"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3038 $as_echo "$CC" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 fi
3046 if test -z "$ac_cv_prog_CC"; then
3047 ac_ct_CC=$CC
3048 # Extract the first word of "gcc", so it can be a program name with args.
3049 set dummy gcc; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$ac_ct_CC"; then
3056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_ac_ct_CC="gcc"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3076 if test -n "$ac_ct_CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3078 $as_echo "$ac_ct_CC" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084 if test "x$ac_ct_CC" = x; then
3085 CC=""
3086 else
3087 case $cross_compiling:$ac_tool_warned in
3088 yes:)
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093 CC=$ac_ct_CC
3094 fi
3095 else
3096 CC="$ac_cv_prog_CC"
3097 fi
3098
3099 if test -z "$CC"; then
3100 if test -n "$ac_tool_prefix"; then
3101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3102 set dummy ${ac_tool_prefix}cc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 ac_cv_prog_CC="${ac_tool_prefix}cc"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 CC=$ac_cv_prog_CC
3129 if test -n "$CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 fi
3136
3137
3138 fi
3139 fi
3140 if test -z "$CC"; then
3141 # Extract the first word of "cc", so it can be a program name with args.
3142 set dummy cc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 else
3151 ac_prog_rejected=no
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3154 do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3160 ac_prog_rejected=yes
3161 continue
3162 fi
3163 ac_cv_prog_CC="cc"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169 IFS=$as_save_IFS
3170
3171 if test $ac_prog_rejected = yes; then
3172 # We found a bogon in the path, so make sure we never use it.
3173 set dummy $ac_cv_prog_CC
3174 shift
3175 if test $# != 0; then
3176 # We chose a different compiler from the bogus one.
3177 # However, it has the same basename, so the bogon will be chosen
3178 # first if we set CC to just the basename; use the full file name.
3179 shift
3180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3181 fi
3182 fi
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195 fi
3196 if test -z "$CC"; then
3197 if test -n "$ac_tool_prefix"; then
3198 for ac_prog in cl.exe
3199 do
3200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_CC+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$CC"; then
3208 ac_cv_prog_CC="$CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 CC=$ac_cv_prog_CC
3228 if test -n "$CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3230 $as_echo "$CC" >&6; }
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237 test -n "$CC" && break
3238 done
3239 fi
3240 if test -z "$CC"; then
3241 ac_ct_CC=$CC
3242 for ac_prog in cl.exe
3243 do
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 if test -n "$ac_ct_CC"; then
3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_ac_ct_CC="$ac_prog"
3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265 done
3266 done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3272 if test -n "$ac_ct_CC"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3274 $as_echo "$ac_ct_CC" >&6; }
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 fi
3279
3280
3281 test -n "$ac_ct_CC" && break
3282 done
3283
3284 if test "x$ac_ct_CC" = x; then
3285 CC=""
3286 else
3287 case $cross_compiling:$ac_tool_warned in
3288 yes:)
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3291 ac_tool_warned=yes ;;
3292 esac
3293 CC=$ac_ct_CC
3294 fi
3295 fi
3296
3297 fi
3298
3299
3300 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error $? "no acceptable C compiler found in \$PATH
3303 See \`config.log' for more details" "$LINENO" 5; }
3304
3305 # Provide some information about the compiler.
3306 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3307 set X $ac_compile
3308 ac_compiler=$2
3309 for ac_option in --version -v -V -qversion; do
3310 { { ac_try="$ac_compiler $ac_option >&5"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3318 ac_status=$?
3319 if test -s conftest.err; then
3320 sed '10a\
3321 ... rest of stderr output deleted ...
3322 10q' conftest.err >conftest.er1
3323 cat conftest.er1 >&5
3324 fi
3325 rm -f conftest.er1 conftest.err
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }
3328 done
3329
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3332
3333 int
3334 main ()
3335 {
3336
3337 ;
3338 return 0;
3339 }
3340 _ACEOF
3341 ac_clean_files_save=$ac_clean_files
3342 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3343 # Try to create an executable without -o first, disregard a.out.
3344 # It will help us diagnose broken compilers, and finding out an intuition
3345 # of exeext.
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3347 $as_echo_n "checking whether the C compiler works... " >&6; }
3348 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3349
3350 # The possible output files:
3351 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3352
3353 ac_rmfiles=
3354 for ac_file in $ac_files
3355 do
3356 case $ac_file in
3357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3358 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3359 esac
3360 done
3361 rm -f $ac_rmfiles
3362
3363 if { { ac_try="$ac_link_default"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_link_default") 2>&5
3371 ac_status=$?
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }; then :
3374 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3375 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3376 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3377 # so that the user can short-circuit this test for compilers unknown to
3378 # Autoconf.
3379 for ac_file in $ac_files ''
3380 do
3381 test -f "$ac_file" || continue
3382 case $ac_file in
3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3384 ;;
3385 [ab].out )
3386 # We found the default executable, but exeext='' is most
3387 # certainly right.
3388 break;;
3389 *.* )
3390 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3391 then :; else
3392 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3393 fi
3394 # We set ac_cv_exeext here because the later test for it is not
3395 # safe: cross compilers may not add the suffix if given an `-o'
3396 # argument, so we may need to know it at that point already.
3397 # Even if this section looks crufty: it has the advantage of
3398 # actually working.
3399 break;;
3400 * )
3401 break;;
3402 esac
3403 done
3404 test "$ac_cv_exeext" = no && ac_cv_exeext=
3405
3406 else
3407 ac_file=''
3408 fi
3409 if test -z "$ac_file"; then :
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 $as_echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3414
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error 77 "C compiler cannot create executables
3418 See \`config.log' for more details" "$LINENO" 5; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3421 $as_echo "yes" >&6; }
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3424 $as_echo_n "checking for C compiler default output file name... " >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3426 $as_echo "$ac_file" >&6; }
3427 ac_exeext=$ac_cv_exeext
3428
3429 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3430 ac_clean_files=$ac_clean_files_save
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3432 $as_echo_n "checking for suffix of executables... " >&6; }
3433 if { { ac_try="$ac_link"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_link") 2>&5
3441 ac_status=$?
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }; then :
3444 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3445 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3446 # work properly (i.e., refer to `conftest.exe'), while it won't with
3447 # `rm'.
3448 for ac_file in conftest.exe conftest conftest.*; do
3449 test -f "$ac_file" || continue
3450 case $ac_file in
3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3452 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3453 break;;
3454 * ) break;;
3455 esac
3456 done
3457 else
3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3461 See \`config.log' for more details" "$LINENO" 5; }
3462 fi
3463 rm -f conftest conftest$ac_cv_exeext
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3465 $as_echo "$ac_cv_exeext" >&6; }
3466
3467 rm -f conftest.$ac_ext
3468 EXEEXT=$ac_cv_exeext
3469 ac_exeext=$EXEEXT
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3472 #include <stdio.h>
3473 int
3474 main ()
3475 {
3476 FILE *f = fopen ("conftest.out", "w");
3477 return ferror (f) || fclose (f) != 0;
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 ac_clean_files="$ac_clean_files conftest.out"
3484 # Check that the compiler produces executables we can run. If not, either
3485 # the compiler is broken, or we cross compile.
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3487 $as_echo_n "checking whether we are cross compiling... " >&6; }
3488 if test "$cross_compiling" != yes; then
3489 { { ac_try="$ac_link"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495 $as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_link") 2>&5
3497 ac_status=$?
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }
3500 if { ac_try='./conftest$ac_cv_exeext'
3501 { { case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_try") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; }; then
3511 cross_compiling=no
3512 else
3513 if test "$cross_compiling" = maybe; then
3514 cross_compiling=yes
3515 else
3516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 as_fn_error $? "cannot run C compiled programs.
3519 If you meant to cross compile, use \`--host'.
3520 See \`config.log' for more details" "$LINENO" 5; }
3521 fi
3522 fi
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3525 $as_echo "$cross_compiling" >&6; }
3526
3527 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3528 ac_clean_files=$ac_clean_files_save
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3530 $as_echo_n "checking for suffix of object files... " >&6; }
3531 if ${ac_cv_objext+:} false; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536
3537 int
3538 main ()
3539 {
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 rm -f conftest.o conftest.obj
3546 if { { ac_try="$ac_compile"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553 (eval "$ac_compile") 2>&5
3554 ac_status=$?
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }; then :
3557 for ac_file in conftest.o conftest.obj conftest.*; do
3558 test -f "$ac_file" || continue;
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3561 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3562 break;;
3563 esac
3564 done
3565 else
3566 $as_echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error $? "cannot compute suffix of object files: cannot compile
3572 See \`config.log' for more details" "$LINENO" 5; }
3573 fi
3574 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3577 $as_echo "$ac_cv_objext" >&6; }
3578 OBJEXT=$ac_cv_objext
3579 ac_objext=$OBJEXT
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3581 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3582 if ${ac_cv_c_compiler_gnu+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587
3588 int
3589 main ()
3590 {
3591 #ifndef __GNUC__
3592 choke me
3593 #endif
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600 ac_compiler_gnu=yes
3601 else
3602 ac_compiler_gnu=no
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3606
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3609 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3610 if test $ac_compiler_gnu = yes; then
3611 GCC=yes
3612 else
3613 GCC=
3614 fi
3615 ac_test_CFLAGS=${CFLAGS+set}
3616 ac_save_CFLAGS=$CFLAGS
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3618 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3619 if ${ac_cv_prog_cc_g+:} false; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 ac_save_c_werror_flag=$ac_c_werror_flag
3623 ac_c_werror_flag=yes
3624 ac_cv_prog_cc_g=no
3625 CFLAGS="-g"
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628
3629 int
3630 main ()
3631 {
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_cv_prog_cc_g=yes
3639 else
3640 CFLAGS=""
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643
3644 int
3645 main ()
3646 {
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653
3654 else
3655 ac_c_werror_flag=$ac_save_c_werror_flag
3656 CFLAGS="-g"
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3659
3660 int
3661 main ()
3662 {
3663
3664 ;
3665 return 0;
3666 }
3667 _ACEOF
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669 ac_cv_prog_cc_g=yes
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 fi
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_c_werror_flag=$ac_save_c_werror_flag
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3679 $as_echo "$ac_cv_prog_cc_g" >&6; }
3680 if test "$ac_test_CFLAGS" = set; then
3681 CFLAGS=$ac_save_CFLAGS
3682 elif test $ac_cv_prog_cc_g = yes; then
3683 if test "$GCC" = yes; then
3684 CFLAGS="-g -O2"
3685 else
3686 CFLAGS="-g"
3687 fi
3688 else
3689 if test "$GCC" = yes; then
3690 CFLAGS="-O2"
3691 else
3692 CFLAGS=
3693 fi
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3696 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3697 if ${ac_cv_prog_cc_c89+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 ac_cv_prog_cc_c89=no
3701 ac_save_CC=$CC
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704 #include <stdarg.h>
3705 #include <stdio.h>
3706 #include <sys/types.h>
3707 #include <sys/stat.h>
3708 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3709 struct buf { int x; };
3710 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3711 static char *e (p, i)
3712 char **p;
3713 int i;
3714 {
3715 return p[i];
3716 }
3717 static char *f (char * (*g) (char **, int), char **p, ...)
3718 {
3719 char *s;
3720 va_list v;
3721 va_start (v,p);
3722 s = g (p, va_arg (v,int));
3723 va_end (v);
3724 return s;
3725 }
3726
3727 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3728 function prototypes and stuff, but not '\xHH' hex character constants.
3729 These don't provoke an error unfortunately, instead are silently treated
3730 as 'x'. The following induces an error, until -std is added to get
3731 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3732 array size at least. It's necessary to write '\x00'==0 to get something
3733 that's true only with -std. */
3734 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3735
3736 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3737 inside strings and character constants. */
3738 #define FOO(x) 'x'
3739 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3740
3741 int test (int i, double x);
3742 struct s1 {int (*f) (int a);};
3743 struct s2 {int (*f) (double a);};
3744 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3745 int argc;
3746 char **argv;
3747 int
3748 main ()
3749 {
3750 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3756 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3757 do
3758 CC="$ac_save_CC $ac_arg"
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760 ac_cv_prog_cc_c89=$ac_arg
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext
3763 test "x$ac_cv_prog_cc_c89" != "xno" && break
3764 done
3765 rm -f conftest.$ac_ext
3766 CC=$ac_save_CC
3767
3768 fi
3769 # AC_CACHE_VAL
3770 case "x$ac_cv_prog_cc_c89" in
3771 x)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3773 $as_echo "none needed" >&6; } ;;
3774 xno)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3776 $as_echo "unsupported" >&6; } ;;
3777 *)
3778 CC="$CC $ac_cv_prog_cc_c89"
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3780 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3781 esac
3782 if test "x$ac_cv_prog_cc_c89" != xno; then :
3783
3784 fi
3785
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792 depcc="$CC" am_compiler_list=
3793
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3795 $as_echo_n "checking dependency style of $depcc... " >&6; }
3796 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3800 # We make a subdir and do the tests there. Otherwise we can end up
3801 # making bogus files that we don't know about and never remove. For
3802 # instance it was reported that on HP-UX the gcc test will end up
3803 # making a dummy file named `D' -- because `-MD' means `put the output
3804 # in D'.
3805 mkdir conftest.dir
3806 # Copy depcomp to subdir because otherwise we won't find it if we're
3807 # using a relative directory.
3808 cp "$am_depcomp" conftest.dir
3809 cd conftest.dir
3810 # We will build objects and dependencies in a subdirectory because
3811 # it helps to detect inapplicable dependency modes. For instance
3812 # both Tru64's cc and ICC support -MD to output dependencies as a
3813 # side effect of compilation, but ICC will put the dependencies in
3814 # the current directory while Tru64 will put them in the object
3815 # directory.
3816 mkdir sub
3817
3818 am_cv_CC_dependencies_compiler_type=none
3819 if test "$am_compiler_list" = ""; then
3820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3821 fi
3822 am__universal=false
3823 case " $depcc " in #(
3824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3825 esac
3826
3827 for depmode in $am_compiler_list; do
3828 # Setup a source with many dependencies, because some compilers
3829 # like to wrap large dependency lists on column 80 (with \), and
3830 # we should not choose a depcomp mode which is confused by this.
3831 #
3832 # We need to recreate these files for each test, as the compiler may
3833 # overwrite some of them when testing with obscure command lines.
3834 # This happens at least with the AIX C compiler.
3835 : > sub/conftest.c
3836 for i in 1 2 3 4 5 6; do
3837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3838 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3839 # Solaris 8's {/usr,}/bin/sh.
3840 touch sub/conftst$i.h
3841 done
3842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3843
3844 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3845 # mode. It turns out that the SunPro C++ compiler does not properly
3846 # handle `-M -o', and we need to detect this. Also, some Intel
3847 # versions had trouble with output in subdirs
3848 am__obj=sub/conftest.${OBJEXT-o}
3849 am__minus_obj="-o $am__obj"
3850 case $depmode in
3851 gcc)
3852 # This depmode causes a compiler race in universal mode.
3853 test "$am__universal" = false || continue
3854 ;;
3855 nosideeffect)
3856 # after this tag, mechanisms are not by side-effect, so they'll
3857 # only be used when explicitly requested
3858 if test "x$enable_dependency_tracking" = xyes; then
3859 continue
3860 else
3861 break
3862 fi
3863 ;;
3864 msvisualcpp | msvcmsys)
3865 # This compiler won't grok `-c -o', but also, the minuso test has
3866 # not run yet. These depmodes are late enough in the game, and
3867 # so weak that their functioning should not be impacted.
3868 am__obj=conftest.${OBJEXT-o}
3869 am__minus_obj=
3870 ;;
3871 none) break ;;
3872 esac
3873 if depmode=$depmode \
3874 source=sub/conftest.c object=$am__obj \
3875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3877 >/dev/null 2>conftest.err &&
3878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3882 # icc doesn't choke on unknown options, it will just issue warnings
3883 # or remarks (even with -Werror). So we grep stderr for any message
3884 # that says an option was ignored or not supported.
3885 # When given -MP, icc 7.0 and 7.1 complain thusly:
3886 # icc: Command line warning: ignoring option '-M'; no argument required
3887 # The diagnosis changed in icc 8.0:
3888 # icc: Command line remark: option '-MP' not supported
3889 if (grep 'ignoring option' conftest.err ||
3890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3891 am_cv_CC_dependencies_compiler_type=$depmode
3892 break
3893 fi
3894 fi
3895 done
3896
3897 cd ..
3898 rm -rf conftest.dir
3899 else
3900 am_cv_CC_dependencies_compiler_type=none
3901 fi
3902
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3905 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3906 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3907
3908 if
3909 test "x$enable_dependency_tracking" != xno \
3910 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3911 am__fastdepCC_TRUE=
3912 am__fastdepCC_FALSE='#'
3913 else
3914 am__fastdepCC_TRUE='#'
3915 am__fastdepCC_FALSE=
3916 fi
3917
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3920 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3921 if ${ac_cv_prog_cc_c99+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 ac_cv_prog_cc_c99=no
3925 ac_save_CC=$CC
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3928 #include <stdarg.h>
3929 #include <stdbool.h>
3930 #include <stdlib.h>
3931 #include <wchar.h>
3932 #include <stdio.h>
3933
3934 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3935 #define debug(...) fprintf (stderr, __VA_ARGS__)
3936 #define showlist(...) puts (#__VA_ARGS__)
3937 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3938 static void
3939 test_varargs_macros (void)
3940 {
3941 int x = 1234;
3942 int y = 5678;
3943 debug ("Flag");
3944 debug ("X = %d\n", x);
3945 showlist (The first, second, and third items.);
3946 report (x>y, "x is %d but y is %d", x, y);
3947 }
3948
3949 // Check long long types.
3950 #define BIG64 18446744073709551615ull
3951 #define BIG32 4294967295ul
3952 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3953 #if !BIG_OK
3954 your preprocessor is broken;
3955 #endif
3956 #if BIG_OK
3957 #else
3958 your preprocessor is broken;
3959 #endif
3960 static long long int bignum = -9223372036854775807LL;
3961 static unsigned long long int ubignum = BIG64;
3962
3963 struct incomplete_array
3964 {
3965 int datasize;
3966 double data[];
3967 };
3968
3969 struct named_init {
3970 int number;
3971 const wchar_t *name;
3972 double average;
3973 };
3974
3975 typedef const char *ccp;
3976
3977 static inline int
3978 test_restrict (ccp restrict text)
3979 {
3980 // See if C++-style comments work.
3981 // Iterate through items via the restricted pointer.
3982 // Also check for declarations in for loops.
3983 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3984 continue;
3985 return 0;
3986 }
3987
3988 // Check varargs and va_copy.
3989 static void
3990 test_varargs (const char *format, ...)
3991 {
3992 va_list args;
3993 va_start (args, format);
3994 va_list args_copy;
3995 va_copy (args_copy, args);
3996
3997 const char *str;
3998 int number;
3999 float fnumber;
4000
4001 while (*format)
4002 {
4003 switch (*format++)
4004 {
4005 case 's': // string
4006 str = va_arg (args_copy, const char *);
4007 break;
4008 case 'd': // int
4009 number = va_arg (args_copy, int);
4010 break;
4011 case 'f': // float
4012 fnumber = va_arg (args_copy, double);
4013 break;
4014 default:
4015 break;
4016 }
4017 }
4018 va_end (args_copy);
4019 va_end (args);
4020 }
4021
4022 int
4023 main ()
4024 {
4025
4026 // Check bool.
4027 _Bool success = false;
4028
4029 // Check restrict.
4030 if (test_restrict ("String literal") == 0)
4031 success = true;
4032 char *restrict newvar = "Another string";
4033
4034 // Check varargs.
4035 test_varargs ("s, d' f .", "string", 65, 34.234);
4036 test_varargs_macros ();
4037
4038 // Check flexible array members.
4039 struct incomplete_array *ia =
4040 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4041 ia->datasize = 10;
4042 for (int i = 0; i < ia->datasize; ++i)
4043 ia->data[i] = i * 1.234;
4044
4045 // Check named initializers.
4046 struct named_init ni = {
4047 .number = 34,
4048 .name = L"Test wide string",
4049 .average = 543.34343,
4050 };
4051
4052 ni.number = 58;
4053
4054 int dynamic_array[ni.number];
4055 dynamic_array[ni.number - 1] = 543;
4056
4057 // work around unused variable warnings
4058 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4059 || dynamic_array[ni.number - 1] != 543);
4060
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4066 do
4067 CC="$ac_save_CC $ac_arg"
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_prog_cc_c99=$ac_arg
4070 fi
4071 rm -f core conftest.err conftest.$ac_objext
4072 test "x$ac_cv_prog_cc_c99" != "xno" && break
4073 done
4074 rm -f conftest.$ac_ext
4075 CC=$ac_save_CC
4076
4077 fi
4078 # AC_CACHE_VAL
4079 case "x$ac_cv_prog_cc_c99" in
4080 x)
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4082 $as_echo "none needed" >&6; } ;;
4083 xno)
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4085 $as_echo "unsupported" >&6; } ;;
4086 *)
4087 CC="$CC $ac_cv_prog_cc_c99"
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4089 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4090 esac
4091 if test "x$ac_cv_prog_cc_c99" != xno; then :
4092
4093 fi
4094
4095
4096
4097 ac_ext=c
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4103 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4104 # On Suns, sometimes $CPP names a directory.
4105 if test -n "$CPP" && test -d "$CPP"; then
4106 CPP=
4107 fi
4108 if test -z "$CPP"; then
4109 if ${ac_cv_prog_CPP+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 # Double quotes because CPP needs to be expanded
4113 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4114 do
4115 ac_preproc_ok=false
4116 for ac_c_preproc_warn_flag in '' yes
4117 do
4118 # Use a header file that comes with gcc, so configuring glibc
4119 # with a fresh cross-compiler works.
4120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121 # <limits.h> exists even on freestanding compilers.
4122 # On the NeXT, cc -E runs the code through the compiler's parser,
4123 # not just through cpp. "Syntax error" is here to catch this case.
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #ifdef __STDC__
4127 # include <limits.h>
4128 #else
4129 # include <assert.h>
4130 #endif
4131 Syntax error
4132 _ACEOF
4133 if ac_fn_c_try_cpp "$LINENO"; then :
4134
4135 else
4136 # Broken: fails on valid input.
4137 continue
4138 fi
4139 rm -f conftest.err conftest.i conftest.$ac_ext
4140
4141 # OK, works on sane cases. Now check whether nonexistent headers
4142 # can be detected and how.
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 #include <ac_nonexistent.h>
4146 _ACEOF
4147 if ac_fn_c_try_cpp "$LINENO"; then :
4148 # Broken: success on invalid input.
4149 continue
4150 else
4151 # Passes both tests.
4152 ac_preproc_ok=:
4153 break
4154 fi
4155 rm -f conftest.err conftest.i conftest.$ac_ext
4156
4157 done
4158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4159 rm -f conftest.i conftest.err conftest.$ac_ext
4160 if $ac_preproc_ok; then :
4161 break
4162 fi
4163
4164 done
4165 ac_cv_prog_CPP=$CPP
4166
4167 fi
4168 CPP=$ac_cv_prog_CPP
4169 else
4170 ac_cv_prog_CPP=$CPP
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4173 $as_echo "$CPP" >&6; }
4174 ac_preproc_ok=false
4175 for ac_c_preproc_warn_flag in '' yes
4176 do
4177 # Use a header file that comes with gcc, so configuring glibc
4178 # with a fresh cross-compiler works.
4179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4180 # <limits.h> exists even on freestanding compilers.
4181 # On the NeXT, cc -E runs the code through the compiler's parser,
4182 # not just through cpp. "Syntax error" is here to catch this case.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #ifdef __STDC__
4186 # include <limits.h>
4187 #else
4188 # include <assert.h>
4189 #endif
4190 Syntax error
4191 _ACEOF
4192 if ac_fn_c_try_cpp "$LINENO"; then :
4193
4194 else
4195 # Broken: fails on valid input.
4196 continue
4197 fi
4198 rm -f conftest.err conftest.i conftest.$ac_ext
4199
4200 # OK, works on sane cases. Now check whether nonexistent headers
4201 # can be detected and how.
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #include <ac_nonexistent.h>
4205 _ACEOF
4206 if ac_fn_c_try_cpp "$LINENO"; then :
4207 # Broken: success on invalid input.
4208 continue
4209 else
4210 # Passes both tests.
4211 ac_preproc_ok=:
4212 break
4213 fi
4214 rm -f conftest.err conftest.i conftest.$ac_ext
4215
4216 done
4217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4218 rm -f conftest.i conftest.err conftest.$ac_ext
4219 if $ac_preproc_ok; then :
4220
4221 else
4222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4225 See \`config.log' for more details" "$LINENO" 5; }
4226 fi
4227
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4236 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4237 if ${ac_cv_path_GREP+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -z "$GREP"; then
4241 ac_path_GREP_found=false
4242 # Loop through the user's path and test for each of PROGNAME-LIST
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4245 do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_prog in grep ggrep; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4251 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4252 # Check for GNU ac_path_GREP and select it if it is found.
4253 # Check for GNU $ac_path_GREP
4254 case `"$ac_path_GREP" --version 2>&1` in
4255 *GNU*)
4256 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4257 *)
4258 ac_count=0
4259 $as_echo_n 0123456789 >"conftest.in"
4260 while :
4261 do
4262 cat "conftest.in" "conftest.in" >"conftest.tmp"
4263 mv "conftest.tmp" "conftest.in"
4264 cp "conftest.in" "conftest.nl"
4265 $as_echo 'GREP' >> "conftest.nl"
4266 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268 as_fn_arith $ac_count + 1 && ac_count=$as_val
4269 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4270 # Best one so far, save it but keep looking for a better one
4271 ac_cv_path_GREP="$ac_path_GREP"
4272 ac_path_GREP_max=$ac_count
4273 fi
4274 # 10*(2^10) chars as input seems more than enough
4275 test $ac_count -gt 10 && break
4276 done
4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278 esac
4279
4280 $ac_path_GREP_found && break 3
4281 done
4282 done
4283 done
4284 IFS=$as_save_IFS
4285 if test -z "$ac_cv_path_GREP"; then
4286 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4287 fi
4288 else
4289 ac_cv_path_GREP=$GREP
4290 fi
4291
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4294 $as_echo "$ac_cv_path_GREP" >&6; }
4295 GREP="$ac_cv_path_GREP"
4296
4297
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4299 $as_echo_n "checking for egrep... " >&6; }
4300 if ${ac_cv_path_EGREP+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4304 then ac_cv_path_EGREP="$GREP -E"
4305 else
4306 if test -z "$EGREP"; then
4307 ac_path_EGREP_found=false
4308 # Loop through the user's path and test for each of PROGNAME-LIST
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4311 do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_prog in egrep; do
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4317 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4318 # Check for GNU ac_path_EGREP and select it if it is found.
4319 # Check for GNU $ac_path_EGREP
4320 case `"$ac_path_EGREP" --version 2>&1` in
4321 *GNU*)
4322 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4323 *)
4324 ac_count=0
4325 $as_echo_n 0123456789 >"conftest.in"
4326 while :
4327 do
4328 cat "conftest.in" "conftest.in" >"conftest.tmp"
4329 mv "conftest.tmp" "conftest.in"
4330 cp "conftest.in" "conftest.nl"
4331 $as_echo 'EGREP' >> "conftest.nl"
4332 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4334 as_fn_arith $ac_count + 1 && ac_count=$as_val
4335 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4336 # Best one so far, save it but keep looking for a better one
4337 ac_cv_path_EGREP="$ac_path_EGREP"
4338 ac_path_EGREP_max=$ac_count
4339 fi
4340 # 10*(2^10) chars as input seems more than enough
4341 test $ac_count -gt 10 && break
4342 done
4343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4344 esac
4345
4346 $ac_path_EGREP_found && break 3
4347 done
4348 done
4349 done
4350 IFS=$as_save_IFS
4351 if test -z "$ac_cv_path_EGREP"; then
4352 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4353 fi
4354 else
4355 ac_cv_path_EGREP=$EGREP
4356 fi
4357
4358 fi
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4361 $as_echo "$ac_cv_path_EGREP" >&6; }
4362 EGREP="$ac_cv_path_EGREP"
4363
4364
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4366 $as_echo_n "checking for ANSI C header files... " >&6; }
4367 if ${ac_cv_header_stdc+:} false; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 #include <stdlib.h>
4373 #include <stdarg.h>
4374 #include <string.h>
4375 #include <float.h>
4376
4377 int
4378 main ()
4379 {
4380
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 ac_cv_header_stdc=yes
4387 else
4388 ac_cv_header_stdc=no
4389 fi
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391
4392 if test $ac_cv_header_stdc = yes; then
4393 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396 #include <string.h>
4397
4398 _ACEOF
4399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4400 $EGREP "memchr" >/dev/null 2>&1; then :
4401
4402 else
4403 ac_cv_header_stdc=no
4404 fi
4405 rm -f conftest*
4406
4407 fi
4408
4409 if test $ac_cv_header_stdc = yes; then
4410 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413 #include <stdlib.h>
4414
4415 _ACEOF
4416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4417 $EGREP "free" >/dev/null 2>&1; then :
4418
4419 else
4420 ac_cv_header_stdc=no
4421 fi
4422 rm -f conftest*
4423
4424 fi
4425
4426 if test $ac_cv_header_stdc = yes; then
4427 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4428 if test "$cross_compiling" = yes; then :
4429 :
4430 else
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #include <ctype.h>
4434 #include <stdlib.h>
4435 #if ((' ' & 0x0FF) == 0x020)
4436 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4437 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4438 #else
4439 # define ISLOWER(c) \
4440 (('a' <= (c) && (c) <= 'i') \
4441 || ('j' <= (c) && (c) <= 'r') \
4442 || ('s' <= (c) && (c) <= 'z'))
4443 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4444 #endif
4445
4446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4447 int
4448 main ()
4449 {
4450 int i;
4451 for (i = 0; i < 256; i++)
4452 if (XOR (islower (i), ISLOWER (i))
4453 || toupper (i) != TOUPPER (i))
4454 return 2;
4455 return 0;
4456 }
4457 _ACEOF
4458 if ac_fn_c_try_run "$LINENO"; then :
4459
4460 else
4461 ac_cv_header_stdc=no
4462 fi
4463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4464 conftest.$ac_objext conftest.beam conftest.$ac_ext
4465 fi
4466
4467 fi
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4470 $as_echo "$ac_cv_header_stdc" >&6; }
4471 if test $ac_cv_header_stdc = yes; then
4472
4473 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4474
4475 fi
4476
4477 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4478 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4479 inttypes.h stdint.h unistd.h
4480 do :
4481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4482 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4483 "
4484 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4485 cat >>confdefs.h <<_ACEOF
4486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487 _ACEOF
4488
4489 fi
4490
4491 done
4492
4493
4494
4495
4496 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4497 if test -n "$ac_tool_prefix"; then
4498 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4499 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 case $PKG_CONFIG in
4506 [\\/]* | ?:[\\/]*)
4507 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4508 ;;
4509 *)
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521 done
4522 done
4523 IFS=$as_save_IFS
4524
4525 ;;
4526 esac
4527 fi
4528 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4529 if test -n "$PKG_CONFIG"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4531 $as_echo "$PKG_CONFIG" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4535 fi
4536
4537
4538 fi
4539 if test -z "$ac_cv_path_PKG_CONFIG"; then
4540 ac_pt_PKG_CONFIG=$PKG_CONFIG
4541 # Extract the first word of "pkg-config", so it can be a program name with args.
4542 set dummy pkg-config; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 case $ac_pt_PKG_CONFIG in
4549 [\\/]* | ?:[\\/]*)
4550 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4551 ;;
4552 *)
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568 ;;
4569 esac
4570 fi
4571 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4572 if test -n "$ac_pt_PKG_CONFIG"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4574 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580 if test "x$ac_pt_PKG_CONFIG" = x; then
4581 PKG_CONFIG=""
4582 else
4583 case $cross_compiling:$ac_tool_warned in
4584 yes:)
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587 ac_tool_warned=yes ;;
4588 esac
4589 PKG_CONFIG=$ac_pt_PKG_CONFIG
4590 fi
4591 else
4592 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4593 fi
4594
4595 fi
4596 if test -n "$PKG_CONFIG"; then
4597 _pkg_min_version=0.9.0
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4599 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4600 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602 $as_echo "yes" >&6; }
4603 else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 PKG_CONFIG=""
4607 fi
4608
4609 fi
4610 # Make sure we can run config.sub.
4611 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4612 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4615 $as_echo_n "checking build system type... " >&6; }
4616 if ${ac_cv_build+:} false; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 ac_build_alias=$build_alias
4620 test "x$ac_build_alias" = x &&
4621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4622 test "x$ac_build_alias" = x &&
4623 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4624 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4626
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4629 $as_echo "$ac_cv_build" >&6; }
4630 case $ac_cv_build in
4631 *-*-*) ;;
4632 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4633 esac
4634 build=$ac_cv_build
4635 ac_save_IFS=$IFS; IFS='-'
4636 set x $ac_cv_build
4637 shift
4638 build_cpu=$1
4639 build_vendor=$2
4640 shift; shift
4641 # Remember, the first character of IFS is used to create $*,
4642 # except with old shells:
4643 build_os=$*
4644 IFS=$ac_save_IFS
4645 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4646
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4649 $as_echo_n "checking host system type... " >&6; }
4650 if ${ac_cv_host+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test "x$host_alias" = x; then
4654 ac_cv_host=$ac_cv_build
4655 else
4656 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4657 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4658 fi
4659
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4662 $as_echo "$ac_cv_host" >&6; }
4663 case $ac_cv_host in
4664 *-*-*) ;;
4665 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4666 esac
4667 host=$ac_cv_host
4668 ac_save_IFS=$IFS; IFS='-'
4669 set x $ac_cv_host
4670 shift
4671 host_cpu=$1
4672 host_vendor=$2
4673 shift; shift
4674 # Remember, the first character of IFS is used to create $*,
4675 # except with old shells:
4676 host_os=$*
4677 IFS=$ac_save_IFS
4678 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4679
4680
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4682 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4683 if ${ac_cv_path_SED+:} false; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4687 for ac_i in 1 2 3 4 5 6 7; do
4688 ac_script="$ac_script$as_nl$ac_script"
4689 done
4690 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4691 { ac_script=; unset ac_script;}
4692 if test -z "$SED"; then
4693 ac_path_SED_found=false
4694 # Loop through the user's path and test for each of PROGNAME-LIST
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_prog in sed gsed; do
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4703 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4704 # Check for GNU ac_path_SED and select it if it is found.
4705 # Check for GNU $ac_path_SED
4706 case `"$ac_path_SED" --version 2>&1` in
4707 *GNU*)
4708 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4709 *)
4710 ac_count=0
4711 $as_echo_n 0123456789 >"conftest.in"
4712 while :
4713 do
4714 cat "conftest.in" "conftest.in" >"conftest.tmp"
4715 mv "conftest.tmp" "conftest.in"
4716 cp "conftest.in" "conftest.nl"
4717 $as_echo '' >> "conftest.nl"
4718 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4720 as_fn_arith $ac_count + 1 && ac_count=$as_val
4721 if test $ac_count -gt ${ac_path_SED_max-0}; then
4722 # Best one so far, save it but keep looking for a better one
4723 ac_cv_path_SED="$ac_path_SED"
4724 ac_path_SED_max=$ac_count
4725 fi
4726 # 10*(2^10) chars as input seems more than enough
4727 test $ac_count -gt 10 && break
4728 done
4729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730 esac
4731
4732 $ac_path_SED_found && break 3
4733 done
4734 done
4735 done
4736 IFS=$as_save_IFS
4737 if test -z "$ac_cv_path_SED"; then
4738 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4739 fi
4740 else
4741 ac_cv_path_SED=$SED
4742 fi
4743
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4746 $as_echo "$ac_cv_path_SED" >&6; }
4747 SED="$ac_cv_path_SED"
4748 rm -f conftest.sed
4749
4750
4751
4752
4753
4754 if test "x$GCC" = xyes ; then
4755 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4756 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4757 -Wbad-function-cast -Wformat=2"
4758 case `$CC -dumpversion` in
4759 3.4.* | 4.*)
4760 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4761 ;;
4762 esac
4763 else
4764 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4765 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4766 SUNCC="yes"
4767 else
4768 SUNCC="no"
4769 fi
4770
4771 if test "x$SUNCC" = "xyes"; then
4772 CWARNFLAGS="-v"
4773 fi
4774 fi
4775
4776
4777
4778 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4779
4780
4781
4782 # Check whether --enable-strict-compilation was given.
4783 if test "${enable_strict_compilation+set}" = set; then :
4784 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4785 else
4786 STRICT_COMPILE=no
4787 fi
4788
4789 if test "x$STRICT_COMPILE" = "xyes"; then
4790 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4791 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4792 SUNCC="yes"
4793 else
4794 SUNCC="no"
4795 fi
4796
4797 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4798 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4799 INTELCC="yes"
4800 else
4801 INTELCC="no"
4802 fi
4803
4804 if test "x$GCC" = xyes ; then
4805 STRICT_CFLAGS="-pedantic -Werror"
4806 elif test "x$SUNCC" = "xyes"; then
4807 STRICT_CFLAGS="-errwarn"
4808 elif test "x$INTELCC" = "xyes"; then
4809 STRICT_CFLAGS="-Werror"
4810 fi
4811 fi
4812 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4813
4814
4815
4816
4817 cat >>confdefs.h <<_ACEOF
4818 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4819 _ACEOF
4820
4821 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4822 if test "x$PVM" = "x"; then
4823 PVM="0"
4824 fi
4825
4826 cat >>confdefs.h <<_ACEOF
4827 #define PACKAGE_VERSION_MINOR $PVM
4828 _ACEOF
4829
4830 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4831 if test "x$PVP" = "x"; then
4832 PVP="0"
4833 fi
4834
4835 cat >>confdefs.h <<_ACEOF
4836 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4837 _ACEOF
4838
4839
4840
4841 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4842 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4843 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4844 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4845
4846
4847
4848
4849 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4850 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4851 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4852 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4853 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4854
4855
4856
4857
4858
4859
4860 if test x$APP_MAN_SUFFIX = x ; then
4861 APP_MAN_SUFFIX=1
4862 fi
4863 if test x$APP_MAN_DIR = x ; then
4864 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4865 fi
4866
4867 if test x$LIB_MAN_SUFFIX = x ; then
4868 LIB_MAN_SUFFIX=3
4869 fi
4870 if test x$LIB_MAN_DIR = x ; then
4871 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4872 fi
4873
4874 if test x$FILE_MAN_SUFFIX = x ; then
4875 case $host_os in
4876 solaris*) FILE_MAN_SUFFIX=4 ;;
4877 *) FILE_MAN_SUFFIX=5 ;;
4878 esac
4879 fi
4880 if test x$FILE_MAN_DIR = x ; then
4881 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4882 fi
4883
4884 if test x$MISC_MAN_SUFFIX = x ; then
4885 case $host_os in
4886 solaris*) MISC_MAN_SUFFIX=5 ;;
4887 *) MISC_MAN_SUFFIX=7 ;;
4888 esac
4889 fi
4890 if test x$MISC_MAN_DIR = x ; then
4891 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4892 fi
4893
4894 if test x$DRIVER_MAN_SUFFIX = x ; then
4895 case $host_os in
4896 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4897 *) DRIVER_MAN_SUFFIX=4 ;;
4898 esac
4899 fi
4900 if test x$DRIVER_MAN_DIR = x ; then
4901 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4902 fi
4903
4904 if test x$ADMIN_MAN_SUFFIX = x ; then
4905 case $host_os in
4906 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4907 *) ADMIN_MAN_SUFFIX=8 ;;
4908 esac
4909 fi
4910 if test x$ADMIN_MAN_DIR = x ; then
4911 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4912 fi
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928 XORG_MAN_PAGE="X Version 11"
4929
4930 MAN_SUBSTS="\
4931 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4932 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4933 -e 's|__xservername__|Xorg|g' \
4934 -e 's|__xconfigfile__|xorg.conf|g' \
4935 -e 's|__projectroot__|\$(prefix)|g' \
4936 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4937 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4938 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4939 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4940 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4941 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4942 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4943
4944
4945
4946 # Check whether --enable-silent-rules was given.
4947 if test "${enable_silent_rules+set}" = set; then :
4948 enableval=$enable_silent_rules;
4949 fi
4950
4951 case $enable_silent_rules in
4952 yes) AM_DEFAULT_VERBOSITY=0;;
4953 no) AM_DEFAULT_VERBOSITY=1;;
4954 *) AM_DEFAULT_VERBOSITY=0;;
4955 esac
4956 AM_BACKSLASH='\'
4957
4958
4959
4960 default=
4961 if test "x$default" = x ; then
4962 default="yes"
4963 fi
4964 # Check whether --enable-docs was given.
4965 if test "${enable_docs+set}" = set; then :
4966 enableval=$enable_docs; build_docs=$enableval
4967 else
4968 build_docs=$default
4969 fi
4970
4971 if test x$build_docs = xyes; then
4972 ENABLE_DOCS_TRUE=
4973 ENABLE_DOCS_FALSE='#'
4974 else
4975 ENABLE_DOCS_TRUE='#'
4976 ENABLE_DOCS_FALSE=
4977 fi
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
4980 $as_echo_n "checking whether to build documentation... " >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
4982 $as_echo "$build_docs" >&6; }
4983
4984
4985
4986
4987 # Check whether --with-xmlto was given.
4988 if test "${with_xmlto+set}" = set; then :
4989 withval=$with_xmlto; use_xmlto=$withval
4990 else
4991 use_xmlto=auto
4992 fi
4993
4994
4995 if test "x$use_xmlto" = x"auto"; then
4996 # Extract the first word of "xmlto", so it can be a program name with args.
4997 set dummy xmlto; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if ${ac_cv_path_XMLTO+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 case $XMLTO in
5004 [\\/]* | ?:[\\/]*)
5005 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5006 ;;
5007 *)
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5018 fi
5019 done
5020 done
5021 IFS=$as_save_IFS
5022
5023 ;;
5024 esac
5025 fi
5026 XMLTO=$ac_cv_path_XMLTO
5027 if test -n "$XMLTO"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5029 $as_echo "$XMLTO" >&6; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5033 fi
5034
5035
5036 if test "x$XMLTO" = "x"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
5038 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
5039 have_xmlto=no
5040 else
5041 have_xmlto=yes
5042 fi
5043 elif test "x$use_xmlto" = x"yes" ; then
5044 # Extract the first word of "xmlto", so it can be a program name with args.
5045 set dummy xmlto; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_path_XMLTO+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 case $XMLTO in
5052 [\\/]* | ?:[\\/]*)
5053 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5054 ;;
5055 *)
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 ;;
5072 esac
5073 fi
5074 XMLTO=$ac_cv_path_XMLTO
5075 if test -n "$XMLTO"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5077 $as_echo "$XMLTO" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082
5083
5084 if test "x$XMLTO" = "x"; then
5085 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
5086 fi
5087 have_xmlto=yes
5088 elif test "x$use_xmlto" = x"no" ; then
5089 if test "x$XMLTO" != "x"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
5091 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
5092 fi
5093 have_xmlto=no
5094 else
5095 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
5096 fi
5097
5098 # Test for a minimum version of xmlto, if provided.
5099 if test "$have_xmlto" = yes; then
5100 # scrape the xmlto version
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
5102 $as_echo_n "checking the xmlto version... " >&6; }
5103 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
5105 $as_echo "$xmlto_version" >&6; }
5106 as_arg_v1=$xmlto_version
5107 as_arg_v2=0.0.20
5108 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5109 case $? in #(
5110 1) :
5111 if test "x$use_xmlto" = xauto; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
5113 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
5114 have_xmlto=no
5115 else
5116 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
5117 fi ;; #(
5118 0) :
5119 ;; #(
5120 2) :
5121 ;; #(
5122 *) :
5123 ;;
5124 esac
5125 fi
5126
5127 # Test for the ability of xmlto to generate a text target
5128 have_xmlto_text=no
5129 cat > conftest.xml << "EOF"
5130 EOF
5131 if test "$have_xmlto" = yes; then :
5132 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
5133 have_xmlto_text=yes
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
5136 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
5137 fi
5138 fi
5139 rm -f conftest.xml
5140 if test $have_xmlto_text = yes; then
5141 HAVE_XMLTO_TEXT_TRUE=
5142 HAVE_XMLTO_TEXT_FALSE='#'
5143 else
5144 HAVE_XMLTO_TEXT_TRUE='#'
5145 HAVE_XMLTO_TEXT_FALSE=
5146 fi
5147
5148 if test "$have_xmlto" = yes; then
5149 HAVE_XMLTO_TRUE=
5150 HAVE_XMLTO_FALSE='#'
5151 else
5152 HAVE_XMLTO_TRUE='#'
5153 HAVE_XMLTO_FALSE=
5154 fi
5155
5156
5157
5158
5159
5160 # Check whether --with-fop was given.
5161 if test "${with_fop+set}" = set; then :
5162 withval=$with_fop; use_fop=$withval
5163 else
5164 use_fop=auto
5165 fi
5166
5167
5168 if test "x$use_fop" = x"auto"; then
5169 # Extract the first word of "fop", so it can be a program name with args.
5170 set dummy fop; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_path_FOP+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 case $FOP in
5177 [\\/]* | ?:[\\/]*)
5178 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5179 ;;
5180 *)
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 ;;
5197 esac
5198 fi
5199 FOP=$ac_cv_path_FOP
5200 if test -n "$FOP"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5202 $as_echo "$FOP" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208
5209 if test "x$FOP" = "x"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
5211 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
5212 have_fop=no
5213 else
5214 have_fop=yes
5215 fi
5216 elif test "x$use_fop" = x"yes" ; then
5217 # Extract the first word of "fop", so it can be a program name with args.
5218 set dummy fop; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_path_FOP+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 case $FOP in
5225 [\\/]* | ?:[\\/]*)
5226 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5227 ;;
5228 *)
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244 ;;
5245 esac
5246 fi
5247 FOP=$ac_cv_path_FOP
5248 if test -n "$FOP"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5250 $as_echo "$FOP" >&6; }
5251 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5254 fi
5255
5256
5257 if test "x$FOP" = "x"; then
5258 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
5259 fi
5260 have_fop=yes
5261 elif test "x$use_fop" = x"no" ; then
5262 if test "x$FOP" != "x"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
5264 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
5265 fi
5266 have_fop=no
5267 else
5268 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
5269 fi
5270 if test "$have_fop" = yes; then
5271 HAVE_FOP_TRUE=
5272 HAVE_FOP_FALSE='#'
5273 else
5274 HAVE_FOP_TRUE='#'
5275 HAVE_FOP_FALSE=
5276 fi
5277
5278
5279
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
5281 $as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
5282 XORG_SGML_PATH=
5283 if test -n "$PKG_CONFIG" && \
5284 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
5285 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
5286 ac_status=$?
5287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5288 test $ac_status = 0; }; then
5289 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
5290 else
5291 :
5292
5293 fi
5294
5295 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
5296 # the path and the name of the doc stylesheet
5297 if test "x$XORG_SGML_PATH" != "x" ; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
5299 $as_echo "$XORG_SGML_PATH" >&6; }
5300 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
5301 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
5302 else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5305 fi
5306
5307
5308
5309
5310 if test "x$XSL_STYLESHEET" != "x"; then
5311 HAVE_STYLESHEETS_TRUE=
5312 HAVE_STYLESHEETS_FALSE='#'
5313 else
5314 HAVE_STYLESHEETS_TRUE='#'
5315 HAVE_STYLESHEETS_FALSE=
5316 fi
5317
5318
5319
5320 ac_config_headers="$ac_config_headers config.h"
5321
5322
5323 # Checks for programs.
5324 case `pwd` in
5325 *\ * | *\ *)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5327 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5328 esac
5329
5330
5331
5332 macro_version='2.2.10'
5333 macro_revision='1.3175'
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347 ltmain="$ac_aux_dir/ltmain.sh"
5348
5349 # Backslashify metacharacters that are still active within
5350 # double-quoted strings.
5351 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5352
5353 # Same as above, but do not quote variable references.
5354 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5355
5356 # Sed substitution to delay expansion of an escaped shell variable in a
5357 # double_quote_subst'ed string.
5358 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5359
5360 # Sed substitution to delay expansion of an escaped single quote.
5361 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5362
5363 # Sed substitution to avoid accidental globbing in evaled expressions
5364 no_glob_subst='s/\*/\\\*/g'
5365
5366 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5367 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5368 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5369
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5371 $as_echo_n "checking how to print strings... " >&6; }
5372 # Test print first, because it will be a builtin if present.
5373 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5374 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5375 ECHO='print -r --'
5376 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5377 ECHO='printf %s\n'
5378 else
5379 # Use this function as a fallback that always works.
5380 func_fallback_echo ()
5381 {
5382 eval 'cat <<_LTECHO_EOF
5383 $1
5384 _LTECHO_EOF'
5385 }
5386 ECHO='func_fallback_echo'
5387 fi
5388
5389 # func_echo_all arg...
5390 # Invoke $ECHO with all args, space-separated.
5391 func_echo_all ()
5392 {
5393 $ECHO ""
5394 }
5395
5396 case "$ECHO" in
5397 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5398 $as_echo "printf" >&6; } ;;
5399 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5400 $as_echo "print -r" >&6; } ;;
5401 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5402 $as_echo "cat" >&6; } ;;
5403 esac
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5419 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5420 if ${ac_cv_path_SED+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5424 for ac_i in 1 2 3 4 5 6 7; do
5425 ac_script="$ac_script$as_nl$ac_script"
5426 done
5427 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5428 { ac_script=; unset ac_script;}
5429 if test -z "$SED"; then
5430 ac_path_SED_found=false
5431 # Loop through the user's path and test for each of PROGNAME-LIST
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_prog in sed gsed; do
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5440 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5441 # Check for GNU ac_path_SED and select it if it is found.
5442 # Check for GNU $ac_path_SED
5443 case `"$ac_path_SED" --version 2>&1` in
5444 *GNU*)
5445 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5446 *)
5447 ac_count=0
5448 $as_echo_n 0123456789 >"conftest.in"
5449 while :
5450 do
5451 cat "conftest.in" "conftest.in" >"conftest.tmp"
5452 mv "conftest.tmp" "conftest.in"
5453 cp "conftest.in" "conftest.nl"
5454 $as_echo '' >> "conftest.nl"
5455 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5457 as_fn_arith $ac_count + 1 && ac_count=$as_val
5458 if test $ac_count -gt ${ac_path_SED_max-0}; then
5459 # Best one so far, save it but keep looking for a better one
5460 ac_cv_path_SED="$ac_path_SED"
5461 ac_path_SED_max=$ac_count
5462 fi
5463 # 10*(2^10) chars as input seems more than enough
5464 test $ac_count -gt 10 && break
5465 done
5466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5467 esac
5468
5469 $ac_path_SED_found && break 3
5470 done
5471 done
5472 done
5473 IFS=$as_save_IFS
5474 if test -z "$ac_cv_path_SED"; then
5475 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5476 fi
5477 else
5478 ac_cv_path_SED=$SED
5479 fi
5480
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5483 $as_echo "$ac_cv_path_SED" >&6; }
5484 SED="$ac_cv_path_SED"
5485 rm -f conftest.sed
5486
5487 test -z "$SED" && SED=sed
5488 Xsed="$SED -e 1s/^X//"
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5501 $as_echo_n "checking for fgrep... " >&6; }
5502 if ${ac_cv_path_FGREP+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5506 then ac_cv_path_FGREP="$GREP -F"
5507 else
5508 if test -z "$FGREP"; then
5509 ac_path_FGREP_found=false
5510 # Loop through the user's path and test for each of PROGNAME-LIST
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5513 do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_prog in fgrep; do
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5519 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5520 # Check for GNU ac_path_FGREP and select it if it is found.
5521 # Check for GNU $ac_path_FGREP
5522 case `"$ac_path_FGREP" --version 2>&1` in
5523 *GNU*)
5524 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5525 *)
5526 ac_count=0
5527 $as_echo_n 0123456789 >"conftest.in"
5528 while :
5529 do
5530 cat "conftest.in" "conftest.in" >"conftest.tmp"
5531 mv "conftest.tmp" "conftest.in"
5532 cp "conftest.in" "conftest.nl"
5533 $as_echo 'FGREP' >> "conftest.nl"
5534 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5536 as_fn_arith $ac_count + 1 && ac_count=$as_val
5537 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5538 # Best one so far, save it but keep looking for a better one
5539 ac_cv_path_FGREP="$ac_path_FGREP"
5540 ac_path_FGREP_max=$ac_count
5541 fi
5542 # 10*(2^10) chars as input seems more than enough
5543 test $ac_count -gt 10 && break
5544 done
5545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5546 esac
5547
5548 $ac_path_FGREP_found && break 3
5549 done
5550 done
5551 done
5552 IFS=$as_save_IFS
5553 if test -z "$ac_cv_path_FGREP"; then
5554 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5555 fi
5556 else
5557 ac_cv_path_FGREP=$FGREP
5558 fi
5559
5560 fi
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5563 $as_echo "$ac_cv_path_FGREP" >&6; }
5564 FGREP="$ac_cv_path_FGREP"
5565
5566
5567 test -z "$GREP" && GREP=grep
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587 # Check whether --with-gnu-ld was given.
5588 if test "${with_gnu_ld+set}" = set; then :
5589 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5590 else
5591 with_gnu_ld=no
5592 fi
5593
5594 ac_prog=ld
5595 if test "$GCC" = yes; then
5596 # Check if gcc -print-prog-name=ld gives a path.
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5598 $as_echo_n "checking for ld used by $CC... " >&6; }
5599 case $host in
5600 *-*-mingw*)
5601 # gcc leaves a trailing carriage return which upsets mingw
5602 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5603 *)
5604 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5605 esac
5606 case $ac_prog in
5607 # Accept absolute paths.
5608 [\\/]* | ?:[\\/]*)
5609 re_direlt='/[^/][^/]*/\.\./'
5610 # Canonicalize the pathname of ld
5611 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5612 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5613 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5614 done
5615 test -z "$LD" && LD="$ac_prog"
5616 ;;
5617 "")
5618 # If it fails, then pretend we aren't using GCC.
5619 ac_prog=ld
5620 ;;
5621 *)
5622 # If it is relative, then search for the first ld in PATH.
5623 with_gnu_ld=unknown
5624 ;;
5625 esac
5626 elif test "$with_gnu_ld" = yes; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5628 $as_echo_n "checking for GNU ld... " >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5631 $as_echo_n "checking for non-GNU ld... " >&6; }
5632 fi
5633 if ${lt_cv_path_LD+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -z "$LD"; then
5637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5638 for ac_dir in $PATH; do
5639 IFS="$lt_save_ifs"
5640 test -z "$ac_dir" && ac_dir=.
5641 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5642 lt_cv_path_LD="$ac_dir/$ac_prog"
5643 # Check to see if the program is GNU ld. I'd rather use --version,
5644 # but apparently some variants of GNU ld only accept -v.
5645 # Break only if it was the GNU/non-GNU ld that we prefer.
5646 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5647 *GNU* | *'with BFD'*)
5648 test "$with_gnu_ld" != no && break
5649 ;;
5650 *)
5651 test "$with_gnu_ld" != yes && break
5652 ;;
5653 esac
5654 fi
5655 done
5656 IFS="$lt_save_ifs"
5657 else
5658 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5659 fi
5660 fi
5661
5662 LD="$lt_cv_path_LD"
5663 if test -n "$LD"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5665 $as_echo "$LD" >&6; }
5666 else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5672 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5673 if ${lt_cv_prog_gnu_ld+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5677 case `$LD -v 2>&1 </dev/null` in
5678 *GNU* | *'with BFD'*)
5679 lt_cv_prog_gnu_ld=yes
5680 ;;
5681 *)
5682 lt_cv_prog_gnu_ld=no
5683 ;;
5684 esac
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5687 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5688 with_gnu_ld=$lt_cv_prog_gnu_ld
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5699 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5700 if ${lt_cv_path_NM+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -n "$NM"; then
5704 # Let the user override the test.
5705 lt_cv_path_NM="$NM"
5706 else
5707 lt_nm_to_check="${ac_tool_prefix}nm"
5708 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5709 lt_nm_to_check="$lt_nm_to_check nm"
5710 fi
5711 for lt_tmp_nm in $lt_nm_to_check; do
5712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5713 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5714 IFS="$lt_save_ifs"
5715 test -z "$ac_dir" && ac_dir=.
5716 tmp_nm="$ac_dir/$lt_tmp_nm"
5717 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5718 # Check to see if the nm accepts a BSD-compat flag.
5719 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5720 # nm: unknown option "B" ignored
5721 # Tru64's nm complains that /dev/null is an invalid object file
5722 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5723 */dev/null* | *'Invalid file or object type'*)
5724 lt_cv_path_NM="$tmp_nm -B"
5725 break
5726 ;;
5727 *)
5728 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5729 */dev/null*)
5730 lt_cv_path_NM="$tmp_nm -p"
5731 break
5732 ;;
5733 *)
5734 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5735 continue # so that we can try to find one that supports BSD flags
5736 ;;
5737 esac
5738 ;;
5739 esac
5740 fi
5741 done
5742 IFS="$lt_save_ifs"
5743 done
5744 : ${lt_cv_path_NM=no}
5745 fi
5746 fi
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5748 $as_echo "$lt_cv_path_NM" >&6; }
5749 if test "$lt_cv_path_NM" != "no"; then
5750 NM="$lt_cv_path_NM"
5751 else
5752 # Didn't find any BSD compatible name lister, look for dumpbin.
5753 if test -n "$DUMPBIN"; then :
5754 # Let the user override the test.
5755 else
5756 if test -n "$ac_tool_prefix"; then
5757 for ac_prog in dumpbin "link -dump"
5758 do
5759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5760 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_DUMPBIN+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -n "$DUMPBIN"; then
5767 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780 done
5781 done
5782 IFS=$as_save_IFS
5783
5784 fi
5785 fi
5786 DUMPBIN=$ac_cv_prog_DUMPBIN
5787 if test -n "$DUMPBIN"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5789 $as_echo "$DUMPBIN" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795
5796 test -n "$DUMPBIN" && break
5797 done
5798 fi
5799 if test -z "$DUMPBIN"; then
5800 ac_ct_DUMPBIN=$DUMPBIN
5801 for ac_prog in dumpbin "link -dump"
5802 do
5803 # Extract the first word of "$ac_prog", so it can be a program name with args.
5804 set dummy $ac_prog; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -n "$ac_ct_DUMPBIN"; then
5811 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824 done
5825 done
5826 IFS=$as_save_IFS
5827
5828 fi
5829 fi
5830 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5831 if test -n "$ac_ct_DUMPBIN"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5833 $as_echo "$ac_ct_DUMPBIN" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838
5839
5840 test -n "$ac_ct_DUMPBIN" && break
5841 done
5842
5843 if test "x$ac_ct_DUMPBIN" = x; then
5844 DUMPBIN=":"
5845 else
5846 case $cross_compiling:$ac_tool_warned in
5847 yes:)
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5850 ac_tool_warned=yes ;;
5851 esac
5852 DUMPBIN=$ac_ct_DUMPBIN
5853 fi
5854 fi
5855
5856 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5857 *COFF*)
5858 DUMPBIN="$DUMPBIN -symbols"
5859 ;;
5860 *)
5861 DUMPBIN=:
5862 ;;
5863 esac
5864 fi
5865
5866 if test "$DUMPBIN" != ":"; then
5867 NM="$DUMPBIN"
5868 fi
5869 fi
5870 test -z "$NM" && NM=nm
5871
5872
5873
5874
5875
5876
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5878 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5879 if ${lt_cv_nm_interface+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 lt_cv_nm_interface="BSD nm"
5883 echo "int some_variable = 0;" > conftest.$ac_ext
5884 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5885 (eval "$ac_compile" 2>conftest.err)
5886 cat conftest.err >&5
5887 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5888 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5889 cat conftest.err >&5
5890 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5891 cat conftest.out >&5
5892 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5893 lt_cv_nm_interface="MS dumpbin"
5894 fi
5895 rm -f conftest*
5896 fi
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5898 $as_echo "$lt_cv_nm_interface" >&6; }
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5901 $as_echo_n "checking whether ln -s works... " >&6; }
5902 LN_S=$as_ln_s
5903 if test "$LN_S" = "ln -s"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5905 $as_echo "yes" >&6; }
5906 else
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5908 $as_echo "no, using $LN_S" >&6; }
5909 fi
5910
5911 # find the maximum length of command line arguments
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5913 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5914 if ${lt_cv_sys_max_cmd_len+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 i=0
5918 teststring="ABCD"
5919
5920 case $build_os in
5921 msdosdjgpp*)
5922 # On DJGPP, this test can blow up pretty badly due to problems in libc
5923 # (any single argument exceeding 2000 bytes causes a buffer overrun
5924 # during glob expansion). Even if it were fixed, the result of this
5925 # check would be larger than it should be.
5926 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5927 ;;
5928
5929 gnu*)
5930 # Under GNU Hurd, this test is not required because there is
5931 # no limit to the length of command line arguments.
5932 # Libtool will interpret -1 as no limit whatsoever
5933 lt_cv_sys_max_cmd_len=-1;
5934 ;;
5935
5936 cygwin* | mingw* | cegcc*)
5937 # On Win9x/ME, this test blows up -- it succeeds, but takes
5938 # about 5 minutes as the teststring grows exponentially.
5939 # Worse, since 9x/ME are not pre-emptively multitasking,
5940 # you end up with a "frozen" computer, even though with patience
5941 # the test eventually succeeds (with a max line length of 256k).
5942 # Instead, let's just punt: use the minimum linelength reported by
5943 # all of the supported platforms: 8192 (on NT/2K/XP).
5944 lt_cv_sys_max_cmd_len=8192;
5945 ;;
5946
5947 mint*)
5948 # On MiNT this can take a long time and run out of memory.
5949 lt_cv_sys_max_cmd_len=8192;
5950 ;;
5951
5952 amigaos*)
5953 # On AmigaOS with pdksh, this test takes hours, literally.
5954 # So we just punt and use a minimum line length of 8192.
5955 lt_cv_sys_max_cmd_len=8192;
5956 ;;
5957
5958 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5959 # This has been around since 386BSD, at least. Likely further.
5960 if test -x /sbin/sysctl; then
5961 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5962 elif test -x /usr/sbin/sysctl; then
5963 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5964 else
5965 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5966 fi
5967 # And add a safety zone
5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5970 ;;
5971
5972 interix*)
5973 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5974 lt_cv_sys_max_cmd_len=196608
5975 ;;
5976
5977 osf*)
5978 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5979 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5980 # nice to cause kernel panics so lets avoid the loop below.
5981 # First set a reasonable default.
5982 lt_cv_sys_max_cmd_len=16384
5983 #
5984 if test -x /sbin/sysconfig; then
5985 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5986 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5987 esac
5988 fi
5989 ;;
5990 sco3.2v5*)
5991 lt_cv_sys_max_cmd_len=102400
5992 ;;
5993 sysv5* | sco5v6* | sysv4.2uw2*)
5994 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5995 if test -n "$kargmax"; then
5996 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5997 else
5998 lt_cv_sys_max_cmd_len=32768
5999 fi
6000 ;;
6001 *)
6002 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6003 if test -n "$lt_cv_sys_max_cmd_len"; then
6004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6006 else
6007 # Make teststring a little bigger before we do anything with it.
6008 # a 1K string should be a reasonable start.
6009 for i in 1 2 3 4 5 6 7 8 ; do
6010 teststring=$teststring$teststring
6011 done
6012 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6013 # If test is not a shell built-in, we'll probably end up computing a
6014 # maximum length that is only half of the actual maximum length, but
6015 # we can't tell.
6016 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6017 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6018 test $i != 17 # 1/2 MB should be enough
6019 do
6020 i=`expr $i + 1`
6021 teststring=$teststring$teststring
6022 done
6023 # Only check the string length outside the loop.
6024 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6025 teststring=
6026 # Add a significant safety factor because C++ compilers can tack on
6027 # massive amounts of additional arguments before passing them to the
6028 # linker. It appears as though 1/2 is a usable value.
6029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6030 fi
6031 ;;
6032 esac
6033
6034 fi
6035
6036 if test -n $lt_cv_sys_max_cmd_len ; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6038 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6039 else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6041 $as_echo "none" >&6; }
6042 fi
6043 max_cmd_len=$lt_cv_sys_max_cmd_len
6044
6045
6046
6047
6048
6049
6050 : ${CP="cp -f"}
6051 : ${MV="mv -f"}
6052 : ${RM="rm -f"}
6053
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6055 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6056 # Try some XSI features
6057 xsi_shell=no
6058 ( _lt_dummy="a/b/c"
6059 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6060 = c,a/b,, \
6061 && eval 'test $(( 1 + 1 )) -eq 2 \
6062 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6063 && xsi_shell=yes
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6065 $as_echo "$xsi_shell" >&6; }
6066
6067
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6069 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6070 lt_shell_append=no
6071 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6072 >/dev/null 2>&1 \
6073 && lt_shell_append=yes
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6075 $as_echo "$lt_shell_append" >&6; }
6076
6077
6078 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6079 lt_unset=unset
6080 else
6081 lt_unset=false
6082 fi
6083
6084
6085
6086
6087
6088 # test EBCDIC or ASCII
6089 case `echo X|tr X '\101'` in
6090 A) # ASCII based system
6091 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6092 lt_SP2NL='tr \040 \012'
6093 lt_NL2SP='tr \015\012 \040\040'
6094 ;;
6095 *) # EBCDIC based system
6096 lt_SP2NL='tr \100 \n'
6097 lt_NL2SP='tr \r\n \100\100'
6098 ;;
6099 esac
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6110 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6111 if ${lt_cv_ld_reload_flag+:} false; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 lt_cv_ld_reload_flag='-r'
6115 fi
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6117 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6118 reload_flag=$lt_cv_ld_reload_flag
6119 case $reload_flag in
6120 "" | " "*) ;;
6121 *) reload_flag=" $reload_flag" ;;
6122 esac
6123 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6124 case $host_os in
6125 darwin*)
6126 if test "$GCC" = yes; then
6127 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6128 else
6129 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6130 fi
6131 ;;
6132 esac
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6144 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if ${ac_cv_prog_OBJDUMP+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$OBJDUMP"; then
6151 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164 done
6165 done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 OBJDUMP=$ac_cv_prog_OBJDUMP
6171 if test -n "$OBJDUMP"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6173 $as_echo "$OBJDUMP" >&6; }
6174 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6177 fi
6178
6179
6180 fi
6181 if test -z "$ac_cv_prog_OBJDUMP"; then
6182 ac_ct_OBJDUMP=$OBJDUMP
6183 # Extract the first word of "objdump", so it can be a program name with args.
6184 set dummy objdump; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -n "$ac_ct_OBJDUMP"; then
6191 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6211 if test -n "$ac_ct_OBJDUMP"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6213 $as_echo "$ac_ct_OBJDUMP" >&6; }
6214 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218
6219 if test "x$ac_ct_OBJDUMP" = x; then
6220 OBJDUMP="false"
6221 else
6222 case $cross_compiling:$ac_tool_warned in
6223 yes:)
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226 ac_tool_warned=yes ;;
6227 esac
6228 OBJDUMP=$ac_ct_OBJDUMP
6229 fi
6230 else
6231 OBJDUMP="$ac_cv_prog_OBJDUMP"
6232 fi
6233
6234 test -z "$OBJDUMP" && OBJDUMP=objdump
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6245 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6246 if ${lt_cv_deplibs_check_method+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 lt_cv_file_magic_cmd='$MAGIC_CMD'
6250 lt_cv_file_magic_test_file=
6251 lt_cv_deplibs_check_method='unknown'
6252 # Need to set the preceding variable on all platforms that support
6253 # interlibrary dependencies.
6254 # 'none' -- dependencies not supported.
6255 # `unknown' -- same as none, but documents that we really don't know.
6256 # 'pass_all' -- all dependencies passed with no checks.
6257 # 'test_compile' -- check by making test program.
6258 # 'file_magic [[regex]]' -- check by looking for files in library path
6259 # which responds to the $file_magic_cmd with a given extended regex.
6260 # If you have `file' or equivalent on your system and you're not sure
6261 # whether `pass_all' will *always* work, you probably want this one.
6262
6263 case $host_os in
6264 aix[4-9]*)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267
6268 beos*)
6269 lt_cv_deplibs_check_method=pass_all
6270 ;;
6271
6272 bsdi[45]*)
6273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6274 lt_cv_file_magic_cmd='/usr/bin/file -L'
6275 lt_cv_file_magic_test_file=/shlib/libc.so
6276 ;;
6277
6278 cygwin*)
6279 # func_win32_libid is a shell function defined in ltmain.sh
6280 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6281 lt_cv_file_magic_cmd='func_win32_libid'
6282 ;;
6283
6284 mingw* | pw32*)
6285 # Base MSYS/MinGW do not provide the 'file' command needed by
6286 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6287 # unless we find 'file', for example because we are cross-compiling.
6288 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6289 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6291 lt_cv_file_magic_cmd='func_win32_libid'
6292 else
6293 # Keep this pattern in sync with the one in func_win32_libid.
6294 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6295 lt_cv_file_magic_cmd='$OBJDUMP -f'
6296 fi
6297 ;;
6298
6299 cegcc*)
6300 # use the weaker test based on 'objdump'. See mingw*.
6301 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6302 lt_cv_file_magic_cmd='$OBJDUMP -f'
6303 ;;
6304
6305 darwin* | rhapsody*)
6306 lt_cv_deplibs_check_method=pass_all
6307 ;;
6308
6309 freebsd* | dragonfly*)
6310 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6311 case $host_cpu in
6312 i*86 )
6313 # Not sure whether the presence of OpenBSD here was a mistake.
6314 # Let's accept both of them until this is cleared up.
6315 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6316 lt_cv_file_magic_cmd=/usr/bin/file
6317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6318 ;;
6319 esac
6320 else
6321 lt_cv_deplibs_check_method=pass_all
6322 fi
6323 ;;
6324
6325 gnu*)
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
6328
6329 haiku*)
6330 lt_cv_deplibs_check_method=pass_all
6331 ;;
6332
6333 hpux10.20* | hpux11*)
6334 lt_cv_file_magic_cmd=/usr/bin/file
6335 case $host_cpu in
6336 ia64*)
6337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6338 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6339 ;;
6340 hppa*64*)
6341 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6342 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6343 ;;
6344 *)
6345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6346 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6347 ;;
6348 esac
6349 ;;
6350
6351 interix[3-9]*)
6352 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6354 ;;
6355
6356 irix5* | irix6* | nonstopux*)
6357 case $LD in
6358 *-32|*"-32 ") libmagic=32-bit;;
6359 *-n32|*"-n32 ") libmagic=N32;;
6360 *-64|*"-64 ") libmagic=64-bit;;
6361 *) libmagic=never-match;;
6362 esac
6363 lt_cv_deplibs_check_method=pass_all
6364 ;;
6365
6366 # This must be Linux ELF.
6367 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370
6371 netbsd*)
6372 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6374 else
6375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6376 fi
6377 ;;
6378
6379 newos6*)
6380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6381 lt_cv_file_magic_cmd=/usr/bin/file
6382 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6383 ;;
6384
6385 *nto* | *qnx*)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
6388
6389 openbsd*)
6390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6392 else
6393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6394 fi
6395 ;;
6396
6397 osf3* | osf4* | osf5*)
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401 rdos*)
6402 lt_cv_deplibs_check_method=pass_all
6403 ;;
6404
6405 solaris*)
6406 lt_cv_deplibs_check_method=pass_all
6407 ;;
6408
6409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6410 lt_cv_deplibs_check_method=pass_all
6411 ;;
6412
6413 sysv4 | sysv4.3*)
6414 case $host_vendor in
6415 motorola)
6416 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]'
6417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6418 ;;
6419 ncr)
6420 lt_cv_deplibs_check_method=pass_all
6421 ;;
6422 sequent)
6423 lt_cv_file_magic_cmd='/bin/file'
6424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6425 ;;
6426 sni)
6427 lt_cv_file_magic_cmd='/bin/file'
6428 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6429 lt_cv_file_magic_test_file=/lib/libc.so
6430 ;;
6431 siemens)
6432 lt_cv_deplibs_check_method=pass_all
6433 ;;
6434 pc)
6435 lt_cv_deplibs_check_method=pass_all
6436 ;;
6437 esac
6438 ;;
6439
6440 tpf*)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443 esac
6444
6445 fi
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6447 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6448 file_magic_cmd=$lt_cv_file_magic_cmd
6449 deplibs_check_method=$lt_cv_deplibs_check_method
6450 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463 if test -n "$ac_tool_prefix"; then
6464 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6465 set dummy ${ac_tool_prefix}ar; ac_word=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if ${ac_cv_prog_AR+:} false; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 if test -n "$AR"; then
6472 ac_cv_prog_AR="$AR" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6481 ac_cv_prog_AR="${ac_tool_prefix}ar"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6484 fi
6485 done
6486 done
6487 IFS=$as_save_IFS
6488
6489 fi
6490 fi
6491 AR=$ac_cv_prog_AR
6492 if test -n "$AR"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6494 $as_echo "$AR" >&6; }
6495 else
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498 fi
6499
6500
6501 fi
6502 if test -z "$ac_cv_prog_AR"; then
6503 ac_ct_AR=$AR
6504 # Extract the first word of "ar", so it can be a program name with args.
6505 set dummy ar; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 if test -n "$ac_ct_AR"; then
6512 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6513 else
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6516 do
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_prog_ac_ct_AR="ar"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6524 fi
6525 done
6526 done
6527 IFS=$as_save_IFS
6528
6529 fi
6530 fi
6531 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6532 if test -n "$ac_ct_AR"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6534 $as_echo "$ac_ct_AR" >&6; }
6535 else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538 fi
6539
6540 if test "x$ac_ct_AR" = x; then
6541 AR="false"
6542 else
6543 case $cross_compiling:$ac_tool_warned in
6544 yes:)
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6547 ac_tool_warned=yes ;;
6548 esac
6549 AR=$ac_ct_AR
6550 fi
6551 else
6552 AR="$ac_cv_prog_AR"
6553 fi
6554
6555 test -z "$AR" && AR=ar
6556 test -z "$AR_FLAGS" && AR_FLAGS=cru
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 if test -n "$ac_tool_prefix"; then
6569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}strip; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_STRIP+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 if test -n "$STRIP"; then
6577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590 done
6591 done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 STRIP=$ac_cv_prog_STRIP
6597 if test -n "$STRIP"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6599 $as_echo "$STRIP" >&6; }
6600 else
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605
6606 fi
6607 if test -z "$ac_cv_prog_STRIP"; then
6608 ac_ct_STRIP=$STRIP
6609 # Extract the first word of "strip", so it can be a program name with args.
6610 set dummy strip; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 if test -n "$ac_ct_STRIP"; then
6617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_prog_ac_ct_STRIP="strip"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630 done
6631 done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6637 if test -n "$ac_ct_STRIP"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6639 $as_echo "$ac_ct_STRIP" >&6; }
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645 if test "x$ac_ct_STRIP" = x; then
6646 STRIP=":"
6647 else
6648 case $cross_compiling:$ac_tool_warned in
6649 yes:)
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652 ac_tool_warned=yes ;;
6653 esac
6654 STRIP=$ac_ct_STRIP
6655 fi
6656 else
6657 STRIP="$ac_cv_prog_STRIP"
6658 fi
6659
6660 test -z "$STRIP" && STRIP=:
6661
6662
6663
6664
6665
6666
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_prog_RANLIB+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 if test -n "$RANLIB"; then
6676 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693 fi
6694 fi
6695 RANLIB=$ac_cv_prog_RANLIB
6696 if test -n "$RANLIB"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6698 $as_echo "$RANLIB" >&6; }
6699 else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6702 fi
6703
6704
6705 fi
6706 if test -z "$ac_cv_prog_RANLIB"; then
6707 ac_ct_RANLIB=$RANLIB
6708 # Extract the first word of "ranlib", so it can be a program name with args.
6709 set dummy ranlib; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$ac_ct_RANLIB"; then
6716 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_RANLIB="ranlib"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6736 if test -n "$ac_ct_RANLIB"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6738 $as_echo "$ac_ct_RANLIB" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744 if test "x$ac_ct_RANLIB" = x; then
6745 RANLIB=":"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753 RANLIB=$ac_ct_RANLIB
6754 fi
6755 else
6756 RANLIB="$ac_cv_prog_RANLIB"
6757 fi
6758
6759 test -z "$RANLIB" && RANLIB=:
6760
6761
6762
6763
6764
6765
6766 # Determine commands to create old-style static archives.
6767 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6768 old_postinstall_cmds='chmod 644 $oldlib'
6769 old_postuninstall_cmds=
6770
6771 if test -n "$RANLIB"; then
6772 case $host_os in
6773 openbsd*)
6774 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6775 ;;
6776 *)
6777 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6778 ;;
6779 esac
6780 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6781 fi
6782
6783 case $host_os in
6784 darwin*)
6785 lock_old_archive_extraction=yes ;;
6786 *)
6787 lock_old_archive_extraction=no ;;
6788 esac
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828 # If no C compiler was specified, use CC.
6829 LTCC=${LTCC-"$CC"}
6830
6831 # If no C compiler flags were specified, use CFLAGS.
6832 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6833
6834 # Allow CC to be a program name with arguments.
6835 compiler=$CC
6836
6837
6838 # Check for command to grab the raw symbol name followed by C symbol from nm.
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6840 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6841 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844
6845 # These are sane defaults that work on at least a few old systems.
6846 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6847
6848 # Character class describing NM global symbol codes.
6849 symcode='[BCDEGRST]'
6850
6851 # Regexp to match symbols that can be accessed directly from C.
6852 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6853
6854 # Define system-specific variables.
6855 case $host_os in
6856 aix*)
6857 symcode='[BCDT]'
6858 ;;
6859 cygwin* | mingw* | pw32* | cegcc*)
6860 symcode='[ABCDGISTW]'
6861 ;;
6862 hpux*)
6863 if test "$host_cpu" = ia64; then
6864 symcode='[ABCDEGRST]'
6865 fi
6866 ;;
6867 irix* | nonstopux*)
6868 symcode='[BCDEGRST]'
6869 ;;
6870 osf*)
6871 symcode='[BCDEGQRST]'
6872 ;;
6873 solaris*)
6874 symcode='[BDRT]'
6875 ;;
6876 sco3.2v5*)
6877 symcode='[DT]'
6878 ;;
6879 sysv4.2uw2*)
6880 symcode='[DT]'
6881 ;;
6882 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6883 symcode='[ABDT]'
6884 ;;
6885 sysv4)
6886 symcode='[DFNSTU]'
6887 ;;
6888 esac
6889
6890 # If we're using GNU nm, then use its standard symbol codes.
6891 case `$NM -V 2>&1` in
6892 *GNU* | *'with BFD'*)
6893 symcode='[ABCDGIRSTW]' ;;
6894 esac
6895
6896 # Transform an extracted symbol line into a proper C declaration.
6897 # Some systems (esp. on ia64) link data and code symbols differently,
6898 # so use this general approach.
6899 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6900
6901 # Transform an extracted symbol line into symbol name and symbol address
6902 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6903 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'"
6904
6905 # Handle CRLF in mingw tool chain
6906 opt_cr=
6907 case $build_os in
6908 mingw*)
6909 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6910 ;;
6911 esac
6912
6913 # Try without a prefix underscore, then with it.
6914 for ac_symprfx in "" "_"; do
6915
6916 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6917 symxfrm="\\1 $ac_symprfx\\2 \\2"
6918
6919 # Write the raw and C identifiers.
6920 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6921 # Fake it for dumpbin and say T for any non-static function
6922 # and D for any global variable.
6923 # Also find C++ and __fastcall symbols from MSVC++,
6924 # which start with @ or ?.
6925 lt_cv_sys_global_symbol_pipe="$AWK '"\
6926 " {last_section=section; section=\$ 3};"\
6927 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6928 " \$ 0!~/External *\|/{next};"\
6929 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6930 " {if(hide[section]) next};"\
6931 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6932 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6933 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6934 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6935 " ' prfx=^$ac_symprfx"
6936 else
6937 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6938 fi
6939
6940 # Check to see that the pipe works correctly.
6941 pipe_works=no
6942
6943 rm -f conftest*
6944 cat > conftest.$ac_ext <<_LT_EOF
6945 #ifdef __cplusplus
6946 extern "C" {
6947 #endif
6948 char nm_test_var;
6949 void nm_test_func(void);
6950 void nm_test_func(void){}
6951 #ifdef __cplusplus
6952 }
6953 #endif
6954 int main(){nm_test_var='a';nm_test_func();return(0);}
6955 _LT_EOF
6956
6957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6958 (eval $ac_compile) 2>&5
6959 ac_status=$?
6960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6961 test $ac_status = 0; }; then
6962 # Now try to grab the symbols.
6963 nlist=conftest.nm
6964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6965 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6966 ac_status=$?
6967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6968 test $ac_status = 0; } && test -s "$nlist"; then
6969 # Try sorting and uniquifying the output.
6970 if sort "$nlist" | uniq > "$nlist"T; then
6971 mv -f "$nlist"T "$nlist"
6972 else
6973 rm -f "$nlist"T
6974 fi
6975
6976 # Make sure that we snagged all the symbols we need.
6977 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6978 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6979 cat <<_LT_EOF > conftest.$ac_ext
6980 #ifdef __cplusplus
6981 extern "C" {
6982 #endif
6983
6984 _LT_EOF
6985 # Now generate the symbol file.
6986 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6987
6988 cat <<_LT_EOF >> conftest.$ac_ext
6989
6990 /* The mapping between symbol names and symbols. */
6991 const struct {
6992 const char *name;
6993 void *address;
6994 }
6995 lt__PROGRAM__LTX_preloaded_symbols[] =
6996 {
6997 { "@PROGRAM@", (void *) 0 },
6998 _LT_EOF
6999 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7000 cat <<\_LT_EOF >> conftest.$ac_ext
7001 {0, (void *) 0}
7002 };
7003
7004 /* This works around a problem in FreeBSD linker */
7005 #ifdef FREEBSD_WORKAROUND
7006 static const void *lt_preloaded_setup() {
7007 return lt__PROGRAM__LTX_preloaded_symbols;
7008 }
7009 #endif
7010
7011 #ifdef __cplusplus
7012 }
7013 #endif
7014 _LT_EOF
7015 # Now try linking the two files.
7016 mv conftest.$ac_objext conftstm.$ac_objext
7017 lt_save_LIBS="$LIBS"
7018 lt_save_CFLAGS="$CFLAGS"
7019 LIBS="conftstm.$ac_objext"
7020 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7022 (eval $ac_link) 2>&5
7023 ac_status=$?
7024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7026 pipe_works=yes
7027 fi
7028 LIBS="$lt_save_LIBS"
7029 CFLAGS="$lt_save_CFLAGS"
7030 else
7031 echo "cannot find nm_test_func in $nlist" >&5
7032 fi
7033 else
7034 echo "cannot find nm_test_var in $nlist" >&5
7035 fi
7036 else
7037 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7038 fi
7039 else
7040 echo "$progname: failed program was:" >&5
7041 cat conftest.$ac_ext >&5
7042 fi
7043 rm -rf conftest* conftst*
7044
7045 # Do not use the global_symbol_pipe unless it works.
7046 if test "$pipe_works" = yes; then
7047 break
7048 else
7049 lt_cv_sys_global_symbol_pipe=
7050 fi
7051 done
7052
7053 fi
7054
7055 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7056 lt_cv_sys_global_symbol_to_cdecl=
7057 fi
7058 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7060 $as_echo "failed" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7063 $as_echo "ok" >&6; }
7064 fi
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087 # Check whether --enable-libtool-lock was given.
7088 if test "${enable_libtool_lock+set}" = set; then :
7089 enableval=$enable_libtool_lock;
7090 fi
7091
7092 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7093
7094 # Some flags need to be propagated to the compiler or linker for good
7095 # libtool support.
7096 case $host in
7097 ia64-*-hpux*)
7098 # Find out which ABI we are using.
7099 echo 'int i;' > conftest.$ac_ext
7100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7101 (eval $ac_compile) 2>&5
7102 ac_status=$?
7103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7104 test $ac_status = 0; }; then
7105 case `/usr/bin/file conftest.$ac_objext` in
7106 *ELF-32*)
7107 HPUX_IA64_MODE="32"
7108 ;;
7109 *ELF-64*)
7110 HPUX_IA64_MODE="64"
7111 ;;
7112 esac
7113 fi
7114 rm -rf conftest*
7115 ;;
7116 *-*-irix6*)
7117 # Find out which ABI we are using.
7118 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7120 (eval $ac_compile) 2>&5
7121 ac_status=$?
7122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123 test $ac_status = 0; }; then
7124 if test "$lt_cv_prog_gnu_ld" = yes; then
7125 case `/usr/bin/file conftest.$ac_objext` in
7126 *32-bit*)
7127 LD="${LD-ld} -melf32bsmip"
7128 ;;
7129 *N32*)
7130 LD="${LD-ld} -melf32bmipn32"
7131 ;;
7132 *64-bit*)
7133 LD="${LD-ld} -melf64bmip"
7134 ;;
7135 esac
7136 else
7137 case `/usr/bin/file conftest.$ac_objext` in
7138 *32-bit*)
7139 LD="${LD-ld} -32"
7140 ;;
7141 *N32*)
7142 LD="${LD-ld} -n32"
7143 ;;
7144 *64-bit*)
7145 LD="${LD-ld} -64"
7146 ;;
7147 esac
7148 fi
7149 fi
7150 rm -rf conftest*
7151 ;;
7152
7153 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7154 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7155 # Find out which ABI we are using.
7156 echo 'int i;' > conftest.$ac_ext
7157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7158 (eval $ac_compile) 2>&5
7159 ac_status=$?
7160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161 test $ac_status = 0; }; then
7162 case `/usr/bin/file conftest.o` in
7163 *32-bit*)
7164 case $host in
7165 x86_64-*kfreebsd*-gnu)
7166 LD="${LD-ld} -m elf_i386_fbsd"
7167 ;;
7168 x86_64-*linux*)
7169 LD="${LD-ld} -m elf_i386"
7170 ;;
7171 ppc64-*linux*|powerpc64-*linux*)
7172 LD="${LD-ld} -m elf32ppclinux"
7173 ;;
7174 s390x-*linux*)
7175 LD="${LD-ld} -m elf_s390"
7176 ;;
7177 sparc64-*linux*)
7178 LD="${LD-ld} -m elf32_sparc"
7179 ;;
7180 esac
7181 ;;
7182 *64-bit*)
7183 case $host in
7184 x86_64-*kfreebsd*-gnu)
7185 LD="${LD-ld} -m elf_x86_64_fbsd"
7186 ;;
7187 x86_64-*linux*)
7188 LD="${LD-ld} -m elf_x86_64"
7189 ;;
7190 ppc*-*linux*|powerpc*-*linux*)
7191 LD="${LD-ld} -m elf64ppc"
7192 ;;
7193 s390*-*linux*|s390*-*tpf*)
7194 LD="${LD-ld} -m elf64_s390"
7195 ;;
7196 sparc*-*linux*)
7197 LD="${LD-ld} -m elf64_sparc"
7198 ;;
7199 esac
7200 ;;
7201 esac
7202 fi
7203 rm -rf conftest*
7204 ;;
7205
7206 *-*-sco3.2v5*)
7207 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7208 SAVE_CFLAGS="$CFLAGS"
7209 CFLAGS="$CFLAGS -belf"
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7211 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7212 if ${lt_cv_cc_needs_belf+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7215 ac_ext=c
7216 ac_cpp='$CPP $CPPFLAGS'
7217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7220
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223
7224 int
7225 main ()
7226 {
7227
7228 ;
7229 return 0;
7230 }
7231 _ACEOF
7232 if ac_fn_c_try_link "$LINENO"; then :
7233 lt_cv_cc_needs_belf=yes
7234 else
7235 lt_cv_cc_needs_belf=no
7236 fi
7237 rm -f core conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
7239 ac_ext=c
7240 ac_cpp='$CPP $CPPFLAGS'
7241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7244
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7247 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7248 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7249 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7250 CFLAGS="$SAVE_CFLAGS"
7251 fi
7252 ;;
7253 sparc*-*solaris*)
7254 # Find out which ABI we are using.
7255 echo 'int i;' > conftest.$ac_ext
7256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7257 (eval $ac_compile) 2>&5
7258 ac_status=$?
7259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7260 test $ac_status = 0; }; then
7261 case `/usr/bin/file conftest.o` in
7262 *64-bit*)
7263 case $lt_cv_prog_gnu_ld in
7264 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7265 *)
7266 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7267 LD="${LD-ld} -64"
7268 fi
7269 ;;
7270 esac
7271 ;;
7272 esac
7273 fi
7274 rm -rf conftest*
7275 ;;
7276 esac
7277
7278 need_locks="$enable_libtool_lock"
7279
7280
7281 case $host_os in
7282 rhapsody* | darwin*)
7283 if test -n "$ac_tool_prefix"; then
7284 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7285 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 if test -n "$DSYMUTIL"; then
7292 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7304 fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309 fi
7310 fi
7311 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7312 if test -n "$DSYMUTIL"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7314 $as_echo "$DSYMUTIL" >&6; }
7315 else
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7318 fi
7319
7320
7321 fi
7322 if test -z "$ac_cv_prog_DSYMUTIL"; then
7323 ac_ct_DSYMUTIL=$DSYMUTIL
7324 # Extract the first word of "dsymutil", so it can be a program name with args.
7325 set dummy dsymutil; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$ac_ct_DSYMUTIL"; then
7332 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7344 fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7352 if test -n "$ac_ct_DSYMUTIL"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7354 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360 if test "x$ac_ct_DSYMUTIL" = x; then
7361 DSYMUTIL=":"
7362 else
7363 case $cross_compiling:$ac_tool_warned in
7364 yes:)
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367 ac_tool_warned=yes ;;
7368 esac
7369 DSYMUTIL=$ac_ct_DSYMUTIL
7370 fi
7371 else
7372 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7373 fi
7374
7375 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if ${ac_cv_prog_NMEDIT+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 if test -n "$NMEDIT"; then
7384 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 NMEDIT=$ac_cv_prog_NMEDIT
7404 if test -n "$NMEDIT"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7406 $as_echo "$NMEDIT" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412
7413 fi
7414 if test -z "$ac_cv_prog_NMEDIT"; then
7415 ac_ct_NMEDIT=$NMEDIT
7416 # Extract the first word of "nmedit", so it can be a program name with args.
7417 set dummy nmedit; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 if test -n "$ac_ct_NMEDIT"; then
7424 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7436 fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7444 if test -n "$ac_ct_NMEDIT"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7446 $as_echo "$ac_ct_NMEDIT" >&6; }
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452 if test "x$ac_ct_NMEDIT" = x; then
7453 NMEDIT=":"
7454 else
7455 case $cross_compiling:$ac_tool_warned in
7456 yes:)
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7459 ac_tool_warned=yes ;;
7460 esac
7461 NMEDIT=$ac_ct_NMEDIT
7462 fi
7463 else
7464 NMEDIT="$ac_cv_prog_NMEDIT"
7465 fi
7466
7467 if test -n "$ac_tool_prefix"; then
7468 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7469 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if ${ac_cv_prog_LIPO+:} false; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 if test -n "$LIPO"; then
7476 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489 done
7490 done
7491 IFS=$as_save_IFS
7492
7493 fi
7494 fi
7495 LIPO=$ac_cv_prog_LIPO
7496 if test -n "$LIPO"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7498 $as_echo "$LIPO" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 fi
7503
7504
7505 fi
7506 if test -z "$ac_cv_prog_LIPO"; then
7507 ac_ct_LIPO=$LIPO
7508 # Extract the first word of "lipo", so it can be a program name with args.
7509 set dummy lipo; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 if test -n "$ac_ct_LIPO"; then
7516 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_prog_ac_ct_LIPO="lipo"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 break 2
7528 fi
7529 done
7530 done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7536 if test -n "$ac_ct_LIPO"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7538 $as_echo "$ac_ct_LIPO" >&6; }
7539 else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7542 fi
7543
7544 if test "x$ac_ct_LIPO" = x; then
7545 LIPO=":"
7546 else
7547 case $cross_compiling:$ac_tool_warned in
7548 yes:)
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7551 ac_tool_warned=yes ;;
7552 esac
7553 LIPO=$ac_ct_LIPO
7554 fi
7555 else
7556 LIPO="$ac_cv_prog_LIPO"
7557 fi
7558
7559 if test -n "$ac_tool_prefix"; then
7560 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7561 set dummy ${ac_tool_prefix}otool; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if ${ac_cv_prog_OTOOL+:} false; then :
7565 $as_echo_n "(cached) " >&6
7566 else
7567 if test -n "$OTOOL"; then
7568 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7569 else
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7580 fi
7581 done
7582 done
7583 IFS=$as_save_IFS
7584
7585 fi
7586 fi
7587 OTOOL=$ac_cv_prog_OTOOL
7588 if test -n "$OTOOL"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7590 $as_echo "$OTOOL" >&6; }
7591 else
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7594 fi
7595
7596
7597 fi
7598 if test -z "$ac_cv_prog_OTOOL"; then
7599 ac_ct_OTOOL=$OTOOL
7600 # Extract the first word of "otool", so it can be a program name with args.
7601 set dummy otool; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 if test -n "$ac_ct_OTOOL"; then
7608 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_prog_ac_ct_OTOOL="otool"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7620 fi
7621 done
7622 done
7623 IFS=$as_save_IFS
7624
7625 fi
7626 fi
7627 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7628 if test -n "$ac_ct_OTOOL"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7630 $as_echo "$ac_ct_OTOOL" >&6; }
7631 else
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636 if test "x$ac_ct_OTOOL" = x; then
7637 OTOOL=":"
7638 else
7639 case $cross_compiling:$ac_tool_warned in
7640 yes:)
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7643 ac_tool_warned=yes ;;
7644 esac
7645 OTOOL=$ac_ct_OTOOL
7646 fi
7647 else
7648 OTOOL="$ac_cv_prog_OTOOL"
7649 fi
7650
7651 if test -n "$ac_tool_prefix"; then
7652 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7653 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if ${ac_cv_prog_OTOOL64+:} false; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 if test -n "$OTOOL64"; then
7660 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7661 else
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673 done
7674 done
7675 IFS=$as_save_IFS
7676
7677 fi
7678 fi
7679 OTOOL64=$ac_cv_prog_OTOOL64
7680 if test -n "$OTOOL64"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7682 $as_echo "$OTOOL64" >&6; }
7683 else
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688
7689 fi
7690 if test -z "$ac_cv_prog_OTOOL64"; then
7691 ac_ct_OTOOL64=$OTOOL64
7692 # Extract the first word of "otool64", so it can be a program name with args.
7693 set dummy otool64; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 if test -n "$ac_ct_OTOOL64"; then
7700 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_prog_ac_ct_OTOOL64="otool64"
7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7712 fi
7713 done
7714 done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7720 if test -n "$ac_ct_OTOOL64"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7722 $as_echo "$ac_ct_OTOOL64" >&6; }
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728 if test "x$ac_ct_OTOOL64" = x; then
7729 OTOOL64=":"
7730 else
7731 case $cross_compiling:$ac_tool_warned in
7732 yes:)
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7735 ac_tool_warned=yes ;;
7736 esac
7737 OTOOL64=$ac_ct_OTOOL64
7738 fi
7739 else
7740 OTOOL64="$ac_cv_prog_OTOOL64"
7741 fi
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7770 $as_echo_n "checking for -single_module linker flag... " >&6; }
7771 if ${lt_cv_apple_cc_single_mod+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 lt_cv_apple_cc_single_mod=no
7775 if test -z "${LT_MULTI_MODULE}"; then
7776 # By default we will add the -single_module flag. You can override
7777 # by either setting the environment variable LT_MULTI_MODULE
7778 # non-empty at configure time, or by adding -multi_module to the
7779 # link flags.
7780 rm -rf libconftest.dylib*
7781 echo "int foo(void){return 1;}" > conftest.c
7782 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7783 -dynamiclib -Wl,-single_module conftest.c" >&5
7784 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7785 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7786 _lt_result=$?
7787 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7788 lt_cv_apple_cc_single_mod=yes
7789 else
7790 cat conftest.err >&5
7791 fi
7792 rm -rf libconftest.dylib*
7793 rm -f conftest.*
7794 fi
7795 fi
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7797 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7799 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7800 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 lt_cv_ld_exported_symbols_list=no
7804 save_LDFLAGS=$LDFLAGS
7805 echo "_main" > conftest.sym
7806 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809
7810 int
7811 main ()
7812 {
7813
7814 ;
7815 return 0;
7816 }
7817 _ACEOF
7818 if ac_fn_c_try_link "$LINENO"; then :
7819 lt_cv_ld_exported_symbols_list=yes
7820 else
7821 lt_cv_ld_exported_symbols_list=no
7822 fi
7823 rm -f core conftest.err conftest.$ac_objext \
7824 conftest$ac_exeext conftest.$ac_ext
7825 LDFLAGS="$save_LDFLAGS"
7826
7827 fi
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7829 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7831 $as_echo_n "checking for -force_load linker flag... " >&6; }
7832 if ${lt_cv_ld_force_load+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 lt_cv_ld_force_load=no
7836 cat > conftest.c << _LT_EOF
7837 int forced_loaded() { return 2;}
7838 _LT_EOF
7839 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7840 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7841 echo "$AR cru libconftest.a conftest.o" >&5
7842 $AR cru libconftest.a conftest.o 2>&5
7843 echo "$RANLIB libconftest.a" >&5
7844 $RANLIB libconftest.a 2>&5
7845 cat > conftest.c << _LT_EOF
7846 int main() { return 0;}
7847 _LT_EOF
7848 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7849 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7850 _lt_result=$?
7851 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7852 lt_cv_ld_force_load=yes
7853 else
7854 cat conftest.err >&5
7855 fi
7856 rm -f conftest.err libconftest.a conftest conftest.c
7857 rm -rf conftest.dSYM
7858
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7861 $as_echo "$lt_cv_ld_force_load" >&6; }
7862 case $host_os in
7863 rhapsody* | darwin1.[012])
7864 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7865 darwin1.*)
7866 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7867 darwin*) # darwin 5.x on
7868 # if running on 10.5 or later, the deployment target defaults
7869 # to the OS version, if on x86, and 10.4, the deployment
7870 # target defaults to 10.4. Don't you love it?
7871 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7872 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7873 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7874 10.[012]*)
7875 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7876 10.*)
7877 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7878 esac
7879 ;;
7880 esac
7881 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7882 _lt_dar_single_mod='$single_module'
7883 fi
7884 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7885 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7886 else
7887 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7888 fi
7889 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7890 _lt_dsymutil='~$DSYMUTIL $lib || :'
7891 else
7892 _lt_dsymutil=
7893 fi
7894 ;;
7895 esac
7896
7897 for ac_header in dlfcn.h
7898 do :
7899 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7900 "
7901 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7902 cat >>confdefs.h <<_ACEOF
7903 #define HAVE_DLFCN_H 1
7904 _ACEOF
7905
7906 fi
7907
7908 done
7909
7910
7911
7912
7913
7914 # Set options
7915
7916
7917
7918 enable_dlopen=no
7919
7920
7921 enable_win32_dll=no
7922
7923
7924 # Check whether --enable-shared was given.
7925 if test "${enable_shared+set}" = set; then :
7926 enableval=$enable_shared; p=${PACKAGE-default}
7927 case $enableval in
7928 yes) enable_shared=yes ;;
7929 no) enable_shared=no ;;
7930 *)
7931 enable_shared=no
7932 # Look at the argument we got. We use all the common list separators.
7933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7934 for pkg in $enableval; do
7935 IFS="$lt_save_ifs"
7936 if test "X$pkg" = "X$p"; then
7937 enable_shared=yes
7938 fi
7939 done
7940 IFS="$lt_save_ifs"
7941 ;;
7942 esac
7943 else
7944 enable_shared=yes
7945 fi
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955 # Check whether --enable-static was given.
7956 if test "${enable_static+set}" = set; then :
7957 enableval=$enable_static; p=${PACKAGE-default}
7958 case $enableval in
7959 yes) enable_static=yes ;;
7960 no) enable_static=no ;;
7961 *)
7962 enable_static=no
7963 # Look at the argument we got. We use all the common list separators.
7964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7965 for pkg in $enableval; do
7966 IFS="$lt_save_ifs"
7967 if test "X$pkg" = "X$p"; then
7968 enable_static=yes
7969 fi
7970 done
7971 IFS="$lt_save_ifs"
7972 ;;
7973 esac
7974 else
7975 enable_static=yes
7976 fi
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987 # Check whether --with-pic was given.
7988 if test "${with_pic+set}" = set; then :
7989 withval=$with_pic; pic_mode="$withval"
7990 else
7991 pic_mode=default
7992 fi
7993
7994
7995 test -z "$pic_mode" && pic_mode=default
7996
7997
7998
7999
8000
8001
8002
8003 # Check whether --enable-fast-install was given.
8004 if test "${enable_fast_install+set}" = set; then :
8005 enableval=$enable_fast_install; p=${PACKAGE-default}
8006 case $enableval in
8007 yes) enable_fast_install=yes ;;
8008 no) enable_fast_install=no ;;
8009 *)
8010 enable_fast_install=no
8011 # Look at the argument we got. We use all the common list separators.
8012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8013 for pkg in $enableval; do
8014 IFS="$lt_save_ifs"
8015 if test "X$pkg" = "X$p"; then
8016 enable_fast_install=yes
8017 fi
8018 done
8019 IFS="$lt_save_ifs"
8020 ;;
8021 esac
8022 else
8023 enable_fast_install=yes
8024 fi
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036 # This can be used to rebuild libtool when needed
8037 LIBTOOL_DEPS="$ltmain"
8038
8039 # Always use our own libtool.
8040 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067 test -z "$LN_S" && LN_S="ln -s"
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082 if test -n "${ZSH_VERSION+set}" ; then
8083 setopt NO_GLOB_SUBST
8084 fi
8085
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8087 $as_echo_n "checking for objdir... " >&6; }
8088 if ${lt_cv_objdir+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 rm -f .libs 2>/dev/null
8092 mkdir .libs 2>/dev/null
8093 if test -d .libs; then
8094 lt_cv_objdir=.libs
8095 else
8096 # MS-DOS does not allow filenames that begin with a dot.
8097 lt_cv_objdir=_libs
8098 fi
8099 rmdir .libs 2>/dev/null
8100 fi
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8102 $as_echo "$lt_cv_objdir" >&6; }
8103 objdir=$lt_cv_objdir
8104
8105
8106
8107
8108
8109 cat >>confdefs.h <<_ACEOF
8110 #define LT_OBJDIR "$lt_cv_objdir/"
8111 _ACEOF
8112
8113
8114
8115
8116 case $host_os in
8117 aix3*)
8118 # AIX sometimes has problems with the GCC collect2 program. For some
8119 # reason, if we set the COLLECT_NAMES environment variable, the problems
8120 # vanish in a puff of smoke.
8121 if test "X${COLLECT_NAMES+set}" != Xset; then
8122 COLLECT_NAMES=
8123 export COLLECT_NAMES
8124 fi
8125 ;;
8126 esac
8127
8128 # Global variables:
8129 ofile=libtool
8130 can_build_shared=yes
8131
8132 # All known linkers require a `.a' archive for static linking (except MSVC,
8133 # which needs '.lib').
8134 libext=a
8135
8136 with_gnu_ld="$lt_cv_prog_gnu_ld"
8137
8138 old_CC="$CC"
8139 old_CFLAGS="$CFLAGS"
8140
8141 # Set sane defaults for various variables
8142 test -z "$CC" && CC=cc
8143 test -z "$LTCC" && LTCC=$CC
8144 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8145 test -z "$LD" && LD=ld
8146 test -z "$ac_objext" && ac_objext=o
8147
8148 for cc_temp in $compiler""; do
8149 case $cc_temp in
8150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8152 \-*) ;;
8153 *) break;;
8154 esac
8155 done
8156 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8157
8158
8159 # Only perform the check for file, if the check method requires it
8160 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8161 case $deplibs_check_method in
8162 file_magic*)
8163 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8165 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8166 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 case $MAGIC_CMD in
8170 [\\/*] | ?:[\\/]*)
8171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8172 ;;
8173 *)
8174 lt_save_MAGIC_CMD="$MAGIC_CMD"
8175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8177 for ac_dir in $ac_dummy; do
8178 IFS="$lt_save_ifs"
8179 test -z "$ac_dir" && ac_dir=.
8180 if test -f $ac_dir/${ac_tool_prefix}file; then
8181 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8182 if test -n "$file_magic_test_file"; then
8183 case $deplibs_check_method in
8184 "file_magic "*)
8185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8188 $EGREP "$file_magic_regex" > /dev/null; then
8189 :
8190 else
8191 cat <<_LT_EOF 1>&2
8192
8193 *** Warning: the command libtool uses to detect shared libraries,
8194 *** $file_magic_cmd, produces output that libtool cannot recognize.
8195 *** The result is that libtool may fail to recognize shared libraries
8196 *** as such. This will affect the creation of libtool libraries that
8197 *** depend on shared libraries, but programs linked with such libtool
8198 *** libraries will work regardless of this problem. Nevertheless, you
8199 *** may want to report the problem to your system manager and/or to
8200 *** bug-libtool@gnu.org
8201
8202 _LT_EOF
8203 fi ;;
8204 esac
8205 fi
8206 break
8207 fi
8208 done
8209 IFS="$lt_save_ifs"
8210 MAGIC_CMD="$lt_save_MAGIC_CMD"
8211 ;;
8212 esac
8213 fi
8214
8215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8216 if test -n "$MAGIC_CMD"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8218 $as_echo "$MAGIC_CMD" >&6; }
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8222 fi
8223
8224
8225
8226
8227
8228 if test -z "$lt_cv_path_MAGIC_CMD"; then
8229 if test -n "$ac_tool_prefix"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8231 $as_echo_n "checking for file... " >&6; }
8232 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 case $MAGIC_CMD in
8236 [\\/*] | ?:[\\/]*)
8237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8238 ;;
8239 *)
8240 lt_save_MAGIC_CMD="$MAGIC_CMD"
8241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8242 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8243 for ac_dir in $ac_dummy; do
8244 IFS="$lt_save_ifs"
8245 test -z "$ac_dir" && ac_dir=.
8246 if test -f $ac_dir/file; then
8247 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8248 if test -n "$file_magic_test_file"; then
8249 case $deplibs_check_method in
8250 "file_magic "*)
8251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8254 $EGREP "$file_magic_regex" > /dev/null; then
8255 :
8256 else
8257 cat <<_LT_EOF 1>&2
8258
8259 *** Warning: the command libtool uses to detect shared libraries,
8260 *** $file_magic_cmd, produces output that libtool cannot recognize.
8261 *** The result is that libtool may fail to recognize shared libraries
8262 *** as such. This will affect the creation of libtool libraries that
8263 *** depend on shared libraries, but programs linked with such libtool
8264 *** libraries will work regardless of this problem. Nevertheless, you
8265 *** may want to report the problem to your system manager and/or to
8266 *** bug-libtool@gnu.org
8267
8268 _LT_EOF
8269 fi ;;
8270 esac
8271 fi
8272 break
8273 fi
8274 done
8275 IFS="$lt_save_ifs"
8276 MAGIC_CMD="$lt_save_MAGIC_CMD"
8277 ;;
8278 esac
8279 fi
8280
8281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8282 if test -n "$MAGIC_CMD"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8284 $as_echo "$MAGIC_CMD" >&6; }
8285 else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289
8290
8291 else
8292 MAGIC_CMD=:
8293 fi
8294 fi
8295
8296 fi
8297 ;;
8298 esac
8299
8300 # Use C for the default configuration in the libtool script
8301
8302 lt_save_CC="$CC"
8303 ac_ext=c
8304 ac_cpp='$CPP $CPPFLAGS'
8305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8308
8309
8310 # Source file extension for C test sources.
8311 ac_ext=c
8312
8313 # Object file extension for compiled C test sources.
8314 objext=o
8315 objext=$objext
8316
8317 # Code to be used in simple compile tests
8318 lt_simple_compile_test_code="int some_variable = 0;"
8319
8320 # Code to be used in simple link tests
8321 lt_simple_link_test_code='int main(){return(0);}'
8322
8323
8324
8325
8326
8327
8328
8329 # If no C compiler was specified, use CC.
8330 LTCC=${LTCC-"$CC"}
8331
8332 # If no C compiler flags were specified, use CFLAGS.
8333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8334
8335 # Allow CC to be a program name with arguments.
8336 compiler=$CC
8337
8338 # Save the default compiler, since it gets overwritten when the other
8339 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8340 compiler_DEFAULT=$CC
8341
8342 # save warnings/boilerplate of simple test code
8343 ac_outfile=conftest.$ac_objext
8344 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8345 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8346 _lt_compiler_boilerplate=`cat conftest.err`
8347 $RM conftest*
8348
8349 ac_outfile=conftest.$ac_objext
8350 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8351 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8352 _lt_linker_boilerplate=`cat conftest.err`
8353 $RM -r conftest*
8354
8355
8356 if test -n "$compiler"; then
8357
8358 lt_prog_compiler_no_builtin_flag=
8359
8360 if test "$GCC" = yes; then
8361 case $cc_basename in
8362 nvcc*)
8363 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8364 *)
8365 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8366 esac
8367
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8369 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8370 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 lt_cv_prog_compiler_rtti_exceptions=no
8374 ac_outfile=conftest.$ac_objext
8375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8376 lt_compiler_flag="-fno-rtti -fno-exceptions"
8377 # Insert the option either (1) after the last *FLAGS variable, or
8378 # (2) before a word containing "conftest.", or (3) at the end.
8379 # Note that $ac_compile itself does not contain backslashes and begins
8380 # with a dollar sign (not a hyphen), so the echo should work correctly.
8381 # The option is referenced via a variable to avoid confusing sed.
8382 lt_compile=`echo "$ac_compile" | $SED \
8383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8385 -e 's:$: $lt_compiler_flag:'`
8386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8387 (eval "$lt_compile" 2>conftest.err)
8388 ac_status=$?
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 if (exit $ac_status) && test -s "$ac_outfile"; then
8392 # The compiler can only warn and ignore the option if not recognized
8393 # So say no if there are warnings other than the usual output.
8394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8397 lt_cv_prog_compiler_rtti_exceptions=yes
8398 fi
8399 fi
8400 $RM conftest*
8401
8402 fi
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8404 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8405
8406 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8407 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8408 else
8409 :
8410 fi
8411
8412 fi
8413
8414
8415
8416
8417
8418
8419 lt_prog_compiler_wl=
8420 lt_prog_compiler_pic=
8421 lt_prog_compiler_static=
8422
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8424 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8425
8426 if test "$GCC" = yes; then
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_static='-static'
8429
8430 case $host_os in
8431 aix*)
8432 # All AIX code is PIC.
8433 if test "$host_cpu" = ia64; then
8434 # AIX 5 now supports IA64 processor
8435 lt_prog_compiler_static='-Bstatic'
8436 fi
8437 ;;
8438
8439 amigaos*)
8440 case $host_cpu in
8441 powerpc)
8442 # see comment about AmigaOS4 .so support
8443 lt_prog_compiler_pic='-fPIC'
8444 ;;
8445 m68k)
8446 # FIXME: we need at least 68020 code to build shared libraries, but
8447 # adding the `-m68020' flag to GCC prevents building anything better,
8448 # like `-m68040'.
8449 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8450 ;;
8451 esac
8452 ;;
8453
8454 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8455 # PIC is the default for these OSes.
8456 ;;
8457
8458 mingw* | cygwin* | pw32* | os2* | cegcc*)
8459 # This hack is so that the source file can tell whether it is being
8460 # built for inclusion in a dll (and should export symbols for example).
8461 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8462 # (--disable-auto-import) libraries
8463 lt_prog_compiler_pic='-DDLL_EXPORT'
8464 ;;
8465
8466 darwin* | rhapsody*)
8467 # PIC is the default on this platform
8468 # Common symbols not allowed in MH_DYLIB files
8469 lt_prog_compiler_pic='-fno-common'
8470 ;;
8471
8472 haiku*)
8473 # PIC is the default for Haiku.
8474 # The "-static" flag exists, but is broken.
8475 lt_prog_compiler_static=
8476 ;;
8477
8478 hpux*)
8479 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8480 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8481 # sets the default TLS model and affects inlining.
8482 case $host_cpu in
8483 hppa*64*)
8484 # +Z the default
8485 ;;
8486 *)
8487 lt_prog_compiler_pic='-fPIC'
8488 ;;
8489 esac
8490 ;;
8491
8492 interix[3-9]*)
8493 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8494 # Instead, we relocate shared libraries at runtime.
8495 ;;
8496
8497 msdosdjgpp*)
8498 # Just because we use GCC doesn't mean we suddenly get shared libraries
8499 # on systems that don't support them.
8500 lt_prog_compiler_can_build_shared=no
8501 enable_shared=no
8502 ;;
8503
8504 *nto* | *qnx*)
8505 # QNX uses GNU C++, but need to define -shared option too, otherwise
8506 # it will coredump.
8507 lt_prog_compiler_pic='-fPIC -shared'
8508 ;;
8509
8510 sysv4*MP*)
8511 if test -d /usr/nec; then
8512 lt_prog_compiler_pic=-Kconform_pic
8513 fi
8514 ;;
8515
8516 *)
8517 lt_prog_compiler_pic='-fPIC'
8518 ;;
8519 esac
8520
8521 case $cc_basename in
8522 nvcc*) # Cuda Compiler Driver 2.2
8523 lt_prog_compiler_wl='-Xlinker '
8524 lt_prog_compiler_pic='-Xcompiler -fPIC'
8525 ;;
8526 esac
8527 else
8528 # PORTME Check for flag to pass linker flags through the system compiler.
8529 case $host_os in
8530 aix*)
8531 lt_prog_compiler_wl='-Wl,'
8532 if test "$host_cpu" = ia64; then
8533 # AIX 5 now supports IA64 processor
8534 lt_prog_compiler_static='-Bstatic'
8535 else
8536 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8537 fi
8538 ;;
8539
8540 mingw* | cygwin* | pw32* | os2* | cegcc*)
8541 # This hack is so that the source file can tell whether it is being
8542 # built for inclusion in a dll (and should export symbols for example).
8543 lt_prog_compiler_pic='-DDLL_EXPORT'
8544 ;;
8545
8546 hpux9* | hpux10* | hpux11*)
8547 lt_prog_compiler_wl='-Wl,'
8548 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8549 # not for PA HP-UX.
8550 case $host_cpu in
8551 hppa*64*|ia64*)
8552 # +Z the default
8553 ;;
8554 *)
8555 lt_prog_compiler_pic='+Z'
8556 ;;
8557 esac
8558 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8559 lt_prog_compiler_static='${wl}-a ${wl}archive'
8560 ;;
8561
8562 irix5* | irix6* | nonstopux*)
8563 lt_prog_compiler_wl='-Wl,'
8564 # PIC (with -KPIC) is the default.
8565 lt_prog_compiler_static='-non_shared'
8566 ;;
8567
8568 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8569 case $cc_basename in
8570 # old Intel for x86_64 which still supported -KPIC.
8571 ecc*)
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_pic='-KPIC'
8574 lt_prog_compiler_static='-static'
8575 ;;
8576 # icc used to be incompatible with GCC.
8577 # ICC 10 doesn't accept -KPIC any more.
8578 icc* | ifort*)
8579 lt_prog_compiler_wl='-Wl,'
8580 lt_prog_compiler_pic='-fPIC'
8581 lt_prog_compiler_static='-static'
8582 ;;
8583 # Lahey Fortran 8.1.
8584 lf95*)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='--shared'
8587 lt_prog_compiler_static='--static'
8588 ;;
8589 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8590 # Portland Group compilers (*not* the Pentium gcc compiler,
8591 # which looks to be a dead project)
8592 lt_prog_compiler_wl='-Wl,'
8593 lt_prog_compiler_pic='-fpic'
8594 lt_prog_compiler_static='-Bstatic'
8595 ;;
8596 ccc*)
8597 lt_prog_compiler_wl='-Wl,'
8598 # All Alpha code is PIC.
8599 lt_prog_compiler_static='-non_shared'
8600 ;;
8601 xl* | bgxl* | bgf* | mpixl*)
8602 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_pic='-qpic'
8605 lt_prog_compiler_static='-qstaticlink'
8606 ;;
8607 *)
8608 case `$CC -V 2>&1 | sed 5q` in
8609 *Sun\ F* | *Sun*Fortran*)
8610 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8611 lt_prog_compiler_pic='-KPIC'
8612 lt_prog_compiler_static='-Bstatic'
8613 lt_prog_compiler_wl=''
8614 ;;
8615 *Sun\ C*)
8616 # Sun C 5.9
8617 lt_prog_compiler_pic='-KPIC'
8618 lt_prog_compiler_static='-Bstatic'
8619 lt_prog_compiler_wl='-Wl,'
8620 ;;
8621 esac
8622 ;;
8623 esac
8624 ;;
8625
8626 newsos6)
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
8629 ;;
8630
8631 *nto* | *qnx*)
8632 # QNX uses GNU C++, but need to define -shared option too, otherwise
8633 # it will coredump.
8634 lt_prog_compiler_pic='-fPIC -shared'
8635 ;;
8636
8637 osf3* | osf4* | osf5*)
8638 lt_prog_compiler_wl='-Wl,'
8639 # All OSF/1 code is PIC.
8640 lt_prog_compiler_static='-non_shared'
8641 ;;
8642
8643 rdos*)
8644 lt_prog_compiler_static='-non_shared'
8645 ;;
8646
8647 solaris*)
8648 lt_prog_compiler_pic='-KPIC'
8649 lt_prog_compiler_static='-Bstatic'
8650 case $cc_basename in
8651 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8652 lt_prog_compiler_wl='-Qoption ld ';;
8653 *)
8654 lt_prog_compiler_wl='-Wl,';;
8655 esac
8656 ;;
8657
8658 sunos4*)
8659 lt_prog_compiler_wl='-Qoption ld '
8660 lt_prog_compiler_pic='-PIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 ;;
8663
8664 sysv4 | sysv4.2uw2* | sysv4.3*)
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 ;;
8669
8670 sysv4*MP*)
8671 if test -d /usr/nec ;then
8672 lt_prog_compiler_pic='-Kconform_pic'
8673 lt_prog_compiler_static='-Bstatic'
8674 fi
8675 ;;
8676
8677 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8678 lt_prog_compiler_wl='-Wl,'
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-Bstatic'
8681 ;;
8682
8683 unicos*)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_can_build_shared=no
8686 ;;
8687
8688 uts4*)
8689 lt_prog_compiler_pic='-pic'
8690 lt_prog_compiler_static='-Bstatic'
8691 ;;
8692
8693 *)
8694 lt_prog_compiler_can_build_shared=no
8695 ;;
8696 esac
8697 fi
8698
8699 case $host_os in
8700 # For platforms which do not support PIC, -DPIC is meaningless:
8701 *djgpp*)
8702 lt_prog_compiler_pic=
8703 ;;
8704 *)
8705 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8706 ;;
8707 esac
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8709 $as_echo "$lt_prog_compiler_pic" >&6; }
8710
8711
8712
8713
8714
8715
8716 #
8717 # Check to make sure the PIC flag actually works.
8718 #
8719 if test -n "$lt_prog_compiler_pic"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8721 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8722 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8723 $as_echo_n "(cached) " >&6
8724 else
8725 lt_cv_prog_compiler_pic_works=no
8726 ac_outfile=conftest.$ac_objext
8727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8728 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8729 # Insert the option either (1) after the last *FLAGS variable, or
8730 # (2) before a word containing "conftest.", or (3) at the end.
8731 # Note that $ac_compile itself does not contain backslashes and begins
8732 # with a dollar sign (not a hyphen), so the echo should work correctly.
8733 # The option is referenced via a variable to avoid confusing sed.
8734 lt_compile=`echo "$ac_compile" | $SED \
8735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737 -e 's:$: $lt_compiler_flag:'`
8738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8739 (eval "$lt_compile" 2>conftest.err)
8740 ac_status=$?
8741 cat conftest.err >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 if (exit $ac_status) && test -s "$ac_outfile"; then
8744 # The compiler can only warn and ignore the option if not recognized
8745 # So say no if there are warnings other than the usual output.
8746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8749 lt_cv_prog_compiler_pic_works=yes
8750 fi
8751 fi
8752 $RM conftest*
8753
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8756 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8757
8758 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8759 case $lt_prog_compiler_pic in
8760 "" | " "*) ;;
8761 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8762 esac
8763 else
8764 lt_prog_compiler_pic=
8765 lt_prog_compiler_can_build_shared=no
8766 fi
8767
8768 fi
8769
8770
8771
8772
8773
8774
8775 #
8776 # Check to make sure the static flag actually works.
8777 #
8778 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8780 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8781 if ${lt_cv_prog_compiler_static_works+:} false; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 lt_cv_prog_compiler_static_works=no
8785 save_LDFLAGS="$LDFLAGS"
8786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8789 # The linker can only warn and ignore the option if not recognized
8790 # So say no if there are warnings
8791 if test -s conftest.err; then
8792 # Append any errors to the config.log.
8793 cat conftest.err 1>&5
8794 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8796 if diff conftest.exp conftest.er2 >/dev/null; then
8797 lt_cv_prog_compiler_static_works=yes
8798 fi
8799 else
8800 lt_cv_prog_compiler_static_works=yes
8801 fi
8802 fi
8803 $RM -r conftest*
8804 LDFLAGS="$save_LDFLAGS"
8805
8806 fi
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8808 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8809
8810 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8811 :
8812 else
8813 lt_prog_compiler_static=
8814 fi
8815
8816
8817
8818
8819
8820
8821
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8823 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8824 if ${lt_cv_prog_compiler_c_o+:} false; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 lt_cv_prog_compiler_c_o=no
8828 $RM -r conftest 2>/dev/null
8829 mkdir conftest
8830 cd conftest
8831 mkdir out
8832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8833
8834 lt_compiler_flag="-o out/conftest2.$ac_objext"
8835 # Insert the option either (1) after the last *FLAGS variable, or
8836 # (2) before a word containing "conftest.", or (3) at the end.
8837 # Note that $ac_compile itself does not contain backslashes and begins
8838 # with a dollar sign (not a hyphen), so the echo should work correctly.
8839 lt_compile=`echo "$ac_compile" | $SED \
8840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8842 -e 's:$: $lt_compiler_flag:'`
8843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8844 (eval "$lt_compile" 2>out/conftest.err)
8845 ac_status=$?
8846 cat out/conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8849 then
8850 # The compiler can only warn and ignore the option if not recognized
8851 # So say no if there are warnings
8852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8853 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8854 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8855 lt_cv_prog_compiler_c_o=yes
8856 fi
8857 fi
8858 chmod u+w . 2>&5
8859 $RM conftest*
8860 # SGI C++ compiler will create directory out/ii_files/ for
8861 # template instantiation
8862 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8863 $RM out/* && rmdir out
8864 cd ..
8865 $RM -r conftest
8866 $RM conftest*
8867
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8870 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8871
8872
8873
8874
8875
8876
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8878 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8879 if ${lt_cv_prog_compiler_c_o+:} false; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 lt_cv_prog_compiler_c_o=no
8883 $RM -r conftest 2>/dev/null
8884 mkdir conftest
8885 cd conftest
8886 mkdir out
8887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8888
8889 lt_compiler_flag="-o out/conftest2.$ac_objext"
8890 # Insert the option either (1) after the last *FLAGS variable, or
8891 # (2) before a word containing "conftest.", or (3) at the end.
8892 # Note that $ac_compile itself does not contain backslashes and begins
8893 # with a dollar sign (not a hyphen), so the echo should work correctly.
8894 lt_compile=`echo "$ac_compile" | $SED \
8895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8897 -e 's:$: $lt_compiler_flag:'`
8898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8899 (eval "$lt_compile" 2>out/conftest.err)
8900 ac_status=$?
8901 cat out/conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8904 then
8905 # The compiler can only warn and ignore the option if not recognized
8906 # So say no if there are warnings
8907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8910 lt_cv_prog_compiler_c_o=yes
8911 fi
8912 fi
8913 chmod u+w . 2>&5
8914 $RM conftest*
8915 # SGI C++ compiler will create directory out/ii_files/ for
8916 # template instantiation
8917 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8918 $RM out/* && rmdir out
8919 cd ..
8920 $RM -r conftest
8921 $RM conftest*
8922
8923 fi
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8925 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8926
8927
8928
8929
8930 hard_links="nottested"
8931 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8932 # do not overwrite the value of need_locks provided by the user
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8934 $as_echo_n "checking if we can lock with hard links... " >&6; }
8935 hard_links=yes
8936 $RM conftest*
8937 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8938 touch conftest.a
8939 ln conftest.a conftest.b 2>&5 || hard_links=no
8940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8942 $as_echo "$hard_links" >&6; }
8943 if test "$hard_links" = no; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8945 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8946 need_locks=warn
8947 fi
8948 else
8949 need_locks=no
8950 fi
8951
8952
8953
8954
8955
8956
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8958 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8959
8960 runpath_var=
8961 allow_undefined_flag=
8962 always_export_symbols=no
8963 archive_cmds=
8964 archive_expsym_cmds=
8965 compiler_needs_object=no
8966 enable_shared_with_static_runtimes=no
8967 export_dynamic_flag_spec=
8968 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8969 hardcode_automatic=no
8970 hardcode_direct=no
8971 hardcode_direct_absolute=no
8972 hardcode_libdir_flag_spec=
8973 hardcode_libdir_flag_spec_ld=
8974 hardcode_libdir_separator=
8975 hardcode_minus_L=no
8976 hardcode_shlibpath_var=unsupported
8977 inherit_rpath=no
8978 link_all_deplibs=unknown
8979 module_cmds=
8980 module_expsym_cmds=
8981 old_archive_from_new_cmds=
8982 old_archive_from_expsyms_cmds=
8983 thread_safe_flag_spec=
8984 whole_archive_flag_spec=
8985 # include_expsyms should be a list of space-separated symbols to be *always*
8986 # included in the symbol list
8987 include_expsyms=
8988 # exclude_expsyms can be an extended regexp of symbols to exclude
8989 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8990 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8991 # as well as any symbol that contains `d'.
8992 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8993 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8994 # platforms (ab)use it in PIC code, but their linkers get confused if
8995 # the symbol is explicitly referenced. Since portable code cannot
8996 # rely on this symbol name, it's probably fine to never include it in
8997 # preloaded symbol tables.
8998 # Exclude shared library initialization/finalization symbols.
8999 extract_expsyms_cmds=
9000
9001 case $host_os in
9002 cygwin* | mingw* | pw32* | cegcc*)
9003 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9004 # When not using gcc, we currently assume that we are using
9005 # Microsoft Visual C++.
9006 if test "$GCC" != yes; then
9007 with_gnu_ld=no
9008 fi
9009 ;;
9010 interix*)
9011 # we just hope/assume this is gcc and not c89 (= MSVC++)
9012 with_gnu_ld=yes
9013 ;;
9014 openbsd*)
9015 with_gnu_ld=no
9016 ;;
9017 esac
9018
9019 ld_shlibs=yes
9020
9021 # On some targets, GNU ld is compatible enough with the native linker
9022 # that we're better off using the native interface for both.
9023 lt_use_gnu_ld_interface=no
9024 if test "$with_gnu_ld" = yes; then
9025 case $host_os in
9026 aix*)
9027 # The AIX port of GNU ld has always aspired to compatibility
9028 # with the native linker. However, as the warning in the GNU ld
9029 # block says, versions before 2.19.5* couldn't really create working
9030 # shared libraries, regardless of the interface used.
9031 case `$LD -v 2>&1` in
9032 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9033 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9034 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9035 *)
9036 lt_use_gnu_ld_interface=yes
9037 ;;
9038 esac
9039 ;;
9040 *)
9041 lt_use_gnu_ld_interface=yes
9042 ;;
9043 esac
9044 fi
9045
9046 if test "$lt_use_gnu_ld_interface" = yes; then
9047 # If archive_cmds runs LD, not CC, wlarc should be empty
9048 wlarc='${wl}'
9049
9050 # Set some defaults for GNU ld with shared library support. These
9051 # are reset later if shared libraries are not supported. Putting them
9052 # here allows them to be overridden if necessary.
9053 runpath_var=LD_RUN_PATH
9054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9055 export_dynamic_flag_spec='${wl}--export-dynamic'
9056 # ancient GNU ld didn't support --whole-archive et. al.
9057 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9058 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9059 else
9060 whole_archive_flag_spec=
9061 fi
9062 supports_anon_versioning=no
9063 case `$LD -v 2>&1` in
9064 *GNU\ gold*) supports_anon_versioning=yes ;;
9065 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9066 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9067 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9068 *\ 2.11.*) ;; # other 2.11 versions
9069 *) supports_anon_versioning=yes ;;
9070 esac
9071
9072 # See if GNU ld supports shared libraries.
9073 case $host_os in
9074 aix[3-9]*)
9075 # On AIX/PPC, the GNU linker is very broken
9076 if test "$host_cpu" != ia64; then
9077 ld_shlibs=no
9078 cat <<_LT_EOF 1>&2
9079
9080 *** Warning: the GNU linker, at least up to release 2.19, is reported
9081 *** to be unable to reliably create shared libraries on AIX.
9082 *** Therefore, libtool is disabling shared libraries support. If you
9083 *** really care for shared libraries, you may want to install binutils
9084 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9085 *** You will then need to restart the configuration process.
9086
9087 _LT_EOF
9088 fi
9089 ;;
9090
9091 amigaos*)
9092 case $host_cpu in
9093 powerpc)
9094 # see comment about AmigaOS4 .so support
9095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9096 archive_expsym_cmds=''
9097 ;;
9098 m68k)
9099 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)'
9100 hardcode_libdir_flag_spec='-L$libdir'
9101 hardcode_minus_L=yes
9102 ;;
9103 esac
9104 ;;
9105
9106 beos*)
9107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9108 allow_undefined_flag=unsupported
9109 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9110 # support --undefined. This deserves some investigation. FIXME
9111 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9112 else
9113 ld_shlibs=no
9114 fi
9115 ;;
9116
9117 cygwin* | mingw* | pw32* | cegcc*)
9118 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9119 # as there is no search path for DLLs.
9120 hardcode_libdir_flag_spec='-L$libdir'
9121 export_dynamic_flag_spec='${wl}--export-all-symbols'
9122 allow_undefined_flag=unsupported
9123 always_export_symbols=no
9124 enable_shared_with_static_runtimes=yes
9125 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9126
9127 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9129 # If the export-symbols file already is a .def file (1st line
9130 # is EXPORTS), use it as is; otherwise, prepend...
9131 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9132 cp $export_symbols $output_objdir/$soname.def;
9133 else
9134 echo EXPORTS > $output_objdir/$soname.def;
9135 cat $export_symbols >> $output_objdir/$soname.def;
9136 fi~
9137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9138 else
9139 ld_shlibs=no
9140 fi
9141 ;;
9142
9143 haiku*)
9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145 link_all_deplibs=yes
9146 ;;
9147
9148 interix[3-9]*)
9149 hardcode_direct=no
9150 hardcode_shlibpath_var=no
9151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9152 export_dynamic_flag_spec='${wl}-E'
9153 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9154 # Instead, shared libraries are loaded at an image base (0x10000000 by
9155 # default) and relocated if they conflict, which is a slow very memory
9156 # consuming and fragmenting process. To avoid this, we pick a random,
9157 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9158 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9159 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9160 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'
9161 ;;
9162
9163 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9164 tmp_diet=no
9165 if test "$host_os" = linux-dietlibc; then
9166 case $cc_basename in
9167 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9168 esac
9169 fi
9170 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9171 && test "$tmp_diet" = no
9172 then
9173 tmp_addflag=
9174 tmp_sharedflag='-shared'
9175 case $cc_basename,$host_cpu in
9176 pgcc*) # Portland Group C compiler
9177 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9178 tmp_addflag=' $pic_flag'
9179 ;;
9180 pgf77* | pgf90* | pgf95* | pgfortran*)
9181 # Portland Group f77 and f90 compilers
9182 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9183 tmp_addflag=' $pic_flag -Mnomain' ;;
9184 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9185 tmp_addflag=' -i_dynamic' ;;
9186 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9187 tmp_addflag=' -i_dynamic -nofor_main' ;;
9188 ifc* | ifort*) # Intel Fortran compiler
9189 tmp_addflag=' -nofor_main' ;;
9190 lf95*) # Lahey Fortran 8.1
9191 whole_archive_flag_spec=
9192 tmp_sharedflag='--shared' ;;
9193 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9194 tmp_sharedflag='-qmkshrobj'
9195 tmp_addflag= ;;
9196 nvcc*) # Cuda Compiler Driver 2.2
9197 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9198 compiler_needs_object=yes
9199 ;;
9200 esac
9201 case `$CC -V 2>&1 | sed 5q` in
9202 *Sun\ C*) # Sun C 5.9
9203 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9204 compiler_needs_object=yes
9205 tmp_sharedflag='-G' ;;
9206 *Sun\ F*) # Sun Fortran 8.3
9207 tmp_sharedflag='-G' ;;
9208 esac
9209 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9210
9211 if test "x$supports_anon_versioning" = xyes; then
9212 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9213 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9214 echo "local: *; };" >> $output_objdir/$libname.ver~
9215 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9216 fi
9217
9218 case $cc_basename in
9219 xlf* | bgf* | bgxlf* | mpixlf*)
9220 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9221 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9222 hardcode_libdir_flag_spec=
9223 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9224 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9225 if test "x$supports_anon_versioning" = xyes; then
9226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9228 echo "local: *; };" >> $output_objdir/$libname.ver~
9229 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9230 fi
9231 ;;
9232 esac
9233 else
9234 ld_shlibs=no
9235 fi
9236 ;;
9237
9238 netbsd*)
9239 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9240 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9241 wlarc=
9242 else
9243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9245 fi
9246 ;;
9247
9248 solaris*)
9249 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9250 ld_shlibs=no
9251 cat <<_LT_EOF 1>&2
9252
9253 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9254 *** create shared libraries on Solaris systems. Therefore, libtool
9255 *** is disabling shared libraries support. We urge you to upgrade GNU
9256 *** binutils to release 2.9.1 or newer. Another option is to modify
9257 *** your PATH or compiler configuration so that the native linker is
9258 *** used, and then restart.
9259
9260 _LT_EOF
9261 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9264 else
9265 ld_shlibs=no
9266 fi
9267 ;;
9268
9269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9270 case `$LD -v 2>&1` in
9271 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9272 ld_shlibs=no
9273 cat <<_LT_EOF 1>&2
9274
9275 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9276 *** reliably create shared libraries on SCO systems. Therefore, libtool
9277 *** is disabling shared libraries support. We urge you to upgrade GNU
9278 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9279 *** your PATH or compiler configuration so that the native linker is
9280 *** used, and then restart.
9281
9282 _LT_EOF
9283 ;;
9284 *)
9285 # For security reasons, it is highly recommended that you always
9286 # use absolute paths for naming shared libraries, and exclude the
9287 # DT_RUNPATH tag from executables and libraries. But doing so
9288 # requires that you compile everything twice, which is a pain.
9289 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9293 else
9294 ld_shlibs=no
9295 fi
9296 ;;
9297 esac
9298 ;;
9299
9300 sunos4*)
9301 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9302 wlarc=
9303 hardcode_direct=yes
9304 hardcode_shlibpath_var=no
9305 ;;
9306
9307 *)
9308 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9311 else
9312 ld_shlibs=no
9313 fi
9314 ;;
9315 esac
9316
9317 if test "$ld_shlibs" = no; then
9318 runpath_var=
9319 hardcode_libdir_flag_spec=
9320 export_dynamic_flag_spec=
9321 whole_archive_flag_spec=
9322 fi
9323 else
9324 # PORTME fill in a description of your system's linker (not GNU ld)
9325 case $host_os in
9326 aix3*)
9327 allow_undefined_flag=unsupported
9328 always_export_symbols=yes
9329 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'
9330 # Note: this linker hardcodes the directories in LIBPATH if there
9331 # are no directories specified by -L.
9332 hardcode_minus_L=yes
9333 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9334 # Neither direct hardcoding nor static linking is supported with a
9335 # broken collect2.
9336 hardcode_direct=unsupported
9337 fi
9338 ;;
9339
9340 aix[4-9]*)
9341 if test "$host_cpu" = ia64; then
9342 # On IA64, the linker does run time linking by default, so we don't
9343 # have to do anything special.
9344 aix_use_runtimelinking=no
9345 exp_sym_flag='-Bexport'
9346 no_entry_flag=""
9347 else
9348 # If we're using GNU nm, then we don't want the "-C" option.
9349 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9350 # Also, AIX nm treats weak defined symbols like other global
9351 # defined symbols, whereas GNU nm marks them as "W".
9352 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9353 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9354 else
9355 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'
9356 fi
9357 aix_use_runtimelinking=no
9358
9359 # Test if we are trying to use run time linking or normal
9360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9361 # need to do runtime linking.
9362 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9363 for ld_flag in $LDFLAGS; do
9364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9365 aix_use_runtimelinking=yes
9366 break
9367 fi
9368 done
9369 ;;
9370 esac
9371
9372 exp_sym_flag='-bexport'
9373 no_entry_flag='-bnoentry'
9374 fi
9375
9376 # When large executables or shared objects are built, AIX ld can
9377 # have problems creating the table of contents. If linking a library
9378 # or program results in "error TOC overflow" add -mminimal-toc to
9379 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9380 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9381
9382 archive_cmds=''
9383 hardcode_direct=yes
9384 hardcode_direct_absolute=yes
9385 hardcode_libdir_separator=':'
9386 link_all_deplibs=yes
9387 file_list_spec='${wl}-f,'
9388
9389 if test "$GCC" = yes; then
9390 case $host_os in aix4.[012]|aix4.[012].*)
9391 # We only want to do this on AIX 4.2 and lower, the check
9392 # below for broken collect2 doesn't work under 4.3+
9393 collect2name=`${CC} -print-prog-name=collect2`
9394 if test -f "$collect2name" &&
9395 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9396 then
9397 # We have reworked collect2
9398 :
9399 else
9400 # We have old collect2
9401 hardcode_direct=unsupported
9402 # It fails to find uninstalled libraries when the uninstalled
9403 # path is not listed in the libpath. Setting hardcode_minus_L
9404 # to unsupported forces relinking
9405 hardcode_minus_L=yes
9406 hardcode_libdir_flag_spec='-L$libdir'
9407 hardcode_libdir_separator=
9408 fi
9409 ;;
9410 esac
9411 shared_flag='-shared'
9412 if test "$aix_use_runtimelinking" = yes; then
9413 shared_flag="$shared_flag "'${wl}-G'
9414 fi
9415 else
9416 # not using gcc
9417 if test "$host_cpu" = ia64; then
9418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9419 # chokes on -Wl,-G. The following line is correct:
9420 shared_flag='-G'
9421 else
9422 if test "$aix_use_runtimelinking" = yes; then
9423 shared_flag='${wl}-G'
9424 else
9425 shared_flag='${wl}-bM:SRE'
9426 fi
9427 fi
9428 fi
9429
9430 export_dynamic_flag_spec='${wl}-bexpall'
9431 # It seems that -bexpall does not export symbols beginning with
9432 # underscore (_), so it is better to generate a list of symbols to export.
9433 always_export_symbols=yes
9434 if test "$aix_use_runtimelinking" = yes; then
9435 # Warning - without using the other runtime loading flags (-brtl),
9436 # -berok will link without error, but may produce a broken library.
9437 allow_undefined_flag='-berok'
9438 # Determine the default libpath from the value encoded in an
9439 # empty executable.
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9442
9443 int
9444 main ()
9445 {
9446
9447 ;
9448 return 0;
9449 }
9450 _ACEOF
9451 if ac_fn_c_try_link "$LINENO"; then :
9452
9453 lt_aix_libpath_sed='
9454 /Import File Strings/,/^$/ {
9455 /^0/ {
9456 s/^0 *\(.*\)$/\1/
9457 p
9458 }
9459 }'
9460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461 # Check for a 64-bit object if we didn't find anything.
9462 if test -z "$aix_libpath"; then
9463 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9464 fi
9465 fi
9466 rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9469
9470 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9471 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9472 else
9473 if test "$host_cpu" = ia64; then
9474 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9475 allow_undefined_flag="-z nodefs"
9476 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"
9477 else
9478 # Determine the default libpath from the value encoded in an
9479 # empty executable.
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482
9483 int
9484 main ()
9485 {
9486
9487 ;
9488 return 0;
9489 }
9490 _ACEOF
9491 if ac_fn_c_try_link "$LINENO"; then :
9492
9493 lt_aix_libpath_sed='
9494 /Import File Strings/,/^$/ {
9495 /^0/ {
9496 s/^0 *\(.*\)$/\1/
9497 p
9498 }
9499 }'
9500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9501 # Check for a 64-bit object if we didn't find anything.
9502 if test -z "$aix_libpath"; then
9503 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9504 fi
9505 fi
9506 rm -f core conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9509
9510 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9511 # Warning - without using the other run time loading flags,
9512 # -berok will link without error, but may produce a broken library.
9513 no_undefined_flag=' ${wl}-bernotok'
9514 allow_undefined_flag=' ${wl}-berok'
9515 if test "$with_gnu_ld" = yes; then
9516 # We only use this code for GNU lds that support --whole-archive.
9517 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9518 else
9519 # Exported symbols can be pulled into shared objects from archives
9520 whole_archive_flag_spec='$convenience'
9521 fi
9522 archive_cmds_need_lc=yes
9523 # This is similar to how AIX traditionally builds its shared libraries.
9524 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'
9525 fi
9526 fi
9527 ;;
9528
9529 amigaos*)
9530 case $host_cpu in
9531 powerpc)
9532 # see comment about AmigaOS4 .so support
9533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534 archive_expsym_cmds=''
9535 ;;
9536 m68k)
9537 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)'
9538 hardcode_libdir_flag_spec='-L$libdir'
9539 hardcode_minus_L=yes
9540 ;;
9541 esac
9542 ;;
9543
9544 bsdi[45]*)
9545 export_dynamic_flag_spec=-rdynamic
9546 ;;
9547
9548 cygwin* | mingw* | pw32* | cegcc*)
9549 # When not using gcc, we currently assume that we are using
9550 # Microsoft Visual C++.
9551 # hardcode_libdir_flag_spec is actually meaningless, as there is
9552 # no search path for DLLs.
9553 hardcode_libdir_flag_spec=' '
9554 allow_undefined_flag=unsupported
9555 # Tell ltmain to make .lib files, not .a files.
9556 libext=lib
9557 # Tell ltmain to make .dll files, not .so files.
9558 shrext_cmds=".dll"
9559 # FIXME: Setting linknames here is a bad hack.
9560 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9561 # The linker will automatically build a .lib file if we build a DLL.
9562 old_archive_from_new_cmds='true'
9563 # FIXME: Should let the user specify the lib program.
9564 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9565 fix_srcfile_path='`cygpath -w "$srcfile"`'
9566 enable_shared_with_static_runtimes=yes
9567 ;;
9568
9569 darwin* | rhapsody*)
9570
9571
9572 archive_cmds_need_lc=no
9573 hardcode_direct=no
9574 hardcode_automatic=yes
9575 hardcode_shlibpath_var=unsupported
9576 if test "$lt_cv_ld_force_load" = "yes"; then
9577 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9578 else
9579 whole_archive_flag_spec=''
9580 fi
9581 link_all_deplibs=yes
9582 allow_undefined_flag="$_lt_dar_allow_undefined"
9583 case $cc_basename in
9584 ifort*) _lt_dar_can_shared=yes ;;
9585 *) _lt_dar_can_shared=$GCC ;;
9586 esac
9587 if test "$_lt_dar_can_shared" = "yes"; then
9588 output_verbose_link_cmd=func_echo_all
9589 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9590 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9591 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}"
9592 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}"
9593
9594 else
9595 ld_shlibs=no
9596 fi
9597
9598 ;;
9599
9600 dgux*)
9601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602 hardcode_libdir_flag_spec='-L$libdir'
9603 hardcode_shlibpath_var=no
9604 ;;
9605
9606 freebsd1*)
9607 ld_shlibs=no
9608 ;;
9609
9610 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9611 # support. Future versions do this automatically, but an explicit c++rt0.o
9612 # does not break anything, and helps significantly (at the cost of a little
9613 # extra space).
9614 freebsd2.2*)
9615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9616 hardcode_libdir_flag_spec='-R$libdir'
9617 hardcode_direct=yes
9618 hardcode_shlibpath_var=no
9619 ;;
9620
9621 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9622 freebsd2*)
9623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_direct=yes
9625 hardcode_minus_L=yes
9626 hardcode_shlibpath_var=no
9627 ;;
9628
9629 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9630 freebsd* | dragonfly*)
9631 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9632 hardcode_libdir_flag_spec='-R$libdir'
9633 hardcode_direct=yes
9634 hardcode_shlibpath_var=no
9635 ;;
9636
9637 hpux9*)
9638 if test "$GCC" = yes; then
9639 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'
9640 else
9641 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'
9642 fi
9643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9644 hardcode_libdir_separator=:
9645 hardcode_direct=yes
9646
9647 # hardcode_minus_L: Not really in the search PATH,
9648 # but as the default location of the library.
9649 hardcode_minus_L=yes
9650 export_dynamic_flag_spec='${wl}-E'
9651 ;;
9652
9653 hpux10*)
9654 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9656 else
9657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9658 fi
9659 if test "$with_gnu_ld" = no; then
9660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9661 hardcode_libdir_flag_spec_ld='+b $libdir'
9662 hardcode_libdir_separator=:
9663 hardcode_direct=yes
9664 hardcode_direct_absolute=yes
9665 export_dynamic_flag_spec='${wl}-E'
9666 # hardcode_minus_L: Not really in the search PATH,
9667 # but as the default location of the library.
9668 hardcode_minus_L=yes
9669 fi
9670 ;;
9671
9672 hpux11*)
9673 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9674 case $host_cpu in
9675 hppa*64*)
9676 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9677 ;;
9678 ia64*)
9679 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9680 ;;
9681 *)
9682 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9683 ;;
9684 esac
9685 else
9686 case $host_cpu in
9687 hppa*64*)
9688 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9689 ;;
9690 ia64*)
9691 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9692 ;;
9693 *)
9694
9695 # Older versions of the 11.00 compiler do not understand -b yet
9696 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9698 $as_echo_n "checking if $CC understands -b... " >&6; }
9699 if ${lt_cv_prog_compiler__b+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 lt_cv_prog_compiler__b=no
9703 save_LDFLAGS="$LDFLAGS"
9704 LDFLAGS="$LDFLAGS -b"
9705 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9706 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9707 # The linker can only warn and ignore the option if not recognized
9708 # So say no if there are warnings
9709 if test -s conftest.err; then
9710 # Append any errors to the config.log.
9711 cat conftest.err 1>&5
9712 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9714 if diff conftest.exp conftest.er2 >/dev/null; then
9715 lt_cv_prog_compiler__b=yes
9716 fi
9717 else
9718 lt_cv_prog_compiler__b=yes
9719 fi
9720 fi
9721 $RM -r conftest*
9722 LDFLAGS="$save_LDFLAGS"
9723
9724 fi
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9726 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9727
9728 if test x"$lt_cv_prog_compiler__b" = xyes; then
9729 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9730 else
9731 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9732 fi
9733
9734 ;;
9735 esac
9736 fi
9737 if test "$with_gnu_ld" = no; then
9738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9739 hardcode_libdir_separator=:
9740
9741 case $host_cpu in
9742 hppa*64*|ia64*)
9743 hardcode_direct=no
9744 hardcode_shlibpath_var=no
9745 ;;
9746 *)
9747 hardcode_direct=yes
9748 hardcode_direct_absolute=yes
9749 export_dynamic_flag_spec='${wl}-E'
9750
9751 # hardcode_minus_L: Not really in the search PATH,
9752 # but as the default location of the library.
9753 hardcode_minus_L=yes
9754 ;;
9755 esac
9756 fi
9757 ;;
9758
9759 irix5* | irix6* | nonstopux*)
9760 if test "$GCC" = yes; then
9761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9762 # Try to use the -exported_symbol ld option, if it does not
9763 # work, assume that -exports_file does not work either and
9764 # implicitly export all symbols.
9765 save_LDFLAGS="$LDFLAGS"
9766 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 int foo(void) {}
9770 _ACEOF
9771 if ac_fn_c_try_link "$LINENO"; then :
9772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9773
9774 fi
9775 rm -f core conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777 LDFLAGS="$save_LDFLAGS"
9778 else
9779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9781 fi
9782 archive_cmds_need_lc='no'
9783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9784 hardcode_libdir_separator=:
9785 inherit_rpath=yes
9786 link_all_deplibs=yes
9787 ;;
9788
9789 netbsd*)
9790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9792 else
9793 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9794 fi
9795 hardcode_libdir_flag_spec='-R$libdir'
9796 hardcode_direct=yes
9797 hardcode_shlibpath_var=no
9798 ;;
9799
9800 newsos6)
9801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802 hardcode_direct=yes
9803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9804 hardcode_libdir_separator=:
9805 hardcode_shlibpath_var=no
9806 ;;
9807
9808 *nto* | *qnx*)
9809 ;;
9810
9811 openbsd*)
9812 if test -f /usr/libexec/ld.so; then
9813 hardcode_direct=yes
9814 hardcode_shlibpath_var=no
9815 hardcode_direct_absolute=yes
9816 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9818 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9820 export_dynamic_flag_spec='${wl}-E'
9821 else
9822 case $host_os in
9823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_libdir_flag_spec='-R$libdir'
9826 ;;
9827 *)
9828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9830 ;;
9831 esac
9832 fi
9833 else
9834 ld_shlibs=no
9835 fi
9836 ;;
9837
9838 os2*)
9839 hardcode_libdir_flag_spec='-L$libdir'
9840 hardcode_minus_L=yes
9841 allow_undefined_flag=unsupported
9842 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'
9843 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9844 ;;
9845
9846 osf3*)
9847 if test "$GCC" = yes; then
9848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9849 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9850 else
9851 allow_undefined_flag=' -expect_unresolved \*'
9852 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9853 fi
9854 archive_cmds_need_lc='no'
9855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9856 hardcode_libdir_separator=:
9857 ;;
9858
9859 osf4* | osf5*) # as osf3* with the addition of -msym flag
9860 if test "$GCC" = yes; then
9861 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9862 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9864 else
9865 allow_undefined_flag=' -expect_unresolved \*'
9866 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9867 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~
9868 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9869
9870 # Both c and cxx compiler support -rpath directly
9871 hardcode_libdir_flag_spec='-rpath $libdir'
9872 fi
9873 archive_cmds_need_lc='no'
9874 hardcode_libdir_separator=:
9875 ;;
9876
9877 solaris*)
9878 no_undefined_flag=' -z defs'
9879 if test "$GCC" = yes; then
9880 wlarc='${wl}'
9881 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9883 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9884 else
9885 case `$CC -V 2>&1` in
9886 *"Compilers 5.0"*)
9887 wlarc=''
9888 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9889 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9890 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9891 ;;
9892 *)
9893 wlarc='${wl}'
9894 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9896 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9897 ;;
9898 esac
9899 fi
9900 hardcode_libdir_flag_spec='-R$libdir'
9901 hardcode_shlibpath_var=no
9902 case $host_os in
9903 solaris2.[0-5] | solaris2.[0-5].*) ;;
9904 *)
9905 # The compiler driver will combine and reorder linker options,
9906 # but understands `-z linker_flag'. GCC discards it without `$wl',
9907 # but is careful enough not to reorder.
9908 # Supported since Solaris 2.6 (maybe 2.5.1?)
9909 if test "$GCC" = yes; then
9910 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9911 else
9912 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9913 fi
9914 ;;
9915 esac
9916 link_all_deplibs=yes
9917 ;;
9918
9919 sunos4*)
9920 if test "x$host_vendor" = xsequent; then
9921 # Use $CC to link under sequent, because it throws in some extra .o
9922 # files that make .init and .fini sections work.
9923 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9924 else
9925 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9926 fi
9927 hardcode_libdir_flag_spec='-L$libdir'
9928 hardcode_direct=yes
9929 hardcode_minus_L=yes
9930 hardcode_shlibpath_var=no
9931 ;;
9932
9933 sysv4)
9934 case $host_vendor in
9935 sni)
9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_direct=yes # is this really true???
9938 ;;
9939 siemens)
9940 ## LD is ld it makes a PLAMLIB
9941 ## CC just makes a GrossModule.
9942 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9943 reload_cmds='$CC -r -o $output$reload_objs'
9944 hardcode_direct=no
9945 ;;
9946 motorola)
9947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9949 ;;
9950 esac
9951 runpath_var='LD_RUN_PATH'
9952 hardcode_shlibpath_var=no
9953 ;;
9954
9955 sysv4.3*)
9956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_shlibpath_var=no
9958 export_dynamic_flag_spec='-Bexport'
9959 ;;
9960
9961 sysv4*MP*)
9962 if test -d /usr/nec; then
9963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964 hardcode_shlibpath_var=no
9965 runpath_var=LD_RUN_PATH
9966 hardcode_runpath_var=yes
9967 ld_shlibs=yes
9968 fi
9969 ;;
9970
9971 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9972 no_undefined_flag='${wl}-z,text'
9973 archive_cmds_need_lc=no
9974 hardcode_shlibpath_var=no
9975 runpath_var='LD_RUN_PATH'
9976
9977 if test "$GCC" = yes; then
9978 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9979 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9980 else
9981 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9982 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 fi
9984 ;;
9985
9986 sysv5* | sco3.2v5* | sco5v6*)
9987 # Note: We can NOT use -z defs as we might desire, because we do not
9988 # link with -lc, and that would cause any symbols used from libc to
9989 # always be unresolved, which means just about no library would
9990 # ever link correctly. If we're not using GNU ld we use -z text
9991 # though, which does catch some bad symbols but isn't as heavy-handed
9992 # as -z defs.
9993 no_undefined_flag='${wl}-z,text'
9994 allow_undefined_flag='${wl}-z,nodefs'
9995 archive_cmds_need_lc=no
9996 hardcode_shlibpath_var=no
9997 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9998 hardcode_libdir_separator=':'
9999 link_all_deplibs=yes
10000 export_dynamic_flag_spec='${wl}-Bexport'
10001 runpath_var='LD_RUN_PATH'
10002
10003 if test "$GCC" = yes; then
10004 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10005 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10006 else
10007 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10008 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 fi
10010 ;;
10011
10012 uts4*)
10013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014 hardcode_libdir_flag_spec='-L$libdir'
10015 hardcode_shlibpath_var=no
10016 ;;
10017
10018 *)
10019 ld_shlibs=no
10020 ;;
10021 esac
10022
10023 if test x$host_vendor = xsni; then
10024 case $host in
10025 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10026 export_dynamic_flag_spec='${wl}-Blargedynsym'
10027 ;;
10028 esac
10029 fi
10030 fi
10031
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10033 $as_echo "$ld_shlibs" >&6; }
10034 test "$ld_shlibs" = no && can_build_shared=no
10035
10036 with_gnu_ld=$with_gnu_ld
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052 #
10053 # Do we need to explicitly link libc?
10054 #
10055 case "x$archive_cmds_need_lc" in
10056 x|xyes)
10057 # Assume -lc should be added
10058 archive_cmds_need_lc=yes
10059
10060 if test "$enable_shared" = yes && test "$GCC" = yes; then
10061 case $archive_cmds in
10062 *'~'*)
10063 # FIXME: we may have to deal with multi-command sequences.
10064 ;;
10065 '$CC '*)
10066 # Test whether the compiler implicitly links with -lc since on some
10067 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10068 # to ld, don't add -lc before -lgcc.
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10070 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10071 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073 else
10074 $RM conftest*
10075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10076
10077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10078 (eval $ac_compile) 2>&5
10079 ac_status=$?
10080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10081 test $ac_status = 0; } 2>conftest.err; then
10082 soname=conftest
10083 lib=conftest
10084 libobjs=conftest.$ac_objext
10085 deplibs=
10086 wl=$lt_prog_compiler_wl
10087 pic_flag=$lt_prog_compiler_pic
10088 compiler_flags=-v
10089 linker_flags=-v
10090 verstring=
10091 output_objdir=.
10092 libname=conftest
10093 lt_save_allow_undefined_flag=$allow_undefined_flag
10094 allow_undefined_flag=
10095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10096 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10097 ac_status=$?
10098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10099 test $ac_status = 0; }
10100 then
10101 lt_cv_archive_cmds_need_lc=no
10102 else
10103 lt_cv_archive_cmds_need_lc=yes
10104 fi
10105 allow_undefined_flag=$lt_save_allow_undefined_flag
10106 else
10107 cat conftest.err 1>&5
10108 fi
10109 $RM conftest*
10110
10111 fi
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10113 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10114 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10115 ;;
10116 esac
10117 fi
10118 ;;
10119 esac
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
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10278 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10279
10280 if test "$GCC" = yes; then
10281 case $host_os in
10282 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10283 *) lt_awk_arg="/^libraries:/" ;;
10284 esac
10285 case $host_os in
10286 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10287 *) lt_sed_strip_eq="s,=/,/,g" ;;
10288 esac
10289 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10290 case $lt_search_path_spec in
10291 *\;*)
10292 # if the path contains ";" then we assume it to be the separator
10293 # otherwise default to the standard path separator (i.e. ":") - it is
10294 # assumed that no part of a normal pathname contains ";" but that should
10295 # okay in the real world where ";" in dirpaths is itself problematic.
10296 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10297 ;;
10298 *)
10299 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10300 ;;
10301 esac
10302 # Ok, now we have the path, separated by spaces, we can step through it
10303 # and add multilib dir if necessary.
10304 lt_tmp_lt_search_path_spec=
10305 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10306 for lt_sys_path in $lt_search_path_spec; do
10307 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10308 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10309 else
10310 test -d "$lt_sys_path" && \
10311 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10312 fi
10313 done
10314 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10315 BEGIN {RS=" "; FS="/|\n";} {
10316 lt_foo="";
10317 lt_count=0;
10318 for (lt_i = NF; lt_i > 0; lt_i--) {
10319 if ($lt_i != "" && $lt_i != ".") {
10320 if ($lt_i == "..") {
10321 lt_count++;
10322 } else {
10323 if (lt_count == 0) {
10324 lt_foo="/" $lt_i lt_foo;
10325 } else {
10326 lt_count--;
10327 }
10328 }
10329 }
10330 }
10331 if (lt_foo != "") { lt_freq[lt_foo]++; }
10332 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10333 }'`
10334 # AWK program above erroneously prepends '/' to C:/dos/paths
10335 # for these hosts.
10336 case $host_os in
10337 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10338 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10339 esac
10340 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10341 else
10342 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10343 fi
10344 library_names_spec=
10345 libname_spec='lib$name'
10346 soname_spec=
10347 shrext_cmds=".so"
10348 postinstall_cmds=
10349 postuninstall_cmds=
10350 finish_cmds=
10351 finish_eval=
10352 shlibpath_var=
10353 shlibpath_overrides_runpath=unknown
10354 version_type=none
10355 dynamic_linker="$host_os ld.so"
10356 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10357 need_lib_prefix=unknown
10358 hardcode_into_libs=no
10359
10360 # when you set need_version to no, make sure it does not cause -set_version
10361 # flags to be left without arguments
10362 need_version=unknown
10363
10364 case $host_os in
10365 aix3*)
10366 version_type=linux
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10368 shlibpath_var=LIBPATH
10369
10370 # AIX 3 has no versioning support, so we append a major version to the name.
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 ;;
10373
10374 aix[4-9]*)
10375 version_type=linux
10376 need_lib_prefix=no
10377 need_version=no
10378 hardcode_into_libs=yes
10379 if test "$host_cpu" = ia64; then
10380 # AIX 5 supports IA64
10381 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 else
10384 # With GCC up to 2.95.x, collect2 would create an import file
10385 # for dependence libraries. The import file would start with
10386 # the line `#! .'. This would cause the generated library to
10387 # depend on `.', always an invalid library. This was fixed in
10388 # development snapshots of GCC prior to 3.0.
10389 case $host_os in
10390 aix4 | aix4.[01] | aix4.[01].*)
10391 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10392 echo ' yes '
10393 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10394 :
10395 else
10396 can_build_shared=no
10397 fi
10398 ;;
10399 esac
10400 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10401 # soname into executable. Probably we can add versioning support to
10402 # collect2, so additional links can be useful in future.
10403 if test "$aix_use_runtimelinking" = yes; then
10404 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10405 # instead of lib<name>.a to let people know that these are not
10406 # typical AIX shared libraries.
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408 else
10409 # We preserve .a as extension for shared libraries through AIX4.2
10410 # and later when we are not doing run time linking.
10411 library_names_spec='${libname}${release}.a $libname.a'
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 fi
10414 shlibpath_var=LIBPATH
10415 fi
10416 ;;
10417
10418 amigaos*)
10419 case $host_cpu in
10420 powerpc)
10421 # Since July 2007 AmigaOS4 officially supports .so libraries.
10422 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 ;;
10425 m68k)
10426 library_names_spec='$libname.ixlibrary $libname.a'
10427 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10428 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10429 ;;
10430 esac
10431 ;;
10432
10433 beos*)
10434 library_names_spec='${libname}${shared_ext}'
10435 dynamic_linker="$host_os ld.so"
10436 shlibpath_var=LIBRARY_PATH
10437 ;;
10438
10439 bsdi[45]*)
10440 version_type=linux
10441 need_version=no
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10445 shlibpath_var=LD_LIBRARY_PATH
10446 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10447 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10448 # the default ld.so.conf also contains /usr/contrib/lib and
10449 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10450 # libtool to hard-code these into programs
10451 ;;
10452
10453 cygwin* | mingw* | pw32* | cegcc*)
10454 version_type=windows
10455 shrext_cmds=".dll"
10456 need_version=no
10457 need_lib_prefix=no
10458
10459 case $GCC,$host_os in
10460 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10461 library_names_spec='$libname.dll.a'
10462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10463 postinstall_cmds='base_file=`basename \${file}`~
10464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10465 dldir=$destdir/`dirname \$dlpath`~
10466 test -d \$dldir || mkdir -p \$dldir~
10467 $install_prog $dir/$dlname \$dldir/$dlname~
10468 chmod a+x \$dldir/$dlname~
10469 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10470 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10471 fi'
10472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10473 dlpath=$dir/\$dldll~
10474 $RM \$dlpath'
10475 shlibpath_overrides_runpath=yes
10476
10477 case $host_os in
10478 cygwin*)
10479 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10480 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10481
10482 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10483 ;;
10484 mingw* | cegcc*)
10485 # MinGW DLLs use traditional 'lib' prefix
10486 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10487 ;;
10488 pw32*)
10489 # pw32 DLLs use 'pw' prefix rather than 'lib'
10490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10491 ;;
10492 esac
10493 ;;
10494
10495 *)
10496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10497 ;;
10498 esac
10499 dynamic_linker='Win32 ld.exe'
10500 # FIXME: first we should search . and the directory the executable is in
10501 shlibpath_var=PATH
10502 ;;
10503
10504 darwin* | rhapsody*)
10505 dynamic_linker="$host_os dyld"
10506 version_type=darwin
10507 need_lib_prefix=no
10508 need_version=no
10509 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10510 soname_spec='${libname}${release}${major}$shared_ext'
10511 shlibpath_overrides_runpath=yes
10512 shlibpath_var=DYLD_LIBRARY_PATH
10513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10514
10515 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10516 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10517 ;;
10518
10519 dgux*)
10520 version_type=linux
10521 need_lib_prefix=no
10522 need_version=no
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 ;;
10527
10528 freebsd1*)
10529 dynamic_linker=no
10530 ;;
10531
10532 freebsd* | dragonfly*)
10533 # DragonFly does not have aout. When/if they implement a new
10534 # versioning mechanism, adjust this.
10535 if test -x /usr/bin/objformat; then
10536 objformat=`/usr/bin/objformat`
10537 else
10538 case $host_os in
10539 freebsd[123]*) objformat=aout ;;
10540 *) objformat=elf ;;
10541 esac
10542 fi
10543 version_type=freebsd-$objformat
10544 case $version_type in
10545 freebsd-elf*)
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10547 need_version=no
10548 need_lib_prefix=no
10549 ;;
10550 freebsd-*)
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10552 need_version=yes
10553 ;;
10554 esac
10555 shlibpath_var=LD_LIBRARY_PATH
10556 case $host_os in
10557 freebsd2*)
10558 shlibpath_overrides_runpath=yes
10559 ;;
10560 freebsd3.[01]* | freebsdelf3.[01]*)
10561 shlibpath_overrides_runpath=yes
10562 hardcode_into_libs=yes
10563 ;;
10564 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10565 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10566 shlibpath_overrides_runpath=no
10567 hardcode_into_libs=yes
10568 ;;
10569 *) # from 4.6 on, and DragonFly
10570 shlibpath_overrides_runpath=yes
10571 hardcode_into_libs=yes
10572 ;;
10573 esac
10574 ;;
10575
10576 gnu*)
10577 version_type=linux
10578 need_lib_prefix=no
10579 need_version=no
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 hardcode_into_libs=yes
10584 ;;
10585
10586 haiku*)
10587 version_type=linux
10588 need_lib_prefix=no
10589 need_version=no
10590 dynamic_linker="$host_os runtime_loader"
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 shlibpath_var=LIBRARY_PATH
10594 shlibpath_overrides_runpath=yes
10595 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10596 hardcode_into_libs=yes
10597 ;;
10598
10599 hpux9* | hpux10* | hpux11*)
10600 # Give a soname corresponding to the major version so that dld.sl refuses to
10601 # link against other versions.
10602 version_type=sunos
10603 need_lib_prefix=no
10604 need_version=no
10605 case $host_cpu in
10606 ia64*)
10607 shrext_cmds='.so'
10608 hardcode_into_libs=yes
10609 dynamic_linker="$host_os dld.so"
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 if test "X$HPUX_IA64_MODE" = X32; then
10615 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10616 else
10617 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10618 fi
10619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10620 ;;
10621 hppa*64*)
10622 shrext_cmds='.sl'
10623 hardcode_into_libs=yes
10624 dynamic_linker="$host_os dld.sl"
10625 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10631 ;;
10632 *)
10633 shrext_cmds='.sl'
10634 dynamic_linker="$host_os dld.sl"
10635 shlibpath_var=SHLIB_PATH
10636 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 ;;
10640 esac
10641 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10642 postinstall_cmds='chmod 555 $lib'
10643 # or fails outright, so override atomically:
10644 install_override_mode=555
10645 ;;
10646
10647 interix[3-9]*)
10648 version_type=linux
10649 need_lib_prefix=no
10650 need_version=no
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=no
10656 hardcode_into_libs=yes
10657 ;;
10658
10659 irix5* | irix6* | nonstopux*)
10660 case $host_os in
10661 nonstopux*) version_type=nonstopux ;;
10662 *)
10663 if test "$lt_cv_prog_gnu_ld" = yes; then
10664 version_type=linux
10665 else
10666 version_type=irix
10667 fi ;;
10668 esac
10669 need_lib_prefix=no
10670 need_version=no
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10673 case $host_os in
10674 irix5* | nonstopux*)
10675 libsuff= shlibsuff=
10676 ;;
10677 *)
10678 case $LD in # libtool.m4 will add one of these switches to LD
10679 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10680 libsuff= shlibsuff= libmagic=32-bit;;
10681 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10682 libsuff=32 shlibsuff=N32 libmagic=N32;;
10683 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10684 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10685 *) libsuff= shlibsuff= libmagic=never-match;;
10686 esac
10687 ;;
10688 esac
10689 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10690 shlibpath_overrides_runpath=no
10691 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10692 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10693 hardcode_into_libs=yes
10694 ;;
10695
10696 # No shared lib support for Linux oldld, aout, or coff.
10697 linux*oldld* | linux*aout* | linux*coff*)
10698 dynamic_linker=no
10699 ;;
10700
10701 # This must be Linux ELF.
10702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10703 version_type=linux
10704 need_lib_prefix=no
10705 need_version=no
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=no
10711
10712 # Some binutils ld are patched to set DT_RUNPATH
10713 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 lt_cv_shlibpath_overrides_runpath=no
10717 save_LDFLAGS=$LDFLAGS
10718 save_libdir=$libdir
10719 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10720 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723
10724 int
10725 main ()
10726 {
10727
10728 ;
10729 return 0;
10730 }
10731 _ACEOF
10732 if ac_fn_c_try_link "$LINENO"; then :
10733 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10734 lt_cv_shlibpath_overrides_runpath=yes
10735 fi
10736 fi
10737 rm -f core conftest.err conftest.$ac_objext \
10738 conftest$ac_exeext conftest.$ac_ext
10739 LDFLAGS=$save_LDFLAGS
10740 libdir=$save_libdir
10741
10742 fi
10743
10744 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10745
10746 # This implies no fast_install, which is unacceptable.
10747 # Some rework will be needed to allow for fast_install
10748 # before this can be enabled.
10749 hardcode_into_libs=yes
10750
10751 # Append ld.so.conf contents to the search path
10752 if test -f /etc/ld.so.conf; then
10753 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10754 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10755 fi
10756
10757 # We used to test for /lib/ld.so.1 and disable shared libraries on
10758 # powerpc, because MkLinux only supported shared libraries with the
10759 # GNU dynamic linker. Since this was broken with cross compilers,
10760 # most powerpc-linux boxes support dynamic linking these days and
10761 # people can always --disable-shared, the test was removed, and we
10762 # assume the GNU/Linux dynamic linker is in use.
10763 dynamic_linker='GNU/Linux ld.so'
10764 ;;
10765
10766 netbsd*)
10767 version_type=sunos
10768 need_lib_prefix=no
10769 need_version=no
10770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10773 dynamic_linker='NetBSD (a.out) ld.so'
10774 else
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 dynamic_linker='NetBSD ld.elf_so'
10778 fi
10779 shlibpath_var=LD_LIBRARY_PATH
10780 shlibpath_overrides_runpath=yes
10781 hardcode_into_libs=yes
10782 ;;
10783
10784 newsos6)
10785 version_type=linux
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 shlibpath_var=LD_LIBRARY_PATH
10788 shlibpath_overrides_runpath=yes
10789 ;;
10790
10791 *nto* | *qnx*)
10792 version_type=qnx
10793 need_lib_prefix=no
10794 need_version=no
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 shlibpath_overrides_runpath=no
10799 hardcode_into_libs=yes
10800 dynamic_linker='ldqnx.so'
10801 ;;
10802
10803 openbsd*)
10804 version_type=sunos
10805 sys_lib_dlsearch_path_spec="/usr/lib"
10806 need_lib_prefix=no
10807 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10808 case $host_os in
10809 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10810 *) need_version=no ;;
10811 esac
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10816 case $host_os in
10817 openbsd2.[89] | openbsd2.[89].*)
10818 shlibpath_overrides_runpath=no
10819 ;;
10820 *)
10821 shlibpath_overrides_runpath=yes
10822 ;;
10823 esac
10824 else
10825 shlibpath_overrides_runpath=yes
10826 fi
10827 ;;
10828
10829 os2*)
10830 libname_spec='$name'
10831 shrext_cmds=".dll"
10832 need_lib_prefix=no
10833 library_names_spec='$libname${shared_ext} $libname.a'
10834 dynamic_linker='OS/2 ld.exe'
10835 shlibpath_var=LIBPATH
10836 ;;
10837
10838 osf3* | osf4* | osf5*)
10839 version_type=osf
10840 need_lib_prefix=no
10841 need_version=no
10842 soname_spec='${libname}${release}${shared_ext}$major'
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844 shlibpath_var=LD_LIBRARY_PATH
10845 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10846 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10847 ;;
10848
10849 rdos*)
10850 dynamic_linker=no
10851 ;;
10852
10853 solaris*)
10854 version_type=linux
10855 need_lib_prefix=no
10856 need_version=no
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 shlibpath_overrides_runpath=yes
10861 hardcode_into_libs=yes
10862 # ldd complains unless libraries are executable
10863 postinstall_cmds='chmod +x $lib'
10864 ;;
10865
10866 sunos4*)
10867 version_type=sunos
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 shlibpath_overrides_runpath=yes
10872 if test "$with_gnu_ld" = yes; then
10873 need_lib_prefix=no
10874 fi
10875 need_version=yes
10876 ;;
10877
10878 sysv4 | sysv4.3*)
10879 version_type=linux
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881 soname_spec='${libname}${release}${shared_ext}$major'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 case $host_vendor in
10884 sni)
10885 shlibpath_overrides_runpath=no
10886 need_lib_prefix=no
10887 runpath_var=LD_RUN_PATH
10888 ;;
10889 siemens)
10890 need_lib_prefix=no
10891 ;;
10892 motorola)
10893 need_lib_prefix=no
10894 need_version=no
10895 shlibpath_overrides_runpath=no
10896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10897 ;;
10898 esac
10899 ;;
10900
10901 sysv4*MP*)
10902 if test -d /usr/nec ;then
10903 version_type=linux
10904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10905 soname_spec='$libname${shared_ext}.$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 fi
10908 ;;
10909
10910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10911 version_type=freebsd-elf
10912 need_lib_prefix=no
10913 need_version=no
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=yes
10918 hardcode_into_libs=yes
10919 if test "$with_gnu_ld" = yes; then
10920 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10921 else
10922 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10923 case $host_os in
10924 sco3.2v5*)
10925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10926 ;;
10927 esac
10928 fi
10929 sys_lib_dlsearch_path_spec='/usr/lib'
10930 ;;
10931
10932 tpf*)
10933 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10934 version_type=linux
10935 need_lib_prefix=no
10936 need_version=no
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=no
10940 hardcode_into_libs=yes
10941 ;;
10942
10943 uts4*)
10944 version_type=linux
10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946 soname_spec='${libname}${release}${shared_ext}$major'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 ;;
10949
10950 *)
10951 dynamic_linker=no
10952 ;;
10953 esac
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10955 $as_echo "$dynamic_linker" >&6; }
10956 test "$dynamic_linker" = no && can_build_shared=no
10957
10958 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10959 if test "$GCC" = yes; then
10960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10961 fi
10962
10963 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10964 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10965 fi
10966 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10968 fi
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11062 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11063 hardcode_action=
11064 if test -n "$hardcode_libdir_flag_spec" ||
11065 test -n "$runpath_var" ||
11066 test "X$hardcode_automatic" = "Xyes" ; then
11067
11068 # We can hardcode non-existent directories.
11069 if test "$hardcode_direct" != no &&
11070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11071 # have to relink, otherwise we might link with an installed library
11072 # when we should be linking with a yet-to-be-installed one
11073 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11074 test "$hardcode_minus_L" != no; then
11075 # Linking always hardcodes the temporary library directory.
11076 hardcode_action=relink
11077 else
11078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11079 hardcode_action=immediate
11080 fi
11081 else
11082 # We cannot hardcode anything, or else we can only hardcode existing
11083 # directories.
11084 hardcode_action=unsupported
11085 fi
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11087 $as_echo "$hardcode_action" >&6; }
11088
11089 if test "$hardcode_action" = relink ||
11090 test "$inherit_rpath" = yes; then
11091 # Fast installation is not supported
11092 enable_fast_install=no
11093 elif test "$shlibpath_overrides_runpath" = yes ||
11094 test "$enable_shared" = no; then
11095 # Fast installation is not necessary
11096 enable_fast_install=needless
11097 fi
11098
11099
11100
11101
11102
11103
11104 if test "x$enable_dlopen" != xyes; then
11105 enable_dlopen=unknown
11106 enable_dlopen_self=unknown
11107 enable_dlopen_self_static=unknown
11108 else
11109 lt_cv_dlopen=no
11110 lt_cv_dlopen_libs=
11111
11112 case $host_os in
11113 beos*)
11114 lt_cv_dlopen="load_add_on"
11115 lt_cv_dlopen_libs=
11116 lt_cv_dlopen_self=yes
11117 ;;
11118
11119 mingw* | pw32* | cegcc*)
11120 lt_cv_dlopen="LoadLibrary"
11121 lt_cv_dlopen_libs=
11122 ;;
11123
11124 cygwin*)
11125 lt_cv_dlopen="dlopen"
11126 lt_cv_dlopen_libs=
11127 ;;
11128
11129 darwin*)
11130 # if libdl is installed we need to link against it
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11132 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11133 if ${ac_cv_lib_dl_dlopen+:} false; then :
11134 $as_echo_n "(cached) " >&6
11135 else
11136 ac_check_lib_save_LIBS=$LIBS
11137 LIBS="-ldl $LIBS"
11138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139 /* end confdefs.h. */
11140
11141 /* Override any GCC internal prototype to avoid an error.
11142 Use char because int might match the return type of a GCC
11143 builtin and then its argument prototype would still apply. */
11144 #ifdef __cplusplus
11145 extern "C"
11146 #endif
11147 char dlopen ();
11148 int
11149 main ()
11150 {
11151 return dlopen ();
11152 ;
11153 return 0;
11154 }
11155 _ACEOF
11156 if ac_fn_c_try_link "$LINENO"; then :
11157 ac_cv_lib_dl_dlopen=yes
11158 else
11159 ac_cv_lib_dl_dlopen=no
11160 fi
11161 rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11163 LIBS=$ac_check_lib_save_LIBS
11164 fi
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11166 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11167 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11168 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11169 else
11170
11171 lt_cv_dlopen="dyld"
11172 lt_cv_dlopen_libs=
11173 lt_cv_dlopen_self=yes
11174
11175 fi
11176
11177 ;;
11178
11179 *)
11180 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11181 if test "x$ac_cv_func_shl_load" = xyes; then :
11182 lt_cv_dlopen="shl_load"
11183 else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11185 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11186 if ${ac_cv_lib_dld_shl_load+:} false; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 ac_check_lib_save_LIBS=$LIBS
11190 LIBS="-ldld $LIBS"
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193
11194 /* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 char shl_load ();
11201 int
11202 main ()
11203 {
11204 return shl_load ();
11205 ;
11206 return 0;
11207 }
11208 _ACEOF
11209 if ac_fn_c_try_link "$LINENO"; then :
11210 ac_cv_lib_dld_shl_load=yes
11211 else
11212 ac_cv_lib_dld_shl_load=no
11213 fi
11214 rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216 LIBS=$ac_check_lib_save_LIBS
11217 fi
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11219 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11220 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11221 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11222 else
11223 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11224 if test "x$ac_cv_func_dlopen" = xyes; then :
11225 lt_cv_dlopen="dlopen"
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11228 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11229 if ${ac_cv_lib_dl_dlopen+:} false; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 ac_check_lib_save_LIBS=$LIBS
11233 LIBS="-ldl $LIBS"
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11236
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 char dlopen ();
11244 int
11245 main ()
11246 {
11247 return dlopen ();
11248 ;
11249 return 0;
11250 }
11251 _ACEOF
11252 if ac_fn_c_try_link "$LINENO"; then :
11253 ac_cv_lib_dl_dlopen=yes
11254 else
11255 ac_cv_lib_dl_dlopen=no
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11260 fi
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11263 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11265 else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11267 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11268 if ${ac_cv_lib_svld_dlopen+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 ac_check_lib_save_LIBS=$LIBS
11272 LIBS="-lsvld $LIBS"
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11275
11276 /* Override any GCC internal prototype to avoid an error.
11277 Use char because int might match the return type of a GCC
11278 builtin and then its argument prototype would still apply. */
11279 #ifdef __cplusplus
11280 extern "C"
11281 #endif
11282 char dlopen ();
11283 int
11284 main ()
11285 {
11286 return dlopen ();
11287 ;
11288 return 0;
11289 }
11290 _ACEOF
11291 if ac_fn_c_try_link "$LINENO"; then :
11292 ac_cv_lib_svld_dlopen=yes
11293 else
11294 ac_cv_lib_svld_dlopen=no
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext \
11297 conftest$ac_exeext conftest.$ac_ext
11298 LIBS=$ac_check_lib_save_LIBS
11299 fi
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11301 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11302 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11304 else
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11306 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11307 if ${ac_cv_lib_dld_dld_link+:} false; then :
11308 $as_echo_n "(cached) " >&6
11309 else
11310 ac_check_lib_save_LIBS=$LIBS
11311 LIBS="-ldld $LIBS"
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11314
11315 /* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
11318 #ifdef __cplusplus
11319 extern "C"
11320 #endif
11321 char dld_link ();
11322 int
11323 main ()
11324 {
11325 return dld_link ();
11326 ;
11327 return 0;
11328 }
11329 _ACEOF
11330 if ac_fn_c_try_link "$LINENO"; then :
11331 ac_cv_lib_dld_dld_link=yes
11332 else
11333 ac_cv_lib_dld_dld_link=no
11334 fi
11335 rm -f core conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337 LIBS=$ac_check_lib_save_LIBS
11338 fi
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11340 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11341 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11342 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11343 fi
11344
11345
11346 fi
11347
11348
11349 fi
11350
11351
11352 fi
11353
11354
11355 fi
11356
11357
11358 fi
11359
11360 ;;
11361 esac
11362
11363 if test "x$lt_cv_dlopen" != xno; then
11364 enable_dlopen=yes
11365 else
11366 enable_dlopen=no
11367 fi
11368
11369 case $lt_cv_dlopen in
11370 dlopen)
11371 save_CPPFLAGS="$CPPFLAGS"
11372 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11373
11374 save_LDFLAGS="$LDFLAGS"
11375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11376
11377 save_LIBS="$LIBS"
11378 LIBS="$lt_cv_dlopen_libs $LIBS"
11379
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11381 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11382 if ${lt_cv_dlopen_self+:} false; then :
11383 $as_echo_n "(cached) " >&6
11384 else
11385 if test "$cross_compiling" = yes; then :
11386 lt_cv_dlopen_self=cross
11387 else
11388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11389 lt_status=$lt_dlunknown
11390 cat > conftest.$ac_ext <<_LT_EOF
11391 #line $LINENO "configure"
11392 #include "confdefs.h"
11393
11394 #if HAVE_DLFCN_H
11395 #include <dlfcn.h>
11396 #endif
11397
11398 #include <stdio.h>
11399
11400 #ifdef RTLD_GLOBAL
11401 # define LT_DLGLOBAL RTLD_GLOBAL
11402 #else
11403 # ifdef DL_GLOBAL
11404 # define LT_DLGLOBAL DL_GLOBAL
11405 # else
11406 # define LT_DLGLOBAL 0
11407 # endif
11408 #endif
11409
11410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11411 find out it does not work in some platform. */
11412 #ifndef LT_DLLAZY_OR_NOW
11413 # ifdef RTLD_LAZY
11414 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11415 # else
11416 # ifdef DL_LAZY
11417 # define LT_DLLAZY_OR_NOW DL_LAZY
11418 # else
11419 # ifdef RTLD_NOW
11420 # define LT_DLLAZY_OR_NOW RTLD_NOW
11421 # else
11422 # ifdef DL_NOW
11423 # define LT_DLLAZY_OR_NOW DL_NOW
11424 # else
11425 # define LT_DLLAZY_OR_NOW 0
11426 # endif
11427 # endif
11428 # endif
11429 # endif
11430 #endif
11431
11432 /* When -fvisbility=hidden is used, assume the code has been annotated
11433 correspondingly for the symbols needed. */
11434 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11435 void fnord () __attribute__((visibility("default")));
11436 #endif
11437
11438 void fnord () { int i=42; }
11439 int main ()
11440 {
11441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11442 int status = $lt_dlunknown;
11443
11444 if (self)
11445 {
11446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11447 else
11448 {
11449 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11450 else puts (dlerror ());
11451 }
11452 /* dlclose (self); */
11453 }
11454 else
11455 puts (dlerror ());
11456
11457 return status;
11458 }
11459 _LT_EOF
11460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11461 (eval $ac_link) 2>&5
11462 ac_status=$?
11463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11464 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11465 (./conftest; exit; ) >&5 2>/dev/null
11466 lt_status=$?
11467 case x$lt_status in
11468 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11469 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11470 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11471 esac
11472 else :
11473 # compilation failed
11474 lt_cv_dlopen_self=no
11475 fi
11476 fi
11477 rm -fr conftest*
11478
11479
11480 fi
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11482 $as_echo "$lt_cv_dlopen_self" >&6; }
11483
11484 if test "x$lt_cv_dlopen_self" = xyes; then
11485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11487 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11488 if ${lt_cv_dlopen_self_static+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 if test "$cross_compiling" = yes; then :
11492 lt_cv_dlopen_self_static=cross
11493 else
11494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11495 lt_status=$lt_dlunknown
11496 cat > conftest.$ac_ext <<_LT_EOF
11497 #line $LINENO "configure"
11498 #include "confdefs.h"
11499
11500 #if HAVE_DLFCN_H
11501 #include <dlfcn.h>
11502 #endif
11503
11504 #include <stdio.h>
11505
11506 #ifdef RTLD_GLOBAL
11507 # define LT_DLGLOBAL RTLD_GLOBAL
11508 #else
11509 # ifdef DL_GLOBAL
11510 # define LT_DLGLOBAL DL_GLOBAL
11511 # else
11512 # define LT_DLGLOBAL 0
11513 # endif
11514 #endif
11515
11516 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11517 find out it does not work in some platform. */
11518 #ifndef LT_DLLAZY_OR_NOW
11519 # ifdef RTLD_LAZY
11520 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11521 # else
11522 # ifdef DL_LAZY
11523 # define LT_DLLAZY_OR_NOW DL_LAZY
11524 # else
11525 # ifdef RTLD_NOW
11526 # define LT_DLLAZY_OR_NOW RTLD_NOW
11527 # else
11528 # ifdef DL_NOW
11529 # define LT_DLLAZY_OR_NOW DL_NOW
11530 # else
11531 # define LT_DLLAZY_OR_NOW 0
11532 # endif
11533 # endif
11534 # endif
11535 # endif
11536 #endif
11537
11538 /* When -fvisbility=hidden is used, assume the code has been annotated
11539 correspondingly for the symbols needed. */
11540 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11541 void fnord () __attribute__((visibility("default")));
11542 #endif
11543
11544 void fnord () { int i=42; }
11545 int main ()
11546 {
11547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11548 int status = $lt_dlunknown;
11549
11550 if (self)
11551 {
11552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11553 else
11554 {
11555 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11556 else puts (dlerror ());
11557 }
11558 /* dlclose (self); */
11559 }
11560 else
11561 puts (dlerror ());
11562
11563 return status;
11564 }
11565 _LT_EOF
11566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11567 (eval $ac_link) 2>&5
11568 ac_status=$?
11569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11570 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11571 (./conftest; exit; ) >&5 2>/dev/null
11572 lt_status=$?
11573 case x$lt_status in
11574 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11575 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11576 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11577 esac
11578 else :
11579 # compilation failed
11580 lt_cv_dlopen_self_static=no
11581 fi
11582 fi
11583 rm -fr conftest*
11584
11585
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11588 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11589 fi
11590
11591 CPPFLAGS="$save_CPPFLAGS"
11592 LDFLAGS="$save_LDFLAGS"
11593 LIBS="$save_LIBS"
11594 ;;
11595 esac
11596
11597 case $lt_cv_dlopen_self in
11598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11599 *) enable_dlopen_self=unknown ;;
11600 esac
11601
11602 case $lt_cv_dlopen_self_static in
11603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11604 *) enable_dlopen_self_static=unknown ;;
11605 esac
11606 fi
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624 striplib=
11625 old_striplib=
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11627 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11628 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11629 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11630 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11632 $as_echo "yes" >&6; }
11633 else
11634 # FIXME - insert some real tests, host_os isn't really good enough
11635 case $host_os in
11636 darwin*)
11637 if test -n "$STRIP" ; then
11638 striplib="$STRIP -x"
11639 old_striplib="$STRIP -S"
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11641 $as_echo "yes" >&6; }
11642 else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11645 fi
11646 ;;
11647 *)
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649 $as_echo "no" >&6; }
11650 ;;
11651 esac
11652 fi
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665 # Report which library types will actually be built
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11667 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11669 $as_echo "$can_build_shared" >&6; }
11670
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11672 $as_echo_n "checking whether to build shared libraries... " >&6; }
11673 test "$can_build_shared" = "no" && enable_shared=no
11674
11675 # On AIX, shared libraries and static libraries use the same namespace, and
11676 # are all built from PIC.
11677 case $host_os in
11678 aix3*)
11679 test "$enable_shared" = yes && enable_static=no
11680 if test -n "$RANLIB"; then
11681 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11682 postinstall_cmds='$RANLIB $lib'
11683 fi
11684 ;;
11685
11686 aix[4-9]*)
11687 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11688 test "$enable_shared" = yes && enable_static=no
11689 fi
11690 ;;
11691 esac
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11693 $as_echo "$enable_shared" >&6; }
11694
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11696 $as_echo_n "checking whether to build static libraries... " >&6; }
11697 # Make sure either enable_shared or enable_static is yes.
11698 test "$enable_shared" = yes || enable_static=yes
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11700 $as_echo "$enable_static" >&6; }
11701
11702
11703
11704
11705 fi
11706 ac_ext=c
11707 ac_cpp='$CPP $CPPFLAGS'
11708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11711
11712 CC="$lt_save_CC"
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726 ac_config_commands="$ac_config_commands libtool"
11727
11728
11729
11730
11731 # Only expand once:
11732
11733
11734 ac_ext=c
11735 ac_cpp='$CPP $CPPFLAGS'
11736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11739 if test -n "$ac_tool_prefix"; then
11740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743 $as_echo_n "checking for $ac_word... " >&6; }
11744 if ${ac_cv_prog_CC+:} false; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 if test -n "$CC"; then
11748 ac_cv_prog_CC="$CC" # Let the user override the test.
11749 else
11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
11752 do
11753 IFS=$as_save_IFS
11754 test -z "$as_dir" && as_dir=.
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11759 break 2
11760 fi
11761 done
11762 done
11763 IFS=$as_save_IFS
11764
11765 fi
11766 fi
11767 CC=$ac_cv_prog_CC
11768 if test -n "$CC"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11770 $as_echo "$CC" >&6; }
11771 else
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11774 fi
11775
11776
11777 fi
11778 if test -z "$ac_cv_prog_CC"; then
11779 ac_ct_CC=$CC
11780 # Extract the first word of "gcc", so it can be a program name with args.
11781 set dummy gcc; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 if test -n "$ac_ct_CC"; then
11788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11789 else
11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11792 do
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797 ac_cv_prog_ac_ct_CC="gcc"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 break 2
11800 fi
11801 done
11802 done
11803 IFS=$as_save_IFS
11804
11805 fi
11806 fi
11807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11808 if test -n "$ac_ct_CC"; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11810 $as_echo "$ac_ct_CC" >&6; }
11811 else
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11814 fi
11815
11816 if test "x$ac_ct_CC" = x; then
11817 CC=""
11818 else
11819 case $cross_compiling:$ac_tool_warned in
11820 yes:)
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11823 ac_tool_warned=yes ;;
11824 esac
11825 CC=$ac_ct_CC
11826 fi
11827 else
11828 CC="$ac_cv_prog_CC"
11829 fi
11830
11831 if test -z "$CC"; then
11832 if test -n "$ac_tool_prefix"; then
11833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11834 set dummy ${ac_tool_prefix}cc; ac_word=$2
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11836 $as_echo_n "checking for $ac_word... " >&6; }
11837 if ${ac_cv_prog_CC+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 if test -n "$CC"; then
11841 ac_cv_prog_CC="$CC" # Let the user override the test.
11842 else
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in $PATH
11845 do
11846 IFS=$as_save_IFS
11847 test -z "$as_dir" && as_dir=.
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11850 ac_cv_prog_CC="${ac_tool_prefix}cc"
11851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 break 2
11853 fi
11854 done
11855 done
11856 IFS=$as_save_IFS
11857
11858 fi
11859 fi
11860 CC=$ac_cv_prog_CC
11861 if test -n "$CC"; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11863 $as_echo "$CC" >&6; }
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867 fi
11868
11869
11870 fi
11871 fi
11872 if test -z "$CC"; then
11873 # Extract the first word of "cc", so it can be a program name with args.
11874 set dummy cc; ac_word=$2
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876 $as_echo_n "checking for $ac_word... " >&6; }
11877 if ${ac_cv_prog_CC+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 if test -n "$CC"; then
11881 ac_cv_prog_CC="$CC" # Let the user override the test.
11882 else
11883 ac_prog_rejected=no
11884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885 for as_dir in $PATH
11886 do
11887 IFS=$as_save_IFS
11888 test -z "$as_dir" && as_dir=.
11889 for ac_exec_ext in '' $ac_executable_extensions; do
11890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11892 ac_prog_rejected=yes
11893 continue
11894 fi
11895 ac_cv_prog_CC="cc"
11896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11897 break 2
11898 fi
11899 done
11900 done
11901 IFS=$as_save_IFS
11902
11903 if test $ac_prog_rejected = yes; then
11904 # We found a bogon in the path, so make sure we never use it.
11905 set dummy $ac_cv_prog_CC
11906 shift
11907 if test $# != 0; then
11908 # We chose a different compiler from the bogus one.
11909 # However, it has the same basename, so the bogon will be chosen
11910 # first if we set CC to just the basename; use the full file name.
11911 shift
11912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11913 fi
11914 fi
11915 fi
11916 fi
11917 CC=$ac_cv_prog_CC
11918 if test -n "$CC"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11920 $as_echo "$CC" >&6; }
11921 else
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11924 fi
11925
11926
11927 fi
11928 if test -z "$CC"; then
11929 if test -n "$ac_tool_prefix"; then
11930 for ac_prog in cl.exe
11931 do
11932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11935 $as_echo_n "checking for $ac_word... " >&6; }
11936 if ${ac_cv_prog_CC+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 if test -n "$CC"; then
11940 ac_cv_prog_CC="$CC" # Let the user override the test.
11941 else
11942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11943 for as_dir in $PATH
11944 do
11945 IFS=$as_save_IFS
11946 test -z "$as_dir" && as_dir=.
11947 for ac_exec_ext in '' $ac_executable_extensions; do
11948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951 break 2
11952 fi
11953 done
11954 done
11955 IFS=$as_save_IFS
11956
11957 fi
11958 fi
11959 CC=$ac_cv_prog_CC
11960 if test -n "$CC"; then
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11962 $as_echo "$CC" >&6; }
11963 else
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11966 fi
11967
11968
11969 test -n "$CC" && break
11970 done
11971 fi
11972 if test -z "$CC"; then
11973 ac_ct_CC=$CC
11974 for ac_prog in cl.exe
11975 do
11976 # Extract the first word of "$ac_prog", so it can be a program name with args.
11977 set dummy $ac_prog; ac_word=$2
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11979 $as_echo_n "checking for $ac_word... " >&6; }
11980 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 if test -n "$ac_ct_CC"; then
11984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11985 else
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987 for as_dir in $PATH
11988 do
11989 IFS=$as_save_IFS
11990 test -z "$as_dir" && as_dir=.
11991 for ac_exec_ext in '' $ac_executable_extensions; do
11992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11993 ac_cv_prog_ac_ct_CC="$ac_prog"
11994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11995 break 2
11996 fi
11997 done
11998 done
11999 IFS=$as_save_IFS
12000
12001 fi
12002 fi
12003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12004 if test -n "$ac_ct_CC"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12006 $as_echo "$ac_ct_CC" >&6; }
12007 else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12010 fi
12011
12012
12013 test -n "$ac_ct_CC" && break
12014 done
12015
12016 if test "x$ac_ct_CC" = x; then
12017 CC=""
12018 else
12019 case $cross_compiling:$ac_tool_warned in
12020 yes:)
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12023 ac_tool_warned=yes ;;
12024 esac
12025 CC=$ac_ct_CC
12026 fi
12027 fi
12028
12029 fi
12030
12031
12032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12034 as_fn_error $? "no acceptable C compiler found in \$PATH
12035 See \`config.log' for more details" "$LINENO" 5; }
12036
12037 # Provide some information about the compiler.
12038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12039 set X $ac_compile
12040 ac_compiler=$2
12041 for ac_option in --version -v -V -qversion; do
12042 { { ac_try="$ac_compiler $ac_option >&5"
12043 case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046 esac
12047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12048 $as_echo "$ac_try_echo"; } >&5
12049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12050 ac_status=$?
12051 if test -s conftest.err; then
12052 sed '10a\
12053 ... rest of stderr output deleted ...
12054 10q' conftest.err >conftest.er1
12055 cat conftest.er1 >&5
12056 fi
12057 rm -f conftest.er1 conftest.err
12058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12059 test $ac_status = 0; }
12060 done
12061
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12063 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12064 if ${ac_cv_c_compiler_gnu+:} false; then :
12065 $as_echo_n "(cached) " >&6
12066 else
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069
12070 int
12071 main ()
12072 {
12073 #ifndef __GNUC__
12074 choke me
12075 #endif
12076
12077 ;
12078 return 0;
12079 }
12080 _ACEOF
12081 if ac_fn_c_try_compile "$LINENO"; then :
12082 ac_compiler_gnu=yes
12083 else
12084 ac_compiler_gnu=no
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12088
12089 fi
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12091 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12092 if test $ac_compiler_gnu = yes; then
12093 GCC=yes
12094 else
12095 GCC=
12096 fi
12097 ac_test_CFLAGS=${CFLAGS+set}
12098 ac_save_CFLAGS=$CFLAGS
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12100 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12101 if ${ac_cv_prog_cc_g+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 ac_save_c_werror_flag=$ac_c_werror_flag
12105 ac_c_werror_flag=yes
12106 ac_cv_prog_cc_g=no
12107 CFLAGS="-g"
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110
12111 int
12112 main ()
12113 {
12114
12115 ;
12116 return 0;
12117 }
12118 _ACEOF
12119 if ac_fn_c_try_compile "$LINENO"; then :
12120 ac_cv_prog_cc_g=yes
12121 else
12122 CFLAGS=""
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125
12126 int
12127 main ()
12128 {
12129
12130 ;
12131 return 0;
12132 }
12133 _ACEOF
12134 if ac_fn_c_try_compile "$LINENO"; then :
12135
12136 else
12137 ac_c_werror_flag=$ac_save_c_werror_flag
12138 CFLAGS="-g"
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141
12142 int
12143 main ()
12144 {
12145
12146 ;
12147 return 0;
12148 }
12149 _ACEOF
12150 if ac_fn_c_try_compile "$LINENO"; then :
12151 ac_cv_prog_cc_g=yes
12152 fi
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154 fi
12155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156 fi
12157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158 ac_c_werror_flag=$ac_save_c_werror_flag
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12161 $as_echo "$ac_cv_prog_cc_g" >&6; }
12162 if test "$ac_test_CFLAGS" = set; then
12163 CFLAGS=$ac_save_CFLAGS
12164 elif test $ac_cv_prog_cc_g = yes; then
12165 if test "$GCC" = yes; then
12166 CFLAGS="-g -O2"
12167 else
12168 CFLAGS="-g"
12169 fi
12170 else
12171 if test "$GCC" = yes; then
12172 CFLAGS="-O2"
12173 else
12174 CFLAGS=
12175 fi
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12178 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12179 if ${ac_cv_prog_cc_c89+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 ac_cv_prog_cc_c89=no
12183 ac_save_CC=$CC
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12186 #include <stdarg.h>
12187 #include <stdio.h>
12188 #include <sys/types.h>
12189 #include <sys/stat.h>
12190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12191 struct buf { int x; };
12192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12193 static char *e (p, i)
12194 char **p;
12195 int i;
12196 {
12197 return p[i];
12198 }
12199 static char *f (char * (*g) (char **, int), char **p, ...)
12200 {
12201 char *s;
12202 va_list v;
12203 va_start (v,p);
12204 s = g (p, va_arg (v,int));
12205 va_end (v);
12206 return s;
12207 }
12208
12209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12210 function prototypes and stuff, but not '\xHH' hex character constants.
12211 These don't provoke an error unfortunately, instead are silently treated
12212 as 'x'. The following induces an error, until -std is added to get
12213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12214 array size at least. It's necessary to write '\x00'==0 to get something
12215 that's true only with -std. */
12216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12217
12218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12219 inside strings and character constants. */
12220 #define FOO(x) 'x'
12221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12222
12223 int test (int i, double x);
12224 struct s1 {int (*f) (int a);};
12225 struct s2 {int (*f) (double a);};
12226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12227 int argc;
12228 char **argv;
12229 int
12230 main ()
12231 {
12232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12233 ;
12234 return 0;
12235 }
12236 _ACEOF
12237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12239 do
12240 CC="$ac_save_CC $ac_arg"
12241 if ac_fn_c_try_compile "$LINENO"; then :
12242 ac_cv_prog_cc_c89=$ac_arg
12243 fi
12244 rm -f core conftest.err conftest.$ac_objext
12245 test "x$ac_cv_prog_cc_c89" != "xno" && break
12246 done
12247 rm -f conftest.$ac_ext
12248 CC=$ac_save_CC
12249
12250 fi
12251 # AC_CACHE_VAL
12252 case "x$ac_cv_prog_cc_c89" in
12253 x)
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12255 $as_echo "none needed" >&6; } ;;
12256 xno)
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12258 $as_echo "unsupported" >&6; } ;;
12259 *)
12260 CC="$CC $ac_cv_prog_cc_c89"
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12262 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12263 esac
12264 if test "x$ac_cv_prog_cc_c89" != xno; then :
12265
12266 fi
12267
12268 ac_ext=c
12269 ac_cpp='$CPP $CPPFLAGS'
12270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12273
12274 depcc="$CC" am_compiler_list=
12275
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12277 $as_echo_n "checking dependency style of $depcc... " >&6; }
12278 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12282 # We make a subdir and do the tests there. Otherwise we can end up
12283 # making bogus files that we don't know about and never remove. For
12284 # instance it was reported that on HP-UX the gcc test will end up
12285 # making a dummy file named `D' -- because `-MD' means `put the output
12286 # in D'.
12287 mkdir conftest.dir
12288 # Copy depcomp to subdir because otherwise we won't find it if we're
12289 # using a relative directory.
12290 cp "$am_depcomp" conftest.dir
12291 cd conftest.dir
12292 # We will build objects and dependencies in a subdirectory because
12293 # it helps to detect inapplicable dependency modes. For instance
12294 # both Tru64's cc and ICC support -MD to output dependencies as a
12295 # side effect of compilation, but ICC will put the dependencies in
12296 # the current directory while Tru64 will put them in the object
12297 # directory.
12298 mkdir sub
12299
12300 am_cv_CC_dependencies_compiler_type=none
12301 if test "$am_compiler_list" = ""; then
12302 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12303 fi
12304 am__universal=false
12305 case " $depcc " in #(
12306 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12307 esac
12308
12309 for depmode in $am_compiler_list; do
12310 # Setup a source with many dependencies, because some compilers
12311 # like to wrap large dependency lists on column 80 (with \), and
12312 # we should not choose a depcomp mode which is confused by this.
12313 #
12314 # We need to recreate these files for each test, as the compiler may
12315 # overwrite some of them when testing with obscure command lines.
12316 # This happens at least with the AIX C compiler.
12317 : > sub/conftest.c
12318 for i in 1 2 3 4 5 6; do
12319 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12320 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12321 # Solaris 8's {/usr,}/bin/sh.
12322 touch sub/conftst$i.h
12323 done
12324 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12325
12326 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12327 # mode. It turns out that the SunPro C++ compiler does not properly
12328 # handle `-M -o', and we need to detect this. Also, some Intel
12329 # versions had trouble with output in subdirs
12330 am__obj=sub/conftest.${OBJEXT-o}
12331 am__minus_obj="-o $am__obj"
12332 case $depmode in
12333 gcc)
12334 # This depmode causes a compiler race in universal mode.
12335 test "$am__universal" = false || continue
12336 ;;
12337 nosideeffect)
12338 # after this tag, mechanisms are not by side-effect, so they'll
12339 # only be used when explicitly requested
12340 if test "x$enable_dependency_tracking" = xyes; then
12341 continue
12342 else
12343 break
12344 fi
12345 ;;
12346 msvisualcpp | msvcmsys)
12347 # This compiler won't grok `-c -o', but also, the minuso test has
12348 # not run yet. These depmodes are late enough in the game, and
12349 # so weak that their functioning should not be impacted.
12350 am__obj=conftest.${OBJEXT-o}
12351 am__minus_obj=
12352 ;;
12353 none) break ;;
12354 esac
12355 if depmode=$depmode \
12356 source=sub/conftest.c object=$am__obj \
12357 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12358 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12359 >/dev/null 2>conftest.err &&
12360 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12361 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12362 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12363 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12364 # icc doesn't choke on unknown options, it will just issue warnings
12365 # or remarks (even with -Werror). So we grep stderr for any message
12366 # that says an option was ignored or not supported.
12367 # When given -MP, icc 7.0 and 7.1 complain thusly:
12368 # icc: Command line warning: ignoring option '-M'; no argument required
12369 # The diagnosis changed in icc 8.0:
12370 # icc: Command line remark: option '-MP' not supported
12371 if (grep 'ignoring option' conftest.err ||
12372 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12373 am_cv_CC_dependencies_compiler_type=$depmode
12374 break
12375 fi
12376 fi
12377 done
12378
12379 cd ..
12380 rm -rf conftest.dir
12381 else
12382 am_cv_CC_dependencies_compiler_type=none
12383 fi
12384
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12387 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12388 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12389
12390 if
12391 test "x$enable_dependency_tracking" != xno \
12392 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12393 am__fastdepCC_TRUE=
12394 am__fastdepCC_FALSE='#'
12395 else
12396 am__fastdepCC_TRUE='#'
12397 am__fastdepCC_FALSE=
12398 fi
12399
12400
12401
12402 # Checks for pkg-config packages
12403
12404 pkg_failed=no
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SM" >&5
12406 $as_echo_n "checking for SM... " >&6; }
12407
12408 if test -n "$SM_CFLAGS"; then
12409 pkg_cv_SM_CFLAGS="$SM_CFLAGS"
12410 elif test -n "$PKG_CONFIG"; then
12411 if test -n "$PKG_CONFIG" && \
12412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto\""; } >&5
12413 ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto") 2>&5
12414 ac_status=$?
12415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12416 test $ac_status = 0; }; then
12417 pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "ice >= 1.0.5 xproto" 2>/dev/null`
12418 else
12419 pkg_failed=yes
12420 fi
12421 else
12422 pkg_failed=untried
12423 fi
12424 if test -n "$SM_LIBS"; then
12425 pkg_cv_SM_LIBS="$SM_LIBS"
12426 elif test -n "$PKG_CONFIG"; then
12427 if test -n "$PKG_CONFIG" && \
12428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto\""; } >&5
12429 ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto") 2>&5
12430 ac_status=$?
12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12432 test $ac_status = 0; }; then
12433 pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "ice >= 1.0.5 xproto" 2>/dev/null`
12434 else
12435 pkg_failed=yes
12436 fi
12437 else
12438 pkg_failed=untried
12439 fi
12440
12441
12442
12443 if test $pkg_failed = yes; then
12444
12445 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12446 _pkg_short_errors_supported=yes
12447 else
12448 _pkg_short_errors_supported=no
12449 fi
12450 if test $_pkg_short_errors_supported = yes; then
12451 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ice >= 1.0.5 xproto" 2>&1`
12452 else
12453 SM_PKG_ERRORS=`$PKG_CONFIG --print-errors "ice >= 1.0.5 xproto" 2>&1`
12454 fi
12455 # Put the nasty error message in config.log where it belongs
12456 echo "$SM_PKG_ERRORS" >&5
12457
12458 as_fn_error $? "Package requirements (ice >= 1.0.5 xproto) were not met:
12459
12460 $SM_PKG_ERRORS
12461
12462 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12463 installed software in a non-standard prefix.
12464
12465 Alternatively, you may set the environment variables SM_CFLAGS
12466 and SM_LIBS to avoid the need to call pkg-config.
12467 See the pkg-config man page for more details.
12468 " "$LINENO" 5
12469 elif test $pkg_failed = untried; then
12470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12472 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12473 is in your PATH or set the PKG_CONFIG environment variable to the full
12474 path to pkg-config.
12475
12476 Alternatively, you may set the environment variables SM_CFLAGS
12477 and SM_LIBS to avoid the need to call pkg-config.
12478 See the pkg-config man page for more details.
12479
12480 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12481 See \`config.log' for more details" "$LINENO" 5; }
12482 else
12483 SM_CFLAGS=$pkg_cv_SM_CFLAGS
12484 SM_LIBS=$pkg_cv_SM_LIBS
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486 $as_echo "yes" >&6; }
12487 :
12488 fi
12489
12490
12491
12492
12493 pkg_failed=no
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTRANS" >&5
12495 $as_echo_n "checking for XTRANS... " >&6; }
12496
12497 if test -n "$XTRANS_CFLAGS"; then
12498 pkg_cv_XTRANS_CFLAGS="$XTRANS_CFLAGS"
12499 elif test -n "$PKG_CONFIG"; then
12500 if test -n "$PKG_CONFIG" && \
12501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtrans\""; } >&5
12502 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
12503 ac_status=$?
12504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12505 test $ac_status = 0; }; then
12506 pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null`
12507 else
12508 pkg_failed=yes
12509 fi
12510 else
12511 pkg_failed=untried
12512 fi
12513 if test -n "$XTRANS_LIBS"; then
12514 pkg_cv_XTRANS_LIBS="$XTRANS_LIBS"
12515 elif test -n "$PKG_CONFIG"; then
12516 if test -n "$PKG_CONFIG" && \
12517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtrans\""; } >&5
12518 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
12519 ac_status=$?
12520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12521 test $ac_status = 0; }; then
12522 pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null`
12523 else
12524 pkg_failed=yes
12525 fi
12526 else
12527 pkg_failed=untried
12528 fi
12529
12530
12531
12532 if test $pkg_failed = yes; then
12533
12534 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12535 _pkg_short_errors_supported=yes
12536 else
12537 _pkg_short_errors_supported=no
12538 fi
12539 if test $_pkg_short_errors_supported = yes; then
12540 XTRANS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtrans" 2>&1`
12541 else
12542 XTRANS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtrans" 2>&1`
12543 fi
12544 # Put the nasty error message in config.log where it belongs
12545 echo "$XTRANS_PKG_ERRORS" >&5
12546
12547 as_fn_error $? "Package requirements (xtrans) were not met:
12548
12549 $XTRANS_PKG_ERRORS
12550
12551 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12552 installed software in a non-standard prefix.
12553
12554 Alternatively, you may set the environment variables XTRANS_CFLAGS
12555 and XTRANS_LIBS to avoid the need to call pkg-config.
12556 See the pkg-config man page for more details.
12557 " "$LINENO" 5
12558 elif test $pkg_failed = untried; then
12559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12561 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12562 is in your PATH or set the PKG_CONFIG environment variable to the full
12563 path to pkg-config.
12564
12565 Alternatively, you may set the environment variables XTRANS_CFLAGS
12566 and XTRANS_LIBS to avoid the need to call pkg-config.
12567 See the pkg-config man page for more details.
12568
12569 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12570 See \`config.log' for more details" "$LINENO" 5; }
12571 else
12572 XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS
12573 XTRANS_LIBS=$pkg_cv_XTRANS_LIBS
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 $as_echo "yes" >&6; }
12576 :
12577 fi
12578
12579
12580
12581 # Checks for libraries.
12582
12583 # Checks for header files.
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12585 $as_echo_n "checking for ANSI C header files... " >&6; }
12586 if ${ac_cv_header_stdc+:} false; then :
12587 $as_echo_n "(cached) " >&6
12588 else
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12591 #include <stdlib.h>
12592 #include <stdarg.h>
12593 #include <string.h>
12594 #include <float.h>
12595
12596 int
12597 main ()
12598 {
12599
12600 ;
12601 return 0;
12602 }
12603 _ACEOF
12604 if ac_fn_c_try_compile "$LINENO"; then :
12605 ac_cv_header_stdc=yes
12606 else
12607 ac_cv_header_stdc=no
12608 fi
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610
12611 if test $ac_cv_header_stdc = yes; then
12612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12615 #include <string.h>
12616
12617 _ACEOF
12618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12619 $EGREP "memchr" >/dev/null 2>&1; then :
12620
12621 else
12622 ac_cv_header_stdc=no
12623 fi
12624 rm -f conftest*
12625
12626 fi
12627
12628 if test $ac_cv_header_stdc = yes; then
12629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12632 #include <stdlib.h>
12633
12634 _ACEOF
12635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12636 $EGREP "free" >/dev/null 2>&1; then :
12637
12638 else
12639 ac_cv_header_stdc=no
12640 fi
12641 rm -f conftest*
12642
12643 fi
12644
12645 if test $ac_cv_header_stdc = yes; then
12646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12647 if test "$cross_compiling" = yes; then :
12648 :
12649 else
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652 #include <ctype.h>
12653 #include <stdlib.h>
12654 #if ((' ' & 0x0FF) == 0x020)
12655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12657 #else
12658 # define ISLOWER(c) \
12659 (('a' <= (c) && (c) <= 'i') \
12660 || ('j' <= (c) && (c) <= 'r') \
12661 || ('s' <= (c) && (c) <= 'z'))
12662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12663 #endif
12664
12665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12666 int
12667 main ()
12668 {
12669 int i;
12670 for (i = 0; i < 256; i++)
12671 if (XOR (islower (i), ISLOWER (i))
12672 || toupper (i) != TOUPPER (i))
12673 return 2;
12674 return 0;
12675 }
12676 _ACEOF
12677 if ac_fn_c_try_run "$LINENO"; then :
12678
12679 else
12680 ac_cv_header_stdc=no
12681 fi
12682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12683 conftest.$ac_objext conftest.beam conftest.$ac_ext
12684 fi
12685
12686 fi
12687 fi
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12689 $as_echo "$ac_cv_header_stdc" >&6; }
12690 if test $ac_cv_header_stdc = yes; then
12691
12692 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12693
12694 fi
12695
12696
12697 # Needed to check for TCP & IPv6 support and set flags appropriately
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12699 $as_echo_n "checking return type of signal handlers... " >&6; }
12700 if ${ac_cv_type_signal+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705 #include <sys/types.h>
12706 #include <signal.h>
12707
12708 int
12709 main ()
12710 {
12711 return *(signal (0, 0)) (0) == 1;
12712 ;
12713 return 0;
12714 }
12715 _ACEOF
12716 if ac_fn_c_try_compile "$LINENO"; then :
12717 ac_cv_type_signal=int
12718 else
12719 ac_cv_type_signal=void
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12722 fi
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12724 $as_echo "$ac_cv_type_signal" >&6; }
12725
12726 cat >>confdefs.h <<_ACEOF
12727 #define RETSIGTYPE $ac_cv_type_signal
12728 _ACEOF
12729
12730
12731
12732
12733
12734 case $host_os in
12735 mingw*) unixdef="no" ;;
12736 *) unixdef="yes" ;;
12737 esac
12738 # Check whether --enable-unix-transport was given.
12739 if test "${enable_unix_transport+set}" = set; then :
12740 enableval=$enable_unix_transport; UNIXCONN=$enableval
12741 else
12742 UNIXCONN=$unixdef
12743 fi
12744
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
12746 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
12747 if test "$UNIXCONN" = "yes"; then
12748
12749 $as_echo "#define UNIXCONN 1" >>confdefs.h
12750
12751 fi
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
12753 $as_echo "$UNIXCONN" >&6; }
12754 # Check whether --enable-tcp-transport was given.
12755 if test "${enable_tcp_transport+set}" = set; then :
12756 enableval=$enable_tcp_transport; TCPCONN=$enableval
12757 else
12758 TCPCONN=yes
12759 fi
12760
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
12762 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
12764 $as_echo "$TCPCONN" >&6; }
12765 if test "$TCPCONN" = "yes"; then
12766
12767 $as_echo "#define TCPCONN 1" >>confdefs.h
12768
12769
12770 # SVR4 hides these in libraries other than libc
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12772 $as_echo_n "checking for library containing socket... " >&6; }
12773 if ${ac_cv_search_socket+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 ac_func_search_save_LIBS=$LIBS
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12779
12780 /* Override any GCC internal prototype to avoid an error.
12781 Use char because int might match the return type of a GCC
12782 builtin and then its argument prototype would still apply. */
12783 #ifdef __cplusplus
12784 extern "C"
12785 #endif
12786 char socket ();
12787 int
12788 main ()
12789 {
12790 return socket ();
12791 ;
12792 return 0;
12793 }
12794 _ACEOF
12795 for ac_lib in '' socket; do
12796 if test -z "$ac_lib"; then
12797 ac_res="none required"
12798 else
12799 ac_res=-l$ac_lib
12800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12801 fi
12802 if ac_fn_c_try_link "$LINENO"; then :
12803 ac_cv_search_socket=$ac_res
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext \
12806 conftest$ac_exeext
12807 if ${ac_cv_search_socket+:} false; then :
12808 break
12809 fi
12810 done
12811 if ${ac_cv_search_socket+:} false; then :
12812
12813 else
12814 ac_cv_search_socket=no
12815 fi
12816 rm conftest.$ac_ext
12817 LIBS=$ac_func_search_save_LIBS
12818 fi
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12820 $as_echo "$ac_cv_search_socket" >&6; }
12821 ac_res=$ac_cv_search_socket
12822 if test "$ac_res" != no; then :
12823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12824
12825 fi
12826
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12828 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12829 if ${ac_cv_search_gethostbyname+:} false; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 ac_func_search_save_LIBS=$LIBS
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12835
12836 /* Override any GCC internal prototype to avoid an error.
12837 Use char because int might match the return type of a GCC
12838 builtin and then its argument prototype would still apply. */
12839 #ifdef __cplusplus
12840 extern "C"
12841 #endif
12842 char gethostbyname ();
12843 int
12844 main ()
12845 {
12846 return gethostbyname ();
12847 ;
12848 return 0;
12849 }
12850 _ACEOF
12851 for ac_lib in '' nsl; do
12852 if test -z "$ac_lib"; then
12853 ac_res="none required"
12854 else
12855 ac_res=-l$ac_lib
12856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12857 fi
12858 if ac_fn_c_try_link "$LINENO"; then :
12859 ac_cv_search_gethostbyname=$ac_res
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext \
12862 conftest$ac_exeext
12863 if ${ac_cv_search_gethostbyname+:} false; then :
12864 break
12865 fi
12866 done
12867 if ${ac_cv_search_gethostbyname+:} false; then :
12868
12869 else
12870 ac_cv_search_gethostbyname=no
12871 fi
12872 rm conftest.$ac_ext
12873 LIBS=$ac_func_search_save_LIBS
12874 fi
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12876 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12877 ac_res=$ac_cv_search_gethostbyname
12878 if test "$ac_res" != no; then :
12879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12880
12881 fi
12882
12883 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
12885 $as_echo_n "checking for main in -lws2_32... " >&6; }
12886 if ${ac_cv_lib_ws2_32_main+:} false; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889 ac_check_lib_save_LIBS=$LIBS
12890 LIBS="-lws2_32 $LIBS"
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12893
12894
12895 int
12896 main ()
12897 {
12898 return main ();
12899 ;
12900 return 0;
12901 }
12902 _ACEOF
12903 if ac_fn_c_try_link "$LINENO"; then :
12904 ac_cv_lib_ws2_32_main=yes
12905 else
12906 ac_cv_lib_ws2_32_main=no
12907 fi
12908 rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 LIBS=$ac_check_lib_save_LIBS
12911 fi
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
12913 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
12914 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
12915 cat >>confdefs.h <<_ACEOF
12916 #define HAVE_LIBWS2_32 1
12917 _ACEOF
12918
12919 LIBS="-lws2_32 $LIBS"
12920
12921 fi
12922 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
12923
12924 fi
12925
12926 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
12927 # Check whether --enable-ipv6 was given.
12928 if test "${enable_ipv6+set}" = set; then :
12929 enableval=$enable_ipv6; IPV6CONN=$enableval
12930 else
12931 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12932 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12933 IPV6CONN=yes
12934 else
12935 IPV6CONN=no
12936 fi
12937
12938 fi
12939
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
12941 $as_echo_n "checking if IPv6 support should be built... " >&6; }
12942 if test "$IPV6CONN" = "yes"; then
12943
12944 $as_echo "#define IPv6 1" >>confdefs.h
12945
12946 fi
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
12948 $as_echo "$IPV6CONN" >&6; }
12949
12950 # 4.3BSD-Reno added a new member to struct sockaddr_in
12951 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
12952 #include <sys/types.h>
12953 #include <sys/socket.h>
12954 #include <netinet/in.h>
12955
12956 "
12957 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
12958
12959 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
12960
12961 fi
12962
12963
12964 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
12965 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
12966 $ac_includes_default
12967 #include <sys/socket.h>
12968 "
12969 if test "x$ac_cv_type_socklen_t" = xyes; then :
12970
12971 cat >>confdefs.h <<_ACEOF
12972 #define HAVE_SOCKLEN_T 1
12973 _ACEOF
12974
12975
12976 fi
12977
12978
12979
12980 fi
12981 case $host_os in
12982 solaris*|sco*|sysv4*) localdef="yes" ;;
12983 *) localdef="no" ;;
12984 esac
12985 # Check whether --enable-local-transport was given.
12986 if test "${enable_local_transport+set}" = set; then :
12987 enableval=$enable_local_transport; LOCALCONN=$enableval
12988 else
12989 LOCALCONN=$localdef
12990 fi
12991
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
12993 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
12995 $as_echo "$LOCALCONN" >&6; }
12996 if test "$LOCALCONN" = "yes"; then
12997
12998 $as_echo "#define LOCALCONN 1" >>confdefs.h
12999
13000 fi
13001
13002
13003
13004
13005 # Check whether --with-libuuid was given.
13006 if test "${with_libuuid+set}" = set; then :
13007 withval=$with_libuuid;
13008 fi
13009
13010
13011 for ac_func in uuid_create
13012 do :
13013 ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create"
13014 if test "x$ac_cv_func_uuid_create" = xyes; then :
13015 cat >>confdefs.h <<_ACEOF
13016 #define HAVE_UUID_CREATE 1
13017 _ACEOF
13018
13019 else
13020
13021 if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then
13022
13023 pkg_failed=no
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5
13025 $as_echo_n "checking for LIBUUID... " >&6; }
13026
13027 if test -n "$LIBUUID_CFLAGS"; then
13028 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
13029 elif test -n "$PKG_CONFIG"; then
13030 if test -n "$PKG_CONFIG" && \
13031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
13032 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
13033 ac_status=$?
13034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13035 test $ac_status = 0; }; then
13036 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
13037 else
13038 pkg_failed=yes
13039 fi
13040 else
13041 pkg_failed=untried
13042 fi
13043 if test -n "$LIBUUID_LIBS"; then
13044 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
13045 elif test -n "$PKG_CONFIG"; then
13046 if test -n "$PKG_CONFIG" && \
13047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
13048 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
13049 ac_status=$?
13050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13051 test $ac_status = 0; }; then
13052 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
13053 else
13054 pkg_failed=yes
13055 fi
13056 else
13057 pkg_failed=untried
13058 fi
13059
13060
13061
13062 if test $pkg_failed = yes; then
13063
13064 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13065 _pkg_short_errors_supported=yes
13066 else
13067 _pkg_short_errors_supported=no
13068 fi
13069 if test $_pkg_short_errors_supported = yes; then
13070 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "uuid" 2>&1`
13071 else
13072 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "uuid" 2>&1`
13073 fi
13074 # Put the nasty error message in config.log where it belongs
13075 echo "$LIBUUID_PKG_ERRORS" >&5
13076
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13079 HAVE_LIBUUID=no
13080 elif test $pkg_failed = untried; then
13081 HAVE_LIBUUID=no
13082 else
13083 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
13084 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13086 $as_echo "yes" >&6; }
13087 HAVE_LIBUUID=yes
13088 fi
13089 fi
13090 if test x"$with_libuuid" = xyes && test x"$HAVE_LIBUUID" = xno; then
13091 as_fn_error $? "requested libuuid support but uuid.pc not found" "$LINENO" 5
13092 fi
13093
13094 fi
13095 done
13096
13097
13098 if test x"$HAVE_LIBUUID" = xyes; then
13099 WITH_LIBUUID_TRUE=
13100 WITH_LIBUUID_FALSE='#'
13101 else
13102 WITH_LIBUUID_TRUE='#'
13103 WITH_LIBUUID_FALSE=
13104 fi
13105
13106
13107 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile sm.pc"
13108
13109 cat >confcache <<\_ACEOF
13110 # This file is a shell script that caches the results of configure
13111 # tests run on this system so they can be shared between configure
13112 # scripts and configure runs, see configure's option --config-cache.
13113 # It is not useful on other systems. If it contains results you don't
13114 # want to keep, you may remove or edit it.
13115 #
13116 # config.status only pays attention to the cache file if you give it
13117 # the --recheck option to rerun configure.
13118 #
13119 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13120 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13121 # following values.
13122
13123 _ACEOF
13124
13125 # The following way of writing the cache mishandles newlines in values,
13126 # but we know of no workaround that is simple, portable, and efficient.
13127 # So, we kill variables containing newlines.
13128 # Ultrix sh set writes to stderr and can't be redirected directly,
13129 # and sets the high bit in the cache file unless we assign to the vars.
13130 (
13131 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13132 eval ac_val=\$$ac_var
13133 case $ac_val in #(
13134 *${as_nl}*)
13135 case $ac_var in #(
13136 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13137 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13138 esac
13139 case $ac_var in #(
13140 _ | IFS | as_nl) ;; #(
13141 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13142 *) { eval $ac_var=; unset $ac_var;} ;;
13143 esac ;;
13144 esac
13145 done
13146
13147 (set) 2>&1 |
13148 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13149 *${as_nl}ac_space=\ *)
13150 # `set' does not quote correctly, so add quotes: double-quote
13151 # substitution turns \\\\ into \\, and sed turns \\ into \.
13152 sed -n \
13153 "s/'/'\\\\''/g;
13154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13155 ;; #(
13156 *)
13157 # `set' quotes correctly as required by POSIX, so do not add quotes.
13158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13159 ;;
13160 esac |
13161 sort
13162 ) |
13163 sed '
13164 /^ac_cv_env_/b end
13165 t clear
13166 :clear
13167 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13168 t end
13169 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13170 :end' >>confcache
13171 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13172 if test -w "$cache_file"; then
13173 if test "x$cache_file" != "x/dev/null"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13175 $as_echo "$as_me: updating cache $cache_file" >&6;}
13176 if test ! -f "$cache_file" || test -h "$cache_file"; then
13177 cat confcache >"$cache_file"
13178 else
13179 case $cache_file in #(
13180 */* | ?:*)
13181 mv -f confcache "$cache_file"$$ &&
13182 mv -f "$cache_file"$$ "$cache_file" ;; #(
13183 *)
13184 mv -f confcache "$cache_file" ;;
13185 esac
13186 fi
13187 fi
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13190 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13191 fi
13192 fi
13193 rm -f confcache
13194
13195 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13196 # Let make expand exec_prefix.
13197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13198
13199 DEFS=-DHAVE_CONFIG_H
13200
13201 ac_libobjs=
13202 ac_ltlibobjs=
13203 U=
13204 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13205 # 1. Remove the extension, and $U if already installed.
13206 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13207 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13208 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13209 # will be set to the directory where LIBOBJS objects are built.
13210 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13211 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13212 done
13213 LIBOBJS=$ac_libobjs
13214
13215 LTLIBOBJS=$ac_ltlibobjs
13216
13217
13218 if test -n "$EXEEXT"; then
13219 am__EXEEXT_TRUE=
13220 am__EXEEXT_FALSE='#'
13221 else
13222 am__EXEEXT_TRUE='#'
13223 am__EXEEXT_FALSE=
13224 fi
13225
13226 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13227 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13229 fi
13230 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13231 as_fn_error $? "conditional \"AMDEP\" was never defined.
13232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13233 fi
13234 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13235 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13237 fi
13238 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
13239 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
13240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13241 fi
13242 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
13243 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
13244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13245 fi
13246 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
13247 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
13248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13249 fi
13250 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
13251 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
13252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13253 fi
13254 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
13255 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
13256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13257 fi
13258 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13259 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13261 fi
13262 if test -z "${WITH_LIBUUID_TRUE}" && test -z "${WITH_LIBUUID_FALSE}"; then
13263 as_fn_error $? "conditional \"WITH_LIBUUID\" was never defined.
13264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13265 fi
13266
13267 : "${CONFIG_STATUS=./config.status}"
13268 ac_write_fail=0
13269 ac_clean_files_save=$ac_clean_files
13270 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13272 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13273 as_write_fail=0
13274 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13275 #! $SHELL
13276 # Generated by $as_me.
13277 # Run this file to recreate the current configuration.
13278 # Compiler output produced by configure, useful for debugging
13279 # configure, is in config.log if it exists.
13280
13281 debug=false
13282 ac_cs_recheck=false
13283 ac_cs_silent=false
13284
13285 SHELL=\${CONFIG_SHELL-$SHELL}
13286 export SHELL
13287 _ASEOF
13288 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13289 ## -------------------- ##
13290 ## M4sh Initialization. ##
13291 ## -------------------- ##
13292
13293 # Be more Bourne compatible
13294 DUALCASE=1; export DUALCASE # for MKS sh
13295 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13296 emulate sh
13297 NULLCMD=:
13298 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13299 # is contrary to our usage. Disable this feature.
13300 alias -g '${1+"$@"}'='"$@"'
13301 setopt NO_GLOB_SUBST
13302 else
13303 case `(set -o) 2>/dev/null` in #(
13304 *posix*) :
13305 set -o posix ;; #(
13306 *) :
13307 ;;
13308 esac
13309 fi
13310
13311
13312 as_nl='
13313 '
13314 export as_nl
13315 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13316 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13318 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13319 # Prefer a ksh shell builtin over an external printf program on Solaris,
13320 # but without wasting forks for bash or zsh.
13321 if test -z "$BASH_VERSION$ZSH_VERSION" \
13322 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13323 as_echo='print -r --'
13324 as_echo_n='print -rn --'
13325 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13326 as_echo='printf %s\n'
13327 as_echo_n='printf %s'
13328 else
13329 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13330 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13331 as_echo_n='/usr/ucb/echo -n'
13332 else
13333 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13334 as_echo_n_body='eval
13335 arg=$1;
13336 case $arg in #(
13337 *"$as_nl"*)
13338 expr "X$arg" : "X\\(.*\\)$as_nl";
13339 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13340 esac;
13341 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13342 '
13343 export as_echo_n_body
13344 as_echo_n='sh -c $as_echo_n_body as_echo'
13345 fi
13346 export as_echo_body
13347 as_echo='sh -c $as_echo_body as_echo'
13348 fi
13349
13350 # The user is always right.
13351 if test "${PATH_SEPARATOR+set}" != set; then
13352 PATH_SEPARATOR=:
13353 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13354 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13355 PATH_SEPARATOR=';'
13356 }
13357 fi
13358
13359
13360 # IFS
13361 # We need space, tab and new line, in precisely that order. Quoting is
13362 # there to prevent editors from complaining about space-tab.
13363 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13364 # splitting by setting IFS to empty value.)
13365 IFS=" "" $as_nl"
13366
13367 # Find who we are. Look in the path if we contain no directory separator.
13368 as_myself=
13369 case $0 in #((
13370 *[\\/]* ) as_myself=$0 ;;
13371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13373 do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13377 done
13378 IFS=$as_save_IFS
13379
13380 ;;
13381 esac
13382 # We did not find ourselves, most probably we were run as `sh COMMAND'
13383 # in which case we are not to be found in the path.
13384 if test "x$as_myself" = x; then
13385 as_myself=$0
13386 fi
13387 if test ! -f "$as_myself"; then
13388 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13389 exit 1
13390 fi
13391
13392 # Unset variables that we do not need and which cause bugs (e.g. in
13393 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13394 # suppresses any "Segmentation fault" message there. '((' could
13395 # trigger a bug in pdksh 5.2.14.
13396 for as_var in BASH_ENV ENV MAIL MAILPATH
13397 do eval test x\${$as_var+set} = xset \
13398 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13399 done
13400 PS1='$ '
13401 PS2='> '
13402 PS4='+ '
13403
13404 # NLS nuisances.
13405 LC_ALL=C
13406 export LC_ALL
13407 LANGUAGE=C
13408 export LANGUAGE
13409
13410 # CDPATH.
13411 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13412
13413
13414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13415 # ----------------------------------------
13416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13418 # script with STATUS, using 1 if that was 0.
13419 as_fn_error ()
13420 {
13421 as_status=$1; test $as_status -eq 0 && as_status=1
13422 if test "$4"; then
13423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13425 fi
13426 $as_echo "$as_me: error: $2" >&2
13427 as_fn_exit $as_status
13428 } # as_fn_error
13429
13430
13431 # as_fn_set_status STATUS
13432 # -----------------------
13433 # Set $? to STATUS, without forking.
13434 as_fn_set_status ()
13435 {
13436 return $1
13437 } # as_fn_set_status
13438
13439 # as_fn_exit STATUS
13440 # -----------------
13441 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13442 as_fn_exit ()
13443 {
13444 set +e
13445 as_fn_set_status $1
13446 exit $1
13447 } # as_fn_exit
13448
13449 # as_fn_unset VAR
13450 # ---------------
13451 # Portably unset VAR.
13452 as_fn_unset ()
13453 {
13454 { eval $1=; unset $1;}
13455 }
13456 as_unset=as_fn_unset
13457 # as_fn_append VAR VALUE
13458 # ----------------------
13459 # Append the text in VALUE to the end of the definition contained in VAR. Take
13460 # advantage of any shell optimizations that allow amortized linear growth over
13461 # repeated appends, instead of the typical quadratic growth present in naive
13462 # implementations.
13463 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13464 eval 'as_fn_append ()
13465 {
13466 eval $1+=\$2
13467 }'
13468 else
13469 as_fn_append ()
13470 {
13471 eval $1=\$$1\$2
13472 }
13473 fi # as_fn_append
13474
13475 # as_fn_arith ARG...
13476 # ------------------
13477 # Perform arithmetic evaluation on the ARGs, and store the result in the
13478 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13479 # must be portable across $(()) and expr.
13480 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13481 eval 'as_fn_arith ()
13482 {
13483 as_val=$(( $* ))
13484 }'
13485 else
13486 as_fn_arith ()
13487 {
13488 as_val=`expr "$@" || test $? -eq 1`
13489 }
13490 fi # as_fn_arith
13491
13492
13493 if expr a : '\(a\)' >/dev/null 2>&1 &&
13494 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13495 as_expr=expr
13496 else
13497 as_expr=false
13498 fi
13499
13500 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13501 as_basename=basename
13502 else
13503 as_basename=false
13504 fi
13505
13506 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13507 as_dirname=dirname
13508 else
13509 as_dirname=false
13510 fi
13511
13512 as_me=`$as_basename -- "$0" ||
13513 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13514 X"$0" : 'X\(//\)$' \| \
13515 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13516 $as_echo X/"$0" |
13517 sed '/^.*\/\([^/][^/]*\)\/*$/{
13518 s//\1/
13519 q
13520 }
13521 /^X\/\(\/\/\)$/{
13522 s//\1/
13523 q
13524 }
13525 /^X\/\(\/\).*/{
13526 s//\1/
13527 q
13528 }
13529 s/.*/./; q'`
13530
13531 # Avoid depending upon Character Ranges.
13532 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13533 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13534 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13535 as_cr_digits='0123456789'
13536 as_cr_alnum=$as_cr_Letters$as_cr_digits
13537
13538 ECHO_C= ECHO_N= ECHO_T=
13539 case `echo -n x` in #(((((
13540 -n*)
13541 case `echo 'xy\c'` in
13542 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13543 xy) ECHO_C='\c';;
13544 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13545 ECHO_T=' ';;
13546 esac;;
13547 *)
13548 ECHO_N='-n';;
13549 esac
13550
13551 rm -f conf$$ conf$$.exe conf$$.file
13552 if test -d conf$$.dir; then
13553 rm -f conf$$.dir/conf$$.file
13554 else
13555 rm -f conf$$.dir
13556 mkdir conf$$.dir 2>/dev/null
13557 fi
13558 if (echo >conf$$.file) 2>/dev/null; then
13559 if ln -s conf$$.file conf$$ 2>/dev/null; then
13560 as_ln_s='ln -s'
13561 # ... but there are two gotchas:
13562 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13563 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13564 # In both cases, we have to default to `cp -p'.
13565 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13566 as_ln_s='cp -p'
13567 elif ln conf$$.file conf$$ 2>/dev/null; then
13568 as_ln_s=ln
13569 else
13570 as_ln_s='cp -p'
13571 fi
13572 else
13573 as_ln_s='cp -p'
13574 fi
13575 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13576 rmdir conf$$.dir 2>/dev/null
13577
13578
13579 # as_fn_mkdir_p
13580 # -------------
13581 # Create "$as_dir" as a directory, including parents if necessary.
13582 as_fn_mkdir_p ()
13583 {
13584
13585 case $as_dir in #(
13586 -*) as_dir=./$as_dir;;
13587 esac
13588 test -d "$as_dir" || eval $as_mkdir_p || {
13589 as_dirs=
13590 while :; do
13591 case $as_dir in #(
13592 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13593 *) as_qdir=$as_dir;;
13594 esac
13595 as_dirs="'$as_qdir' $as_dirs"
13596 as_dir=`$as_dirname -- "$as_dir" ||
13597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13598 X"$as_dir" : 'X\(//\)[^/]' \| \
13599 X"$as_dir" : 'X\(//\)$' \| \
13600 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13601 $as_echo X"$as_dir" |
13602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13603 s//\1/
13604 q
13605 }
13606 /^X\(\/\/\)[^/].*/{
13607 s//\1/
13608 q
13609 }
13610 /^X\(\/\/\)$/{
13611 s//\1/
13612 q
13613 }
13614 /^X\(\/\).*/{
13615 s//\1/
13616 q
13617 }
13618 s/.*/./; q'`
13619 test -d "$as_dir" && break
13620 done
13621 test -z "$as_dirs" || eval "mkdir $as_dirs"
13622 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13623
13624
13625 } # as_fn_mkdir_p
13626 if mkdir -p . 2>/dev/null; then
13627 as_mkdir_p='mkdir -p "$as_dir"'
13628 else
13629 test -d ./-p && rmdir ./-p
13630 as_mkdir_p=false
13631 fi
13632
13633 if test -x / >/dev/null 2>&1; then
13634 as_test_x='test -x'
13635 else
13636 if ls -dL / >/dev/null 2>&1; then
13637 as_ls_L_option=L
13638 else
13639 as_ls_L_option=
13640 fi
13641 as_test_x='
13642 eval sh -c '\''
13643 if test -d "$1"; then
13644 test -d "$1/.";
13645 else
13646 case $1 in #(
13647 -*)set "./$1";;
13648 esac;
13649 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13650 ???[sx]*):;;*)false;;esac;fi
13651 '\'' sh
13652 '
13653 fi
13654 as_executable_p=$as_test_x
13655
13656 # Sed expression to map a string onto a valid CPP name.
13657 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13658
13659 # Sed expression to map a string onto a valid variable name.
13660 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13661
13662
13663 exec 6>&1
13664 ## ----------------------------------- ##
13665 ## Main body of $CONFIG_STATUS script. ##
13666 ## ----------------------------------- ##
13667 _ASEOF
13668 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13669
13670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13671 # Save the log message, to keep $0 and so on meaningful, and to
13672 # report actual input values of CONFIG_FILES etc. instead of their
13673 # values after options handling.
13674 ac_log="
13675 This file was extended by libSM $as_me 1.2.0, which was
13676 generated by GNU Autoconf 2.68. Invocation command line was
13677
13678 CONFIG_FILES = $CONFIG_FILES
13679 CONFIG_HEADERS = $CONFIG_HEADERS
13680 CONFIG_LINKS = $CONFIG_LINKS
13681 CONFIG_COMMANDS = $CONFIG_COMMANDS
13682 $ $0 $@
13683
13684 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13685 "
13686
13687 _ACEOF
13688
13689 case $ac_config_files in *"
13690 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13691 esac
13692
13693 case $ac_config_headers in *"
13694 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13695 esac
13696
13697
13698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13699 # Files that config.status was made for.
13700 config_files="$ac_config_files"
13701 config_headers="$ac_config_headers"
13702 config_commands="$ac_config_commands"
13703
13704 _ACEOF
13705
13706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13707 ac_cs_usage="\
13708 \`$as_me' instantiates files and other configuration actions
13709 from templates according to the current configuration. Unless the files
13710 and actions are specified as TAGs, all are instantiated by default.
13711
13712 Usage: $0 [OPTION]... [TAG]...
13713
13714 -h, --help print this help, then exit
13715 -V, --version print version number and configuration settings, then exit
13716 --config print configuration, then exit
13717 -q, --quiet, --silent
13718 do not print progress messages
13719 -d, --debug don't remove temporary files
13720 --recheck update $as_me by reconfiguring in the same conditions
13721 --file=FILE[:TEMPLATE]
13722 instantiate the configuration file FILE
13723 --header=FILE[:TEMPLATE]
13724 instantiate the configuration header FILE
13725
13726 Configuration files:
13727 $config_files
13728
13729 Configuration headers:
13730 $config_headers
13731
13732 Configuration commands:
13733 $config_commands
13734
13735 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13736
13737 _ACEOF
13738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13739 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13740 ac_cs_version="\\
13741 libSM config.status 1.2.0
13742 configured by $0, generated by GNU Autoconf 2.68,
13743 with options \\"\$ac_cs_config\\"
13744
13745 Copyright (C) 2010 Free Software Foundation, Inc.
13746 This config.status script is free software; the Free Software Foundation
13747 gives unlimited permission to copy, distribute and modify it."
13748
13749 ac_pwd='$ac_pwd'
13750 srcdir='$srcdir'
13751 INSTALL='$INSTALL'
13752 MKDIR_P='$MKDIR_P'
13753 AWK='$AWK'
13754 test -n "\$AWK" || AWK=awk
13755 _ACEOF
13756
13757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13758 # The default lists apply if the user does not specify any file.
13759 ac_need_defaults=:
13760 while test $# != 0
13761 do
13762 case $1 in
13763 --*=?*)
13764 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13765 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13766 ac_shift=:
13767 ;;
13768 --*=)
13769 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13770 ac_optarg=
13771 ac_shift=:
13772 ;;
13773 *)
13774 ac_option=$1
13775 ac_optarg=$2
13776 ac_shift=shift
13777 ;;
13778 esac
13779
13780 case $ac_option in
13781 # Handling of the options.
13782 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13783 ac_cs_recheck=: ;;
13784 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13785 $as_echo "$ac_cs_version"; exit ;;
13786 --config | --confi | --conf | --con | --co | --c )
13787 $as_echo "$ac_cs_config"; exit ;;
13788 --debug | --debu | --deb | --de | --d | -d )
13789 debug=: ;;
13790 --file | --fil | --fi | --f )
13791 $ac_shift
13792 case $ac_optarg in
13793 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13794 '') as_fn_error $? "missing file argument" ;;
13795 esac
13796 as_fn_append CONFIG_FILES " '$ac_optarg'"
13797 ac_need_defaults=false;;
13798 --header | --heade | --head | --hea )
13799 $ac_shift
13800 case $ac_optarg in
13801 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13802 esac
13803 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13804 ac_need_defaults=false;;
13805 --he | --h)
13806 # Conflict between --help and --header
13807 as_fn_error $? "ambiguous option: \`$1'
13808 Try \`$0 --help' for more information.";;
13809 --help | --hel | -h )
13810 $as_echo "$ac_cs_usage"; exit ;;
13811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13812 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13813 ac_cs_silent=: ;;
13814
13815 # This is an error.
13816 -*) as_fn_error $? "unrecognized option: \`$1'
13817 Try \`$0 --help' for more information." ;;
13818
13819 *) as_fn_append ac_config_targets " $1"
13820 ac_need_defaults=false ;;
13821
13822 esac
13823 shift
13824 done
13825
13826 ac_configure_extra_args=
13827
13828 if $ac_cs_silent; then
13829 exec 6>/dev/null
13830 ac_configure_extra_args="$ac_configure_extra_args --silent"
13831 fi
13832
13833 _ACEOF
13834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13835 if \$ac_cs_recheck; then
13836 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13837 shift
13838 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13839 CONFIG_SHELL='$SHELL'
13840 export CONFIG_SHELL
13841 exec "\$@"
13842 fi
13843
13844 _ACEOF
13845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13846 exec 5>>config.log
13847 {
13848 echo
13849 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13850 ## Running $as_me. ##
13851 _ASBOX
13852 $as_echo "$ac_log"
13853 } >&5
13854
13855 _ACEOF
13856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13857 #
13858 # INIT-COMMANDS
13859 #
13860 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13861
13862
13863 # The HP-UX ksh and POSIX shell print the target directory to stdout
13864 # if CDPATH is set.
13865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13866
13867 sed_quote_subst='$sed_quote_subst'
13868 double_quote_subst='$double_quote_subst'
13869 delay_variable_subst='$delay_variable_subst'
13870 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13871 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13872 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13873 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13874 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13875 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13876 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13877 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13878 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13879 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13880 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13881 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13882 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13883 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13884 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13885 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13886 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13887 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13888 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13889 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13890 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13891 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13892 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13893 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13894 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13895 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13896 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13897 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13898 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13899 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13900 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13901 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13902 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13903 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13904 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13905 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13906 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13907 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13908 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13909 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13910 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13911 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13912 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13913 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13914 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13915 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13916 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13917 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13918 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13919 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13920 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13921 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13922 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13923 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13924 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13925 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13926 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13927 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13928 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13929 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13930 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13931 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13932 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13933 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13934 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13935 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13936 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13937 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13938 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13939 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13940 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13941 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13942 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13943 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13944 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13945 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13946 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13947 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13948 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13949 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13950 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13951 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13952 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13953 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13954 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13955 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13956 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13957 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13958 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13959 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13960 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13961 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13962 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13963 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13964 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13965 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13966 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13967 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13968 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13969 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13970 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13971 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13972 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13973 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13974 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13975 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13976 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13977 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13978 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13979 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13980 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13981 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13982 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13983 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13984 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13985 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13986 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13987 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13988 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13989 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13990
13991 LTCC='$LTCC'
13992 LTCFLAGS='$LTCFLAGS'
13993 compiler='$compiler_DEFAULT'
13994
13995 # A function that is used when there is no print builtin or printf.
13996 func_fallback_echo ()
13997 {
13998 eval 'cat <<_LTECHO_EOF
13999 \$1
14000 _LTECHO_EOF'
14001 }
14002
14003 # Quote evaled strings.
14004 for var in SHELL \
14005 ECHO \
14006 SED \
14007 GREP \
14008 EGREP \
14009 FGREP \
14010 LD \
14011 NM \
14012 LN_S \
14013 lt_SP2NL \
14014 lt_NL2SP \
14015 reload_flag \
14016 OBJDUMP \
14017 deplibs_check_method \
14018 file_magic_cmd \
14019 AR \
14020 AR_FLAGS \
14021 STRIP \
14022 RANLIB \
14023 CC \
14024 CFLAGS \
14025 compiler \
14026 lt_cv_sys_global_symbol_pipe \
14027 lt_cv_sys_global_symbol_to_cdecl \
14028 lt_cv_sys_global_symbol_to_c_name_address \
14029 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14030 lt_prog_compiler_no_builtin_flag \
14031 lt_prog_compiler_wl \
14032 lt_prog_compiler_pic \
14033 lt_prog_compiler_static \
14034 lt_cv_prog_compiler_c_o \
14035 need_locks \
14036 DSYMUTIL \
14037 NMEDIT \
14038 LIPO \
14039 OTOOL \
14040 OTOOL64 \
14041 shrext_cmds \
14042 export_dynamic_flag_spec \
14043 whole_archive_flag_spec \
14044 compiler_needs_object \
14045 with_gnu_ld \
14046 allow_undefined_flag \
14047 no_undefined_flag \
14048 hardcode_libdir_flag_spec \
14049 hardcode_libdir_flag_spec_ld \
14050 hardcode_libdir_separator \
14051 fix_srcfile_path \
14052 exclude_expsyms \
14053 include_expsyms \
14054 file_list_spec \
14055 variables_saved_for_relink \
14056 libname_spec \
14057 library_names_spec \
14058 soname_spec \
14059 install_override_mode \
14060 finish_eval \
14061 old_striplib \
14062 striplib; do
14063 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14064 *[\\\\\\\`\\"\\\$]*)
14065 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14066 ;;
14067 *)
14068 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14069 ;;
14070 esac
14071 done
14072
14073 # Double-quote double-evaled strings.
14074 for var in reload_cmds \
14075 old_postinstall_cmds \
14076 old_postuninstall_cmds \
14077 old_archive_cmds \
14078 extract_expsyms_cmds \
14079 old_archive_from_new_cmds \
14080 old_archive_from_expsyms_cmds \
14081 archive_cmds \
14082 archive_expsym_cmds \
14083 module_cmds \
14084 module_expsym_cmds \
14085 export_symbols_cmds \
14086 prelink_cmds \
14087 postinstall_cmds \
14088 postuninstall_cmds \
14089 finish_cmds \
14090 sys_lib_search_path_spec \
14091 sys_lib_dlsearch_path_spec; do
14092 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14093 *[\\\\\\\`\\"\\\$]*)
14094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14095 ;;
14096 *)
14097 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14098 ;;
14099 esac
14100 done
14101
14102 ac_aux_dir='$ac_aux_dir'
14103 xsi_shell='$xsi_shell'
14104 lt_shell_append='$lt_shell_append'
14105
14106 # See if we are running on zsh, and set the options which allow our
14107 # commands through without removal of \ escapes INIT.
14108 if test -n "\${ZSH_VERSION+set}" ; then
14109 setopt NO_GLOB_SUBST
14110 fi
14111
14112
14113 PACKAGE='$PACKAGE'
14114 VERSION='$VERSION'
14115 TIMESTAMP='$TIMESTAMP'
14116 RM='$RM'
14117 ofile='$ofile'
14118
14119
14120
14121
14122 _ACEOF
14123
14124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14125
14126 # Handling of arguments.
14127 for ac_config_target in $ac_config_targets
14128 do
14129 case $ac_config_target in
14130 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14131 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14132 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14133 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14134 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14135 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14136 "sm.pc") CONFIG_FILES="$CONFIG_FILES sm.pc" ;;
14137
14138 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14139 esac
14140 done
14141
14142
14143 # If the user did not use the arguments to specify the items to instantiate,
14144 # then the envvar interface is used. Set only those that are not.
14145 # We use the long form for the default assignment because of an extremely
14146 # bizarre bug on SunOS 4.1.3.
14147 if $ac_need_defaults; then
14148 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14149 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14150 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14151 fi
14152
14153 # Have a temporary directory for convenience. Make it in the build tree
14154 # simply because there is no reason against having it here, and in addition,
14155 # creating and moving files from /tmp can sometimes cause problems.
14156 # Hook for its removal unless debugging.
14157 # Note that there is a small window in which the directory will not be cleaned:
14158 # after its creation but before its name has been assigned to `$tmp'.
14159 $debug ||
14160 {
14161 tmp= ac_tmp=
14162 trap 'exit_status=$?
14163 : "${ac_tmp:=$tmp}"
14164 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14165 ' 0
14166 trap 'as_fn_exit 1' 1 2 13 15
14167 }
14168 # Create a (secure) tmp directory for tmp files.
14169
14170 {
14171 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14172 test -d "$tmp"
14173 } ||
14174 {
14175 tmp=./conf$$-$RANDOM
14176 (umask 077 && mkdir "$tmp")
14177 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14178 ac_tmp=$tmp
14179
14180 # Set up the scripts for CONFIG_FILES section.
14181 # No need to generate them if there are no CONFIG_FILES.
14182 # This happens for instance with `./config.status config.h'.
14183 if test -n "$CONFIG_FILES"; then
14184
14185
14186 ac_cr=`echo X | tr X '\015'`
14187 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14188 # But we know of no other shell where ac_cr would be empty at this
14189 # point, so we can use a bashism as a fallback.
14190 if test "x$ac_cr" = x; then
14191 eval ac_cr=\$\'\\r\'
14192 fi
14193 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14194 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14195 ac_cs_awk_cr='\\r'
14196 else
14197 ac_cs_awk_cr=$ac_cr
14198 fi
14199
14200 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14201 _ACEOF
14202
14203
14204 {
14205 echo "cat >conf$$subs.awk <<_ACEOF" &&
14206 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14207 echo "_ACEOF"
14208 } >conf$$subs.sh ||
14209 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14210 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14211 ac_delim='%!_!# '
14212 for ac_last_try in false false false false false :; do
14213 . ./conf$$subs.sh ||
14214 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14215
14216 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14217 if test $ac_delim_n = $ac_delim_num; then
14218 break
14219 elif $ac_last_try; then
14220 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14221 else
14222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14223 fi
14224 done
14225 rm -f conf$$subs.sh
14226
14227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14228 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14229 _ACEOF
14230 sed -n '
14231 h
14232 s/^/S["/; s/!.*/"]=/
14233 p
14234 g
14235 s/^[^!]*!//
14236 :repl
14237 t repl
14238 s/'"$ac_delim"'$//
14239 t delim
14240 :nl
14241 h
14242 s/\(.\{148\}\)..*/\1/
14243 t more1
14244 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14245 p
14246 n
14247 b repl
14248 :more1
14249 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14250 p
14251 g
14252 s/.\{148\}//
14253 t nl
14254 :delim
14255 h
14256 s/\(.\{148\}\)..*/\1/
14257 t more2
14258 s/["\\]/\\&/g; s/^/"/; s/$/"/
14259 p
14260 b
14261 :more2
14262 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14263 p
14264 g
14265 s/.\{148\}//
14266 t delim
14267 ' <conf$$subs.awk | sed '
14268 /^[^""]/{
14269 N
14270 s/\n//
14271 }
14272 ' >>$CONFIG_STATUS || ac_write_fail=1
14273 rm -f conf$$subs.awk
14274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14275 _ACAWK
14276 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14277 for (key in S) S_is_set[key] = 1
14278 FS = ""
14279
14280 }
14281 {
14282 line = $ 0
14283 nfields = split(line, field, "@")
14284 substed = 0
14285 len = length(field[1])
14286 for (i = 2; i < nfields; i++) {
14287 key = field[i]
14288 keylen = length(key)
14289 if (S_is_set[key]) {
14290 value = S[key]
14291 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14292 len += length(value) + length(field[++i])
14293 substed = 1
14294 } else
14295 len += 1 + keylen
14296 }
14297
14298 print line
14299 }
14300
14301 _ACAWK
14302 _ACEOF
14303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14304 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14305 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14306 else
14307 cat
14308 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14309 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14310 _ACEOF
14311
14312 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14313 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14314 # trailing colons and then remove the whole line if VPATH becomes empty
14315 # (actually we leave an empty line to preserve line numbers).
14316 if test "x$srcdir" = x.; then
14317 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14318 h
14319 s///
14320 s/^/:/
14321 s/[ ]*$/:/
14322 s/:\$(srcdir):/:/g
14323 s/:\${srcdir}:/:/g
14324 s/:@srcdir@:/:/g
14325 s/^:*//
14326 s/:*$//
14327 x
14328 s/\(=[ ]*\).*/\1/
14329 G
14330 s/\n//
14331 s/^[^=]*=[ ]*$//
14332 }'
14333 fi
14334
14335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14336 fi # test -n "$CONFIG_FILES"
14337
14338 # Set up the scripts for CONFIG_HEADERS section.
14339 # No need to generate them if there are no CONFIG_HEADERS.
14340 # This happens for instance with `./config.status Makefile'.
14341 if test -n "$CONFIG_HEADERS"; then
14342 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14343 BEGIN {
14344 _ACEOF
14345
14346 # Transform confdefs.h into an awk script `defines.awk', embedded as
14347 # here-document in config.status, that substitutes the proper values into
14348 # config.h.in to produce config.h.
14349
14350 # Create a delimiter string that does not exist in confdefs.h, to ease
14351 # handling of long lines.
14352 ac_delim='%!_!# '
14353 for ac_last_try in false false :; do
14354 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14355 if test -z "$ac_tt"; then
14356 break
14357 elif $ac_last_try; then
14358 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14359 else
14360 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14361 fi
14362 done
14363
14364 # For the awk script, D is an array of macro values keyed by name,
14365 # likewise P contains macro parameters if any. Preserve backslash
14366 # newline sequences.
14367
14368 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14369 sed -n '
14370 s/.\{148\}/&'"$ac_delim"'/g
14371 t rset
14372 :rset
14373 s/^[ ]*#[ ]*define[ ][ ]*/ /
14374 t def
14375 d
14376 :def
14377 s/\\$//
14378 t bsnl
14379 s/["\\]/\\&/g
14380 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14381 D["\1"]=" \3"/p
14382 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14383 d
14384 :bsnl
14385 s/["\\]/\\&/g
14386 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14387 D["\1"]=" \3\\\\\\n"\\/p
14388 t cont
14389 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14390 t cont
14391 d
14392 :cont
14393 n
14394 s/.\{148\}/&'"$ac_delim"'/g
14395 t clear
14396 :clear
14397 s/\\$//
14398 t bsnlc
14399 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14400 d
14401 :bsnlc
14402 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14403 b cont
14404 ' <confdefs.h | sed '
14405 s/'"$ac_delim"'/"\\\
14406 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14407
14408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14409 for (key in D) D_is_set[key] = 1
14410 FS = ""
14411 }
14412 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14413 line = \$ 0
14414 split(line, arg, " ")
14415 if (arg[1] == "#") {
14416 defundef = arg[2]
14417 mac1 = arg[3]
14418 } else {
14419 defundef = substr(arg[1], 2)
14420 mac1 = arg[2]
14421 }
14422 split(mac1, mac2, "(") #)
14423 macro = mac2[1]
14424 prefix = substr(line, 1, index(line, defundef) - 1)
14425 if (D_is_set[macro]) {
14426 # Preserve the white space surrounding the "#".
14427 print prefix "define", macro P[macro] D[macro]
14428 next
14429 } else {
14430 # Replace #undef with comments. This is necessary, for example,
14431 # in the case of _POSIX_SOURCE, which is predefined and required
14432 # on some systems where configure will not decide to define it.
14433 if (defundef == "undef") {
14434 print "/*", prefix defundef, macro, "*/"
14435 next
14436 }
14437 }
14438 }
14439 { print }
14440 _ACAWK
14441 _ACEOF
14442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14443 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14444 fi # test -n "$CONFIG_HEADERS"
14445
14446
14447 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14448 shift
14449 for ac_tag
14450 do
14451 case $ac_tag in
14452 :[FHLC]) ac_mode=$ac_tag; continue;;
14453 esac
14454 case $ac_mode$ac_tag in
14455 :[FHL]*:*);;
14456 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14457 :[FH]-) ac_tag=-:-;;
14458 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14459 esac
14460 ac_save_IFS=$IFS
14461 IFS=:
14462 set x $ac_tag
14463 IFS=$ac_save_IFS
14464 shift
14465 ac_file=$1
14466 shift
14467
14468 case $ac_mode in
14469 :L) ac_source=$1;;
14470 :[FH])
14471 ac_file_inputs=
14472 for ac_f
14473 do
14474 case $ac_f in
14475 -) ac_f="$ac_tmp/stdin";;
14476 *) # Look for the file first in the build tree, then in the source tree
14477 # (if the path is not absolute). The absolute path cannot be DOS-style,
14478 # because $ac_f cannot contain `:'.
14479 test -f "$ac_f" ||
14480 case $ac_f in
14481 [\\/$]*) false;;
14482 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14483 esac ||
14484 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14485 esac
14486 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14487 as_fn_append ac_file_inputs " '$ac_f'"
14488 done
14489
14490 # Let's still pretend it is `configure' which instantiates (i.e., don't
14491 # use $as_me), people would be surprised to read:
14492 # /* config.h. Generated by config.status. */
14493 configure_input='Generated from '`
14494 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14495 `' by configure.'
14496 if test x"$ac_file" != x-; then
14497 configure_input="$ac_file. $configure_input"
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14499 $as_echo "$as_me: creating $ac_file" >&6;}
14500 fi
14501 # Neutralize special characters interpreted by sed in replacement strings.
14502 case $configure_input in #(
14503 *\&* | *\|* | *\\* )
14504 ac_sed_conf_input=`$as_echo "$configure_input" |
14505 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14506 *) ac_sed_conf_input=$configure_input;;
14507 esac
14508
14509 case $ac_tag in
14510 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14511 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14512 esac
14513 ;;
14514 esac
14515
14516 ac_dir=`$as_dirname -- "$ac_file" ||
14517 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14518 X"$ac_file" : 'X\(//\)[^/]' \| \
14519 X"$ac_file" : 'X\(//\)$' \| \
14520 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14521 $as_echo X"$ac_file" |
14522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14523 s//\1/
14524 q
14525 }
14526 /^X\(\/\/\)[^/].*/{
14527 s//\1/
14528 q
14529 }
14530 /^X\(\/\/\)$/{
14531 s//\1/
14532 q
14533 }
14534 /^X\(\/\).*/{
14535 s//\1/
14536 q
14537 }
14538 s/.*/./; q'`
14539 as_dir="$ac_dir"; as_fn_mkdir_p
14540 ac_builddir=.
14541
14542 case "$ac_dir" in
14543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14544 *)
14545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14546 # A ".." for each directory in $ac_dir_suffix.
14547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14548 case $ac_top_builddir_sub in
14549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14551 esac ;;
14552 esac
14553 ac_abs_top_builddir=$ac_pwd
14554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14555 # for backward compatibility:
14556 ac_top_builddir=$ac_top_build_prefix
14557
14558 case $srcdir in
14559 .) # We are building in place.
14560 ac_srcdir=.
14561 ac_top_srcdir=$ac_top_builddir_sub
14562 ac_abs_top_srcdir=$ac_pwd ;;
14563 [\\/]* | ?:[\\/]* ) # Absolute name.
14564 ac_srcdir=$srcdir$ac_dir_suffix;
14565 ac_top_srcdir=$srcdir
14566 ac_abs_top_srcdir=$srcdir ;;
14567 *) # Relative name.
14568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14569 ac_top_srcdir=$ac_top_build_prefix$srcdir
14570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14571 esac
14572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14573
14574
14575 case $ac_mode in
14576 :F)
14577 #
14578 # CONFIG_FILE
14579 #
14580
14581 case $INSTALL in
14582 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14583 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14584 esac
14585 ac_MKDIR_P=$MKDIR_P
14586 case $MKDIR_P in
14587 [\\/$]* | ?:[\\/]* ) ;;
14588 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14589 esac
14590 _ACEOF
14591
14592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14593 # If the template does not know about datarootdir, expand it.
14594 # FIXME: This hack should be removed a few years after 2.60.
14595 ac_datarootdir_hack=; ac_datarootdir_seen=
14596 ac_sed_dataroot='
14597 /datarootdir/ {
14598 p
14599 q
14600 }
14601 /@datadir@/p
14602 /@docdir@/p
14603 /@infodir@/p
14604 /@localedir@/p
14605 /@mandir@/p'
14606 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14607 *datarootdir*) ac_datarootdir_seen=yes;;
14608 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14610 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14611 _ACEOF
14612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14613 ac_datarootdir_hack='
14614 s&@datadir@&$datadir&g
14615 s&@docdir@&$docdir&g
14616 s&@infodir@&$infodir&g
14617 s&@localedir@&$localedir&g
14618 s&@mandir@&$mandir&g
14619 s&\\\${datarootdir}&$datarootdir&g' ;;
14620 esac
14621 _ACEOF
14622
14623 # Neutralize VPATH when `$srcdir' = `.'.
14624 # Shell code in configure.ac might set extrasub.
14625 # FIXME: do we really want to maintain this feature?
14626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14627 ac_sed_extra="$ac_vpsub
14628 $extrasub
14629 _ACEOF
14630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14631 :t
14632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14633 s|@configure_input@|$ac_sed_conf_input|;t t
14634 s&@top_builddir@&$ac_top_builddir_sub&;t t
14635 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14636 s&@srcdir@&$ac_srcdir&;t t
14637 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14638 s&@top_srcdir@&$ac_top_srcdir&;t t
14639 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14640 s&@builddir@&$ac_builddir&;t t
14641 s&@abs_builddir@&$ac_abs_builddir&;t t
14642 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14643 s&@INSTALL@&$ac_INSTALL&;t t
14644 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14645 $ac_datarootdir_hack
14646 "
14647 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14648 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14649
14650 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14651 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14652 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14653 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14655 which seems to be undefined. Please make sure it is defined" >&5
14656 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14657 which seems to be undefined. Please make sure it is defined" >&2;}
14658
14659 rm -f "$ac_tmp/stdin"
14660 case $ac_file in
14661 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14662 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14663 esac \
14664 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14665 ;;
14666 :H)
14667 #
14668 # CONFIG_HEADER
14669 #
14670 if test x"$ac_file" != x-; then
14671 {
14672 $as_echo "/* $configure_input */" \
14673 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14674 } >"$ac_tmp/config.h" \
14675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14676 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14678 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14679 else
14680 rm -f "$ac_file"
14681 mv "$ac_tmp/config.h" "$ac_file" \
14682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14683 fi
14684 else
14685 $as_echo "/* $configure_input */" \
14686 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14687 || as_fn_error $? "could not create -" "$LINENO" 5
14688 fi
14689 # Compute "$ac_file"'s index in $config_headers.
14690 _am_arg="$ac_file"
14691 _am_stamp_count=1
14692 for _am_header in $config_headers :; do
14693 case $_am_header in
14694 $_am_arg | $_am_arg:* )
14695 break ;;
14696 * )
14697 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14698 esac
14699 done
14700 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14701 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14702 X"$_am_arg" : 'X\(//\)[^/]' \| \
14703 X"$_am_arg" : 'X\(//\)$' \| \
14704 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14705 $as_echo X"$_am_arg" |
14706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14707 s//\1/
14708 q
14709 }
14710 /^X\(\/\/\)[^/].*/{
14711 s//\1/
14712 q
14713 }
14714 /^X\(\/\/\)$/{
14715 s//\1/
14716 q
14717 }
14718 /^X\(\/\).*/{
14719 s//\1/
14720 q
14721 }
14722 s/.*/./; q'`/stamp-h$_am_stamp_count
14723 ;;
14724
14725 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14726 $as_echo "$as_me: executing $ac_file commands" >&6;}
14727 ;;
14728 esac
14729
14730
14731 case $ac_file$ac_mode in
14732 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14733 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14734 # are listed without --file. Let's play safe and only enable the eval
14735 # if we detect the quoting.
14736 case $CONFIG_FILES in
14737 *\'*) eval set x "$CONFIG_FILES" ;;
14738 *) set x $CONFIG_FILES ;;
14739 esac
14740 shift
14741 for mf
14742 do
14743 # Strip MF so we end up with the name of the file.
14744 mf=`echo "$mf" | sed -e 's/:.*$//'`
14745 # Check whether this is an Automake generated Makefile or not.
14746 # We used to match only the files named `Makefile.in', but
14747 # some people rename them; so instead we look at the file content.
14748 # Grep'ing the first line is not enough: some people post-process
14749 # each Makefile.in and add a new line on top of each file to say so.
14750 # Grep'ing the whole file is not good either: AIX grep has a line
14751 # limit of 2048, but all sed's we know have understand at least 4000.
14752 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14753 dirpart=`$as_dirname -- "$mf" ||
14754 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14755 X"$mf" : 'X\(//\)[^/]' \| \
14756 X"$mf" : 'X\(//\)$' \| \
14757 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14758 $as_echo X"$mf" |
14759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14760 s//\1/
14761 q
14762 }
14763 /^X\(\/\/\)[^/].*/{
14764 s//\1/
14765 q
14766 }
14767 /^X\(\/\/\)$/{
14768 s//\1/
14769 q
14770 }
14771 /^X\(\/\).*/{
14772 s//\1/
14773 q
14774 }
14775 s/.*/./; q'`
14776 else
14777 continue
14778 fi
14779 # Extract the definition of DEPDIR, am__include, and am__quote
14780 # from the Makefile without running `make'.
14781 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14782 test -z "$DEPDIR" && continue
14783 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14784 test -z "am__include" && continue
14785 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14786 # When using ansi2knr, U may be empty or an underscore; expand it
14787 U=`sed -n 's/^U = //p' < "$mf"`
14788 # Find all dependency output files, they are included files with
14789 # $(DEPDIR) in their names. We invoke sed twice because it is the
14790 # simplest approach to changing $(DEPDIR) to its actual value in the
14791 # expansion.
14792 for file in `sed -n "
14793 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14794 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14795 # Make sure the directory exists.
14796 test -f "$dirpart/$file" && continue
14797 fdir=`$as_dirname -- "$file" ||
14798 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14799 X"$file" : 'X\(//\)[^/]' \| \
14800 X"$file" : 'X\(//\)$' \| \
14801 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14802 $as_echo X"$file" |
14803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14804 s//\1/
14805 q
14806 }
14807 /^X\(\/\/\)[^/].*/{
14808 s//\1/
14809 q
14810 }
14811 /^X\(\/\/\)$/{
14812 s//\1/
14813 q
14814 }
14815 /^X\(\/\).*/{
14816 s//\1/
14817 q
14818 }
14819 s/.*/./; q'`
14820 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14821 # echo "creating $dirpart/$file"
14822 echo '# dummy' > "$dirpart/$file"
14823 done
14824 done
14825 }
14826 ;;
14827 "libtool":C)
14828
14829 # See if we are running on zsh, and set the options which allow our
14830 # commands through without removal of \ escapes.
14831 if test -n "${ZSH_VERSION+set}" ; then
14832 setopt NO_GLOB_SUBST
14833 fi
14834
14835 cfgfile="${ofile}T"
14836 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14837 $RM "$cfgfile"
14838
14839 cat <<_LT_EOF >> "$cfgfile"
14840 #! $SHELL
14841
14842 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14843 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14844 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14845 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14846 #
14847 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14848 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14849 # Inc.
14850 # Written by Gordon Matzigkeit, 1996
14851 #
14852 # This file is part of GNU Libtool.
14853 #
14854 # GNU Libtool is free software; you can redistribute it and/or
14855 # modify it under the terms of the GNU General Public License as
14856 # published by the Free Software Foundation; either version 2 of
14857 # the License, or (at your option) any later version.
14858 #
14859 # As a special exception to the GNU General Public License,
14860 # if you distribute this file as part of a program or library that
14861 # is built using GNU Libtool, you may include this file under the
14862 # same distribution terms that you use for the rest of that program.
14863 #
14864 # GNU Libtool is distributed in the hope that it will be useful,
14865 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14866 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14867 # GNU General Public License for more details.
14868 #
14869 # You should have received a copy of the GNU General Public License
14870 # along with GNU Libtool; see the file COPYING. If not, a copy
14871 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14872 # obtained by writing to the Free Software Foundation, Inc.,
14873 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14874
14875
14876 # The names of the tagged configurations supported by this script.
14877 available_tags=""
14878
14879 # ### BEGIN LIBTOOL CONFIG
14880
14881 # Which release of libtool.m4 was used?
14882 macro_version=$macro_version
14883 macro_revision=$macro_revision
14884
14885 # Whether or not to build shared libraries.
14886 build_libtool_libs=$enable_shared
14887
14888 # Whether or not to build static libraries.
14889 build_old_libs=$enable_static
14890
14891 # What type of objects to build.
14892 pic_mode=$pic_mode
14893
14894 # Whether or not to optimize for fast installation.
14895 fast_install=$enable_fast_install
14896
14897 # Shell to use when invoking shell scripts.
14898 SHELL=$lt_SHELL
14899
14900 # An echo program that protects backslashes.
14901 ECHO=$lt_ECHO
14902
14903 # The host system.
14904 host_alias=$host_alias
14905 host=$host
14906 host_os=$host_os
14907
14908 # The build system.
14909 build_alias=$build_alias
14910 build=$build
14911 build_os=$build_os
14912
14913 # A sed program that does not truncate output.
14914 SED=$lt_SED
14915
14916 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14917 Xsed="\$SED -e 1s/^X//"
14918
14919 # A grep program that handles long lines.
14920 GREP=$lt_GREP
14921
14922 # An ERE matcher.
14923 EGREP=$lt_EGREP
14924
14925 # A literal string matcher.
14926 FGREP=$lt_FGREP
14927
14928 # A BSD- or MS-compatible name lister.
14929 NM=$lt_NM
14930
14931 # Whether we need soft or hard links.
14932 LN_S=$lt_LN_S
14933
14934 # What is the maximum length of a command?
14935 max_cmd_len=$max_cmd_len
14936
14937 # Object file suffix (normally "o").
14938 objext=$ac_objext
14939
14940 # Executable file suffix (normally "").
14941 exeext=$exeext
14942
14943 # whether the shell understands "unset".
14944 lt_unset=$lt_unset
14945
14946 # turn spaces into newlines.
14947 SP2NL=$lt_lt_SP2NL
14948
14949 # turn newlines into spaces.
14950 NL2SP=$lt_lt_NL2SP
14951
14952 # An object symbol dumper.
14953 OBJDUMP=$lt_OBJDUMP
14954
14955 # Method to check whether dependent libraries are shared objects.
14956 deplibs_check_method=$lt_deplibs_check_method
14957
14958 # Command to use when deplibs_check_method == "file_magic".
14959 file_magic_cmd=$lt_file_magic_cmd
14960
14961 # The archiver.
14962 AR=$lt_AR
14963 AR_FLAGS=$lt_AR_FLAGS
14964
14965 # A symbol stripping program.
14966 STRIP=$lt_STRIP
14967
14968 # Commands used to install an old-style archive.
14969 RANLIB=$lt_RANLIB
14970 old_postinstall_cmds=$lt_old_postinstall_cmds
14971 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14972
14973 # Whether to use a lock for old archive extraction.
14974 lock_old_archive_extraction=$lock_old_archive_extraction
14975
14976 # A C compiler.
14977 LTCC=$lt_CC
14978
14979 # LTCC compiler flags.
14980 LTCFLAGS=$lt_CFLAGS
14981
14982 # Take the output of nm and produce a listing of raw symbols and C names.
14983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14984
14985 # Transform the output of nm in a proper C declaration.
14986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14987
14988 # Transform the output of nm in a C name address pair.
14989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14990
14991 # Transform the output of nm in a C name address pair when lib prefix is needed.
14992 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14993
14994 # The name of the directory that contains temporary libtool files.
14995 objdir=$objdir
14996
14997 # Used to examine libraries when file_magic_cmd begins with "file".
14998 MAGIC_CMD=$MAGIC_CMD
14999
15000 # Must we lock files when doing compilation?
15001 need_locks=$lt_need_locks
15002
15003 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15004 DSYMUTIL=$lt_DSYMUTIL
15005
15006 # Tool to change global to local symbols on Mac OS X.
15007 NMEDIT=$lt_NMEDIT
15008
15009 # Tool to manipulate fat objects and archives on Mac OS X.
15010 LIPO=$lt_LIPO
15011
15012 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15013 OTOOL=$lt_OTOOL
15014
15015 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15016 OTOOL64=$lt_OTOOL64
15017
15018 # Old archive suffix (normally "a").
15019 libext=$libext
15020
15021 # Shared library suffix (normally ".so").
15022 shrext_cmds=$lt_shrext_cmds
15023
15024 # The commands to extract the exported symbol list from a shared archive.
15025 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15026
15027 # Variables whose values should be saved in libtool wrapper scripts and
15028 # restored at link time.
15029 variables_saved_for_relink=$lt_variables_saved_for_relink
15030
15031 # Do we need the "lib" prefix for modules?
15032 need_lib_prefix=$need_lib_prefix
15033
15034 # Do we need a version for libraries?
15035 need_version=$need_version
15036
15037 # Library versioning type.
15038 version_type=$version_type
15039
15040 # Shared library runtime path variable.
15041 runpath_var=$runpath_var
15042
15043 # Shared library path variable.
15044 shlibpath_var=$shlibpath_var
15045
15046 # Is shlibpath searched before the hard-coded library search path?
15047 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15048
15049 # Format of library name prefix.
15050 libname_spec=$lt_libname_spec
15051
15052 # List of archive names. First name is the real one, the rest are links.
15053 # The last name is the one that the linker finds with -lNAME
15054 library_names_spec=$lt_library_names_spec
15055
15056 # The coded name of the library, if different from the real name.
15057 soname_spec=$lt_soname_spec
15058
15059 # Permission mode override for installation of shared libraries.
15060 install_override_mode=$lt_install_override_mode
15061
15062 # Command to use after installation of a shared archive.
15063 postinstall_cmds=$lt_postinstall_cmds
15064
15065 # Command to use after uninstallation of a shared archive.
15066 postuninstall_cmds=$lt_postuninstall_cmds
15067
15068 # Commands used to finish a libtool library installation in a directory.
15069 finish_cmds=$lt_finish_cmds
15070
15071 # As "finish_cmds", except a single script fragment to be evaled but
15072 # not shown.
15073 finish_eval=$lt_finish_eval
15074
15075 # Whether we should hardcode library paths into libraries.
15076 hardcode_into_libs=$hardcode_into_libs
15077
15078 # Compile-time system search path for libraries.
15079 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15080
15081 # Run-time system search path for libraries.
15082 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15083
15084 # Whether dlopen is supported.
15085 dlopen_support=$enable_dlopen
15086
15087 # Whether dlopen of programs is supported.
15088 dlopen_self=$enable_dlopen_self
15089
15090 # Whether dlopen of statically linked programs is supported.
15091 dlopen_self_static=$enable_dlopen_self_static
15092
15093 # Commands to strip libraries.
15094 old_striplib=$lt_old_striplib
15095 striplib=$lt_striplib
15096
15097
15098 # The linker used to build libraries.
15099 LD=$lt_LD
15100
15101 # How to create reloadable object files.
15102 reload_flag=$lt_reload_flag
15103 reload_cmds=$lt_reload_cmds
15104
15105 # Commands used to build an old-style archive.
15106 old_archive_cmds=$lt_old_archive_cmds
15107
15108 # A language specific compiler.
15109 CC=$lt_compiler
15110
15111 # Is the compiler the GNU compiler?
15112 with_gcc=$GCC
15113
15114 # Compiler flag to turn off builtin functions.
15115 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15116
15117 # How to pass a linker flag through the compiler.
15118 wl=$lt_lt_prog_compiler_wl
15119
15120 # Additional compiler flags for building library objects.
15121 pic_flag=$lt_lt_prog_compiler_pic
15122
15123 # Compiler flag to prevent dynamic linking.
15124 link_static_flag=$lt_lt_prog_compiler_static
15125
15126 # Does compiler simultaneously support -c and -o options?
15127 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15128
15129 # Whether or not to add -lc for building shared libraries.
15130 build_libtool_need_lc=$archive_cmds_need_lc
15131
15132 # Whether or not to disallow shared libs when runtime libs are static.
15133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15134
15135 # Compiler flag to allow reflexive dlopens.
15136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15137
15138 # Compiler flag to generate shared objects directly from archives.
15139 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15140
15141 # Whether the compiler copes with passing no objects directly.
15142 compiler_needs_object=$lt_compiler_needs_object
15143
15144 # Create an old-style archive from a shared archive.
15145 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15146
15147 # Create a temporary old-style archive to link instead of a shared archive.
15148 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15149
15150 # Commands used to build a shared archive.
15151 archive_cmds=$lt_archive_cmds
15152 archive_expsym_cmds=$lt_archive_expsym_cmds
15153
15154 # Commands used to build a loadable module if different from building
15155 # a shared archive.
15156 module_cmds=$lt_module_cmds
15157 module_expsym_cmds=$lt_module_expsym_cmds
15158
15159 # Whether we are building with GNU ld or not.
15160 with_gnu_ld=$lt_with_gnu_ld
15161
15162 # Flag that allows shared libraries with undefined symbols to be built.
15163 allow_undefined_flag=$lt_allow_undefined_flag
15164
15165 # Flag that enforces no undefined symbols.
15166 no_undefined_flag=$lt_no_undefined_flag
15167
15168 # Flag to hardcode \$libdir into a binary during linking.
15169 # This must work even if \$libdir does not exist
15170 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15171
15172 # If ld is used when linking, flag to hardcode \$libdir into a binary
15173 # during linking. This must work even if \$libdir does not exist.
15174 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15175
15176 # Whether we need a single "-rpath" flag with a separated argument.
15177 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15178
15179 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15180 # DIR into the resulting binary.
15181 hardcode_direct=$hardcode_direct
15182
15183 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15184 # DIR into the resulting binary and the resulting library dependency is
15185 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15186 # library is relocated.
15187 hardcode_direct_absolute=$hardcode_direct_absolute
15188
15189 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15190 # into the resulting binary.
15191 hardcode_minus_L=$hardcode_minus_L
15192
15193 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15194 # into the resulting binary.
15195 hardcode_shlibpath_var=$hardcode_shlibpath_var
15196
15197 # Set to "yes" if building a shared library automatically hardcodes DIR
15198 # into the library and all subsequent libraries and executables linked
15199 # against it.
15200 hardcode_automatic=$hardcode_automatic
15201
15202 # Set to yes if linker adds runtime paths of dependent libraries
15203 # to runtime path list.
15204 inherit_rpath=$inherit_rpath
15205
15206 # Whether libtool must link a program against all its dependency libraries.
15207 link_all_deplibs=$link_all_deplibs
15208
15209 # Fix the shell variable \$srcfile for the compiler.
15210 fix_srcfile_path=$lt_fix_srcfile_path
15211
15212 # Set to "yes" if exported symbols are required.
15213 always_export_symbols=$always_export_symbols
15214
15215 # The commands to list exported symbols.
15216 export_symbols_cmds=$lt_export_symbols_cmds
15217
15218 # Symbols that should not be listed in the preloaded symbols.
15219 exclude_expsyms=$lt_exclude_expsyms
15220
15221 # Symbols that must always be exported.
15222 include_expsyms=$lt_include_expsyms
15223
15224 # Commands necessary for linking programs (against libraries) with templates.
15225 prelink_cmds=$lt_prelink_cmds
15226
15227 # Specify filename containing input files.
15228 file_list_spec=$lt_file_list_spec
15229
15230 # How to hardcode a shared library path into an executable.
15231 hardcode_action=$hardcode_action
15232
15233 # ### END LIBTOOL CONFIG
15234
15235 _LT_EOF
15236
15237 case $host_os in
15238 aix3*)
15239 cat <<\_LT_EOF >> "$cfgfile"
15240 # AIX sometimes has problems with the GCC collect2 program. For some
15241 # reason, if we set the COLLECT_NAMES environment variable, the problems
15242 # vanish in a puff of smoke.
15243 if test "X${COLLECT_NAMES+set}" != Xset; then
15244 COLLECT_NAMES=
15245 export COLLECT_NAMES
15246 fi
15247 _LT_EOF
15248 ;;
15249 esac
15250
15251
15252 ltmain="$ac_aux_dir/ltmain.sh"
15253
15254
15255 # We use sed instead of cat because bash on DJGPP gets confused if
15256 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15257 # text mode, it properly converts lines to CR/LF. This bash problem
15258 # is reportedly fixed, but why not run on old versions too?
15259 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15260 || (rm -f "$cfgfile"; exit 1)
15261
15262 case $xsi_shell in
15263 yes)
15264 cat << \_LT_EOF >> "$cfgfile"
15265
15266 # func_dirname file append nondir_replacement
15267 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15268 # otherwise set result to NONDIR_REPLACEMENT.
15269 func_dirname ()
15270 {
15271 case ${1} in
15272 */*) func_dirname_result="${1%/*}${2}" ;;
15273 * ) func_dirname_result="${3}" ;;
15274 esac
15275 }
15276
15277 # func_basename file
15278 func_basename ()
15279 {
15280 func_basename_result="${1##*/}"
15281 }
15282
15283 # func_dirname_and_basename file append nondir_replacement
15284 # perform func_basename and func_dirname in a single function
15285 # call:
15286 # dirname: Compute the dirname of FILE. If nonempty,
15287 # add APPEND to the result, otherwise set result
15288 # to NONDIR_REPLACEMENT.
15289 # value returned in "$func_dirname_result"
15290 # basename: Compute filename of FILE.
15291 # value retuned in "$func_basename_result"
15292 # Implementation must be kept synchronized with func_dirname
15293 # and func_basename. For efficiency, we do not delegate to
15294 # those functions but instead duplicate the functionality here.
15295 func_dirname_and_basename ()
15296 {
15297 case ${1} in
15298 */*) func_dirname_result="${1%/*}${2}" ;;
15299 * ) func_dirname_result="${3}" ;;
15300 esac
15301 func_basename_result="${1##*/}"
15302 }
15303
15304 # func_stripname prefix suffix name
15305 # strip PREFIX and SUFFIX off of NAME.
15306 # PREFIX and SUFFIX must not contain globbing or regex special
15307 # characters, hashes, percent signs, but SUFFIX may contain a leading
15308 # dot (in which case that matches only a dot).
15309 func_stripname ()
15310 {
15311 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15312 # positional parameters, so assign one to ordinary parameter first.
15313 func_stripname_result=${3}
15314 func_stripname_result=${func_stripname_result#"${1}"}
15315 func_stripname_result=${func_stripname_result%"${2}"}
15316 }
15317
15318 # func_opt_split
15319 func_opt_split ()
15320 {
15321 func_opt_split_opt=${1%%=*}
15322 func_opt_split_arg=${1#*=}
15323 }
15324
15325 # func_lo2o object
15326 func_lo2o ()
15327 {
15328 case ${1} in
15329 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15330 *) func_lo2o_result=${1} ;;
15331 esac
15332 }
15333
15334 # func_xform libobj-or-source
15335 func_xform ()
15336 {
15337 func_xform_result=${1%.*}.lo
15338 }
15339
15340 # func_arith arithmetic-term...
15341 func_arith ()
15342 {
15343 func_arith_result=$(( $* ))
15344 }
15345
15346 # func_len string
15347 # STRING may not start with a hyphen.
15348 func_len ()
15349 {
15350 func_len_result=${#1}
15351 }
15352
15353 _LT_EOF
15354 ;;
15355 *) # Bourne compatible functions.
15356 cat << \_LT_EOF >> "$cfgfile"
15357
15358 # func_dirname file append nondir_replacement
15359 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15360 # otherwise set result to NONDIR_REPLACEMENT.
15361 func_dirname ()
15362 {
15363 # Extract subdirectory from the argument.
15364 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15365 if test "X$func_dirname_result" = "X${1}"; then
15366 func_dirname_result="${3}"
15367 else
15368 func_dirname_result="$func_dirname_result${2}"
15369 fi
15370 }
15371
15372 # func_basename file
15373 func_basename ()
15374 {
15375 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15376 }
15377
15378
15379 # func_stripname prefix suffix name
15380 # strip PREFIX and SUFFIX off of NAME.
15381 # PREFIX and SUFFIX must not contain globbing or regex special
15382 # characters, hashes, percent signs, but SUFFIX may contain a leading
15383 # dot (in which case that matches only a dot).
15384 # func_strip_suffix prefix name
15385 func_stripname ()
15386 {
15387 case ${2} in
15388 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15389 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15390 esac
15391 }
15392
15393 # sed scripts:
15394 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15395 my_sed_long_arg='1s/^-[^=]*=//'
15396
15397 # func_opt_split
15398 func_opt_split ()
15399 {
15400 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15401 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15402 }
15403
15404 # func_lo2o object
15405 func_lo2o ()
15406 {
15407 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15408 }
15409
15410 # func_xform libobj-or-source
15411 func_xform ()
15412 {
15413 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15414 }
15415
15416 # func_arith arithmetic-term...
15417 func_arith ()
15418 {
15419 func_arith_result=`expr "$@"`
15420 }
15421
15422 # func_len string
15423 # STRING may not start with a hyphen.
15424 func_len ()
15425 {
15426 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15427 }
15428
15429 _LT_EOF
15430 esac
15431
15432 case $lt_shell_append in
15433 yes)
15434 cat << \_LT_EOF >> "$cfgfile"
15435
15436 # func_append var value
15437 # Append VALUE to the end of shell variable VAR.
15438 func_append ()
15439 {
15440 eval "$1+=\$2"
15441 }
15442 _LT_EOF
15443 ;;
15444 *)
15445 cat << \_LT_EOF >> "$cfgfile"
15446
15447 # func_append var value
15448 # Append VALUE to the end of shell variable VAR.
15449 func_append ()
15450 {
15451 eval "$1=\$$1\$2"
15452 }
15453
15454 _LT_EOF
15455 ;;
15456 esac
15457
15458
15459 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15460 || (rm -f "$cfgfile"; exit 1)
15461
15462 mv -f "$cfgfile" "$ofile" ||
15463 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15464 chmod +x "$ofile"
15465
15466 ;;
15467
15468 esac
15469 done # for ac_tag
15470
15471
15472 as_fn_exit 0
15473 _ACEOF
15474 ac_clean_files=$ac_clean_files_save
15475
15476 test $ac_write_fail = 0 ||
15477 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15478
15479
15480 # configure is writing to config.log, and then calls config.status.
15481 # config.status does its own redirection, appending to config.log.
15482 # Unfortunately, on DOS this fails, as config.log is still kept open
15483 # by configure, so config.status won't be able to write to it; its
15484 # output is simply discarded. So we exec the FD to /dev/null,
15485 # effectively closing config.log, so it can be properly (re)opened and
15486 # appended to by config.status. When coming back to configure, we
15487 # need to make the FD available again.
15488 if test "$no_create" != yes; then
15489 ac_cs_success=:
15490 ac_config_status_args=
15491 test "$silent" = yes &&
15492 ac_config_status_args="$ac_config_status_args --quiet"
15493 exec 5>/dev/null
15494 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15495 exec 5>>config.log
15496 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15497 # would make configure fail if this is the last instruction.
15498 $ac_cs_success || as_fn_exit 1
15499 fi
15500 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15502 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15503 fi
15504
15505