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 xf86-input-elographics 1.3.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
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='xf86-input-elographics'
573 PACKAGE_TARNAME='xf86-input-elographics'
574 PACKAGE_VERSION='1.3.0'
575 PACKAGE_STRING='xf86-input-elographics 1.3.0'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 CHANGELOG_CMD
621 MAN_SUBSTS
622 XORG_MAN_PAGE
623 ADMIN_MAN_DIR
624 DRIVER_MAN_DIR
625 MISC_MAN_DIR
626 FILE_MAN_DIR
627 LIB_MAN_DIR
628 APP_MAN_DIR
629 ADMIN_MAN_SUFFIX
630 DRIVER_MAN_SUFFIX
631 MISC_MAN_SUFFIX
632 FILE_MAN_SUFFIX
633 LIB_MAN_SUFFIX
634 APP_MAN_SUFFIX
635 DRIVER_NAME
636 XORG_LIBS
637 XORG_CFLAGS
638 PKG_CONFIG_LIBDIR
639 PKG_CONFIG_PATH
640 PKG_CONFIG
641 inputdir
642 CWARNFLAGS
643 CPP
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 MANIFEST_TOOL
650 RANLIB
651 ac_ct_AR
652 AR
653 DLLTOOL
654 OBJDUMP
655 LN_S
656 NM
657 ac_ct_DUMPBIN
658 DUMPBIN
659 LD
660 FGREP
661 EGREP
662 GREP
663 SED
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
679 CC
680 host_os
681 host_vendor
682 host_cpu
683 host
684 build_os
685 build_vendor
686 build_cpu
687 build
688 LIBTOOL
689 MAINT
690 MAINTAINER_MODE_FALSE
691 MAINTAINER_MODE_TRUE
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_maintainer_mode
757 enable_static
758 enable_shared
759 with_pic
760 enable_fast_install
761 enable_dependency_tracking
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 with_xorg_module_dir
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP
776 PKG_CONFIG
777 PKG_CONFIG_PATH
778 PKG_CONFIG_LIBDIR
779 XORG_CFLAGS
780 XORG_LIBS'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 ;;
1187
1188 esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209 do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used" >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288 else
1289 ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures xf86-input-elographics 1.3.0 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root
1372 [DATAROOTDIR/doc/xf86-input-elographics]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1378
1379 cat <<\_ACEOF
1380
1381 Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of xf86-input-elographics 1.3.0:";;
1395 esac
1396 cat <<\_ACEOF
1397
1398 Optional Features:
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-maintainer-mode enable make rules and dependencies not useful
1403 (and sometimes confusing) to the casual installer
1404 --enable-static[=PKGS] build static libraries [default=no]
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
1408 --disable-dependency-tracking speeds up one-time build
1409 --enable-dependency-tracking do not reject slow dependency extractors
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1411
1412 Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-pic try to use only PIC/non-PIC objects [default=use
1416 both]
1417 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1418 --with-sysroot=DIR Search for dependent libraries within DIR
1419 (or the compiler's sysroot if not specified).
1420 --with-xorg-module-dir=DIR
1421 Default xorg module directory
1422 [[default=$libdir/xorg/modules]]
1423
1424 Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1432 CPP C preprocessor
1433 PKG_CONFIG path to pkg-config utility
1434 PKG_CONFIG_PATH
1435 directories to add to pkg-config's search path
1436 PKG_CONFIG_LIBDIR
1437 path overriding pkg-config's built-in search path
1438 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1439 XORG_LIBS linker flags for XORG, overriding pkg-config
1440
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1443
1444 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1445 _ACEOF
1446 ac_status=$?
1447 fi
1448
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1456
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *)
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1472
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1502 fi
1503
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 xf86-input-elographics configure 1.3.0
1508 generated by GNU Autoconf 2.68
1509
1510 Copyright (C) 2010 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514 exit
1515 fi
1516
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1520
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1525 {
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553 fi
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1556
1557 } # ac_fn_c_try_compile
1558
1559 # ac_fn_c_try_link LINENO
1560 # -----------------------
1561 # Try to link conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_link ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest$ac_exeext
1566 if { { ac_try="$ac_link"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest$ac_exeext && {
1585 test "$cross_compiling" = yes ||
1586 $as_test_x conftest$ac_exeext
1587 }; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594 fi
1595 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1596 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1597 # interfere with the next link command; also delete a directory that is
1598 # left behind by Apple's compiler. We do this before executing the actions.
1599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1602
1603 } # ac_fn_c_try_link
1604
1605 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606 # -------------------------------------------------------
1607 # Tests whether HEADER exists and can be compiled using the include files in
1608 # INCLUDES, setting the cache variable VAR accordingly.
1609 ac_fn_c_check_header_compile ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if eval \${$3+:} false; then :
1615 $as_echo_n "(cached) " >&6
1616 else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 $4
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624 else
1625 eval "$3=no"
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 fi
1629 eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_c_check_header_compile
1635
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } > conftest.i && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_cpp
1672
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=$ac_status
1708 fi
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_run
1714
1715 # ac_fn_c_check_func LINENO FUNC VAR
1716 # ----------------------------------
1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1718 ac_fn_c_check_func ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1730 #define $2 innocuous_$2
1731
1732 /* System header to define __stub macros and hopefully few prototypes,
1733 which can conflict with char $2 (); below.
1734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1735 <limits.h> exists even on freestanding compilers. */
1736
1737 #ifdef __STDC__
1738 # include <limits.h>
1739 #else
1740 # include <assert.h>
1741 #endif
1742
1743 #undef $2
1744
1745 /* Override any GCC internal prototype to avoid an error.
1746 Use char because int might match the return type of a GCC
1747 builtin and then its argument prototype would still apply. */
1748 #ifdef __cplusplus
1749 extern "C"
1750 #endif
1751 char $2 ();
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined __stub_$2 || defined __stub___$2
1756 choke me
1757 #endif
1758
1759 int
1760 main ()
1761 {
1762 return $2 ();
1763 ;
1764 return 0;
1765 }
1766 _ACEOF
1767 if ac_fn_c_try_link "$LINENO"; then :
1768 eval "$3=yes"
1769 else
1770 eval "$3=no"
1771 fi
1772 rm -f core conftest.err conftest.$ac_objext \
1773 conftest$ac_exeext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_func
1781
1782 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1783 # ---------------------------------------------
1784 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1785 # accordingly.
1786 ac_fn_c_check_decl ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 as_decl_name=`echo $2|sed 's/ *(.*//'`
1790 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1792 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 $4
1799 int
1800 main ()
1801 {
1802 #ifndef $as_decl_name
1803 #ifdef __cplusplus
1804 (void) $as_decl_use;
1805 #else
1806 (void) $as_decl_name;
1807 #endif
1808 #endif
1809
1810 ;
1811 return 0;
1812 }
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815 eval "$3=yes"
1816 else
1817 eval "$3=no"
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_decl
1827 cat >config.log <<_ACEOF
1828 This file contains any messages produced by compilers while
1829 running configure, to aid debugging if configure makes a mistake.
1830
1831 It was created by xf86-input-elographics $as_me 1.3.0, which was
1832 generated by GNU Autoconf 2.68. Invocation command line was
1833
1834 $ $0 $@
1835
1836 _ACEOF
1837 exec 5>>config.log
1838 {
1839 cat <<_ASUNAME
1840 ## --------- ##
1841 ## Platform. ##
1842 ## --------- ##
1843
1844 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1845 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1846 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1847 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1848 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1849
1850 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1851 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1852
1853 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1854 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1855 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1856 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1857 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1858 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1859 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1860
1861 _ASUNAME
1862
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866 IFS=$as_save_IFS
1867 test -z "$as_dir" && as_dir=.
1868 $as_echo "PATH: $as_dir"
1869 done
1870 IFS=$as_save_IFS
1871
1872 } >&5
1873
1874 cat >&5 <<_ACEOF
1875
1876
1877 ## ----------- ##
1878 ## Core tests. ##
1879 ## ----------- ##
1880
1881 _ACEOF
1882
1883
1884 # Keep a trace of the command line.
1885 # Strip out --no-create and --no-recursion so they do not pile up.
1886 # Strip out --silent because we don't want to record it for future runs.
1887 # Also quote any args containing shell meta-characters.
1888 # Make two passes to allow for proper duplicate-argument suppression.
1889 ac_configure_args=
1890 ac_configure_args0=
1891 ac_configure_args1=
1892 ac_must_keep_next=false
1893 for ac_pass in 1 2
1894 do
1895 for ac_arg
1896 do
1897 case $ac_arg in
1898 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1900 | -silent | --silent | --silen | --sile | --sil)
1901 continue ;;
1902 *\'*)
1903 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1904 esac
1905 case $ac_pass in
1906 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1907 2)
1908 as_fn_append ac_configure_args1 " '$ac_arg'"
1909 if test $ac_must_keep_next = true; then
1910 ac_must_keep_next=false # Got value, back to normal.
1911 else
1912 case $ac_arg in
1913 *=* | --config-cache | -C | -disable-* | --disable-* \
1914 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1915 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1916 | -with-* | --with-* | -without-* | --without-* | --x)
1917 case "$ac_configure_args0 " in
1918 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1919 esac
1920 ;;
1921 -* ) ac_must_keep_next=true ;;
1922 esac
1923 fi
1924 as_fn_append ac_configure_args " '$ac_arg'"
1925 ;;
1926 esac
1927 done
1928 done
1929 { ac_configure_args0=; unset ac_configure_args0;}
1930 { ac_configure_args1=; unset ac_configure_args1;}
1931
1932 # When interrupted or exit'd, cleanup temporary files, and complete
1933 # config.log. We remove comments because anyway the quotes in there
1934 # would cause problems or look ugly.
1935 # WARNING: Use '\'' to represent an apostrophe within the trap.
1936 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1937 trap 'exit_status=$?
1938 # Save into config.log some information that might help in debugging.
1939 {
1940 echo
1941
1942 $as_echo "## ---------------- ##
1943 ## Cache variables. ##
1944 ## ---------------- ##"
1945 echo
1946 # The following way of writing the cache mishandles newlines in values,
1947 (
1948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1949 eval ac_val=\$$ac_var
1950 case $ac_val in #(
1951 *${as_nl}*)
1952 case $ac_var in #(
1953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1955 esac
1956 case $ac_var in #(
1957 _ | IFS | as_nl) ;; #(
1958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1959 *) { eval $ac_var=; unset $ac_var;} ;;
1960 esac ;;
1961 esac
1962 done
1963 (set) 2>&1 |
1964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1965 *${as_nl}ac_space=\ *)
1966 sed -n \
1967 "s/'\''/'\''\\\\'\'''\''/g;
1968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1969 ;; #(
1970 *)
1971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1972 ;;
1973 esac |
1974 sort
1975 )
1976 echo
1977
1978 $as_echo "## ----------------- ##
1979 ## Output variables. ##
1980 ## ----------------- ##"
1981 echo
1982 for ac_var in $ac_subst_vars
1983 do
1984 eval ac_val=\$$ac_var
1985 case $ac_val in
1986 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987 esac
1988 $as_echo "$ac_var='\''$ac_val'\''"
1989 done | sort
1990 echo
1991
1992 if test -n "$ac_subst_files"; then
1993 $as_echo "## ------------------- ##
1994 ## File substitutions. ##
1995 ## ------------------- ##"
1996 echo
1997 for ac_var in $ac_subst_files
1998 do
1999 eval ac_val=\$$ac_var
2000 case $ac_val in
2001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002 esac
2003 $as_echo "$ac_var='\''$ac_val'\''"
2004 done | sort
2005 echo
2006 fi
2007
2008 if test -s confdefs.h; then
2009 $as_echo "## ----------- ##
2010 ## confdefs.h. ##
2011 ## ----------- ##"
2012 echo
2013 cat confdefs.h
2014 echo
2015 fi
2016 test "$ac_signal" != 0 &&
2017 $as_echo "$as_me: caught signal $ac_signal"
2018 $as_echo "$as_me: exit $exit_status"
2019 } >&5
2020 rm -f core *.core core.conftest.* &&
2021 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2022 exit $exit_status
2023 ' 0
2024 for ac_signal in 1 2 13 15; do
2025 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2026 done
2027 ac_signal=0
2028
2029 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2030 rm -f -r conftest* confdefs.h
2031
2032 $as_echo "/* confdefs.h */" > confdefs.h
2033
2034 # Predefined preprocessor variables.
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_NAME "$PACKAGE_NAME"
2038 _ACEOF
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_STRING "$PACKAGE_STRING"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_URL "$PACKAGE_URL"
2058 _ACEOF
2059
2060
2061 # Let the site file select an alternate cache file if it wants to.
2062 # Prefer an explicitly selected file to automatically selected ones.
2063 ac_site_file1=NONE
2064 ac_site_file2=NONE
2065 if test -n "$CONFIG_SITE"; then
2066 # We do not want a PATH search for config.site.
2067 case $CONFIG_SITE in #((
2068 -*) ac_site_file1=./$CONFIG_SITE;;
2069 */*) ac_site_file1=$CONFIG_SITE;;
2070 *) ac_site_file1=./$CONFIG_SITE;;
2071 esac
2072 elif test "x$prefix" != xNONE; then
2073 ac_site_file1=$prefix/share/config.site
2074 ac_site_file2=$prefix/etc/config.site
2075 else
2076 ac_site_file1=$ac_default_prefix/share/config.site
2077 ac_site_file2=$ac_default_prefix/etc/config.site
2078 fi
2079 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2080 do
2081 test "x$ac_site_file" = xNONE && continue
2082 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2084 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2085 sed 's/^/| /' "$ac_site_file" >&5
2086 . "$ac_site_file" \
2087 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 as_fn_error $? "failed to load site script $ac_site_file
2090 See \`config.log' for more details" "$LINENO" 5; }
2091 fi
2092 done
2093
2094 if test -r "$cache_file"; then
2095 # Some versions of bash will fail to source /dev/null (special files
2096 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2097 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2099 $as_echo "$as_me: loading cache $cache_file" >&6;}
2100 case $cache_file in
2101 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2102 *) . "./$cache_file";;
2103 esac
2104 fi
2105 else
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2107 $as_echo "$as_me: creating cache $cache_file" >&6;}
2108 >$cache_file
2109 fi
2110
2111 # Check that the precious variables saved in the cache have kept the same
2112 # value.
2113 ac_cache_corrupted=false
2114 for ac_var in $ac_precious_vars; do
2115 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2116 eval ac_new_set=\$ac_env_${ac_var}_set
2117 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2118 eval ac_new_val=\$ac_env_${ac_var}_value
2119 case $ac_old_set,$ac_new_set in
2120 set,)
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2122 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2123 ac_cache_corrupted=: ;;
2124 ,set)
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2126 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2127 ac_cache_corrupted=: ;;
2128 ,);;
2129 *)
2130 if test "x$ac_old_val" != "x$ac_new_val"; then
2131 # differences in whitespace do not lead to failure.
2132 ac_old_val_w=`echo x $ac_old_val`
2133 ac_new_val_w=`echo x $ac_new_val`
2134 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2136 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2137 ac_cache_corrupted=:
2138 else
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2140 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2141 eval $ac_var=\$ac_old_val
2142 fi
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2144 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2146 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2147 fi;;
2148 esac
2149 # Pass precious variables to config.status.
2150 if test "$ac_new_set" = set; then
2151 case $ac_new_val in
2152 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2153 *) ac_arg=$ac_var=$ac_new_val ;;
2154 esac
2155 case " $ac_configure_args " in
2156 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2157 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2158 esac
2159 fi
2160 done
2161 if $ac_cache_corrupted; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2165 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2166 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2167 fi
2168 ## -------------------- ##
2169 ## Main body of script. ##
2170 ## -------------------- ##
2171
2172 ac_ext=c
2173 ac_cpp='$CPP $CPPFLAGS'
2174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2177
2178
2179
2180
2181 ac_aux_dir=
2182 for ac_dir in . "$srcdir"/.; do
2183 if test -f "$ac_dir/install-sh"; then
2184 ac_aux_dir=$ac_dir
2185 ac_install_sh="$ac_aux_dir/install-sh -c"
2186 break
2187 elif test -f "$ac_dir/install.sh"; then
2188 ac_aux_dir=$ac_dir
2189 ac_install_sh="$ac_aux_dir/install.sh -c"
2190 break
2191 elif test -f "$ac_dir/shtool"; then
2192 ac_aux_dir=$ac_dir
2193 ac_install_sh="$ac_aux_dir/shtool install -c"
2194 break
2195 fi
2196 done
2197 if test -z "$ac_aux_dir"; then
2198 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2199 fi
2200
2201 # These three variables are undocumented and unsupported,
2202 # and are intended to be withdrawn in a future Autoconf release.
2203 # They can cause serious problems if a builder's source tree is in a directory
2204 # whose full name contains unusual characters.
2205 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2206 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2207 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2208
2209
2210 am__api_version='1.11'
2211
2212 # Find a good install program. We prefer a C program (faster),
2213 # so one script is as good as another. But avoid the broken or
2214 # incompatible versions:
2215 # SysV /etc/install, /usr/sbin/install
2216 # SunOS /usr/etc/install
2217 # IRIX /sbin/install
2218 # AIX /bin/install
2219 # AmigaOS /C/install, which installs bootblocks on floppy discs
2220 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2221 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2222 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2223 # OS/2's system install, which has a completely different semantic
2224 # ./install, which can be erroneously created by make from ./install.sh.
2225 # Reject install programs that cannot install multiple files.
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2227 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2228 if test -z "$INSTALL"; then
2229 if ${ac_cv_path_install+:} false; then :
2230 $as_echo_n "(cached) " >&6
2231 else
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2234 do
2235 IFS=$as_save_IFS
2236 test -z "$as_dir" && as_dir=.
2237 # Account for people who put trailing slashes in PATH elements.
2238 case $as_dir/ in #((
2239 ./ | .// | /[cC]/* | \
2240 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2241 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2242 /usr/ucb/* ) ;;
2243 *)
2244 # OSF1 and SCO ODT 3.0 have their own names for install.
2245 # Don't use installbsd from OSF since it installs stuff as root
2246 # by default.
2247 for ac_prog in ginstall scoinst install; do
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2250 if test $ac_prog = install &&
2251 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2252 # AIX install. It has an incompatible calling convention.
2253 :
2254 elif test $ac_prog = install &&
2255 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2256 # program-specific install script used by HP pwplus--don't use.
2257 :
2258 else
2259 rm -rf conftest.one conftest.two conftest.dir
2260 echo one > conftest.one
2261 echo two > conftest.two
2262 mkdir conftest.dir
2263 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2264 test -s conftest.one && test -s conftest.two &&
2265 test -s conftest.dir/conftest.one &&
2266 test -s conftest.dir/conftest.two
2267 then
2268 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2269 break 3
2270 fi
2271 fi
2272 fi
2273 done
2274 done
2275 ;;
2276 esac
2277
2278 done
2279 IFS=$as_save_IFS
2280
2281 rm -rf conftest.one conftest.two conftest.dir
2282
2283 fi
2284 if test "${ac_cv_path_install+set}" = set; then
2285 INSTALL=$ac_cv_path_install
2286 else
2287 # As a last resort, use the slow shell script. Don't cache a
2288 # value for INSTALL within a source directory, because that will
2289 # break other packages using the cache if that directory is
2290 # removed, or if the value is a relative name.
2291 INSTALL=$ac_install_sh
2292 fi
2293 fi
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2295 $as_echo "$INSTALL" >&6; }
2296
2297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2298 # It thinks the first close brace ends the variable substitution.
2299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2300
2301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2302
2303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2304
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2306 $as_echo_n "checking whether build environment is sane... " >&6; }
2307 # Just in case
2308 sleep 1
2309 echo timestamp > conftest.file
2310 # Reject unsafe characters in $srcdir or the absolute working directory
2311 # name. Accept space and tab only in the latter.
2312 am_lf='
2313 '
2314 case `pwd` in
2315 *[\\\"\#\$\&\'\`$am_lf]*)
2316 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2317 esac
2318 case $srcdir in
2319 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2320 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2321 esac
2322
2323 # Do `set' in a subshell so we don't clobber the current shell's
2324 # arguments. Must try -L first in case configure is actually a
2325 # symlink; some systems play weird games with the mod time of symlinks
2326 # (eg FreeBSD returns the mod time of the symlink's containing
2327 # directory).
2328 if (
2329 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2330 if test "$*" = "X"; then
2331 # -L didn't work.
2332 set X `ls -t "$srcdir/configure" conftest.file`
2333 fi
2334 rm -f conftest.file
2335 if test "$*" != "X $srcdir/configure conftest.file" \
2336 && test "$*" != "X conftest.file $srcdir/configure"; then
2337
2338 # If neither matched, then we have a broken ls. This can happen
2339 # if, for instance, CONFIG_SHELL is bash and it inherits a
2340 # broken ls alias from the environment. This has actually
2341 # happened. Such a system could not be considered "sane".
2342 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2343 alias in your environment" "$LINENO" 5
2344 fi
2345
2346 test "$2" = conftest.file
2347 )
2348 then
2349 # Ok.
2350 :
2351 else
2352 as_fn_error $? "newly created file is older than distributed files!
2353 Check your system clock" "$LINENO" 5
2354 fi
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2356 $as_echo "yes" >&6; }
2357 test "$program_prefix" != NONE &&
2358 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2359 # Use a double $ so make ignores it.
2360 test "$program_suffix" != NONE &&
2361 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2362 # Double any \ or $.
2363 # By default was `s,x,x', remove it if useless.
2364 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2365 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2366
2367 # expand $ac_aux_dir to an absolute path
2368 am_aux_dir=`cd $ac_aux_dir && pwd`
2369
2370 if test x"${MISSING+set}" != xset; then
2371 case $am_aux_dir in
2372 *\ * | *\ *)
2373 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2374 *)
2375 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2376 esac
2377 fi
2378 # Use eval to expand $SHELL
2379 if eval "$MISSING --run true"; then
2380 am_missing_run="$MISSING --run "
2381 else
2382 am_missing_run=
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2384 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2385 fi
2386
2387 if test x"${install_sh}" != xset; then
2388 case $am_aux_dir in
2389 *\ * | *\ *)
2390 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2391 *)
2392 install_sh="\${SHELL} $am_aux_dir/install-sh"
2393 esac
2394 fi
2395
2396 # Installed binaries are usually stripped using `strip' when the user
2397 # run `make install-strip'. However `strip' might not be the right
2398 # tool to use in cross-compilation environments, therefore Automake
2399 # will honor the `STRIP' environment variable to overrule this program.
2400 if test "$cross_compiling" != no; then
2401 if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}strip; ac_word=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if ${ac_cv_prog_STRIP+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2422 fi
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 STRIP=$ac_cv_prog_STRIP
2430 if test -n "$STRIP"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2432 $as_echo "$STRIP" >&6; }
2433 else
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435 $as_echo "no" >&6; }
2436 fi
2437
2438
2439 fi
2440 if test -z "$ac_cv_prog_STRIP"; then
2441 ac_ct_STRIP=$STRIP
2442 # Extract the first word of "strip", so it can be a program name with args.
2443 set dummy strip; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 if test -n "$ac_ct_STRIP"; then
2450 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_ac_ct_STRIP="strip"
2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2462 fi
2463 done
2464 done
2465 IFS=$as_save_IFS
2466
2467 fi
2468 fi
2469 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2470 if test -n "$ac_ct_STRIP"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2472 $as_echo "$ac_ct_STRIP" >&6; }
2473 else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2476 fi
2477
2478 if test "x$ac_ct_STRIP" = x; then
2479 STRIP=":"
2480 else
2481 case $cross_compiling:$ac_tool_warned in
2482 yes:)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2485 ac_tool_warned=yes ;;
2486 esac
2487 STRIP=$ac_ct_STRIP
2488 fi
2489 else
2490 STRIP="$ac_cv_prog_STRIP"
2491 fi
2492
2493 fi
2494 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2495
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2497 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2498 if test -z "$MKDIR_P"; then
2499 if ${ac_cv_path_mkdir+:} false; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_prog in mkdir gmkdir; do
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2510 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2511 'mkdir (GNU coreutils) '* | \
2512 'mkdir (coreutils) '* | \
2513 'mkdir (fileutils) '4.1*)
2514 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2515 break 3;;
2516 esac
2517 done
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 fi
2523
2524 test -d ./--version && rmdir ./--version
2525 if test "${ac_cv_path_mkdir+set}" = set; then
2526 MKDIR_P="$ac_cv_path_mkdir -p"
2527 else
2528 # As a last resort, use the slow shell script. Don't cache a
2529 # value for MKDIR_P within a source directory, because that will
2530 # break other packages using the cache if that directory is
2531 # removed, or if the value is a relative name.
2532 MKDIR_P="$ac_install_sh -d"
2533 fi
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2536 $as_echo "$MKDIR_P" >&6; }
2537
2538 mkdir_p="$MKDIR_P"
2539 case $mkdir_p in
2540 [\\/$]* | ?:[\\/]*) ;;
2541 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2542 esac
2543
2544 for ac_prog in gawk mawk nawk awk
2545 do
2546 # Extract the first word of "$ac_prog", so it can be a program name with args.
2547 set dummy $ac_prog; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if ${ac_cv_prog_AWK+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 if test -n "$AWK"; then
2554 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_AWK="$ac_prog"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 AWK=$ac_cv_prog_AWK
2574 if test -n "$AWK"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2576 $as_echo "$AWK" >&6; }
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 fi
2581
2582
2583 test -n "$AWK" && break
2584 done
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2587 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2588 set x ${MAKE-make}
2589 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2590 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2591 $as_echo_n "(cached) " >&6
2592 else
2593 cat >conftest.make <<\_ACEOF
2594 SHELL = /bin/sh
2595 all:
2596 @echo '@@@%%%=$(MAKE)=@@@%%%'
2597 _ACEOF
2598 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2599 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2600 *@@@%%%=?*=@@@%%%*)
2601 eval ac_cv_prog_make_${ac_make}_set=yes;;
2602 *)
2603 eval ac_cv_prog_make_${ac_make}_set=no;;
2604 esac
2605 rm -f conftest.make
2606 fi
2607 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2609 $as_echo "yes" >&6; }
2610 SET_MAKE=
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2614 SET_MAKE="MAKE=${MAKE-make}"
2615 fi
2616
2617 rm -rf .tst 2>/dev/null
2618 mkdir .tst 2>/dev/null
2619 if test -d .tst; then
2620 am__leading_dot=.
2621 else
2622 am__leading_dot=_
2623 fi
2624 rmdir .tst 2>/dev/null
2625
2626 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2627 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2628 # is not polluted with repeated "-I."
2629 am__isrc=' -I$(srcdir)'
2630 # test to see if srcdir already configured
2631 if test -f $srcdir/config.status; then
2632 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2633 fi
2634 fi
2635
2636 # test whether we have cygpath
2637 if test -z "$CYGPATH_W"; then
2638 if (cygpath --version) >/dev/null 2>/dev/null; then
2639 CYGPATH_W='cygpath -w'
2640 else
2641 CYGPATH_W=echo
2642 fi
2643 fi
2644
2645
2646 # Define the identity of the package.
2647 PACKAGE='xf86-input-elographics'
2648 VERSION='1.3.0'
2649
2650
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE "$PACKAGE"
2653 _ACEOF
2654
2655
2656 cat >>confdefs.h <<_ACEOF
2657 #define VERSION "$VERSION"
2658 _ACEOF
2659
2660 # Some tools Automake needs.
2661
2662 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2663
2664
2665 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2666
2667
2668 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2669
2670
2671 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2672
2673
2674 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2675
2676 # We need awk for the "check" target. The system "awk" is bad on
2677 # some platforms.
2678 # Always define AMTAR for backward compatibility.
2679
2680 AMTAR=${AMTAR-"${am_missing_run}tar"}
2681
2682 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2683
2684
2685
2686
2687
2688
2689
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2691 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2692 # Check whether --enable-maintainer-mode was given.
2693 if test "${enable_maintainer_mode+set}" = set; then :
2694 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2695 else
2696 USE_MAINTAINER_MODE=no
2697 fi
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2700 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2701 if test $USE_MAINTAINER_MODE = yes; then
2702 MAINTAINER_MODE_TRUE=
2703 MAINTAINER_MODE_FALSE='#'
2704 else
2705 MAINTAINER_MODE_TRUE='#'
2706 MAINTAINER_MODE_FALSE=
2707 fi
2708
2709 MAINT=$MAINTAINER_MODE_TRUE
2710
2711
2712
2713 # Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725 ac_config_headers="$ac_config_headers config.h"
2726
2727
2728 # Checks for programs.
2729 # Check whether --enable-static was given.
2730 if test "${enable_static+set}" = set; then :
2731 enableval=$enable_static; p=${PACKAGE-default}
2732 case $enableval in
2733 yes) enable_static=yes ;;
2734 no) enable_static=no ;;
2735 *)
2736 enable_static=no
2737 # Look at the argument we got. We use all the common list separators.
2738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2739 for pkg in $enableval; do
2740 IFS="$lt_save_ifs"
2741 if test "X$pkg" = "X$p"; then
2742 enable_static=yes
2743 fi
2744 done
2745 IFS="$lt_save_ifs"
2746 ;;
2747 esac
2748 else
2749 enable_static=no
2750 fi
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760 case `pwd` in
2761 *\ * | *\ *)
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2763 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2764 esac
2765
2766
2767
2768 macro_version='2.4'
2769 macro_revision='1.3293'
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783 ltmain="$ac_aux_dir/ltmain.sh"
2784
2785 # Make sure we can run config.sub.
2786 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2787 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2788
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2790 $as_echo_n "checking build system type... " >&6; }
2791 if ${ac_cv_build+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 ac_build_alias=$build_alias
2795 test "x$ac_build_alias" = x &&
2796 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797 test "x$ac_build_alias" = x &&
2798 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2800 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2801
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2804 $as_echo "$ac_cv_build" >&6; }
2805 case $ac_cv_build in
2806 *-*-*) ;;
2807 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2808 esac
2809 build=$ac_cv_build
2810 ac_save_IFS=$IFS; IFS='-'
2811 set x $ac_cv_build
2812 shift
2813 build_cpu=$1
2814 build_vendor=$2
2815 shift; shift
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2818 build_os=$*
2819 IFS=$ac_save_IFS
2820 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2821
2822
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2824 $as_echo_n "checking host system type... " >&6; }
2825 if ${ac_cv_host+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test "x$host_alias" = x; then
2829 ac_cv_host=$ac_cv_build
2830 else
2831 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2833 fi
2834
2835 fi
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2837 $as_echo "$ac_cv_host" >&6; }
2838 case $ac_cv_host in
2839 *-*-*) ;;
2840 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2841 esac
2842 host=$ac_cv_host
2843 ac_save_IFS=$IFS; IFS='-'
2844 set x $ac_cv_host
2845 shift
2846 host_cpu=$1
2847 host_vendor=$2
2848 shift; shift
2849 # Remember, the first character of IFS is used to create $*,
2850 # except with old shells:
2851 host_os=$*
2852 IFS=$ac_save_IFS
2853 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2854
2855
2856 # Backslashify metacharacters that are still active within
2857 # double-quoted strings.
2858 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2859
2860 # Same as above, but do not quote variable references.
2861 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2862
2863 # Sed substitution to delay expansion of an escaped shell variable in a
2864 # double_quote_subst'ed string.
2865 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2866
2867 # Sed substitution to delay expansion of an escaped single quote.
2868 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2869
2870 # Sed substitution to avoid accidental globbing in evaled expressions
2871 no_glob_subst='s/\*/\\\*/g'
2872
2873 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2874 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2875 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2876
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2878 $as_echo_n "checking how to print strings... " >&6; }
2879 # Test print first, because it will be a builtin if present.
2880 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2881 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2882 ECHO='print -r --'
2883 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2884 ECHO='printf %s\n'
2885 else
2886 # Use this function as a fallback that always works.
2887 func_fallback_echo ()
2888 {
2889 eval 'cat <<_LTECHO_EOF
2890 $1
2891 _LTECHO_EOF'
2892 }
2893 ECHO='func_fallback_echo'
2894 fi
2895
2896 # func_echo_all arg...
2897 # Invoke $ECHO with all args, space-separated.
2898 func_echo_all ()
2899 {
2900 $ECHO ""
2901 }
2902
2903 case "$ECHO" in
2904 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2905 $as_echo "printf" >&6; } ;;
2906 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2907 $as_echo "print -r" >&6; } ;;
2908 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2909 $as_echo "cat" >&6; } ;;
2910 esac
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925 DEPDIR="${am__leading_dot}deps"
2926
2927 ac_config_commands="$ac_config_commands depfiles"
2928
2929
2930 am_make=${MAKE-make}
2931 cat > confinc << 'END'
2932 am__doit:
2933 @echo this is the am__doit target
2934 .PHONY: am__doit
2935 END
2936 # If we don't find an include directive, just comment out the code.
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2938 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2939 am__include="#"
2940 am__quote=
2941 _am_result=none
2942 # First try GNU make style include.
2943 echo "include confinc" > confmf
2944 # Ignore all kinds of additional output from `make'.
2945 case `$am_make -s -f confmf 2> /dev/null` in #(
2946 *the\ am__doit\ target*)
2947 am__include=include
2948 am__quote=
2949 _am_result=GNU
2950 ;;
2951 esac
2952 # Now try BSD make style include.
2953 if test "$am__include" = "#"; then
2954 echo '.include "confinc"' > confmf
2955 case `$am_make -s -f confmf 2> /dev/null` in #(
2956 *the\ am__doit\ target*)
2957 am__include=.include
2958 am__quote="\""
2959 _am_result=BSD
2960 ;;
2961 esac
2962 fi
2963
2964
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2966 $as_echo "$_am_result" >&6; }
2967 rm -f confinc confmf
2968
2969 # Check whether --enable-dependency-tracking was given.
2970 if test "${enable_dependency_tracking+set}" = set; then :
2971 enableval=$enable_dependency_tracking;
2972 fi
2973
2974 if test "x$enable_dependency_tracking" != xno; then
2975 am_depcomp="$ac_aux_dir/depcomp"
2976 AMDEPBACKSLASH='\'
2977 fi
2978 if test "x$enable_dependency_tracking" != xno; then
2979 AMDEP_TRUE=
2980 AMDEP_FALSE='#'
2981 else
2982 AMDEP_TRUE='#'
2983 AMDEP_FALSE=
2984 fi
2985
2986
2987 ac_ext=c
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 if test -n "$ac_tool_prefix"; then
2993 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2994 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_CC+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 CC=$ac_cv_prog_CC
3021 if test -n "$CC"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023 $as_echo "$CC" >&6; }
3024 else
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029
3030 fi
3031 if test -z "$ac_cv_prog_CC"; then
3032 ac_ct_CC=$CC
3033 # Extract the first word of "gcc", so it can be a program name with args.
3034 set dummy gcc; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3038 $as_echo_n "(cached) " >&6
3039 else
3040 if test -n "$ac_ct_CC"; then
3041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_ac_ct_CC="gcc"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3053 fi
3054 done
3055 done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3061 if test -n "$ac_ct_CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3063 $as_echo "$ac_ct_CC" >&6; }
3064 else
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069 if test "x$ac_ct_CC" = x; then
3070 CC=""
3071 else
3072 case $cross_compiling:$ac_tool_warned in
3073 yes:)
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076 ac_tool_warned=yes ;;
3077 esac
3078 CC=$ac_ct_CC
3079 fi
3080 else
3081 CC="$ac_cv_prog_CC"
3082 fi
3083
3084 if test -z "$CC"; then
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3087 set dummy ${ac_tool_prefix}cc; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_CC="${ac_tool_prefix}cc"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107 done
3108 done
3109 IFS=$as_save_IFS
3110
3111 fi
3112 fi
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123 fi
3124 fi
3125 if test -z "$CC"; then
3126 # Extract the first word of "cc", so it can be a program name with args.
3127 set dummy cc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3135 else
3136 ac_prog_rejected=no
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3145 ac_prog_rejected=yes
3146 continue
3147 fi
3148 ac_cv_prog_CC="cc"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 if test $ac_prog_rejected = yes; then
3157 # We found a bogon in the path, so make sure we never use it.
3158 set dummy $ac_cv_prog_CC
3159 shift
3160 if test $# != 0; then
3161 # We chose a different compiler from the bogus one.
3162 # However, it has the same basename, so the bogon will be chosen
3163 # first if we set CC to just the basename; use the full file name.
3164 shift
3165 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3166 fi
3167 fi
3168 fi
3169 fi
3170 CC=$ac_cv_prog_CC
3171 if test -n "$CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173 $as_echo "$CC" >&6; }
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 fi
3178
3179
3180 fi
3181 if test -z "$CC"; then
3182 if test -n "$ac_tool_prefix"; then
3183 for ac_prog in cl.exe
3184 do
3185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if ${ac_cv_prog_CC+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$CC"; then
3193 ac_cv_prog_CC="$CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206 done
3207 done
3208 IFS=$as_save_IFS
3209
3210 fi
3211 fi
3212 CC=$ac_cv_prog_CC
3213 if test -n "$CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3215 $as_echo "$CC" >&6; }
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fi
3220
3221
3222 test -n "$CC" && break
3223 done
3224 fi
3225 if test -z "$CC"; then
3226 ac_ct_CC=$CC
3227 for ac_prog in cl.exe
3228 do
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230 set dummy $ac_prog; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 if test -n "$ac_ct_CC"; then
3237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3246 ac_cv_prog_ac_ct_CC="$ac_prog"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3257 if test -n "$ac_ct_CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3259 $as_echo "$ac_ct_CC" >&6; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265
3266 test -n "$ac_ct_CC" && break
3267 done
3268
3269 if test "x$ac_ct_CC" = x; then
3270 CC=""
3271 else
3272 case $cross_compiling:$ac_tool_warned in
3273 yes:)
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3276 ac_tool_warned=yes ;;
3277 esac
3278 CC=$ac_ct_CC
3279 fi
3280 fi
3281
3282 fi
3283
3284
3285 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error $? "no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details" "$LINENO" 5; }
3289
3290 # Provide some information about the compiler.
3291 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3292 set X $ac_compile
3293 ac_compiler=$2
3294 for ac_option in --version -v -V -qversion; do
3295 { { ac_try="$ac_compiler $ac_option >&5"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3303 ac_status=$?
3304 if test -s conftest.err; then
3305 sed '10a\
3306 ... rest of stderr output deleted ...
3307 10q' conftest.err >conftest.er1
3308 cat conftest.er1 >&5
3309 fi
3310 rm -f conftest.er1 conftest.err
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }
3313 done
3314
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317
3318 int
3319 main ()
3320 {
3321
3322 ;
3323 return 0;
3324 }
3325 _ACEOF
3326 ac_clean_files_save=$ac_clean_files
3327 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3328 # Try to create an executable without -o first, disregard a.out.
3329 # It will help us diagnose broken compilers, and finding out an intuition
3330 # of exeext.
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3332 $as_echo_n "checking whether the C compiler works... " >&6; }
3333 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3334
3335 # The possible output files:
3336 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3337
3338 ac_rmfiles=
3339 for ac_file in $ac_files
3340 do
3341 case $ac_file in
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3343 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3344 esac
3345 done
3346 rm -f $ac_rmfiles
3347
3348 if { { ac_try="$ac_link_default"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_link_default") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }; then :
3359 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3360 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3361 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3362 # so that the user can short-circuit this test for compilers unknown to
3363 # Autoconf.
3364 for ac_file in $ac_files ''
3365 do
3366 test -f "$ac_file" || continue
3367 case $ac_file in
3368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3369 ;;
3370 [ab].out )
3371 # We found the default executable, but exeext='' is most
3372 # certainly right.
3373 break;;
3374 *.* )
3375 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3376 then :; else
3377 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 fi
3379 # We set ac_cv_exeext here because the later test for it is not
3380 # safe: cross compilers may not add the suffix if given an `-o'
3381 # argument, so we may need to know it at that point already.
3382 # Even if this section looks crufty: it has the advantage of
3383 # actually working.
3384 break;;
3385 * )
3386 break;;
3387 esac
3388 done
3389 test "$ac_cv_exeext" = no && ac_cv_exeext=
3390
3391 else
3392 ac_file=''
3393 fi
3394 if test -z "$ac_file"; then :
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error 77 "C compiler cannot create executables
3403 See \`config.log' for more details" "$LINENO" 5; }
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3406 $as_echo "yes" >&6; }
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3409 $as_echo_n "checking for C compiler default output file name... " >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3411 $as_echo "$ac_file" >&6; }
3412 ac_exeext=$ac_cv_exeext
3413
3414 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3415 ac_clean_files=$ac_clean_files_save
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3417 $as_echo_n "checking for suffix of executables... " >&6; }
3418 if { { ac_try="$ac_link"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_link") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }; then :
3429 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3430 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3431 # work properly (i.e., refer to `conftest.exe'), while it won't with
3432 # `rm'.
3433 for ac_file in conftest.exe conftest conftest.*; do
3434 test -f "$ac_file" || continue
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3438 break;;
3439 * ) break;;
3440 esac
3441 done
3442 else
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3446 See \`config.log' for more details" "$LINENO" 5; }
3447 fi
3448 rm -f conftest conftest$ac_cv_exeext
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3450 $as_echo "$ac_cv_exeext" >&6; }
3451
3452 rm -f conftest.$ac_ext
3453 EXEEXT=$ac_cv_exeext
3454 ac_exeext=$EXEEXT
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457 #include <stdio.h>
3458 int
3459 main ()
3460 {
3461 FILE *f = fopen ("conftest.out", "w");
3462 return ferror (f) || fclose (f) != 0;
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 ac_clean_files="$ac_clean_files conftest.out"
3469 # Check that the compiler produces executables we can run. If not, either
3470 # the compiler is broken, or we cross compile.
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3472 $as_echo_n "checking whether we are cross compiling... " >&6; }
3473 if test "$cross_compiling" != yes; then
3474 { { ac_try="$ac_link"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_link") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }
3485 if { ac_try='./conftest$ac_cv_exeext'
3486 { { case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_try") 2>&5
3493 ac_status=$?
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }; }; then
3496 cross_compiling=no
3497 else
3498 if test "$cross_compiling" = maybe; then
3499 cross_compiling=yes
3500 else
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error $? "cannot run C compiled programs.
3504 If you meant to cross compile, use \`--host'.
3505 See \`config.log' for more details" "$LINENO" 5; }
3506 fi
3507 fi
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3510 $as_echo "$cross_compiling" >&6; }
3511
3512 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3513 ac_clean_files=$ac_clean_files_save
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3515 $as_echo_n "checking for suffix of object files... " >&6; }
3516 if ${ac_cv_objext+:} false; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3521
3522 int
3523 main ()
3524 {
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 rm -f conftest.o conftest.obj
3531 if { { ac_try="$ac_compile"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_compile") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; then :
3542 for ac_file in conftest.o conftest.obj conftest.*; do
3543 test -f "$ac_file" || continue;
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3546 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3547 break;;
3548 esac
3549 done
3550 else
3551 $as_echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error $? "cannot compute suffix of object files: cannot compile
3557 See \`config.log' for more details" "$LINENO" 5; }
3558 fi
3559 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3562 $as_echo "$ac_cv_objext" >&6; }
3563 OBJEXT=$ac_cv_objext
3564 ac_objext=$OBJEXT
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3566 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3567 if ${ac_cv_c_compiler_gnu+:} false; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572
3573 int
3574 main ()
3575 {
3576 #ifndef __GNUC__
3577 choke me
3578 #endif
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_compiler_gnu=yes
3586 else
3587 ac_compiler_gnu=no
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3591
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3594 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3595 if test $ac_compiler_gnu = yes; then
3596 GCC=yes
3597 else
3598 GCC=
3599 fi
3600 ac_test_CFLAGS=${CFLAGS+set}
3601 ac_save_CFLAGS=$CFLAGS
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3603 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3604 if ${ac_cv_prog_cc_g+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 ac_save_c_werror_flag=$ac_c_werror_flag
3608 ac_c_werror_flag=yes
3609 ac_cv_prog_cc_g=no
3610 CFLAGS="-g"
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_g=yes
3624 else
3625 CFLAGS=""
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
3639 else
3640 ac_c_werror_flag=$ac_save_c_werror_flag
3641 CFLAGS="-g"
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_cv_prog_cc_g=yes
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 fi
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 fi
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_c_werror_flag=$ac_save_c_werror_flag
3662 fi
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3664 $as_echo "$ac_cv_prog_cc_g" >&6; }
3665 if test "$ac_test_CFLAGS" = set; then
3666 CFLAGS=$ac_save_CFLAGS
3667 elif test $ac_cv_prog_cc_g = yes; then
3668 if test "$GCC" = yes; then
3669 CFLAGS="-g -O2"
3670 else
3671 CFLAGS="-g"
3672 fi
3673 else
3674 if test "$GCC" = yes; then
3675 CFLAGS="-O2"
3676 else
3677 CFLAGS=
3678 fi
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3681 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3682 if ${ac_cv_prog_cc_c89+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 ac_cv_prog_cc_c89=no
3686 ac_save_CC=$CC
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689 #include <stdarg.h>
3690 #include <stdio.h>
3691 #include <sys/types.h>
3692 #include <sys/stat.h>
3693 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3694 struct buf { int x; };
3695 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3696 static char *e (p, i)
3697 char **p;
3698 int i;
3699 {
3700 return p[i];
3701 }
3702 static char *f (char * (*g) (char **, int), char **p, ...)
3703 {
3704 char *s;
3705 va_list v;
3706 va_start (v,p);
3707 s = g (p, va_arg (v,int));
3708 va_end (v);
3709 return s;
3710 }
3711
3712 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3713 function prototypes and stuff, but not '\xHH' hex character constants.
3714 These don't provoke an error unfortunately, instead are silently treated
3715 as 'x'. The following induces an error, until -std is added to get
3716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3717 array size at least. It's necessary to write '\x00'==0 to get something
3718 that's true only with -std. */
3719 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3720
3721 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3722 inside strings and character constants. */
3723 #define FOO(x) 'x'
3724 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3725
3726 int test (int i, double x);
3727 struct s1 {int (*f) (int a);};
3728 struct s2 {int (*f) (double a);};
3729 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3730 int argc;
3731 char **argv;
3732 int
3733 main ()
3734 {
3735 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3742 do
3743 CC="$ac_save_CC $ac_arg"
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_prog_cc_c89=$ac_arg
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext
3748 test "x$ac_cv_prog_cc_c89" != "xno" && break
3749 done
3750 rm -f conftest.$ac_ext
3751 CC=$ac_save_CC
3752
3753 fi
3754 # AC_CACHE_VAL
3755 case "x$ac_cv_prog_cc_c89" in
3756 x)
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3758 $as_echo "none needed" >&6; } ;;
3759 xno)
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3761 $as_echo "unsupported" >&6; } ;;
3762 *)
3763 CC="$CC $ac_cv_prog_cc_c89"
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3765 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3766 esac
3767 if test "x$ac_cv_prog_cc_c89" != xno; then :
3768
3769 fi
3770
3771 ac_ext=c
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776
3777 depcc="$CC" am_compiler_list=
3778
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3780 $as_echo_n "checking dependency style of $depcc... " >&6; }
3781 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3785 # We make a subdir and do the tests there. Otherwise we can end up
3786 # making bogus files that we don't know about and never remove. For
3787 # instance it was reported that on HP-UX the gcc test will end up
3788 # making a dummy file named `D' -- because `-MD' means `put the output
3789 # in D'.
3790 mkdir conftest.dir
3791 # Copy depcomp to subdir because otherwise we won't find it if we're
3792 # using a relative directory.
3793 cp "$am_depcomp" conftest.dir
3794 cd conftest.dir
3795 # We will build objects and dependencies in a subdirectory because
3796 # it helps to detect inapplicable dependency modes. For instance
3797 # both Tru64's cc and ICC support -MD to output dependencies as a
3798 # side effect of compilation, but ICC will put the dependencies in
3799 # the current directory while Tru64 will put them in the object
3800 # directory.
3801 mkdir sub
3802
3803 am_cv_CC_dependencies_compiler_type=none
3804 if test "$am_compiler_list" = ""; then
3805 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3806 fi
3807 am__universal=false
3808 case " $depcc " in #(
3809 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3810 esac
3811
3812 for depmode in $am_compiler_list; do
3813 # Setup a source with many dependencies, because some compilers
3814 # like to wrap large dependency lists on column 80 (with \), and
3815 # we should not choose a depcomp mode which is confused by this.
3816 #
3817 # We need to recreate these files for each test, as the compiler may
3818 # overwrite some of them when testing with obscure command lines.
3819 # This happens at least with the AIX C compiler.
3820 : > sub/conftest.c
3821 for i in 1 2 3 4 5 6; do
3822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3824 # Solaris 8's {/usr,}/bin/sh.
3825 touch sub/conftst$i.h
3826 done
3827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3828
3829 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3830 # mode. It turns out that the SunPro C++ compiler does not properly
3831 # handle `-M -o', and we need to detect this. Also, some Intel
3832 # versions had trouble with output in subdirs
3833 am__obj=sub/conftest.${OBJEXT-o}
3834 am__minus_obj="-o $am__obj"
3835 case $depmode in
3836 gcc)
3837 # This depmode causes a compiler race in universal mode.
3838 test "$am__universal" = false || continue
3839 ;;
3840 nosideeffect)
3841 # after this tag, mechanisms are not by side-effect, so they'll
3842 # only be used when explicitly requested
3843 if test "x$enable_dependency_tracking" = xyes; then
3844 continue
3845 else
3846 break
3847 fi
3848 ;;
3849 msvisualcpp | msvcmsys)
3850 # This compiler won't grok `-c -o', but also, the minuso test has
3851 # not run yet. These depmodes are late enough in the game, and
3852 # so weak that their functioning should not be impacted.
3853 am__obj=conftest.${OBJEXT-o}
3854 am__minus_obj=
3855 ;;
3856 none) break ;;
3857 esac
3858 if depmode=$depmode \
3859 source=sub/conftest.c object=$am__obj \
3860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3862 >/dev/null 2>conftest.err &&
3863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3867 # icc doesn't choke on unknown options, it will just issue warnings
3868 # or remarks (even with -Werror). So we grep stderr for any message
3869 # that says an option was ignored or not supported.
3870 # When given -MP, icc 7.0 and 7.1 complain thusly:
3871 # icc: Command line warning: ignoring option '-M'; no argument required
3872 # The diagnosis changed in icc 8.0:
3873 # icc: Command line remark: option '-MP' not supported
3874 if (grep 'ignoring option' conftest.err ||
3875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3876 am_cv_CC_dependencies_compiler_type=$depmode
3877 break
3878 fi
3879 fi
3880 done
3881
3882 cd ..
3883 rm -rf conftest.dir
3884 else
3885 am_cv_CC_dependencies_compiler_type=none
3886 fi
3887
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3890 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3891 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3892
3893 if
3894 test "x$enable_dependency_tracking" != xno \
3895 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3896 am__fastdepCC_TRUE=
3897 am__fastdepCC_FALSE='#'
3898 else
3899 am__fastdepCC_TRUE='#'
3900 am__fastdepCC_FALSE=
3901 fi
3902
3903
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3905 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3906 if ${ac_cv_path_SED+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3910 for ac_i in 1 2 3 4 5 6 7; do
3911 ac_script="$ac_script$as_nl$ac_script"
3912 done
3913 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3914 { ac_script=; unset ac_script;}
3915 if test -z "$SED"; then
3916 ac_path_SED_found=false
3917 # Loop through the user's path and test for each of PROGNAME-LIST
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_prog in sed gsed; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3926 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3927 # Check for GNU ac_path_SED and select it if it is found.
3928 # Check for GNU $ac_path_SED
3929 case `"$ac_path_SED" --version 2>&1` in
3930 *GNU*)
3931 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3932 *)
3933 ac_count=0
3934 $as_echo_n 0123456789 >"conftest.in"
3935 while :
3936 do
3937 cat "conftest.in" "conftest.in" >"conftest.tmp"
3938 mv "conftest.tmp" "conftest.in"
3939 cp "conftest.in" "conftest.nl"
3940 $as_echo '' >> "conftest.nl"
3941 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3942 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3943 as_fn_arith $ac_count + 1 && ac_count=$as_val
3944 if test $ac_count -gt ${ac_path_SED_max-0}; then
3945 # Best one so far, save it but keep looking for a better one
3946 ac_cv_path_SED="$ac_path_SED"
3947 ac_path_SED_max=$ac_count
3948 fi
3949 # 10*(2^10) chars as input seems more than enough
3950 test $ac_count -gt 10 && break
3951 done
3952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3953 esac
3954
3955 $ac_path_SED_found && break 3
3956 done
3957 done
3958 done
3959 IFS=$as_save_IFS
3960 if test -z "$ac_cv_path_SED"; then
3961 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3962 fi
3963 else
3964 ac_cv_path_SED=$SED
3965 fi
3966
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3969 $as_echo "$ac_cv_path_SED" >&6; }
3970 SED="$ac_cv_path_SED"
3971 rm -f conftest.sed
3972
3973 test -z "$SED" && SED=sed
3974 Xsed="$SED -e 1s/^X//"
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3987 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3988 if ${ac_cv_path_GREP+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -z "$GREP"; then
3992 ac_path_GREP_found=false
3993 # Loop through the user's path and test for each of PROGNAME-LIST
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3996 do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_prog in grep ggrep; do
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4002 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4003 # Check for GNU ac_path_GREP and select it if it is found.
4004 # Check for GNU $ac_path_GREP
4005 case `"$ac_path_GREP" --version 2>&1` in
4006 *GNU*)
4007 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4008 *)
4009 ac_count=0
4010 $as_echo_n 0123456789 >"conftest.in"
4011 while :
4012 do
4013 cat "conftest.in" "conftest.in" >"conftest.tmp"
4014 mv "conftest.tmp" "conftest.in"
4015 cp "conftest.in" "conftest.nl"
4016 $as_echo 'GREP' >> "conftest.nl"
4017 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4019 as_fn_arith $ac_count + 1 && ac_count=$as_val
4020 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4021 # Best one so far, save it but keep looking for a better one
4022 ac_cv_path_GREP="$ac_path_GREP"
4023 ac_path_GREP_max=$ac_count
4024 fi
4025 # 10*(2^10) chars as input seems more than enough
4026 test $ac_count -gt 10 && break
4027 done
4028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4029 esac
4030
4031 $ac_path_GREP_found && break 3
4032 done
4033 done
4034 done
4035 IFS=$as_save_IFS
4036 if test -z "$ac_cv_path_GREP"; then
4037 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4038 fi
4039 else
4040 ac_cv_path_GREP=$GREP
4041 fi
4042
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4045 $as_echo "$ac_cv_path_GREP" >&6; }
4046 GREP="$ac_cv_path_GREP"
4047
4048
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4050 $as_echo_n "checking for egrep... " >&6; }
4051 if ${ac_cv_path_EGREP+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4055 then ac_cv_path_EGREP="$GREP -E"
4056 else
4057 if test -z "$EGREP"; then
4058 ac_path_EGREP_found=false
4059 # Loop through the user's path and test for each of PROGNAME-LIST
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4062 do
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
4065 for ac_prog in egrep; do
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4068 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4069 # Check for GNU ac_path_EGREP and select it if it is found.
4070 # Check for GNU $ac_path_EGREP
4071 case `"$ac_path_EGREP" --version 2>&1` in
4072 *GNU*)
4073 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4074 *)
4075 ac_count=0
4076 $as_echo_n 0123456789 >"conftest.in"
4077 while :
4078 do
4079 cat "conftest.in" "conftest.in" >"conftest.tmp"
4080 mv "conftest.tmp" "conftest.in"
4081 cp "conftest.in" "conftest.nl"
4082 $as_echo 'EGREP' >> "conftest.nl"
4083 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085 as_fn_arith $ac_count + 1 && ac_count=$as_val
4086 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4087 # Best one so far, save it but keep looking for a better one
4088 ac_cv_path_EGREP="$ac_path_EGREP"
4089 ac_path_EGREP_max=$ac_count
4090 fi
4091 # 10*(2^10) chars as input seems more than enough
4092 test $ac_count -gt 10 && break
4093 done
4094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095 esac
4096
4097 $ac_path_EGREP_found && break 3
4098 done
4099 done
4100 done
4101 IFS=$as_save_IFS
4102 if test -z "$ac_cv_path_EGREP"; then
4103 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4104 fi
4105 else
4106 ac_cv_path_EGREP=$EGREP
4107 fi
4108
4109 fi
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4112 $as_echo "$ac_cv_path_EGREP" >&6; }
4113 EGREP="$ac_cv_path_EGREP"
4114
4115
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4117 $as_echo_n "checking for fgrep... " >&6; }
4118 if ${ac_cv_path_FGREP+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4122 then ac_cv_path_FGREP="$GREP -F"
4123 else
4124 if test -z "$FGREP"; then
4125 ac_path_FGREP_found=false
4126 # Loop through the user's path and test for each of PROGNAME-LIST
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4129 do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_prog in fgrep; do
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4135 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4136 # Check for GNU ac_path_FGREP and select it if it is found.
4137 # Check for GNU $ac_path_FGREP
4138 case `"$ac_path_FGREP" --version 2>&1` in
4139 *GNU*)
4140 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4141 *)
4142 ac_count=0
4143 $as_echo_n 0123456789 >"conftest.in"
4144 while :
4145 do
4146 cat "conftest.in" "conftest.in" >"conftest.tmp"
4147 mv "conftest.tmp" "conftest.in"
4148 cp "conftest.in" "conftest.nl"
4149 $as_echo 'FGREP' >> "conftest.nl"
4150 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4152 as_fn_arith $ac_count + 1 && ac_count=$as_val
4153 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4154 # Best one so far, save it but keep looking for a better one
4155 ac_cv_path_FGREP="$ac_path_FGREP"
4156 ac_path_FGREP_max=$ac_count
4157 fi
4158 # 10*(2^10) chars as input seems more than enough
4159 test $ac_count -gt 10 && break
4160 done
4161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4162 esac
4163
4164 $ac_path_FGREP_found && break 3
4165 done
4166 done
4167 done
4168 IFS=$as_save_IFS
4169 if test -z "$ac_cv_path_FGREP"; then
4170 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4171 fi
4172 else
4173 ac_cv_path_FGREP=$FGREP
4174 fi
4175
4176 fi
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4179 $as_echo "$ac_cv_path_FGREP" >&6; }
4180 FGREP="$ac_cv_path_FGREP"
4181
4182
4183 test -z "$GREP" && GREP=grep
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203 # Check whether --with-gnu-ld was given.
4204 if test "${with_gnu_ld+set}" = set; then :
4205 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4206 else
4207 with_gnu_ld=no
4208 fi
4209
4210 ac_prog=ld
4211 if test "$GCC" = yes; then
4212 # Check if gcc -print-prog-name=ld gives a path.
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4214 $as_echo_n "checking for ld used by $CC... " >&6; }
4215 case $host in
4216 *-*-mingw*)
4217 # gcc leaves a trailing carriage return which upsets mingw
4218 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4219 *)
4220 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4221 esac
4222 case $ac_prog in
4223 # Accept absolute paths.
4224 [\\/]* | ?:[\\/]*)
4225 re_direlt='/[^/][^/]*/\.\./'
4226 # Canonicalize the pathname of ld
4227 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4228 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4229 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4230 done
4231 test -z "$LD" && LD="$ac_prog"
4232 ;;
4233 "")
4234 # If it fails, then pretend we aren't using GCC.
4235 ac_prog=ld
4236 ;;
4237 *)
4238 # If it is relative, then search for the first ld in PATH.
4239 with_gnu_ld=unknown
4240 ;;
4241 esac
4242 elif test "$with_gnu_ld" = yes; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4244 $as_echo_n "checking for GNU ld... " >&6; }
4245 else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4247 $as_echo_n "checking for non-GNU ld... " >&6; }
4248 fi
4249 if ${lt_cv_path_LD+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 if test -z "$LD"; then
4253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4254 for ac_dir in $PATH; do
4255 IFS="$lt_save_ifs"
4256 test -z "$ac_dir" && ac_dir=.
4257 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4258 lt_cv_path_LD="$ac_dir/$ac_prog"
4259 # Check to see if the program is GNU ld. I'd rather use --version,
4260 # but apparently some variants of GNU ld only accept -v.
4261 # Break only if it was the GNU/non-GNU ld that we prefer.
4262 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4263 *GNU* | *'with BFD'*)
4264 test "$with_gnu_ld" != no && break
4265 ;;
4266 *)
4267 test "$with_gnu_ld" != yes && break
4268 ;;
4269 esac
4270 fi
4271 done
4272 IFS="$lt_save_ifs"
4273 else
4274 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4275 fi
4276 fi
4277
4278 LD="$lt_cv_path_LD"
4279 if test -n "$LD"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4281 $as_echo "$LD" >&6; }
4282 else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4285 fi
4286 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4288 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4289 if ${lt_cv_prog_gnu_ld+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4293 case `$LD -v 2>&1 </dev/null` in
4294 *GNU* | *'with BFD'*)
4295 lt_cv_prog_gnu_ld=yes
4296 ;;
4297 *)
4298 lt_cv_prog_gnu_ld=no
4299 ;;
4300 esac
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4303 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4304 with_gnu_ld=$lt_cv_prog_gnu_ld
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4315 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4316 if ${lt_cv_path_NM+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if test -n "$NM"; then
4320 # Let the user override the test.
4321 lt_cv_path_NM="$NM"
4322 else
4323 lt_nm_to_check="${ac_tool_prefix}nm"
4324 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4325 lt_nm_to_check="$lt_nm_to_check nm"
4326 fi
4327 for lt_tmp_nm in $lt_nm_to_check; do
4328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4329 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4330 IFS="$lt_save_ifs"
4331 test -z "$ac_dir" && ac_dir=.
4332 tmp_nm="$ac_dir/$lt_tmp_nm"
4333 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4334 # Check to see if the nm accepts a BSD-compat flag.
4335 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4336 # nm: unknown option "B" ignored
4337 # Tru64's nm complains that /dev/null is an invalid object file
4338 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4339 */dev/null* | *'Invalid file or object type'*)
4340 lt_cv_path_NM="$tmp_nm -B"
4341 break
4342 ;;
4343 *)
4344 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4345 */dev/null*)
4346 lt_cv_path_NM="$tmp_nm -p"
4347 break
4348 ;;
4349 *)
4350 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4351 continue # so that we can try to find one that supports BSD flags
4352 ;;
4353 esac
4354 ;;
4355 esac
4356 fi
4357 done
4358 IFS="$lt_save_ifs"
4359 done
4360 : ${lt_cv_path_NM=no}
4361 fi
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4364 $as_echo "$lt_cv_path_NM" >&6; }
4365 if test "$lt_cv_path_NM" != "no"; then
4366 NM="$lt_cv_path_NM"
4367 else
4368 # Didn't find any BSD compatible name lister, look for dumpbin.
4369 if test -n "$DUMPBIN"; then :
4370 # Let the user override the test.
4371 else
4372 if test -n "$ac_tool_prefix"; then
4373 for ac_prog in dumpbin "link -dump"
4374 do
4375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378 $as_echo_n "checking for $ac_word... " >&6; }
4379 if ${ac_cv_prog_DUMPBIN+:} false; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 if test -n "$DUMPBIN"; then
4383 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4384 else
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4387 do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4395 fi
4396 done
4397 done
4398 IFS=$as_save_IFS
4399
4400 fi
4401 fi
4402 DUMPBIN=$ac_cv_prog_DUMPBIN
4403 if test -n "$DUMPBIN"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4405 $as_echo "$DUMPBIN" >&6; }
4406 else
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4409 fi
4410
4411
4412 test -n "$DUMPBIN" && break
4413 done
4414 fi
4415 if test -z "$DUMPBIN"; then
4416 ac_ct_DUMPBIN=$DUMPBIN
4417 for ac_prog in dumpbin "link -dump"
4418 do
4419 # Extract the first word of "$ac_prog", so it can be a program name with args.
4420 set dummy $ac_prog; ac_word=$2
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 if test -n "$ac_ct_DUMPBIN"; then
4427 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4439 fi
4440 done
4441 done
4442 IFS=$as_save_IFS
4443
4444 fi
4445 fi
4446 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4447 if test -n "$ac_ct_DUMPBIN"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4449 $as_echo "$ac_ct_DUMPBIN" >&6; }
4450 else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 $as_echo "no" >&6; }
4453 fi
4454
4455
4456 test -n "$ac_ct_DUMPBIN" && break
4457 done
4458
4459 if test "x$ac_ct_DUMPBIN" = x; then
4460 DUMPBIN=":"
4461 else
4462 case $cross_compiling:$ac_tool_warned in
4463 yes:)
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4466 ac_tool_warned=yes ;;
4467 esac
4468 DUMPBIN=$ac_ct_DUMPBIN
4469 fi
4470 fi
4471
4472 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4473 *COFF*)
4474 DUMPBIN="$DUMPBIN -symbols"
4475 ;;
4476 *)
4477 DUMPBIN=:
4478 ;;
4479 esac
4480 fi
4481
4482 if test "$DUMPBIN" != ":"; then
4483 NM="$DUMPBIN"
4484 fi
4485 fi
4486 test -z "$NM" && NM=nm
4487
4488
4489
4490
4491
4492
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4494 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4495 if ${lt_cv_nm_interface+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 lt_cv_nm_interface="BSD nm"
4499 echo "int some_variable = 0;" > conftest.$ac_ext
4500 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4501 (eval "$ac_compile" 2>conftest.err)
4502 cat conftest.err >&5
4503 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4504 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4505 cat conftest.err >&5
4506 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4507 cat conftest.out >&5
4508 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4509 lt_cv_nm_interface="MS dumpbin"
4510 fi
4511 rm -f conftest*
4512 fi
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4514 $as_echo "$lt_cv_nm_interface" >&6; }
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4517 $as_echo_n "checking whether ln -s works... " >&6; }
4518 LN_S=$as_ln_s
4519 if test "$LN_S" = "ln -s"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4521 $as_echo "yes" >&6; }
4522 else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4524 $as_echo "no, using $LN_S" >&6; }
4525 fi
4526
4527 # find the maximum length of command line arguments
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4529 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4530 if ${lt_cv_sys_max_cmd_len+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 i=0
4534 teststring="ABCD"
4535
4536 case $build_os in
4537 msdosdjgpp*)
4538 # On DJGPP, this test can blow up pretty badly due to problems in libc
4539 # (any single argument exceeding 2000 bytes causes a buffer overrun
4540 # during glob expansion). Even if it were fixed, the result of this
4541 # check would be larger than it should be.
4542 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4543 ;;
4544
4545 gnu*)
4546 # Under GNU Hurd, this test is not required because there is
4547 # no limit to the length of command line arguments.
4548 # Libtool will interpret -1 as no limit whatsoever
4549 lt_cv_sys_max_cmd_len=-1;
4550 ;;
4551
4552 cygwin* | mingw* | cegcc*)
4553 # On Win9x/ME, this test blows up -- it succeeds, but takes
4554 # about 5 minutes as the teststring grows exponentially.
4555 # Worse, since 9x/ME are not pre-emptively multitasking,
4556 # you end up with a "frozen" computer, even though with patience
4557 # the test eventually succeeds (with a max line length of 256k).
4558 # Instead, let's just punt: use the minimum linelength reported by
4559 # all of the supported platforms: 8192 (on NT/2K/XP).
4560 lt_cv_sys_max_cmd_len=8192;
4561 ;;
4562
4563 mint*)
4564 # On MiNT this can take a long time and run out of memory.
4565 lt_cv_sys_max_cmd_len=8192;
4566 ;;
4567
4568 amigaos*)
4569 # On AmigaOS with pdksh, this test takes hours, literally.
4570 # So we just punt and use a minimum line length of 8192.
4571 lt_cv_sys_max_cmd_len=8192;
4572 ;;
4573
4574 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4575 # This has been around since 386BSD, at least. Likely further.
4576 if test -x /sbin/sysctl; then
4577 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4578 elif test -x /usr/sbin/sysctl; then
4579 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4580 else
4581 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4582 fi
4583 # And add a safety zone
4584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4586 ;;
4587
4588 interix*)
4589 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4590 lt_cv_sys_max_cmd_len=196608
4591 ;;
4592
4593 osf*)
4594 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4595 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4596 # nice to cause kernel panics so lets avoid the loop below.
4597 # First set a reasonable default.
4598 lt_cv_sys_max_cmd_len=16384
4599 #
4600 if test -x /sbin/sysconfig; then
4601 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4602 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4603 esac
4604 fi
4605 ;;
4606 sco3.2v5*)
4607 lt_cv_sys_max_cmd_len=102400
4608 ;;
4609 sysv5* | sco5v6* | sysv4.2uw2*)
4610 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4611 if test -n "$kargmax"; then
4612 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4613 else
4614 lt_cv_sys_max_cmd_len=32768
4615 fi
4616 ;;
4617 *)
4618 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4619 if test -n "$lt_cv_sys_max_cmd_len"; then
4620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4622 else
4623 # Make teststring a little bigger before we do anything with it.
4624 # a 1K string should be a reasonable start.
4625 for i in 1 2 3 4 5 6 7 8 ; do
4626 teststring=$teststring$teststring
4627 done
4628 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4629 # If test is not a shell built-in, we'll probably end up computing a
4630 # maximum length that is only half of the actual maximum length, but
4631 # we can't tell.
4632 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4633 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4634 test $i != 17 # 1/2 MB should be enough
4635 do
4636 i=`expr $i + 1`
4637 teststring=$teststring$teststring
4638 done
4639 # Only check the string length outside the loop.
4640 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4641 teststring=
4642 # Add a significant safety factor because C++ compilers can tack on
4643 # massive amounts of additional arguments before passing them to the
4644 # linker. It appears as though 1/2 is a usable value.
4645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4646 fi
4647 ;;
4648 esac
4649
4650 fi
4651
4652 if test -n $lt_cv_sys_max_cmd_len ; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4654 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4657 $as_echo "none" >&6; }
4658 fi
4659 max_cmd_len=$lt_cv_sys_max_cmd_len
4660
4661
4662
4663
4664
4665
4666 : ${CP="cp -f"}
4667 : ${MV="mv -f"}
4668 : ${RM="rm -f"}
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4671 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4672 # Try some XSI features
4673 xsi_shell=no
4674 ( _lt_dummy="a/b/c"
4675 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4676 = c,a/b,b/c, \
4677 && eval 'test $(( 1 + 1 )) -eq 2 \
4678 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4679 && xsi_shell=yes
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4681 $as_echo "$xsi_shell" >&6; }
4682
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4685 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4686 lt_shell_append=no
4687 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4688 >/dev/null 2>&1 \
4689 && lt_shell_append=yes
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4691 $as_echo "$lt_shell_append" >&6; }
4692
4693
4694 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4695 lt_unset=unset
4696 else
4697 lt_unset=false
4698 fi
4699
4700
4701
4702
4703
4704 # test EBCDIC or ASCII
4705 case `echo X|tr X '\101'` in
4706 A) # ASCII based system
4707 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4708 lt_SP2NL='tr \040 \012'
4709 lt_NL2SP='tr \015\012 \040\040'
4710 ;;
4711 *) # EBCDIC based system
4712 lt_SP2NL='tr \100 \n'
4713 lt_NL2SP='tr \r\n \100\100'
4714 ;;
4715 esac
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4726 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4727 if ${lt_cv_to_host_file_cmd+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 case $host in
4731 *-*-mingw* )
4732 case $build in
4733 *-*-mingw* ) # actually msys
4734 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4735 ;;
4736 *-*-cygwin* )
4737 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4738 ;;
4739 * ) # otherwise, assume *nix
4740 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4741 ;;
4742 esac
4743 ;;
4744 *-*-cygwin* )
4745 case $build in
4746 *-*-mingw* ) # actually msys
4747 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4748 ;;
4749 *-*-cygwin* )
4750 lt_cv_to_host_file_cmd=func_convert_file_noop
4751 ;;
4752 * ) # otherwise, assume *nix
4753 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4754 ;;
4755 esac
4756 ;;
4757 * ) # unhandled hosts (and "normal" native builds)
4758 lt_cv_to_host_file_cmd=func_convert_file_noop
4759 ;;
4760 esac
4761
4762 fi
4763
4764 to_host_file_cmd=$lt_cv_to_host_file_cmd
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4766 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4767
4768
4769
4770
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4773 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4774 if ${lt_cv_to_tool_file_cmd+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 #assume ordinary cross tools, or native build.
4778 lt_cv_to_tool_file_cmd=func_convert_file_noop
4779 case $host in
4780 *-*-mingw* )
4781 case $build in
4782 *-*-mingw* ) # actually msys
4783 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4784 ;;
4785 esac
4786 ;;
4787 esac
4788
4789 fi
4790
4791 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4793 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4794
4795
4796
4797
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4800 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4801 if ${lt_cv_ld_reload_flag+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 lt_cv_ld_reload_flag='-r'
4805 fi
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4807 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4808 reload_flag=$lt_cv_ld_reload_flag
4809 case $reload_flag in
4810 "" | " "*) ;;
4811 *) reload_flag=" $reload_flag" ;;
4812 esac
4813 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4814 case $host_os in
4815 cygwin* | mingw* | pw32* | cegcc*)
4816 if test "$GCC" != yes; then
4817 reload_cmds=false
4818 fi
4819 ;;
4820 darwin*)
4821 if test "$GCC" = yes; then
4822 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4823 else
4824 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4825 fi
4826 ;;
4827 esac
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837 if test -n "$ac_tool_prefix"; then
4838 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4839 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_prog_OBJDUMP+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$OBJDUMP"; then
4846 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4858 fi
4859 done
4860 done
4861 IFS=$as_save_IFS
4862
4863 fi
4864 fi
4865 OBJDUMP=$ac_cv_prog_OBJDUMP
4866 if test -n "$OBJDUMP"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4868 $as_echo "$OBJDUMP" >&6; }
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4872 fi
4873
4874
4875 fi
4876 if test -z "$ac_cv_prog_OBJDUMP"; then
4877 ac_ct_OBJDUMP=$OBJDUMP
4878 # Extract the first word of "objdump", so it can be a program name with args.
4879 set dummy objdump; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test -n "$ac_ct_OBJDUMP"; then
4886 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4906 if test -n "$ac_ct_OBJDUMP"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4908 $as_echo "$ac_ct_OBJDUMP" >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4912 fi
4913
4914 if test "x$ac_ct_OBJDUMP" = x; then
4915 OBJDUMP="false"
4916 else
4917 case $cross_compiling:$ac_tool_warned in
4918 yes:)
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4921 ac_tool_warned=yes ;;
4922 esac
4923 OBJDUMP=$ac_ct_OBJDUMP
4924 fi
4925 else
4926 OBJDUMP="$ac_cv_prog_OBJDUMP"
4927 fi
4928
4929 test -z "$OBJDUMP" && OBJDUMP=objdump
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4940 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4941 if ${lt_cv_deplibs_check_method+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 lt_cv_file_magic_cmd='$MAGIC_CMD'
4945 lt_cv_file_magic_test_file=
4946 lt_cv_deplibs_check_method='unknown'
4947 # Need to set the preceding variable on all platforms that support
4948 # interlibrary dependencies.
4949 # 'none' -- dependencies not supported.
4950 # `unknown' -- same as none, but documents that we really don't know.
4951 # 'pass_all' -- all dependencies passed with no checks.
4952 # 'test_compile' -- check by making test program.
4953 # 'file_magic [[regex]]' -- check by looking for files in library path
4954 # which responds to the $file_magic_cmd with a given extended regex.
4955 # If you have `file' or equivalent on your system and you're not sure
4956 # whether `pass_all' will *always* work, you probably want this one.
4957
4958 case $host_os in
4959 aix[4-9]*)
4960 lt_cv_deplibs_check_method=pass_all
4961 ;;
4962
4963 beos*)
4964 lt_cv_deplibs_check_method=pass_all
4965 ;;
4966
4967 bsdi[45]*)
4968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4969 lt_cv_file_magic_cmd='/usr/bin/file -L'
4970 lt_cv_file_magic_test_file=/shlib/libc.so
4971 ;;
4972
4973 cygwin*)
4974 # func_win32_libid is a shell function defined in ltmain.sh
4975 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4976 lt_cv_file_magic_cmd='func_win32_libid'
4977 ;;
4978
4979 mingw* | pw32*)
4980 # Base MSYS/MinGW do not provide the 'file' command needed by
4981 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4982 # unless we find 'file', for example because we are cross-compiling.
4983 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4984 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4985 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4986 lt_cv_file_magic_cmd='func_win32_libid'
4987 else
4988 # Keep this pattern in sync with the one in func_win32_libid.
4989 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4990 lt_cv_file_magic_cmd='$OBJDUMP -f'
4991 fi
4992 ;;
4993
4994 cegcc*)
4995 # use the weaker test based on 'objdump'. See mingw*.
4996 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4997 lt_cv_file_magic_cmd='$OBJDUMP -f'
4998 ;;
4999
5000 darwin* | rhapsody*)
5001 lt_cv_deplibs_check_method=pass_all
5002 ;;
5003
5004 freebsd* | dragonfly*)
5005 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5006 case $host_cpu in
5007 i*86 )
5008 # Not sure whether the presence of OpenBSD here was a mistake.
5009 # Let's accept both of them until this is cleared up.
5010 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5011 lt_cv_file_magic_cmd=/usr/bin/file
5012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5013 ;;
5014 esac
5015 else
5016 lt_cv_deplibs_check_method=pass_all
5017 fi
5018 ;;
5019
5020 gnu*)
5021 lt_cv_deplibs_check_method=pass_all
5022 ;;
5023
5024 haiku*)
5025 lt_cv_deplibs_check_method=pass_all
5026 ;;
5027
5028 hpux10.20* | hpux11*)
5029 lt_cv_file_magic_cmd=/usr/bin/file
5030 case $host_cpu in
5031 ia64*)
5032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5033 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5034 ;;
5035 hppa*64*)
5036 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]'
5037 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5038 ;;
5039 *)
5040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5042 ;;
5043 esac
5044 ;;
5045
5046 interix[3-9]*)
5047 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5049 ;;
5050
5051 irix5* | irix6* | nonstopux*)
5052 case $LD in
5053 *-32|*"-32 ") libmagic=32-bit;;
5054 *-n32|*"-n32 ") libmagic=N32;;
5055 *-64|*"-64 ") libmagic=64-bit;;
5056 *) libmagic=never-match;;
5057 esac
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060
5061 # This must be Linux ELF.
5062 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5063 lt_cv_deplibs_check_method=pass_all
5064 ;;
5065
5066 netbsd*)
5067 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5069 else
5070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5071 fi
5072 ;;
5073
5074 newos6*)
5075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5076 lt_cv_file_magic_cmd=/usr/bin/file
5077 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5078 ;;
5079
5080 *nto* | *qnx*)
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
5083
5084 openbsd*)
5085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5087 else
5088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5089 fi
5090 ;;
5091
5092 osf3* | osf4* | osf5*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095
5096 rdos*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099
5100 solaris*)
5101 lt_cv_deplibs_check_method=pass_all
5102 ;;
5103
5104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5105 lt_cv_deplibs_check_method=pass_all
5106 ;;
5107
5108 sysv4 | sysv4.3*)
5109 case $host_vendor in
5110 motorola)
5111 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]'
5112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5113 ;;
5114 ncr)
5115 lt_cv_deplibs_check_method=pass_all
5116 ;;
5117 sequent)
5118 lt_cv_file_magic_cmd='/bin/file'
5119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5120 ;;
5121 sni)
5122 lt_cv_file_magic_cmd='/bin/file'
5123 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5124 lt_cv_file_magic_test_file=/lib/libc.so
5125 ;;
5126 siemens)
5127 lt_cv_deplibs_check_method=pass_all
5128 ;;
5129 pc)
5130 lt_cv_deplibs_check_method=pass_all
5131 ;;
5132 esac
5133 ;;
5134
5135 tpf*)
5136 lt_cv_deplibs_check_method=pass_all
5137 ;;
5138 esac
5139
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5142 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5143
5144 file_magic_glob=
5145 want_nocaseglob=no
5146 if test "$build" = "$host"; then
5147 case $host_os in
5148 mingw* | pw32*)
5149 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5150 want_nocaseglob=yes
5151 else
5152 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5153 fi
5154 ;;
5155 esac
5156 fi
5157
5158 file_magic_cmd=$lt_cv_file_magic_cmd
5159 deplibs_check_method=$lt_cv_deplibs_check_method
5160 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183 if test -n "$ac_tool_prefix"; then
5184 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5185 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_DLLTOOL+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$DLLTOOL"; then
5192 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205 done
5206 done
5207 IFS=$as_save_IFS
5208
5209 fi
5210 fi
5211 DLLTOOL=$ac_cv_prog_DLLTOOL
5212 if test -n "$DLLTOOL"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5214 $as_echo "$DLLTOOL" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220
5221 fi
5222 if test -z "$ac_cv_prog_DLLTOOL"; then
5223 ac_ct_DLLTOOL=$DLLTOOL
5224 # Extract the first word of "dlltool", so it can be a program name with args.
5225 set dummy dlltool; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$ac_ct_DLLTOOL"; then
5232 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249 fi
5250 fi
5251 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5252 if test -n "$ac_ct_DLLTOOL"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5254 $as_echo "$ac_ct_DLLTOOL" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260 if test "x$ac_ct_DLLTOOL" = x; then
5261 DLLTOOL="false"
5262 else
5263 case $cross_compiling:$ac_tool_warned in
5264 yes:)
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5267 ac_tool_warned=yes ;;
5268 esac
5269 DLLTOOL=$ac_ct_DLLTOOL
5270 fi
5271 else
5272 DLLTOOL="$ac_cv_prog_DLLTOOL"
5273 fi
5274
5275 test -z "$DLLTOOL" && DLLTOOL=dlltool
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5287 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5288 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 lt_cv_sharedlib_from_linklib_cmd='unknown'
5292
5293 case $host_os in
5294 cygwin* | mingw* | pw32* | cegcc*)
5295 # two different shell functions defined in ltmain.sh
5296 # decide which to use based on capabilities of $DLLTOOL
5297 case `$DLLTOOL --help 2>&1` in
5298 *--identify-strict*)
5299 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5300 ;;
5301 *)
5302 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5303 ;;
5304 esac
5305 ;;
5306 *)
5307 # fallback: assume linklib IS sharedlib
5308 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5309 ;;
5310 esac
5311
5312 fi
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5314 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5315 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5316 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5317
5318
5319
5320
5321
5322
5323
5324
5325 if test -n "$ac_tool_prefix"; then
5326 for ac_prog in ar
5327 do
5328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if ${ac_cv_prog_AR+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 if test -n "$AR"; then
5336 ac_cv_prog_AR="$AR" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 break 2
5348 fi
5349 done
5350 done
5351 IFS=$as_save_IFS
5352
5353 fi
5354 fi
5355 AR=$ac_cv_prog_AR
5356 if test -n "$AR"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5358 $as_echo "$AR" >&6; }
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362 fi
5363
5364
5365 test -n "$AR" && break
5366 done
5367 fi
5368 if test -z "$AR"; then
5369 ac_ct_AR=$AR
5370 for ac_prog in ar
5371 do
5372 # Extract the first word of "$ac_prog", so it can be a program name with args.
5373 set dummy $ac_prog; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 if test -n "$ac_ct_AR"; then
5380 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389 ac_cv_prog_ac_ct_AR="$ac_prog"
5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 break 2
5392 fi
5393 done
5394 done
5395 IFS=$as_save_IFS
5396
5397 fi
5398 fi
5399 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5400 if test -n "$ac_ct_AR"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5402 $as_echo "$ac_ct_AR" >&6; }
5403 else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407
5408
5409 test -n "$ac_ct_AR" && break
5410 done
5411
5412 if test "x$ac_ct_AR" = x; then
5413 AR="false"
5414 else
5415 case $cross_compiling:$ac_tool_warned in
5416 yes:)
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5419 ac_tool_warned=yes ;;
5420 esac
5421 AR=$ac_ct_AR
5422 fi
5423 fi
5424
5425 : ${AR=ar}
5426 : ${AR_FLAGS=cru}
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5439 $as_echo_n "checking for archiver @FILE support... " >&6; }
5440 if ${lt_cv_ar_at_file+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 lt_cv_ar_at_file=no
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446
5447 int
5448 main ()
5449 {
5450
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 echo conftest.$ac_objext > conftest.lst
5457 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5459 (eval $lt_ar_try) 2>&5
5460 ac_status=$?
5461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462 test $ac_status = 0; }
5463 if test "$ac_status" -eq 0; then
5464 # Ensure the archiver fails upon bogus file names.
5465 rm -f conftest.$ac_objext libconftest.a
5466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5467 (eval $lt_ar_try) 2>&5
5468 ac_status=$?
5469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5470 test $ac_status = 0; }
5471 if test "$ac_status" -ne 0; then
5472 lt_cv_ar_at_file=@
5473 fi
5474 fi
5475 rm -f conftest.* libconftest.a
5476
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5482 $as_echo "$lt_cv_ar_at_file" >&6; }
5483
5484 if test "x$lt_cv_ar_at_file" = xno; then
5485 archiver_list_spec=
5486 else
5487 archiver_list_spec=$lt_cv_ar_at_file
5488 fi
5489
5490
5491
5492
5493
5494
5495
5496 if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}strip; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_STRIP+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$STRIP"; then
5505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518 done
5519 done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 STRIP=$ac_cv_prog_STRIP
5525 if test -n "$STRIP"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5527 $as_echo "$STRIP" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532
5533
5534 fi
5535 if test -z "$ac_cv_prog_STRIP"; then
5536 ac_ct_STRIP=$STRIP
5537 # Extract the first word of "strip", so it can be a program name with args.
5538 set dummy strip; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 if test -n "$ac_ct_STRIP"; then
5545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554 ac_cv_prog_ac_ct_STRIP="strip"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5565 if test -n "$ac_ct_STRIP"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5567 $as_echo "$ac_ct_STRIP" >&6; }
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573 if test "x$ac_ct_STRIP" = x; then
5574 STRIP=":"
5575 else
5576 case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5581 esac
5582 STRIP=$ac_ct_STRIP
5583 fi
5584 else
5585 STRIP="$ac_cv_prog_STRIP"
5586 fi
5587
5588 test -z "$STRIP" && STRIP=:
5589
5590
5591
5592
5593
5594
5595 if test -n "$ac_tool_prefix"; then
5596 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5597 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if ${ac_cv_prog_RANLIB+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 if test -n "$RANLIB"; then
5604 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617 done
5618 done
5619 IFS=$as_save_IFS
5620
5621 fi
5622 fi
5623 RANLIB=$ac_cv_prog_RANLIB
5624 if test -n "$RANLIB"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5626 $as_echo "$RANLIB" >&6; }
5627 else
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629 $as_echo "no" >&6; }
5630 fi
5631
5632
5633 fi
5634 if test -z "$ac_cv_prog_RANLIB"; then
5635 ac_ct_RANLIB=$RANLIB
5636 # Extract the first word of "ranlib", so it can be a program name with args.
5637 set dummy ranlib; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if test -n "$ac_ct_RANLIB"; then
5644 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653 ac_cv_prog_ac_ct_RANLIB="ranlib"
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657 done
5658 done
5659 IFS=$as_save_IFS
5660
5661 fi
5662 fi
5663 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5664 if test -n "$ac_ct_RANLIB"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5666 $as_echo "$ac_ct_RANLIB" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5670 fi
5671
5672 if test "x$ac_ct_RANLIB" = x; then
5673 RANLIB=":"
5674 else
5675 case $cross_compiling:$ac_tool_warned in
5676 yes:)
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5679 ac_tool_warned=yes ;;
5680 esac
5681 RANLIB=$ac_ct_RANLIB
5682 fi
5683 else
5684 RANLIB="$ac_cv_prog_RANLIB"
5685 fi
5686
5687 test -z "$RANLIB" && RANLIB=:
5688
5689
5690
5691
5692
5693
5694 # Determine commands to create old-style static archives.
5695 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5696 old_postinstall_cmds='chmod 644 $oldlib'
5697 old_postuninstall_cmds=
5698
5699 if test -n "$RANLIB"; then
5700 case $host_os in
5701 openbsd*)
5702 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5703 ;;
5704 *)
5705 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5706 ;;
5707 esac
5708 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5709 fi
5710
5711 case $host_os in
5712 darwin*)
5713 lock_old_archive_extraction=yes ;;
5714 *)
5715 lock_old_archive_extraction=no ;;
5716 esac
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756 # If no C compiler was specified, use CC.
5757 LTCC=${LTCC-"$CC"}
5758
5759 # If no C compiler flags were specified, use CFLAGS.
5760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5761
5762 # Allow CC to be a program name with arguments.
5763 compiler=$CC
5764
5765
5766 # Check for command to grab the raw symbol name followed by C symbol from nm.
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5768 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5769 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772
5773 # These are sane defaults that work on at least a few old systems.
5774 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5775
5776 # Character class describing NM global symbol codes.
5777 symcode='[BCDEGRST]'
5778
5779 # Regexp to match symbols that can be accessed directly from C.
5780 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5781
5782 # Define system-specific variables.
5783 case $host_os in
5784 aix*)
5785 symcode='[BCDT]'
5786 ;;
5787 cygwin* | mingw* | pw32* | cegcc*)
5788 symcode='[ABCDGISTW]'
5789 ;;
5790 hpux*)
5791 if test "$host_cpu" = ia64; then
5792 symcode='[ABCDEGRST]'
5793 fi
5794 ;;
5795 irix* | nonstopux*)
5796 symcode='[BCDEGRST]'
5797 ;;
5798 osf*)
5799 symcode='[BCDEGQRST]'
5800 ;;
5801 solaris*)
5802 symcode='[BDRT]'
5803 ;;
5804 sco3.2v5*)
5805 symcode='[DT]'
5806 ;;
5807 sysv4.2uw2*)
5808 symcode='[DT]'
5809 ;;
5810 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5811 symcode='[ABDT]'
5812 ;;
5813 sysv4)
5814 symcode='[DFNSTU]'
5815 ;;
5816 esac
5817
5818 # If we're using GNU nm, then use its standard symbol codes.
5819 case `$NM -V 2>&1` in
5820 *GNU* | *'with BFD'*)
5821 symcode='[ABCDGIRSTW]' ;;
5822 esac
5823
5824 # Transform an extracted symbol line into a proper C declaration.
5825 # Some systems (esp. on ia64) link data and code symbols differently,
5826 # so use this general approach.
5827 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5828
5829 # Transform an extracted symbol line into symbol name and symbol address
5830 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5831 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'"
5832
5833 # Handle CRLF in mingw tool chain
5834 opt_cr=
5835 case $build_os in
5836 mingw*)
5837 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5838 ;;
5839 esac
5840
5841 # Try without a prefix underscore, then with it.
5842 for ac_symprfx in "" "_"; do
5843
5844 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5845 symxfrm="\\1 $ac_symprfx\\2 \\2"
5846
5847 # Write the raw and C identifiers.
5848 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5849 # Fake it for dumpbin and say T for any non-static function
5850 # and D for any global variable.
5851 # Also find C++ and __fastcall symbols from MSVC++,
5852 # which start with @ or ?.
5853 lt_cv_sys_global_symbol_pipe="$AWK '"\
5854 " {last_section=section; section=\$ 3};"\
5855 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5856 " \$ 0!~/External *\|/{next};"\
5857 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5858 " {if(hide[section]) next};"\
5859 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5860 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5861 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5862 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5863 " ' prfx=^$ac_symprfx"
5864 else
5865 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5866 fi
5867 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5868
5869 # Check to see that the pipe works correctly.
5870 pipe_works=no
5871
5872 rm -f conftest*
5873 cat > conftest.$ac_ext <<_LT_EOF
5874 #ifdef __cplusplus
5875 extern "C" {
5876 #endif
5877 char nm_test_var;
5878 void nm_test_func(void);
5879 void nm_test_func(void){}
5880 #ifdef __cplusplus
5881 }
5882 #endif
5883 int main(){nm_test_var='a';nm_test_func();return(0);}
5884 _LT_EOF
5885
5886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5887 (eval $ac_compile) 2>&5
5888 ac_status=$?
5889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5890 test $ac_status = 0; }; then
5891 # Now try to grab the symbols.
5892 nlist=conftest.nm
5893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5894 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5895 ac_status=$?
5896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897 test $ac_status = 0; } && test -s "$nlist"; then
5898 # Try sorting and uniquifying the output.
5899 if sort "$nlist" | uniq > "$nlist"T; then
5900 mv -f "$nlist"T "$nlist"
5901 else
5902 rm -f "$nlist"T
5903 fi
5904
5905 # Make sure that we snagged all the symbols we need.
5906 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5907 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5908 cat <<_LT_EOF > conftest.$ac_ext
5909 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5910 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5911 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5912 relocations are performed -- see ld's documentation on pseudo-relocs. */
5913 # define LT_DLSYM_CONST
5914 #elif defined(__osf__)
5915 /* This system does not cope well with relocations in const data. */
5916 # define LT_DLSYM_CONST
5917 #else
5918 # define LT_DLSYM_CONST const
5919 #endif
5920
5921 #ifdef __cplusplus
5922 extern "C" {
5923 #endif
5924
5925 _LT_EOF
5926 # Now generate the symbol file.
5927 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5928
5929 cat <<_LT_EOF >> conftest.$ac_ext
5930
5931 /* The mapping between symbol names and symbols. */
5932 LT_DLSYM_CONST struct {
5933 const char *name;
5934 void *address;
5935 }
5936 lt__PROGRAM__LTX_preloaded_symbols[] =
5937 {
5938 { "@PROGRAM@", (void *) 0 },
5939 _LT_EOF
5940 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5941 cat <<\_LT_EOF >> conftest.$ac_ext
5942 {0, (void *) 0}
5943 };
5944
5945 /* This works around a problem in FreeBSD linker */
5946 #ifdef FREEBSD_WORKAROUND
5947 static const void *lt_preloaded_setup() {
5948 return lt__PROGRAM__LTX_preloaded_symbols;
5949 }
5950 #endif
5951
5952 #ifdef __cplusplus
5953 }
5954 #endif
5955 _LT_EOF
5956 # Now try linking the two files.
5957 mv conftest.$ac_objext conftstm.$ac_objext
5958 lt_globsym_save_LIBS=$LIBS
5959 lt_globsym_save_CFLAGS=$CFLAGS
5960 LIBS="conftstm.$ac_objext"
5961 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5963 (eval $ac_link) 2>&5
5964 ac_status=$?
5965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5966 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5967 pipe_works=yes
5968 fi
5969 LIBS=$lt_globsym_save_LIBS
5970 CFLAGS=$lt_globsym_save_CFLAGS
5971 else
5972 echo "cannot find nm_test_func in $nlist" >&5
5973 fi
5974 else
5975 echo "cannot find nm_test_var in $nlist" >&5
5976 fi
5977 else
5978 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5979 fi
5980 else
5981 echo "$progname: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5983 fi
5984 rm -rf conftest* conftst*
5985
5986 # Do not use the global_symbol_pipe unless it works.
5987 if test "$pipe_works" = yes; then
5988 break
5989 else
5990 lt_cv_sys_global_symbol_pipe=
5991 fi
5992 done
5993
5994 fi
5995
5996 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5997 lt_cv_sys_global_symbol_to_cdecl=
5998 fi
5999 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6001 $as_echo "failed" >&6; }
6002 else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6004 $as_echo "ok" >&6; }
6005 fi
6006
6007 # Response file support.
6008 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6009 nm_file_list_spec='@'
6010 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6011 nm_file_list_spec='@'
6012 fi
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6041 $as_echo_n "checking for sysroot... " >&6; }
6042
6043 # Check whether --with-sysroot was given.
6044 if test "${with_sysroot+set}" = set; then :
6045 withval=$with_sysroot;
6046 else
6047 with_sysroot=no
6048 fi
6049
6050
6051 lt_sysroot=
6052 case ${with_sysroot} in #(
6053 yes)
6054 if test "$GCC" = yes; then
6055 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6056 fi
6057 ;; #(
6058 /*)
6059 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6060 ;; #(
6061 no|'')
6062 ;; #(
6063 *)
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6065 $as_echo "${with_sysroot}" >&6; }
6066 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6067 ;;
6068 esac
6069
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6071 $as_echo "${lt_sysroot:-no}" >&6; }
6072
6073
6074
6075
6076
6077 # Check whether --enable-libtool-lock was given.
6078 if test "${enable_libtool_lock+set}" = set; then :
6079 enableval=$enable_libtool_lock;
6080 fi
6081
6082 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6083
6084 # Some flags need to be propagated to the compiler or linker for good
6085 # libtool support.
6086 case $host in
6087 ia64-*-hpux*)
6088 # Find out which ABI we are using.
6089 echo 'int i;' > conftest.$ac_ext
6090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6091 (eval $ac_compile) 2>&5
6092 ac_status=$?
6093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6094 test $ac_status = 0; }; then
6095 case `/usr/bin/file conftest.$ac_objext` in
6096 *ELF-32*)
6097 HPUX_IA64_MODE="32"
6098 ;;
6099 *ELF-64*)
6100 HPUX_IA64_MODE="64"
6101 ;;
6102 esac
6103 fi
6104 rm -rf conftest*
6105 ;;
6106 *-*-irix6*)
6107 # Find out which ABI we are using.
6108 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6110 (eval $ac_compile) 2>&5
6111 ac_status=$?
6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6113 test $ac_status = 0; }; then
6114 if test "$lt_cv_prog_gnu_ld" = yes; then
6115 case `/usr/bin/file conftest.$ac_objext` in
6116 *32-bit*)
6117 LD="${LD-ld} -melf32bsmip"
6118 ;;
6119 *N32*)
6120 LD="${LD-ld} -melf32bmipn32"
6121 ;;
6122 *64-bit*)
6123 LD="${LD-ld} -melf64bmip"
6124 ;;
6125 esac
6126 else
6127 case `/usr/bin/file conftest.$ac_objext` in
6128 *32-bit*)
6129 LD="${LD-ld} -32"
6130 ;;
6131 *N32*)
6132 LD="${LD-ld} -n32"
6133 ;;
6134 *64-bit*)
6135 LD="${LD-ld} -64"
6136 ;;
6137 esac
6138 fi
6139 fi
6140 rm -rf conftest*
6141 ;;
6142
6143 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6144 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6145 # Find out which ABI we are using.
6146 echo 'int i;' > conftest.$ac_ext
6147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6148 (eval $ac_compile) 2>&5
6149 ac_status=$?
6150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6151 test $ac_status = 0; }; then
6152 case `/usr/bin/file conftest.o` in
6153 *32-bit*)
6154 case $host in
6155 x86_64-*kfreebsd*-gnu)
6156 LD="${LD-ld} -m elf_i386_fbsd"
6157 ;;
6158 x86_64-*linux*)
6159 LD="${LD-ld} -m elf_i386"
6160 ;;
6161 ppc64-*linux*|powerpc64-*linux*)
6162 LD="${LD-ld} -m elf32ppclinux"
6163 ;;
6164 s390x-*linux*)
6165 LD="${LD-ld} -m elf_s390"
6166 ;;
6167 sparc64-*linux*)
6168 LD="${LD-ld} -m elf32_sparc"
6169 ;;
6170 esac
6171 ;;
6172 *64-bit*)
6173 case $host in
6174 x86_64-*kfreebsd*-gnu)
6175 LD="${LD-ld} -m elf_x86_64_fbsd"
6176 ;;
6177 x86_64-*linux*)
6178 LD="${LD-ld} -m elf_x86_64"
6179 ;;
6180 ppc*-*linux*|powerpc*-*linux*)
6181 LD="${LD-ld} -m elf64ppc"
6182 ;;
6183 s390*-*linux*|s390*-*tpf*)
6184 LD="${LD-ld} -m elf64_s390"
6185 ;;
6186 sparc*-*linux*)
6187 LD="${LD-ld} -m elf64_sparc"
6188 ;;
6189 esac
6190 ;;
6191 esac
6192 fi
6193 rm -rf conftest*
6194 ;;
6195
6196 *-*-sco3.2v5*)
6197 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6198 SAVE_CFLAGS="$CFLAGS"
6199 CFLAGS="$CFLAGS -belf"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6201 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6202 if ${lt_cv_cc_needs_belf+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 ac_ext=c
6206 ac_cpp='$CPP $CPPFLAGS'
6207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6210
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213
6214 int
6215 main ()
6216 {
6217
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_c_try_link "$LINENO"; then :
6223 lt_cv_cc_needs_belf=yes
6224 else
6225 lt_cv_cc_needs_belf=no
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext \
6228 conftest$ac_exeext conftest.$ac_ext
6229 ac_ext=c
6230 ac_cpp='$CPP $CPPFLAGS'
6231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6234
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6237 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6238 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6239 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6240 CFLAGS="$SAVE_CFLAGS"
6241 fi
6242 ;;
6243 sparc*-*solaris*)
6244 # Find out which ABI we are using.
6245 echo 'int i;' > conftest.$ac_ext
6246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6247 (eval $ac_compile) 2>&5
6248 ac_status=$?
6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6250 test $ac_status = 0; }; then
6251 case `/usr/bin/file conftest.o` in
6252 *64-bit*)
6253 case $lt_cv_prog_gnu_ld in
6254 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6255 *)
6256 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6257 LD="${LD-ld} -64"
6258 fi
6259 ;;
6260 esac
6261 ;;
6262 esac
6263 fi
6264 rm -rf conftest*
6265 ;;
6266 esac
6267
6268 need_locks="$enable_libtool_lock"
6269
6270 if test -n "$ac_tool_prefix"; then
6271 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6272 set dummy ${ac_tool_prefix}mt; ac_word=$2
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274 $as_echo_n "checking for $ac_word... " >&6; }
6275 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 if test -n "$MANIFEST_TOOL"; then
6279 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296 fi
6297 fi
6298 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6299 if test -n "$MANIFEST_TOOL"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6301 $as_echo "$MANIFEST_TOOL" >&6; }
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6305 fi
6306
6307
6308 fi
6309 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6310 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6311 # Extract the first word of "mt", so it can be a program name with args.
6312 set dummy mt; ac_word=$2
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 $as_echo_n "checking for $ac_word... " >&6; }
6315 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 if test -n "$ac_ct_MANIFEST_TOOL"; then
6319 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332 done
6333 done
6334 IFS=$as_save_IFS
6335
6336 fi
6337 fi
6338 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6339 if test -n "$ac_ct_MANIFEST_TOOL"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6341 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6342 else
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6345 fi
6346
6347 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6348 MANIFEST_TOOL=":"
6349 else
6350 case $cross_compiling:$ac_tool_warned in
6351 yes:)
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354 ac_tool_warned=yes ;;
6355 esac
6356 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6357 fi
6358 else
6359 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6360 fi
6361
6362 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6364 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6365 if ${lt_cv_path_mainfest_tool+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 lt_cv_path_mainfest_tool=no
6369 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6370 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6371 cat conftest.err >&5
6372 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6373 lt_cv_path_mainfest_tool=yes
6374 fi
6375 rm -f conftest*
6376 fi
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6378 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6379 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6380 MANIFEST_TOOL=:
6381 fi
6382
6383
6384
6385
6386
6387
6388 case $host_os in
6389 rhapsody* | darwin*)
6390 if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$DSYMUTIL"; then
6399 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6419 if test -n "$DSYMUTIL"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6421 $as_echo "$DSYMUTIL" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426
6427
6428 fi
6429 if test -z "$ac_cv_prog_DSYMUTIL"; then
6430 ac_ct_DSYMUTIL=$DSYMUTIL
6431 # Extract the first word of "dsymutil", so it can be a program name with args.
6432 set dummy dsymutil; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$ac_ct_DSYMUTIL"; then
6439 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6459 if test -n "$ac_ct_DSYMUTIL"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6461 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466
6467 if test "x$ac_ct_DSYMUTIL" = x; then
6468 DSYMUTIL=":"
6469 else
6470 case $cross_compiling:$ac_tool_warned in
6471 yes:)
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474 ac_tool_warned=yes ;;
6475 esac
6476 DSYMUTIL=$ac_ct_DSYMUTIL
6477 fi
6478 else
6479 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6480 fi
6481
6482 if test -n "$ac_tool_prefix"; then
6483 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6484 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_NMEDIT+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -n "$NMEDIT"; then
6491 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 NMEDIT=$ac_cv_prog_NMEDIT
6511 if test -n "$NMEDIT"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6513 $as_echo "$NMEDIT" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519
6520 fi
6521 if test -z "$ac_cv_prog_NMEDIT"; then
6522 ac_ct_NMEDIT=$NMEDIT
6523 # Extract the first word of "nmedit", so it can be a program name with args.
6524 set dummy nmedit; ac_word=$2
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 $as_echo_n "checking for $ac_word... " >&6; }
6527 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 if test -n "$ac_ct_NMEDIT"; then
6531 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6532 else
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6540 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 break 2
6543 fi
6544 done
6545 done
6546 IFS=$as_save_IFS
6547
6548 fi
6549 fi
6550 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6551 if test -n "$ac_ct_NMEDIT"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6553 $as_echo "$ac_ct_NMEDIT" >&6; }
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6557 fi
6558
6559 if test "x$ac_ct_NMEDIT" = x; then
6560 NMEDIT=":"
6561 else
6562 case $cross_compiling:$ac_tool_warned in
6563 yes:)
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6566 ac_tool_warned=yes ;;
6567 esac
6568 NMEDIT=$ac_ct_NMEDIT
6569 fi
6570 else
6571 NMEDIT="$ac_cv_prog_NMEDIT"
6572 fi
6573
6574 if test -n "$ac_tool_prefix"; then
6575 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6576 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_LIPO+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 if test -n "$LIPO"; then
6583 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 LIPO=$ac_cv_prog_LIPO
6603 if test -n "$LIPO"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6605 $as_echo "$LIPO" >&6; }
6606 else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610
6611
6612 fi
6613 if test -z "$ac_cv_prog_LIPO"; then
6614 ac_ct_LIPO=$LIPO
6615 # Extract the first word of "lipo", so it can be a program name with args.
6616 set dummy lipo; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 if test -n "$ac_ct_LIPO"; then
6623 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_prog_ac_ct_LIPO="lipo"
6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6643 if test -n "$ac_ct_LIPO"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6645 $as_echo "$ac_ct_LIPO" >&6; }
6646 else
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651 if test "x$ac_ct_LIPO" = x; then
6652 LIPO=":"
6653 else
6654 case $cross_compiling:$ac_tool_warned in
6655 yes:)
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6658 ac_tool_warned=yes ;;
6659 esac
6660 LIPO=$ac_ct_LIPO
6661 fi
6662 else
6663 LIPO="$ac_cv_prog_LIPO"
6664 fi
6665
6666 if test -n "$ac_tool_prefix"; then
6667 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6668 set dummy ${ac_tool_prefix}otool; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_OTOOL+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if test -n "$OTOOL"; then
6675 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 OTOOL=$ac_cv_prog_OTOOL
6695 if test -n "$OTOOL"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6697 $as_echo "$OTOOL" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702
6703
6704 fi
6705 if test -z "$ac_cv_prog_OTOOL"; then
6706 ac_ct_OTOOL=$OTOOL
6707 # Extract the first word of "otool", so it can be a program name with args.
6708 set dummy otool; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 if test -n "$ac_ct_OTOOL"; then
6715 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_prog_ac_ct_OTOOL="otool"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6731
6732 fi
6733 fi
6734 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6735 if test -n "$ac_ct_OTOOL"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6737 $as_echo "$ac_ct_OTOOL" >&6; }
6738 else
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 fi
6742
6743 if test "x$ac_ct_OTOOL" = x; then
6744 OTOOL=":"
6745 else
6746 case $cross_compiling:$ac_tool_warned in
6747 yes:)
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6750 ac_tool_warned=yes ;;
6751 esac
6752 OTOOL=$ac_ct_OTOOL
6753 fi
6754 else
6755 OTOOL="$ac_cv_prog_OTOOL"
6756 fi
6757
6758 if test -n "$ac_tool_prefix"; then
6759 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6760 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if ${ac_cv_prog_OTOOL64+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 if test -n "$OTOOL64"; then
6767 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 OTOOL64=$ac_cv_prog_OTOOL64
6787 if test -n "$OTOOL64"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6789 $as_echo "$OTOOL64" >&6; }
6790 else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6793 fi
6794
6795
6796 fi
6797 if test -z "$ac_cv_prog_OTOOL64"; then
6798 ac_ct_OTOOL64=$OTOOL64
6799 # Extract the first word of "otool64", so it can be a program name with args.
6800 set dummy otool64; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 if test -n "$ac_ct_OTOOL64"; then
6807 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_ac_ct_OTOOL64="otool64"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820 done
6821 done
6822 IFS=$as_save_IFS
6823
6824 fi
6825 fi
6826 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6827 if test -n "$ac_ct_OTOOL64"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6829 $as_echo "$ac_ct_OTOOL64" >&6; }
6830 else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6833 fi
6834
6835 if test "x$ac_ct_OTOOL64" = x; then
6836 OTOOL64=":"
6837 else
6838 case $cross_compiling:$ac_tool_warned in
6839 yes:)
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6842 ac_tool_warned=yes ;;
6843 esac
6844 OTOOL64=$ac_ct_OTOOL64
6845 fi
6846 else
6847 OTOOL64="$ac_cv_prog_OTOOL64"
6848 fi
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6877 $as_echo_n "checking for -single_module linker flag... " >&6; }
6878 if ${lt_cv_apple_cc_single_mod+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 lt_cv_apple_cc_single_mod=no
6882 if test -z "${LT_MULTI_MODULE}"; then
6883 # By default we will add the -single_module flag. You can override
6884 # by either setting the environment variable LT_MULTI_MODULE
6885 # non-empty at configure time, or by adding -multi_module to the
6886 # link flags.
6887 rm -rf libconftest.dylib*
6888 echo "int foo(void){return 1;}" > conftest.c
6889 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6890 -dynamiclib -Wl,-single_module conftest.c" >&5
6891 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6892 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6893 _lt_result=$?
6894 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6895 lt_cv_apple_cc_single_mod=yes
6896 else
6897 cat conftest.err >&5
6898 fi
6899 rm -rf libconftest.dylib*
6900 rm -f conftest.*
6901 fi
6902 fi
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6904 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6906 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6907 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 lt_cv_ld_exported_symbols_list=no
6911 save_LDFLAGS=$LDFLAGS
6912 echo "_main" > conftest.sym
6913 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916
6917 int
6918 main ()
6919 {
6920
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 if ac_fn_c_try_link "$LINENO"; then :
6926 lt_cv_ld_exported_symbols_list=yes
6927 else
6928 lt_cv_ld_exported_symbols_list=no
6929 fi
6930 rm -f core conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext
6932 LDFLAGS="$save_LDFLAGS"
6933
6934 fi
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6936 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6938 $as_echo_n "checking for -force_load linker flag... " >&6; }
6939 if ${lt_cv_ld_force_load+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 lt_cv_ld_force_load=no
6943 cat > conftest.c << _LT_EOF
6944 int forced_loaded() { return 2;}
6945 _LT_EOF
6946 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6947 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6948 echo "$AR cru libconftest.a conftest.o" >&5
6949 $AR cru libconftest.a conftest.o 2>&5
6950 echo "$RANLIB libconftest.a" >&5
6951 $RANLIB libconftest.a 2>&5
6952 cat > conftest.c << _LT_EOF
6953 int main() { return 0;}
6954 _LT_EOF
6955 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6956 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6957 _lt_result=$?
6958 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6959 lt_cv_ld_force_load=yes
6960 else
6961 cat conftest.err >&5
6962 fi
6963 rm -f conftest.err libconftest.a conftest conftest.c
6964 rm -rf conftest.dSYM
6965
6966 fi
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6968 $as_echo "$lt_cv_ld_force_load" >&6; }
6969 case $host_os in
6970 rhapsody* | darwin1.[012])
6971 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6972 darwin1.*)
6973 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6974 darwin*) # darwin 5.x on
6975 # if running on 10.5 or later, the deployment target defaults
6976 # to the OS version, if on x86, and 10.4, the deployment
6977 # target defaults to 10.4. Don't you love it?
6978 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6979 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6980 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6981 10.[012]*)
6982 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6983 10.*)
6984 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6985 esac
6986 ;;
6987 esac
6988 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6989 _lt_dar_single_mod='$single_module'
6990 fi
6991 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6992 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6993 else
6994 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6995 fi
6996 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6997 _lt_dsymutil='~$DSYMUTIL $lib || :'
6998 else
6999 _lt_dsymutil=
7000 fi
7001 ;;
7002 esac
7003
7004 ac_ext=c
7005 ac_cpp='$CPP $CPPFLAGS'
7006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7010 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7011 # On Suns, sometimes $CPP names a directory.
7012 if test -n "$CPP" && test -d "$CPP"; then
7013 CPP=
7014 fi
7015 if test -z "$CPP"; then
7016 if ${ac_cv_prog_CPP+:} false; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 # Double quotes because CPP needs to be expanded
7020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7021 do
7022 ac_preproc_ok=false
7023 for ac_c_preproc_warn_flag in '' yes
7024 do
7025 # Use a header file that comes with gcc, so configuring glibc
7026 # with a fresh cross-compiler works.
7027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7028 # <limits.h> exists even on freestanding compilers.
7029 # On the NeXT, cc -E runs the code through the compiler's parser,
7030 # not just through cpp. "Syntax error" is here to catch this case.
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7033 #ifdef __STDC__
7034 # include <limits.h>
7035 #else
7036 # include <assert.h>
7037 #endif
7038 Syntax error
7039 _ACEOF
7040 if ac_fn_c_try_cpp "$LINENO"; then :
7041
7042 else
7043 # Broken: fails on valid input.
7044 continue
7045 fi
7046 rm -f conftest.err conftest.i conftest.$ac_ext
7047
7048 # OK, works on sane cases. Now check whether nonexistent headers
7049 # can be detected and how.
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 #include <ac_nonexistent.h>
7053 _ACEOF
7054 if ac_fn_c_try_cpp "$LINENO"; then :
7055 # Broken: success on invalid input.
7056 continue
7057 else
7058 # Passes both tests.
7059 ac_preproc_ok=:
7060 break
7061 fi
7062 rm -f conftest.err conftest.i conftest.$ac_ext
7063
7064 done
7065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7066 rm -f conftest.i conftest.err conftest.$ac_ext
7067 if $ac_preproc_ok; then :
7068 break
7069 fi
7070
7071 done
7072 ac_cv_prog_CPP=$CPP
7073
7074 fi
7075 CPP=$ac_cv_prog_CPP
7076 else
7077 ac_cv_prog_CPP=$CPP
7078 fi
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7080 $as_echo "$CPP" >&6; }
7081 ac_preproc_ok=false
7082 for ac_c_preproc_warn_flag in '' yes
7083 do
7084 # Use a header file that comes with gcc, so configuring glibc
7085 # with a fresh cross-compiler works.
7086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7087 # <limits.h> exists even on freestanding compilers.
7088 # On the NeXT, cc -E runs the code through the compiler's parser,
7089 # not just through cpp. "Syntax error" is here to catch this case.
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092 #ifdef __STDC__
7093 # include <limits.h>
7094 #else
7095 # include <assert.h>
7096 #endif
7097 Syntax error
7098 _ACEOF
7099 if ac_fn_c_try_cpp "$LINENO"; then :
7100
7101 else
7102 # Broken: fails on valid input.
7103 continue
7104 fi
7105 rm -f conftest.err conftest.i conftest.$ac_ext
7106
7107 # OK, works on sane cases. Now check whether nonexistent headers
7108 # can be detected and how.
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111 #include <ac_nonexistent.h>
7112 _ACEOF
7113 if ac_fn_c_try_cpp "$LINENO"; then :
7114 # Broken: success on invalid input.
7115 continue
7116 else
7117 # Passes both tests.
7118 ac_preproc_ok=:
7119 break
7120 fi
7121 rm -f conftest.err conftest.i conftest.$ac_ext
7122
7123 done
7124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7125 rm -f conftest.i conftest.err conftest.$ac_ext
7126 if $ac_preproc_ok; then :
7127
7128 else
7129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7131 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7132 See \`config.log' for more details" "$LINENO" 5; }
7133 fi
7134
7135 ac_ext=c
7136 ac_cpp='$CPP $CPPFLAGS'
7137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7140
7141
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7143 $as_echo_n "checking for ANSI C header files... " >&6; }
7144 if ${ac_cv_header_stdc+:} false; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 #include <stdlib.h>
7150 #include <stdarg.h>
7151 #include <string.h>
7152 #include <float.h>
7153
7154 int
7155 main ()
7156 {
7157
7158 ;
7159 return 0;
7160 }
7161 _ACEOF
7162 if ac_fn_c_try_compile "$LINENO"; then :
7163 ac_cv_header_stdc=yes
7164 else
7165 ac_cv_header_stdc=no
7166 fi
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168
7169 if test $ac_cv_header_stdc = yes; then
7170 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7173 #include <string.h>
7174
7175 _ACEOF
7176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7177 $EGREP "memchr" >/dev/null 2>&1; then :
7178
7179 else
7180 ac_cv_header_stdc=no
7181 fi
7182 rm -f conftest*
7183
7184 fi
7185
7186 if test $ac_cv_header_stdc = yes; then
7187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7190 #include <stdlib.h>
7191
7192 _ACEOF
7193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7194 $EGREP "free" >/dev/null 2>&1; then :
7195
7196 else
7197 ac_cv_header_stdc=no
7198 fi
7199 rm -f conftest*
7200
7201 fi
7202
7203 if test $ac_cv_header_stdc = yes; then
7204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7205 if test "$cross_compiling" = yes; then :
7206 :
7207 else
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 #include <ctype.h>
7211 #include <stdlib.h>
7212 #if ((' ' & 0x0FF) == 0x020)
7213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7215 #else
7216 # define ISLOWER(c) \
7217 (('a' <= (c) && (c) <= 'i') \
7218 || ('j' <= (c) && (c) <= 'r') \
7219 || ('s' <= (c) && (c) <= 'z'))
7220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7221 #endif
7222
7223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7224 int
7225 main ()
7226 {
7227 int i;
7228 for (i = 0; i < 256; i++)
7229 if (XOR (islower (i), ISLOWER (i))
7230 || toupper (i) != TOUPPER (i))
7231 return 2;
7232 return 0;
7233 }
7234 _ACEOF
7235 if ac_fn_c_try_run "$LINENO"; then :
7236
7237 else
7238 ac_cv_header_stdc=no
7239 fi
7240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7241 conftest.$ac_objext conftest.beam conftest.$ac_ext
7242 fi
7243
7244 fi
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7247 $as_echo "$ac_cv_header_stdc" >&6; }
7248 if test $ac_cv_header_stdc = yes; then
7249
7250 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7251
7252 fi
7253
7254 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7256 inttypes.h stdint.h unistd.h
7257 do :
7258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7259 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7260 "
7261 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7262 cat >>confdefs.h <<_ACEOF
7263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7264 _ACEOF
7265
7266 fi
7267
7268 done
7269
7270
7271 for ac_header in dlfcn.h
7272 do :
7273 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7274 "
7275 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7276 cat >>confdefs.h <<_ACEOF
7277 #define HAVE_DLFCN_H 1
7278 _ACEOF
7279
7280 fi
7281
7282 done
7283
7284
7285
7286
7287
7288 # Set options
7289
7290
7291
7292 enable_dlopen=no
7293
7294
7295 enable_win32_dll=no
7296
7297
7298 # Check whether --enable-shared was given.
7299 if test "${enable_shared+set}" = set; then :
7300 enableval=$enable_shared; p=${PACKAGE-default}
7301 case $enableval in
7302 yes) enable_shared=yes ;;
7303 no) enable_shared=no ;;
7304 *)
7305 enable_shared=no
7306 # Look at the argument we got. We use all the common list separators.
7307 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7308 for pkg in $enableval; do
7309 IFS="$lt_save_ifs"
7310 if test "X$pkg" = "X$p"; then
7311 enable_shared=yes
7312 fi
7313 done
7314 IFS="$lt_save_ifs"
7315 ;;
7316 esac
7317 else
7318 enable_shared=yes
7319 fi
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331 # Check whether --with-pic was given.
7332 if test "${with_pic+set}" = set; then :
7333 withval=$with_pic; pic_mode="$withval"
7334 else
7335 pic_mode=default
7336 fi
7337
7338
7339 test -z "$pic_mode" && pic_mode=default
7340
7341
7342
7343
7344
7345
7346
7347 # Check whether --enable-fast-install was given.
7348 if test "${enable_fast_install+set}" = set; then :
7349 enableval=$enable_fast_install; p=${PACKAGE-default}
7350 case $enableval in
7351 yes) enable_fast_install=yes ;;
7352 no) enable_fast_install=no ;;
7353 *)
7354 enable_fast_install=no
7355 # Look at the argument we got. We use all the common list separators.
7356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7357 for pkg in $enableval; do
7358 IFS="$lt_save_ifs"
7359 if test "X$pkg" = "X$p"; then
7360 enable_fast_install=yes
7361 fi
7362 done
7363 IFS="$lt_save_ifs"
7364 ;;
7365 esac
7366 else
7367 enable_fast_install=yes
7368 fi
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380 # This can be used to rebuild libtool when needed
7381 LIBTOOL_DEPS="$ltmain"
7382
7383 # Always use our own libtool.
7384 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411 test -z "$LN_S" && LN_S="ln -s"
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426 if test -n "${ZSH_VERSION+set}" ; then
7427 setopt NO_GLOB_SUBST
7428 fi
7429
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7431 $as_echo_n "checking for objdir... " >&6; }
7432 if ${lt_cv_objdir+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 rm -f .libs 2>/dev/null
7436 mkdir .libs 2>/dev/null
7437 if test -d .libs; then
7438 lt_cv_objdir=.libs
7439 else
7440 # MS-DOS does not allow filenames that begin with a dot.
7441 lt_cv_objdir=_libs
7442 fi
7443 rmdir .libs 2>/dev/null
7444 fi
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7446 $as_echo "$lt_cv_objdir" >&6; }
7447 objdir=$lt_cv_objdir
7448
7449
7450
7451
7452
7453 cat >>confdefs.h <<_ACEOF
7454 #define LT_OBJDIR "$lt_cv_objdir/"
7455 _ACEOF
7456
7457
7458
7459
7460 case $host_os in
7461 aix3*)
7462 # AIX sometimes has problems with the GCC collect2 program. For some
7463 # reason, if we set the COLLECT_NAMES environment variable, the problems
7464 # vanish in a puff of smoke.
7465 if test "X${COLLECT_NAMES+set}" != Xset; then
7466 COLLECT_NAMES=
7467 export COLLECT_NAMES
7468 fi
7469 ;;
7470 esac
7471
7472 # Global variables:
7473 ofile=libtool
7474 can_build_shared=yes
7475
7476 # All known linkers require a `.a' archive for static linking (except MSVC,
7477 # which needs '.lib').
7478 libext=a
7479
7480 with_gnu_ld="$lt_cv_prog_gnu_ld"
7481
7482 old_CC="$CC"
7483 old_CFLAGS="$CFLAGS"
7484
7485 # Set sane defaults for various variables
7486 test -z "$CC" && CC=cc
7487 test -z "$LTCC" && LTCC=$CC
7488 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7489 test -z "$LD" && LD=ld
7490 test -z "$ac_objext" && ac_objext=o
7491
7492 for cc_temp in $compiler""; do
7493 case $cc_temp in
7494 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7495 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7496 \-*) ;;
7497 *) break;;
7498 esac
7499 done
7500 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7501
7502
7503 # Only perform the check for file, if the check method requires it
7504 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7505 case $deplibs_check_method in
7506 file_magic*)
7507 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7509 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7510 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 case $MAGIC_CMD in
7514 [\\/*] | ?:[\\/]*)
7515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7516 ;;
7517 *)
7518 lt_save_MAGIC_CMD="$MAGIC_CMD"
7519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7520 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7521 for ac_dir in $ac_dummy; do
7522 IFS="$lt_save_ifs"
7523 test -z "$ac_dir" && ac_dir=.
7524 if test -f $ac_dir/${ac_tool_prefix}file; then
7525 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7526 if test -n "$file_magic_test_file"; then
7527 case $deplibs_check_method in
7528 "file_magic "*)
7529 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7531 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7532 $EGREP "$file_magic_regex" > /dev/null; then
7533 :
7534 else
7535 cat <<_LT_EOF 1>&2
7536
7537 *** Warning: the command libtool uses to detect shared libraries,
7538 *** $file_magic_cmd, produces output that libtool cannot recognize.
7539 *** The result is that libtool may fail to recognize shared libraries
7540 *** as such. This will affect the creation of libtool libraries that
7541 *** depend on shared libraries, but programs linked with such libtool
7542 *** libraries will work regardless of this problem. Nevertheless, you
7543 *** may want to report the problem to your system manager and/or to
7544 *** bug-libtool@gnu.org
7545
7546 _LT_EOF
7547 fi ;;
7548 esac
7549 fi
7550 break
7551 fi
7552 done
7553 IFS="$lt_save_ifs"
7554 MAGIC_CMD="$lt_save_MAGIC_CMD"
7555 ;;
7556 esac
7557 fi
7558
7559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7560 if test -n "$MAGIC_CMD"; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7562 $as_echo "$MAGIC_CMD" >&6; }
7563 else
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7566 fi
7567
7568
7569
7570
7571
7572 if test -z "$lt_cv_path_MAGIC_CMD"; then
7573 if test -n "$ac_tool_prefix"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7575 $as_echo_n "checking for file... " >&6; }
7576 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 case $MAGIC_CMD in
7580 [\\/*] | ?:[\\/]*)
7581 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7582 ;;
7583 *)
7584 lt_save_MAGIC_CMD="$MAGIC_CMD"
7585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7586 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7587 for ac_dir in $ac_dummy; do
7588 IFS="$lt_save_ifs"
7589 test -z "$ac_dir" && ac_dir=.
7590 if test -f $ac_dir/file; then
7591 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7592 if test -n "$file_magic_test_file"; then
7593 case $deplibs_check_method in
7594 "file_magic "*)
7595 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7597 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7598 $EGREP "$file_magic_regex" > /dev/null; then
7599 :
7600 else
7601 cat <<_LT_EOF 1>&2
7602
7603 *** Warning: the command libtool uses to detect shared libraries,
7604 *** $file_magic_cmd, produces output that libtool cannot recognize.
7605 *** The result is that libtool may fail to recognize shared libraries
7606 *** as such. This will affect the creation of libtool libraries that
7607 *** depend on shared libraries, but programs linked with such libtool
7608 *** libraries will work regardless of this problem. Nevertheless, you
7609 *** may want to report the problem to your system manager and/or to
7610 *** bug-libtool@gnu.org
7611
7612 _LT_EOF
7613 fi ;;
7614 esac
7615 fi
7616 break
7617 fi
7618 done
7619 IFS="$lt_save_ifs"
7620 MAGIC_CMD="$lt_save_MAGIC_CMD"
7621 ;;
7622 esac
7623 fi
7624
7625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7626 if test -n "$MAGIC_CMD"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7628 $as_echo "$MAGIC_CMD" >&6; }
7629 else
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633
7634
7635 else
7636 MAGIC_CMD=:
7637 fi
7638 fi
7639
7640 fi
7641 ;;
7642 esac
7643
7644 # Use C for the default configuration in the libtool script
7645
7646 lt_save_CC="$CC"
7647 ac_ext=c
7648 ac_cpp='$CPP $CPPFLAGS'
7649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652
7653
7654 # Source file extension for C test sources.
7655 ac_ext=c
7656
7657 # Object file extension for compiled C test sources.
7658 objext=o
7659 objext=$objext
7660
7661 # Code to be used in simple compile tests
7662 lt_simple_compile_test_code="int some_variable = 0;"
7663
7664 # Code to be used in simple link tests
7665 lt_simple_link_test_code='int main(){return(0);}'
7666
7667
7668
7669
7670
7671
7672
7673 # If no C compiler was specified, use CC.
7674 LTCC=${LTCC-"$CC"}
7675
7676 # If no C compiler flags were specified, use CFLAGS.
7677 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7678
7679 # Allow CC to be a program name with arguments.
7680 compiler=$CC
7681
7682 # Save the default compiler, since it gets overwritten when the other
7683 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7684 compiler_DEFAULT=$CC
7685
7686 # save warnings/boilerplate of simple test code
7687 ac_outfile=conftest.$ac_objext
7688 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7689 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7690 _lt_compiler_boilerplate=`cat conftest.err`
7691 $RM conftest*
7692
7693 ac_outfile=conftest.$ac_objext
7694 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7695 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7696 _lt_linker_boilerplate=`cat conftest.err`
7697 $RM -r conftest*
7698
7699
7700 if test -n "$compiler"; then
7701
7702 lt_prog_compiler_no_builtin_flag=
7703
7704 if test "$GCC" = yes; then
7705 case $cc_basename in
7706 nvcc*)
7707 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7708 *)
7709 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7710 esac
7711
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7713 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7714 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 lt_cv_prog_compiler_rtti_exceptions=no
7718 ac_outfile=conftest.$ac_objext
7719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7720 lt_compiler_flag="-fno-rtti -fno-exceptions"
7721 # Insert the option either (1) after the last *FLAGS variable, or
7722 # (2) before a word containing "conftest.", or (3) at the end.
7723 # Note that $ac_compile itself does not contain backslashes and begins
7724 # with a dollar sign (not a hyphen), so the echo should work correctly.
7725 # The option is referenced via a variable to avoid confusing sed.
7726 lt_compile=`echo "$ac_compile" | $SED \
7727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7729 -e 's:$: $lt_compiler_flag:'`
7730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7731 (eval "$lt_compile" 2>conftest.err)
7732 ac_status=$?
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 if (exit $ac_status) && test -s "$ac_outfile"; then
7736 # The compiler can only warn and ignore the option if not recognized
7737 # So say no if there are warnings other than the usual output.
7738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7741 lt_cv_prog_compiler_rtti_exceptions=yes
7742 fi
7743 fi
7744 $RM conftest*
7745
7746 fi
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7748 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7749
7750 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7751 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7752 else
7753 :
7754 fi
7755
7756 fi
7757
7758
7759
7760
7761
7762
7763 lt_prog_compiler_wl=
7764 lt_prog_compiler_pic=
7765 lt_prog_compiler_static=
7766
7767
7768 if test "$GCC" = yes; then
7769 lt_prog_compiler_wl='-Wl,'
7770 lt_prog_compiler_static='-static'
7771
7772 case $host_os in
7773 aix*)
7774 # All AIX code is PIC.
7775 if test "$host_cpu" = ia64; then
7776 # AIX 5 now supports IA64 processor
7777 lt_prog_compiler_static='-Bstatic'
7778 fi
7779 ;;
7780
7781 amigaos*)
7782 case $host_cpu in
7783 powerpc)
7784 # see comment about AmigaOS4 .so support
7785 lt_prog_compiler_pic='-fPIC'
7786 ;;
7787 m68k)
7788 # FIXME: we need at least 68020 code to build shared libraries, but
7789 # adding the `-m68020' flag to GCC prevents building anything better,
7790 # like `-m68040'.
7791 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7792 ;;
7793 esac
7794 ;;
7795
7796 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7797 # PIC is the default for these OSes.
7798 ;;
7799
7800 mingw* | cygwin* | pw32* | os2* | cegcc*)
7801 # This hack is so that the source file can tell whether it is being
7802 # built for inclusion in a dll (and should export symbols for example).
7803 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7804 # (--disable-auto-import) libraries
7805 lt_prog_compiler_pic='-DDLL_EXPORT'
7806 ;;
7807
7808 darwin* | rhapsody*)
7809 # PIC is the default on this platform
7810 # Common symbols not allowed in MH_DYLIB files
7811 lt_prog_compiler_pic='-fno-common'
7812 ;;
7813
7814 haiku*)
7815 # PIC is the default for Haiku.
7816 # The "-static" flag exists, but is broken.
7817 lt_prog_compiler_static=
7818 ;;
7819
7820 hpux*)
7821 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7822 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7823 # sets the default TLS model and affects inlining.
7824 case $host_cpu in
7825 hppa*64*)
7826 # +Z the default
7827 ;;
7828 *)
7829 lt_prog_compiler_pic='-fPIC'
7830 ;;
7831 esac
7832 ;;
7833
7834 interix[3-9]*)
7835 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7836 # Instead, we relocate shared libraries at runtime.
7837 ;;
7838
7839 msdosdjgpp*)
7840 # Just because we use GCC doesn't mean we suddenly get shared libraries
7841 # on systems that don't support them.
7842 lt_prog_compiler_can_build_shared=no
7843 enable_shared=no
7844 ;;
7845
7846 *nto* | *qnx*)
7847 # QNX uses GNU C++, but need to define -shared option too, otherwise
7848 # it will coredump.
7849 lt_prog_compiler_pic='-fPIC -shared'
7850 ;;
7851
7852 sysv4*MP*)
7853 if test -d /usr/nec; then
7854 lt_prog_compiler_pic=-Kconform_pic
7855 fi
7856 ;;
7857
7858 *)
7859 lt_prog_compiler_pic='-fPIC'
7860 ;;
7861 esac
7862
7863 case $cc_basename in
7864 nvcc*) # Cuda Compiler Driver 2.2
7865 lt_prog_compiler_wl='-Xlinker '
7866 lt_prog_compiler_pic='-Xcompiler -fPIC'
7867 ;;
7868 esac
7869 else
7870 # PORTME Check for flag to pass linker flags through the system compiler.
7871 case $host_os in
7872 aix*)
7873 lt_prog_compiler_wl='-Wl,'
7874 if test "$host_cpu" = ia64; then
7875 # AIX 5 now supports IA64 processor
7876 lt_prog_compiler_static='-Bstatic'
7877 else
7878 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7879 fi
7880 ;;
7881
7882 mingw* | cygwin* | pw32* | os2* | cegcc*)
7883 # This hack is so that the source file can tell whether it is being
7884 # built for inclusion in a dll (and should export symbols for example).
7885 lt_prog_compiler_pic='-DDLL_EXPORT'
7886 ;;
7887
7888 hpux9* | hpux10* | hpux11*)
7889 lt_prog_compiler_wl='-Wl,'
7890 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7891 # not for PA HP-UX.
7892 case $host_cpu in
7893 hppa*64*|ia64*)
7894 # +Z the default
7895 ;;
7896 *)
7897 lt_prog_compiler_pic='+Z'
7898 ;;
7899 esac
7900 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7901 lt_prog_compiler_static='${wl}-a ${wl}archive'
7902 ;;
7903
7904 irix5* | irix6* | nonstopux*)
7905 lt_prog_compiler_wl='-Wl,'
7906 # PIC (with -KPIC) is the default.
7907 lt_prog_compiler_static='-non_shared'
7908 ;;
7909
7910 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7911 case $cc_basename in
7912 # old Intel for x86_64 which still supported -KPIC.
7913 ecc*)
7914 lt_prog_compiler_wl='-Wl,'
7915 lt_prog_compiler_pic='-KPIC'
7916 lt_prog_compiler_static='-static'
7917 ;;
7918 # icc used to be incompatible with GCC.
7919 # ICC 10 doesn't accept -KPIC any more.
7920 icc* | ifort*)
7921 lt_prog_compiler_wl='-Wl,'
7922 lt_prog_compiler_pic='-fPIC'
7923 lt_prog_compiler_static='-static'
7924 ;;
7925 # Lahey Fortran 8.1.
7926 lf95*)
7927 lt_prog_compiler_wl='-Wl,'
7928 lt_prog_compiler_pic='--shared'
7929 lt_prog_compiler_static='--static'
7930 ;;
7931 nagfor*)
7932 # NAG Fortran compiler
7933 lt_prog_compiler_wl='-Wl,-Wl,,'
7934 lt_prog_compiler_pic='-PIC'
7935 lt_prog_compiler_static='-Bstatic'
7936 ;;
7937 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7938 # Portland Group compilers (*not* the Pentium gcc compiler,
7939 # which looks to be a dead project)
7940 lt_prog_compiler_wl='-Wl,'
7941 lt_prog_compiler_pic='-fpic'
7942 lt_prog_compiler_static='-Bstatic'
7943 ;;
7944 ccc*)
7945 lt_prog_compiler_wl='-Wl,'
7946 # All Alpha code is PIC.
7947 lt_prog_compiler_static='-non_shared'
7948 ;;
7949 xl* | bgxl* | bgf* | mpixl*)
7950 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7951 lt_prog_compiler_wl='-Wl,'
7952 lt_prog_compiler_pic='-qpic'
7953 lt_prog_compiler_static='-qstaticlink'
7954 ;;
7955 *)
7956 case `$CC -V 2>&1 | sed 5q` in
7957 *Sun\ F* | *Sun*Fortran*)
7958 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7959 lt_prog_compiler_pic='-KPIC'
7960 lt_prog_compiler_static='-Bstatic'
7961 lt_prog_compiler_wl=''
7962 ;;
7963 *Sun\ C*)
7964 # Sun C 5.9
7965 lt_prog_compiler_pic='-KPIC'
7966 lt_prog_compiler_static='-Bstatic'
7967 lt_prog_compiler_wl='-Wl,'
7968 ;;
7969 esac
7970 ;;
7971 esac
7972 ;;
7973
7974 newsos6)
7975 lt_prog_compiler_pic='-KPIC'
7976 lt_prog_compiler_static='-Bstatic'
7977 ;;
7978
7979 *nto* | *qnx*)
7980 # QNX uses GNU C++, but need to define -shared option too, otherwise
7981 # it will coredump.
7982 lt_prog_compiler_pic='-fPIC -shared'
7983 ;;
7984
7985 osf3* | osf4* | osf5*)
7986 lt_prog_compiler_wl='-Wl,'
7987 # All OSF/1 code is PIC.
7988 lt_prog_compiler_static='-non_shared'
7989 ;;
7990
7991 rdos*)
7992 lt_prog_compiler_static='-non_shared'
7993 ;;
7994
7995 solaris*)
7996 lt_prog_compiler_pic='-KPIC'
7997 lt_prog_compiler_static='-Bstatic'
7998 case $cc_basename in
7999 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8000 lt_prog_compiler_wl='-Qoption ld ';;
8001 *)
8002 lt_prog_compiler_wl='-Wl,';;
8003 esac
8004 ;;
8005
8006 sunos4*)
8007 lt_prog_compiler_wl='-Qoption ld '
8008 lt_prog_compiler_pic='-PIC'
8009 lt_prog_compiler_static='-Bstatic'
8010 ;;
8011
8012 sysv4 | sysv4.2uw2* | sysv4.3*)
8013 lt_prog_compiler_wl='-Wl,'
8014 lt_prog_compiler_pic='-KPIC'
8015 lt_prog_compiler_static='-Bstatic'
8016 ;;
8017
8018 sysv4*MP*)
8019 if test -d /usr/nec ;then
8020 lt_prog_compiler_pic='-Kconform_pic'
8021 lt_prog_compiler_static='-Bstatic'
8022 fi
8023 ;;
8024
8025 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_pic='-KPIC'
8028 lt_prog_compiler_static='-Bstatic'
8029 ;;
8030
8031 unicos*)
8032 lt_prog_compiler_wl='-Wl,'
8033 lt_prog_compiler_can_build_shared=no
8034 ;;
8035
8036 uts4*)
8037 lt_prog_compiler_pic='-pic'
8038 lt_prog_compiler_static='-Bstatic'
8039 ;;
8040
8041 *)
8042 lt_prog_compiler_can_build_shared=no
8043 ;;
8044 esac
8045 fi
8046
8047 case $host_os in
8048 # For platforms which do not support PIC, -DPIC is meaningless:
8049 *djgpp*)
8050 lt_prog_compiler_pic=
8051 ;;
8052 *)
8053 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8054 ;;
8055 esac
8056
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8058 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8059 if ${lt_cv_prog_compiler_pic+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8065 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8066 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8067
8068 #
8069 # Check to make sure the PIC flag actually works.
8070 #
8071 if test -n "$lt_prog_compiler_pic"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8073 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8074 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 lt_cv_prog_compiler_pic_works=no
8078 ac_outfile=conftest.$ac_objext
8079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8080 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8081 # Insert the option either (1) after the last *FLAGS variable, or
8082 # (2) before a word containing "conftest.", or (3) at the end.
8083 # Note that $ac_compile itself does not contain backslashes and begins
8084 # with a dollar sign (not a hyphen), so the echo should work correctly.
8085 # The option is referenced via a variable to avoid confusing sed.
8086 lt_compile=`echo "$ac_compile" | $SED \
8087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8089 -e 's:$: $lt_compiler_flag:'`
8090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8091 (eval "$lt_compile" 2>conftest.err)
8092 ac_status=$?
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 if (exit $ac_status) && test -s "$ac_outfile"; then
8096 # The compiler can only warn and ignore the option if not recognized
8097 # So say no if there are warnings other than the usual output.
8098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8101 lt_cv_prog_compiler_pic_works=yes
8102 fi
8103 fi
8104 $RM conftest*
8105
8106 fi
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8108 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8109
8110 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8111 case $lt_prog_compiler_pic in
8112 "" | " "*) ;;
8113 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8114 esac
8115 else
8116 lt_prog_compiler_pic=
8117 lt_prog_compiler_can_build_shared=no
8118 fi
8119
8120 fi
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132 #
8133 # Check to make sure the static flag actually works.
8134 #
8135 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8137 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8138 if ${lt_cv_prog_compiler_static_works+:} false; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 lt_cv_prog_compiler_static_works=no
8142 save_LDFLAGS="$LDFLAGS"
8143 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8144 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8145 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8146 # The linker can only warn and ignore the option if not recognized
8147 # So say no if there are warnings
8148 if test -s conftest.err; then
8149 # Append any errors to the config.log.
8150 cat conftest.err 1>&5
8151 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8153 if diff conftest.exp conftest.er2 >/dev/null; then
8154 lt_cv_prog_compiler_static_works=yes
8155 fi
8156 else
8157 lt_cv_prog_compiler_static_works=yes
8158 fi
8159 fi
8160 $RM -r conftest*
8161 LDFLAGS="$save_LDFLAGS"
8162
8163 fi
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8165 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8166
8167 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8168 :
8169 else
8170 lt_prog_compiler_static=
8171 fi
8172
8173
8174
8175
8176
8177
8178
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8180 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8181 if ${lt_cv_prog_compiler_c_o+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 lt_cv_prog_compiler_c_o=no
8185 $RM -r conftest 2>/dev/null
8186 mkdir conftest
8187 cd conftest
8188 mkdir out
8189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8190
8191 lt_compiler_flag="-o out/conftest2.$ac_objext"
8192 # Insert the option either (1) after the last *FLAGS variable, or
8193 # (2) before a word containing "conftest.", or (3) at the end.
8194 # Note that $ac_compile itself does not contain backslashes and begins
8195 # with a dollar sign (not a hyphen), so the echo should work correctly.
8196 lt_compile=`echo "$ac_compile" | $SED \
8197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8199 -e 's:$: $lt_compiler_flag:'`
8200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8201 (eval "$lt_compile" 2>out/conftest.err)
8202 ac_status=$?
8203 cat out/conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8206 then
8207 # The compiler can only warn and ignore the option if not recognized
8208 # So say no if there are warnings
8209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8212 lt_cv_prog_compiler_c_o=yes
8213 fi
8214 fi
8215 chmod u+w . 2>&5
8216 $RM conftest*
8217 # SGI C++ compiler will create directory out/ii_files/ for
8218 # template instantiation
8219 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8220 $RM out/* && rmdir out
8221 cd ..
8222 $RM -r conftest
8223 $RM conftest*
8224
8225 fi
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8227 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8228
8229
8230
8231
8232
8233
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8235 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8236 if ${lt_cv_prog_compiler_c_o+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 lt_cv_prog_compiler_c_o=no
8240 $RM -r conftest 2>/dev/null
8241 mkdir conftest
8242 cd conftest
8243 mkdir out
8244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8245
8246 lt_compiler_flag="-o out/conftest2.$ac_objext"
8247 # Insert the option either (1) after the last *FLAGS variable, or
8248 # (2) before a word containing "conftest.", or (3) at the end.
8249 # Note that $ac_compile itself does not contain backslashes and begins
8250 # with a dollar sign (not a hyphen), so the echo should work correctly.
8251 lt_compile=`echo "$ac_compile" | $SED \
8252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8254 -e 's:$: $lt_compiler_flag:'`
8255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8256 (eval "$lt_compile" 2>out/conftest.err)
8257 ac_status=$?
8258 cat out/conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8261 then
8262 # The compiler can only warn and ignore the option if not recognized
8263 # So say no if there are warnings
8264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8267 lt_cv_prog_compiler_c_o=yes
8268 fi
8269 fi
8270 chmod u+w . 2>&5
8271 $RM conftest*
8272 # SGI C++ compiler will create directory out/ii_files/ for
8273 # template instantiation
8274 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8275 $RM out/* && rmdir out
8276 cd ..
8277 $RM -r conftest
8278 $RM conftest*
8279
8280 fi
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8282 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8283
8284
8285
8286
8287 hard_links="nottested"
8288 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8289 # do not overwrite the value of need_locks provided by the user
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8291 $as_echo_n "checking if we can lock with hard links... " >&6; }
8292 hard_links=yes
8293 $RM conftest*
8294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8295 touch conftest.a
8296 ln conftest.a conftest.b 2>&5 || hard_links=no
8297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8299 $as_echo "$hard_links" >&6; }
8300 if test "$hard_links" = no; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8302 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8303 need_locks=warn
8304 fi
8305 else
8306 need_locks=no
8307 fi
8308
8309
8310
8311
8312
8313
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8315 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8316
8317 runpath_var=
8318 allow_undefined_flag=
8319 always_export_symbols=no
8320 archive_cmds=
8321 archive_expsym_cmds=
8322 compiler_needs_object=no
8323 enable_shared_with_static_runtimes=no
8324 export_dynamic_flag_spec=
8325 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8326 hardcode_automatic=no
8327 hardcode_direct=no
8328 hardcode_direct_absolute=no
8329 hardcode_libdir_flag_spec=
8330 hardcode_libdir_flag_spec_ld=
8331 hardcode_libdir_separator=
8332 hardcode_minus_L=no
8333 hardcode_shlibpath_var=unsupported
8334 inherit_rpath=no
8335 link_all_deplibs=unknown
8336 module_cmds=
8337 module_expsym_cmds=
8338 old_archive_from_new_cmds=
8339 old_archive_from_expsyms_cmds=
8340 thread_safe_flag_spec=
8341 whole_archive_flag_spec=
8342 # include_expsyms should be a list of space-separated symbols to be *always*
8343 # included in the symbol list
8344 include_expsyms=
8345 # exclude_expsyms can be an extended regexp of symbols to exclude
8346 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8347 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8348 # as well as any symbol that contains `d'.
8349 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8350 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8351 # platforms (ab)use it in PIC code, but their linkers get confused if
8352 # the symbol is explicitly referenced. Since portable code cannot
8353 # rely on this symbol name, it's probably fine to never include it in
8354 # preloaded symbol tables.
8355 # Exclude shared library initialization/finalization symbols.
8356 extract_expsyms_cmds=
8357
8358 case $host_os in
8359 cygwin* | mingw* | pw32* | cegcc*)
8360 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8361 # When not using gcc, we currently assume that we are using
8362 # Microsoft Visual C++.
8363 if test "$GCC" != yes; then
8364 with_gnu_ld=no
8365 fi
8366 ;;
8367 interix*)
8368 # we just hope/assume this is gcc and not c89 (= MSVC++)
8369 with_gnu_ld=yes
8370 ;;
8371 openbsd*)
8372 with_gnu_ld=no
8373 ;;
8374 esac
8375
8376 ld_shlibs=yes
8377
8378 # On some targets, GNU ld is compatible enough with the native linker
8379 # that we're better off using the native interface for both.
8380 lt_use_gnu_ld_interface=no
8381 if test "$with_gnu_ld" = yes; then
8382 case $host_os in
8383 aix*)
8384 # The AIX port of GNU ld has always aspired to compatibility
8385 # with the native linker. However, as the warning in the GNU ld
8386 # block says, versions before 2.19.5* couldn't really create working
8387 # shared libraries, regardless of the interface used.
8388 case `$LD -v 2>&1` in
8389 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8390 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8391 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8392 *)
8393 lt_use_gnu_ld_interface=yes
8394 ;;
8395 esac
8396 ;;
8397 *)
8398 lt_use_gnu_ld_interface=yes
8399 ;;
8400 esac
8401 fi
8402
8403 if test "$lt_use_gnu_ld_interface" = yes; then
8404 # If archive_cmds runs LD, not CC, wlarc should be empty
8405 wlarc='${wl}'
8406
8407 # Set some defaults for GNU ld with shared library support. These
8408 # are reset later if shared libraries are not supported. Putting them
8409 # here allows them to be overridden if necessary.
8410 runpath_var=LD_RUN_PATH
8411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8412 export_dynamic_flag_spec='${wl}--export-dynamic'
8413 # ancient GNU ld didn't support --whole-archive et. al.
8414 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8415 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8416 else
8417 whole_archive_flag_spec=
8418 fi
8419 supports_anon_versioning=no
8420 case `$LD -v 2>&1` in
8421 *GNU\ gold*) supports_anon_versioning=yes ;;
8422 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8423 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8424 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8425 *\ 2.11.*) ;; # other 2.11 versions
8426 *) supports_anon_versioning=yes ;;
8427 esac
8428
8429 # See if GNU ld supports shared libraries.
8430 case $host_os in
8431 aix[3-9]*)
8432 # On AIX/PPC, the GNU linker is very broken
8433 if test "$host_cpu" != ia64; then
8434 ld_shlibs=no
8435 cat <<_LT_EOF 1>&2
8436
8437 *** Warning: the GNU linker, at least up to release 2.19, is reported
8438 *** to be unable to reliably create shared libraries on AIX.
8439 *** Therefore, libtool is disabling shared libraries support. If you
8440 *** really care for shared libraries, you may want to install binutils
8441 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8442 *** You will then need to restart the configuration process.
8443
8444 _LT_EOF
8445 fi
8446 ;;
8447
8448 amigaos*)
8449 case $host_cpu in
8450 powerpc)
8451 # see comment about AmigaOS4 .so support
8452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8453 archive_expsym_cmds=''
8454 ;;
8455 m68k)
8456 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)'
8457 hardcode_libdir_flag_spec='-L$libdir'
8458 hardcode_minus_L=yes
8459 ;;
8460 esac
8461 ;;
8462
8463 beos*)
8464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8465 allow_undefined_flag=unsupported
8466 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8467 # support --undefined. This deserves some investigation. FIXME
8468 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8469 else
8470 ld_shlibs=no
8471 fi
8472 ;;
8473
8474 cygwin* | mingw* | pw32* | cegcc*)
8475 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8476 # as there is no search path for DLLs.
8477 hardcode_libdir_flag_spec='-L$libdir'
8478 export_dynamic_flag_spec='${wl}--export-all-symbols'
8479 allow_undefined_flag=unsupported
8480 always_export_symbols=no
8481 enable_shared_with_static_runtimes=yes
8482 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8483 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8484
8485 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8487 # If the export-symbols file already is a .def file (1st line
8488 # is EXPORTS), use it as is; otherwise, prepend...
8489 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8490 cp $export_symbols $output_objdir/$soname.def;
8491 else
8492 echo EXPORTS > $output_objdir/$soname.def;
8493 cat $export_symbols >> $output_objdir/$soname.def;
8494 fi~
8495 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8496 else
8497 ld_shlibs=no
8498 fi
8499 ;;
8500
8501 haiku*)
8502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8503 link_all_deplibs=yes
8504 ;;
8505
8506 interix[3-9]*)
8507 hardcode_direct=no
8508 hardcode_shlibpath_var=no
8509 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8510 export_dynamic_flag_spec='${wl}-E'
8511 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8512 # Instead, shared libraries are loaded at an image base (0x10000000 by
8513 # default) and relocated if they conflict, which is a slow very memory
8514 # consuming and fragmenting process. To avoid this, we pick a random,
8515 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8516 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8517 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8518 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'
8519 ;;
8520
8521 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8522 tmp_diet=no
8523 if test "$host_os" = linux-dietlibc; then
8524 case $cc_basename in
8525 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8526 esac
8527 fi
8528 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8529 && test "$tmp_diet" = no
8530 then
8531 tmp_addflag=' $pic_flag'
8532 tmp_sharedflag='-shared'
8533 case $cc_basename,$host_cpu in
8534 pgcc*) # Portland Group C compiler
8535 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'
8536 tmp_addflag=' $pic_flag'
8537 ;;
8538 pgf77* | pgf90* | pgf95* | pgfortran*)
8539 # Portland Group f77 and f90 compilers
8540 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'
8541 tmp_addflag=' $pic_flag -Mnomain' ;;
8542 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8543 tmp_addflag=' -i_dynamic' ;;
8544 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8545 tmp_addflag=' -i_dynamic -nofor_main' ;;
8546 ifc* | ifort*) # Intel Fortran compiler
8547 tmp_addflag=' -nofor_main' ;;
8548 lf95*) # Lahey Fortran 8.1
8549 whole_archive_flag_spec=
8550 tmp_sharedflag='--shared' ;;
8551 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8552 tmp_sharedflag='-qmkshrobj'
8553 tmp_addflag= ;;
8554 nvcc*) # Cuda Compiler Driver 2.2
8555 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'
8556 compiler_needs_object=yes
8557 ;;
8558 esac
8559 case `$CC -V 2>&1 | sed 5q` in
8560 *Sun\ C*) # Sun C 5.9
8561 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'
8562 compiler_needs_object=yes
8563 tmp_sharedflag='-G' ;;
8564 *Sun\ F*) # Sun Fortran 8.3
8565 tmp_sharedflag='-G' ;;
8566 esac
8567 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8568
8569 if test "x$supports_anon_versioning" = xyes; then
8570 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8572 echo "local: *; };" >> $output_objdir/$libname.ver~
8573 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8574 fi
8575
8576 case $cc_basename in
8577 xlf* | bgf* | bgxlf* | mpixlf*)
8578 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8579 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8580 hardcode_libdir_flag_spec=
8581 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8582 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8583 if test "x$supports_anon_versioning" = xyes; then
8584 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8585 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8586 echo "local: *; };" >> $output_objdir/$libname.ver~
8587 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8588 fi
8589 ;;
8590 esac
8591 else
8592 ld_shlibs=no
8593 fi
8594 ;;
8595
8596 netbsd*)
8597 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8598 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8599 wlarc=
8600 else
8601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8602 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8603 fi
8604 ;;
8605
8606 solaris*)
8607 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8608 ld_shlibs=no
8609 cat <<_LT_EOF 1>&2
8610
8611 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8612 *** create shared libraries on Solaris systems. Therefore, libtool
8613 *** is disabling shared libraries support. We urge you to upgrade GNU
8614 *** binutils to release 2.9.1 or newer. Another option is to modify
8615 *** your PATH or compiler configuration so that the native linker is
8616 *** used, and then restart.
8617
8618 _LT_EOF
8619 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8621 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8622 else
8623 ld_shlibs=no
8624 fi
8625 ;;
8626
8627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8628 case `$LD -v 2>&1` in
8629 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8630 ld_shlibs=no
8631 cat <<_LT_EOF 1>&2
8632
8633 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8634 *** reliably create shared libraries on SCO systems. Therefore, libtool
8635 *** is disabling shared libraries support. We urge you to upgrade GNU
8636 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8637 *** your PATH or compiler configuration so that the native linker is
8638 *** used, and then restart.
8639
8640 _LT_EOF
8641 ;;
8642 *)
8643 # For security reasons, it is highly recommended that you always
8644 # use absolute paths for naming shared libraries, and exclude the
8645 # DT_RUNPATH tag from executables and libraries. But doing so
8646 # requires that you compile everything twice, which is a pain.
8647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8651 else
8652 ld_shlibs=no
8653 fi
8654 ;;
8655 esac
8656 ;;
8657
8658 sunos4*)
8659 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8660 wlarc=
8661 hardcode_direct=yes
8662 hardcode_shlibpath_var=no
8663 ;;
8664
8665 *)
8666 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8667 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8669 else
8670 ld_shlibs=no
8671 fi
8672 ;;
8673 esac
8674
8675 if test "$ld_shlibs" = no; then
8676 runpath_var=
8677 hardcode_libdir_flag_spec=
8678 export_dynamic_flag_spec=
8679 whole_archive_flag_spec=
8680 fi
8681 else
8682 # PORTME fill in a description of your system's linker (not GNU ld)
8683 case $host_os in
8684 aix3*)
8685 allow_undefined_flag=unsupported
8686 always_export_symbols=yes
8687 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'
8688 # Note: this linker hardcodes the directories in LIBPATH if there
8689 # are no directories specified by -L.
8690 hardcode_minus_L=yes
8691 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8692 # Neither direct hardcoding nor static linking is supported with a
8693 # broken collect2.
8694 hardcode_direct=unsupported
8695 fi
8696 ;;
8697
8698 aix[4-9]*)
8699 if test "$host_cpu" = ia64; then
8700 # On IA64, the linker does run time linking by default, so we don't
8701 # have to do anything special.
8702 aix_use_runtimelinking=no
8703 exp_sym_flag='-Bexport'
8704 no_entry_flag=""
8705 else
8706 # If we're using GNU nm, then we don't want the "-C" option.
8707 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8708 # Also, AIX nm treats weak defined symbols like other global
8709 # defined symbols, whereas GNU nm marks them as "W".
8710 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8711 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'
8712 else
8713 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'
8714 fi
8715 aix_use_runtimelinking=no
8716
8717 # Test if we are trying to use run time linking or normal
8718 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8719 # need to do runtime linking.
8720 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8721 for ld_flag in $LDFLAGS; do
8722 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8723 aix_use_runtimelinking=yes
8724 break
8725 fi
8726 done
8727 ;;
8728 esac
8729
8730 exp_sym_flag='-bexport'
8731 no_entry_flag='-bnoentry'
8732 fi
8733
8734 # When large executables or shared objects are built, AIX ld can
8735 # have problems creating the table of contents. If linking a library
8736 # or program results in "error TOC overflow" add -mminimal-toc to
8737 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8738 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8739
8740 archive_cmds=''
8741 hardcode_direct=yes
8742 hardcode_direct_absolute=yes
8743 hardcode_libdir_separator=':'
8744 link_all_deplibs=yes
8745 file_list_spec='${wl}-f,'
8746
8747 if test "$GCC" = yes; then
8748 case $host_os in aix4.[012]|aix4.[012].*)
8749 # We only want to do this on AIX 4.2 and lower, the check
8750 # below for broken collect2 doesn't work under 4.3+
8751 collect2name=`${CC} -print-prog-name=collect2`
8752 if test -f "$collect2name" &&
8753 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8754 then
8755 # We have reworked collect2
8756 :
8757 else
8758 # We have old collect2
8759 hardcode_direct=unsupported
8760 # It fails to find uninstalled libraries when the uninstalled
8761 # path is not listed in the libpath. Setting hardcode_minus_L
8762 # to unsupported forces relinking
8763 hardcode_minus_L=yes
8764 hardcode_libdir_flag_spec='-L$libdir'
8765 hardcode_libdir_separator=
8766 fi
8767 ;;
8768 esac
8769 shared_flag='-shared'
8770 if test "$aix_use_runtimelinking" = yes; then
8771 shared_flag="$shared_flag "'${wl}-G'
8772 fi
8773 else
8774 # not using gcc
8775 if test "$host_cpu" = ia64; then
8776 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8777 # chokes on -Wl,-G. The following line is correct:
8778 shared_flag='-G'
8779 else
8780 if test "$aix_use_runtimelinking" = yes; then
8781 shared_flag='${wl}-G'
8782 else
8783 shared_flag='${wl}-bM:SRE'
8784 fi
8785 fi
8786 fi
8787
8788 export_dynamic_flag_spec='${wl}-bexpall'
8789 # It seems that -bexpall does not export symbols beginning with
8790 # underscore (_), so it is better to generate a list of symbols to export.
8791 always_export_symbols=yes
8792 if test "$aix_use_runtimelinking" = yes; then
8793 # Warning - without using the other runtime loading flags (-brtl),
8794 # -berok will link without error, but may produce a broken library.
8795 allow_undefined_flag='-berok'
8796 # Determine the default libpath from the value encoded in an
8797 # empty executable.
8798 if test "${lt_cv_aix_libpath+set}" = set; then
8799 aix_libpath=$lt_cv_aix_libpath
8800 else
8801 if ${lt_cv_aix_libpath_+:} false; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806
8807 int
8808 main ()
8809 {
8810
8811 ;
8812 return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816
8817 lt_aix_libpath_sed='
8818 /Import File Strings/,/^$/ {
8819 /^0/ {
8820 s/^0 *\([^ ]*\) *$/\1/
8821 p
8822 }
8823 }'
8824 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8825 # Check for a 64-bit object if we didn't find anything.
8826 if test -z "$lt_cv_aix_libpath_"; then
8827 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828 fi
8829 fi
8830 rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8832 if test -z "$lt_cv_aix_libpath_"; then
8833 lt_cv_aix_libpath_="/usr/lib:/lib"
8834 fi
8835
8836 fi
8837
8838 aix_libpath=$lt_cv_aix_libpath_
8839 fi
8840
8841 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842 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"
8843 else
8844 if test "$host_cpu" = ia64; then
8845 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8846 allow_undefined_flag="-z nodefs"
8847 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"
8848 else
8849 # Determine the default libpath from the value encoded in an
8850 # empty executable.
8851 if test "${lt_cv_aix_libpath+set}" = set; then
8852 aix_libpath=$lt_cv_aix_libpath
8853 else
8854 if ${lt_cv_aix_libpath_+:} false; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859
8860 int
8861 main ()
8862 {
8863
8864 ;
8865 return 0;
8866 }
8867 _ACEOF
8868 if ac_fn_c_try_link "$LINENO"; then :
8869
8870 lt_aix_libpath_sed='
8871 /Import File Strings/,/^$/ {
8872 /^0/ {
8873 s/^0 *\([^ ]*\) *$/\1/
8874 p
8875 }
8876 }'
8877 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8878 # Check for a 64-bit object if we didn't find anything.
8879 if test -z "$lt_cv_aix_libpath_"; then
8880 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8881 fi
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext \
8884 conftest$ac_exeext conftest.$ac_ext
8885 if test -z "$lt_cv_aix_libpath_"; then
8886 lt_cv_aix_libpath_="/usr/lib:/lib"
8887 fi
8888
8889 fi
8890
8891 aix_libpath=$lt_cv_aix_libpath_
8892 fi
8893
8894 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8895 # Warning - without using the other run time loading flags,
8896 # -berok will link without error, but may produce a broken library.
8897 no_undefined_flag=' ${wl}-bernotok'
8898 allow_undefined_flag=' ${wl}-berok'
8899 if test "$with_gnu_ld" = yes; then
8900 # We only use this code for GNU lds that support --whole-archive.
8901 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8902 else
8903 # Exported symbols can be pulled into shared objects from archives
8904 whole_archive_flag_spec='$convenience'
8905 fi
8906 archive_cmds_need_lc=yes
8907 # This is similar to how AIX traditionally builds its shared libraries.
8908 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'
8909 fi
8910 fi
8911 ;;
8912
8913 amigaos*)
8914 case $host_cpu in
8915 powerpc)
8916 # see comment about AmigaOS4 .so support
8917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918 archive_expsym_cmds=''
8919 ;;
8920 m68k)
8921 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)'
8922 hardcode_libdir_flag_spec='-L$libdir'
8923 hardcode_minus_L=yes
8924 ;;
8925 esac
8926 ;;
8927
8928 bsdi[45]*)
8929 export_dynamic_flag_spec=-rdynamic
8930 ;;
8931
8932 cygwin* | mingw* | pw32* | cegcc*)
8933 # When not using gcc, we currently assume that we are using
8934 # Microsoft Visual C++.
8935 # hardcode_libdir_flag_spec is actually meaningless, as there is
8936 # no search path for DLLs.
8937 case $cc_basename in
8938 cl*)
8939 # Native MSVC
8940 hardcode_libdir_flag_spec=' '
8941 allow_undefined_flag=unsupported
8942 always_export_symbols=yes
8943 file_list_spec='@'
8944 # Tell ltmain to make .lib files, not .a files.
8945 libext=lib
8946 # Tell ltmain to make .dll files, not .so files.
8947 shrext_cmds=".dll"
8948 # FIXME: Setting linknames here is a bad hack.
8949 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8950 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8951 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8952 else
8953 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8954 fi~
8955 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8956 linknames='
8957 # The linker will not automatically build a static lib if we build a DLL.
8958 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8959 enable_shared_with_static_runtimes=yes
8960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8961 # Don't use ranlib
8962 old_postinstall_cmds='chmod 644 $oldlib'
8963 postlink_cmds='lt_outputfile="@OUTPUT@"~
8964 lt_tool_outputfile="@TOOL_OUTPUT@"~
8965 case $lt_outputfile in
8966 *.exe|*.EXE) ;;
8967 *)
8968 lt_outputfile="$lt_outputfile.exe"
8969 lt_tool_outputfile="$lt_tool_outputfile.exe"
8970 ;;
8971 esac~
8972 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8973 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8974 $RM "$lt_outputfile.manifest";
8975 fi'
8976 ;;
8977 *)
8978 # Assume MSVC wrapper
8979 hardcode_libdir_flag_spec=' '
8980 allow_undefined_flag=unsupported
8981 # Tell ltmain to make .lib files, not .a files.
8982 libext=lib
8983 # Tell ltmain to make .dll files, not .so files.
8984 shrext_cmds=".dll"
8985 # FIXME: Setting linknames here is a bad hack.
8986 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8987 # The linker will automatically build a .lib file if we build a DLL.
8988 old_archive_from_new_cmds='true'
8989 # FIXME: Should let the user specify the lib program.
8990 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8991 enable_shared_with_static_runtimes=yes
8992 ;;
8993 esac
8994 ;;
8995
8996 darwin* | rhapsody*)
8997
8998
8999 archive_cmds_need_lc=no
9000 hardcode_direct=no
9001 hardcode_automatic=yes
9002 hardcode_shlibpath_var=unsupported
9003 if test "$lt_cv_ld_force_load" = "yes"; then
9004 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\"`'
9005 else
9006 whole_archive_flag_spec=''
9007 fi
9008 link_all_deplibs=yes
9009 allow_undefined_flag="$_lt_dar_allow_undefined"
9010 case $cc_basename in
9011 ifort*) _lt_dar_can_shared=yes ;;
9012 *) _lt_dar_can_shared=$GCC ;;
9013 esac
9014 if test "$_lt_dar_can_shared" = "yes"; then
9015 output_verbose_link_cmd=func_echo_all
9016 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9017 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9018 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}"
9019 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}"
9020
9021 else
9022 ld_shlibs=no
9023 fi
9024
9025 ;;
9026
9027 dgux*)
9028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029 hardcode_libdir_flag_spec='-L$libdir'
9030 hardcode_shlibpath_var=no
9031 ;;
9032
9033 freebsd1*)
9034 ld_shlibs=no
9035 ;;
9036
9037 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9038 # support. Future versions do this automatically, but an explicit c++rt0.o
9039 # does not break anything, and helps significantly (at the cost of a little
9040 # extra space).
9041 freebsd2.2*)
9042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9043 hardcode_libdir_flag_spec='-R$libdir'
9044 hardcode_direct=yes
9045 hardcode_shlibpath_var=no
9046 ;;
9047
9048 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9049 freebsd2*)
9050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9051 hardcode_direct=yes
9052 hardcode_minus_L=yes
9053 hardcode_shlibpath_var=no
9054 ;;
9055
9056 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9057 freebsd* | dragonfly*)
9058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9059 hardcode_libdir_flag_spec='-R$libdir'
9060 hardcode_direct=yes
9061 hardcode_shlibpath_var=no
9062 ;;
9063
9064 hpux9*)
9065 if test "$GCC" = yes; then
9066 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9067 else
9068 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'
9069 fi
9070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9071 hardcode_libdir_separator=:
9072 hardcode_direct=yes
9073
9074 # hardcode_minus_L: Not really in the search PATH,
9075 # but as the default location of the library.
9076 hardcode_minus_L=yes
9077 export_dynamic_flag_spec='${wl}-E'
9078 ;;
9079
9080 hpux10*)
9081 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9082 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9083 else
9084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9085 fi
9086 if test "$with_gnu_ld" = no; then
9087 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9088 hardcode_libdir_flag_spec_ld='+b $libdir'
9089 hardcode_libdir_separator=:
9090 hardcode_direct=yes
9091 hardcode_direct_absolute=yes
9092 export_dynamic_flag_spec='${wl}-E'
9093 # hardcode_minus_L: Not really in the search PATH,
9094 # but as the default location of the library.
9095 hardcode_minus_L=yes
9096 fi
9097 ;;
9098
9099 hpux11*)
9100 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9101 case $host_cpu in
9102 hppa*64*)
9103 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9104 ;;
9105 ia64*)
9106 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9107 ;;
9108 *)
9109 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9110 ;;
9111 esac
9112 else
9113 case $host_cpu in
9114 hppa*64*)
9115 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9116 ;;
9117 ia64*)
9118 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9119 ;;
9120 *)
9121
9122 # Older versions of the 11.00 compiler do not understand -b yet
9123 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9125 $as_echo_n "checking if $CC understands -b... " >&6; }
9126 if ${lt_cv_prog_compiler__b+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 lt_cv_prog_compiler__b=no
9130 save_LDFLAGS="$LDFLAGS"
9131 LDFLAGS="$LDFLAGS -b"
9132 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9133 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9134 # The linker can only warn and ignore the option if not recognized
9135 # So say no if there are warnings
9136 if test -s conftest.err; then
9137 # Append any errors to the config.log.
9138 cat conftest.err 1>&5
9139 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9141 if diff conftest.exp conftest.er2 >/dev/null; then
9142 lt_cv_prog_compiler__b=yes
9143 fi
9144 else
9145 lt_cv_prog_compiler__b=yes
9146 fi
9147 fi
9148 $RM -r conftest*
9149 LDFLAGS="$save_LDFLAGS"
9150
9151 fi
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9153 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9154
9155 if test x"$lt_cv_prog_compiler__b" = xyes; then
9156 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9157 else
9158 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9159 fi
9160
9161 ;;
9162 esac
9163 fi
9164 if test "$with_gnu_ld" = no; then
9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166 hardcode_libdir_separator=:
9167
9168 case $host_cpu in
9169 hppa*64*|ia64*)
9170 hardcode_direct=no
9171 hardcode_shlibpath_var=no
9172 ;;
9173 *)
9174 hardcode_direct=yes
9175 hardcode_direct_absolute=yes
9176 export_dynamic_flag_spec='${wl}-E'
9177
9178 # hardcode_minus_L: Not really in the search PATH,
9179 # but as the default location of the library.
9180 hardcode_minus_L=yes
9181 ;;
9182 esac
9183 fi
9184 ;;
9185
9186 irix5* | irix6* | nonstopux*)
9187 if test "$GCC" = yes; then
9188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9189 # Try to use the -exported_symbol ld option, if it does not
9190 # work, assume that -exports_file does not work either and
9191 # implicitly export all symbols.
9192 # This should be the same for all languages, so no per-tag cache variable.
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9194 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9195 if ${lt_cv_irix_exported_symbol+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 save_LDFLAGS="$LDFLAGS"
9199 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202 int foo (void) { return 0; }
9203 _ACEOF
9204 if ac_fn_c_try_link "$LINENO"; then :
9205 lt_cv_irix_exported_symbol=yes
9206 else
9207 lt_cv_irix_exported_symbol=no
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211 LDFLAGS="$save_LDFLAGS"
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9214 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9215 if test "$lt_cv_irix_exported_symbol" = yes; then
9216 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9217 fi
9218 else
9219 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'
9220 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'
9221 fi
9222 archive_cmds_need_lc='no'
9223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9224 hardcode_libdir_separator=:
9225 inherit_rpath=yes
9226 link_all_deplibs=yes
9227 ;;
9228
9229 netbsd*)
9230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9232 else
9233 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9234 fi
9235 hardcode_libdir_flag_spec='-R$libdir'
9236 hardcode_direct=yes
9237 hardcode_shlibpath_var=no
9238 ;;
9239
9240 newsos6)
9241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9242 hardcode_direct=yes
9243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244 hardcode_libdir_separator=:
9245 hardcode_shlibpath_var=no
9246 ;;
9247
9248 *nto* | *qnx*)
9249 ;;
9250
9251 openbsd*)
9252 if test -f /usr/libexec/ld.so; then
9253 hardcode_direct=yes
9254 hardcode_shlibpath_var=no
9255 hardcode_direct_absolute=yes
9256 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9258 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9259 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260 export_dynamic_flag_spec='${wl}-E'
9261 else
9262 case $host_os in
9263 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9265 hardcode_libdir_flag_spec='-R$libdir'
9266 ;;
9267 *)
9268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9270 ;;
9271 esac
9272 fi
9273 else
9274 ld_shlibs=no
9275 fi
9276 ;;
9277
9278 os2*)
9279 hardcode_libdir_flag_spec='-L$libdir'
9280 hardcode_minus_L=yes
9281 allow_undefined_flag=unsupported
9282 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'
9283 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9284 ;;
9285
9286 osf3*)
9287 if test "$GCC" = yes; then
9288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9289 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'
9290 else
9291 allow_undefined_flag=' -expect_unresolved \*'
9292 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'
9293 fi
9294 archive_cmds_need_lc='no'
9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296 hardcode_libdir_separator=:
9297 ;;
9298
9299 osf4* | osf5*) # as osf3* with the addition of -msym flag
9300 if test "$GCC" = yes; then
9301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9302 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9304 else
9305 allow_undefined_flag=' -expect_unresolved \*'
9306 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'
9307 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~
9308 $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'
9309
9310 # Both c and cxx compiler support -rpath directly
9311 hardcode_libdir_flag_spec='-rpath $libdir'
9312 fi
9313 archive_cmds_need_lc='no'
9314 hardcode_libdir_separator=:
9315 ;;
9316
9317 solaris*)
9318 no_undefined_flag=' -z defs'
9319 if test "$GCC" = yes; then
9320 wlarc='${wl}'
9321 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9323 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9324 else
9325 case `$CC -V 2>&1` in
9326 *"Compilers 5.0"*)
9327 wlarc=''
9328 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9330 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9331 ;;
9332 *)
9333 wlarc='${wl}'
9334 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9336 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9337 ;;
9338 esac
9339 fi
9340 hardcode_libdir_flag_spec='-R$libdir'
9341 hardcode_shlibpath_var=no
9342 case $host_os in
9343 solaris2.[0-5] | solaris2.[0-5].*) ;;
9344 *)
9345 # The compiler driver will combine and reorder linker options,
9346 # but understands `-z linker_flag'. GCC discards it without `$wl',
9347 # but is careful enough not to reorder.
9348 # Supported since Solaris 2.6 (maybe 2.5.1?)
9349 if test "$GCC" = yes; then
9350 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9351 else
9352 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9353 fi
9354 ;;
9355 esac
9356 link_all_deplibs=yes
9357 ;;
9358
9359 sunos4*)
9360 if test "x$host_vendor" = xsequent; then
9361 # Use $CC to link under sequent, because it throws in some extra .o
9362 # files that make .init and .fini sections work.
9363 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9364 else
9365 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9366 fi
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_direct=yes
9369 hardcode_minus_L=yes
9370 hardcode_shlibpath_var=no
9371 ;;
9372
9373 sysv4)
9374 case $host_vendor in
9375 sni)
9376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377 hardcode_direct=yes # is this really true???
9378 ;;
9379 siemens)
9380 ## LD is ld it makes a PLAMLIB
9381 ## CC just makes a GrossModule.
9382 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9383 reload_cmds='$CC -r -o $output$reload_objs'
9384 hardcode_direct=no
9385 ;;
9386 motorola)
9387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9389 ;;
9390 esac
9391 runpath_var='LD_RUN_PATH'
9392 hardcode_shlibpath_var=no
9393 ;;
9394
9395 sysv4.3*)
9396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_shlibpath_var=no
9398 export_dynamic_flag_spec='-Bexport'
9399 ;;
9400
9401 sysv4*MP*)
9402 if test -d /usr/nec; then
9403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9404 hardcode_shlibpath_var=no
9405 runpath_var=LD_RUN_PATH
9406 hardcode_runpath_var=yes
9407 ld_shlibs=yes
9408 fi
9409 ;;
9410
9411 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9412 no_undefined_flag='${wl}-z,text'
9413 archive_cmds_need_lc=no
9414 hardcode_shlibpath_var=no
9415 runpath_var='LD_RUN_PATH'
9416
9417 if test "$GCC" = yes; then
9418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 else
9421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 fi
9424 ;;
9425
9426 sysv5* | sco3.2v5* | sco5v6*)
9427 # Note: We can NOT use -z defs as we might desire, because we do not
9428 # link with -lc, and that would cause any symbols used from libc to
9429 # always be unresolved, which means just about no library would
9430 # ever link correctly. If we're not using GNU ld we use -z text
9431 # though, which does catch some bad symbols but isn't as heavy-handed
9432 # as -z defs.
9433 no_undefined_flag='${wl}-z,text'
9434 allow_undefined_flag='${wl}-z,nodefs'
9435 archive_cmds_need_lc=no
9436 hardcode_shlibpath_var=no
9437 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9438 hardcode_libdir_separator=':'
9439 link_all_deplibs=yes
9440 export_dynamic_flag_spec='${wl}-Bexport'
9441 runpath_var='LD_RUN_PATH'
9442
9443 if test "$GCC" = yes; then
9444 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9446 else
9447 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9449 fi
9450 ;;
9451
9452 uts4*)
9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_libdir_flag_spec='-L$libdir'
9455 hardcode_shlibpath_var=no
9456 ;;
9457
9458 *)
9459 ld_shlibs=no
9460 ;;
9461 esac
9462
9463 if test x$host_vendor = xsni; then
9464 case $host in
9465 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9466 export_dynamic_flag_spec='${wl}-Blargedynsym'
9467 ;;
9468 esac
9469 fi
9470 fi
9471
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9473 $as_echo "$ld_shlibs" >&6; }
9474 test "$ld_shlibs" = no && can_build_shared=no
9475
9476 with_gnu_ld=$with_gnu_ld
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492 #
9493 # Do we need to explicitly link libc?
9494 #
9495 case "x$archive_cmds_need_lc" in
9496 x|xyes)
9497 # Assume -lc should be added
9498 archive_cmds_need_lc=yes
9499
9500 if test "$enable_shared" = yes && test "$GCC" = yes; then
9501 case $archive_cmds in
9502 *'~'*)
9503 # FIXME: we may have to deal with multi-command sequences.
9504 ;;
9505 '$CC '*)
9506 # Test whether the compiler implicitly links with -lc since on some
9507 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9508 # to ld, don't add -lc before -lgcc.
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9510 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9511 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 $RM conftest*
9515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9516
9517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9518 (eval $ac_compile) 2>&5
9519 ac_status=$?
9520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9521 test $ac_status = 0; } 2>conftest.err; then
9522 soname=conftest
9523 lib=conftest
9524 libobjs=conftest.$ac_objext
9525 deplibs=
9526 wl=$lt_prog_compiler_wl
9527 pic_flag=$lt_prog_compiler_pic
9528 compiler_flags=-v
9529 linker_flags=-v
9530 verstring=
9531 output_objdir=.
9532 libname=conftest
9533 lt_save_allow_undefined_flag=$allow_undefined_flag
9534 allow_undefined_flag=
9535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9536 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9537 ac_status=$?
9538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9539 test $ac_status = 0; }
9540 then
9541 lt_cv_archive_cmds_need_lc=no
9542 else
9543 lt_cv_archive_cmds_need_lc=yes
9544 fi
9545 allow_undefined_flag=$lt_save_allow_undefined_flag
9546 else
9547 cat conftest.err 1>&5
9548 fi
9549 $RM conftest*
9550
9551 fi
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9553 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9554 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9555 ;;
9556 esac
9557 fi
9558 ;;
9559 esac
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9718 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9719
9720 if test "$GCC" = yes; then
9721 case $host_os in
9722 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9723 *) lt_awk_arg="/^libraries:/" ;;
9724 esac
9725 case $host_os in
9726 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9727 *) lt_sed_strip_eq="s,=/,/,g" ;;
9728 esac
9729 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9730 case $lt_search_path_spec in
9731 *\;*)
9732 # if the path contains ";" then we assume it to be the separator
9733 # otherwise default to the standard path separator (i.e. ":") - it is
9734 # assumed that no part of a normal pathname contains ";" but that should
9735 # okay in the real world where ";" in dirpaths is itself problematic.
9736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9737 ;;
9738 *)
9739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9740 ;;
9741 esac
9742 # Ok, now we have the path, separated by spaces, we can step through it
9743 # and add multilib dir if necessary.
9744 lt_tmp_lt_search_path_spec=
9745 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9746 for lt_sys_path in $lt_search_path_spec; do
9747 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9748 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9749 else
9750 test -d "$lt_sys_path" && \
9751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9752 fi
9753 done
9754 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9755 BEGIN {RS=" "; FS="/|\n";} {
9756 lt_foo="";
9757 lt_count=0;
9758 for (lt_i = NF; lt_i > 0; lt_i--) {
9759 if ($lt_i != "" && $lt_i != ".") {
9760 if ($lt_i == "..") {
9761 lt_count++;
9762 } else {
9763 if (lt_count == 0) {
9764 lt_foo="/" $lt_i lt_foo;
9765 } else {
9766 lt_count--;
9767 }
9768 }
9769 }
9770 }
9771 if (lt_foo != "") { lt_freq[lt_foo]++; }
9772 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9773 }'`
9774 # AWK program above erroneously prepends '/' to C:/dos/paths
9775 # for these hosts.
9776 case $host_os in
9777 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9778 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9779 esac
9780 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9781 else
9782 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9783 fi
9784 library_names_spec=
9785 libname_spec='lib$name'
9786 soname_spec=
9787 shrext_cmds=".so"
9788 postinstall_cmds=
9789 postuninstall_cmds=
9790 finish_cmds=
9791 finish_eval=
9792 shlibpath_var=
9793 shlibpath_overrides_runpath=unknown
9794 version_type=none
9795 dynamic_linker="$host_os ld.so"
9796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9797 need_lib_prefix=unknown
9798 hardcode_into_libs=no
9799
9800 # when you set need_version to no, make sure it does not cause -set_version
9801 # flags to be left without arguments
9802 need_version=unknown
9803
9804 case $host_os in
9805 aix3*)
9806 version_type=linux
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9808 shlibpath_var=LIBPATH
9809
9810 # AIX 3 has no versioning support, so we append a major version to the name.
9811 soname_spec='${libname}${release}${shared_ext}$major'
9812 ;;
9813
9814 aix[4-9]*)
9815 version_type=linux
9816 need_lib_prefix=no
9817 need_version=no
9818 hardcode_into_libs=yes
9819 if test "$host_cpu" = ia64; then
9820 # AIX 5 supports IA64
9821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9822 shlibpath_var=LD_LIBRARY_PATH
9823 else
9824 # With GCC up to 2.95.x, collect2 would create an import file
9825 # for dependence libraries. The import file would start with
9826 # the line `#! .'. This would cause the generated library to
9827 # depend on `.', always an invalid library. This was fixed in
9828 # development snapshots of GCC prior to 3.0.
9829 case $host_os in
9830 aix4 | aix4.[01] | aix4.[01].*)
9831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9832 echo ' yes '
9833 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9834 :
9835 else
9836 can_build_shared=no
9837 fi
9838 ;;
9839 esac
9840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9841 # soname into executable. Probably we can add versioning support to
9842 # collect2, so additional links can be useful in future.
9843 if test "$aix_use_runtimelinking" = yes; then
9844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9845 # instead of lib<name>.a to let people know that these are not
9846 # typical AIX shared libraries.
9847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848 else
9849 # We preserve .a as extension for shared libraries through AIX4.2
9850 # and later when we are not doing run time linking.
9851 library_names_spec='${libname}${release}.a $libname.a'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 fi
9854 shlibpath_var=LIBPATH
9855 fi
9856 ;;
9857
9858 amigaos*)
9859 case $host_cpu in
9860 powerpc)
9861 # Since July 2007 AmigaOS4 officially supports .so libraries.
9862 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864 ;;
9865 m68k)
9866 library_names_spec='$libname.ixlibrary $libname.a'
9867 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9868 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'
9869 ;;
9870 esac
9871 ;;
9872
9873 beos*)
9874 library_names_spec='${libname}${shared_ext}'
9875 dynamic_linker="$host_os ld.so"
9876 shlibpath_var=LIBRARY_PATH
9877 ;;
9878
9879 bsdi[45]*)
9880 version_type=linux
9881 need_version=no
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883 soname_spec='${libname}${release}${shared_ext}$major'
9884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9885 shlibpath_var=LD_LIBRARY_PATH
9886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9888 # the default ld.so.conf also contains /usr/contrib/lib and
9889 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9890 # libtool to hard-code these into programs
9891 ;;
9892
9893 cygwin* | mingw* | pw32* | cegcc*)
9894 version_type=windows
9895 shrext_cmds=".dll"
9896 need_version=no
9897 need_lib_prefix=no
9898
9899 case $GCC,$cc_basename in
9900 yes,*)
9901 # gcc
9902 library_names_spec='$libname.dll.a'
9903 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9904 postinstall_cmds='base_file=`basename \${file}`~
9905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9906 dldir=$destdir/`dirname \$dlpath`~
9907 test -d \$dldir || mkdir -p \$dldir~
9908 $install_prog $dir/$dlname \$dldir/$dlname~
9909 chmod a+x \$dldir/$dlname~
9910 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9911 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9912 fi'
9913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9914 dlpath=$dir/\$dldll~
9915 $RM \$dlpath'
9916 shlibpath_overrides_runpath=yes
9917
9918 case $host_os in
9919 cygwin*)
9920 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9921 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9922
9923 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9924 ;;
9925 mingw* | cegcc*)
9926 # MinGW DLLs use traditional 'lib' prefix
9927 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9928 ;;
9929 pw32*)
9930 # pw32 DLLs use 'pw' prefix rather than 'lib'
9931 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9932 ;;
9933 esac
9934 dynamic_linker='Win32 ld.exe'
9935 ;;
9936
9937 *,cl*)
9938 # Native MSVC
9939 libname_spec='$name'
9940 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9941 library_names_spec='${libname}.dll.lib'
9942
9943 case $build_os in
9944 mingw*)
9945 sys_lib_search_path_spec=
9946 lt_save_ifs=$IFS
9947 IFS=';'
9948 for lt_path in $LIB
9949 do
9950 IFS=$lt_save_ifs
9951 # Let DOS variable expansion print the short 8.3 style file name.
9952 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9953 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9954 done
9955 IFS=$lt_save_ifs
9956 # Convert to MSYS style.
9957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9958 ;;
9959 cygwin*)
9960 # Convert to unix form, then to dos form, then back to unix form
9961 # but this time dos style (no spaces!) so that the unix form looks
9962 # like /cygdrive/c/PROGRA~1:/cygdr...
9963 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9964 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9965 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9966 ;;
9967 *)
9968 sys_lib_search_path_spec="$LIB"
9969 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9970 # It is most probably a Windows format PATH.
9971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9972 else
9973 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9974 fi
9975 # FIXME: find the short name or the path components, as spaces are
9976 # common. (e.g. "Program Files" -> "PROGRA~1")
9977 ;;
9978 esac
9979
9980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9981 postinstall_cmds='base_file=`basename \${file}`~
9982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9983 dldir=$destdir/`dirname \$dlpath`~
9984 test -d \$dldir || mkdir -p \$dldir~
9985 $install_prog $dir/$dlname \$dldir/$dlname'
9986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9987 dlpath=$dir/\$dldll~
9988 $RM \$dlpath'
9989 shlibpath_overrides_runpath=yes
9990 dynamic_linker='Win32 link.exe'
9991 ;;
9992
9993 *)
9994 # Assume MSVC wrapper
9995 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9996 dynamic_linker='Win32 ld.exe'
9997 ;;
9998 esac
9999 # FIXME: first we should search . and the directory the executable is in
10000 shlibpath_var=PATH
10001 ;;
10002
10003 darwin* | rhapsody*)
10004 dynamic_linker="$host_os dyld"
10005 version_type=darwin
10006 need_lib_prefix=no
10007 need_version=no
10008 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10009 soname_spec='${libname}${release}${major}$shared_ext'
10010 shlibpath_overrides_runpath=yes
10011 shlibpath_var=DYLD_LIBRARY_PATH
10012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10013
10014 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10016 ;;
10017
10018 dgux*)
10019 version_type=linux
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 ;;
10026
10027 freebsd1*)
10028 dynamic_linker=no
10029 ;;
10030
10031 freebsd* | dragonfly*)
10032 # DragonFly does not have aout. When/if they implement a new
10033 # versioning mechanism, adjust this.
10034 if test -x /usr/bin/objformat; then
10035 objformat=`/usr/bin/objformat`
10036 else
10037 case $host_os in
10038 freebsd[123]*) objformat=aout ;;
10039 *) objformat=elf ;;
10040 esac
10041 fi
10042 version_type=freebsd-$objformat
10043 case $version_type in
10044 freebsd-elf*)
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10046 need_version=no
10047 need_lib_prefix=no
10048 ;;
10049 freebsd-*)
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10051 need_version=yes
10052 ;;
10053 esac
10054 shlibpath_var=LD_LIBRARY_PATH
10055 case $host_os in
10056 freebsd2*)
10057 shlibpath_overrides_runpath=yes
10058 ;;
10059 freebsd3.[01]* | freebsdelf3.[01]*)
10060 shlibpath_overrides_runpath=yes
10061 hardcode_into_libs=yes
10062 ;;
10063 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10064 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10065 shlibpath_overrides_runpath=no
10066 hardcode_into_libs=yes
10067 ;;
10068 *) # from 4.6 on, and DragonFly
10069 shlibpath_overrides_runpath=yes
10070 hardcode_into_libs=yes
10071 ;;
10072 esac
10073 ;;
10074
10075 gnu*)
10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 shlibpath_var=LD_LIBRARY_PATH
10082 hardcode_into_libs=yes
10083 ;;
10084
10085 haiku*)
10086 version_type=linux
10087 need_lib_prefix=no
10088 need_version=no
10089 dynamic_linker="$host_os runtime_loader"
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 shlibpath_var=LIBRARY_PATH
10093 shlibpath_overrides_runpath=yes
10094 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10095 hardcode_into_libs=yes
10096 ;;
10097
10098 hpux9* | hpux10* | hpux11*)
10099 # Give a soname corresponding to the major version so that dld.sl refuses to
10100 # link against other versions.
10101 version_type=sunos
10102 need_lib_prefix=no
10103 need_version=no
10104 case $host_cpu in
10105 ia64*)
10106 shrext_cmds='.so'
10107 hardcode_into_libs=yes
10108 dynamic_linker="$host_os dld.so"
10109 shlibpath_var=LD_LIBRARY_PATH
10110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 if test "X$HPUX_IA64_MODE" = X32; then
10114 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10115 else
10116 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10117 fi
10118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10119 ;;
10120 hppa*64*)
10121 shrext_cmds='.sl'
10122 hardcode_into_libs=yes
10123 dynamic_linker="$host_os dld.sl"
10124 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10130 ;;
10131 *)
10132 shrext_cmds='.sl'
10133 dynamic_linker="$host_os dld.sl"
10134 shlibpath_var=SHLIB_PATH
10135 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 ;;
10139 esac
10140 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10141 postinstall_cmds='chmod 555 $lib'
10142 # or fails outright, so override atomically:
10143 install_override_mode=555
10144 ;;
10145
10146 interix[3-9]*)
10147 version_type=linux
10148 need_lib_prefix=no
10149 need_version=no
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10153 shlibpath_var=LD_LIBRARY_PATH
10154 shlibpath_overrides_runpath=no
10155 hardcode_into_libs=yes
10156 ;;
10157
10158 irix5* | irix6* | nonstopux*)
10159 case $host_os in
10160 nonstopux*) version_type=nonstopux ;;
10161 *)
10162 if test "$lt_cv_prog_gnu_ld" = yes; then
10163 version_type=linux
10164 else
10165 version_type=irix
10166 fi ;;
10167 esac
10168 need_lib_prefix=no
10169 need_version=no
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10172 case $host_os in
10173 irix5* | nonstopux*)
10174 libsuff= shlibsuff=
10175 ;;
10176 *)
10177 case $LD in # libtool.m4 will add one of these switches to LD
10178 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10179 libsuff= shlibsuff= libmagic=32-bit;;
10180 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10181 libsuff=32 shlibsuff=N32 libmagic=N32;;
10182 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10183 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10184 *) libsuff= shlibsuff= libmagic=never-match;;
10185 esac
10186 ;;
10187 esac
10188 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10189 shlibpath_overrides_runpath=no
10190 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10191 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10192 hardcode_into_libs=yes
10193 ;;
10194
10195 # No shared lib support for Linux oldld, aout, or coff.
10196 linux*oldld* | linux*aout* | linux*coff*)
10197 dynamic_linker=no
10198 ;;
10199
10200 # This must be Linux ELF.
10201 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10202 version_type=linux
10203 need_lib_prefix=no
10204 need_version=no
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 shlibpath_overrides_runpath=no
10210
10211 # Some binutils ld are patched to set DT_RUNPATH
10212 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 lt_cv_shlibpath_overrides_runpath=no
10216 save_LDFLAGS=$LDFLAGS
10217 save_libdir=$libdir
10218 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10219 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222
10223 int
10224 main ()
10225 {
10226
10227 ;
10228 return 0;
10229 }
10230 _ACEOF
10231 if ac_fn_c_try_link "$LINENO"; then :
10232 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10233 lt_cv_shlibpath_overrides_runpath=yes
10234 fi
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 LDFLAGS=$save_LDFLAGS
10239 libdir=$save_libdir
10240
10241 fi
10242
10243 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10244
10245 # This implies no fast_install, which is unacceptable.
10246 # Some rework will be needed to allow for fast_install
10247 # before this can be enabled.
10248 hardcode_into_libs=yes
10249
10250 # Add ABI-specific directories to the system library path.
10251 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10252
10253 # Append ld.so.conf contents to the search path
10254 if test -f /etc/ld.so.conf; then
10255 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' ' '`
10256 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10257
10258 fi
10259
10260 # We used to test for /lib/ld.so.1 and disable shared libraries on
10261 # powerpc, because MkLinux only supported shared libraries with the
10262 # GNU dynamic linker. Since this was broken with cross compilers,
10263 # most powerpc-linux boxes support dynamic linking these days and
10264 # people can always --disable-shared, the test was removed, and we
10265 # assume the GNU/Linux dynamic linker is in use.
10266 dynamic_linker='GNU/Linux ld.so'
10267 ;;
10268
10269 netbsd*)
10270 version_type=sunos
10271 need_lib_prefix=no
10272 need_version=no
10273 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10276 dynamic_linker='NetBSD (a.out) ld.so'
10277 else
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10279 soname_spec='${libname}${release}${shared_ext}$major'
10280 dynamic_linker='NetBSD ld.elf_so'
10281 fi
10282 shlibpath_var=LD_LIBRARY_PATH
10283 shlibpath_overrides_runpath=yes
10284 hardcode_into_libs=yes
10285 ;;
10286
10287 newsos6)
10288 version_type=linux
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=yes
10292 ;;
10293
10294 *nto* | *qnx*)
10295 version_type=qnx
10296 need_lib_prefix=no
10297 need_version=no
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=no
10302 hardcode_into_libs=yes
10303 dynamic_linker='ldqnx.so'
10304 ;;
10305
10306 openbsd*)
10307 version_type=sunos
10308 sys_lib_dlsearch_path_spec="/usr/lib"
10309 need_lib_prefix=no
10310 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10311 case $host_os in
10312 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10313 *) need_version=no ;;
10314 esac
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10319 case $host_os in
10320 openbsd2.[89] | openbsd2.[89].*)
10321 shlibpath_overrides_runpath=no
10322 ;;
10323 *)
10324 shlibpath_overrides_runpath=yes
10325 ;;
10326 esac
10327 else
10328 shlibpath_overrides_runpath=yes
10329 fi
10330 ;;
10331
10332 os2*)
10333 libname_spec='$name'
10334 shrext_cmds=".dll"
10335 need_lib_prefix=no
10336 library_names_spec='$libname${shared_ext} $libname.a'
10337 dynamic_linker='OS/2 ld.exe'
10338 shlibpath_var=LIBPATH
10339 ;;
10340
10341 osf3* | osf4* | osf5*)
10342 version_type=osf
10343 need_lib_prefix=no
10344 need_version=no
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10349 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10350 ;;
10351
10352 rdos*)
10353 dynamic_linker=no
10354 ;;
10355
10356 solaris*)
10357 version_type=linux
10358 need_lib_prefix=no
10359 need_version=no
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 hardcode_into_libs=yes
10365 # ldd complains unless libraries are executable
10366 postinstall_cmds='chmod +x $lib'
10367 ;;
10368
10369 sunos4*)
10370 version_type=sunos
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10372 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=yes
10375 if test "$with_gnu_ld" = yes; then
10376 need_lib_prefix=no
10377 fi
10378 need_version=yes
10379 ;;
10380
10381 sysv4 | sysv4.3*)
10382 version_type=linux
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 case $host_vendor in
10387 sni)
10388 shlibpath_overrides_runpath=no
10389 need_lib_prefix=no
10390 runpath_var=LD_RUN_PATH
10391 ;;
10392 siemens)
10393 need_lib_prefix=no
10394 ;;
10395 motorola)
10396 need_lib_prefix=no
10397 need_version=no
10398 shlibpath_overrides_runpath=no
10399 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10400 ;;
10401 esac
10402 ;;
10403
10404 sysv4*MP*)
10405 if test -d /usr/nec ;then
10406 version_type=linux
10407 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10408 soname_spec='$libname${shared_ext}.$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 fi
10411 ;;
10412
10413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10414 version_type=freebsd-elf
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=yes
10421 hardcode_into_libs=yes
10422 if test "$with_gnu_ld" = yes; then
10423 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10424 else
10425 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10426 case $host_os in
10427 sco3.2v5*)
10428 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10429 ;;
10430 esac
10431 fi
10432 sys_lib_dlsearch_path_spec='/usr/lib'
10433 ;;
10434
10435 tpf*)
10436 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10437 version_type=linux
10438 need_lib_prefix=no
10439 need_version=no
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 shlibpath_overrides_runpath=no
10443 hardcode_into_libs=yes
10444 ;;
10445
10446 uts4*)
10447 version_type=linux
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 soname_spec='${libname}${release}${shared_ext}$major'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 ;;
10452
10453 *)
10454 dynamic_linker=no
10455 ;;
10456 esac
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10458 $as_echo "$dynamic_linker" >&6; }
10459 test "$dynamic_linker" = no && can_build_shared=no
10460
10461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10462 if test "$GCC" = yes; then
10463 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10464 fi
10465
10466 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10467 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10468 fi
10469 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10470 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10471 fi
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10565 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10566 hardcode_action=
10567 if test -n "$hardcode_libdir_flag_spec" ||
10568 test -n "$runpath_var" ||
10569 test "X$hardcode_automatic" = "Xyes" ; then
10570
10571 # We can hardcode non-existent directories.
10572 if test "$hardcode_direct" != no &&
10573 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10574 # have to relink, otherwise we might link with an installed library
10575 # when we should be linking with a yet-to-be-installed one
10576 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10577 test "$hardcode_minus_L" != no; then
10578 # Linking always hardcodes the temporary library directory.
10579 hardcode_action=relink
10580 else
10581 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10582 hardcode_action=immediate
10583 fi
10584 else
10585 # We cannot hardcode anything, or else we can only hardcode existing
10586 # directories.
10587 hardcode_action=unsupported
10588 fi
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10590 $as_echo "$hardcode_action" >&6; }
10591
10592 if test "$hardcode_action" = relink ||
10593 test "$inherit_rpath" = yes; then
10594 # Fast installation is not supported
10595 enable_fast_install=no
10596 elif test "$shlibpath_overrides_runpath" = yes ||
10597 test "$enable_shared" = no; then
10598 # Fast installation is not necessary
10599 enable_fast_install=needless
10600 fi
10601
10602
10603
10604
10605
10606
10607 if test "x$enable_dlopen" != xyes; then
10608 enable_dlopen=unknown
10609 enable_dlopen_self=unknown
10610 enable_dlopen_self_static=unknown
10611 else
10612 lt_cv_dlopen=no
10613 lt_cv_dlopen_libs=
10614
10615 case $host_os in
10616 beos*)
10617 lt_cv_dlopen="load_add_on"
10618 lt_cv_dlopen_libs=
10619 lt_cv_dlopen_self=yes
10620 ;;
10621
10622 mingw* | pw32* | cegcc*)
10623 lt_cv_dlopen="LoadLibrary"
10624 lt_cv_dlopen_libs=
10625 ;;
10626
10627 cygwin*)
10628 lt_cv_dlopen="dlopen"
10629 lt_cv_dlopen_libs=
10630 ;;
10631
10632 darwin*)
10633 # if libdl is installed we need to link against it
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10635 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10636 if ${ac_cv_lib_dl_dlopen+:} false; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-ldl $LIBS"
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10647 #ifdef __cplusplus
10648 extern "C"
10649 #endif
10650 char dlopen ();
10651 int
10652 main ()
10653 {
10654 return dlopen ();
10655 ;
10656 return 0;
10657 }
10658 _ACEOF
10659 if ac_fn_c_try_link "$LINENO"; then :
10660 ac_cv_lib_dl_dlopen=yes
10661 else
10662 ac_cv_lib_dl_dlopen=no
10663 fi
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10667 fi
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10669 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10670 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10671 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10672 else
10673
10674 lt_cv_dlopen="dyld"
10675 lt_cv_dlopen_libs=
10676 lt_cv_dlopen_self=yes
10677
10678 fi
10679
10680 ;;
10681
10682 *)
10683 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10684 if test "x$ac_cv_func_shl_load" = xyes; then :
10685 lt_cv_dlopen="shl_load"
10686 else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10688 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10689 if ${ac_cv_lib_dld_shl_load+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-ldld $LIBS"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char shl_load ();
10704 int
10705 main ()
10706 {
10707 return shl_load ();
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_dld_shl_load=yes
10714 else
10715 ac_cv_lib_dld_shl_load=no
10716 fi
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10720 fi
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10722 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10723 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10724 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10725 else
10726 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10727 if test "x$ac_cv_func_dlopen" = xyes; then :
10728 lt_cv_dlopen="dlopen"
10729 else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10731 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10732 if ${ac_cv_lib_dl_dlopen+:} false; then :
10733 $as_echo_n "(cached) " >&6
10734 else
10735 ac_check_lib_save_LIBS=$LIBS
10736 LIBS="-ldl $LIBS"
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739
10740 /* Override any GCC internal prototype to avoid an error.
10741 Use char because int might match the return type of a GCC
10742 builtin and then its argument prototype would still apply. */
10743 #ifdef __cplusplus
10744 extern "C"
10745 #endif
10746 char dlopen ();
10747 int
10748 main ()
10749 {
10750 return dlopen ();
10751 ;
10752 return 0;
10753 }
10754 _ACEOF
10755 if ac_fn_c_try_link "$LINENO"; then :
10756 ac_cv_lib_dl_dlopen=yes
10757 else
10758 ac_cv_lib_dl_dlopen=no
10759 fi
10760 rm -f core conftest.err conftest.$ac_objext \
10761 conftest$ac_exeext conftest.$ac_ext
10762 LIBS=$ac_check_lib_save_LIBS
10763 fi
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10765 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10766 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10767 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10770 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10771 if ${ac_cv_lib_svld_dlopen+:} false; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 ac_check_lib_save_LIBS=$LIBS
10775 LIBS="-lsvld $LIBS"
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778
10779 /* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10782 #ifdef __cplusplus
10783 extern "C"
10784 #endif
10785 char dlopen ();
10786 int
10787 main ()
10788 {
10789 return dlopen ();
10790 ;
10791 return 0;
10792 }
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 ac_cv_lib_svld_dlopen=yes
10796 else
10797 ac_cv_lib_svld_dlopen=no
10798 fi
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10802 fi
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10804 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10805 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10809 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10810 if ${ac_cv_lib_dld_dld_link+:} false; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 ac_check_lib_save_LIBS=$LIBS
10814 LIBS="-ldld $LIBS"
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817
10818 /* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10821 #ifdef __cplusplus
10822 extern "C"
10823 #endif
10824 char dld_link ();
10825 int
10826 main ()
10827 {
10828 return dld_link ();
10829 ;
10830 return 0;
10831 }
10832 _ACEOF
10833 if ac_fn_c_try_link "$LINENO"; then :
10834 ac_cv_lib_dld_dld_link=yes
10835 else
10836 ac_cv_lib_dld_dld_link=no
10837 fi
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 LIBS=$ac_check_lib_save_LIBS
10841 fi
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10843 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10844 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10845 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10846 fi
10847
10848
10849 fi
10850
10851
10852 fi
10853
10854
10855 fi
10856
10857
10858 fi
10859
10860
10861 fi
10862
10863 ;;
10864 esac
10865
10866 if test "x$lt_cv_dlopen" != xno; then
10867 enable_dlopen=yes
10868 else
10869 enable_dlopen=no
10870 fi
10871
10872 case $lt_cv_dlopen in
10873 dlopen)
10874 save_CPPFLAGS="$CPPFLAGS"
10875 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10876
10877 save_LDFLAGS="$LDFLAGS"
10878 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10879
10880 save_LIBS="$LIBS"
10881 LIBS="$lt_cv_dlopen_libs $LIBS"
10882
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10884 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10885 if ${lt_cv_dlopen_self+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 if test "$cross_compiling" = yes; then :
10889 lt_cv_dlopen_self=cross
10890 else
10891 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10892 lt_status=$lt_dlunknown
10893 cat > conftest.$ac_ext <<_LT_EOF
10894 #line $LINENO "configure"
10895 #include "confdefs.h"
10896
10897 #if HAVE_DLFCN_H
10898 #include <dlfcn.h>
10899 #endif
10900
10901 #include <stdio.h>
10902
10903 #ifdef RTLD_GLOBAL
10904 # define LT_DLGLOBAL RTLD_GLOBAL
10905 #else
10906 # ifdef DL_GLOBAL
10907 # define LT_DLGLOBAL DL_GLOBAL
10908 # else
10909 # define LT_DLGLOBAL 0
10910 # endif
10911 #endif
10912
10913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10914 find out it does not work in some platform. */
10915 #ifndef LT_DLLAZY_OR_NOW
10916 # ifdef RTLD_LAZY
10917 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10918 # else
10919 # ifdef DL_LAZY
10920 # define LT_DLLAZY_OR_NOW DL_LAZY
10921 # else
10922 # ifdef RTLD_NOW
10923 # define LT_DLLAZY_OR_NOW RTLD_NOW
10924 # else
10925 # ifdef DL_NOW
10926 # define LT_DLLAZY_OR_NOW DL_NOW
10927 # else
10928 # define LT_DLLAZY_OR_NOW 0
10929 # endif
10930 # endif
10931 # endif
10932 # endif
10933 #endif
10934
10935 /* When -fvisbility=hidden is used, assume the code has been annotated
10936 correspondingly for the symbols needed. */
10937 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10938 int fnord () __attribute__((visibility("default")));
10939 #endif
10940
10941 int fnord () { return 42; }
10942 int main ()
10943 {
10944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10945 int status = $lt_dlunknown;
10946
10947 if (self)
10948 {
10949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10950 else
10951 {
10952 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10953 else puts (dlerror ());
10954 }
10955 /* dlclose (self); */
10956 }
10957 else
10958 puts (dlerror ());
10959
10960 return status;
10961 }
10962 _LT_EOF
10963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10964 (eval $ac_link) 2>&5
10965 ac_status=$?
10966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10967 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10968 (./conftest; exit; ) >&5 2>/dev/null
10969 lt_status=$?
10970 case x$lt_status in
10971 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10972 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10973 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10974 esac
10975 else :
10976 # compilation failed
10977 lt_cv_dlopen_self=no
10978 fi
10979 fi
10980 rm -fr conftest*
10981
10982
10983 fi
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10985 $as_echo "$lt_cv_dlopen_self" >&6; }
10986
10987 if test "x$lt_cv_dlopen_self" = xyes; then
10988 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10990 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10991 if ${lt_cv_dlopen_self_static+:} false; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 if test "$cross_compiling" = yes; then :
10995 lt_cv_dlopen_self_static=cross
10996 else
10997 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10998 lt_status=$lt_dlunknown
10999 cat > conftest.$ac_ext <<_LT_EOF
11000 #line $LINENO "configure"
11001 #include "confdefs.h"
11002
11003 #if HAVE_DLFCN_H
11004 #include <dlfcn.h>
11005 #endif
11006
11007 #include <stdio.h>
11008
11009 #ifdef RTLD_GLOBAL
11010 # define LT_DLGLOBAL RTLD_GLOBAL
11011 #else
11012 # ifdef DL_GLOBAL
11013 # define LT_DLGLOBAL DL_GLOBAL
11014 # else
11015 # define LT_DLGLOBAL 0
11016 # endif
11017 #endif
11018
11019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11020 find out it does not work in some platform. */
11021 #ifndef LT_DLLAZY_OR_NOW
11022 # ifdef RTLD_LAZY
11023 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11024 # else
11025 # ifdef DL_LAZY
11026 # define LT_DLLAZY_OR_NOW DL_LAZY
11027 # else
11028 # ifdef RTLD_NOW
11029 # define LT_DLLAZY_OR_NOW RTLD_NOW
11030 # else
11031 # ifdef DL_NOW
11032 # define LT_DLLAZY_OR_NOW DL_NOW
11033 # else
11034 # define LT_DLLAZY_OR_NOW 0
11035 # endif
11036 # endif
11037 # endif
11038 # endif
11039 #endif
11040
11041 /* When -fvisbility=hidden is used, assume the code has been annotated
11042 correspondingly for the symbols needed. */
11043 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11044 int fnord () __attribute__((visibility("default")));
11045 #endif
11046
11047 int fnord () { return 42; }
11048 int main ()
11049 {
11050 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11051 int status = $lt_dlunknown;
11052
11053 if (self)
11054 {
11055 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11056 else
11057 {
11058 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11059 else puts (dlerror ());
11060 }
11061 /* dlclose (self); */
11062 }
11063 else
11064 puts (dlerror ());
11065
11066 return status;
11067 }
11068 _LT_EOF
11069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11070 (eval $ac_link) 2>&5
11071 ac_status=$?
11072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11073 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11074 (./conftest; exit; ) >&5 2>/dev/null
11075 lt_status=$?
11076 case x$lt_status in
11077 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11078 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11079 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11080 esac
11081 else :
11082 # compilation failed
11083 lt_cv_dlopen_self_static=no
11084 fi
11085 fi
11086 rm -fr conftest*
11087
11088
11089 fi
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11091 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11092 fi
11093
11094 CPPFLAGS="$save_CPPFLAGS"
11095 LDFLAGS="$save_LDFLAGS"
11096 LIBS="$save_LIBS"
11097 ;;
11098 esac
11099
11100 case $lt_cv_dlopen_self in
11101 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11102 *) enable_dlopen_self=unknown ;;
11103 esac
11104
11105 case $lt_cv_dlopen_self_static in
11106 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11107 *) enable_dlopen_self_static=unknown ;;
11108 esac
11109 fi
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127 striplib=
11128 old_striplib=
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11130 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11131 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11132 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11133 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11135 $as_echo "yes" >&6; }
11136 else
11137 # FIXME - insert some real tests, host_os isn't really good enough
11138 case $host_os in
11139 darwin*)
11140 if test -n "$STRIP" ; then
11141 striplib="$STRIP -x"
11142 old_striplib="$STRIP -S"
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144 $as_echo "yes" >&6; }
11145 else
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11148 fi
11149 ;;
11150 *)
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11153 ;;
11154 esac
11155 fi
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168 # Report which library types will actually be built
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11170 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11172 $as_echo "$can_build_shared" >&6; }
11173
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11175 $as_echo_n "checking whether to build shared libraries... " >&6; }
11176 test "$can_build_shared" = "no" && enable_shared=no
11177
11178 # On AIX, shared libraries and static libraries use the same namespace, and
11179 # are all built from PIC.
11180 case $host_os in
11181 aix3*)
11182 test "$enable_shared" = yes && enable_static=no
11183 if test -n "$RANLIB"; then
11184 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11185 postinstall_cmds='$RANLIB $lib'
11186 fi
11187 ;;
11188
11189 aix[4-9]*)
11190 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11191 test "$enable_shared" = yes && enable_static=no
11192 fi
11193 ;;
11194 esac
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11196 $as_echo "$enable_shared" >&6; }
11197
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11199 $as_echo_n "checking whether to build static libraries... " >&6; }
11200 # Make sure either enable_shared or enable_static is yes.
11201 test "$enable_shared" = yes || enable_static=yes
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11203 $as_echo "$enable_static" >&6; }
11204
11205
11206
11207
11208 fi
11209 ac_ext=c
11210 ac_cpp='$CPP $CPPFLAGS'
11211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11214
11215 CC="$lt_save_CC"
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229 ac_config_commands="$ac_config_commands libtool"
11230
11231
11232
11233
11234 # Only expand once:
11235
11236
11237 ac_ext=c
11238 ac_cpp='$CPP $CPPFLAGS'
11239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11242 if test -n "$ac_tool_prefix"; then
11243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246 $as_echo_n "checking for $ac_word... " >&6; }
11247 if ${ac_cv_prog_CC+:} false; then :
11248 $as_echo_n "(cached) " >&6
11249 else
11250 if test -n "$CC"; then
11251 ac_cv_prog_CC="$CC" # Let the user override the test.
11252 else
11253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254 for as_dir in $PATH
11255 do
11256 IFS=$as_save_IFS
11257 test -z "$as_dir" && as_dir=.
11258 for ac_exec_ext in '' $ac_executable_extensions; do
11259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11260 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11262 break 2
11263 fi
11264 done
11265 done
11266 IFS=$as_save_IFS
11267
11268 fi
11269 fi
11270 CC=$ac_cv_prog_CC
11271 if test -n "$CC"; then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11273 $as_echo "$CC" >&6; }
11274 else
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276 $as_echo "no" >&6; }
11277 fi
11278
11279
11280 fi
11281 if test -z "$ac_cv_prog_CC"; then
11282 ac_ct_CC=$CC
11283 # Extract the first word of "gcc", so it can be a program name with args.
11284 set dummy gcc; ac_word=$2
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286 $as_echo_n "checking for $ac_word... " >&6; }
11287 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 if test -n "$ac_ct_CC"; then
11291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11292 else
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $PATH
11295 do
11296 IFS=$as_save_IFS
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11300 ac_cv_prog_ac_ct_CC="gcc"
11301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 break 2
11303 fi
11304 done
11305 done
11306 IFS=$as_save_IFS
11307
11308 fi
11309 fi
11310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11311 if test -n "$ac_ct_CC"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11313 $as_echo "$ac_ct_CC" >&6; }
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11317 fi
11318
11319 if test "x$ac_ct_CC" = x; then
11320 CC=""
11321 else
11322 case $cross_compiling:$ac_tool_warned in
11323 yes:)
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11326 ac_tool_warned=yes ;;
11327 esac
11328 CC=$ac_ct_CC
11329 fi
11330 else
11331 CC="$ac_cv_prog_CC"
11332 fi
11333
11334 if test -z "$CC"; then
11335 if test -n "$ac_tool_prefix"; then
11336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11337 set dummy ${ac_tool_prefix}cc; ac_word=$2
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11339 $as_echo_n "checking for $ac_word... " >&6; }
11340 if ${ac_cv_prog_CC+:} false; then :
11341 $as_echo_n "(cached) " >&6
11342 else
11343 if test -n "$CC"; then
11344 ac_cv_prog_CC="$CC" # Let the user override the test.
11345 else
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11348 do
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11353 ac_cv_prog_CC="${ac_tool_prefix}cc"
11354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 break 2
11356 fi
11357 done
11358 done
11359 IFS=$as_save_IFS
11360
11361 fi
11362 fi
11363 CC=$ac_cv_prog_CC
11364 if test -n "$CC"; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11366 $as_echo "$CC" >&6; }
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369 $as_echo "no" >&6; }
11370 fi
11371
11372
11373 fi
11374 fi
11375 if test -z "$CC"; then
11376 # Extract the first word of "cc", so it can be a program name with args.
11377 set dummy cc; ac_word=$2
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if ${ac_cv_prog_CC+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 if test -n "$CC"; then
11384 ac_cv_prog_CC="$CC" # Let the user override the test.
11385 else
11386 ac_prog_rejected=no
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11389 do
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11394 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11395 ac_prog_rejected=yes
11396 continue
11397 fi
11398 ac_cv_prog_CC="cc"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402 done
11403 done
11404 IFS=$as_save_IFS
11405
11406 if test $ac_prog_rejected = yes; then
11407 # We found a bogon in the path, so make sure we never use it.
11408 set dummy $ac_cv_prog_CC
11409 shift
11410 if test $# != 0; then
11411 # We chose a different compiler from the bogus one.
11412 # However, it has the same basename, so the bogon will be chosen
11413 # first if we set CC to just the basename; use the full file name.
11414 shift
11415 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11416 fi
11417 fi
11418 fi
11419 fi
11420 CC=$ac_cv_prog_CC
11421 if test -n "$CC"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11423 $as_echo "$CC" >&6; }
11424 else
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11427 fi
11428
11429
11430 fi
11431 if test -z "$CC"; then
11432 if test -n "$ac_tool_prefix"; then
11433 for ac_prog in cl.exe
11434 do
11435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 $as_echo_n "checking for $ac_word... " >&6; }
11439 if ${ac_cv_prog_CC+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 if test -n "$CC"; then
11443 ac_cv_prog_CC="$CC" # Let the user override the test.
11444 else
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $PATH
11447 do
11448 IFS=$as_save_IFS
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 break 2
11455 fi
11456 done
11457 done
11458 IFS=$as_save_IFS
11459
11460 fi
11461 fi
11462 CC=$ac_cv_prog_CC
11463 if test -n "$CC"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11465 $as_echo "$CC" >&6; }
11466 else
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11469 fi
11470
11471
11472 test -n "$CC" && break
11473 done
11474 fi
11475 if test -z "$CC"; then
11476 ac_ct_CC=$CC
11477 for ac_prog in cl.exe
11478 do
11479 # Extract the first word of "$ac_prog", so it can be a program name with args.
11480 set dummy $ac_prog; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 if test -n "$ac_ct_CC"; then
11487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11488 else
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496 ac_cv_prog_ac_ct_CC="$ac_prog"
11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498 break 2
11499 fi
11500 done
11501 done
11502 IFS=$as_save_IFS
11503
11504 fi
11505 fi
11506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11507 if test -n "$ac_ct_CC"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11509 $as_echo "$ac_ct_CC" >&6; }
11510 else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513 fi
11514
11515
11516 test -n "$ac_ct_CC" && break
11517 done
11518
11519 if test "x$ac_ct_CC" = x; then
11520 CC=""
11521 else
11522 case $cross_compiling:$ac_tool_warned in
11523 yes:)
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11526 ac_tool_warned=yes ;;
11527 esac
11528 CC=$ac_ct_CC
11529 fi
11530 fi
11531
11532 fi
11533
11534
11535 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11537 as_fn_error $? "no acceptable C compiler found in \$PATH
11538 See \`config.log' for more details" "$LINENO" 5; }
11539
11540 # Provide some information about the compiler.
11541 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11542 set X $ac_compile
11543 ac_compiler=$2
11544 for ac_option in --version -v -V -qversion; do
11545 { { ac_try="$ac_compiler $ac_option >&5"
11546 case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549 esac
11550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11551 $as_echo "$ac_try_echo"; } >&5
11552 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11553 ac_status=$?
11554 if test -s conftest.err; then
11555 sed '10a\
11556 ... rest of stderr output deleted ...
11557 10q' conftest.err >conftest.er1
11558 cat conftest.er1 >&5
11559 fi
11560 rm -f conftest.er1 conftest.err
11561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11562 test $ac_status = 0; }
11563 done
11564
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11566 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11567 if ${ac_cv_c_compiler_gnu+:} false; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11572
11573 int
11574 main ()
11575 {
11576 #ifndef __GNUC__
11577 choke me
11578 #endif
11579
11580 ;
11581 return 0;
11582 }
11583 _ACEOF
11584 if ac_fn_c_try_compile "$LINENO"; then :
11585 ac_compiler_gnu=yes
11586 else
11587 ac_compiler_gnu=no
11588 fi
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11591
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11594 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11595 if test $ac_compiler_gnu = yes; then
11596 GCC=yes
11597 else
11598 GCC=
11599 fi
11600 ac_test_CFLAGS=${CFLAGS+set}
11601 ac_save_CFLAGS=$CFLAGS
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11603 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11604 if ${ac_cv_prog_cc_g+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 ac_save_c_werror_flag=$ac_c_werror_flag
11608 ac_c_werror_flag=yes
11609 ac_cv_prog_cc_g=no
11610 CFLAGS="-g"
11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11613
11614 int
11615 main ()
11616 {
11617
11618 ;
11619 return 0;
11620 }
11621 _ACEOF
11622 if ac_fn_c_try_compile "$LINENO"; then :
11623 ac_cv_prog_cc_g=yes
11624 else
11625 CFLAGS=""
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628
11629 int
11630 main ()
11631 {
11632
11633 ;
11634 return 0;
11635 }
11636 _ACEOF
11637 if ac_fn_c_try_compile "$LINENO"; then :
11638
11639 else
11640 ac_c_werror_flag=$ac_save_c_werror_flag
11641 CFLAGS="-g"
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11644
11645 int
11646 main ()
11647 {
11648
11649 ;
11650 return 0;
11651 }
11652 _ACEOF
11653 if ac_fn_c_try_compile "$LINENO"; then :
11654 ac_cv_prog_cc_g=yes
11655 fi
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 fi
11658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 fi
11660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661 ac_c_werror_flag=$ac_save_c_werror_flag
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11664 $as_echo "$ac_cv_prog_cc_g" >&6; }
11665 if test "$ac_test_CFLAGS" = set; then
11666 CFLAGS=$ac_save_CFLAGS
11667 elif test $ac_cv_prog_cc_g = yes; then
11668 if test "$GCC" = yes; then
11669 CFLAGS="-g -O2"
11670 else
11671 CFLAGS="-g"
11672 fi
11673 else
11674 if test "$GCC" = yes; then
11675 CFLAGS="-O2"
11676 else
11677 CFLAGS=
11678 fi
11679 fi
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11681 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11682 if ${ac_cv_prog_cc_c89+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 ac_cv_prog_cc_c89=no
11686 ac_save_CC=$CC
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689 #include <stdarg.h>
11690 #include <stdio.h>
11691 #include <sys/types.h>
11692 #include <sys/stat.h>
11693 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11694 struct buf { int x; };
11695 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11696 static char *e (p, i)
11697 char **p;
11698 int i;
11699 {
11700 return p[i];
11701 }
11702 static char *f (char * (*g) (char **, int), char **p, ...)
11703 {
11704 char *s;
11705 va_list v;
11706 va_start (v,p);
11707 s = g (p, va_arg (v,int));
11708 va_end (v);
11709 return s;
11710 }
11711
11712 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11713 function prototypes and stuff, but not '\xHH' hex character constants.
11714 These don't provoke an error unfortunately, instead are silently treated
11715 as 'x'. The following induces an error, until -std is added to get
11716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11717 array size at least. It's necessary to write '\x00'==0 to get something
11718 that's true only with -std. */
11719 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11720
11721 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11722 inside strings and character constants. */
11723 #define FOO(x) 'x'
11724 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11725
11726 int test (int i, double x);
11727 struct s1 {int (*f) (int a);};
11728 struct s2 {int (*f) (double a);};
11729 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11730 int argc;
11731 char **argv;
11732 int
11733 main ()
11734 {
11735 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11736 ;
11737 return 0;
11738 }
11739 _ACEOF
11740 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11742 do
11743 CC="$ac_save_CC $ac_arg"
11744 if ac_fn_c_try_compile "$LINENO"; then :
11745 ac_cv_prog_cc_c89=$ac_arg
11746 fi
11747 rm -f core conftest.err conftest.$ac_objext
11748 test "x$ac_cv_prog_cc_c89" != "xno" && break
11749 done
11750 rm -f conftest.$ac_ext
11751 CC=$ac_save_CC
11752
11753 fi
11754 # AC_CACHE_VAL
11755 case "x$ac_cv_prog_cc_c89" in
11756 x)
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11758 $as_echo "none needed" >&6; } ;;
11759 xno)
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11761 $as_echo "unsupported" >&6; } ;;
11762 *)
11763 CC="$CC $ac_cv_prog_cc_c89"
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11765 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11766 esac
11767 if test "x$ac_cv_prog_cc_c89" != xno; then :
11768
11769 fi
11770
11771 ac_ext=c
11772 ac_cpp='$CPP $CPPFLAGS'
11773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11776
11777 depcc="$CC" am_compiler_list=
11778
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11780 $as_echo_n "checking dependency style of $depcc... " >&6; }
11781 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11782 $as_echo_n "(cached) " >&6
11783 else
11784 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11785 # We make a subdir and do the tests there. Otherwise we can end up
11786 # making bogus files that we don't know about and never remove. For
11787 # instance it was reported that on HP-UX the gcc test will end up
11788 # making a dummy file named `D' -- because `-MD' means `put the output
11789 # in D'.
11790 mkdir conftest.dir
11791 # Copy depcomp to subdir because otherwise we won't find it if we're
11792 # using a relative directory.
11793 cp "$am_depcomp" conftest.dir
11794 cd conftest.dir
11795 # We will build objects and dependencies in a subdirectory because
11796 # it helps to detect inapplicable dependency modes. For instance
11797 # both Tru64's cc and ICC support -MD to output dependencies as a
11798 # side effect of compilation, but ICC will put the dependencies in
11799 # the current directory while Tru64 will put them in the object
11800 # directory.
11801 mkdir sub
11802
11803 am_cv_CC_dependencies_compiler_type=none
11804 if test "$am_compiler_list" = ""; then
11805 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11806 fi
11807 am__universal=false
11808 case " $depcc " in #(
11809 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11810 esac
11811
11812 for depmode in $am_compiler_list; do
11813 # Setup a source with many dependencies, because some compilers
11814 # like to wrap large dependency lists on column 80 (with \), and
11815 # we should not choose a depcomp mode which is confused by this.
11816 #
11817 # We need to recreate these files for each test, as the compiler may
11818 # overwrite some of them when testing with obscure command lines.
11819 # This happens at least with the AIX C compiler.
11820 : > sub/conftest.c
11821 for i in 1 2 3 4 5 6; do
11822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11824 # Solaris 8's {/usr,}/bin/sh.
11825 touch sub/conftst$i.h
11826 done
11827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11828
11829 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11830 # mode. It turns out that the SunPro C++ compiler does not properly
11831 # handle `-M -o', and we need to detect this. Also, some Intel
11832 # versions had trouble with output in subdirs
11833 am__obj=sub/conftest.${OBJEXT-o}
11834 am__minus_obj="-o $am__obj"
11835 case $depmode in
11836 gcc)
11837 # This depmode causes a compiler race in universal mode.
11838 test "$am__universal" = false || continue
11839 ;;
11840 nosideeffect)
11841 # after this tag, mechanisms are not by side-effect, so they'll
11842 # only be used when explicitly requested
11843 if test "x$enable_dependency_tracking" = xyes; then
11844 continue
11845 else
11846 break
11847 fi
11848 ;;
11849 msvisualcpp | msvcmsys)
11850 # This compiler won't grok `-c -o', but also, the minuso test has
11851 # not run yet. These depmodes are late enough in the game, and
11852 # so weak that their functioning should not be impacted.
11853 am__obj=conftest.${OBJEXT-o}
11854 am__minus_obj=
11855 ;;
11856 none) break ;;
11857 esac
11858 if depmode=$depmode \
11859 source=sub/conftest.c object=$am__obj \
11860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11862 >/dev/null 2>conftest.err &&
11863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11867 # icc doesn't choke on unknown options, it will just issue warnings
11868 # or remarks (even with -Werror). So we grep stderr for any message
11869 # that says an option was ignored or not supported.
11870 # When given -MP, icc 7.0 and 7.1 complain thusly:
11871 # icc: Command line warning: ignoring option '-M'; no argument required
11872 # The diagnosis changed in icc 8.0:
11873 # icc: Command line remark: option '-MP' not supported
11874 if (grep 'ignoring option' conftest.err ||
11875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11876 am_cv_CC_dependencies_compiler_type=$depmode
11877 break
11878 fi
11879 fi
11880 done
11881
11882 cd ..
11883 rm -rf conftest.dir
11884 else
11885 am_cv_CC_dependencies_compiler_type=none
11886 fi
11887
11888 fi
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11890 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11891 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11892
11893 if
11894 test "x$enable_dependency_tracking" != xno \
11895 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11896 am__fastdepCC_TRUE=
11897 am__fastdepCC_FALSE='#'
11898 else
11899 am__fastdepCC_TRUE='#'
11900 am__fastdepCC_FALSE=
11901 fi
11902
11903
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11905 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11906 if ${ac_cv_prog_cc_c99+:} false; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 ac_cv_prog_cc_c99=no
11910 ac_save_CC=$CC
11911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h. */
11913 #include <stdarg.h>
11914 #include <stdbool.h>
11915 #include <stdlib.h>
11916 #include <wchar.h>
11917 #include <stdio.h>
11918
11919 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11920 #define debug(...) fprintf (stderr, __VA_ARGS__)
11921 #define showlist(...) puts (#__VA_ARGS__)
11922 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11923 static void
11924 test_varargs_macros (void)
11925 {
11926 int x = 1234;
11927 int y = 5678;
11928 debug ("Flag");
11929 debug ("X = %d\n", x);
11930 showlist (The first, second, and third items.);
11931 report (x>y, "x is %d but y is %d", x, y);
11932 }
11933
11934 // Check long long types.
11935 #define BIG64 18446744073709551615ull
11936 #define BIG32 4294967295ul
11937 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11938 #if !BIG_OK
11939 your preprocessor is broken;
11940 #endif
11941 #if BIG_OK
11942 #else
11943 your preprocessor is broken;
11944 #endif
11945 static long long int bignum = -9223372036854775807LL;
11946 static unsigned long long int ubignum = BIG64;
11947
11948 struct incomplete_array
11949 {
11950 int datasize;
11951 double data[];
11952 };
11953
11954 struct named_init {
11955 int number;
11956 const wchar_t *name;
11957 double average;
11958 };
11959
11960 typedef const char *ccp;
11961
11962 static inline int
11963 test_restrict (ccp restrict text)
11964 {
11965 // See if C++-style comments work.
11966 // Iterate through items via the restricted pointer.
11967 // Also check for declarations in for loops.
11968 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11969 continue;
11970 return 0;
11971 }
11972
11973 // Check varargs and va_copy.
11974 static void
11975 test_varargs (const char *format, ...)
11976 {
11977 va_list args;
11978 va_start (args, format);
11979 va_list args_copy;
11980 va_copy (args_copy, args);
11981
11982 const char *str;
11983 int number;
11984 float fnumber;
11985
11986 while (*format)
11987 {
11988 switch (*format++)
11989 {
11990 case 's': // string
11991 str = va_arg (args_copy, const char *);
11992 break;
11993 case 'd': // int
11994 number = va_arg (args_copy, int);
11995 break;
11996 case 'f': // float
11997 fnumber = va_arg (args_copy, double);
11998 break;
11999 default:
12000 break;
12001 }
12002 }
12003 va_end (args_copy);
12004 va_end (args);
12005 }
12006
12007 int
12008 main ()
12009 {
12010
12011 // Check bool.
12012 _Bool success = false;
12013
12014 // Check restrict.
12015 if (test_restrict ("String literal") == 0)
12016 success = true;
12017 char *restrict newvar = "Another string";
12018
12019 // Check varargs.
12020 test_varargs ("s, d' f .", "string", 65, 34.234);
12021 test_varargs_macros ();
12022
12023 // Check flexible array members.
12024 struct incomplete_array *ia =
12025 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12026 ia->datasize = 10;
12027 for (int i = 0; i < ia->datasize; ++i)
12028 ia->data[i] = i * 1.234;
12029
12030 // Check named initializers.
12031 struct named_init ni = {
12032 .number = 34,
12033 .name = L"Test wide string",
12034 .average = 543.34343,
12035 };
12036
12037 ni.number = 58;
12038
12039 int dynamic_array[ni.number];
12040 dynamic_array[ni.number - 1] = 543;
12041
12042 // work around unused variable warnings
12043 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12044 || dynamic_array[ni.number - 1] != 543);
12045
12046 ;
12047 return 0;
12048 }
12049 _ACEOF
12050 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
12051 do
12052 CC="$ac_save_CC $ac_arg"
12053 if ac_fn_c_try_compile "$LINENO"; then :
12054 ac_cv_prog_cc_c99=$ac_arg
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext
12057 test "x$ac_cv_prog_cc_c99" != "xno" && break
12058 done
12059 rm -f conftest.$ac_ext
12060 CC=$ac_save_CC
12061
12062 fi
12063 # AC_CACHE_VAL
12064 case "x$ac_cv_prog_cc_c99" in
12065 x)
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12067 $as_echo "none needed" >&6; } ;;
12068 xno)
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12070 $as_echo "unsupported" >&6; } ;;
12071 *)
12072 CC="$CC $ac_cv_prog_cc_c99"
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12074 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12075 esac
12076 if test "x$ac_cv_prog_cc_c99" != xno; then :
12077
12078 fi
12079
12080
12081
12082
12083 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12084 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12085 CLANGCC="yes"
12086 else
12087 CLANGCC="no"
12088 fi
12089
12090 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12091 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12092 INTELCC="yes"
12093 else
12094 INTELCC="no"
12095 fi
12096
12097 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12098 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12099 SUNCC="yes"
12100 else
12101 SUNCC="no"
12102 fi
12103
12104
12105
12106
12107
12108 if test "x$GCC" = xyes ; then
12109 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
12110 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
12111 -Wbad-function-cast -Wformat=2"
12112 case `$CC -dumpversion` in
12113 3.4.* | 4.*)
12114 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
12115 ;;
12116 esac
12117 else
12118 if test "x$SUNCC" = "xyes"; then
12119 CWARNFLAGS="-v"
12120 fi
12121 fi
12122
12123
12124
12125
12126
12127
12128 # Check whether --with-xorg-module-dir was given.
12129 if test "${with_xorg_module_dir+set}" = set; then :
12130 withval=$with_xorg_module_dir; moduledir="$withval"
12131 else
12132 moduledir="$libdir/xorg/modules"
12133 fi
12134
12135 inputdir=${moduledir}/input
12136
12137
12138 # Checks for extensions
12139
12140
12141
12142
12143
12144
12145 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12146 if test -n "$ac_tool_prefix"; then
12147 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12148 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150 $as_echo_n "checking for $ac_word... " >&6; }
12151 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 case $PKG_CONFIG in
12155 [\\/]* | ?:[\\/]*)
12156 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12157 ;;
12158 *)
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12161 do
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12166 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168 break 2
12169 fi
12170 done
12171 done
12172 IFS=$as_save_IFS
12173
12174 ;;
12175 esac
12176 fi
12177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12178 if test -n "$PKG_CONFIG"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12180 $as_echo "$PKG_CONFIG" >&6; }
12181 else
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12184 fi
12185
12186
12187 fi
12188 if test -z "$ac_cv_path_PKG_CONFIG"; then
12189 ac_pt_PKG_CONFIG=$PKG_CONFIG
12190 # Extract the first word of "pkg-config", so it can be a program name with args.
12191 set dummy pkg-config; ac_word=$2
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12193 $as_echo_n "checking for $ac_word... " >&6; }
12194 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 case $ac_pt_PKG_CONFIG in
12198 [\\/]* | ?:[\\/]*)
12199 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12200 ;;
12201 *)
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $PATH
12204 do
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12209 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12211 break 2
12212 fi
12213 done
12214 done
12215 IFS=$as_save_IFS
12216
12217 ;;
12218 esac
12219 fi
12220 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12221 if test -n "$ac_pt_PKG_CONFIG"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12223 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12227 fi
12228
12229 if test "x$ac_pt_PKG_CONFIG" = x; then
12230 PKG_CONFIG=""
12231 else
12232 case $cross_compiling:$ac_tool_warned in
12233 yes:)
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12236 ac_tool_warned=yes ;;
12237 esac
12238 PKG_CONFIG=$ac_pt_PKG_CONFIG
12239 fi
12240 else
12241 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12242 fi
12243
12244 fi
12245 if test -n "$PKG_CONFIG"; then
12246 _pkg_min_version=0.9.0
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12248 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12249 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12251 $as_echo "yes" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12255 PKG_CONFIG=""
12256 fi
12257 fi
12258
12259
12260 SAVE_CFLAGS="$CFLAGS"
12261 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264
12265 #include "xorg-server.h"
12266 #if !defined RANDR
12267 #error RANDR not defined
12268 #endif
12269
12270 int
12271 main ()
12272 {
12273
12274 ;
12275 return 0;
12276 }
12277 _ACEOF
12278 if ac_fn_c_try_compile "$LINENO"; then :
12279 _EXT_CHECK=yes
12280 else
12281 _EXT_CHECK=no
12282 fi
12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 CFLAGS="$SAVE_CFLAGS"
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
12286 $as_echo_n "checking if RANDR is defined... " >&6; }
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
12288 $as_echo "$_EXT_CHECK" >&6; }
12289 if test "$_EXT_CHECK" != no; then
12290 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
12291 fi
12292
12293
12294
12295 SAVE_CFLAGS="$CFLAGS"
12296 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12299
12300 #include "xorg-server.h"
12301 #if !defined XINPUT
12302 #error XINPUT not defined
12303 #endif
12304
12305 int
12306 main ()
12307 {
12308
12309 ;
12310 return 0;
12311 }
12312 _ACEOF
12313 if ac_fn_c_try_compile "$LINENO"; then :
12314 _EXT_CHECK=yes
12315 else
12316 _EXT_CHECK=no
12317 fi
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 CFLAGS="$SAVE_CFLAGS"
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINPUT is defined" >&5
12321 $as_echo_n "checking if XINPUT is defined... " >&6; }
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
12323 $as_echo "$_EXT_CHECK" >&6; }
12324 if test "$_EXT_CHECK" != no; then
12325 REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
12326 fi
12327
12328
12329 # Checks for pkg-config packages
12330
12331 pkg_failed=no
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
12333 $as_echo_n "checking for XORG... " >&6; }
12334
12335 if test -n "$XORG_CFLAGS"; then
12336 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
12337 elif test -n "$PKG_CONFIG"; then
12338 if test -n "$PKG_CONFIG" && \
12339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10.0 xproto \$REQUIRED_MODULES\""; } >&5
12340 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES") 2>&5
12341 ac_status=$?
12342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12343 test $ac_status = 0; }; then
12344 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>/dev/null`
12345 else
12346 pkg_failed=yes
12347 fi
12348 else
12349 pkg_failed=untried
12350 fi
12351 if test -n "$XORG_LIBS"; then
12352 pkg_cv_XORG_LIBS="$XORG_LIBS"
12353 elif test -n "$PKG_CONFIG"; then
12354 if test -n "$PKG_CONFIG" && \
12355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10.0 xproto \$REQUIRED_MODULES\""; } >&5
12356 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES") 2>&5
12357 ac_status=$?
12358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12359 test $ac_status = 0; }; then
12360 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>/dev/null`
12361 else
12362 pkg_failed=yes
12363 fi
12364 else
12365 pkg_failed=untried
12366 fi
12367
12368
12369
12370 if test $pkg_failed = yes; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372 $as_echo "no" >&6; }
12373
12374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12375 _pkg_short_errors_supported=yes
12376 else
12377 _pkg_short_errors_supported=no
12378 fi
12379 if test $_pkg_short_errors_supported = yes; then
12380 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>&1`
12381 else
12382 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>&1`
12383 fi
12384 # Put the nasty error message in config.log where it belongs
12385 echo "$XORG_PKG_ERRORS" >&5
12386
12387 as_fn_error $? "Package requirements (xorg-server >= 1.10.0 xproto $REQUIRED_MODULES) were not met:
12388
12389 $XORG_PKG_ERRORS
12390
12391 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12392 installed software in a non-standard prefix.
12393
12394 Alternatively, you may set the environment variables XORG_CFLAGS
12395 and XORG_LIBS to avoid the need to call pkg-config.
12396 See the pkg-config man page for more details." "$LINENO" 5
12397
12398 elif test $pkg_failed = untried; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12403 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12404 is in your PATH or set the PKG_CONFIG environment variable to the full
12405 path to pkg-config.
12406
12407 Alternatively, you may set the environment variables XORG_CFLAGS
12408 and XORG_LIBS to avoid the need to call pkg-config.
12409 See the pkg-config man page for more details.
12410
12411 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12412 See \`config.log' for more details" "$LINENO" 5; }
12413
12414 else
12415 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
12416 XORG_LIBS=$pkg_cv_XORG_LIBS
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12418 $as_echo "yes" >&6; }
12419
12420 fi
12421 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12422 XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS"
12423
12424 # Checks for libraries.
12425
12426 # Checks for header files.
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12428 $as_echo_n "checking for ANSI C header files... " >&6; }
12429 if ${ac_cv_header_stdc+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434 #include <stdlib.h>
12435 #include <stdarg.h>
12436 #include <string.h>
12437 #include <float.h>
12438
12439 int
12440 main ()
12441 {
12442
12443 ;
12444 return 0;
12445 }
12446 _ACEOF
12447 if ac_fn_c_try_compile "$LINENO"; then :
12448 ac_cv_header_stdc=yes
12449 else
12450 ac_cv_header_stdc=no
12451 fi
12452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453
12454 if test $ac_cv_header_stdc = yes; then
12455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12458 #include <string.h>
12459
12460 _ACEOF
12461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12462 $EGREP "memchr" >/dev/null 2>&1; then :
12463
12464 else
12465 ac_cv_header_stdc=no
12466 fi
12467 rm -f conftest*
12468
12469 fi
12470
12471 if test $ac_cv_header_stdc = yes; then
12472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12475 #include <stdlib.h>
12476
12477 _ACEOF
12478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12479 $EGREP "free" >/dev/null 2>&1; then :
12480
12481 else
12482 ac_cv_header_stdc=no
12483 fi
12484 rm -f conftest*
12485
12486 fi
12487
12488 if test $ac_cv_header_stdc = yes; then
12489 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12490 if test "$cross_compiling" = yes; then :
12491 :
12492 else
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #include <ctype.h>
12496 #include <stdlib.h>
12497 #if ((' ' & 0x0FF) == 0x020)
12498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12500 #else
12501 # define ISLOWER(c) \
12502 (('a' <= (c) && (c) <= 'i') \
12503 || ('j' <= (c) && (c) <= 'r') \
12504 || ('s' <= (c) && (c) <= 'z'))
12505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12506 #endif
12507
12508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12509 int
12510 main ()
12511 {
12512 int i;
12513 for (i = 0; i < 256; i++)
12514 if (XOR (islower (i), ISLOWER (i))
12515 || toupper (i) != TOUPPER (i))
12516 return 2;
12517 return 0;
12518 }
12519 _ACEOF
12520 if ac_fn_c_try_run "$LINENO"; then :
12521
12522 else
12523 ac_cv_header_stdc=no
12524 fi
12525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12526 conftest.$ac_objext conftest.beam conftest.$ac_ext
12527 fi
12528
12529 fi
12530 fi
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12532 $as_echo "$ac_cv_header_stdc" >&6; }
12533 if test $ac_cv_header_stdc = yes; then
12534
12535 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12536
12537 fi
12538
12539
12540 DRIVER_NAME=elographics
12541
12542
12543
12544
12545
12546
12547 if test x$APP_MAN_SUFFIX = x ; then
12548 APP_MAN_SUFFIX=1
12549 fi
12550 if test x$APP_MAN_DIR = x ; then
12551 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12552 fi
12553
12554 if test x$LIB_MAN_SUFFIX = x ; then
12555 LIB_MAN_SUFFIX=3
12556 fi
12557 if test x$LIB_MAN_DIR = x ; then
12558 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12559 fi
12560
12561 if test x$FILE_MAN_SUFFIX = x ; then
12562 case $host_os in
12563 solaris*) FILE_MAN_SUFFIX=4 ;;
12564 *) FILE_MAN_SUFFIX=5 ;;
12565 esac
12566 fi
12567 if test x$FILE_MAN_DIR = x ; then
12568 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12569 fi
12570
12571 if test x$MISC_MAN_SUFFIX = x ; then
12572 case $host_os in
12573 solaris*) MISC_MAN_SUFFIX=5 ;;
12574 *) MISC_MAN_SUFFIX=7 ;;
12575 esac
12576 fi
12577 if test x$MISC_MAN_DIR = x ; then
12578 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12579 fi
12580
12581 if test x$DRIVER_MAN_SUFFIX = x ; then
12582 case $host_os in
12583 solaris*) DRIVER_MAN_SUFFIX=7 ;;
12584 *) DRIVER_MAN_SUFFIX=4 ;;
12585 esac
12586 fi
12587 if test x$DRIVER_MAN_DIR = x ; then
12588 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12589 fi
12590
12591 if test x$ADMIN_MAN_SUFFIX = x ; then
12592 case $host_os in
12593 solaris*) ADMIN_MAN_SUFFIX=1m ;;
12594 *) ADMIN_MAN_SUFFIX=8 ;;
12595 esac
12596 fi
12597 if test x$ADMIN_MAN_DIR = x ; then
12598 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12599 fi
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615 XORG_MAN_PAGE="X Version 11"
12616
12617 MAN_SUBSTS="\
12618 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12619 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12620 -e 's|__xservername__|Xorg|g' \
12621 -e 's|__xconfigfile__|xorg.conf|g' \
12622 -e 's|__xorgconfdir__|xorg.conf.d|g' \
12623 -e 's|__projectroot__|\$(prefix)|g' \
12624 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
12625 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12626 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12627 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12628 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12629 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12630 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12631
12632
12633
12634
12635
12636 cat >>confdefs.h <<_ACEOF
12637 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12638 _ACEOF
12639
12640 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12641 if test "x$PVM" = "x"; then
12642 PVM="0"
12643 fi
12644
12645 cat >>confdefs.h <<_ACEOF
12646 #define PACKAGE_VERSION_MINOR $PVM
12647 _ACEOF
12648
12649 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12650 if test "x$PVP" = "x"; then
12651 PVP="0"
12652 fi
12653
12654 cat >>confdefs.h <<_ACEOF
12655 #define PACKAGE_VERSION_PATCHLEVEL $PVP
12656 _ACEOF
12657
12658
12659
12660 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
12661 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12662 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
12663 echo 'git directory not found: installing possibly empty changelog.' >&2)"
12664
12665
12666
12667 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
12668
12669 cat >confcache <<\_ACEOF
12670 # This file is a shell script that caches the results of configure
12671 # tests run on this system so they can be shared between configure
12672 # scripts and configure runs, see configure's option --config-cache.
12673 # It is not useful on other systems. If it contains results you don't
12674 # want to keep, you may remove or edit it.
12675 #
12676 # config.status only pays attention to the cache file if you give it
12677 # the --recheck option to rerun configure.
12678 #
12679 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12680 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12681 # following values.
12682
12683 _ACEOF
12684
12685 # The following way of writing the cache mishandles newlines in values,
12686 # but we know of no workaround that is simple, portable, and efficient.
12687 # So, we kill variables containing newlines.
12688 # Ultrix sh set writes to stderr and can't be redirected directly,
12689 # and sets the high bit in the cache file unless we assign to the vars.
12690 (
12691 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12692 eval ac_val=\$$ac_var
12693 case $ac_val in #(
12694 *${as_nl}*)
12695 case $ac_var in #(
12696 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12697 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12698 esac
12699 case $ac_var in #(
12700 _ | IFS | as_nl) ;; #(
12701 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12702 *) { eval $ac_var=; unset $ac_var;} ;;
12703 esac ;;
12704 esac
12705 done
12706
12707 (set) 2>&1 |
12708 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12709 *${as_nl}ac_space=\ *)
12710 # `set' does not quote correctly, so add quotes: double-quote
12711 # substitution turns \\\\ into \\, and sed turns \\ into \.
12712 sed -n \
12713 "s/'/'\\\\''/g;
12714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12715 ;; #(
12716 *)
12717 # `set' quotes correctly as required by POSIX, so do not add quotes.
12718 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12719 ;;
12720 esac |
12721 sort
12722 ) |
12723 sed '
12724 /^ac_cv_env_/b end
12725 t clear
12726 :clear
12727 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12728 t end
12729 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12730 :end' >>confcache
12731 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12732 if test -w "$cache_file"; then
12733 if test "x$cache_file" != "x/dev/null"; then
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12735 $as_echo "$as_me: updating cache $cache_file" >&6;}
12736 if test ! -f "$cache_file" || test -h "$cache_file"; then
12737 cat confcache >"$cache_file"
12738 else
12739 case $cache_file in #(
12740 */* | ?:*)
12741 mv -f confcache "$cache_file"$$ &&
12742 mv -f "$cache_file"$$ "$cache_file" ;; #(
12743 *)
12744 mv -f confcache "$cache_file" ;;
12745 esac
12746 fi
12747 fi
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12750 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12751 fi
12752 fi
12753 rm -f confcache
12754
12755 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12756 # Let make expand exec_prefix.
12757 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12758
12759 DEFS=-DHAVE_CONFIG_H
12760
12761 ac_libobjs=
12762 ac_ltlibobjs=
12763 U=
12764 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12765 # 1. Remove the extension, and $U if already installed.
12766 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12767 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12768 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12769 # will be set to the directory where LIBOBJS objects are built.
12770 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12771 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12772 done
12773 LIBOBJS=$ac_libobjs
12774
12775 LTLIBOBJS=$ac_ltlibobjs
12776
12777
12778 if test -n "$EXEEXT"; then
12779 am__EXEEXT_TRUE=
12780 am__EXEEXT_FALSE='#'
12781 else
12782 am__EXEEXT_TRUE='#'
12783 am__EXEEXT_FALSE=
12784 fi
12785
12786 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12787 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12789 fi
12790 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12791 as_fn_error $? "conditional \"AMDEP\" was never defined.
12792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12793 fi
12794 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12795 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12797 fi
12798 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12799 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12801 fi
12802
12803 : "${CONFIG_STATUS=./config.status}"
12804 ac_write_fail=0
12805 ac_clean_files_save=$ac_clean_files
12806 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12808 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12809 as_write_fail=0
12810 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12811 #! $SHELL
12812 # Generated by $as_me.
12813 # Run this file to recreate the current configuration.
12814 # Compiler output produced by configure, useful for debugging
12815 # configure, is in config.log if it exists.
12816
12817 debug=false
12818 ac_cs_recheck=false
12819 ac_cs_silent=false
12820
12821 SHELL=\${CONFIG_SHELL-$SHELL}
12822 export SHELL
12823 _ASEOF
12824 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12825 ## -------------------- ##
12826 ## M4sh Initialization. ##
12827 ## -------------------- ##
12828
12829 # Be more Bourne compatible
12830 DUALCASE=1; export DUALCASE # for MKS sh
12831 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12832 emulate sh
12833 NULLCMD=:
12834 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12835 # is contrary to our usage. Disable this feature.
12836 alias -g '${1+"$@"}'='"$@"'
12837 setopt NO_GLOB_SUBST
12838 else
12839 case `(set -o) 2>/dev/null` in #(
12840 *posix*) :
12841 set -o posix ;; #(
12842 *) :
12843 ;;
12844 esac
12845 fi
12846
12847
12848 as_nl='
12849 '
12850 export as_nl
12851 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12852 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12853 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12854 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12855 # Prefer a ksh shell builtin over an external printf program on Solaris,
12856 # but without wasting forks for bash or zsh.
12857 if test -z "$BASH_VERSION$ZSH_VERSION" \
12858 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12859 as_echo='print -r --'
12860 as_echo_n='print -rn --'
12861 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12862 as_echo='printf %s\n'
12863 as_echo_n='printf %s'
12864 else
12865 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12866 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12867 as_echo_n='/usr/ucb/echo -n'
12868 else
12869 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12870 as_echo_n_body='eval
12871 arg=$1;
12872 case $arg in #(
12873 *"$as_nl"*)
12874 expr "X$arg" : "X\\(.*\\)$as_nl";
12875 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12876 esac;
12877 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12878 '
12879 export as_echo_n_body
12880 as_echo_n='sh -c $as_echo_n_body as_echo'
12881 fi
12882 export as_echo_body
12883 as_echo='sh -c $as_echo_body as_echo'
12884 fi
12885
12886 # The user is always right.
12887 if test "${PATH_SEPARATOR+set}" != set; then
12888 PATH_SEPARATOR=:
12889 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12890 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12891 PATH_SEPARATOR=';'
12892 }
12893 fi
12894
12895
12896 # IFS
12897 # We need space, tab and new line, in precisely that order. Quoting is
12898 # there to prevent editors from complaining about space-tab.
12899 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12900 # splitting by setting IFS to empty value.)
12901 IFS=" "" $as_nl"
12902
12903 # Find who we are. Look in the path if we contain no directory separator.
12904 as_myself=
12905 case $0 in #((
12906 *[\\/]* ) as_myself=$0 ;;
12907 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $PATH
12909 do
12910 IFS=$as_save_IFS
12911 test -z "$as_dir" && as_dir=.
12912 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12913 done
12914 IFS=$as_save_IFS
12915
12916 ;;
12917 esac
12918 # We did not find ourselves, most probably we were run as `sh COMMAND'
12919 # in which case we are not to be found in the path.
12920 if test "x$as_myself" = x; then
12921 as_myself=$0
12922 fi
12923 if test ! -f "$as_myself"; then
12924 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12925 exit 1
12926 fi
12927
12928 # Unset variables that we do not need and which cause bugs (e.g. in
12929 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12930 # suppresses any "Segmentation fault" message there. '((' could
12931 # trigger a bug in pdksh 5.2.14.
12932 for as_var in BASH_ENV ENV MAIL MAILPATH
12933 do eval test x\${$as_var+set} = xset \
12934 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12935 done
12936 PS1='$ '
12937 PS2='> '
12938 PS4='+ '
12939
12940 # NLS nuisances.
12941 LC_ALL=C
12942 export LC_ALL
12943 LANGUAGE=C
12944 export LANGUAGE
12945
12946 # CDPATH.
12947 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12948
12949
12950 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12951 # ----------------------------------------
12952 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12953 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12954 # script with STATUS, using 1 if that was 0.
12955 as_fn_error ()
12956 {
12957 as_status=$1; test $as_status -eq 0 && as_status=1
12958 if test "$4"; then
12959 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12960 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12961 fi
12962 $as_echo "$as_me: error: $2" >&2
12963 as_fn_exit $as_status
12964 } # as_fn_error
12965
12966
12967 # as_fn_set_status STATUS
12968 # -----------------------
12969 # Set $? to STATUS, without forking.
12970 as_fn_set_status ()
12971 {
12972 return $1
12973 } # as_fn_set_status
12974
12975 # as_fn_exit STATUS
12976 # -----------------
12977 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12978 as_fn_exit ()
12979 {
12980 set +e
12981 as_fn_set_status $1
12982 exit $1
12983 } # as_fn_exit
12984
12985 # as_fn_unset VAR
12986 # ---------------
12987 # Portably unset VAR.
12988 as_fn_unset ()
12989 {
12990 { eval $1=; unset $1;}
12991 }
12992 as_unset=as_fn_unset
12993 # as_fn_append VAR VALUE
12994 # ----------------------
12995 # Append the text in VALUE to the end of the definition contained in VAR. Take
12996 # advantage of any shell optimizations that allow amortized linear growth over
12997 # repeated appends, instead of the typical quadratic growth present in naive
12998 # implementations.
12999 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13000 eval 'as_fn_append ()
13001 {
13002 eval $1+=\$2
13003 }'
13004 else
13005 as_fn_append ()
13006 {
13007 eval $1=\$$1\$2
13008 }
13009 fi # as_fn_append
13010
13011 # as_fn_arith ARG...
13012 # ------------------
13013 # Perform arithmetic evaluation on the ARGs, and store the result in the
13014 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13015 # must be portable across $(()) and expr.
13016 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13017 eval 'as_fn_arith ()
13018 {
13019 as_val=$(( $* ))
13020 }'
13021 else
13022 as_fn_arith ()
13023 {
13024 as_val=`expr "$@" || test $? -eq 1`
13025 }
13026 fi # as_fn_arith
13027
13028
13029 if expr a : '\(a\)' >/dev/null 2>&1 &&
13030 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13031 as_expr=expr
13032 else
13033 as_expr=false
13034 fi
13035
13036 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13037 as_basename=basename
13038 else
13039 as_basename=false
13040 fi
13041
13042 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13043 as_dirname=dirname
13044 else
13045 as_dirname=false
13046 fi
13047
13048 as_me=`$as_basename -- "$0" ||
13049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13050 X"$0" : 'X\(//\)$' \| \
13051 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13052 $as_echo X/"$0" |
13053 sed '/^.*\/\([^/][^/]*\)\/*$/{
13054 s//\1/
13055 q
13056 }
13057 /^X\/\(\/\/\)$/{
13058 s//\1/
13059 q
13060 }
13061 /^X\/\(\/\).*/{
13062 s//\1/
13063 q
13064 }
13065 s/.*/./; q'`
13066
13067 # Avoid depending upon Character Ranges.
13068 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13069 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13070 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13071 as_cr_digits='0123456789'
13072 as_cr_alnum=$as_cr_Letters$as_cr_digits
13073
13074 ECHO_C= ECHO_N= ECHO_T=
13075 case `echo -n x` in #(((((
13076 -n*)
13077 case `echo 'xy\c'` in
13078 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13079 xy) ECHO_C='\c';;
13080 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13081 ECHO_T=' ';;
13082 esac;;
13083 *)
13084 ECHO_N='-n';;
13085 esac
13086
13087 rm -f conf$$ conf$$.exe conf$$.file
13088 if test -d conf$$.dir; then
13089 rm -f conf$$.dir/conf$$.file
13090 else
13091 rm -f conf$$.dir
13092 mkdir conf$$.dir 2>/dev/null
13093 fi
13094 if (echo >conf$$.file) 2>/dev/null; then
13095 if ln -s conf$$.file conf$$ 2>/dev/null; then
13096 as_ln_s='ln -s'
13097 # ... but there are two gotchas:
13098 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13099 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13100 # In both cases, we have to default to `cp -p'.
13101 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13102 as_ln_s='cp -p'
13103 elif ln conf$$.file conf$$ 2>/dev/null; then
13104 as_ln_s=ln
13105 else
13106 as_ln_s='cp -p'
13107 fi
13108 else
13109 as_ln_s='cp -p'
13110 fi
13111 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13112 rmdir conf$$.dir 2>/dev/null
13113
13114
13115 # as_fn_mkdir_p
13116 # -------------
13117 # Create "$as_dir" as a directory, including parents if necessary.
13118 as_fn_mkdir_p ()
13119 {
13120
13121 case $as_dir in #(
13122 -*) as_dir=./$as_dir;;
13123 esac
13124 test -d "$as_dir" || eval $as_mkdir_p || {
13125 as_dirs=
13126 while :; do
13127 case $as_dir in #(
13128 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13129 *) as_qdir=$as_dir;;
13130 esac
13131 as_dirs="'$as_qdir' $as_dirs"
13132 as_dir=`$as_dirname -- "$as_dir" ||
13133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13134 X"$as_dir" : 'X\(//\)[^/]' \| \
13135 X"$as_dir" : 'X\(//\)$' \| \
13136 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13137 $as_echo X"$as_dir" |
13138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13139 s//\1/
13140 q
13141 }
13142 /^X\(\/\/\)[^/].*/{
13143 s//\1/
13144 q
13145 }
13146 /^X\(\/\/\)$/{
13147 s//\1/
13148 q
13149 }
13150 /^X\(\/\).*/{
13151 s//\1/
13152 q
13153 }
13154 s/.*/./; q'`
13155 test -d "$as_dir" && break
13156 done
13157 test -z "$as_dirs" || eval "mkdir $as_dirs"
13158 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13159
13160
13161 } # as_fn_mkdir_p
13162 if mkdir -p . 2>/dev/null; then
13163 as_mkdir_p='mkdir -p "$as_dir"'
13164 else
13165 test -d ./-p && rmdir ./-p
13166 as_mkdir_p=false
13167 fi
13168
13169 if test -x / >/dev/null 2>&1; then
13170 as_test_x='test -x'
13171 else
13172 if ls -dL / >/dev/null 2>&1; then
13173 as_ls_L_option=L
13174 else
13175 as_ls_L_option=
13176 fi
13177 as_test_x='
13178 eval sh -c '\''
13179 if test -d "$1"; then
13180 test -d "$1/.";
13181 else
13182 case $1 in #(
13183 -*)set "./$1";;
13184 esac;
13185 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13186 ???[sx]*):;;*)false;;esac;fi
13187 '\'' sh
13188 '
13189 fi
13190 as_executable_p=$as_test_x
13191
13192 # Sed expression to map a string onto a valid CPP name.
13193 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13194
13195 # Sed expression to map a string onto a valid variable name.
13196 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13197
13198
13199 exec 6>&1
13200 ## ----------------------------------- ##
13201 ## Main body of $CONFIG_STATUS script. ##
13202 ## ----------------------------------- ##
13203 _ASEOF
13204 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13205
13206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13207 # Save the log message, to keep $0 and so on meaningful, and to
13208 # report actual input values of CONFIG_FILES etc. instead of their
13209 # values after options handling.
13210 ac_log="
13211 This file was extended by xf86-input-elographics $as_me 1.3.0, which was
13212 generated by GNU Autoconf 2.68. Invocation command line was
13213
13214 CONFIG_FILES = $CONFIG_FILES
13215 CONFIG_HEADERS = $CONFIG_HEADERS
13216 CONFIG_LINKS = $CONFIG_LINKS
13217 CONFIG_COMMANDS = $CONFIG_COMMANDS
13218 $ $0 $@
13219
13220 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13221 "
13222
13223 _ACEOF
13224
13225 case $ac_config_files in *"
13226 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13227 esac
13228
13229 case $ac_config_headers in *"
13230 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13231 esac
13232
13233
13234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13235 # Files that config.status was made for.
13236 config_files="$ac_config_files"
13237 config_headers="$ac_config_headers"
13238 config_commands="$ac_config_commands"
13239
13240 _ACEOF
13241
13242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243 ac_cs_usage="\
13244 \`$as_me' instantiates files and other configuration actions
13245 from templates according to the current configuration. Unless the files
13246 and actions are specified as TAGs, all are instantiated by default.
13247
13248 Usage: $0 [OPTION]... [TAG]...
13249
13250 -h, --help print this help, then exit
13251 -V, --version print version number and configuration settings, then exit
13252 --config print configuration, then exit
13253 -q, --quiet, --silent
13254 do not print progress messages
13255 -d, --debug don't remove temporary files
13256 --recheck update $as_me by reconfiguring in the same conditions
13257 --file=FILE[:TEMPLATE]
13258 instantiate the configuration file FILE
13259 --header=FILE[:TEMPLATE]
13260 instantiate the configuration header FILE
13261
13262 Configuration files:
13263 $config_files
13264
13265 Configuration headers:
13266 $config_headers
13267
13268 Configuration commands:
13269 $config_commands
13270
13271 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13272
13273 _ACEOF
13274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13275 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13276 ac_cs_version="\\
13277 xf86-input-elographics config.status 1.3.0
13278 configured by $0, generated by GNU Autoconf 2.68,
13279 with options \\"\$ac_cs_config\\"
13280
13281 Copyright (C) 2010 Free Software Foundation, Inc.
13282 This config.status script is free software; the Free Software Foundation
13283 gives unlimited permission to copy, distribute and modify it."
13284
13285 ac_pwd='$ac_pwd'
13286 srcdir='$srcdir'
13287 INSTALL='$INSTALL'
13288 MKDIR_P='$MKDIR_P'
13289 AWK='$AWK'
13290 test -n "\$AWK" || AWK=awk
13291 _ACEOF
13292
13293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13294 # The default lists apply if the user does not specify any file.
13295 ac_need_defaults=:
13296 while test $# != 0
13297 do
13298 case $1 in
13299 --*=?*)
13300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13301 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13302 ac_shift=:
13303 ;;
13304 --*=)
13305 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13306 ac_optarg=
13307 ac_shift=:
13308 ;;
13309 *)
13310 ac_option=$1
13311 ac_optarg=$2
13312 ac_shift=shift
13313 ;;
13314 esac
13315
13316 case $ac_option in
13317 # Handling of the options.
13318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13319 ac_cs_recheck=: ;;
13320 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13321 $as_echo "$ac_cs_version"; exit ;;
13322 --config | --confi | --conf | --con | --co | --c )
13323 $as_echo "$ac_cs_config"; exit ;;
13324 --debug | --debu | --deb | --de | --d | -d )
13325 debug=: ;;
13326 --file | --fil | --fi | --f )
13327 $ac_shift
13328 case $ac_optarg in
13329 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13330 '') as_fn_error $? "missing file argument" ;;
13331 esac
13332 as_fn_append CONFIG_FILES " '$ac_optarg'"
13333 ac_need_defaults=false;;
13334 --header | --heade | --head | --hea )
13335 $ac_shift
13336 case $ac_optarg in
13337 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13338 esac
13339 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13340 ac_need_defaults=false;;
13341 --he | --h)
13342 # Conflict between --help and --header
13343 as_fn_error $? "ambiguous option: \`$1'
13344 Try \`$0 --help' for more information.";;
13345 --help | --hel | -h )
13346 $as_echo "$ac_cs_usage"; exit ;;
13347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13348 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13349 ac_cs_silent=: ;;
13350
13351 # This is an error.
13352 -*) as_fn_error $? "unrecognized option: \`$1'
13353 Try \`$0 --help' for more information." ;;
13354
13355 *) as_fn_append ac_config_targets " $1"
13356 ac_need_defaults=false ;;
13357
13358 esac
13359 shift
13360 done
13361
13362 ac_configure_extra_args=
13363
13364 if $ac_cs_silent; then
13365 exec 6>/dev/null
13366 ac_configure_extra_args="$ac_configure_extra_args --silent"
13367 fi
13368
13369 _ACEOF
13370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13371 if \$ac_cs_recheck; then
13372 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13373 shift
13374 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13375 CONFIG_SHELL='$SHELL'
13376 export CONFIG_SHELL
13377 exec "\$@"
13378 fi
13379
13380 _ACEOF
13381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13382 exec 5>>config.log
13383 {
13384 echo
13385 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13386 ## Running $as_me. ##
13387 _ASBOX
13388 $as_echo "$ac_log"
13389 } >&5
13390
13391 _ACEOF
13392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13393 #
13394 # INIT-COMMANDS
13395 #
13396 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13397
13398
13399 # The HP-UX ksh and POSIX shell print the target directory to stdout
13400 # if CDPATH is set.
13401 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13402
13403 sed_quote_subst='$sed_quote_subst'
13404 double_quote_subst='$double_quote_subst'
13405 delay_variable_subst='$delay_variable_subst'
13406 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13407 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13408 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13409 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13410 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13411 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13412 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13413 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13414 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13415 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13416 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13417 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13418 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13419 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13420 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13421 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13422 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13423 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13424 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13425 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13426 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13427 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13428 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13429 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13430 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13431 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13432 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13433 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13434 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13435 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13436 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13437 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13438 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13439 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13440 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13441 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13442 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13443 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13444 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13445 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13446 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13447 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13448 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13449 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13450 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13451 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13452 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13453 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13454 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13455 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13456 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13457 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13458 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13459 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13460 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13461 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"`'
13462 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13463 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13464 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13465 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13466 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13467 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13468 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13469 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13470 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13471 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13472 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13473 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13474 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13475 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13476 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13477 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13478 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13479 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13480 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13481 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13482 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13483 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13484 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13485 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13486 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13487 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13488 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13489 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13490 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13491 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13492 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13493 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13494 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13495 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13496 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13497 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13498 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13499 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13500 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13501 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13502 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13503 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13504 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13505 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13506 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13507 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13508 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13509 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13510 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13511 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13512 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13513 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13514 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13515 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13516 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13517 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13518 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13519 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13520 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13521 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13522 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13523 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13524 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13525 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13526 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13527 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13528 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13529 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13530 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13531 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13532 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13533 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13534 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13535 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13536
13537 LTCC='$LTCC'
13538 LTCFLAGS='$LTCFLAGS'
13539 compiler='$compiler_DEFAULT'
13540
13541 # A function that is used when there is no print builtin or printf.
13542 func_fallback_echo ()
13543 {
13544 eval 'cat <<_LTECHO_EOF
13545 \$1
13546 _LTECHO_EOF'
13547 }
13548
13549 # Quote evaled strings.
13550 for var in SHELL \
13551 ECHO \
13552 SED \
13553 GREP \
13554 EGREP \
13555 FGREP \
13556 LD \
13557 NM \
13558 LN_S \
13559 lt_SP2NL \
13560 lt_NL2SP \
13561 reload_flag \
13562 OBJDUMP \
13563 deplibs_check_method \
13564 file_magic_cmd \
13565 file_magic_glob \
13566 want_nocaseglob \
13567 DLLTOOL \
13568 sharedlib_from_linklib_cmd \
13569 AR \
13570 AR_FLAGS \
13571 archiver_list_spec \
13572 STRIP \
13573 RANLIB \
13574 CC \
13575 CFLAGS \
13576 compiler \
13577 lt_cv_sys_global_symbol_pipe \
13578 lt_cv_sys_global_symbol_to_cdecl \
13579 lt_cv_sys_global_symbol_to_c_name_address \
13580 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13581 nm_file_list_spec \
13582 lt_prog_compiler_no_builtin_flag \
13583 lt_prog_compiler_pic \
13584 lt_prog_compiler_wl \
13585 lt_prog_compiler_static \
13586 lt_cv_prog_compiler_c_o \
13587 need_locks \
13588 MANIFEST_TOOL \
13589 DSYMUTIL \
13590 NMEDIT \
13591 LIPO \
13592 OTOOL \
13593 OTOOL64 \
13594 shrext_cmds \
13595 export_dynamic_flag_spec \
13596 whole_archive_flag_spec \
13597 compiler_needs_object \
13598 with_gnu_ld \
13599 allow_undefined_flag \
13600 no_undefined_flag \
13601 hardcode_libdir_flag_spec \
13602 hardcode_libdir_flag_spec_ld \
13603 hardcode_libdir_separator \
13604 exclude_expsyms \
13605 include_expsyms \
13606 file_list_spec \
13607 variables_saved_for_relink \
13608 libname_spec \
13609 library_names_spec \
13610 soname_spec \
13611 install_override_mode \
13612 finish_eval \
13613 old_striplib \
13614 striplib; do
13615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13616 *[\\\\\\\`\\"\\\$]*)
13617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13618 ;;
13619 *)
13620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13621 ;;
13622 esac
13623 done
13624
13625 # Double-quote double-evaled strings.
13626 for var in reload_cmds \
13627 old_postinstall_cmds \
13628 old_postuninstall_cmds \
13629 old_archive_cmds \
13630 extract_expsyms_cmds \
13631 old_archive_from_new_cmds \
13632 old_archive_from_expsyms_cmds \
13633 archive_cmds \
13634 archive_expsym_cmds \
13635 module_cmds \
13636 module_expsym_cmds \
13637 export_symbols_cmds \
13638 prelink_cmds \
13639 postlink_cmds \
13640 postinstall_cmds \
13641 postuninstall_cmds \
13642 finish_cmds \
13643 sys_lib_search_path_spec \
13644 sys_lib_dlsearch_path_spec; do
13645 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13646 *[\\\\\\\`\\"\\\$]*)
13647 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13648 ;;
13649 *)
13650 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13651 ;;
13652 esac
13653 done
13654
13655 ac_aux_dir='$ac_aux_dir'
13656 xsi_shell='$xsi_shell'
13657 lt_shell_append='$lt_shell_append'
13658
13659 # See if we are running on zsh, and set the options which allow our
13660 # commands through without removal of \ escapes INIT.
13661 if test -n "\${ZSH_VERSION+set}" ; then
13662 setopt NO_GLOB_SUBST
13663 fi
13664
13665
13666 PACKAGE='$PACKAGE'
13667 VERSION='$VERSION'
13668 TIMESTAMP='$TIMESTAMP'
13669 RM='$RM'
13670 ofile='$ofile'
13671
13672
13673
13674
13675 _ACEOF
13676
13677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13678
13679 # Handling of arguments.
13680 for ac_config_target in $ac_config_targets
13681 do
13682 case $ac_config_target in
13683 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13684 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13685 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13687 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13688 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13689
13690 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13691 esac
13692 done
13693
13694
13695 # If the user did not use the arguments to specify the items to instantiate,
13696 # then the envvar interface is used. Set only those that are not.
13697 # We use the long form for the default assignment because of an extremely
13698 # bizarre bug on SunOS 4.1.3.
13699 if $ac_need_defaults; then
13700 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13701 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13702 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13703 fi
13704
13705 # Have a temporary directory for convenience. Make it in the build tree
13706 # simply because there is no reason against having it here, and in addition,
13707 # creating and moving files from /tmp can sometimes cause problems.
13708 # Hook for its removal unless debugging.
13709 # Note that there is a small window in which the directory will not be cleaned:
13710 # after its creation but before its name has been assigned to `$tmp'.
13711 $debug ||
13712 {
13713 tmp= ac_tmp=
13714 trap 'exit_status=$?
13715 : "${ac_tmp:=$tmp}"
13716 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13717 ' 0
13718 trap 'as_fn_exit 1' 1 2 13 15
13719 }
13720 # Create a (secure) tmp directory for tmp files.
13721
13722 {
13723 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13724 test -d "$tmp"
13725 } ||
13726 {
13727 tmp=./conf$$-$RANDOM
13728 (umask 077 && mkdir "$tmp")
13729 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13730 ac_tmp=$tmp
13731
13732 # Set up the scripts for CONFIG_FILES section.
13733 # No need to generate them if there are no CONFIG_FILES.
13734 # This happens for instance with `./config.status config.h'.
13735 if test -n "$CONFIG_FILES"; then
13736
13737
13738 ac_cr=`echo X | tr X '\015'`
13739 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13740 # But we know of no other shell where ac_cr would be empty at this
13741 # point, so we can use a bashism as a fallback.
13742 if test "x$ac_cr" = x; then
13743 eval ac_cr=\$\'\\r\'
13744 fi
13745 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13746 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13747 ac_cs_awk_cr='\\r'
13748 else
13749 ac_cs_awk_cr=$ac_cr
13750 fi
13751
13752 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13753 _ACEOF
13754
13755
13756 {
13757 echo "cat >conf$$subs.awk <<_ACEOF" &&
13758 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13759 echo "_ACEOF"
13760 } >conf$$subs.sh ||
13761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13762 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13763 ac_delim='%!_!# '
13764 for ac_last_try in false false false false false :; do
13765 . ./conf$$subs.sh ||
13766 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13767
13768 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13769 if test $ac_delim_n = $ac_delim_num; then
13770 break
13771 elif $ac_last_try; then
13772 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13773 else
13774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13775 fi
13776 done
13777 rm -f conf$$subs.sh
13778
13779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13780 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13781 _ACEOF
13782 sed -n '
13783 h
13784 s/^/S["/; s/!.*/"]=/
13785 p
13786 g
13787 s/^[^!]*!//
13788 :repl
13789 t repl
13790 s/'"$ac_delim"'$//
13791 t delim
13792 :nl
13793 h
13794 s/\(.\{148\}\)..*/\1/
13795 t more1
13796 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13797 p
13798 n
13799 b repl
13800 :more1
13801 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13802 p
13803 g
13804 s/.\{148\}//
13805 t nl
13806 :delim
13807 h
13808 s/\(.\{148\}\)..*/\1/
13809 t more2
13810 s/["\\]/\\&/g; s/^/"/; s/$/"/
13811 p
13812 b
13813 :more2
13814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13815 p
13816 g
13817 s/.\{148\}//
13818 t delim
13819 ' <conf$$subs.awk | sed '
13820 /^[^""]/{
13821 N
13822 s/\n//
13823 }
13824 ' >>$CONFIG_STATUS || ac_write_fail=1
13825 rm -f conf$$subs.awk
13826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 _ACAWK
13828 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13829 for (key in S) S_is_set[key] = 1
13830 FS = ""
13831
13832 }
13833 {
13834 line = $ 0
13835 nfields = split(line, field, "@")
13836 substed = 0
13837 len = length(field[1])
13838 for (i = 2; i < nfields; i++) {
13839 key = field[i]
13840 keylen = length(key)
13841 if (S_is_set[key]) {
13842 value = S[key]
13843 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13844 len += length(value) + length(field[++i])
13845 substed = 1
13846 } else
13847 len += 1 + keylen
13848 }
13849
13850 print line
13851 }
13852
13853 _ACAWK
13854 _ACEOF
13855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13856 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13857 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13858 else
13859 cat
13860 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13861 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13862 _ACEOF
13863
13864 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13865 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13866 # trailing colons and then remove the whole line if VPATH becomes empty
13867 # (actually we leave an empty line to preserve line numbers).
13868 if test "x$srcdir" = x.; then
13869 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13870 h
13871 s///
13872 s/^/:/
13873 s/[ ]*$/:/
13874 s/:\$(srcdir):/:/g
13875 s/:\${srcdir}:/:/g
13876 s/:@srcdir@:/:/g
13877 s/^:*//
13878 s/:*$//
13879 x
13880 s/\(=[ ]*\).*/\1/
13881 G
13882 s/\n//
13883 s/^[^=]*=[ ]*$//
13884 }'
13885 fi
13886
13887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13888 fi # test -n "$CONFIG_FILES"
13889
13890 # Set up the scripts for CONFIG_HEADERS section.
13891 # No need to generate them if there are no CONFIG_HEADERS.
13892 # This happens for instance with `./config.status Makefile'.
13893 if test -n "$CONFIG_HEADERS"; then
13894 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13895 BEGIN {
13896 _ACEOF
13897
13898 # Transform confdefs.h into an awk script `defines.awk', embedded as
13899 # here-document in config.status, that substitutes the proper values into
13900 # config.h.in to produce config.h.
13901
13902 # Create a delimiter string that does not exist in confdefs.h, to ease
13903 # handling of long lines.
13904 ac_delim='%!_!# '
13905 for ac_last_try in false false :; do
13906 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13907 if test -z "$ac_tt"; then
13908 break
13909 elif $ac_last_try; then
13910 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13911 else
13912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13913 fi
13914 done
13915
13916 # For the awk script, D is an array of macro values keyed by name,
13917 # likewise P contains macro parameters if any. Preserve backslash
13918 # newline sequences.
13919
13920 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13921 sed -n '
13922 s/.\{148\}/&'"$ac_delim"'/g
13923 t rset
13924 :rset
13925 s/^[ ]*#[ ]*define[ ][ ]*/ /
13926 t def
13927 d
13928 :def
13929 s/\\$//
13930 t bsnl
13931 s/["\\]/\\&/g
13932 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13933 D["\1"]=" \3"/p
13934 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13935 d
13936 :bsnl
13937 s/["\\]/\\&/g
13938 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13939 D["\1"]=" \3\\\\\\n"\\/p
13940 t cont
13941 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13942 t cont
13943 d
13944 :cont
13945 n
13946 s/.\{148\}/&'"$ac_delim"'/g
13947 t clear
13948 :clear
13949 s/\\$//
13950 t bsnlc
13951 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13952 d
13953 :bsnlc
13954 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13955 b cont
13956 ' <confdefs.h | sed '
13957 s/'"$ac_delim"'/"\\\
13958 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13959
13960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13961 for (key in D) D_is_set[key] = 1
13962 FS = ""
13963 }
13964 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13965 line = \$ 0
13966 split(line, arg, " ")
13967 if (arg[1] == "#") {
13968 defundef = arg[2]
13969 mac1 = arg[3]
13970 } else {
13971 defundef = substr(arg[1], 2)
13972 mac1 = arg[2]
13973 }
13974 split(mac1, mac2, "(") #)
13975 macro = mac2[1]
13976 prefix = substr(line, 1, index(line, defundef) - 1)
13977 if (D_is_set[macro]) {
13978 # Preserve the white space surrounding the "#".
13979 print prefix "define", macro P[macro] D[macro]
13980 next
13981 } else {
13982 # Replace #undef with comments. This is necessary, for example,
13983 # in the case of _POSIX_SOURCE, which is predefined and required
13984 # on some systems where configure will not decide to define it.
13985 if (defundef == "undef") {
13986 print "/*", prefix defundef, macro, "*/"
13987 next
13988 }
13989 }
13990 }
13991 { print }
13992 _ACAWK
13993 _ACEOF
13994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13995 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13996 fi # test -n "$CONFIG_HEADERS"
13997
13998
13999 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14000 shift
14001 for ac_tag
14002 do
14003 case $ac_tag in
14004 :[FHLC]) ac_mode=$ac_tag; continue;;
14005 esac
14006 case $ac_mode$ac_tag in
14007 :[FHL]*:*);;
14008 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14009 :[FH]-) ac_tag=-:-;;
14010 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14011 esac
14012 ac_save_IFS=$IFS
14013 IFS=:
14014 set x $ac_tag
14015 IFS=$ac_save_IFS
14016 shift
14017 ac_file=$1
14018 shift
14019
14020 case $ac_mode in
14021 :L) ac_source=$1;;
14022 :[FH])
14023 ac_file_inputs=
14024 for ac_f
14025 do
14026 case $ac_f in
14027 -) ac_f="$ac_tmp/stdin";;
14028 *) # Look for the file first in the build tree, then in the source tree
14029 # (if the path is not absolute). The absolute path cannot be DOS-style,
14030 # because $ac_f cannot contain `:'.
14031 test -f "$ac_f" ||
14032 case $ac_f in
14033 [\\/$]*) false;;
14034 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14035 esac ||
14036 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14037 esac
14038 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14039 as_fn_append ac_file_inputs " '$ac_f'"
14040 done
14041
14042 # Let's still pretend it is `configure' which instantiates (i.e., don't
14043 # use $as_me), people would be surprised to read:
14044 # /* config.h. Generated by config.status. */
14045 configure_input='Generated from '`
14046 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14047 `' by configure.'
14048 if test x"$ac_file" != x-; then
14049 configure_input="$ac_file. $configure_input"
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14051 $as_echo "$as_me: creating $ac_file" >&6;}
14052 fi
14053 # Neutralize special characters interpreted by sed in replacement strings.
14054 case $configure_input in #(
14055 *\&* | *\|* | *\\* )
14056 ac_sed_conf_input=`$as_echo "$configure_input" |
14057 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14058 *) ac_sed_conf_input=$configure_input;;
14059 esac
14060
14061 case $ac_tag in
14062 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14064 esac
14065 ;;
14066 esac
14067
14068 ac_dir=`$as_dirname -- "$ac_file" ||
14069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14070 X"$ac_file" : 'X\(//\)[^/]' \| \
14071 X"$ac_file" : 'X\(//\)$' \| \
14072 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14073 $as_echo X"$ac_file" |
14074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14075 s//\1/
14076 q
14077 }
14078 /^X\(\/\/\)[^/].*/{
14079 s//\1/
14080 q
14081 }
14082 /^X\(\/\/\)$/{
14083 s//\1/
14084 q
14085 }
14086 /^X\(\/\).*/{
14087 s//\1/
14088 q
14089 }
14090 s/.*/./; q'`
14091 as_dir="$ac_dir"; as_fn_mkdir_p
14092 ac_builddir=.
14093
14094 case "$ac_dir" in
14095 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14096 *)
14097 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14098 # A ".." for each directory in $ac_dir_suffix.
14099 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14100 case $ac_top_builddir_sub in
14101 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14102 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14103 esac ;;
14104 esac
14105 ac_abs_top_builddir=$ac_pwd
14106 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14107 # for backward compatibility:
14108 ac_top_builddir=$ac_top_build_prefix
14109
14110 case $srcdir in
14111 .) # We are building in place.
14112 ac_srcdir=.
14113 ac_top_srcdir=$ac_top_builddir_sub
14114 ac_abs_top_srcdir=$ac_pwd ;;
14115 [\\/]* | ?:[\\/]* ) # Absolute name.
14116 ac_srcdir=$srcdir$ac_dir_suffix;
14117 ac_top_srcdir=$srcdir
14118 ac_abs_top_srcdir=$srcdir ;;
14119 *) # Relative name.
14120 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14121 ac_top_srcdir=$ac_top_build_prefix$srcdir
14122 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14123 esac
14124 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14125
14126
14127 case $ac_mode in
14128 :F)
14129 #
14130 # CONFIG_FILE
14131 #
14132
14133 case $INSTALL in
14134 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14135 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14136 esac
14137 ac_MKDIR_P=$MKDIR_P
14138 case $MKDIR_P in
14139 [\\/$]* | ?:[\\/]* ) ;;
14140 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14141 esac
14142 _ACEOF
14143
14144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14145 # If the template does not know about datarootdir, expand it.
14146 # FIXME: This hack should be removed a few years after 2.60.
14147 ac_datarootdir_hack=; ac_datarootdir_seen=
14148 ac_sed_dataroot='
14149 /datarootdir/ {
14150 p
14151 q
14152 }
14153 /@datadir@/p
14154 /@docdir@/p
14155 /@infodir@/p
14156 /@localedir@/p
14157 /@mandir@/p'
14158 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14159 *datarootdir*) ac_datarootdir_seen=yes;;
14160 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14162 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14163 _ACEOF
14164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14165 ac_datarootdir_hack='
14166 s&@datadir@&$datadir&g
14167 s&@docdir@&$docdir&g
14168 s&@infodir@&$infodir&g
14169 s&@localedir@&$localedir&g
14170 s&@mandir@&$mandir&g
14171 s&\\\${datarootdir}&$datarootdir&g' ;;
14172 esac
14173 _ACEOF
14174
14175 # Neutralize VPATH when `$srcdir' = `.'.
14176 # Shell code in configure.ac might set extrasub.
14177 # FIXME: do we really want to maintain this feature?
14178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14179 ac_sed_extra="$ac_vpsub
14180 $extrasub
14181 _ACEOF
14182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14183 :t
14184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14185 s|@configure_input@|$ac_sed_conf_input|;t t
14186 s&@top_builddir@&$ac_top_builddir_sub&;t t
14187 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14188 s&@srcdir@&$ac_srcdir&;t t
14189 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14190 s&@top_srcdir@&$ac_top_srcdir&;t t
14191 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14192 s&@builddir@&$ac_builddir&;t t
14193 s&@abs_builddir@&$ac_abs_builddir&;t t
14194 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14195 s&@INSTALL@&$ac_INSTALL&;t t
14196 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14197 $ac_datarootdir_hack
14198 "
14199 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14200 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14201
14202 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14203 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14204 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14205 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14207 which seems to be undefined. Please make sure it is defined" >&5
14208 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14209 which seems to be undefined. Please make sure it is defined" >&2;}
14210
14211 rm -f "$ac_tmp/stdin"
14212 case $ac_file in
14213 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14214 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14215 esac \
14216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14217 ;;
14218 :H)
14219 #
14220 # CONFIG_HEADER
14221 #
14222 if test x"$ac_file" != x-; then
14223 {
14224 $as_echo "/* $configure_input */" \
14225 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14226 } >"$ac_tmp/config.h" \
14227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14228 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14230 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14231 else
14232 rm -f "$ac_file"
14233 mv "$ac_tmp/config.h" "$ac_file" \
14234 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14235 fi
14236 else
14237 $as_echo "/* $configure_input */" \
14238 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14239 || as_fn_error $? "could not create -" "$LINENO" 5
14240 fi
14241 # Compute "$ac_file"'s index in $config_headers.
14242 _am_arg="$ac_file"
14243 _am_stamp_count=1
14244 for _am_header in $config_headers :; do
14245 case $_am_header in
14246 $_am_arg | $_am_arg:* )
14247 break ;;
14248 * )
14249 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14250 esac
14251 done
14252 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14253 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14254 X"$_am_arg" : 'X\(//\)[^/]' \| \
14255 X"$_am_arg" : 'X\(//\)$' \| \
14256 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14257 $as_echo X"$_am_arg" |
14258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14259 s//\1/
14260 q
14261 }
14262 /^X\(\/\/\)[^/].*/{
14263 s//\1/
14264 q
14265 }
14266 /^X\(\/\/\)$/{
14267 s//\1/
14268 q
14269 }
14270 /^X\(\/\).*/{
14271 s//\1/
14272 q
14273 }
14274 s/.*/./; q'`/stamp-h$_am_stamp_count
14275 ;;
14276
14277 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14278 $as_echo "$as_me: executing $ac_file commands" >&6;}
14279 ;;
14280 esac
14281
14282
14283 case $ac_file$ac_mode in
14284 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14285 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14286 # are listed without --file. Let's play safe and only enable the eval
14287 # if we detect the quoting.
14288 case $CONFIG_FILES in
14289 *\'*) eval set x "$CONFIG_FILES" ;;
14290 *) set x $CONFIG_FILES ;;
14291 esac
14292 shift
14293 for mf
14294 do
14295 # Strip MF so we end up with the name of the file.
14296 mf=`echo "$mf" | sed -e 's/:.*$//'`
14297 # Check whether this is an Automake generated Makefile or not.
14298 # We used to match only the files named `Makefile.in', but
14299 # some people rename them; so instead we look at the file content.
14300 # Grep'ing the first line is not enough: some people post-process
14301 # each Makefile.in and add a new line on top of each file to say so.
14302 # Grep'ing the whole file is not good either: AIX grep has a line
14303 # limit of 2048, but all sed's we know have understand at least 4000.
14304 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14305 dirpart=`$as_dirname -- "$mf" ||
14306 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14307 X"$mf" : 'X\(//\)[^/]' \| \
14308 X"$mf" : 'X\(//\)$' \| \
14309 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14310 $as_echo X"$mf" |
14311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14312 s//\1/
14313 q
14314 }
14315 /^X\(\/\/\)[^/].*/{
14316 s//\1/
14317 q
14318 }
14319 /^X\(\/\/\)$/{
14320 s//\1/
14321 q
14322 }
14323 /^X\(\/\).*/{
14324 s//\1/
14325 q
14326 }
14327 s/.*/./; q'`
14328 else
14329 continue
14330 fi
14331 # Extract the definition of DEPDIR, am__include, and am__quote
14332 # from the Makefile without running `make'.
14333 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14334 test -z "$DEPDIR" && continue
14335 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14336 test -z "am__include" && continue
14337 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14338 # When using ansi2knr, U may be empty or an underscore; expand it
14339 U=`sed -n 's/^U = //p' < "$mf"`
14340 # Find all dependency output files, they are included files with
14341 # $(DEPDIR) in their names. We invoke sed twice because it is the
14342 # simplest approach to changing $(DEPDIR) to its actual value in the
14343 # expansion.
14344 for file in `sed -n "
14345 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14346 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14347 # Make sure the directory exists.
14348 test -f "$dirpart/$file" && continue
14349 fdir=`$as_dirname -- "$file" ||
14350 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14351 X"$file" : 'X\(//\)[^/]' \| \
14352 X"$file" : 'X\(//\)$' \| \
14353 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14354 $as_echo X"$file" |
14355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14356 s//\1/
14357 q
14358 }
14359 /^X\(\/\/\)[^/].*/{
14360 s//\1/
14361 q
14362 }
14363 /^X\(\/\/\)$/{
14364 s//\1/
14365 q
14366 }
14367 /^X\(\/\).*/{
14368 s//\1/
14369 q
14370 }
14371 s/.*/./; q'`
14372 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14373 # echo "creating $dirpart/$file"
14374 echo '# dummy' > "$dirpart/$file"
14375 done
14376 done
14377 }
14378 ;;
14379 "libtool":C)
14380
14381 # See if we are running on zsh, and set the options which allow our
14382 # commands through without removal of \ escapes.
14383 if test -n "${ZSH_VERSION+set}" ; then
14384 setopt NO_GLOB_SUBST
14385 fi
14386
14387 cfgfile="${ofile}T"
14388 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14389 $RM "$cfgfile"
14390
14391 cat <<_LT_EOF >> "$cfgfile"
14392 #! $SHELL
14393
14394 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14395 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14396 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14397 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14398 #
14399 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14400 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14401 # Inc.
14402 # Written by Gordon Matzigkeit, 1996
14403 #
14404 # This file is part of GNU Libtool.
14405 #
14406 # GNU Libtool is free software; you can redistribute it and/or
14407 # modify it under the terms of the GNU General Public License as
14408 # published by the Free Software Foundation; either version 2 of
14409 # the License, or (at your option) any later version.
14410 #
14411 # As a special exception to the GNU General Public License,
14412 # if you distribute this file as part of a program or library that
14413 # is built using GNU Libtool, you may include this file under the
14414 # same distribution terms that you use for the rest of that program.
14415 #
14416 # GNU Libtool is distributed in the hope that it will be useful,
14417 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14418 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14419 # GNU General Public License for more details.
14420 #
14421 # You should have received a copy of the GNU General Public License
14422 # along with GNU Libtool; see the file COPYING. If not, a copy
14423 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14424 # obtained by writing to the Free Software Foundation, Inc.,
14425 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14426
14427
14428 # The names of the tagged configurations supported by this script.
14429 available_tags=""
14430
14431 # ### BEGIN LIBTOOL CONFIG
14432
14433 # Whether or not to build static libraries.
14434 build_old_libs=$enable_static
14435
14436 # Which release of libtool.m4 was used?
14437 macro_version=$macro_version
14438 macro_revision=$macro_revision
14439
14440 # Whether or not to build shared libraries.
14441 build_libtool_libs=$enable_shared
14442
14443 # What type of objects to build.
14444 pic_mode=$pic_mode
14445
14446 # Whether or not to optimize for fast installation.
14447 fast_install=$enable_fast_install
14448
14449 # Shell to use when invoking shell scripts.
14450 SHELL=$lt_SHELL
14451
14452 # An echo program that protects backslashes.
14453 ECHO=$lt_ECHO
14454
14455 # The host system.
14456 host_alias=$host_alias
14457 host=$host
14458 host_os=$host_os
14459
14460 # The build system.
14461 build_alias=$build_alias
14462 build=$build
14463 build_os=$build_os
14464
14465 # A sed program that does not truncate output.
14466 SED=$lt_SED
14467
14468 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14469 Xsed="\$SED -e 1s/^X//"
14470
14471 # A grep program that handles long lines.
14472 GREP=$lt_GREP
14473
14474 # An ERE matcher.
14475 EGREP=$lt_EGREP
14476
14477 # A literal string matcher.
14478 FGREP=$lt_FGREP
14479
14480 # A BSD- or MS-compatible name lister.
14481 NM=$lt_NM
14482
14483 # Whether we need soft or hard links.
14484 LN_S=$lt_LN_S
14485
14486 # What is the maximum length of a command?
14487 max_cmd_len=$max_cmd_len
14488
14489 # Object file suffix (normally "o").
14490 objext=$ac_objext
14491
14492 # Executable file suffix (normally "").
14493 exeext=$exeext
14494
14495 # whether the shell understands "unset".
14496 lt_unset=$lt_unset
14497
14498 # turn spaces into newlines.
14499 SP2NL=$lt_lt_SP2NL
14500
14501 # turn newlines into spaces.
14502 NL2SP=$lt_lt_NL2SP
14503
14504 # convert \$build file names to \$host format.
14505 to_host_file_cmd=$lt_cv_to_host_file_cmd
14506
14507 # convert \$build files to toolchain format.
14508 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14509
14510 # An object symbol dumper.
14511 OBJDUMP=$lt_OBJDUMP
14512
14513 # Method to check whether dependent libraries are shared objects.
14514 deplibs_check_method=$lt_deplibs_check_method
14515
14516 # Command to use when deplibs_check_method = "file_magic".
14517 file_magic_cmd=$lt_file_magic_cmd
14518
14519 # How to find potential files when deplibs_check_method = "file_magic".
14520 file_magic_glob=$lt_file_magic_glob
14521
14522 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14523 want_nocaseglob=$lt_want_nocaseglob
14524
14525 # DLL creation program.
14526 DLLTOOL=$lt_DLLTOOL
14527
14528 # Command to associate shared and link libraries.
14529 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14530
14531 # The archiver.
14532 AR=$lt_AR
14533
14534 # Flags to create an archive.
14535 AR_FLAGS=$lt_AR_FLAGS
14536
14537 # How to feed a file listing to the archiver.
14538 archiver_list_spec=$lt_archiver_list_spec
14539
14540 # A symbol stripping program.
14541 STRIP=$lt_STRIP
14542
14543 # Commands used to install an old-style archive.
14544 RANLIB=$lt_RANLIB
14545 old_postinstall_cmds=$lt_old_postinstall_cmds
14546 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14547
14548 # Whether to use a lock for old archive extraction.
14549 lock_old_archive_extraction=$lock_old_archive_extraction
14550
14551 # A C compiler.
14552 LTCC=$lt_CC
14553
14554 # LTCC compiler flags.
14555 LTCFLAGS=$lt_CFLAGS
14556
14557 # Take the output of nm and produce a listing of raw symbols and C names.
14558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14559
14560 # Transform the output of nm in a proper C declaration.
14561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14562
14563 # Transform the output of nm in a C name address pair.
14564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14565
14566 # Transform the output of nm in a C name address pair when lib prefix is needed.
14567 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14568
14569 # Specify filename containing input files for \$NM.
14570 nm_file_list_spec=$lt_nm_file_list_spec
14571
14572 # The root where to search for dependent libraries,and in which our libraries should be installed.
14573 lt_sysroot=$lt_sysroot
14574
14575 # The name of the directory that contains temporary libtool files.
14576 objdir=$objdir
14577
14578 # Used to examine libraries when file_magic_cmd begins with "file".
14579 MAGIC_CMD=$MAGIC_CMD
14580
14581 # Must we lock files when doing compilation?
14582 need_locks=$lt_need_locks
14583
14584 # Manifest tool.
14585 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14586
14587 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14588 DSYMUTIL=$lt_DSYMUTIL
14589
14590 # Tool to change global to local symbols on Mac OS X.
14591 NMEDIT=$lt_NMEDIT
14592
14593 # Tool to manipulate fat objects and archives on Mac OS X.
14594 LIPO=$lt_LIPO
14595
14596 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14597 OTOOL=$lt_OTOOL
14598
14599 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14600 OTOOL64=$lt_OTOOL64
14601
14602 # Old archive suffix (normally "a").
14603 libext=$libext
14604
14605 # Shared library suffix (normally ".so").
14606 shrext_cmds=$lt_shrext_cmds
14607
14608 # The commands to extract the exported symbol list from a shared archive.
14609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14610
14611 # Variables whose values should be saved in libtool wrapper scripts and
14612 # restored at link time.
14613 variables_saved_for_relink=$lt_variables_saved_for_relink
14614
14615 # Do we need the "lib" prefix for modules?
14616 need_lib_prefix=$need_lib_prefix
14617
14618 # Do we need a version for libraries?
14619 need_version=$need_version
14620
14621 # Library versioning type.
14622 version_type=$version_type
14623
14624 # Shared library runtime path variable.
14625 runpath_var=$runpath_var
14626
14627 # Shared library path variable.
14628 shlibpath_var=$shlibpath_var
14629
14630 # Is shlibpath searched before the hard-coded library search path?
14631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14632
14633 # Format of library name prefix.
14634 libname_spec=$lt_libname_spec
14635
14636 # List of archive names. First name is the real one, the rest are links.
14637 # The last name is the one that the linker finds with -lNAME
14638 library_names_spec=$lt_library_names_spec
14639
14640 # The coded name of the library, if different from the real name.
14641 soname_spec=$lt_soname_spec
14642
14643 # Permission mode override for installation of shared libraries.
14644 install_override_mode=$lt_install_override_mode
14645
14646 # Command to use after installation of a shared archive.
14647 postinstall_cmds=$lt_postinstall_cmds
14648
14649 # Command to use after uninstallation of a shared archive.
14650 postuninstall_cmds=$lt_postuninstall_cmds
14651
14652 # Commands used to finish a libtool library installation in a directory.
14653 finish_cmds=$lt_finish_cmds
14654
14655 # As "finish_cmds", except a single script fragment to be evaled but
14656 # not shown.
14657 finish_eval=$lt_finish_eval
14658
14659 # Whether we should hardcode library paths into libraries.
14660 hardcode_into_libs=$hardcode_into_libs
14661
14662 # Compile-time system search path for libraries.
14663 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14664
14665 # Run-time system search path for libraries.
14666 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14667
14668 # Whether dlopen is supported.
14669 dlopen_support=$enable_dlopen
14670
14671 # Whether dlopen of programs is supported.
14672 dlopen_self=$enable_dlopen_self
14673
14674 # Whether dlopen of statically linked programs is supported.
14675 dlopen_self_static=$enable_dlopen_self_static
14676
14677 # Commands to strip libraries.
14678 old_striplib=$lt_old_striplib
14679 striplib=$lt_striplib
14680
14681
14682 # The linker used to build libraries.
14683 LD=$lt_LD
14684
14685 # How to create reloadable object files.
14686 reload_flag=$lt_reload_flag
14687 reload_cmds=$lt_reload_cmds
14688
14689 # Commands used to build an old-style archive.
14690 old_archive_cmds=$lt_old_archive_cmds
14691
14692 # A language specific compiler.
14693 CC=$lt_compiler
14694
14695 # Is the compiler the GNU compiler?
14696 with_gcc=$GCC
14697
14698 # Compiler flag to turn off builtin functions.
14699 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14700
14701 # Additional compiler flags for building library objects.
14702 pic_flag=$lt_lt_prog_compiler_pic
14703
14704 # How to pass a linker flag through the compiler.
14705 wl=$lt_lt_prog_compiler_wl
14706
14707 # Compiler flag to prevent dynamic linking.
14708 link_static_flag=$lt_lt_prog_compiler_static
14709
14710 # Does compiler simultaneously support -c and -o options?
14711 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14712
14713 # Whether or not to add -lc for building shared libraries.
14714 build_libtool_need_lc=$archive_cmds_need_lc
14715
14716 # Whether or not to disallow shared libs when runtime libs are static.
14717 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14718
14719 # Compiler flag to allow reflexive dlopens.
14720 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14721
14722 # Compiler flag to generate shared objects directly from archives.
14723 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14724
14725 # Whether the compiler copes with passing no objects directly.
14726 compiler_needs_object=$lt_compiler_needs_object
14727
14728 # Create an old-style archive from a shared archive.
14729 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14730
14731 # Create a temporary old-style archive to link instead of a shared archive.
14732 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14733
14734 # Commands used to build a shared archive.
14735 archive_cmds=$lt_archive_cmds
14736 archive_expsym_cmds=$lt_archive_expsym_cmds
14737
14738 # Commands used to build a loadable module if different from building
14739 # a shared archive.
14740 module_cmds=$lt_module_cmds
14741 module_expsym_cmds=$lt_module_expsym_cmds
14742
14743 # Whether we are building with GNU ld or not.
14744 with_gnu_ld=$lt_with_gnu_ld
14745
14746 # Flag that allows shared libraries with undefined symbols to be built.
14747 allow_undefined_flag=$lt_allow_undefined_flag
14748
14749 # Flag that enforces no undefined symbols.
14750 no_undefined_flag=$lt_no_undefined_flag
14751
14752 # Flag to hardcode \$libdir into a binary during linking.
14753 # This must work even if \$libdir does not exist
14754 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14755
14756 # If ld is used when linking, flag to hardcode \$libdir into a binary
14757 # during linking. This must work even if \$libdir does not exist.
14758 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14759
14760 # Whether we need a single "-rpath" flag with a separated argument.
14761 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14762
14763 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14764 # DIR into the resulting binary.
14765 hardcode_direct=$hardcode_direct
14766
14767 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14768 # DIR into the resulting binary and the resulting library dependency is
14769 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14770 # library is relocated.
14771 hardcode_direct_absolute=$hardcode_direct_absolute
14772
14773 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14774 # into the resulting binary.
14775 hardcode_minus_L=$hardcode_minus_L
14776
14777 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14778 # into the resulting binary.
14779 hardcode_shlibpath_var=$hardcode_shlibpath_var
14780
14781 # Set to "yes" if building a shared library automatically hardcodes DIR
14782 # into the library and all subsequent libraries and executables linked
14783 # against it.
14784 hardcode_automatic=$hardcode_automatic
14785
14786 # Set to yes if linker adds runtime paths of dependent libraries
14787 # to runtime path list.
14788 inherit_rpath=$inherit_rpath
14789
14790 # Whether libtool must link a program against all its dependency libraries.
14791 link_all_deplibs=$link_all_deplibs
14792
14793 # Set to "yes" if exported symbols are required.
14794 always_export_symbols=$always_export_symbols
14795
14796 # The commands to list exported symbols.
14797 export_symbols_cmds=$lt_export_symbols_cmds
14798
14799 # Symbols that should not be listed in the preloaded symbols.
14800 exclude_expsyms=$lt_exclude_expsyms
14801
14802 # Symbols that must always be exported.
14803 include_expsyms=$lt_include_expsyms
14804
14805 # Commands necessary for linking programs (against libraries) with templates.
14806 prelink_cmds=$lt_prelink_cmds
14807
14808 # Commands necessary for finishing linking programs.
14809 postlink_cmds=$lt_postlink_cmds
14810
14811 # Specify filename containing input files.
14812 file_list_spec=$lt_file_list_spec
14813
14814 # How to hardcode a shared library path into an executable.
14815 hardcode_action=$hardcode_action
14816
14817 # ### END LIBTOOL CONFIG
14818
14819 _LT_EOF
14820
14821 case $host_os in
14822 aix3*)
14823 cat <<\_LT_EOF >> "$cfgfile"
14824 # AIX sometimes has problems with the GCC collect2 program. For some
14825 # reason, if we set the COLLECT_NAMES environment variable, the problems
14826 # vanish in a puff of smoke.
14827 if test "X${COLLECT_NAMES+set}" != Xset; then
14828 COLLECT_NAMES=
14829 export COLLECT_NAMES
14830 fi
14831 _LT_EOF
14832 ;;
14833 esac
14834
14835
14836 ltmain="$ac_aux_dir/ltmain.sh"
14837
14838
14839 # We use sed instead of cat because bash on DJGPP gets confused if
14840 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14841 # text mode, it properly converts lines to CR/LF. This bash problem
14842 # is reportedly fixed, but why not run on old versions too?
14843 sed '$q' "$ltmain" >> "$cfgfile" \
14844 || (rm -f "$cfgfile"; exit 1)
14845
14846 if test x"$xsi_shell" = xyes; then
14847 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14848 func_dirname ()\
14849 {\
14850 \ case ${1} in\
14851 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14852 \ * ) func_dirname_result="${3}" ;;\
14853 \ esac\
14854 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14855 && mv -f "$cfgfile.tmp" "$cfgfile" \
14856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14857 test 0 -eq $? || _lt_function_replace_fail=:
14858
14859
14860 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14861 func_basename ()\
14862 {\
14863 \ func_basename_result="${1##*/}"\
14864 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14865 && mv -f "$cfgfile.tmp" "$cfgfile" \
14866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14867 test 0 -eq $? || _lt_function_replace_fail=:
14868
14869
14870 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14871 func_dirname_and_basename ()\
14872 {\
14873 \ case ${1} in\
14874 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14875 \ * ) func_dirname_result="${3}" ;;\
14876 \ esac\
14877 \ func_basename_result="${1##*/}"\
14878 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14879 && mv -f "$cfgfile.tmp" "$cfgfile" \
14880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14881 test 0 -eq $? || _lt_function_replace_fail=:
14882
14883
14884 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14885 func_stripname ()\
14886 {\
14887 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14888 \ # positional parameters, so assign one to ordinary parameter first.\
14889 \ func_stripname_result=${3}\
14890 \ func_stripname_result=${func_stripname_result#"${1}"}\
14891 \ func_stripname_result=${func_stripname_result%"${2}"}\
14892 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14893 && mv -f "$cfgfile.tmp" "$cfgfile" \
14894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14895 test 0 -eq $? || _lt_function_replace_fail=:
14896
14897
14898 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14899 func_split_long_opt ()\
14900 {\
14901 \ func_split_long_opt_name=${1%%=*}\
14902 \ func_split_long_opt_arg=${1#*=}\
14903 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14904 && mv -f "$cfgfile.tmp" "$cfgfile" \
14905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14906 test 0 -eq $? || _lt_function_replace_fail=:
14907
14908
14909 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14910 func_split_short_opt ()\
14911 {\
14912 \ func_split_short_opt_arg=${1#??}\
14913 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14914 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14915 && mv -f "$cfgfile.tmp" "$cfgfile" \
14916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14917 test 0 -eq $? || _lt_function_replace_fail=:
14918
14919
14920 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14921 func_lo2o ()\
14922 {\
14923 \ case ${1} in\
14924 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14925 \ *) func_lo2o_result=${1} ;;\
14926 \ esac\
14927 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14928 && mv -f "$cfgfile.tmp" "$cfgfile" \
14929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14930 test 0 -eq $? || _lt_function_replace_fail=:
14931
14932
14933 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14934 func_xform ()\
14935 {\
14936 func_xform_result=${1%.*}.lo\
14937 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14938 && mv -f "$cfgfile.tmp" "$cfgfile" \
14939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14940 test 0 -eq $? || _lt_function_replace_fail=:
14941
14942
14943 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14944 func_arith ()\
14945 {\
14946 func_arith_result=$(( $* ))\
14947 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14948 && mv -f "$cfgfile.tmp" "$cfgfile" \
14949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14950 test 0 -eq $? || _lt_function_replace_fail=:
14951
14952
14953 sed -e '/^func_len ()$/,/^} # func_len /c\
14954 func_len ()\
14955 {\
14956 func_len_result=${#1}\
14957 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14958 && mv -f "$cfgfile.tmp" "$cfgfile" \
14959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14960 test 0 -eq $? || _lt_function_replace_fail=:
14961
14962 fi
14963
14964 if test x"$lt_shell_append" = xyes; then
14965 sed -e '/^func_append ()$/,/^} # func_append /c\
14966 func_append ()\
14967 {\
14968 eval "${1}+=\\${2}"\
14969 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14970 && mv -f "$cfgfile.tmp" "$cfgfile" \
14971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14972 test 0 -eq $? || _lt_function_replace_fail=:
14973
14974
14975 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14976 func_append_quoted ()\
14977 {\
14978 \ func_quote_for_eval "${2}"\
14979 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14980 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14981 && mv -f "$cfgfile.tmp" "$cfgfile" \
14982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14983 test 0 -eq $? || _lt_function_replace_fail=:
14984
14985
14986 # Save a `func_append' function call where possible by direct use of '+='
14987 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14988 && mv -f "$cfgfile.tmp" "$cfgfile" \
14989 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14990 test 0 -eq $? || _lt_function_replace_fail=:
14991 else
14992 # Save a `func_append' function call even when '+=' is not available
14993 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14994 && mv -f "$cfgfile.tmp" "$cfgfile" \
14995 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14996 test 0 -eq $? || _lt_function_replace_fail=:
14997 fi
14998
14999 if test x"$_lt_function_replace_fail" = x":"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15001 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15002 fi
15003
15004
15005 mv -f "$cfgfile" "$ofile" ||
15006 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15007 chmod +x "$ofile"
15008
15009 ;;
15010
15011 esac
15012 done # for ac_tag
15013
15014
15015 as_fn_exit 0
15016 _ACEOF
15017 ac_clean_files=$ac_clean_files_save
15018
15019 test $ac_write_fail = 0 ||
15020 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15021
15022
15023 # configure is writing to config.log, and then calls config.status.
15024 # config.status does its own redirection, appending to config.log.
15025 # Unfortunately, on DOS this fails, as config.log is still kept open
15026 # by configure, so config.status won't be able to write to it; its
15027 # output is simply discarded. So we exec the FD to /dev/null,
15028 # effectively closing config.log, so it can be properly (re)opened and
15029 # appended to by config.status. When coming back to configure, we
15030 # need to make the FD available again.
15031 if test "$no_create" != yes; then
15032 ac_cs_success=:
15033 ac_config_status_args=
15034 test "$silent" = yes &&
15035 ac_config_status_args="$ac_config_status_args --quiet"
15036 exec 5>/dev/null
15037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15038 exec 5>>config.log
15039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15040 # would make configure fail if this is the last instruction.
15041 $ac_cs_success || as_fn_exit 1
15042 fi
15043 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15045 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15046 fi
15047
15048