configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xf86-input-synaptics 1.4.1.
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-synaptics'
573 PACKAGE_TARNAME='xf86-input-synaptics'
574 PACKAGE_VERSION='1.4.1'
575 PACKAGE_STRING='xf86-input-synaptics 1.4.1'
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 XTST_LIBS
621 XTST_CFLAGS
622 XI_LIBS
623 XI_CFLAGS
624 BUILD_PSMCOMM_FALSE
625 BUILD_PSMCOMM_TRUE
626 BUILD_EVENTCOMM_FALSE
627 BUILD_EVENTCOMM_TRUE
628 DEBUG_FALSE
629 DEBUG_TRUE
630 HAS_XORG_CONF_DIR_FALSE
631 HAS_XORG_CONF_DIR_TRUE
632 configdir
633 inputdir
634 DRIVER_NAME
635 sdkdir
636 XORG_LIBS
637 XORG_CFLAGS
638 AM_BACKSLASH
639 AM_DEFAULT_VERBOSITY
640 MAN_SUBSTS
641 XORG_MAN_PAGE
642 ADMIN_MAN_DIR
643 DRIVER_MAN_DIR
644 MISC_MAN_DIR
645 FILE_MAN_DIR
646 LIB_MAN_DIR
647 APP_MAN_DIR
648 ADMIN_MAN_SUFFIX
649 DRIVER_MAN_SUFFIX
650 MISC_MAN_SUFFIX
651 FILE_MAN_SUFFIX
652 LIB_MAN_SUFFIX
653 APP_MAN_SUFFIX
654 INSTALL_CMD
655 PKG_CONFIG_LIBDIR
656 PKG_CONFIG_PATH
657 PKG_CONFIG
658 CHANGELOG_CMD
659 STRICT_CFLAGS
660 CWARNFLAGS
661 CPP
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 MANIFEST_TOOL
668 RANLIB
669 ac_ct_AR
670 AR
671 DLLTOOL
672 OBJDUMP
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 am__fastdepCC_FALSE
683 am__fastdepCC_TRUE
684 CCDEPMODE
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 host_os
699 host_vendor
700 host_cpu
701 host
702 build_os
703 build_vendor
704 build_cpu
705 build
706 LIBTOOL
707 MAINT
708 MAINTAINER_MODE_FALSE
709 MAINTAINER_MODE_TRUE
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_maintainer_mode
775 enable_static
776 enable_shared
777 with_pic
778 enable_fast_install
779 enable_dependency_tracking
780 with_gnu_ld
781 with_sysroot
782 enable_libtool_lock
783 enable_strict_compilation
784 enable_silent_rules
785 with_xorg_module_dir
786 with_xorg_conf_dir
787 enable_debug
788 '
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
797 CPP
798 PKG_CONFIG
799 PKG_CONFIG_PATH
800 PKG_CONFIG_LIBDIR
801 XORG_CFLAGS
802 XORG_LIBS
803 XI_CFLAGS
804 XI_LIBS
805 XTST_CFLAGS
806 XTST_LIBS'
807
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
904
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1263 If a cross compiler is detected then cross compile mode will be used" >&2
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267 fi
1268
1269 ac_tool_prefix=
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272 test "$silent" = yes && exec 6>/dev/null
1273
1274
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error $? "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1313 fi
1314 else
1315 ac_srcdir_defaulted=no
1316 fi
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 fi
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 pwd)`
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328 fi
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1332 case $srcdir in
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 esac
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 done
1341
1342 #
1343 # Report the --help message.
1344 #
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349 \`configure' configures xf86-input-synaptics 1.4.1 to adapt to many kinds of systems.
1350
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356 Defaults for the options are specified in brackets.
1357
1358 Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking ...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1374
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1379
1380 For better control, use the options below.
1381
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root
1398 [DATAROOTDIR/doc/xf86-input-synaptics]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
1403 _ACEOF
1404
1405 cat <<\_ACEOF
1406
1407 Program names:
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411
1412 System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 _ACEOF
1416 fi
1417
1418 if test -n "$ac_init_help"; then
1419 case $ac_init_help in
1420 short | recursive ) echo "Configuration of xf86-input-synaptics 1.4.1:";;
1421 esac
1422 cat <<\_ACEOF
1423
1424 Optional Features:
1425 --disable-option-checking ignore unrecognized --enable/--with options
1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1428 --enable-maintainer-mode enable make rules and dependencies not useful
1429 (and sometimes confusing) to the casual installer
1430 --enable-static[=PKGS] build static libraries [default=no]
1431 --enable-shared[=PKGS] build shared libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --disable-dependency-tracking speeds up one-time build
1435 --enable-dependency-tracking do not reject slow dependency extractors
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1437 --enable-strict-compilation
1438 Enable all warnings from compiler and make them
1439 errors (default: disabled)
1440 --enable-silent-rules less verbose build output (undo: `make V=1')
1441 --disable-silent-rules verbose build output (undo: `make V=0')
1442 --enable-debug Enable debugging (default: disabled)
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-pic try to use only PIC/non-PIC objects [default=use
1448 both]
1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1450 --with-sysroot=DIR Search for dependent libraries within DIR
1451 (or the compiler's sysroot if not specified).
1452 --with-xorg-module-dir=DIR
1453 Default xorg module directory
1454 [[default=$libdir/xorg/modules]]
1455 --with-xorg-conf-dir=DIR
1456 Default xorg.conf.d directory [[default=from
1457 $PKG_CONFIG xorg-server]]
1458
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 CPP C preprocessor
1468 PKG_CONFIG path to pkg-config utility
1469 PKG_CONFIG_PATH
1470 directories to add to pkg-config's search path
1471 PKG_CONFIG_LIBDIR
1472 path overriding pkg-config's built-in search path
1473 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1474 XORG_LIBS linker flags for XORG, overriding pkg-config
1475 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1476 XI_LIBS linker flags for XI, overriding pkg-config
1477 XTST_CFLAGS C compiler flags for XTST, overriding pkg-config
1478 XTST_LIBS linker flags for XTST, overriding pkg-config
1479
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1482
1483 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1484 _ACEOF
1485 ac_status=$?
1486 fi
1487
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
1494 ac_builddir=.
1495
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *)
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1511
1512 case $srcdir in
1513 .) # We are building in place.
1514 ac_srcdir=.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1536 else
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1540 done
1541 fi
1542
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545 cat <<\_ACEOF
1546 xf86-input-synaptics configure 1.4.1
1547 generated by GNU Autoconf 2.68
1548
1549 Copyright (C) 2010 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1552 _ACEOF
1553 exit
1554 fi
1555
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1559
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1564 {
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592 fi
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_compile
1597
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_link ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 $as_test_x conftest$ac_exeext
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633 fi
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_link
1643
1644 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists and can be compiled using the include files in
1647 # INCLUDES, setting the cache variable VAR accordingly.
1648 ac_fn_c_check_header_compile ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1655 else
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 $4
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662 eval "$3=yes"
1663 else
1664 eval "$3=no"
1665 fi
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 fi
1668 eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673 } # ac_fn_c_check_header_compile
1674
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_cpp ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } > conftest.i && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706 fi
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_cpp
1711
1712 # ac_fn_c_try_run LINENO
1713 # ----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715 # that executables *can* be run.
1716 ac_fn_c_try_run ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=$ac_status
1747 fi
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_run
1753
1754 # ac_fn_c_check_func LINENO FUNC VAR
1755 # ----------------------------------
1756 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1757 ac_fn_c_check_func ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1764 else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769 #define $2 innocuous_$2
1770
1771 /* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below.
1773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1774 <limits.h> exists even on freestanding compilers. */
1775
1776 #ifdef __STDC__
1777 # include <limits.h>
1778 #else
1779 # include <assert.h>
1780 #endif
1781
1782 #undef $2
1783
1784 /* Override any GCC internal prototype to avoid an error.
1785 Use char because int might match the return type of a GCC
1786 builtin and then its argument prototype would still apply. */
1787 #ifdef __cplusplus
1788 extern "C"
1789 #endif
1790 char $2 ();
1791 /* The GNU C library defines this for functions which it implements
1792 to always fail with ENOSYS. Some functions are actually named
1793 something starting with __ and the normal name is an alias. */
1794 #if defined __stub_$2 || defined __stub___$2
1795 choke me
1796 #endif
1797
1798 int
1799 main ()
1800 {
1801 return $2 ();
1802 ;
1803 return 0;
1804 }
1805 _ACEOF
1806 if ac_fn_c_try_link "$LINENO"; then :
1807 eval "$3=yes"
1808 else
1809 eval "$3=no"
1810 fi
1811 rm -f core conftest.err conftest.$ac_objext \
1812 conftest$ac_exeext conftest.$ac_ext
1813 fi
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818
1819 } # ac_fn_c_check_func
1820
1821 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1822 # ---------------------------------------------
1823 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1824 # accordingly.
1825 ac_fn_c_check_decl ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 as_decl_name=`echo $2|sed 's/ *(.*//'`
1829 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1831 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1832 if eval \${$3+:} false; then :
1833 $as_echo_n "(cached) " >&6
1834 else
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 $4
1838 int
1839 main ()
1840 {
1841 #ifndef $as_decl_name
1842 #ifdef __cplusplus
1843 (void) $as_decl_use;
1844 #else
1845 (void) $as_decl_name;
1846 #endif
1847 #endif
1848
1849 ;
1850 return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 eval "$3=yes"
1855 else
1856 eval "$3=no"
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 fi
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865 } # ac_fn_c_check_decl
1866 cat >config.log <<_ACEOF
1867 This file contains any messages produced by compilers while
1868 running configure, to aid debugging if configure makes a mistake.
1869
1870 It was created by xf86-input-synaptics $as_me 1.4.1, which was
1871 generated by GNU Autoconf 2.68. Invocation command line was
1872
1873 $ $0 $@
1874
1875 _ACEOF
1876 exec 5>>config.log
1877 {
1878 cat <<_ASUNAME
1879 ## --------- ##
1880 ## Platform. ##
1881 ## --------- ##
1882
1883 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1884 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1885 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1886 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1887 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1888
1889 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1890 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1891
1892 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1893 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1894 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1895 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1896 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1897 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1898 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1899
1900 _ASUNAME
1901
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1904 do
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 $as_echo "PATH: $as_dir"
1908 done
1909 IFS=$as_save_IFS
1910
1911 } >&5
1912
1913 cat >&5 <<_ACEOF
1914
1915
1916 ## ----------- ##
1917 ## Core tests. ##
1918 ## ----------- ##
1919
1920 _ACEOF
1921
1922
1923 # Keep a trace of the command line.
1924 # Strip out --no-create and --no-recursion so they do not pile up.
1925 # Strip out --silent because we don't want to record it for future runs.
1926 # Also quote any args containing shell meta-characters.
1927 # Make two passes to allow for proper duplicate-argument suppression.
1928 ac_configure_args=
1929 ac_configure_args0=
1930 ac_configure_args1=
1931 ac_must_keep_next=false
1932 for ac_pass in 1 2
1933 do
1934 for ac_arg
1935 do
1936 case $ac_arg in
1937 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1939 | -silent | --silent | --silen | --sile | --sil)
1940 continue ;;
1941 *\'*)
1942 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1943 esac
1944 case $ac_pass in
1945 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1946 2)
1947 as_fn_append ac_configure_args1 " '$ac_arg'"
1948 if test $ac_must_keep_next = true; then
1949 ac_must_keep_next=false # Got value, back to normal.
1950 else
1951 case $ac_arg in
1952 *=* | --config-cache | -C | -disable-* | --disable-* \
1953 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1954 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1955 | -with-* | --with-* | -without-* | --without-* | --x)
1956 case "$ac_configure_args0 " in
1957 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1958 esac
1959 ;;
1960 -* ) ac_must_keep_next=true ;;
1961 esac
1962 fi
1963 as_fn_append ac_configure_args " '$ac_arg'"
1964 ;;
1965 esac
1966 done
1967 done
1968 { ac_configure_args0=; unset ac_configure_args0;}
1969 { ac_configure_args1=; unset ac_configure_args1;}
1970
1971 # When interrupted or exit'd, cleanup temporary files, and complete
1972 # config.log. We remove comments because anyway the quotes in there
1973 # would cause problems or look ugly.
1974 # WARNING: Use '\'' to represent an apostrophe within the trap.
1975 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1976 trap 'exit_status=$?
1977 # Save into config.log some information that might help in debugging.
1978 {
1979 echo
1980
1981 $as_echo "## ---------------- ##
1982 ## Cache variables. ##
1983 ## ---------------- ##"
1984 echo
1985 # The following way of writing the cache mishandles newlines in values,
1986 (
1987 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1988 eval ac_val=\$$ac_var
1989 case $ac_val in #(
1990 *${as_nl}*)
1991 case $ac_var in #(
1992 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1993 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1994 esac
1995 case $ac_var in #(
1996 _ | IFS | as_nl) ;; #(
1997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1998 *) { eval $ac_var=; unset $ac_var;} ;;
1999 esac ;;
2000 esac
2001 done
2002 (set) 2>&1 |
2003 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2004 *${as_nl}ac_space=\ *)
2005 sed -n \
2006 "s/'\''/'\''\\\\'\'''\''/g;
2007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2008 ;; #(
2009 *)
2010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2011 ;;
2012 esac |
2013 sort
2014 )
2015 echo
2016
2017 $as_echo "## ----------------- ##
2018 ## Output variables. ##
2019 ## ----------------- ##"
2020 echo
2021 for ac_var in $ac_subst_vars
2022 do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in
2025 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 esac
2027 $as_echo "$ac_var='\''$ac_val'\''"
2028 done | sort
2029 echo
2030
2031 if test -n "$ac_subst_files"; then
2032 $as_echo "## ------------------- ##
2033 ## File substitutions. ##
2034 ## ------------------- ##"
2035 echo
2036 for ac_var in $ac_subst_files
2037 do
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 $as_echo "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2045 fi
2046
2047 if test -s confdefs.h; then
2048 $as_echo "## ----------- ##
2049 ## confdefs.h. ##
2050 ## ----------- ##"
2051 echo
2052 cat confdefs.h
2053 echo
2054 fi
2055 test "$ac_signal" != 0 &&
2056 $as_echo "$as_me: caught signal $ac_signal"
2057 $as_echo "$as_me: exit $exit_status"
2058 } >&5
2059 rm -f core *.core core.conftest.* &&
2060 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2061 exit $exit_status
2062 ' 0
2063 for ac_signal in 1 2 13 15; do
2064 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2065 done
2066 ac_signal=0
2067
2068 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2069 rm -f -r conftest* confdefs.h
2070
2071 $as_echo "/* confdefs.h */" > confdefs.h
2072
2073 # Predefined preprocessor variables.
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_NAME "$PACKAGE_NAME"
2077 _ACEOF
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2081 _ACEOF
2082
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2085 _ACEOF
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_STRING "$PACKAGE_STRING"
2089 _ACEOF
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2093 _ACEOF
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_URL "$PACKAGE_URL"
2097 _ACEOF
2098
2099
2100 # Let the site file select an alternate cache file if it wants to.
2101 # Prefer an explicitly selected file to automatically selected ones.
2102 ac_site_file1=NONE
2103 ac_site_file2=NONE
2104 if test -n "$CONFIG_SITE"; then
2105 # We do not want a PATH search for config.site.
2106 case $CONFIG_SITE in #((
2107 -*) ac_site_file1=./$CONFIG_SITE;;
2108 */*) ac_site_file1=$CONFIG_SITE;;
2109 *) ac_site_file1=./$CONFIG_SITE;;
2110 esac
2111 elif test "x$prefix" != xNONE; then
2112 ac_site_file1=$prefix/share/config.site
2113 ac_site_file2=$prefix/etc/config.site
2114 else
2115 ac_site_file1=$ac_default_prefix/share/config.site
2116 ac_site_file2=$ac_default_prefix/etc/config.site
2117 fi
2118 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2119 do
2120 test "x$ac_site_file" = xNONE && continue
2121 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2123 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2124 sed 's/^/| /' "$ac_site_file" >&5
2125 . "$ac_site_file" \
2126 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2128 as_fn_error $? "failed to load site script $ac_site_file
2129 See \`config.log' for more details" "$LINENO" 5; }
2130 fi
2131 done
2132
2133 if test -r "$cache_file"; then
2134 # Some versions of bash will fail to source /dev/null (special files
2135 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2136 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2138 $as_echo "$as_me: loading cache $cache_file" >&6;}
2139 case $cache_file in
2140 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2141 *) . "./$cache_file";;
2142 esac
2143 fi
2144 else
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2146 $as_echo "$as_me: creating cache $cache_file" >&6;}
2147 >$cache_file
2148 fi
2149
2150 # Check that the precious variables saved in the cache have kept the same
2151 # value.
2152 ac_cache_corrupted=false
2153 for ac_var in $ac_precious_vars; do
2154 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2155 eval ac_new_set=\$ac_env_${ac_var}_set
2156 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2157 eval ac_new_val=\$ac_env_${ac_var}_value
2158 case $ac_old_set,$ac_new_set in
2159 set,)
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2161 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2162 ac_cache_corrupted=: ;;
2163 ,set)
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2166 ac_cache_corrupted=: ;;
2167 ,);;
2168 *)
2169 if test "x$ac_old_val" != "x$ac_new_val"; then
2170 # differences in whitespace do not lead to failure.
2171 ac_old_val_w=`echo x $ac_old_val`
2172 ac_new_val_w=`echo x $ac_new_val`
2173 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2175 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2176 ac_cache_corrupted=:
2177 else
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2179 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2180 eval $ac_var=\$ac_old_val
2181 fi
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2183 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2185 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2186 fi;;
2187 esac
2188 # Pass precious variables to config.status.
2189 if test "$ac_new_set" = set; then
2190 case $ac_new_val in
2191 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2192 *) ac_arg=$ac_var=$ac_new_val ;;
2193 esac
2194 case " $ac_configure_args " in
2195 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2196 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2197 esac
2198 fi
2199 done
2200 if $ac_cache_corrupted; then
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2204 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2205 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2206 fi
2207 ## -------------------- ##
2208 ## Main body of script. ##
2209 ## -------------------- ##
2210
2211 ac_ext=c
2212 ac_cpp='$CPP $CPPFLAGS'
2213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216
2217
2218
2219 ac_config_headers="$ac_config_headers config.h"
2220
2221 ac_aux_dir=
2222 for ac_dir in . "$srcdir"/.; do
2223 if test -f "$ac_dir/install-sh"; then
2224 ac_aux_dir=$ac_dir
2225 ac_install_sh="$ac_aux_dir/install-sh -c"
2226 break
2227 elif test -f "$ac_dir/install.sh"; then
2228 ac_aux_dir=$ac_dir
2229 ac_install_sh="$ac_aux_dir/install.sh -c"
2230 break
2231 elif test -f "$ac_dir/shtool"; then
2232 ac_aux_dir=$ac_dir
2233 ac_install_sh="$ac_aux_dir/shtool install -c"
2234 break
2235 fi
2236 done
2237 if test -z "$ac_aux_dir"; then
2238 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2239 fi
2240
2241 # These three variables are undocumented and unsupported,
2242 # and are intended to be withdrawn in a future Autoconf release.
2243 # They can cause serious problems if a builder's source tree is in a directory
2244 # whose full name contains unusual characters.
2245 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2246 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2247 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2248
2249
2250
2251 # Initialize Automake
2252 am__api_version='1.11'
2253
2254 # Find a good install program. We prefer a C program (faster),
2255 # so one script is as good as another. But avoid the broken or
2256 # incompatible versions:
2257 # SysV /etc/install, /usr/sbin/install
2258 # SunOS /usr/etc/install
2259 # IRIX /sbin/install
2260 # AIX /bin/install
2261 # AmigaOS /C/install, which installs bootblocks on floppy discs
2262 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2263 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2264 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2265 # OS/2's system install, which has a completely different semantic
2266 # ./install, which can be erroneously created by make from ./install.sh.
2267 # Reject install programs that cannot install multiple files.
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2269 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2270 if test -z "$INSTALL"; then
2271 if ${ac_cv_path_install+:} false; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2276 do
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 # Account for people who put trailing slashes in PATH elements.
2280 case $as_dir/ in #((
2281 ./ | .// | /[cC]/* | \
2282 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2283 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2284 /usr/ucb/* ) ;;
2285 *)
2286 # OSF1 and SCO ODT 3.0 have their own names for install.
2287 # Don't use installbsd from OSF since it installs stuff as root
2288 # by default.
2289 for ac_prog in ginstall scoinst install; do
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2292 if test $ac_prog = install &&
2293 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2294 # AIX install. It has an incompatible calling convention.
2295 :
2296 elif test $ac_prog = install &&
2297 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2298 # program-specific install script used by HP pwplus--don't use.
2299 :
2300 else
2301 rm -rf conftest.one conftest.two conftest.dir
2302 echo one > conftest.one
2303 echo two > conftest.two
2304 mkdir conftest.dir
2305 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2306 test -s conftest.one && test -s conftest.two &&
2307 test -s conftest.dir/conftest.one &&
2308 test -s conftest.dir/conftest.two
2309 then
2310 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2311 break 3
2312 fi
2313 fi
2314 fi
2315 done
2316 done
2317 ;;
2318 esac
2319
2320 done
2321 IFS=$as_save_IFS
2322
2323 rm -rf conftest.one conftest.two conftest.dir
2324
2325 fi
2326 if test "${ac_cv_path_install+set}" = set; then
2327 INSTALL=$ac_cv_path_install
2328 else
2329 # As a last resort, use the slow shell script. Don't cache a
2330 # value for INSTALL within a source directory, because that will
2331 # break other packages using the cache if that directory is
2332 # removed, or if the value is a relative name.
2333 INSTALL=$ac_install_sh
2334 fi
2335 fi
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2337 $as_echo "$INSTALL" >&6; }
2338
2339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2340 # It thinks the first close brace ends the variable substitution.
2341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2342
2343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2344
2345 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2346
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2348 $as_echo_n "checking whether build environment is sane... " >&6; }
2349 # Just in case
2350 sleep 1
2351 echo timestamp > conftest.file
2352 # Reject unsafe characters in $srcdir or the absolute working directory
2353 # name. Accept space and tab only in the latter.
2354 am_lf='
2355 '
2356 case `pwd` in
2357 *[\\\"\#\$\&\'\`$am_lf]*)
2358 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2359 esac
2360 case $srcdir in
2361 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2362 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2363 esac
2364
2365 # Do `set' in a subshell so we don't clobber the current shell's
2366 # arguments. Must try -L first in case configure is actually a
2367 # symlink; some systems play weird games with the mod time of symlinks
2368 # (eg FreeBSD returns the mod time of the symlink's containing
2369 # directory).
2370 if (
2371 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2372 if test "$*" = "X"; then
2373 # -L didn't work.
2374 set X `ls -t "$srcdir/configure" conftest.file`
2375 fi
2376 rm -f conftest.file
2377 if test "$*" != "X $srcdir/configure conftest.file" \
2378 && test "$*" != "X conftest.file $srcdir/configure"; then
2379
2380 # If neither matched, then we have a broken ls. This can happen
2381 # if, for instance, CONFIG_SHELL is bash and it inherits a
2382 # broken ls alias from the environment. This has actually
2383 # happened. Such a system could not be considered "sane".
2384 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2385 alias in your environment" "$LINENO" 5
2386 fi
2387
2388 test "$2" = conftest.file
2389 )
2390 then
2391 # Ok.
2392 :
2393 else
2394 as_fn_error $? "newly created file is older than distributed files!
2395 Check your system clock" "$LINENO" 5
2396 fi
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2398 $as_echo "yes" >&6; }
2399 test "$program_prefix" != NONE &&
2400 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2401 # Use a double $ so make ignores it.
2402 test "$program_suffix" != NONE &&
2403 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2404 # Double any \ or $.
2405 # By default was `s,x,x', remove it if useless.
2406 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2407 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2408
2409 # expand $ac_aux_dir to an absolute path
2410 am_aux_dir=`cd $ac_aux_dir && pwd`
2411
2412 if test x"${MISSING+set}" != xset; then
2413 case $am_aux_dir in
2414 *\ * | *\ *)
2415 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2416 *)
2417 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2418 esac
2419 fi
2420 # Use eval to expand $SHELL
2421 if eval "$MISSING --run true"; then
2422 am_missing_run="$MISSING --run "
2423 else
2424 am_missing_run=
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2426 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2427 fi
2428
2429 if test x"${install_sh}" != xset; then
2430 case $am_aux_dir in
2431 *\ * | *\ *)
2432 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2433 *)
2434 install_sh="\${SHELL} $am_aux_dir/install-sh"
2435 esac
2436 fi
2437
2438 # Installed binaries are usually stripped using `strip' when the user
2439 # run `make install-strip'. However `strip' might not be the right
2440 # tool to use in cross-compilation environments, therefore Automake
2441 # will honor the `STRIP' environment variable to overrule this program.
2442 if test "$cross_compiling" != no; then
2443 if test -n "$ac_tool_prefix"; then
2444 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2445 set dummy ${ac_tool_prefix}strip; ac_word=$2
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2447 $as_echo_n "checking for $ac_word... " >&6; }
2448 if ${ac_cv_prog_STRIP+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 if test -n "$STRIP"; then
2452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 break 2
2464 fi
2465 done
2466 done
2467 IFS=$as_save_IFS
2468
2469 fi
2470 fi
2471 STRIP=$ac_cv_prog_STRIP
2472 if test -n "$STRIP"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2474 $as_echo "$STRIP" >&6; }
2475 else
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2477 $as_echo "no" >&6; }
2478 fi
2479
2480
2481 fi
2482 if test -z "$ac_cv_prog_STRIP"; then
2483 ac_ct_STRIP=$STRIP
2484 # Extract the first word of "strip", so it can be a program name with args.
2485 set dummy strip; ac_word=$2
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487 $as_echo_n "checking for $ac_word... " >&6; }
2488 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 if test -n "$ac_ct_STRIP"; then
2492 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 ac_cv_prog_ac_ct_STRIP="strip"
2502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505 done
2506 done
2507 IFS=$as_save_IFS
2508
2509 fi
2510 fi
2511 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2512 if test -n "$ac_ct_STRIP"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2514 $as_echo "$ac_ct_STRIP" >&6; }
2515 else
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517 $as_echo "no" >&6; }
2518 fi
2519
2520 if test "x$ac_ct_STRIP" = x; then
2521 STRIP=":"
2522 else
2523 case $cross_compiling:$ac_tool_warned in
2524 yes:)
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2527 ac_tool_warned=yes ;;
2528 esac
2529 STRIP=$ac_ct_STRIP
2530 fi
2531 else
2532 STRIP="$ac_cv_prog_STRIP"
2533 fi
2534
2535 fi
2536 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2537
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2539 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2540 if test -z "$MKDIR_P"; then
2541 if ${ac_cv_path_mkdir+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2546 do
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_prog in mkdir gmkdir; do
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2552 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2553 'mkdir (GNU coreutils) '* | \
2554 'mkdir (coreutils) '* | \
2555 'mkdir (fileutils) '4.1*)
2556 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2557 break 3;;
2558 esac
2559 done
2560 done
2561 done
2562 IFS=$as_save_IFS
2563
2564 fi
2565
2566 test -d ./--version && rmdir ./--version
2567 if test "${ac_cv_path_mkdir+set}" = set; then
2568 MKDIR_P="$ac_cv_path_mkdir -p"
2569 else
2570 # As a last resort, use the slow shell script. Don't cache a
2571 # value for MKDIR_P within a source directory, because that will
2572 # break other packages using the cache if that directory is
2573 # removed, or if the value is a relative name.
2574 MKDIR_P="$ac_install_sh -d"
2575 fi
2576 fi
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2578 $as_echo "$MKDIR_P" >&6; }
2579
2580 mkdir_p="$MKDIR_P"
2581 case $mkdir_p in
2582 [\\/$]* | ?:[\\/]*) ;;
2583 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2584 esac
2585
2586 for ac_prog in gawk mawk nawk awk
2587 do
2588 # Extract the first word of "$ac_prog", so it can be a program name with args.
2589 set dummy $ac_prog; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_AWK+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test -n "$AWK"; then
2596 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_AWK="$ac_prog"
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 AWK=$ac_cv_prog_AWK
2616 if test -n "$AWK"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2618 $as_echo "$AWK" >&6; }
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 fi
2623
2624
2625 test -n "$AWK" && break
2626 done
2627
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2629 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2630 set x ${MAKE-make}
2631 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2632 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 cat >conftest.make <<\_ACEOF
2636 SHELL = /bin/sh
2637 all:
2638 @echo '@@@%%%=$(MAKE)=@@@%%%'
2639 _ACEOF
2640 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2641 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2642 *@@@%%%=?*=@@@%%%*)
2643 eval ac_cv_prog_make_${ac_make}_set=yes;;
2644 *)
2645 eval ac_cv_prog_make_${ac_make}_set=no;;
2646 esac
2647 rm -f conftest.make
2648 fi
2649 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651 $as_echo "yes" >&6; }
2652 SET_MAKE=
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2656 SET_MAKE="MAKE=${MAKE-make}"
2657 fi
2658
2659 rm -rf .tst 2>/dev/null
2660 mkdir .tst 2>/dev/null
2661 if test -d .tst; then
2662 am__leading_dot=.
2663 else
2664 am__leading_dot=_
2665 fi
2666 rmdir .tst 2>/dev/null
2667
2668 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2669 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2670 # is not polluted with repeated "-I."
2671 am__isrc=' -I$(srcdir)'
2672 # test to see if srcdir already configured
2673 if test -f $srcdir/config.status; then
2674 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2675 fi
2676 fi
2677
2678 # test whether we have cygpath
2679 if test -z "$CYGPATH_W"; then
2680 if (cygpath --version) >/dev/null 2>/dev/null; then
2681 CYGPATH_W='cygpath -w'
2682 else
2683 CYGPATH_W=echo
2684 fi
2685 fi
2686
2687
2688 # Define the identity of the package.
2689 PACKAGE='xf86-input-synaptics'
2690 VERSION='1.4.1'
2691
2692
2693 cat >>confdefs.h <<_ACEOF
2694 #define PACKAGE "$PACKAGE"
2695 _ACEOF
2696
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define VERSION "$VERSION"
2700 _ACEOF
2701
2702 # Some tools Automake needs.
2703
2704 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2705
2706
2707 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2708
2709
2710 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2711
2712
2713 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2714
2715
2716 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2717
2718 # We need awk for the "check" target. The system "awk" is bad on
2719 # some platforms.
2720 # Always define AMTAR for backward compatibility.
2721
2722 AMTAR=${AMTAR-"${am_missing_run}tar"}
2723
2724 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2725
2726
2727
2728
2729
2730
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2732 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2733 # Check whether --enable-maintainer-mode was given.
2734 if test "${enable_maintainer_mode+set}" = set; then :
2735 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2736 else
2737 USE_MAINTAINER_MODE=no
2738 fi
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2741 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2742 if test $USE_MAINTAINER_MODE = yes; then
2743 MAINTAINER_MODE_TRUE=
2744 MAINTAINER_MODE_FALSE='#'
2745 else
2746 MAINTAINER_MODE_TRUE='#'
2747 MAINTAINER_MODE_FALSE=
2748 fi
2749
2750 MAINT=$MAINTAINER_MODE_TRUE
2751
2752
2753
2754 # Initialize libtool
2755 # Check whether --enable-static was given.
2756 if test "${enable_static+set}" = set; then :
2757 enableval=$enable_static; p=${PACKAGE-default}
2758 case $enableval in
2759 yes) enable_static=yes ;;
2760 no) enable_static=no ;;
2761 *)
2762 enable_static=no
2763 # Look at the argument we got. We use all the common list separators.
2764 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2765 for pkg in $enableval; do
2766 IFS="$lt_save_ifs"
2767 if test "X$pkg" = "X$p"; then
2768 enable_static=yes
2769 fi
2770 done
2771 IFS="$lt_save_ifs"
2772 ;;
2773 esac
2774 else
2775 enable_static=no
2776 fi
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786 case `pwd` in
2787 *\ * | *\ *)
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2789 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2790 esac
2791
2792
2793
2794 macro_version='2.4'
2795 macro_revision='1.3293'
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809 ltmain="$ac_aux_dir/ltmain.sh"
2810
2811 # Make sure we can run config.sub.
2812 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2813 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2814
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2816 $as_echo_n "checking build system type... " >&6; }
2817 if ${ac_cv_build+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 ac_build_alias=$build_alias
2821 test "x$ac_build_alias" = x &&
2822 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2823 test "x$ac_build_alias" = x &&
2824 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2825 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2826 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2827
2828 fi
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2830 $as_echo "$ac_cv_build" >&6; }
2831 case $ac_cv_build in
2832 *-*-*) ;;
2833 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2834 esac
2835 build=$ac_cv_build
2836 ac_save_IFS=$IFS; IFS='-'
2837 set x $ac_cv_build
2838 shift
2839 build_cpu=$1
2840 build_vendor=$2
2841 shift; shift
2842 # Remember, the first character of IFS is used to create $*,
2843 # except with old shells:
2844 build_os=$*
2845 IFS=$ac_save_IFS
2846 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2847
2848
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2850 $as_echo_n "checking host system type... " >&6; }
2851 if ${ac_cv_host+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if test "x$host_alias" = x; then
2855 ac_cv_host=$ac_cv_build
2856 else
2857 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2858 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2859 fi
2860
2861 fi
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2863 $as_echo "$ac_cv_host" >&6; }
2864 case $ac_cv_host in
2865 *-*-*) ;;
2866 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2867 esac
2868 host=$ac_cv_host
2869 ac_save_IFS=$IFS; IFS='-'
2870 set x $ac_cv_host
2871 shift
2872 host_cpu=$1
2873 host_vendor=$2
2874 shift; shift
2875 # Remember, the first character of IFS is used to create $*,
2876 # except with old shells:
2877 host_os=$*
2878 IFS=$ac_save_IFS
2879 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2880
2881
2882 # Backslashify metacharacters that are still active within
2883 # double-quoted strings.
2884 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2885
2886 # Same as above, but do not quote variable references.
2887 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2888
2889 # Sed substitution to delay expansion of an escaped shell variable in a
2890 # double_quote_subst'ed string.
2891 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2892
2893 # Sed substitution to delay expansion of an escaped single quote.
2894 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2895
2896 # Sed substitution to avoid accidental globbing in evaled expressions
2897 no_glob_subst='s/\*/\\\*/g'
2898
2899 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2900 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2901 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2902
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2904 $as_echo_n "checking how to print strings... " >&6; }
2905 # Test print first, because it will be a builtin if present.
2906 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2907 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2908 ECHO='print -r --'
2909 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2910 ECHO='printf %s\n'
2911 else
2912 # Use this function as a fallback that always works.
2913 func_fallback_echo ()
2914 {
2915 eval 'cat <<_LTECHO_EOF
2916 $1
2917 _LTECHO_EOF'
2918 }
2919 ECHO='func_fallback_echo'
2920 fi
2921
2922 # func_echo_all arg...
2923 # Invoke $ECHO with all args, space-separated.
2924 func_echo_all ()
2925 {
2926 $ECHO ""
2927 }
2928
2929 case "$ECHO" in
2930 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2931 $as_echo "printf" >&6; } ;;
2932 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2933 $as_echo "print -r" >&6; } ;;
2934 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2935 $as_echo "cat" >&6; } ;;
2936 esac
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951 DEPDIR="${am__leading_dot}deps"
2952
2953 ac_config_commands="$ac_config_commands depfiles"
2954
2955
2956 am_make=${MAKE-make}
2957 cat > confinc << 'END'
2958 am__doit:
2959 @echo this is the am__doit target
2960 .PHONY: am__doit
2961 END
2962 # If we don't find an include directive, just comment out the code.
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2964 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2965 am__include="#"
2966 am__quote=
2967 _am_result=none
2968 # First try GNU make style include.
2969 echo "include confinc" > confmf
2970 # Ignore all kinds of additional output from `make'.
2971 case `$am_make -s -f confmf 2> /dev/null` in #(
2972 *the\ am__doit\ target*)
2973 am__include=include
2974 am__quote=
2975 _am_result=GNU
2976 ;;
2977 esac
2978 # Now try BSD make style include.
2979 if test "$am__include" = "#"; then
2980 echo '.include "confinc"' > confmf
2981 case `$am_make -s -f confmf 2> /dev/null` in #(
2982 *the\ am__doit\ target*)
2983 am__include=.include
2984 am__quote="\""
2985 _am_result=BSD
2986 ;;
2987 esac
2988 fi
2989
2990
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2992 $as_echo "$_am_result" >&6; }
2993 rm -f confinc confmf
2994
2995 # Check whether --enable-dependency-tracking was given.
2996 if test "${enable_dependency_tracking+set}" = set; then :
2997 enableval=$enable_dependency_tracking;
2998 fi
2999
3000 if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3002 AMDEPBACKSLASH='\'
3003 fi
3004 if test "x$enable_dependency_tracking" != xno; then
3005 AMDEP_TRUE=
3006 AMDEP_FALSE='#'
3007 else
3008 AMDEP_TRUE='#'
3009 AMDEP_FALSE=
3010 fi
3011
3012
3013 ac_ext=c
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$ac_cv_prog_CC"; then
3058 ac_ct_CC=$CC
3059 # Extract the first word of "gcc", so it can be a program name with args.
3060 set dummy gcc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$ac_ct_CC"; then
3067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_ac_ct_CC="gcc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087 if test -n "$ac_ct_CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3089 $as_echo "$ac_ct_CC" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095 if test "x$ac_ct_CC" = x; then
3096 CC=""
3097 else
3098 case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3103 esac
3104 CC=$ac_ct_CC
3105 fi
3106 else
3107 CC="$ac_cv_prog_CC"
3108 fi
3109
3110 if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}cc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_CC+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_CC="${ac_tool_prefix}cc"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3132 fi
3133 done
3134 done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 fi
3150 fi
3151 if test -z "$CC"; then
3152 # Extract the first word of "cc", so it can be a program name with args.
3153 set dummy cc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 ac_prog_rejected=no
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3165 do
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3171 ac_prog_rejected=yes
3172 continue
3173 fi
3174 ac_cv_prog_CC="cc"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 if test $ac_prog_rejected = yes; then
3183 # We found a bogon in the path, so make sure we never use it.
3184 set dummy $ac_cv_prog_CC
3185 shift
3186 if test $# != 0; then
3187 # We chose a different compiler from the bogus one.
3188 # However, it has the same basename, so the bogon will be chosen
3189 # first if we set CC to just the basename; use the full file name.
3190 shift
3191 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3192 fi
3193 fi
3194 fi
3195 fi
3196 CC=$ac_cv_prog_CC
3197 if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199 $as_echo "$CC" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205
3206 fi
3207 if test -z "$CC"; then
3208 if test -n "$ac_tool_prefix"; then
3209 for ac_prog in cl.exe
3210 do
3211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_CC+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 fi
3237 fi
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248 test -n "$CC" && break
3249 done
3250 fi
3251 if test -z "$CC"; then
3252 ac_ct_CC=$CC
3253 for ac_prog in cl.exe
3254 do
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256 set dummy $ac_prog; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$ac_ct_CC"; then
3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272 ac_cv_prog_ac_ct_CC="$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283 if test -n "$ac_ct_CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3285 $as_echo "$ac_ct_CC" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292 test -n "$ac_ct_CC" && break
3293 done
3294
3295 if test "x$ac_ct_CC" = x; then
3296 CC=""
3297 else
3298 case $cross_compiling:$ac_tool_warned in
3299 yes:)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302 ac_tool_warned=yes ;;
3303 esac
3304 CC=$ac_ct_CC
3305 fi
3306 fi
3307
3308 fi
3309
3310
3311 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "no acceptable C compiler found in \$PATH
3314 See \`config.log' for more details" "$LINENO" 5; }
3315
3316 # Provide some information about the compiler.
3317 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3318 set X $ac_compile
3319 ac_compiler=$2
3320 for ac_option in --version -v -V -qversion; do
3321 { { ac_try="$ac_compiler $ac_option >&5"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3329 ac_status=$?
3330 if test -s conftest.err; then
3331 sed '10a\
3332 ... rest of stderr output deleted ...
3333 10q' conftest.err >conftest.er1
3334 cat conftest.er1 >&5
3335 fi
3336 rm -f conftest.er1 conftest.err
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }
3339 done
3340
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343
3344 int
3345 main ()
3346 {
3347
3348 ;
3349 return 0;
3350 }
3351 _ACEOF
3352 ac_clean_files_save=$ac_clean_files
3353 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3354 # Try to create an executable without -o first, disregard a.out.
3355 # It will help us diagnose broken compilers, and finding out an intuition
3356 # of exeext.
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3358 $as_echo_n "checking whether the C compiler works... " >&6; }
3359 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3360
3361 # The possible output files:
3362 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3363
3364 ac_rmfiles=
3365 for ac_file in $ac_files
3366 do
3367 case $ac_file in
3368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3369 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3370 esac
3371 done
3372 rm -f $ac_rmfiles
3373
3374 if { { ac_try="$ac_link_default"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_link_default") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; then :
3385 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3386 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3387 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3388 # so that the user can short-circuit this test for compilers unknown to
3389 # Autoconf.
3390 for ac_file in $ac_files ''
3391 do
3392 test -f "$ac_file" || continue
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3395 ;;
3396 [ab].out )
3397 # We found the default executable, but exeext='' is most
3398 # certainly right.
3399 break;;
3400 *.* )
3401 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3402 then :; else
3403 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404 fi
3405 # We set ac_cv_exeext here because the later test for it is not
3406 # safe: cross compilers may not add the suffix if given an `-o'
3407 # argument, so we may need to know it at that point already.
3408 # Even if this section looks crufty: it has the advantage of
3409 # actually working.
3410 break;;
3411 * )
3412 break;;
3413 esac
3414 done
3415 test "$ac_cv_exeext" = no && ac_cv_exeext=
3416
3417 else
3418 ac_file=''
3419 fi
3420 if test -z "$ac_file"; then :
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 $as_echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428 as_fn_error 77 "C compiler cannot create executables
3429 See \`config.log' for more details" "$LINENO" 5; }
3430 else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3432 $as_echo "yes" >&6; }
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3435 $as_echo_n "checking for C compiler default output file name... " >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3437 $as_echo "$ac_file" >&6; }
3438 ac_exeext=$ac_cv_exeext
3439
3440 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3441 ac_clean_files=$ac_clean_files_save
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3443 $as_echo_n "checking for suffix of executables... " >&6; }
3444 if { { ac_try="$ac_link"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_link") 2>&5
3452 ac_status=$?
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }; then :
3455 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3456 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3457 # work properly (i.e., refer to `conftest.exe'), while it won't with
3458 # `rm'.
3459 for ac_file in conftest.exe conftest conftest.*; do
3460 test -f "$ac_file" || continue
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3463 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464 break;;
3465 * ) break;;
3466 esac
3467 done
3468 else
3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3472 See \`config.log' for more details" "$LINENO" 5; }
3473 fi
3474 rm -f conftest conftest$ac_cv_exeext
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3476 $as_echo "$ac_cv_exeext" >&6; }
3477
3478 rm -f conftest.$ac_ext
3479 EXEEXT=$ac_cv_exeext
3480 ac_exeext=$EXEEXT
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483 #include <stdio.h>
3484 int
3485 main ()
3486 {
3487 FILE *f = fopen ("conftest.out", "w");
3488 return ferror (f) || fclose (f) != 0;
3489
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 ac_clean_files="$ac_clean_files conftest.out"
3495 # Check that the compiler produces executables we can run. If not, either
3496 # the compiler is broken, or we cross compile.
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3498 $as_echo_n "checking whether we are cross compiling... " >&6; }
3499 if test "$cross_compiling" != yes; then
3500 { { ac_try="$ac_link"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_link") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }
3511 if { ac_try='./conftest$ac_cv_exeext'
3512 { { case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_try") 2>&5
3519 ac_status=$?
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; }; then
3522 cross_compiling=no
3523 else
3524 if test "$cross_compiling" = maybe; then
3525 cross_compiling=yes
3526 else
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error $? "cannot run C compiled programs.
3530 If you meant to cross compile, use \`--host'.
3531 See \`config.log' for more details" "$LINENO" 5; }
3532 fi
3533 fi
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3536 $as_echo "$cross_compiling" >&6; }
3537
3538 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3539 ac_clean_files=$ac_clean_files_save
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3541 $as_echo_n "checking for suffix of object files... " >&6; }
3542 if ${ac_cv_objext+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547
3548 int
3549 main ()
3550 {
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 rm -f conftest.o conftest.obj
3557 if { { ac_try="$ac_compile"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3563 $as_echo "$ac_try_echo"; } >&5
3564 (eval "$ac_compile") 2>&5
3565 ac_status=$?
3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567 test $ac_status = 0; }; then :
3568 for ac_file in conftest.o conftest.obj conftest.*; do
3569 test -f "$ac_file" || continue;
3570 case $ac_file in
3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3572 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3573 break;;
3574 esac
3575 done
3576 else
3577 $as_echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error $? "cannot compute suffix of object files: cannot compile
3583 See \`config.log' for more details" "$LINENO" 5; }
3584 fi
3585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3588 $as_echo "$ac_cv_objext" >&6; }
3589 OBJEXT=$ac_cv_objext
3590 ac_objext=$OBJEXT
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3593 if ${ac_cv_c_compiler_gnu+:} false; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598
3599 int
3600 main ()
3601 {
3602 #ifndef __GNUC__
3603 choke me
3604 #endif
3605
3606 ;
3607 return 0;
3608 }
3609 _ACEOF
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611 ac_compiler_gnu=yes
3612 else
3613 ac_compiler_gnu=no
3614 fi
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3617
3618 fi
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3620 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3621 if test $ac_compiler_gnu = yes; then
3622 GCC=yes
3623 else
3624 GCC=
3625 fi
3626 ac_test_CFLAGS=${CFLAGS+set}
3627 ac_save_CFLAGS=$CFLAGS
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3629 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3630 if ${ac_cv_prog_cc_g+:} false; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 ac_save_c_werror_flag=$ac_c_werror_flag
3634 ac_c_werror_flag=yes
3635 ac_cv_prog_cc_g=no
3636 CFLAGS="-g"
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639
3640 int
3641 main ()
3642 {
3643
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_prog_cc_g=yes
3650 else
3651 CFLAGS=""
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3654
3655 int
3656 main ()
3657 {
3658
3659 ;
3660 return 0;
3661 }
3662 _ACEOF
3663 if ac_fn_c_try_compile "$LINENO"; then :
3664
3665 else
3666 ac_c_werror_flag=$ac_save_c_werror_flag
3667 CFLAGS="-g"
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3670
3671 int
3672 main ()
3673 {
3674
3675 ;
3676 return 0;
3677 }
3678 _ACEOF
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680 ac_cv_prog_cc_g=yes
3681 fi
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 fi
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 ac_c_werror_flag=$ac_save_c_werror_flag
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3690 $as_echo "$ac_cv_prog_cc_g" >&6; }
3691 if test "$ac_test_CFLAGS" = set; then
3692 CFLAGS=$ac_save_CFLAGS
3693 elif test $ac_cv_prog_cc_g = yes; then
3694 if test "$GCC" = yes; then
3695 CFLAGS="-g -O2"
3696 else
3697 CFLAGS="-g"
3698 fi
3699 else
3700 if test "$GCC" = yes; then
3701 CFLAGS="-O2"
3702 else
3703 CFLAGS=
3704 fi
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3707 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3708 if ${ac_cv_prog_cc_c89+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 ac_cv_prog_cc_c89=no
3712 ac_save_CC=$CC
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715 #include <stdarg.h>
3716 #include <stdio.h>
3717 #include <sys/types.h>
3718 #include <sys/stat.h>
3719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3720 struct buf { int x; };
3721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3722 static char *e (p, i)
3723 char **p;
3724 int i;
3725 {
3726 return p[i];
3727 }
3728 static char *f (char * (*g) (char **, int), char **p, ...)
3729 {
3730 char *s;
3731 va_list v;
3732 va_start (v,p);
3733 s = g (p, va_arg (v,int));
3734 va_end (v);
3735 return s;
3736 }
3737
3738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3739 function prototypes and stuff, but not '\xHH' hex character constants.
3740 These don't provoke an error unfortunately, instead are silently treated
3741 as 'x'. The following induces an error, until -std is added to get
3742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3743 array size at least. It's necessary to write '\x00'==0 to get something
3744 that's true only with -std. */
3745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3746
3747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3748 inside strings and character constants. */
3749 #define FOO(x) 'x'
3750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3751
3752 int test (int i, double x);
3753 struct s1 {int (*f) (int a);};
3754 struct s2 {int (*f) (double a);};
3755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3756 int argc;
3757 char **argv;
3758 int
3759 main ()
3760 {
3761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3762 ;
3763 return 0;
3764 }
3765 _ACEOF
3766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3768 do
3769 CC="$ac_save_CC $ac_arg"
3770 if ac_fn_c_try_compile "$LINENO"; then :
3771 ac_cv_prog_cc_c89=$ac_arg
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext
3774 test "x$ac_cv_prog_cc_c89" != "xno" && break
3775 done
3776 rm -f conftest.$ac_ext
3777 CC=$ac_save_CC
3778
3779 fi
3780 # AC_CACHE_VAL
3781 case "x$ac_cv_prog_cc_c89" in
3782 x)
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3784 $as_echo "none needed" >&6; } ;;
3785 xno)
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3787 $as_echo "unsupported" >&6; } ;;
3788 *)
3789 CC="$CC $ac_cv_prog_cc_c89"
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3792 esac
3793 if test "x$ac_cv_prog_cc_c89" != xno; then :
3794
3795 fi
3796
3797 ac_ext=c
3798 ac_cpp='$CPP $CPPFLAGS'
3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802
3803 depcc="$CC" am_compiler_list=
3804
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3806 $as_echo_n "checking dependency style of $depcc... " >&6; }
3807 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3811 # We make a subdir and do the tests there. Otherwise we can end up
3812 # making bogus files that we don't know about and never remove. For
3813 # instance it was reported that on HP-UX the gcc test will end up
3814 # making a dummy file named `D' -- because `-MD' means `put the output
3815 # in D'.
3816 mkdir conftest.dir
3817 # Copy depcomp to subdir because otherwise we won't find it if we're
3818 # using a relative directory.
3819 cp "$am_depcomp" conftest.dir
3820 cd conftest.dir
3821 # We will build objects and dependencies in a subdirectory because
3822 # it helps to detect inapplicable dependency modes. For instance
3823 # both Tru64's cc and ICC support -MD to output dependencies as a
3824 # side effect of compilation, but ICC will put the dependencies in
3825 # the current directory while Tru64 will put them in the object
3826 # directory.
3827 mkdir sub
3828
3829 am_cv_CC_dependencies_compiler_type=none
3830 if test "$am_compiler_list" = ""; then
3831 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3832 fi
3833 am__universal=false
3834 case " $depcc " in #(
3835 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3836 esac
3837
3838 for depmode in $am_compiler_list; do
3839 # Setup a source with many dependencies, because some compilers
3840 # like to wrap large dependency lists on column 80 (with \), and
3841 # we should not choose a depcomp mode which is confused by this.
3842 #
3843 # We need to recreate these files for each test, as the compiler may
3844 # overwrite some of them when testing with obscure command lines.
3845 # This happens at least with the AIX C compiler.
3846 : > sub/conftest.c
3847 for i in 1 2 3 4 5 6; do
3848 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3849 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3850 # Solaris 8's {/usr,}/bin/sh.
3851 touch sub/conftst$i.h
3852 done
3853 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3854
3855 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3856 # mode. It turns out that the SunPro C++ compiler does not properly
3857 # handle `-M -o', and we need to detect this. Also, some Intel
3858 # versions had trouble with output in subdirs
3859 am__obj=sub/conftest.${OBJEXT-o}
3860 am__minus_obj="-o $am__obj"
3861 case $depmode in
3862 gcc)
3863 # This depmode causes a compiler race in universal mode.
3864 test "$am__universal" = false || continue
3865 ;;
3866 nosideeffect)
3867 # after this tag, mechanisms are not by side-effect, so they'll
3868 # only be used when explicitly requested
3869 if test "x$enable_dependency_tracking" = xyes; then
3870 continue
3871 else
3872 break
3873 fi
3874 ;;
3875 msvisualcpp | msvcmsys)
3876 # This compiler won't grok `-c -o', but also, the minuso test has
3877 # not run yet. These depmodes are late enough in the game, and
3878 # so weak that their functioning should not be impacted.
3879 am__obj=conftest.${OBJEXT-o}
3880 am__minus_obj=
3881 ;;
3882 none) break ;;
3883 esac
3884 if depmode=$depmode \
3885 source=sub/conftest.c object=$am__obj \
3886 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3887 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3888 >/dev/null 2>conftest.err &&
3889 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3891 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3893 # icc doesn't choke on unknown options, it will just issue warnings
3894 # or remarks (even with -Werror). So we grep stderr for any message
3895 # that says an option was ignored or not supported.
3896 # When given -MP, icc 7.0 and 7.1 complain thusly:
3897 # icc: Command line warning: ignoring option '-M'; no argument required
3898 # The diagnosis changed in icc 8.0:
3899 # icc: Command line remark: option '-MP' not supported
3900 if (grep 'ignoring option' conftest.err ||
3901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3902 am_cv_CC_dependencies_compiler_type=$depmode
3903 break
3904 fi
3905 fi
3906 done
3907
3908 cd ..
3909 rm -rf conftest.dir
3910 else
3911 am_cv_CC_dependencies_compiler_type=none
3912 fi
3913
3914 fi
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3916 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3917 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3918
3919 if
3920 test "x$enable_dependency_tracking" != xno \
3921 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3922 am__fastdepCC_TRUE=
3923 am__fastdepCC_FALSE='#'
3924 else
3925 am__fastdepCC_TRUE='#'
3926 am__fastdepCC_FALSE=
3927 fi
3928
3929
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3931 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3932 if ${ac_cv_path_SED+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3936 for ac_i in 1 2 3 4 5 6 7; do
3937 ac_script="$ac_script$as_nl$ac_script"
3938 done
3939 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3940 { ac_script=; unset ac_script;}
3941 if test -z "$SED"; then
3942 ac_path_SED_found=false
3943 # Loop through the user's path and test for each of PROGNAME-LIST
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_prog in sed gsed; do
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3952 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3953 # Check for GNU ac_path_SED and select it if it is found.
3954 # Check for GNU $ac_path_SED
3955 case `"$ac_path_SED" --version 2>&1` in
3956 *GNU*)
3957 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3958 *)
3959 ac_count=0
3960 $as_echo_n 0123456789 >"conftest.in"
3961 while :
3962 do
3963 cat "conftest.in" "conftest.in" >"conftest.tmp"
3964 mv "conftest.tmp" "conftest.in"
3965 cp "conftest.in" "conftest.nl"
3966 $as_echo '' >> "conftest.nl"
3967 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969 as_fn_arith $ac_count + 1 && ac_count=$as_val
3970 if test $ac_count -gt ${ac_path_SED_max-0}; then
3971 # Best one so far, save it but keep looking for a better one
3972 ac_cv_path_SED="$ac_path_SED"
3973 ac_path_SED_max=$ac_count
3974 fi
3975 # 10*(2^10) chars as input seems more than enough
3976 test $ac_count -gt 10 && break
3977 done
3978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979 esac
3980
3981 $ac_path_SED_found && break 3
3982 done
3983 done
3984 done
3985 IFS=$as_save_IFS
3986 if test -z "$ac_cv_path_SED"; then
3987 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3988 fi
3989 else
3990 ac_cv_path_SED=$SED
3991 fi
3992
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3995 $as_echo "$ac_cv_path_SED" >&6; }
3996 SED="$ac_cv_path_SED"
3997 rm -f conftest.sed
3998
3999 test -z "$SED" && SED=sed
4000 Xsed="$SED -e 1s/^X//"
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4013 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4014 if ${ac_cv_path_GREP+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 if test -z "$GREP"; then
4018 ac_path_GREP_found=false
4019 # Loop through the user's path and test for each of PROGNAME-LIST
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022 do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_prog in grep ggrep; do
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4028 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4029 # Check for GNU ac_path_GREP and select it if it is found.
4030 # Check for GNU $ac_path_GREP
4031 case `"$ac_path_GREP" --version 2>&1` in
4032 *GNU*)
4033 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4034 *)
4035 ac_count=0
4036 $as_echo_n 0123456789 >"conftest.in"
4037 while :
4038 do
4039 cat "conftest.in" "conftest.in" >"conftest.tmp"
4040 mv "conftest.tmp" "conftest.in"
4041 cp "conftest.in" "conftest.nl"
4042 $as_echo 'GREP' >> "conftest.nl"
4043 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045 as_fn_arith $ac_count + 1 && ac_count=$as_val
4046 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4047 # Best one so far, save it but keep looking for a better one
4048 ac_cv_path_GREP="$ac_path_GREP"
4049 ac_path_GREP_max=$ac_count
4050 fi
4051 # 10*(2^10) chars as input seems more than enough
4052 test $ac_count -gt 10 && break
4053 done
4054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055 esac
4056
4057 $ac_path_GREP_found && break 3
4058 done
4059 done
4060 done
4061 IFS=$as_save_IFS
4062 if test -z "$ac_cv_path_GREP"; then
4063 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4064 fi
4065 else
4066 ac_cv_path_GREP=$GREP
4067 fi
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4071 $as_echo "$ac_cv_path_GREP" >&6; }
4072 GREP="$ac_cv_path_GREP"
4073
4074
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4076 $as_echo_n "checking for egrep... " >&6; }
4077 if ${ac_cv_path_EGREP+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4081 then ac_cv_path_EGREP="$GREP -E"
4082 else
4083 if test -z "$EGREP"; then
4084 ac_path_EGREP_found=false
4085 # Loop through the user's path and test for each of PROGNAME-LIST
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4088 do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_prog in egrep; do
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4094 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4095 # Check for GNU ac_path_EGREP and select it if it is found.
4096 # Check for GNU $ac_path_EGREP
4097 case `"$ac_path_EGREP" --version 2>&1` in
4098 *GNU*)
4099 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4100 *)
4101 ac_count=0
4102 $as_echo_n 0123456789 >"conftest.in"
4103 while :
4104 do
4105 cat "conftest.in" "conftest.in" >"conftest.tmp"
4106 mv "conftest.tmp" "conftest.in"
4107 cp "conftest.in" "conftest.nl"
4108 $as_echo 'EGREP' >> "conftest.nl"
4109 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4111 as_fn_arith $ac_count + 1 && ac_count=$as_val
4112 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4113 # Best one so far, save it but keep looking for a better one
4114 ac_cv_path_EGREP="$ac_path_EGREP"
4115 ac_path_EGREP_max=$ac_count
4116 fi
4117 # 10*(2^10) chars as input seems more than enough
4118 test $ac_count -gt 10 && break
4119 done
4120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4121 esac
4122
4123 $ac_path_EGREP_found && break 3
4124 done
4125 done
4126 done
4127 IFS=$as_save_IFS
4128 if test -z "$ac_cv_path_EGREP"; then
4129 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4130 fi
4131 else
4132 ac_cv_path_EGREP=$EGREP
4133 fi
4134
4135 fi
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4138 $as_echo "$ac_cv_path_EGREP" >&6; }
4139 EGREP="$ac_cv_path_EGREP"
4140
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4143 $as_echo_n "checking for fgrep... " >&6; }
4144 if ${ac_cv_path_FGREP+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4148 then ac_cv_path_FGREP="$GREP -F"
4149 else
4150 if test -z "$FGREP"; then
4151 ac_path_FGREP_found=false
4152 # Loop through the user's path and test for each of PROGNAME-LIST
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4155 do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_prog in fgrep; do
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4161 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4162 # Check for GNU ac_path_FGREP and select it if it is found.
4163 # Check for GNU $ac_path_FGREP
4164 case `"$ac_path_FGREP" --version 2>&1` in
4165 *GNU*)
4166 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4167 *)
4168 ac_count=0
4169 $as_echo_n 0123456789 >"conftest.in"
4170 while :
4171 do
4172 cat "conftest.in" "conftest.in" >"conftest.tmp"
4173 mv "conftest.tmp" "conftest.in"
4174 cp "conftest.in" "conftest.nl"
4175 $as_echo 'FGREP' >> "conftest.nl"
4176 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4178 as_fn_arith $ac_count + 1 && ac_count=$as_val
4179 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4180 # Best one so far, save it but keep looking for a better one
4181 ac_cv_path_FGREP="$ac_path_FGREP"
4182 ac_path_FGREP_max=$ac_count
4183 fi
4184 # 10*(2^10) chars as input seems more than enough
4185 test $ac_count -gt 10 && break
4186 done
4187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4188 esac
4189
4190 $ac_path_FGREP_found && break 3
4191 done
4192 done
4193 done
4194 IFS=$as_save_IFS
4195 if test -z "$ac_cv_path_FGREP"; then
4196 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4197 fi
4198 else
4199 ac_cv_path_FGREP=$FGREP
4200 fi
4201
4202 fi
4203 fi
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4205 $as_echo "$ac_cv_path_FGREP" >&6; }
4206 FGREP="$ac_cv_path_FGREP"
4207
4208
4209 test -z "$GREP" && GREP=grep
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229 # Check whether --with-gnu-ld was given.
4230 if test "${with_gnu_ld+set}" = set; then :
4231 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4232 else
4233 with_gnu_ld=no
4234 fi
4235
4236 ac_prog=ld
4237 if test "$GCC" = yes; then
4238 # Check if gcc -print-prog-name=ld gives a path.
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4240 $as_echo_n "checking for ld used by $CC... " >&6; }
4241 case $host in
4242 *-*-mingw*)
4243 # gcc leaves a trailing carriage return which upsets mingw
4244 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4245 *)
4246 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4247 esac
4248 case $ac_prog in
4249 # Accept absolute paths.
4250 [\\/]* | ?:[\\/]*)
4251 re_direlt='/[^/][^/]*/\.\./'
4252 # Canonicalize the pathname of ld
4253 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4254 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4255 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4256 done
4257 test -z "$LD" && LD="$ac_prog"
4258 ;;
4259 "")
4260 # If it fails, then pretend we aren't using GCC.
4261 ac_prog=ld
4262 ;;
4263 *)
4264 # If it is relative, then search for the first ld in PATH.
4265 with_gnu_ld=unknown
4266 ;;
4267 esac
4268 elif test "$with_gnu_ld" = yes; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4270 $as_echo_n "checking for GNU ld... " >&6; }
4271 else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4273 $as_echo_n "checking for non-GNU ld... " >&6; }
4274 fi
4275 if ${lt_cv_path_LD+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 if test -z "$LD"; then
4279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4280 for ac_dir in $PATH; do
4281 IFS="$lt_save_ifs"
4282 test -z "$ac_dir" && ac_dir=.
4283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4284 lt_cv_path_LD="$ac_dir/$ac_prog"
4285 # Check to see if the program is GNU ld. I'd rather use --version,
4286 # but apparently some variants of GNU ld only accept -v.
4287 # Break only if it was the GNU/non-GNU ld that we prefer.
4288 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4289 *GNU* | *'with BFD'*)
4290 test "$with_gnu_ld" != no && break
4291 ;;
4292 *)
4293 test "$with_gnu_ld" != yes && break
4294 ;;
4295 esac
4296 fi
4297 done
4298 IFS="$lt_save_ifs"
4299 else
4300 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4301 fi
4302 fi
4303
4304 LD="$lt_cv_path_LD"
4305 if test -n "$LD"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4307 $as_echo "$LD" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4314 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4315 if ${lt_cv_prog_gnu_ld+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4319 case `$LD -v 2>&1 </dev/null` in
4320 *GNU* | *'with BFD'*)
4321 lt_cv_prog_gnu_ld=yes
4322 ;;
4323 *)
4324 lt_cv_prog_gnu_ld=no
4325 ;;
4326 esac
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4329 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4330 with_gnu_ld=$lt_cv_prog_gnu_ld
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4341 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4342 if ${lt_cv_path_NM+:} false; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 if test -n "$NM"; then
4346 # Let the user override the test.
4347 lt_cv_path_NM="$NM"
4348 else
4349 lt_nm_to_check="${ac_tool_prefix}nm"
4350 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4351 lt_nm_to_check="$lt_nm_to_check nm"
4352 fi
4353 for lt_tmp_nm in $lt_nm_to_check; do
4354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4355 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4356 IFS="$lt_save_ifs"
4357 test -z "$ac_dir" && ac_dir=.
4358 tmp_nm="$ac_dir/$lt_tmp_nm"
4359 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4360 # Check to see if the nm accepts a BSD-compat flag.
4361 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4362 # nm: unknown option "B" ignored
4363 # Tru64's nm complains that /dev/null is an invalid object file
4364 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4365 */dev/null* | *'Invalid file or object type'*)
4366 lt_cv_path_NM="$tmp_nm -B"
4367 break
4368 ;;
4369 *)
4370 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4371 */dev/null*)
4372 lt_cv_path_NM="$tmp_nm -p"
4373 break
4374 ;;
4375 *)
4376 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4377 continue # so that we can try to find one that supports BSD flags
4378 ;;
4379 esac
4380 ;;
4381 esac
4382 fi
4383 done
4384 IFS="$lt_save_ifs"
4385 done
4386 : ${lt_cv_path_NM=no}
4387 fi
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4390 $as_echo "$lt_cv_path_NM" >&6; }
4391 if test "$lt_cv_path_NM" != "no"; then
4392 NM="$lt_cv_path_NM"
4393 else
4394 # Didn't find any BSD compatible name lister, look for dumpbin.
4395 if test -n "$DUMPBIN"; then :
4396 # Let the user override the test.
4397 else
4398 if test -n "$ac_tool_prefix"; then
4399 for ac_prog in dumpbin "link -dump"
4400 do
4401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_prog_DUMPBIN+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 if test -n "$DUMPBIN"; then
4409 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 DUMPBIN=$ac_cv_prog_DUMPBIN
4429 if test -n "$DUMPBIN"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4431 $as_echo "$DUMPBIN" >&6; }
4432 else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437
4438 test -n "$DUMPBIN" && break
4439 done
4440 fi
4441 if test -z "$DUMPBIN"; then
4442 ac_ct_DUMPBIN=$DUMPBIN
4443 for ac_prog in dumpbin "link -dump"
4444 do
4445 # Extract the first word of "$ac_prog", so it can be a program name with args.
4446 set dummy $ac_prog; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 if test -n "$ac_ct_DUMPBIN"; then
4453 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4465 fi
4466 done
4467 done
4468 IFS=$as_save_IFS
4469
4470 fi
4471 fi
4472 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4473 if test -n "$ac_ct_DUMPBIN"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4475 $as_echo "$ac_ct_DUMPBIN" >&6; }
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 fi
4480
4481
4482 test -n "$ac_ct_DUMPBIN" && break
4483 done
4484
4485 if test "x$ac_ct_DUMPBIN" = x; then
4486 DUMPBIN=":"
4487 else
4488 case $cross_compiling:$ac_tool_warned in
4489 yes:)
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4492 ac_tool_warned=yes ;;
4493 esac
4494 DUMPBIN=$ac_ct_DUMPBIN
4495 fi
4496 fi
4497
4498 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4499 *COFF*)
4500 DUMPBIN="$DUMPBIN -symbols"
4501 ;;
4502 *)
4503 DUMPBIN=:
4504 ;;
4505 esac
4506 fi
4507
4508 if test "$DUMPBIN" != ":"; then
4509 NM="$DUMPBIN"
4510 fi
4511 fi
4512 test -z "$NM" && NM=nm
4513
4514
4515
4516
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4520 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4521 if ${lt_cv_nm_interface+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 lt_cv_nm_interface="BSD nm"
4525 echo "int some_variable = 0;" > conftest.$ac_ext
4526 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4527 (eval "$ac_compile" 2>conftest.err)
4528 cat conftest.err >&5
4529 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4530 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4531 cat conftest.err >&5
4532 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4533 cat conftest.out >&5
4534 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4535 lt_cv_nm_interface="MS dumpbin"
4536 fi
4537 rm -f conftest*
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4540 $as_echo "$lt_cv_nm_interface" >&6; }
4541
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4543 $as_echo_n "checking whether ln -s works... " >&6; }
4544 LN_S=$as_ln_s
4545 if test "$LN_S" = "ln -s"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4547 $as_echo "yes" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4550 $as_echo "no, using $LN_S" >&6; }
4551 fi
4552
4553 # find the maximum length of command line arguments
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4555 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4556 if ${lt_cv_sys_max_cmd_len+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 i=0
4560 teststring="ABCD"
4561
4562 case $build_os in
4563 msdosdjgpp*)
4564 # On DJGPP, this test can blow up pretty badly due to problems in libc
4565 # (any single argument exceeding 2000 bytes causes a buffer overrun
4566 # during glob expansion). Even if it were fixed, the result of this
4567 # check would be larger than it should be.
4568 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4569 ;;
4570
4571 gnu*)
4572 # Under GNU Hurd, this test is not required because there is
4573 # no limit to the length of command line arguments.
4574 # Libtool will interpret -1 as no limit whatsoever
4575 lt_cv_sys_max_cmd_len=-1;
4576 ;;
4577
4578 cygwin* | mingw* | cegcc*)
4579 # On Win9x/ME, this test blows up -- it succeeds, but takes
4580 # about 5 minutes as the teststring grows exponentially.
4581 # Worse, since 9x/ME are not pre-emptively multitasking,
4582 # you end up with a "frozen" computer, even though with patience
4583 # the test eventually succeeds (with a max line length of 256k).
4584 # Instead, let's just punt: use the minimum linelength reported by
4585 # all of the supported platforms: 8192 (on NT/2K/XP).
4586 lt_cv_sys_max_cmd_len=8192;
4587 ;;
4588
4589 mint*)
4590 # On MiNT this can take a long time and run out of memory.
4591 lt_cv_sys_max_cmd_len=8192;
4592 ;;
4593
4594 amigaos*)
4595 # On AmigaOS with pdksh, this test takes hours, literally.
4596 # So we just punt and use a minimum line length of 8192.
4597 lt_cv_sys_max_cmd_len=8192;
4598 ;;
4599
4600 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4601 # This has been around since 386BSD, at least. Likely further.
4602 if test -x /sbin/sysctl; then
4603 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4604 elif test -x /usr/sbin/sysctl; then
4605 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4606 else
4607 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4608 fi
4609 # And add a safety zone
4610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4612 ;;
4613
4614 interix*)
4615 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4616 lt_cv_sys_max_cmd_len=196608
4617 ;;
4618
4619 osf*)
4620 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4621 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4622 # nice to cause kernel panics so lets avoid the loop below.
4623 # First set a reasonable default.
4624 lt_cv_sys_max_cmd_len=16384
4625 #
4626 if test -x /sbin/sysconfig; then
4627 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4628 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4629 esac
4630 fi
4631 ;;
4632 sco3.2v5*)
4633 lt_cv_sys_max_cmd_len=102400
4634 ;;
4635 sysv5* | sco5v6* | sysv4.2uw2*)
4636 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4637 if test -n "$kargmax"; then
4638 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4639 else
4640 lt_cv_sys_max_cmd_len=32768
4641 fi
4642 ;;
4643 *)
4644 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4645 if test -n "$lt_cv_sys_max_cmd_len"; then
4646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4648 else
4649 # Make teststring a little bigger before we do anything with it.
4650 # a 1K string should be a reasonable start.
4651 for i in 1 2 3 4 5 6 7 8 ; do
4652 teststring=$teststring$teststring
4653 done
4654 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4655 # If test is not a shell built-in, we'll probably end up computing a
4656 # maximum length that is only half of the actual maximum length, but
4657 # we can't tell.
4658 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4659 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4660 test $i != 17 # 1/2 MB should be enough
4661 do
4662 i=`expr $i + 1`
4663 teststring=$teststring$teststring
4664 done
4665 # Only check the string length outside the loop.
4666 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4667 teststring=
4668 # Add a significant safety factor because C++ compilers can tack on
4669 # massive amounts of additional arguments before passing them to the
4670 # linker. It appears as though 1/2 is a usable value.
4671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4672 fi
4673 ;;
4674 esac
4675
4676 fi
4677
4678 if test -n $lt_cv_sys_max_cmd_len ; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4680 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4681 else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4683 $as_echo "none" >&6; }
4684 fi
4685 max_cmd_len=$lt_cv_sys_max_cmd_len
4686
4687
4688
4689
4690
4691
4692 : ${CP="cp -f"}
4693 : ${MV="mv -f"}
4694 : ${RM="rm -f"}
4695
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4697 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4698 # Try some XSI features
4699 xsi_shell=no
4700 ( _lt_dummy="a/b/c"
4701 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4702 = c,a/b,b/c, \
4703 && eval 'test $(( 1 + 1 )) -eq 2 \
4704 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4705 && xsi_shell=yes
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4707 $as_echo "$xsi_shell" >&6; }
4708
4709
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4711 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4712 lt_shell_append=no
4713 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4714 >/dev/null 2>&1 \
4715 && lt_shell_append=yes
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4717 $as_echo "$lt_shell_append" >&6; }
4718
4719
4720 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4721 lt_unset=unset
4722 else
4723 lt_unset=false
4724 fi
4725
4726
4727
4728
4729
4730 # test EBCDIC or ASCII
4731 case `echo X|tr X '\101'` in
4732 A) # ASCII based system
4733 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4734 lt_SP2NL='tr \040 \012'
4735 lt_NL2SP='tr \015\012 \040\040'
4736 ;;
4737 *) # EBCDIC based system
4738 lt_SP2NL='tr \100 \n'
4739 lt_NL2SP='tr \r\n \100\100'
4740 ;;
4741 esac
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4752 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4753 if ${lt_cv_to_host_file_cmd+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 case $host in
4757 *-*-mingw* )
4758 case $build in
4759 *-*-mingw* ) # actually msys
4760 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4761 ;;
4762 *-*-cygwin* )
4763 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4764 ;;
4765 * ) # otherwise, assume *nix
4766 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4767 ;;
4768 esac
4769 ;;
4770 *-*-cygwin* )
4771 case $build in
4772 *-*-mingw* ) # actually msys
4773 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4774 ;;
4775 *-*-cygwin* )
4776 lt_cv_to_host_file_cmd=func_convert_file_noop
4777 ;;
4778 * ) # otherwise, assume *nix
4779 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4780 ;;
4781 esac
4782 ;;
4783 * ) # unhandled hosts (and "normal" native builds)
4784 lt_cv_to_host_file_cmd=func_convert_file_noop
4785 ;;
4786 esac
4787
4788 fi
4789
4790 to_host_file_cmd=$lt_cv_to_host_file_cmd
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4792 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4793
4794
4795
4796
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4799 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4800 if ${lt_cv_to_tool_file_cmd+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 #assume ordinary cross tools, or native build.
4804 lt_cv_to_tool_file_cmd=func_convert_file_noop
4805 case $host in
4806 *-*-mingw* )
4807 case $build in
4808 *-*-mingw* ) # actually msys
4809 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4810 ;;
4811 esac
4812 ;;
4813 esac
4814
4815 fi
4816
4817 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4819 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4820
4821
4822
4823
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4826 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4827 if ${lt_cv_ld_reload_flag+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 lt_cv_ld_reload_flag='-r'
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4833 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4834 reload_flag=$lt_cv_ld_reload_flag
4835 case $reload_flag in
4836 "" | " "*) ;;
4837 *) reload_flag=" $reload_flag" ;;
4838 esac
4839 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4840 case $host_os in
4841 cygwin* | mingw* | pw32* | cegcc*)
4842 if test "$GCC" != yes; then
4843 reload_cmds=false
4844 fi
4845 ;;
4846 darwin*)
4847 if test "$GCC" = yes; then
4848 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4849 else
4850 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4851 fi
4852 ;;
4853 esac
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863 if test -n "$ac_tool_prefix"; then
4864 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4865 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_OBJDUMP+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$OBJDUMP"; then
4872 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 OBJDUMP=$ac_cv_prog_OBJDUMP
4892 if test -n "$OBJDUMP"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4894 $as_echo "$OBJDUMP" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 fi
4899
4900
4901 fi
4902 if test -z "$ac_cv_prog_OBJDUMP"; then
4903 ac_ct_OBJDUMP=$OBJDUMP
4904 # Extract the first word of "objdump", so it can be a program name with args.
4905 set dummy objdump; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$ac_ct_OBJDUMP"; then
4912 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4924 fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929 fi
4930 fi
4931 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4932 if test -n "$ac_ct_OBJDUMP"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4934 $as_echo "$ac_ct_OBJDUMP" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4938 fi
4939
4940 if test "x$ac_ct_OBJDUMP" = x; then
4941 OBJDUMP="false"
4942 else
4943 case $cross_compiling:$ac_tool_warned in
4944 yes:)
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4947 ac_tool_warned=yes ;;
4948 esac
4949 OBJDUMP=$ac_ct_OBJDUMP
4950 fi
4951 else
4952 OBJDUMP="$ac_cv_prog_OBJDUMP"
4953 fi
4954
4955 test -z "$OBJDUMP" && OBJDUMP=objdump
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4966 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4967 if ${lt_cv_deplibs_check_method+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 lt_cv_file_magic_cmd='$MAGIC_CMD'
4971 lt_cv_file_magic_test_file=
4972 lt_cv_deplibs_check_method='unknown'
4973 # Need to set the preceding variable on all platforms that support
4974 # interlibrary dependencies.
4975 # 'none' -- dependencies not supported.
4976 # `unknown' -- same as none, but documents that we really don't know.
4977 # 'pass_all' -- all dependencies passed with no checks.
4978 # 'test_compile' -- check by making test program.
4979 # 'file_magic [[regex]]' -- check by looking for files in library path
4980 # which responds to the $file_magic_cmd with a given extended regex.
4981 # If you have `file' or equivalent on your system and you're not sure
4982 # whether `pass_all' will *always* work, you probably want this one.
4983
4984 case $host_os in
4985 aix[4-9]*)
4986 lt_cv_deplibs_check_method=pass_all
4987 ;;
4988
4989 beos*)
4990 lt_cv_deplibs_check_method=pass_all
4991 ;;
4992
4993 bsdi[45]*)
4994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4995 lt_cv_file_magic_cmd='/usr/bin/file -L'
4996 lt_cv_file_magic_test_file=/shlib/libc.so
4997 ;;
4998
4999 cygwin*)
5000 # func_win32_libid is a shell function defined in ltmain.sh
5001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5002 lt_cv_file_magic_cmd='func_win32_libid'
5003 ;;
5004
5005 mingw* | pw32*)
5006 # Base MSYS/MinGW do not provide the 'file' command needed by
5007 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5008 # unless we find 'file', for example because we are cross-compiling.
5009 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5010 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5012 lt_cv_file_magic_cmd='func_win32_libid'
5013 else
5014 # Keep this pattern in sync with the one in func_win32_libid.
5015 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5016 lt_cv_file_magic_cmd='$OBJDUMP -f'
5017 fi
5018 ;;
5019
5020 cegcc*)
5021 # use the weaker test based on 'objdump'. See mingw*.
5022 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5023 lt_cv_file_magic_cmd='$OBJDUMP -f'
5024 ;;
5025
5026 darwin* | rhapsody*)
5027 lt_cv_deplibs_check_method=pass_all
5028 ;;
5029
5030 freebsd* | dragonfly*)
5031 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5032 case $host_cpu in
5033 i*86 )
5034 # Not sure whether the presence of OpenBSD here was a mistake.
5035 # Let's accept both of them until this is cleared up.
5036 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5037 lt_cv_file_magic_cmd=/usr/bin/file
5038 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5039 ;;
5040 esac
5041 else
5042 lt_cv_deplibs_check_method=pass_all
5043 fi
5044 ;;
5045
5046 gnu*)
5047 lt_cv_deplibs_check_method=pass_all
5048 ;;
5049
5050 haiku*)
5051 lt_cv_deplibs_check_method=pass_all
5052 ;;
5053
5054 hpux10.20* | hpux11*)
5055 lt_cv_file_magic_cmd=/usr/bin/file
5056 case $host_cpu in
5057 ia64*)
5058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5059 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5060 ;;
5061 hppa*64*)
5062 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]'
5063 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5064 ;;
5065 *)
5066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5067 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5068 ;;
5069 esac
5070 ;;
5071
5072 interix[3-9]*)
5073 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5075 ;;
5076
5077 irix5* | irix6* | nonstopux*)
5078 case $LD in
5079 *-32|*"-32 ") libmagic=32-bit;;
5080 *-n32|*"-n32 ") libmagic=N32;;
5081 *-64|*"-64 ") libmagic=64-bit;;
5082 *) libmagic=never-match;;
5083 esac
5084 lt_cv_deplibs_check_method=pass_all
5085 ;;
5086
5087 # This must be Linux ELF.
5088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5089 lt_cv_deplibs_check_method=pass_all
5090 ;;
5091
5092 netbsd*)
5093 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5095 else
5096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5097 fi
5098 ;;
5099
5100 newos6*)
5101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5102 lt_cv_file_magic_cmd=/usr/bin/file
5103 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5104 ;;
5105
5106 *nto* | *qnx*)
5107 lt_cv_deplibs_check_method=pass_all
5108 ;;
5109
5110 openbsd*)
5111 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5113 else
5114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5115 fi
5116 ;;
5117
5118 osf3* | osf4* | osf5*)
5119 lt_cv_deplibs_check_method=pass_all
5120 ;;
5121
5122 rdos*)
5123 lt_cv_deplibs_check_method=pass_all
5124 ;;
5125
5126 solaris*)
5127 lt_cv_deplibs_check_method=pass_all
5128 ;;
5129
5130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5131 lt_cv_deplibs_check_method=pass_all
5132 ;;
5133
5134 sysv4 | sysv4.3*)
5135 case $host_vendor in
5136 motorola)
5137 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]'
5138 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5139 ;;
5140 ncr)
5141 lt_cv_deplibs_check_method=pass_all
5142 ;;
5143 sequent)
5144 lt_cv_file_magic_cmd='/bin/file'
5145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5146 ;;
5147 sni)
5148 lt_cv_file_magic_cmd='/bin/file'
5149 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5150 lt_cv_file_magic_test_file=/lib/libc.so
5151 ;;
5152 siemens)
5153 lt_cv_deplibs_check_method=pass_all
5154 ;;
5155 pc)
5156 lt_cv_deplibs_check_method=pass_all
5157 ;;
5158 esac
5159 ;;
5160
5161 tpf*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164 esac
5165
5166 fi
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5168 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5169
5170 file_magic_glob=
5171 want_nocaseglob=no
5172 if test "$build" = "$host"; then
5173 case $host_os in
5174 mingw* | pw32*)
5175 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5176 want_nocaseglob=yes
5177 else
5178 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5179 fi
5180 ;;
5181 esac
5182 fi
5183
5184 file_magic_cmd=$lt_cv_file_magic_cmd
5185 deplibs_check_method=$lt_cv_deplibs_check_method
5186 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209 if test -n "$ac_tool_prefix"; then
5210 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5211 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_DLLTOOL+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$DLLTOOL"; then
5218 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 DLLTOOL=$ac_cv_prog_DLLTOOL
5238 if test -n "$DLLTOOL"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5240 $as_echo "$DLLTOOL" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246
5247 fi
5248 if test -z "$ac_cv_prog_DLLTOOL"; then
5249 ac_ct_DLLTOOL=$DLLTOOL
5250 # Extract the first word of "dlltool", so it can be a program name with args.
5251 set dummy dlltool; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -n "$ac_ct_DLLTOOL"; then
5258 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5270 fi
5271 done
5272 done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5278 if test -n "$ac_ct_DLLTOOL"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5280 $as_echo "$ac_ct_DLLTOOL" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286 if test "x$ac_ct_DLLTOOL" = x; then
5287 DLLTOOL="false"
5288 else
5289 case $cross_compiling:$ac_tool_warned in
5290 yes:)
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293 ac_tool_warned=yes ;;
5294 esac
5295 DLLTOOL=$ac_ct_DLLTOOL
5296 fi
5297 else
5298 DLLTOOL="$ac_cv_prog_DLLTOOL"
5299 fi
5300
5301 test -z "$DLLTOOL" && DLLTOOL=dlltool
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5313 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5314 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 lt_cv_sharedlib_from_linklib_cmd='unknown'
5318
5319 case $host_os in
5320 cygwin* | mingw* | pw32* | cegcc*)
5321 # two different shell functions defined in ltmain.sh
5322 # decide which to use based on capabilities of $DLLTOOL
5323 case `$DLLTOOL --help 2>&1` in
5324 *--identify-strict*)
5325 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5326 ;;
5327 *)
5328 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5329 ;;
5330 esac
5331 ;;
5332 *)
5333 # fallback: assume linklib IS sharedlib
5334 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5335 ;;
5336 esac
5337
5338 fi
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5340 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5341 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5342 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5343
5344
5345
5346
5347
5348
5349
5350
5351 if test -n "$ac_tool_prefix"; then
5352 for ac_prog in ar
5353 do
5354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_prog_AR+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -n "$AR"; then
5362 ac_cv_prog_AR="$AR" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375 done
5376 done
5377 IFS=$as_save_IFS
5378
5379 fi
5380 fi
5381 AR=$ac_cv_prog_AR
5382 if test -n "$AR"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5384 $as_echo "$AR" >&6; }
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5388 fi
5389
5390
5391 test -n "$AR" && break
5392 done
5393 fi
5394 if test -z "$AR"; then
5395 ac_ct_AR=$AR
5396 for ac_prog in ar
5397 do
5398 # Extract the first word of "$ac_prog", so it can be a program name with args.
5399 set dummy $ac_prog; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 if test -n "$ac_ct_AR"; then
5406 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5410 do
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415 ac_cv_prog_ac_ct_AR="$ac_prog"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5418 fi
5419 done
5420 done
5421 IFS=$as_save_IFS
5422
5423 fi
5424 fi
5425 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5426 if test -n "$ac_ct_AR"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5428 $as_echo "$ac_ct_AR" >&6; }
5429 else
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5432 fi
5433
5434
5435 test -n "$ac_ct_AR" && break
5436 done
5437
5438 if test "x$ac_ct_AR" = x; then
5439 AR="false"
5440 else
5441 case $cross_compiling:$ac_tool_warned in
5442 yes:)
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5445 ac_tool_warned=yes ;;
5446 esac
5447 AR=$ac_ct_AR
5448 fi
5449 fi
5450
5451 : ${AR=ar}
5452 : ${AR_FLAGS=cru}
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5465 $as_echo_n "checking for archiver @FILE support... " >&6; }
5466 if ${lt_cv_ar_at_file+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 lt_cv_ar_at_file=no
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472
5473 int
5474 main ()
5475 {
5476
5477 ;
5478 return 0;
5479 }
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 echo conftest.$ac_objext > conftest.lst
5483 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5485 (eval $lt_ar_try) 2>&5
5486 ac_status=$?
5487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5488 test $ac_status = 0; }
5489 if test "$ac_status" -eq 0; then
5490 # Ensure the archiver fails upon bogus file names.
5491 rm -f conftest.$ac_objext libconftest.a
5492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5493 (eval $lt_ar_try) 2>&5
5494 ac_status=$?
5495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5496 test $ac_status = 0; }
5497 if test "$ac_status" -ne 0; then
5498 lt_cv_ar_at_file=@
5499 fi
5500 fi
5501 rm -f conftest.* libconftest.a
5502
5503 fi
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5508 $as_echo "$lt_cv_ar_at_file" >&6; }
5509
5510 if test "x$lt_cv_ar_at_file" = xno; then
5511 archiver_list_spec=
5512 else
5513 archiver_list_spec=$lt_cv_ar_at_file
5514 fi
5515
5516
5517
5518
5519
5520
5521
5522 if test -n "$ac_tool_prefix"; then
5523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5524 set dummy ${ac_tool_prefix}strip; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_prog_STRIP+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -n "$STRIP"; then
5531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5532 else
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544 done
5545 done
5546 IFS=$as_save_IFS
5547
5548 fi
5549 fi
5550 STRIP=$ac_cv_prog_STRIP
5551 if test -n "$STRIP"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5553 $as_echo "$STRIP" >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558
5559
5560 fi
5561 if test -z "$ac_cv_prog_STRIP"; then
5562 ac_ct_STRIP=$STRIP
5563 # Extract the first word of "strip", so it can be a program name with args.
5564 set dummy strip; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 if test -n "$ac_ct_STRIP"; then
5571 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580 ac_cv_prog_ac_ct_STRIP="strip"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5583 fi
5584 done
5585 done
5586 IFS=$as_save_IFS
5587
5588 fi
5589 fi
5590 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5591 if test -n "$ac_ct_STRIP"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5593 $as_echo "$ac_ct_STRIP" >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5597 fi
5598
5599 if test "x$ac_ct_STRIP" = x; then
5600 STRIP=":"
5601 else
5602 case $cross_compiling:$ac_tool_warned in
5603 yes:)
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5606 ac_tool_warned=yes ;;
5607 esac
5608 STRIP=$ac_ct_STRIP
5609 fi
5610 else
5611 STRIP="$ac_cv_prog_STRIP"
5612 fi
5613
5614 test -z "$STRIP" && STRIP=:
5615
5616
5617
5618
5619
5620
5621 if test -n "$ac_tool_prefix"; then
5622 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5623 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_RANLIB+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if test -n "$RANLIB"; then
5630 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643 done
5644 done
5645 IFS=$as_save_IFS
5646
5647 fi
5648 fi
5649 RANLIB=$ac_cv_prog_RANLIB
5650 if test -n "$RANLIB"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5652 $as_echo "$RANLIB" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5656 fi
5657
5658
5659 fi
5660 if test -z "$ac_cv_prog_RANLIB"; then
5661 ac_ct_RANLIB=$RANLIB
5662 # Extract the first word of "ranlib", so it can be a program name with args.
5663 set dummy ranlib; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$ac_ct_RANLIB"; then
5670 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_ac_ct_RANLIB="ranlib"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5690 if test -n "$ac_ct_RANLIB"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5692 $as_echo "$ac_ct_RANLIB" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698 if test "x$ac_ct_RANLIB" = x; then
5699 RANLIB=":"
5700 else
5701 case $cross_compiling:$ac_tool_warned in
5702 yes:)
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned=yes ;;
5706 esac
5707 RANLIB=$ac_ct_RANLIB
5708 fi
5709 else
5710 RANLIB="$ac_cv_prog_RANLIB"
5711 fi
5712
5713 test -z "$RANLIB" && RANLIB=:
5714
5715
5716
5717
5718
5719
5720 # Determine commands to create old-style static archives.
5721 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5722 old_postinstall_cmds='chmod 644 $oldlib'
5723 old_postuninstall_cmds=
5724
5725 if test -n "$RANLIB"; then
5726 case $host_os in
5727 openbsd*)
5728 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5729 ;;
5730 *)
5731 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5732 ;;
5733 esac
5734 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5735 fi
5736
5737 case $host_os in
5738 darwin*)
5739 lock_old_archive_extraction=yes ;;
5740 *)
5741 lock_old_archive_extraction=no ;;
5742 esac
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782 # If no C compiler was specified, use CC.
5783 LTCC=${LTCC-"$CC"}
5784
5785 # If no C compiler flags were specified, use CFLAGS.
5786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5787
5788 # Allow CC to be a program name with arguments.
5789 compiler=$CC
5790
5791
5792 # Check for command to grab the raw symbol name followed by C symbol from nm.
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5794 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5795 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798
5799 # These are sane defaults that work on at least a few old systems.
5800 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5801
5802 # Character class describing NM global symbol codes.
5803 symcode='[BCDEGRST]'
5804
5805 # Regexp to match symbols that can be accessed directly from C.
5806 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5807
5808 # Define system-specific variables.
5809 case $host_os in
5810 aix*)
5811 symcode='[BCDT]'
5812 ;;
5813 cygwin* | mingw* | pw32* | cegcc*)
5814 symcode='[ABCDGISTW]'
5815 ;;
5816 hpux*)
5817 if test "$host_cpu" = ia64; then
5818 symcode='[ABCDEGRST]'
5819 fi
5820 ;;
5821 irix* | nonstopux*)
5822 symcode='[BCDEGRST]'
5823 ;;
5824 osf*)
5825 symcode='[BCDEGQRST]'
5826 ;;
5827 solaris*)
5828 symcode='[BDRT]'
5829 ;;
5830 sco3.2v5*)
5831 symcode='[DT]'
5832 ;;
5833 sysv4.2uw2*)
5834 symcode='[DT]'
5835 ;;
5836 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5837 symcode='[ABDT]'
5838 ;;
5839 sysv4)
5840 symcode='[DFNSTU]'
5841 ;;
5842 esac
5843
5844 # If we're using GNU nm, then use its standard symbol codes.
5845 case `$NM -V 2>&1` in
5846 *GNU* | *'with BFD'*)
5847 symcode='[ABCDGIRSTW]' ;;
5848 esac
5849
5850 # Transform an extracted symbol line into a proper C declaration.
5851 # Some systems (esp. on ia64) link data and code symbols differently,
5852 # so use this general approach.
5853 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5854
5855 # Transform an extracted symbol line into symbol name and symbol address
5856 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5857 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'"
5858
5859 # Handle CRLF in mingw tool chain
5860 opt_cr=
5861 case $build_os in
5862 mingw*)
5863 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5864 ;;
5865 esac
5866
5867 # Try without a prefix underscore, then with it.
5868 for ac_symprfx in "" "_"; do
5869
5870 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5871 symxfrm="\\1 $ac_symprfx\\2 \\2"
5872
5873 # Write the raw and C identifiers.
5874 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5875 # Fake it for dumpbin and say T for any non-static function
5876 # and D for any global variable.
5877 # Also find C++ and __fastcall symbols from MSVC++,
5878 # which start with @ or ?.
5879 lt_cv_sys_global_symbol_pipe="$AWK '"\
5880 " {last_section=section; section=\$ 3};"\
5881 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5882 " \$ 0!~/External *\|/{next};"\
5883 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5884 " {if(hide[section]) next};"\
5885 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5886 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5887 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5888 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5889 " ' prfx=^$ac_symprfx"
5890 else
5891 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5892 fi
5893 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5894
5895 # Check to see that the pipe works correctly.
5896 pipe_works=no
5897
5898 rm -f conftest*
5899 cat > conftest.$ac_ext <<_LT_EOF
5900 #ifdef __cplusplus
5901 extern "C" {
5902 #endif
5903 char nm_test_var;
5904 void nm_test_func(void);
5905 void nm_test_func(void){}
5906 #ifdef __cplusplus
5907 }
5908 #endif
5909 int main(){nm_test_var='a';nm_test_func();return(0);}
5910 _LT_EOF
5911
5912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5913 (eval $ac_compile) 2>&5
5914 ac_status=$?
5915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5916 test $ac_status = 0; }; then
5917 # Now try to grab the symbols.
5918 nlist=conftest.nm
5919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5920 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5921 ac_status=$?
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; } && test -s "$nlist"; then
5924 # Try sorting and uniquifying the output.
5925 if sort "$nlist" | uniq > "$nlist"T; then
5926 mv -f "$nlist"T "$nlist"
5927 else
5928 rm -f "$nlist"T
5929 fi
5930
5931 # Make sure that we snagged all the symbols we need.
5932 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5933 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5934 cat <<_LT_EOF > conftest.$ac_ext
5935 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5936 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5937 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5938 relocations are performed -- see ld's documentation on pseudo-relocs. */
5939 # define LT_DLSYM_CONST
5940 #elif defined(__osf__)
5941 /* This system does not cope well with relocations in const data. */
5942 # define LT_DLSYM_CONST
5943 #else
5944 # define LT_DLSYM_CONST const
5945 #endif
5946
5947 #ifdef __cplusplus
5948 extern "C" {
5949 #endif
5950
5951 _LT_EOF
5952 # Now generate the symbol file.
5953 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5954
5955 cat <<_LT_EOF >> conftest.$ac_ext
5956
5957 /* The mapping between symbol names and symbols. */
5958 LT_DLSYM_CONST struct {
5959 const char *name;
5960 void *address;
5961 }
5962 lt__PROGRAM__LTX_preloaded_symbols[] =
5963 {
5964 { "@PROGRAM@", (void *) 0 },
5965 _LT_EOF
5966 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5967 cat <<\_LT_EOF >> conftest.$ac_ext
5968 {0, (void *) 0}
5969 };
5970
5971 /* This works around a problem in FreeBSD linker */
5972 #ifdef FREEBSD_WORKAROUND
5973 static const void *lt_preloaded_setup() {
5974 return lt__PROGRAM__LTX_preloaded_symbols;
5975 }
5976 #endif
5977
5978 #ifdef __cplusplus
5979 }
5980 #endif
5981 _LT_EOF
5982 # Now try linking the two files.
5983 mv conftest.$ac_objext conftstm.$ac_objext
5984 lt_globsym_save_LIBS=$LIBS
5985 lt_globsym_save_CFLAGS=$CFLAGS
5986 LIBS="conftstm.$ac_objext"
5987 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5989 (eval $ac_link) 2>&5
5990 ac_status=$?
5991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5992 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5993 pipe_works=yes
5994 fi
5995 LIBS=$lt_globsym_save_LIBS
5996 CFLAGS=$lt_globsym_save_CFLAGS
5997 else
5998 echo "cannot find nm_test_func in $nlist" >&5
5999 fi
6000 else
6001 echo "cannot find nm_test_var in $nlist" >&5
6002 fi
6003 else
6004 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6005 fi
6006 else
6007 echo "$progname: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6009 fi
6010 rm -rf conftest* conftst*
6011
6012 # Do not use the global_symbol_pipe unless it works.
6013 if test "$pipe_works" = yes; then
6014 break
6015 else
6016 lt_cv_sys_global_symbol_pipe=
6017 fi
6018 done
6019
6020 fi
6021
6022 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6023 lt_cv_sys_global_symbol_to_cdecl=
6024 fi
6025 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6027 $as_echo "failed" >&6; }
6028 else
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6030 $as_echo "ok" >&6; }
6031 fi
6032
6033 # Response file support.
6034 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6035 nm_file_list_spec='@'
6036 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6037 nm_file_list_spec='@'
6038 fi
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6067 $as_echo_n "checking for sysroot... " >&6; }
6068
6069 # Check whether --with-sysroot was given.
6070 if test "${with_sysroot+set}" = set; then :
6071 withval=$with_sysroot;
6072 else
6073 with_sysroot=no
6074 fi
6075
6076
6077 lt_sysroot=
6078 case ${with_sysroot} in #(
6079 yes)
6080 if test "$GCC" = yes; then
6081 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6082 fi
6083 ;; #(
6084 /*)
6085 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6086 ;; #(
6087 no|'')
6088 ;; #(
6089 *)
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6091 $as_echo "${with_sysroot}" >&6; }
6092 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6093 ;;
6094 esac
6095
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6097 $as_echo "${lt_sysroot:-no}" >&6; }
6098
6099
6100
6101
6102
6103 # Check whether --enable-libtool-lock was given.
6104 if test "${enable_libtool_lock+set}" = set; then :
6105 enableval=$enable_libtool_lock;
6106 fi
6107
6108 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6109
6110 # Some flags need to be propagated to the compiler or linker for good
6111 # libtool support.
6112 case $host in
6113 ia64-*-hpux*)
6114 # Find out which ABI we are using.
6115 echo 'int i;' > conftest.$ac_ext
6116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6117 (eval $ac_compile) 2>&5
6118 ac_status=$?
6119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120 test $ac_status = 0; }; then
6121 case `/usr/bin/file conftest.$ac_objext` in
6122 *ELF-32*)
6123 HPUX_IA64_MODE="32"
6124 ;;
6125 *ELF-64*)
6126 HPUX_IA64_MODE="64"
6127 ;;
6128 esac
6129 fi
6130 rm -rf conftest*
6131 ;;
6132 *-*-irix6*)
6133 # Find out which ABI we are using.
6134 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6136 (eval $ac_compile) 2>&5
6137 ac_status=$?
6138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6139 test $ac_status = 0; }; then
6140 if test "$lt_cv_prog_gnu_ld" = yes; then
6141 case `/usr/bin/file conftest.$ac_objext` in
6142 *32-bit*)
6143 LD="${LD-ld} -melf32bsmip"
6144 ;;
6145 *N32*)
6146 LD="${LD-ld} -melf32bmipn32"
6147 ;;
6148 *64-bit*)
6149 LD="${LD-ld} -melf64bmip"
6150 ;;
6151 esac
6152 else
6153 case `/usr/bin/file conftest.$ac_objext` in
6154 *32-bit*)
6155 LD="${LD-ld} -32"
6156 ;;
6157 *N32*)
6158 LD="${LD-ld} -n32"
6159 ;;
6160 *64-bit*)
6161 LD="${LD-ld} -64"
6162 ;;
6163 esac
6164 fi
6165 fi
6166 rm -rf conftest*
6167 ;;
6168
6169 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6170 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6171 # Find out which ABI we are using.
6172 echo 'int i;' > conftest.$ac_ext
6173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6174 (eval $ac_compile) 2>&5
6175 ac_status=$?
6176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177 test $ac_status = 0; }; then
6178 case `/usr/bin/file conftest.o` in
6179 *32-bit*)
6180 case $host in
6181 x86_64-*kfreebsd*-gnu)
6182 LD="${LD-ld} -m elf_i386_fbsd"
6183 ;;
6184 x86_64-*linux*)
6185 LD="${LD-ld} -m elf_i386"
6186 ;;
6187 ppc64-*linux*|powerpc64-*linux*)
6188 LD="${LD-ld} -m elf32ppclinux"
6189 ;;
6190 s390x-*linux*)
6191 LD="${LD-ld} -m elf_s390"
6192 ;;
6193 sparc64-*linux*)
6194 LD="${LD-ld} -m elf32_sparc"
6195 ;;
6196 esac
6197 ;;
6198 *64-bit*)
6199 case $host in
6200 x86_64-*kfreebsd*-gnu)
6201 LD="${LD-ld} -m elf_x86_64_fbsd"
6202 ;;
6203 x86_64-*linux*)
6204 LD="${LD-ld} -m elf_x86_64"
6205 ;;
6206 ppc*-*linux*|powerpc*-*linux*)
6207 LD="${LD-ld} -m elf64ppc"
6208 ;;
6209 s390*-*linux*|s390*-*tpf*)
6210 LD="${LD-ld} -m elf64_s390"
6211 ;;
6212 sparc*-*linux*)
6213 LD="${LD-ld} -m elf64_sparc"
6214 ;;
6215 esac
6216 ;;
6217 esac
6218 fi
6219 rm -rf conftest*
6220 ;;
6221
6222 *-*-sco3.2v5*)
6223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6224 SAVE_CFLAGS="$CFLAGS"
6225 CFLAGS="$CFLAGS -belf"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6227 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6228 if ${lt_cv_cc_needs_belf+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 ac_ext=c
6232 ac_cpp='$CPP $CPPFLAGS'
6233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6236
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239
6240 int
6241 main ()
6242 {
6243
6244 ;
6245 return 0;
6246 }
6247 _ACEOF
6248 if ac_fn_c_try_link "$LINENO"; then :
6249 lt_cv_cc_needs_belf=yes
6250 else
6251 lt_cv_cc_needs_belf=no
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6255 ac_ext=c
6256 ac_cpp='$CPP $CPPFLAGS'
6257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6260
6261 fi
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6263 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6264 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6265 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6266 CFLAGS="$SAVE_CFLAGS"
6267 fi
6268 ;;
6269 sparc*-*solaris*)
6270 # Find out which ABI we are using.
6271 echo 'int i;' > conftest.$ac_ext
6272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6273 (eval $ac_compile) 2>&5
6274 ac_status=$?
6275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276 test $ac_status = 0; }; then
6277 case `/usr/bin/file conftest.o` in
6278 *64-bit*)
6279 case $lt_cv_prog_gnu_ld in
6280 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6281 *)
6282 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6283 LD="${LD-ld} -64"
6284 fi
6285 ;;
6286 esac
6287 ;;
6288 esac
6289 fi
6290 rm -rf conftest*
6291 ;;
6292 esac
6293
6294 need_locks="$enable_libtool_lock"
6295
6296 if test -n "$ac_tool_prefix"; then
6297 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6298 set dummy ${ac_tool_prefix}mt; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 if test -n "$MANIFEST_TOOL"; then
6305 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6325 if test -n "$MANIFEST_TOOL"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6327 $as_echo "$MANIFEST_TOOL" >&6; }
6328 else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333
6334 fi
6335 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6336 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6337 # Extract the first word of "mt", so it can be a program name with args.
6338 set dummy mt; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$ac_ct_MANIFEST_TOOL"; then
6345 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6365 if test -n "$ac_ct_MANIFEST_TOOL"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6367 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6374 MANIFEST_TOOL=":"
6375 else
6376 case $cross_compiling:$ac_tool_warned in
6377 yes:)
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6381 esac
6382 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6383 fi
6384 else
6385 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6386 fi
6387
6388 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6390 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6391 if ${lt_cv_path_mainfest_tool+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 lt_cv_path_mainfest_tool=no
6395 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6396 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6397 cat conftest.err >&5
6398 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6399 lt_cv_path_mainfest_tool=yes
6400 fi
6401 rm -f conftest*
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6404 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6405 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6406 MANIFEST_TOOL=:
6407 fi
6408
6409
6410
6411
6412
6413
6414 case $host_os in
6415 rhapsody* | darwin*)
6416 if test -n "$ac_tool_prefix"; then
6417 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6418 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$DSYMUTIL"; then
6425 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6445 if test -n "$DSYMUTIL"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6447 $as_echo "$DSYMUTIL" >&6; }
6448 else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453
6454 fi
6455 if test -z "$ac_cv_prog_DSYMUTIL"; then
6456 ac_ct_DSYMUTIL=$DSYMUTIL
6457 # Extract the first word of "dsymutil", so it can be a program name with args.
6458 set dummy dsymutil; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$ac_ct_DSYMUTIL"; then
6465 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6485 if test -n "$ac_ct_DSYMUTIL"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6487 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493 if test "x$ac_ct_DSYMUTIL" = x; then
6494 DSYMUTIL=":"
6495 else
6496 case $cross_compiling:$ac_tool_warned in
6497 yes:)
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6500 ac_tool_warned=yes ;;
6501 esac
6502 DSYMUTIL=$ac_ct_DSYMUTIL
6503 fi
6504 else
6505 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6506 fi
6507
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_NMEDIT+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -n "$NMEDIT"; then
6517 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 NMEDIT=$ac_cv_prog_NMEDIT
6537 if test -n "$NMEDIT"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6539 $as_echo "$NMEDIT" >&6; }
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545
6546 fi
6547 if test -z "$ac_cv_prog_NMEDIT"; then
6548 ac_ct_NMEDIT=$NMEDIT
6549 # Extract the first word of "nmedit", so it can be a program name with args.
6550 set dummy nmedit; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 if test -n "$ac_ct_NMEDIT"; then
6557 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6577 if test -n "$ac_ct_NMEDIT"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6579 $as_echo "$ac_ct_NMEDIT" >&6; }
6580 else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584
6585 if test "x$ac_ct_NMEDIT" = x; then
6586 NMEDIT=":"
6587 else
6588 case $cross_compiling:$ac_tool_warned in
6589 yes:)
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592 ac_tool_warned=yes ;;
6593 esac
6594 NMEDIT=$ac_ct_NMEDIT
6595 fi
6596 else
6597 NMEDIT="$ac_cv_prog_NMEDIT"
6598 fi
6599
6600 if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_LIPO+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$LIPO"; then
6609 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 LIPO=$ac_cv_prog_LIPO
6629 if test -n "$LIPO"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6631 $as_echo "$LIPO" >&6; }
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637
6638 fi
6639 if test -z "$ac_cv_prog_LIPO"; then
6640 ac_ct_LIPO=$LIPO
6641 # Extract the first word of "lipo", so it can be a program name with args.
6642 set dummy lipo; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6646 $as_echo_n "(cached) " >&6
6647 else
6648 if test -n "$ac_ct_LIPO"; then
6649 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_prog_ac_ct_LIPO="lipo"
6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6669 if test -n "$ac_ct_LIPO"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6671 $as_echo "$ac_ct_LIPO" >&6; }
6672 else
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6675 fi
6676
6677 if test "x$ac_ct_LIPO" = x; then
6678 LIPO=":"
6679 else
6680 case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6685 esac
6686 LIPO=$ac_ct_LIPO
6687 fi
6688 else
6689 LIPO="$ac_cv_prog_LIPO"
6690 fi
6691
6692 if test -n "$ac_tool_prefix"; then
6693 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}otool; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_OTOOL+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$OTOOL"; then
6701 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 OTOOL=$ac_cv_prog_OTOOL
6721 if test -n "$OTOOL"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6723 $as_echo "$OTOOL" >&6; }
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729
6730 fi
6731 if test -z "$ac_cv_prog_OTOOL"; then
6732 ac_ct_OTOOL=$OTOOL
6733 # Extract the first word of "otool", so it can be a program name with args.
6734 set dummy otool; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 if test -n "$ac_ct_OTOOL"; then
6741 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_ac_ct_OTOOL="otool"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754 done
6755 done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6761 if test -n "$ac_ct_OTOOL"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6763 $as_echo "$ac_ct_OTOOL" >&6; }
6764 else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768
6769 if test "x$ac_ct_OTOOL" = x; then
6770 OTOOL=":"
6771 else
6772 case $cross_compiling:$ac_tool_warned in
6773 yes:)
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776 ac_tool_warned=yes ;;
6777 esac
6778 OTOOL=$ac_ct_OTOOL
6779 fi
6780 else
6781 OTOOL="$ac_cv_prog_OTOOL"
6782 fi
6783
6784 if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_OTOOL64+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 if test -n "$OTOOL64"; then
6793 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 OTOOL64=$ac_cv_prog_OTOOL64
6813 if test -n "$OTOOL64"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6815 $as_echo "$OTOOL64" >&6; }
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821
6822 fi
6823 if test -z "$ac_cv_prog_OTOOL64"; then
6824 ac_ct_OTOOL64=$OTOOL64
6825 # Extract the first word of "otool64", so it can be a program name with args.
6826 set dummy otool64; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 if test -n "$ac_ct_OTOOL64"; then
6833 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_prog_ac_ct_OTOOL64="otool64"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6853 if test -n "$ac_ct_OTOOL64"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6855 $as_echo "$ac_ct_OTOOL64" >&6; }
6856 else
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861 if test "x$ac_ct_OTOOL64" = x; then
6862 OTOOL64=":"
6863 else
6864 case $cross_compiling:$ac_tool_warned in
6865 yes:)
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868 ac_tool_warned=yes ;;
6869 esac
6870 OTOOL64=$ac_ct_OTOOL64
6871 fi
6872 else
6873 OTOOL64="$ac_cv_prog_OTOOL64"
6874 fi
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6903 $as_echo_n "checking for -single_module linker flag... " >&6; }
6904 if ${lt_cv_apple_cc_single_mod+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 lt_cv_apple_cc_single_mod=no
6908 if test -z "${LT_MULTI_MODULE}"; then
6909 # By default we will add the -single_module flag. You can override
6910 # by either setting the environment variable LT_MULTI_MODULE
6911 # non-empty at configure time, or by adding -multi_module to the
6912 # link flags.
6913 rm -rf libconftest.dylib*
6914 echo "int foo(void){return 1;}" > conftest.c
6915 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6916 -dynamiclib -Wl,-single_module conftest.c" >&5
6917 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6918 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6919 _lt_result=$?
6920 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6921 lt_cv_apple_cc_single_mod=yes
6922 else
6923 cat conftest.err >&5
6924 fi
6925 rm -rf libconftest.dylib*
6926 rm -f conftest.*
6927 fi
6928 fi
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6930 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6932 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6933 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 lt_cv_ld_exported_symbols_list=no
6937 save_LDFLAGS=$LDFLAGS
6938 echo "_main" > conftest.sym
6939 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6942
6943 int
6944 main ()
6945 {
6946
6947 ;
6948 return 0;
6949 }
6950 _ACEOF
6951 if ac_fn_c_try_link "$LINENO"; then :
6952 lt_cv_ld_exported_symbols_list=yes
6953 else
6954 lt_cv_ld_exported_symbols_list=no
6955 fi
6956 rm -f core conftest.err conftest.$ac_objext \
6957 conftest$ac_exeext conftest.$ac_ext
6958 LDFLAGS="$save_LDFLAGS"
6959
6960 fi
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6962 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6964 $as_echo_n "checking for -force_load linker flag... " >&6; }
6965 if ${lt_cv_ld_force_load+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 lt_cv_ld_force_load=no
6969 cat > conftest.c << _LT_EOF
6970 int forced_loaded() { return 2;}
6971 _LT_EOF
6972 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6973 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6974 echo "$AR cru libconftest.a conftest.o" >&5
6975 $AR cru libconftest.a conftest.o 2>&5
6976 echo "$RANLIB libconftest.a" >&5
6977 $RANLIB libconftest.a 2>&5
6978 cat > conftest.c << _LT_EOF
6979 int main() { return 0;}
6980 _LT_EOF
6981 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6982 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6983 _lt_result=$?
6984 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6985 lt_cv_ld_force_load=yes
6986 else
6987 cat conftest.err >&5
6988 fi
6989 rm -f conftest.err libconftest.a conftest conftest.c
6990 rm -rf conftest.dSYM
6991
6992 fi
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6994 $as_echo "$lt_cv_ld_force_load" >&6; }
6995 case $host_os in
6996 rhapsody* | darwin1.[012])
6997 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6998 darwin1.*)
6999 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7000 darwin*) # darwin 5.x on
7001 # if running on 10.5 or later, the deployment target defaults
7002 # to the OS version, if on x86, and 10.4, the deployment
7003 # target defaults to 10.4. Don't you love it?
7004 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7005 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7006 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7007 10.[012]*)
7008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7009 10.*)
7010 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7011 esac
7012 ;;
7013 esac
7014 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7015 _lt_dar_single_mod='$single_module'
7016 fi
7017 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7018 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7019 else
7020 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7021 fi
7022 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7023 _lt_dsymutil='~$DSYMUTIL $lib || :'
7024 else
7025 _lt_dsymutil=
7026 fi
7027 ;;
7028 esac
7029
7030 ac_ext=c
7031 ac_cpp='$CPP $CPPFLAGS'
7032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7036 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7037 # On Suns, sometimes $CPP names a directory.
7038 if test -n "$CPP" && test -d "$CPP"; then
7039 CPP=
7040 fi
7041 if test -z "$CPP"; then
7042 if ${ac_cv_prog_CPP+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 # Double quotes because CPP needs to be expanded
7046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7047 do
7048 ac_preproc_ok=false
7049 for ac_c_preproc_warn_flag in '' yes
7050 do
7051 # Use a header file that comes with gcc, so configuring glibc
7052 # with a fresh cross-compiler works.
7053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7054 # <limits.h> exists even on freestanding compilers.
7055 # On the NeXT, cc -E runs the code through the compiler's parser,
7056 # not just through cpp. "Syntax error" is here to catch this case.
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059 #ifdef __STDC__
7060 # include <limits.h>
7061 #else
7062 # include <assert.h>
7063 #endif
7064 Syntax error
7065 _ACEOF
7066 if ac_fn_c_try_cpp "$LINENO"; then :
7067
7068 else
7069 # Broken: fails on valid input.
7070 continue
7071 fi
7072 rm -f conftest.err conftest.i conftest.$ac_ext
7073
7074 # OK, works on sane cases. Now check whether nonexistent headers
7075 # can be detected and how.
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7078 #include <ac_nonexistent.h>
7079 _ACEOF
7080 if ac_fn_c_try_cpp "$LINENO"; then :
7081 # Broken: success on invalid input.
7082 continue
7083 else
7084 # Passes both tests.
7085 ac_preproc_ok=:
7086 break
7087 fi
7088 rm -f conftest.err conftest.i conftest.$ac_ext
7089
7090 done
7091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7092 rm -f conftest.i conftest.err conftest.$ac_ext
7093 if $ac_preproc_ok; then :
7094 break
7095 fi
7096
7097 done
7098 ac_cv_prog_CPP=$CPP
7099
7100 fi
7101 CPP=$ac_cv_prog_CPP
7102 else
7103 ac_cv_prog_CPP=$CPP
7104 fi
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7106 $as_echo "$CPP" >&6; }
7107 ac_preproc_ok=false
7108 for ac_c_preproc_warn_flag in '' yes
7109 do
7110 # Use a header file that comes with gcc, so configuring glibc
7111 # with a fresh cross-compiler works.
7112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7113 # <limits.h> exists even on freestanding compilers.
7114 # On the NeXT, cc -E runs the code through the compiler's parser,
7115 # not just through cpp. "Syntax error" is here to catch this case.
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7118 #ifdef __STDC__
7119 # include <limits.h>
7120 #else
7121 # include <assert.h>
7122 #endif
7123 Syntax error
7124 _ACEOF
7125 if ac_fn_c_try_cpp "$LINENO"; then :
7126
7127 else
7128 # Broken: fails on valid input.
7129 continue
7130 fi
7131 rm -f conftest.err conftest.i conftest.$ac_ext
7132
7133 # OK, works on sane cases. Now check whether nonexistent headers
7134 # can be detected and how.
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 #include <ac_nonexistent.h>
7138 _ACEOF
7139 if ac_fn_c_try_cpp "$LINENO"; then :
7140 # Broken: success on invalid input.
7141 continue
7142 else
7143 # Passes both tests.
7144 ac_preproc_ok=:
7145 break
7146 fi
7147 rm -f conftest.err conftest.i conftest.$ac_ext
7148
7149 done
7150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7151 rm -f conftest.i conftest.err conftest.$ac_ext
7152 if $ac_preproc_ok; then :
7153
7154 else
7155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7157 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7158 See \`config.log' for more details" "$LINENO" 5; }
7159 fi
7160
7161 ac_ext=c
7162 ac_cpp='$CPP $CPPFLAGS'
7163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7166
7167
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7169 $as_echo_n "checking for ANSI C header files... " >&6; }
7170 if ${ac_cv_header_stdc+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 #include <stdlib.h>
7176 #include <stdarg.h>
7177 #include <string.h>
7178 #include <float.h>
7179
7180 int
7181 main ()
7182 {
7183
7184 ;
7185 return 0;
7186 }
7187 _ACEOF
7188 if ac_fn_c_try_compile "$LINENO"; then :
7189 ac_cv_header_stdc=yes
7190 else
7191 ac_cv_header_stdc=no
7192 fi
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194
7195 if test $ac_cv_header_stdc = yes; then
7196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #include <string.h>
7200
7201 _ACEOF
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "memchr" >/dev/null 2>&1; then :
7204
7205 else
7206 ac_cv_header_stdc=no
7207 fi
7208 rm -f conftest*
7209
7210 fi
7211
7212 if test $ac_cv_header_stdc = yes; then
7213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 #include <stdlib.h>
7217
7218 _ACEOF
7219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7220 $EGREP "free" >/dev/null 2>&1; then :
7221
7222 else
7223 ac_cv_header_stdc=no
7224 fi
7225 rm -f conftest*
7226
7227 fi
7228
7229 if test $ac_cv_header_stdc = yes; then
7230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7231 if test "$cross_compiling" = yes; then :
7232 :
7233 else
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 #include <ctype.h>
7237 #include <stdlib.h>
7238 #if ((' ' & 0x0FF) == 0x020)
7239 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7240 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7241 #else
7242 # define ISLOWER(c) \
7243 (('a' <= (c) && (c) <= 'i') \
7244 || ('j' <= (c) && (c) <= 'r') \
7245 || ('s' <= (c) && (c) <= 'z'))
7246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7247 #endif
7248
7249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7250 int
7251 main ()
7252 {
7253 int i;
7254 for (i = 0; i < 256; i++)
7255 if (XOR (islower (i), ISLOWER (i))
7256 || toupper (i) != TOUPPER (i))
7257 return 2;
7258 return 0;
7259 }
7260 _ACEOF
7261 if ac_fn_c_try_run "$LINENO"; then :
7262
7263 else
7264 ac_cv_header_stdc=no
7265 fi
7266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7267 conftest.$ac_objext conftest.beam conftest.$ac_ext
7268 fi
7269
7270 fi
7271 fi
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7273 $as_echo "$ac_cv_header_stdc" >&6; }
7274 if test $ac_cv_header_stdc = yes; then
7275
7276 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7277
7278 fi
7279
7280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7282 inttypes.h stdint.h unistd.h
7283 do :
7284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7285 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7286 "
7287 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7288 cat >>confdefs.h <<_ACEOF
7289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7290 _ACEOF
7291
7292 fi
7293
7294 done
7295
7296
7297 for ac_header in dlfcn.h
7298 do :
7299 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7300 "
7301 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7302 cat >>confdefs.h <<_ACEOF
7303 #define HAVE_DLFCN_H 1
7304 _ACEOF
7305
7306 fi
7307
7308 done
7309
7310
7311
7312
7313
7314 # Set options
7315
7316
7317
7318 enable_dlopen=no
7319
7320
7321 enable_win32_dll=no
7322
7323
7324 # Check whether --enable-shared was given.
7325 if test "${enable_shared+set}" = set; then :
7326 enableval=$enable_shared; p=${PACKAGE-default}
7327 case $enableval in
7328 yes) enable_shared=yes ;;
7329 no) enable_shared=no ;;
7330 *)
7331 enable_shared=no
7332 # Look at the argument we got. We use all the common list separators.
7333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7334 for pkg in $enableval; do
7335 IFS="$lt_save_ifs"
7336 if test "X$pkg" = "X$p"; then
7337 enable_shared=yes
7338 fi
7339 done
7340 IFS="$lt_save_ifs"
7341 ;;
7342 esac
7343 else
7344 enable_shared=yes
7345 fi
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357 # Check whether --with-pic was given.
7358 if test "${with_pic+set}" = set; then :
7359 withval=$with_pic; pic_mode="$withval"
7360 else
7361 pic_mode=default
7362 fi
7363
7364
7365 test -z "$pic_mode" && pic_mode=default
7366
7367
7368
7369
7370
7371
7372
7373 # Check whether --enable-fast-install was given.
7374 if test "${enable_fast_install+set}" = set; then :
7375 enableval=$enable_fast_install; p=${PACKAGE-default}
7376 case $enableval in
7377 yes) enable_fast_install=yes ;;
7378 no) enable_fast_install=no ;;
7379 *)
7380 enable_fast_install=no
7381 # Look at the argument we got. We use all the common list separators.
7382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7383 for pkg in $enableval; do
7384 IFS="$lt_save_ifs"
7385 if test "X$pkg" = "X$p"; then
7386 enable_fast_install=yes
7387 fi
7388 done
7389 IFS="$lt_save_ifs"
7390 ;;
7391 esac
7392 else
7393 enable_fast_install=yes
7394 fi
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406 # This can be used to rebuild libtool when needed
7407 LIBTOOL_DEPS="$ltmain"
7408
7409 # Always use our own libtool.
7410 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437 test -z "$LN_S" && LN_S="ln -s"
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452 if test -n "${ZSH_VERSION+set}" ; then
7453 setopt NO_GLOB_SUBST
7454 fi
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7457 $as_echo_n "checking for objdir... " >&6; }
7458 if ${lt_cv_objdir+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 rm -f .libs 2>/dev/null
7462 mkdir .libs 2>/dev/null
7463 if test -d .libs; then
7464 lt_cv_objdir=.libs
7465 else
7466 # MS-DOS does not allow filenames that begin with a dot.
7467 lt_cv_objdir=_libs
7468 fi
7469 rmdir .libs 2>/dev/null
7470 fi
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7472 $as_echo "$lt_cv_objdir" >&6; }
7473 objdir=$lt_cv_objdir
7474
7475
7476
7477
7478
7479 cat >>confdefs.h <<_ACEOF
7480 #define LT_OBJDIR "$lt_cv_objdir/"
7481 _ACEOF
7482
7483
7484
7485
7486 case $host_os in
7487 aix3*)
7488 # AIX sometimes has problems with the GCC collect2 program. For some
7489 # reason, if we set the COLLECT_NAMES environment variable, the problems
7490 # vanish in a puff of smoke.
7491 if test "X${COLLECT_NAMES+set}" != Xset; then
7492 COLLECT_NAMES=
7493 export COLLECT_NAMES
7494 fi
7495 ;;
7496 esac
7497
7498 # Global variables:
7499 ofile=libtool
7500 can_build_shared=yes
7501
7502 # All known linkers require a `.a' archive for static linking (except MSVC,
7503 # which needs '.lib').
7504 libext=a
7505
7506 with_gnu_ld="$lt_cv_prog_gnu_ld"
7507
7508 old_CC="$CC"
7509 old_CFLAGS="$CFLAGS"
7510
7511 # Set sane defaults for various variables
7512 test -z "$CC" && CC=cc
7513 test -z "$LTCC" && LTCC=$CC
7514 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7515 test -z "$LD" && LD=ld
7516 test -z "$ac_objext" && ac_objext=o
7517
7518 for cc_temp in $compiler""; do
7519 case $cc_temp in
7520 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7521 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7522 \-*) ;;
7523 *) break;;
7524 esac
7525 done
7526 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7527
7528
7529 # Only perform the check for file, if the check method requires it
7530 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7531 case $deplibs_check_method in
7532 file_magic*)
7533 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7535 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7536 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 case $MAGIC_CMD in
7540 [\\/*] | ?:[\\/]*)
7541 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7542 ;;
7543 *)
7544 lt_save_MAGIC_CMD="$MAGIC_CMD"
7545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7546 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7547 for ac_dir in $ac_dummy; do
7548 IFS="$lt_save_ifs"
7549 test -z "$ac_dir" && ac_dir=.
7550 if test -f $ac_dir/${ac_tool_prefix}file; then
7551 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7552 if test -n "$file_magic_test_file"; then
7553 case $deplibs_check_method in
7554 "file_magic "*)
7555 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7557 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7558 $EGREP "$file_magic_regex" > /dev/null; then
7559 :
7560 else
7561 cat <<_LT_EOF 1>&2
7562
7563 *** Warning: the command libtool uses to detect shared libraries,
7564 *** $file_magic_cmd, produces output that libtool cannot recognize.
7565 *** The result is that libtool may fail to recognize shared libraries
7566 *** as such. This will affect the creation of libtool libraries that
7567 *** depend on shared libraries, but programs linked with such libtool
7568 *** libraries will work regardless of this problem. Nevertheless, you
7569 *** may want to report the problem to your system manager and/or to
7570 *** bug-libtool@gnu.org
7571
7572 _LT_EOF
7573 fi ;;
7574 esac
7575 fi
7576 break
7577 fi
7578 done
7579 IFS="$lt_save_ifs"
7580 MAGIC_CMD="$lt_save_MAGIC_CMD"
7581 ;;
7582 esac
7583 fi
7584
7585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7586 if test -n "$MAGIC_CMD"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7588 $as_echo "$MAGIC_CMD" >&6; }
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7592 fi
7593
7594
7595
7596
7597
7598 if test -z "$lt_cv_path_MAGIC_CMD"; then
7599 if test -n "$ac_tool_prefix"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7601 $as_echo_n "checking for file... " >&6; }
7602 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 case $MAGIC_CMD in
7606 [\\/*] | ?:[\\/]*)
7607 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7608 ;;
7609 *)
7610 lt_save_MAGIC_CMD="$MAGIC_CMD"
7611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7612 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7613 for ac_dir in $ac_dummy; do
7614 IFS="$lt_save_ifs"
7615 test -z "$ac_dir" && ac_dir=.
7616 if test -f $ac_dir/file; then
7617 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7618 if test -n "$file_magic_test_file"; then
7619 case $deplibs_check_method in
7620 "file_magic "*)
7621 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7622 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7623 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7624 $EGREP "$file_magic_regex" > /dev/null; then
7625 :
7626 else
7627 cat <<_LT_EOF 1>&2
7628
7629 *** Warning: the command libtool uses to detect shared libraries,
7630 *** $file_magic_cmd, produces output that libtool cannot recognize.
7631 *** The result is that libtool may fail to recognize shared libraries
7632 *** as such. This will affect the creation of libtool libraries that
7633 *** depend on shared libraries, but programs linked with such libtool
7634 *** libraries will work regardless of this problem. Nevertheless, you
7635 *** may want to report the problem to your system manager and/or to
7636 *** bug-libtool@gnu.org
7637
7638 _LT_EOF
7639 fi ;;
7640 esac
7641 fi
7642 break
7643 fi
7644 done
7645 IFS="$lt_save_ifs"
7646 MAGIC_CMD="$lt_save_MAGIC_CMD"
7647 ;;
7648 esac
7649 fi
7650
7651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7652 if test -n "$MAGIC_CMD"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7654 $as_echo "$MAGIC_CMD" >&6; }
7655 else
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7658 fi
7659
7660
7661 else
7662 MAGIC_CMD=:
7663 fi
7664 fi
7665
7666 fi
7667 ;;
7668 esac
7669
7670 # Use C for the default configuration in the libtool script
7671
7672 lt_save_CC="$CC"
7673 ac_ext=c
7674 ac_cpp='$CPP $CPPFLAGS'
7675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7678
7679
7680 # Source file extension for C test sources.
7681 ac_ext=c
7682
7683 # Object file extension for compiled C test sources.
7684 objext=o
7685 objext=$objext
7686
7687 # Code to be used in simple compile tests
7688 lt_simple_compile_test_code="int some_variable = 0;"
7689
7690 # Code to be used in simple link tests
7691 lt_simple_link_test_code='int main(){return(0);}'
7692
7693
7694
7695
7696
7697
7698
7699 # If no C compiler was specified, use CC.
7700 LTCC=${LTCC-"$CC"}
7701
7702 # If no C compiler flags were specified, use CFLAGS.
7703 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7704
7705 # Allow CC to be a program name with arguments.
7706 compiler=$CC
7707
7708 # Save the default compiler, since it gets overwritten when the other
7709 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7710 compiler_DEFAULT=$CC
7711
7712 # save warnings/boilerplate of simple test code
7713 ac_outfile=conftest.$ac_objext
7714 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7715 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7716 _lt_compiler_boilerplate=`cat conftest.err`
7717 $RM conftest*
7718
7719 ac_outfile=conftest.$ac_objext
7720 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7721 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7722 _lt_linker_boilerplate=`cat conftest.err`
7723 $RM -r conftest*
7724
7725
7726 if test -n "$compiler"; then
7727
7728 lt_prog_compiler_no_builtin_flag=
7729
7730 if test "$GCC" = yes; then
7731 case $cc_basename in
7732 nvcc*)
7733 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7734 *)
7735 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7736 esac
7737
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7739 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7740 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 lt_cv_prog_compiler_rtti_exceptions=no
7744 ac_outfile=conftest.$ac_objext
7745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7746 lt_compiler_flag="-fno-rtti -fno-exceptions"
7747 # Insert the option either (1) after the last *FLAGS variable, or
7748 # (2) before a word containing "conftest.", or (3) at the end.
7749 # Note that $ac_compile itself does not contain backslashes and begins
7750 # with a dollar sign (not a hyphen), so the echo should work correctly.
7751 # The option is referenced via a variable to avoid confusing sed.
7752 lt_compile=`echo "$ac_compile" | $SED \
7753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7755 -e 's:$: $lt_compiler_flag:'`
7756 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7757 (eval "$lt_compile" 2>conftest.err)
7758 ac_status=$?
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 if (exit $ac_status) && test -s "$ac_outfile"; then
7762 # The compiler can only warn and ignore the option if not recognized
7763 # So say no if there are warnings other than the usual output.
7764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7766 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7767 lt_cv_prog_compiler_rtti_exceptions=yes
7768 fi
7769 fi
7770 $RM conftest*
7771
7772 fi
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7774 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7775
7776 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7777 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7778 else
7779 :
7780 fi
7781
7782 fi
7783
7784
7785
7786
7787
7788
7789 lt_prog_compiler_wl=
7790 lt_prog_compiler_pic=
7791 lt_prog_compiler_static=
7792
7793
7794 if test "$GCC" = yes; then
7795 lt_prog_compiler_wl='-Wl,'
7796 lt_prog_compiler_static='-static'
7797
7798 case $host_os in
7799 aix*)
7800 # All AIX code is PIC.
7801 if test "$host_cpu" = ia64; then
7802 # AIX 5 now supports IA64 processor
7803 lt_prog_compiler_static='-Bstatic'
7804 fi
7805 ;;
7806
7807 amigaos*)
7808 case $host_cpu in
7809 powerpc)
7810 # see comment about AmigaOS4 .so support
7811 lt_prog_compiler_pic='-fPIC'
7812 ;;
7813 m68k)
7814 # FIXME: we need at least 68020 code to build shared libraries, but
7815 # adding the `-m68020' flag to GCC prevents building anything better,
7816 # like `-m68040'.
7817 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7818 ;;
7819 esac
7820 ;;
7821
7822 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7823 # PIC is the default for these OSes.
7824 ;;
7825
7826 mingw* | cygwin* | pw32* | os2* | cegcc*)
7827 # This hack is so that the source file can tell whether it is being
7828 # built for inclusion in a dll (and should export symbols for example).
7829 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7830 # (--disable-auto-import) libraries
7831 lt_prog_compiler_pic='-DDLL_EXPORT'
7832 ;;
7833
7834 darwin* | rhapsody*)
7835 # PIC is the default on this platform
7836 # Common symbols not allowed in MH_DYLIB files
7837 lt_prog_compiler_pic='-fno-common'
7838 ;;
7839
7840 haiku*)
7841 # PIC is the default for Haiku.
7842 # The "-static" flag exists, but is broken.
7843 lt_prog_compiler_static=
7844 ;;
7845
7846 hpux*)
7847 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7848 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7849 # sets the default TLS model and affects inlining.
7850 case $host_cpu in
7851 hppa*64*)
7852 # +Z the default
7853 ;;
7854 *)
7855 lt_prog_compiler_pic='-fPIC'
7856 ;;
7857 esac
7858 ;;
7859
7860 interix[3-9]*)
7861 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7862 # Instead, we relocate shared libraries at runtime.
7863 ;;
7864
7865 msdosdjgpp*)
7866 # Just because we use GCC doesn't mean we suddenly get shared libraries
7867 # on systems that don't support them.
7868 lt_prog_compiler_can_build_shared=no
7869 enable_shared=no
7870 ;;
7871
7872 *nto* | *qnx*)
7873 # QNX uses GNU C++, but need to define -shared option too, otherwise
7874 # it will coredump.
7875 lt_prog_compiler_pic='-fPIC -shared'
7876 ;;
7877
7878 sysv4*MP*)
7879 if test -d /usr/nec; then
7880 lt_prog_compiler_pic=-Kconform_pic
7881 fi
7882 ;;
7883
7884 *)
7885 lt_prog_compiler_pic='-fPIC'
7886 ;;
7887 esac
7888
7889 case $cc_basename in
7890 nvcc*) # Cuda Compiler Driver 2.2
7891 lt_prog_compiler_wl='-Xlinker '
7892 lt_prog_compiler_pic='-Xcompiler -fPIC'
7893 ;;
7894 esac
7895 else
7896 # PORTME Check for flag to pass linker flags through the system compiler.
7897 case $host_os in
7898 aix*)
7899 lt_prog_compiler_wl='-Wl,'
7900 if test "$host_cpu" = ia64; then
7901 # AIX 5 now supports IA64 processor
7902 lt_prog_compiler_static='-Bstatic'
7903 else
7904 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7905 fi
7906 ;;
7907
7908 mingw* | cygwin* | pw32* | os2* | cegcc*)
7909 # This hack is so that the source file can tell whether it is being
7910 # built for inclusion in a dll (and should export symbols for example).
7911 lt_prog_compiler_pic='-DDLL_EXPORT'
7912 ;;
7913
7914 hpux9* | hpux10* | hpux11*)
7915 lt_prog_compiler_wl='-Wl,'
7916 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7917 # not for PA HP-UX.
7918 case $host_cpu in
7919 hppa*64*|ia64*)
7920 # +Z the default
7921 ;;
7922 *)
7923 lt_prog_compiler_pic='+Z'
7924 ;;
7925 esac
7926 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7927 lt_prog_compiler_static='${wl}-a ${wl}archive'
7928 ;;
7929
7930 irix5* | irix6* | nonstopux*)
7931 lt_prog_compiler_wl='-Wl,'
7932 # PIC (with -KPIC) is the default.
7933 lt_prog_compiler_static='-non_shared'
7934 ;;
7935
7936 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7937 case $cc_basename in
7938 # old Intel for x86_64 which still supported -KPIC.
7939 ecc*)
7940 lt_prog_compiler_wl='-Wl,'
7941 lt_prog_compiler_pic='-KPIC'
7942 lt_prog_compiler_static='-static'
7943 ;;
7944 # icc used to be incompatible with GCC.
7945 # ICC 10 doesn't accept -KPIC any more.
7946 icc* | ifort*)
7947 lt_prog_compiler_wl='-Wl,'
7948 lt_prog_compiler_pic='-fPIC'
7949 lt_prog_compiler_static='-static'
7950 ;;
7951 # Lahey Fortran 8.1.
7952 lf95*)
7953 lt_prog_compiler_wl='-Wl,'
7954 lt_prog_compiler_pic='--shared'
7955 lt_prog_compiler_static='--static'
7956 ;;
7957 nagfor*)
7958 # NAG Fortran compiler
7959 lt_prog_compiler_wl='-Wl,-Wl,,'
7960 lt_prog_compiler_pic='-PIC'
7961 lt_prog_compiler_static='-Bstatic'
7962 ;;
7963 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7964 # Portland Group compilers (*not* the Pentium gcc compiler,
7965 # which looks to be a dead project)
7966 lt_prog_compiler_wl='-Wl,'
7967 lt_prog_compiler_pic='-fpic'
7968 lt_prog_compiler_static='-Bstatic'
7969 ;;
7970 ccc*)
7971 lt_prog_compiler_wl='-Wl,'
7972 # All Alpha code is PIC.
7973 lt_prog_compiler_static='-non_shared'
7974 ;;
7975 xl* | bgxl* | bgf* | mpixl*)
7976 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7977 lt_prog_compiler_wl='-Wl,'
7978 lt_prog_compiler_pic='-qpic'
7979 lt_prog_compiler_static='-qstaticlink'
7980 ;;
7981 *)
7982 case `$CC -V 2>&1 | sed 5q` in
7983 *Sun\ F* | *Sun*Fortran*)
7984 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7985 lt_prog_compiler_pic='-KPIC'
7986 lt_prog_compiler_static='-Bstatic'
7987 lt_prog_compiler_wl=''
7988 ;;
7989 *Sun\ C*)
7990 # Sun C 5.9
7991 lt_prog_compiler_pic='-KPIC'
7992 lt_prog_compiler_static='-Bstatic'
7993 lt_prog_compiler_wl='-Wl,'
7994 ;;
7995 esac
7996 ;;
7997 esac
7998 ;;
7999
8000 newsos6)
8001 lt_prog_compiler_pic='-KPIC'
8002 lt_prog_compiler_static='-Bstatic'
8003 ;;
8004
8005 *nto* | *qnx*)
8006 # QNX uses GNU C++, but need to define -shared option too, otherwise
8007 # it will coredump.
8008 lt_prog_compiler_pic='-fPIC -shared'
8009 ;;
8010
8011 osf3* | osf4* | osf5*)
8012 lt_prog_compiler_wl='-Wl,'
8013 # All OSF/1 code is PIC.
8014 lt_prog_compiler_static='-non_shared'
8015 ;;
8016
8017 rdos*)
8018 lt_prog_compiler_static='-non_shared'
8019 ;;
8020
8021 solaris*)
8022 lt_prog_compiler_pic='-KPIC'
8023 lt_prog_compiler_static='-Bstatic'
8024 case $cc_basename in
8025 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8026 lt_prog_compiler_wl='-Qoption ld ';;
8027 *)
8028 lt_prog_compiler_wl='-Wl,';;
8029 esac
8030 ;;
8031
8032 sunos4*)
8033 lt_prog_compiler_wl='-Qoption ld '
8034 lt_prog_compiler_pic='-PIC'
8035 lt_prog_compiler_static='-Bstatic'
8036 ;;
8037
8038 sysv4 | sysv4.2uw2* | sysv4.3*)
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-KPIC'
8041 lt_prog_compiler_static='-Bstatic'
8042 ;;
8043
8044 sysv4*MP*)
8045 if test -d /usr/nec ;then
8046 lt_prog_compiler_pic='-Kconform_pic'
8047 lt_prog_compiler_static='-Bstatic'
8048 fi
8049 ;;
8050
8051 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8052 lt_prog_compiler_wl='-Wl,'
8053 lt_prog_compiler_pic='-KPIC'
8054 lt_prog_compiler_static='-Bstatic'
8055 ;;
8056
8057 unicos*)
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_can_build_shared=no
8060 ;;
8061
8062 uts4*)
8063 lt_prog_compiler_pic='-pic'
8064 lt_prog_compiler_static='-Bstatic'
8065 ;;
8066
8067 *)
8068 lt_prog_compiler_can_build_shared=no
8069 ;;
8070 esac
8071 fi
8072
8073 case $host_os in
8074 # For platforms which do not support PIC, -DPIC is meaningless:
8075 *djgpp*)
8076 lt_prog_compiler_pic=
8077 ;;
8078 *)
8079 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8080 ;;
8081 esac
8082
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8084 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8085 if ${lt_cv_prog_compiler_pic+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8091 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8092 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8093
8094 #
8095 # Check to make sure the PIC flag actually works.
8096 #
8097 if test -n "$lt_prog_compiler_pic"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8099 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8100 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 lt_cv_prog_compiler_pic_works=no
8104 ac_outfile=conftest.$ac_objext
8105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8106 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8107 # Insert the option either (1) after the last *FLAGS variable, or
8108 # (2) before a word containing "conftest.", or (3) at the end.
8109 # Note that $ac_compile itself does not contain backslashes and begins
8110 # with a dollar sign (not a hyphen), so the echo should work correctly.
8111 # The option is referenced via a variable to avoid confusing sed.
8112 lt_compile=`echo "$ac_compile" | $SED \
8113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8115 -e 's:$: $lt_compiler_flag:'`
8116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8117 (eval "$lt_compile" 2>conftest.err)
8118 ac_status=$?
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 if (exit $ac_status) && test -s "$ac_outfile"; then
8122 # The compiler can only warn and ignore the option if not recognized
8123 # So say no if there are warnings other than the usual output.
8124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8127 lt_cv_prog_compiler_pic_works=yes
8128 fi
8129 fi
8130 $RM conftest*
8131
8132 fi
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8134 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8135
8136 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8137 case $lt_prog_compiler_pic in
8138 "" | " "*) ;;
8139 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8140 esac
8141 else
8142 lt_prog_compiler_pic=
8143 lt_prog_compiler_can_build_shared=no
8144 fi
8145
8146 fi
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158 #
8159 # Check to make sure the static flag actually works.
8160 #
8161 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8163 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8164 if ${lt_cv_prog_compiler_static_works+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 lt_cv_prog_compiler_static_works=no
8168 save_LDFLAGS="$LDFLAGS"
8169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8170 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8172 # The linker can only warn and ignore the option if not recognized
8173 # So say no if there are warnings
8174 if test -s conftest.err; then
8175 # Append any errors to the config.log.
8176 cat conftest.err 1>&5
8177 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8179 if diff conftest.exp conftest.er2 >/dev/null; then
8180 lt_cv_prog_compiler_static_works=yes
8181 fi
8182 else
8183 lt_cv_prog_compiler_static_works=yes
8184 fi
8185 fi
8186 $RM -r conftest*
8187 LDFLAGS="$save_LDFLAGS"
8188
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8191 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8192
8193 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8194 :
8195 else
8196 lt_prog_compiler_static=
8197 fi
8198
8199
8200
8201
8202
8203
8204
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8206 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8207 if ${lt_cv_prog_compiler_c_o+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 lt_cv_prog_compiler_c_o=no
8211 $RM -r conftest 2>/dev/null
8212 mkdir conftest
8213 cd conftest
8214 mkdir out
8215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8216
8217 lt_compiler_flag="-o out/conftest2.$ac_objext"
8218 # Insert the option either (1) after the last *FLAGS variable, or
8219 # (2) before a word containing "conftest.", or (3) at the end.
8220 # Note that $ac_compile itself does not contain backslashes and begins
8221 # with a dollar sign (not a hyphen), so the echo should work correctly.
8222 lt_compile=`echo "$ac_compile" | $SED \
8223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8225 -e 's:$: $lt_compiler_flag:'`
8226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8227 (eval "$lt_compile" 2>out/conftest.err)
8228 ac_status=$?
8229 cat out/conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8232 then
8233 # The compiler can only warn and ignore the option if not recognized
8234 # So say no if there are warnings
8235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8238 lt_cv_prog_compiler_c_o=yes
8239 fi
8240 fi
8241 chmod u+w . 2>&5
8242 $RM conftest*
8243 # SGI C++ compiler will create directory out/ii_files/ for
8244 # template instantiation
8245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8246 $RM out/* && rmdir out
8247 cd ..
8248 $RM -r conftest
8249 $RM conftest*
8250
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8253 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8254
8255
8256
8257
8258
8259
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8261 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8262 if ${lt_cv_prog_compiler_c_o+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 lt_cv_prog_compiler_c_o=no
8266 $RM -r conftest 2>/dev/null
8267 mkdir conftest
8268 cd conftest
8269 mkdir out
8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8271
8272 lt_compiler_flag="-o out/conftest2.$ac_objext"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 lt_compile=`echo "$ac_compile" | $SED \
8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280 -e 's:$: $lt_compiler_flag:'`
8281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8282 (eval "$lt_compile" 2>out/conftest.err)
8283 ac_status=$?
8284 cat out/conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8287 then
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings
8290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_c_o=yes
8294 fi
8295 fi
8296 chmod u+w . 2>&5
8297 $RM conftest*
8298 # SGI C++ compiler will create directory out/ii_files/ for
8299 # template instantiation
8300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8301 $RM out/* && rmdir out
8302 cd ..
8303 $RM -r conftest
8304 $RM conftest*
8305
8306 fi
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8308 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8309
8310
8311
8312
8313 hard_links="nottested"
8314 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8315 # do not overwrite the value of need_locks provided by the user
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8317 $as_echo_n "checking if we can lock with hard links... " >&6; }
8318 hard_links=yes
8319 $RM conftest*
8320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8321 touch conftest.a
8322 ln conftest.a conftest.b 2>&5 || hard_links=no
8323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8325 $as_echo "$hard_links" >&6; }
8326 if test "$hard_links" = no; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8328 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8329 need_locks=warn
8330 fi
8331 else
8332 need_locks=no
8333 fi
8334
8335
8336
8337
8338
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8341 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8342
8343 runpath_var=
8344 allow_undefined_flag=
8345 always_export_symbols=no
8346 archive_cmds=
8347 archive_expsym_cmds=
8348 compiler_needs_object=no
8349 enable_shared_with_static_runtimes=no
8350 export_dynamic_flag_spec=
8351 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8352 hardcode_automatic=no
8353 hardcode_direct=no
8354 hardcode_direct_absolute=no
8355 hardcode_libdir_flag_spec=
8356 hardcode_libdir_flag_spec_ld=
8357 hardcode_libdir_separator=
8358 hardcode_minus_L=no
8359 hardcode_shlibpath_var=unsupported
8360 inherit_rpath=no
8361 link_all_deplibs=unknown
8362 module_cmds=
8363 module_expsym_cmds=
8364 old_archive_from_new_cmds=
8365 old_archive_from_expsyms_cmds=
8366 thread_safe_flag_spec=
8367 whole_archive_flag_spec=
8368 # include_expsyms should be a list of space-separated symbols to be *always*
8369 # included in the symbol list
8370 include_expsyms=
8371 # exclude_expsyms can be an extended regexp of symbols to exclude
8372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8374 # as well as any symbol that contains `d'.
8375 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8377 # platforms (ab)use it in PIC code, but their linkers get confused if
8378 # the symbol is explicitly referenced. Since portable code cannot
8379 # rely on this symbol name, it's probably fine to never include it in
8380 # preloaded symbol tables.
8381 # Exclude shared library initialization/finalization symbols.
8382 extract_expsyms_cmds=
8383
8384 case $host_os in
8385 cygwin* | mingw* | pw32* | cegcc*)
8386 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8387 # When not using gcc, we currently assume that we are using
8388 # Microsoft Visual C++.
8389 if test "$GCC" != yes; then
8390 with_gnu_ld=no
8391 fi
8392 ;;
8393 interix*)
8394 # we just hope/assume this is gcc and not c89 (= MSVC++)
8395 with_gnu_ld=yes
8396 ;;
8397 openbsd*)
8398 with_gnu_ld=no
8399 ;;
8400 esac
8401
8402 ld_shlibs=yes
8403
8404 # On some targets, GNU ld is compatible enough with the native linker
8405 # that we're better off using the native interface for both.
8406 lt_use_gnu_ld_interface=no
8407 if test "$with_gnu_ld" = yes; then
8408 case $host_os in
8409 aix*)
8410 # The AIX port of GNU ld has always aspired to compatibility
8411 # with the native linker. However, as the warning in the GNU ld
8412 # block says, versions before 2.19.5* couldn't really create working
8413 # shared libraries, regardless of the interface used.
8414 case `$LD -v 2>&1` in
8415 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8416 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8417 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8418 *)
8419 lt_use_gnu_ld_interface=yes
8420 ;;
8421 esac
8422 ;;
8423 *)
8424 lt_use_gnu_ld_interface=yes
8425 ;;
8426 esac
8427 fi
8428
8429 if test "$lt_use_gnu_ld_interface" = yes; then
8430 # If archive_cmds runs LD, not CC, wlarc should be empty
8431 wlarc='${wl}'
8432
8433 # Set some defaults for GNU ld with shared library support. These
8434 # are reset later if shared libraries are not supported. Putting them
8435 # here allows them to be overridden if necessary.
8436 runpath_var=LD_RUN_PATH
8437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8438 export_dynamic_flag_spec='${wl}--export-dynamic'
8439 # ancient GNU ld didn't support --whole-archive et. al.
8440 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8441 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8442 else
8443 whole_archive_flag_spec=
8444 fi
8445 supports_anon_versioning=no
8446 case `$LD -v 2>&1` in
8447 *GNU\ gold*) supports_anon_versioning=yes ;;
8448 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8449 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8450 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8451 *\ 2.11.*) ;; # other 2.11 versions
8452 *) supports_anon_versioning=yes ;;
8453 esac
8454
8455 # See if GNU ld supports shared libraries.
8456 case $host_os in
8457 aix[3-9]*)
8458 # On AIX/PPC, the GNU linker is very broken
8459 if test "$host_cpu" != ia64; then
8460 ld_shlibs=no
8461 cat <<_LT_EOF 1>&2
8462
8463 *** Warning: the GNU linker, at least up to release 2.19, is reported
8464 *** to be unable to reliably create shared libraries on AIX.
8465 *** Therefore, libtool is disabling shared libraries support. If you
8466 *** really care for shared libraries, you may want to install binutils
8467 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8468 *** You will then need to restart the configuration process.
8469
8470 _LT_EOF
8471 fi
8472 ;;
8473
8474 amigaos*)
8475 case $host_cpu in
8476 powerpc)
8477 # see comment about AmigaOS4 .so support
8478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8479 archive_expsym_cmds=''
8480 ;;
8481 m68k)
8482 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)'
8483 hardcode_libdir_flag_spec='-L$libdir'
8484 hardcode_minus_L=yes
8485 ;;
8486 esac
8487 ;;
8488
8489 beos*)
8490 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8491 allow_undefined_flag=unsupported
8492 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8493 # support --undefined. This deserves some investigation. FIXME
8494 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8495 else
8496 ld_shlibs=no
8497 fi
8498 ;;
8499
8500 cygwin* | mingw* | pw32* | cegcc*)
8501 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8502 # as there is no search path for DLLs.
8503 hardcode_libdir_flag_spec='-L$libdir'
8504 export_dynamic_flag_spec='${wl}--export-all-symbols'
8505 allow_undefined_flag=unsupported
8506 always_export_symbols=no
8507 enable_shared_with_static_runtimes=yes
8508 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'
8509 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8510
8511 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8513 # If the export-symbols file already is a .def file (1st line
8514 # is EXPORTS), use it as is; otherwise, prepend...
8515 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8516 cp $export_symbols $output_objdir/$soname.def;
8517 else
8518 echo EXPORTS > $output_objdir/$soname.def;
8519 cat $export_symbols >> $output_objdir/$soname.def;
8520 fi~
8521 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8522 else
8523 ld_shlibs=no
8524 fi
8525 ;;
8526
8527 haiku*)
8528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8529 link_all_deplibs=yes
8530 ;;
8531
8532 interix[3-9]*)
8533 hardcode_direct=no
8534 hardcode_shlibpath_var=no
8535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8536 export_dynamic_flag_spec='${wl}-E'
8537 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8538 # Instead, shared libraries are loaded at an image base (0x10000000 by
8539 # default) and relocated if they conflict, which is a slow very memory
8540 # consuming and fragmenting process. To avoid this, we pick a random,
8541 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8542 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8543 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8544 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'
8545 ;;
8546
8547 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8548 tmp_diet=no
8549 if test "$host_os" = linux-dietlibc; then
8550 case $cc_basename in
8551 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8552 esac
8553 fi
8554 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8555 && test "$tmp_diet" = no
8556 then
8557 tmp_addflag=' $pic_flag'
8558 tmp_sharedflag='-shared'
8559 case $cc_basename,$host_cpu in
8560 pgcc*) # Portland Group C compiler
8561 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'
8562 tmp_addflag=' $pic_flag'
8563 ;;
8564 pgf77* | pgf90* | pgf95* | pgfortran*)
8565 # Portland Group f77 and f90 compilers
8566 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'
8567 tmp_addflag=' $pic_flag -Mnomain' ;;
8568 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8569 tmp_addflag=' -i_dynamic' ;;
8570 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8571 tmp_addflag=' -i_dynamic -nofor_main' ;;
8572 ifc* | ifort*) # Intel Fortran compiler
8573 tmp_addflag=' -nofor_main' ;;
8574 lf95*) # Lahey Fortran 8.1
8575 whole_archive_flag_spec=
8576 tmp_sharedflag='--shared' ;;
8577 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8578 tmp_sharedflag='-qmkshrobj'
8579 tmp_addflag= ;;
8580 nvcc*) # Cuda Compiler Driver 2.2
8581 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'
8582 compiler_needs_object=yes
8583 ;;
8584 esac
8585 case `$CC -V 2>&1 | sed 5q` in
8586 *Sun\ C*) # Sun C 5.9
8587 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'
8588 compiler_needs_object=yes
8589 tmp_sharedflag='-G' ;;
8590 *Sun\ F*) # Sun Fortran 8.3
8591 tmp_sharedflag='-G' ;;
8592 esac
8593 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594
8595 if test "x$supports_anon_versioning" = xyes; then
8596 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8597 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8598 echo "local: *; };" >> $output_objdir/$libname.ver~
8599 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8600 fi
8601
8602 case $cc_basename in
8603 xlf* | bgf* | bgxlf* | mpixlf*)
8604 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8605 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8606 hardcode_libdir_flag_spec=
8607 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8608 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8609 if test "x$supports_anon_versioning" = xyes; then
8610 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8612 echo "local: *; };" >> $output_objdir/$libname.ver~
8613 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8614 fi
8615 ;;
8616 esac
8617 else
8618 ld_shlibs=no
8619 fi
8620 ;;
8621
8622 netbsd*)
8623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8624 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8625 wlarc=
8626 else
8627 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8628 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8629 fi
8630 ;;
8631
8632 solaris*)
8633 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8634 ld_shlibs=no
8635 cat <<_LT_EOF 1>&2
8636
8637 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8638 *** create shared libraries on Solaris systems. Therefore, libtool
8639 *** is disabling shared libraries support. We urge you to upgrade GNU
8640 *** binutils to release 2.9.1 or newer. Another option is to modify
8641 *** your PATH or compiler configuration so that the native linker is
8642 *** used, and then restart.
8643
8644 _LT_EOF
8645 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8646 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8647 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8648 else
8649 ld_shlibs=no
8650 fi
8651 ;;
8652
8653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8654 case `$LD -v 2>&1` in
8655 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8656 ld_shlibs=no
8657 cat <<_LT_EOF 1>&2
8658
8659 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8660 *** reliably create shared libraries on SCO systems. Therefore, libtool
8661 *** is disabling shared libraries support. We urge you to upgrade GNU
8662 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8663 *** your PATH or compiler configuration so that the native linker is
8664 *** used, and then restart.
8665
8666 _LT_EOF
8667 ;;
8668 *)
8669 # For security reasons, it is highly recommended that you always
8670 # use absolute paths for naming shared libraries, and exclude the
8671 # DT_RUNPATH tag from executables and libraries. But doing so
8672 # requires that you compile everything twice, which is a pain.
8673 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8677 else
8678 ld_shlibs=no
8679 fi
8680 ;;
8681 esac
8682 ;;
8683
8684 sunos4*)
8685 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8686 wlarc=
8687 hardcode_direct=yes
8688 hardcode_shlibpath_var=no
8689 ;;
8690
8691 *)
8692 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8695 else
8696 ld_shlibs=no
8697 fi
8698 ;;
8699 esac
8700
8701 if test "$ld_shlibs" = no; then
8702 runpath_var=
8703 hardcode_libdir_flag_spec=
8704 export_dynamic_flag_spec=
8705 whole_archive_flag_spec=
8706 fi
8707 else
8708 # PORTME fill in a description of your system's linker (not GNU ld)
8709 case $host_os in
8710 aix3*)
8711 allow_undefined_flag=unsupported
8712 always_export_symbols=yes
8713 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'
8714 # Note: this linker hardcodes the directories in LIBPATH if there
8715 # are no directories specified by -L.
8716 hardcode_minus_L=yes
8717 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8718 # Neither direct hardcoding nor static linking is supported with a
8719 # broken collect2.
8720 hardcode_direct=unsupported
8721 fi
8722 ;;
8723
8724 aix[4-9]*)
8725 if test "$host_cpu" = ia64; then
8726 # On IA64, the linker does run time linking by default, so we don't
8727 # have to do anything special.
8728 aix_use_runtimelinking=no
8729 exp_sym_flag='-Bexport'
8730 no_entry_flag=""
8731 else
8732 # If we're using GNU nm, then we don't want the "-C" option.
8733 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8734 # Also, AIX nm treats weak defined symbols like other global
8735 # defined symbols, whereas GNU nm marks them as "W".
8736 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8737 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'
8738 else
8739 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'
8740 fi
8741 aix_use_runtimelinking=no
8742
8743 # Test if we are trying to use run time linking or normal
8744 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8745 # need to do runtime linking.
8746 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8747 for ld_flag in $LDFLAGS; do
8748 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8749 aix_use_runtimelinking=yes
8750 break
8751 fi
8752 done
8753 ;;
8754 esac
8755
8756 exp_sym_flag='-bexport'
8757 no_entry_flag='-bnoentry'
8758 fi
8759
8760 # When large executables or shared objects are built, AIX ld can
8761 # have problems creating the table of contents. If linking a library
8762 # or program results in "error TOC overflow" add -mminimal-toc to
8763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8765
8766 archive_cmds=''
8767 hardcode_direct=yes
8768 hardcode_direct_absolute=yes
8769 hardcode_libdir_separator=':'
8770 link_all_deplibs=yes
8771 file_list_spec='${wl}-f,'
8772
8773 if test "$GCC" = yes; then
8774 case $host_os in aix4.[012]|aix4.[012].*)
8775 # We only want to do this on AIX 4.2 and lower, the check
8776 # below for broken collect2 doesn't work under 4.3+
8777 collect2name=`${CC} -print-prog-name=collect2`
8778 if test -f "$collect2name" &&
8779 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8780 then
8781 # We have reworked collect2
8782 :
8783 else
8784 # We have old collect2
8785 hardcode_direct=unsupported
8786 # It fails to find uninstalled libraries when the uninstalled
8787 # path is not listed in the libpath. Setting hardcode_minus_L
8788 # to unsupported forces relinking
8789 hardcode_minus_L=yes
8790 hardcode_libdir_flag_spec='-L$libdir'
8791 hardcode_libdir_separator=
8792 fi
8793 ;;
8794 esac
8795 shared_flag='-shared'
8796 if test "$aix_use_runtimelinking" = yes; then
8797 shared_flag="$shared_flag "'${wl}-G'
8798 fi
8799 else
8800 # not using gcc
8801 if test "$host_cpu" = ia64; then
8802 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8803 # chokes on -Wl,-G. The following line is correct:
8804 shared_flag='-G'
8805 else
8806 if test "$aix_use_runtimelinking" = yes; then
8807 shared_flag='${wl}-G'
8808 else
8809 shared_flag='${wl}-bM:SRE'
8810 fi
8811 fi
8812 fi
8813
8814 export_dynamic_flag_spec='${wl}-bexpall'
8815 # It seems that -bexpall does not export symbols beginning with
8816 # underscore (_), so it is better to generate a list of symbols to export.
8817 always_export_symbols=yes
8818 if test "$aix_use_runtimelinking" = yes; then
8819 # Warning - without using the other runtime loading flags (-brtl),
8820 # -berok will link without error, but may produce a broken library.
8821 allow_undefined_flag='-berok'
8822 # Determine the default libpath from the value encoded in an
8823 # empty executable.
8824 if test "${lt_cv_aix_libpath+set}" = set; then
8825 aix_libpath=$lt_cv_aix_libpath
8826 else
8827 if ${lt_cv_aix_libpath_+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832
8833 int
8834 main ()
8835 {
8836
8837 ;
8838 return 0;
8839 }
8840 _ACEOF
8841 if ac_fn_c_try_link "$LINENO"; then :
8842
8843 lt_aix_libpath_sed='
8844 /Import File Strings/,/^$/ {
8845 /^0/ {
8846 s/^0 *\([^ ]*\) *$/\1/
8847 p
8848 }
8849 }'
8850 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8851 # Check for a 64-bit object if we didn't find anything.
8852 if test -z "$lt_cv_aix_libpath_"; then
8853 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8854 fi
8855 fi
8856 rm -f core conftest.err conftest.$ac_objext \
8857 conftest$ac_exeext conftest.$ac_ext
8858 if test -z "$lt_cv_aix_libpath_"; then
8859 lt_cv_aix_libpath_="/usr/lib:/lib"
8860 fi
8861
8862 fi
8863
8864 aix_libpath=$lt_cv_aix_libpath_
8865 fi
8866
8867 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8868 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"
8869 else
8870 if test "$host_cpu" = ia64; then
8871 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8872 allow_undefined_flag="-z nodefs"
8873 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"
8874 else
8875 # Determine the default libpath from the value encoded in an
8876 # empty executable.
8877 if test "${lt_cv_aix_libpath+set}" = set; then
8878 aix_libpath=$lt_cv_aix_libpath
8879 else
8880 if ${lt_cv_aix_libpath_+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885
8886 int
8887 main ()
8888 {
8889
8890 ;
8891 return 0;
8892 }
8893 _ACEOF
8894 if ac_fn_c_try_link "$LINENO"; then :
8895
8896 lt_aix_libpath_sed='
8897 /Import File Strings/,/^$/ {
8898 /^0/ {
8899 s/^0 *\([^ ]*\) *$/\1/
8900 p
8901 }
8902 }'
8903 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8904 # Check for a 64-bit object if we didn't find anything.
8905 if test -z "$lt_cv_aix_libpath_"; then
8906 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8907 fi
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext \
8910 conftest$ac_exeext conftest.$ac_ext
8911 if test -z "$lt_cv_aix_libpath_"; then
8912 lt_cv_aix_libpath_="/usr/lib:/lib"
8913 fi
8914
8915 fi
8916
8917 aix_libpath=$lt_cv_aix_libpath_
8918 fi
8919
8920 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8921 # Warning - without using the other run time loading flags,
8922 # -berok will link without error, but may produce a broken library.
8923 no_undefined_flag=' ${wl}-bernotok'
8924 allow_undefined_flag=' ${wl}-berok'
8925 if test "$with_gnu_ld" = yes; then
8926 # We only use this code for GNU lds that support --whole-archive.
8927 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8928 else
8929 # Exported symbols can be pulled into shared objects from archives
8930 whole_archive_flag_spec='$convenience'
8931 fi
8932 archive_cmds_need_lc=yes
8933 # This is similar to how AIX traditionally builds its shared libraries.
8934 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'
8935 fi
8936 fi
8937 ;;
8938
8939 amigaos*)
8940 case $host_cpu in
8941 powerpc)
8942 # see comment about AmigaOS4 .so support
8943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944 archive_expsym_cmds=''
8945 ;;
8946 m68k)
8947 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)'
8948 hardcode_libdir_flag_spec='-L$libdir'
8949 hardcode_minus_L=yes
8950 ;;
8951 esac
8952 ;;
8953
8954 bsdi[45]*)
8955 export_dynamic_flag_spec=-rdynamic
8956 ;;
8957
8958 cygwin* | mingw* | pw32* | cegcc*)
8959 # When not using gcc, we currently assume that we are using
8960 # Microsoft Visual C++.
8961 # hardcode_libdir_flag_spec is actually meaningless, as there is
8962 # no search path for DLLs.
8963 case $cc_basename in
8964 cl*)
8965 # Native MSVC
8966 hardcode_libdir_flag_spec=' '
8967 allow_undefined_flag=unsupported
8968 always_export_symbols=yes
8969 file_list_spec='@'
8970 # Tell ltmain to make .lib files, not .a files.
8971 libext=lib
8972 # Tell ltmain to make .dll files, not .so files.
8973 shrext_cmds=".dll"
8974 # FIXME: Setting linknames here is a bad hack.
8975 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8976 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8977 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8978 else
8979 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8980 fi~
8981 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8982 linknames='
8983 # The linker will not automatically build a static lib if we build a DLL.
8984 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8985 enable_shared_with_static_runtimes=yes
8986 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8987 # Don't use ranlib
8988 old_postinstall_cmds='chmod 644 $oldlib'
8989 postlink_cmds='lt_outputfile="@OUTPUT@"~
8990 lt_tool_outputfile="@TOOL_OUTPUT@"~
8991 case $lt_outputfile in
8992 *.exe|*.EXE) ;;
8993 *)
8994 lt_outputfile="$lt_outputfile.exe"
8995 lt_tool_outputfile="$lt_tool_outputfile.exe"
8996 ;;
8997 esac~
8998 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8999 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9000 $RM "$lt_outputfile.manifest";
9001 fi'
9002 ;;
9003 *)
9004 # Assume MSVC wrapper
9005 hardcode_libdir_flag_spec=' '
9006 allow_undefined_flag=unsupported
9007 # Tell ltmain to make .lib files, not .a files.
9008 libext=lib
9009 # Tell ltmain to make .dll files, not .so files.
9010 shrext_cmds=".dll"
9011 # FIXME: Setting linknames here is a bad hack.
9012 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9013 # The linker will automatically build a .lib file if we build a DLL.
9014 old_archive_from_new_cmds='true'
9015 # FIXME: Should let the user specify the lib program.
9016 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9017 enable_shared_with_static_runtimes=yes
9018 ;;
9019 esac
9020 ;;
9021
9022 darwin* | rhapsody*)
9023
9024
9025 archive_cmds_need_lc=no
9026 hardcode_direct=no
9027 hardcode_automatic=yes
9028 hardcode_shlibpath_var=unsupported
9029 if test "$lt_cv_ld_force_load" = "yes"; then
9030 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\"`'
9031 else
9032 whole_archive_flag_spec=''
9033 fi
9034 link_all_deplibs=yes
9035 allow_undefined_flag="$_lt_dar_allow_undefined"
9036 case $cc_basename in
9037 ifort*) _lt_dar_can_shared=yes ;;
9038 *) _lt_dar_can_shared=$GCC ;;
9039 esac
9040 if test "$_lt_dar_can_shared" = "yes"; then
9041 output_verbose_link_cmd=func_echo_all
9042 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9043 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9044 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}"
9045 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}"
9046
9047 else
9048 ld_shlibs=no
9049 fi
9050
9051 ;;
9052
9053 dgux*)
9054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055 hardcode_libdir_flag_spec='-L$libdir'
9056 hardcode_shlibpath_var=no
9057 ;;
9058
9059 freebsd1*)
9060 ld_shlibs=no
9061 ;;
9062
9063 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9064 # support. Future versions do this automatically, but an explicit c++rt0.o
9065 # does not break anything, and helps significantly (at the cost of a little
9066 # extra space).
9067 freebsd2.2*)
9068 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9069 hardcode_libdir_flag_spec='-R$libdir'
9070 hardcode_direct=yes
9071 hardcode_shlibpath_var=no
9072 ;;
9073
9074 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9075 freebsd2*)
9076 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9077 hardcode_direct=yes
9078 hardcode_minus_L=yes
9079 hardcode_shlibpath_var=no
9080 ;;
9081
9082 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9083 freebsd* | dragonfly*)
9084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9085 hardcode_libdir_flag_spec='-R$libdir'
9086 hardcode_direct=yes
9087 hardcode_shlibpath_var=no
9088 ;;
9089
9090 hpux9*)
9091 if test "$GCC" = yes; then
9092 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'
9093 else
9094 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'
9095 fi
9096 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9097 hardcode_libdir_separator=:
9098 hardcode_direct=yes
9099
9100 # hardcode_minus_L: Not really in the search PATH,
9101 # but as the default location of the library.
9102 hardcode_minus_L=yes
9103 export_dynamic_flag_spec='${wl}-E'
9104 ;;
9105
9106 hpux10*)
9107 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9108 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9109 else
9110 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9111 fi
9112 if test "$with_gnu_ld" = no; then
9113 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9114 hardcode_libdir_flag_spec_ld='+b $libdir'
9115 hardcode_libdir_separator=:
9116 hardcode_direct=yes
9117 hardcode_direct_absolute=yes
9118 export_dynamic_flag_spec='${wl}-E'
9119 # hardcode_minus_L: Not really in the search PATH,
9120 # but as the default location of the library.
9121 hardcode_minus_L=yes
9122 fi
9123 ;;
9124
9125 hpux11*)
9126 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9127 case $host_cpu in
9128 hppa*64*)
9129 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9130 ;;
9131 ia64*)
9132 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9133 ;;
9134 *)
9135 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9136 ;;
9137 esac
9138 else
9139 case $host_cpu in
9140 hppa*64*)
9141 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9142 ;;
9143 ia64*)
9144 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9145 ;;
9146 *)
9147
9148 # Older versions of the 11.00 compiler do not understand -b yet
9149 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9151 $as_echo_n "checking if $CC understands -b... " >&6; }
9152 if ${lt_cv_prog_compiler__b+:} false; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 lt_cv_prog_compiler__b=no
9156 save_LDFLAGS="$LDFLAGS"
9157 LDFLAGS="$LDFLAGS -b"
9158 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9160 # The linker can only warn and ignore the option if not recognized
9161 # So say no if there are warnings
9162 if test -s conftest.err; then
9163 # Append any errors to the config.log.
9164 cat conftest.err 1>&5
9165 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9167 if diff conftest.exp conftest.er2 >/dev/null; then
9168 lt_cv_prog_compiler__b=yes
9169 fi
9170 else
9171 lt_cv_prog_compiler__b=yes
9172 fi
9173 fi
9174 $RM -r conftest*
9175 LDFLAGS="$save_LDFLAGS"
9176
9177 fi
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9179 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9180
9181 if test x"$lt_cv_prog_compiler__b" = xyes; then
9182 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9183 else
9184 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9185 fi
9186
9187 ;;
9188 esac
9189 fi
9190 if test "$with_gnu_ld" = no; then
9191 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9192 hardcode_libdir_separator=:
9193
9194 case $host_cpu in
9195 hppa*64*|ia64*)
9196 hardcode_direct=no
9197 hardcode_shlibpath_var=no
9198 ;;
9199 *)
9200 hardcode_direct=yes
9201 hardcode_direct_absolute=yes
9202 export_dynamic_flag_spec='${wl}-E'
9203
9204 # hardcode_minus_L: Not really in the search PATH,
9205 # but as the default location of the library.
9206 hardcode_minus_L=yes
9207 ;;
9208 esac
9209 fi
9210 ;;
9211
9212 irix5* | irix6* | nonstopux*)
9213 if test "$GCC" = yes; then
9214 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'
9215 # Try to use the -exported_symbol ld option, if it does not
9216 # work, assume that -exports_file does not work either and
9217 # implicitly export all symbols.
9218 # This should be the same for all languages, so no per-tag cache variable.
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9220 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9221 if ${lt_cv_irix_exported_symbol+:} false; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 save_LDFLAGS="$LDFLAGS"
9225 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228 int foo (void) { return 0; }
9229 _ACEOF
9230 if ac_fn_c_try_link "$LINENO"; then :
9231 lt_cv_irix_exported_symbol=yes
9232 else
9233 lt_cv_irix_exported_symbol=no
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9237 LDFLAGS="$save_LDFLAGS"
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9240 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9241 if test "$lt_cv_irix_exported_symbol" = yes; then
9242 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'
9243 fi
9244 else
9245 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'
9246 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'
9247 fi
9248 archive_cmds_need_lc='no'
9249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 hardcode_libdir_separator=:
9251 inherit_rpath=yes
9252 link_all_deplibs=yes
9253 ;;
9254
9255 netbsd*)
9256 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9258 else
9259 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9260 fi
9261 hardcode_libdir_flag_spec='-R$libdir'
9262 hardcode_direct=yes
9263 hardcode_shlibpath_var=no
9264 ;;
9265
9266 newsos6)
9267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9268 hardcode_direct=yes
9269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9270 hardcode_libdir_separator=:
9271 hardcode_shlibpath_var=no
9272 ;;
9273
9274 *nto* | *qnx*)
9275 ;;
9276
9277 openbsd*)
9278 if test -f /usr/libexec/ld.so; then
9279 hardcode_direct=yes
9280 hardcode_shlibpath_var=no
9281 hardcode_direct_absolute=yes
9282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9284 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9286 export_dynamic_flag_spec='${wl}-E'
9287 else
9288 case $host_os in
9289 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9291 hardcode_libdir_flag_spec='-R$libdir'
9292 ;;
9293 *)
9294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9296 ;;
9297 esac
9298 fi
9299 else
9300 ld_shlibs=no
9301 fi
9302 ;;
9303
9304 os2*)
9305 hardcode_libdir_flag_spec='-L$libdir'
9306 hardcode_minus_L=yes
9307 allow_undefined_flag=unsupported
9308 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'
9309 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9310 ;;
9311
9312 osf3*)
9313 if test "$GCC" = yes; then
9314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9315 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'
9316 else
9317 allow_undefined_flag=' -expect_unresolved \*'
9318 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'
9319 fi
9320 archive_cmds_need_lc='no'
9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322 hardcode_libdir_separator=:
9323 ;;
9324
9325 osf4* | osf5*) # as osf3* with the addition of -msym flag
9326 if test "$GCC" = yes; then
9327 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9328 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'
9329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9330 else
9331 allow_undefined_flag=' -expect_unresolved \*'
9332 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'
9333 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~
9334 $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'
9335
9336 # Both c and cxx compiler support -rpath directly
9337 hardcode_libdir_flag_spec='-rpath $libdir'
9338 fi
9339 archive_cmds_need_lc='no'
9340 hardcode_libdir_separator=:
9341 ;;
9342
9343 solaris*)
9344 no_undefined_flag=' -z defs'
9345 if test "$GCC" = yes; then
9346 wlarc='${wl}'
9347 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9349 $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'
9350 else
9351 case `$CC -V 2>&1` in
9352 *"Compilers 5.0"*)
9353 wlarc=''
9354 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9356 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9357 ;;
9358 *)
9359 wlarc='${wl}'
9360 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9361 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9362 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9363 ;;
9364 esac
9365 fi
9366 hardcode_libdir_flag_spec='-R$libdir'
9367 hardcode_shlibpath_var=no
9368 case $host_os in
9369 solaris2.[0-5] | solaris2.[0-5].*) ;;
9370 *)
9371 # The compiler driver will combine and reorder linker options,
9372 # but understands `-z linker_flag'. GCC discards it without `$wl',
9373 # but is careful enough not to reorder.
9374 # Supported since Solaris 2.6 (maybe 2.5.1?)
9375 if test "$GCC" = yes; then
9376 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9377 else
9378 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9379 fi
9380 ;;
9381 esac
9382 link_all_deplibs=yes
9383 ;;
9384
9385 sunos4*)
9386 if test "x$host_vendor" = xsequent; then
9387 # Use $CC to link under sequent, because it throws in some extra .o
9388 # files that make .init and .fini sections work.
9389 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9390 else
9391 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9392 fi
9393 hardcode_libdir_flag_spec='-L$libdir'
9394 hardcode_direct=yes
9395 hardcode_minus_L=yes
9396 hardcode_shlibpath_var=no
9397 ;;
9398
9399 sysv4)
9400 case $host_vendor in
9401 sni)
9402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403 hardcode_direct=yes # is this really true???
9404 ;;
9405 siemens)
9406 ## LD is ld it makes a PLAMLIB
9407 ## CC just makes a GrossModule.
9408 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9409 reload_cmds='$CC -r -o $output$reload_objs'
9410 hardcode_direct=no
9411 ;;
9412 motorola)
9413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9415 ;;
9416 esac
9417 runpath_var='LD_RUN_PATH'
9418 hardcode_shlibpath_var=no
9419 ;;
9420
9421 sysv4.3*)
9422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_shlibpath_var=no
9424 export_dynamic_flag_spec='-Bexport'
9425 ;;
9426
9427 sysv4*MP*)
9428 if test -d /usr/nec; then
9429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9430 hardcode_shlibpath_var=no
9431 runpath_var=LD_RUN_PATH
9432 hardcode_runpath_var=yes
9433 ld_shlibs=yes
9434 fi
9435 ;;
9436
9437 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9438 no_undefined_flag='${wl}-z,text'
9439 archive_cmds_need_lc=no
9440 hardcode_shlibpath_var=no
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 sysv5* | sco3.2v5* | sco5v6*)
9453 # Note: We can NOT use -z defs as we might desire, because we do not
9454 # link with -lc, and that would cause any symbols used from libc to
9455 # always be unresolved, which means just about no library would
9456 # ever link correctly. If we're not using GNU ld we use -z text
9457 # though, which does catch some bad symbols but isn't as heavy-handed
9458 # as -z defs.
9459 no_undefined_flag='${wl}-z,text'
9460 allow_undefined_flag='${wl}-z,nodefs'
9461 archive_cmds_need_lc=no
9462 hardcode_shlibpath_var=no
9463 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9464 hardcode_libdir_separator=':'
9465 link_all_deplibs=yes
9466 export_dynamic_flag_spec='${wl}-Bexport'
9467 runpath_var='LD_RUN_PATH'
9468
9469 if test "$GCC" = yes; then
9470 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472 else
9473 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9474 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9475 fi
9476 ;;
9477
9478 uts4*)
9479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_libdir_flag_spec='-L$libdir'
9481 hardcode_shlibpath_var=no
9482 ;;
9483
9484 *)
9485 ld_shlibs=no
9486 ;;
9487 esac
9488
9489 if test x$host_vendor = xsni; then
9490 case $host in
9491 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9492 export_dynamic_flag_spec='${wl}-Blargedynsym'
9493 ;;
9494 esac
9495 fi
9496 fi
9497
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9499 $as_echo "$ld_shlibs" >&6; }
9500 test "$ld_shlibs" = no && can_build_shared=no
9501
9502 with_gnu_ld=$with_gnu_ld
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518 #
9519 # Do we need to explicitly link libc?
9520 #
9521 case "x$archive_cmds_need_lc" in
9522 x|xyes)
9523 # Assume -lc should be added
9524 archive_cmds_need_lc=yes
9525
9526 if test "$enable_shared" = yes && test "$GCC" = yes; then
9527 case $archive_cmds in
9528 *'~'*)
9529 # FIXME: we may have to deal with multi-command sequences.
9530 ;;
9531 '$CC '*)
9532 # Test whether the compiler implicitly links with -lc since on some
9533 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9534 # to ld, don't add -lc before -lgcc.
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9536 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9537 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 $RM conftest*
9541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9542
9543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9544 (eval $ac_compile) 2>&5
9545 ac_status=$?
9546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9547 test $ac_status = 0; } 2>conftest.err; then
9548 soname=conftest
9549 lib=conftest
9550 libobjs=conftest.$ac_objext
9551 deplibs=
9552 wl=$lt_prog_compiler_wl
9553 pic_flag=$lt_prog_compiler_pic
9554 compiler_flags=-v
9555 linker_flags=-v
9556 verstring=
9557 output_objdir=.
9558 libname=conftest
9559 lt_save_allow_undefined_flag=$allow_undefined_flag
9560 allow_undefined_flag=
9561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9562 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9563 ac_status=$?
9564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9565 test $ac_status = 0; }
9566 then
9567 lt_cv_archive_cmds_need_lc=no
9568 else
9569 lt_cv_archive_cmds_need_lc=yes
9570 fi
9571 allow_undefined_flag=$lt_save_allow_undefined_flag
9572 else
9573 cat conftest.err 1>&5
9574 fi
9575 $RM conftest*
9576
9577 fi
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9579 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9580 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9581 ;;
9582 esac
9583 fi
9584 ;;
9585 esac
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
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9744 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9745
9746 if test "$GCC" = yes; then
9747 case $host_os in
9748 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9749 *) lt_awk_arg="/^libraries:/" ;;
9750 esac
9751 case $host_os in
9752 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9753 *) lt_sed_strip_eq="s,=/,/,g" ;;
9754 esac
9755 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9756 case $lt_search_path_spec in
9757 *\;*)
9758 # if the path contains ";" then we assume it to be the separator
9759 # otherwise default to the standard path separator (i.e. ":") - it is
9760 # assumed that no part of a normal pathname contains ";" but that should
9761 # okay in the real world where ";" in dirpaths is itself problematic.
9762 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9763 ;;
9764 *)
9765 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9766 ;;
9767 esac
9768 # Ok, now we have the path, separated by spaces, we can step through it
9769 # and add multilib dir if necessary.
9770 lt_tmp_lt_search_path_spec=
9771 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9772 for lt_sys_path in $lt_search_path_spec; do
9773 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9774 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9775 else
9776 test -d "$lt_sys_path" && \
9777 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9778 fi
9779 done
9780 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9781 BEGIN {RS=" "; FS="/|\n";} {
9782 lt_foo="";
9783 lt_count=0;
9784 for (lt_i = NF; lt_i > 0; lt_i--) {
9785 if ($lt_i != "" && $lt_i != ".") {
9786 if ($lt_i == "..") {
9787 lt_count++;
9788 } else {
9789 if (lt_count == 0) {
9790 lt_foo="/" $lt_i lt_foo;
9791 } else {
9792 lt_count--;
9793 }
9794 }
9795 }
9796 }
9797 if (lt_foo != "") { lt_freq[lt_foo]++; }
9798 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9799 }'`
9800 # AWK program above erroneously prepends '/' to C:/dos/paths
9801 # for these hosts.
9802 case $host_os in
9803 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9804 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9805 esac
9806 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9807 else
9808 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9809 fi
9810 library_names_spec=
9811 libname_spec='lib$name'
9812 soname_spec=
9813 shrext_cmds=".so"
9814 postinstall_cmds=
9815 postuninstall_cmds=
9816 finish_cmds=
9817 finish_eval=
9818 shlibpath_var=
9819 shlibpath_overrides_runpath=unknown
9820 version_type=none
9821 dynamic_linker="$host_os ld.so"
9822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9823 need_lib_prefix=unknown
9824 hardcode_into_libs=no
9825
9826 # when you set need_version to no, make sure it does not cause -set_version
9827 # flags to be left without arguments
9828 need_version=unknown
9829
9830 case $host_os in
9831 aix3*)
9832 version_type=linux
9833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9834 shlibpath_var=LIBPATH
9835
9836 # AIX 3 has no versioning support, so we append a major version to the name.
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 ;;
9839
9840 aix[4-9]*)
9841 version_type=linux
9842 need_lib_prefix=no
9843 need_version=no
9844 hardcode_into_libs=yes
9845 if test "$host_cpu" = ia64; then
9846 # AIX 5 supports IA64
9847 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9848 shlibpath_var=LD_LIBRARY_PATH
9849 else
9850 # With GCC up to 2.95.x, collect2 would create an import file
9851 # for dependence libraries. The import file would start with
9852 # the line `#! .'. This would cause the generated library to
9853 # depend on `.', always an invalid library. This was fixed in
9854 # development snapshots of GCC prior to 3.0.
9855 case $host_os in
9856 aix4 | aix4.[01] | aix4.[01].*)
9857 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9858 echo ' yes '
9859 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9860 :
9861 else
9862 can_build_shared=no
9863 fi
9864 ;;
9865 esac
9866 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9867 # soname into executable. Probably we can add versioning support to
9868 # collect2, so additional links can be useful in future.
9869 if test "$aix_use_runtimelinking" = yes; then
9870 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9871 # instead of lib<name>.a to let people know that these are not
9872 # typical AIX shared libraries.
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9874 else
9875 # We preserve .a as extension for shared libraries through AIX4.2
9876 # and later when we are not doing run time linking.
9877 library_names_spec='${libname}${release}.a $libname.a'
9878 soname_spec='${libname}${release}${shared_ext}$major'
9879 fi
9880 shlibpath_var=LIBPATH
9881 fi
9882 ;;
9883
9884 amigaos*)
9885 case $host_cpu in
9886 powerpc)
9887 # Since July 2007 AmigaOS4 officially supports .so libraries.
9888 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890 ;;
9891 m68k)
9892 library_names_spec='$libname.ixlibrary $libname.a'
9893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9894 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'
9895 ;;
9896 esac
9897 ;;
9898
9899 beos*)
9900 library_names_spec='${libname}${shared_ext}'
9901 dynamic_linker="$host_os ld.so"
9902 shlibpath_var=LIBRARY_PATH
9903 ;;
9904
9905 bsdi[45]*)
9906 version_type=linux
9907 need_version=no
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9911 shlibpath_var=LD_LIBRARY_PATH
9912 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9913 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9914 # the default ld.so.conf also contains /usr/contrib/lib and
9915 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9916 # libtool to hard-code these into programs
9917 ;;
9918
9919 cygwin* | mingw* | pw32* | cegcc*)
9920 version_type=windows
9921 shrext_cmds=".dll"
9922 need_version=no
9923 need_lib_prefix=no
9924
9925 case $GCC,$cc_basename in
9926 yes,*)
9927 # gcc
9928 library_names_spec='$libname.dll.a'
9929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9930 postinstall_cmds='base_file=`basename \${file}`~
9931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9932 dldir=$destdir/`dirname \$dlpath`~
9933 test -d \$dldir || mkdir -p \$dldir~
9934 $install_prog $dir/$dlname \$dldir/$dlname~
9935 chmod a+x \$dldir/$dlname~
9936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9937 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9938 fi'
9939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9940 dlpath=$dir/\$dldll~
9941 $RM \$dlpath'
9942 shlibpath_overrides_runpath=yes
9943
9944 case $host_os in
9945 cygwin*)
9946 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9947 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9948
9949 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9950 ;;
9951 mingw* | cegcc*)
9952 # MinGW DLLs use traditional 'lib' prefix
9953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9954 ;;
9955 pw32*)
9956 # pw32 DLLs use 'pw' prefix rather than 'lib'
9957 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9958 ;;
9959 esac
9960 dynamic_linker='Win32 ld.exe'
9961 ;;
9962
9963 *,cl*)
9964 # Native MSVC
9965 libname_spec='$name'
9966 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9967 library_names_spec='${libname}.dll.lib'
9968
9969 case $build_os in
9970 mingw*)
9971 sys_lib_search_path_spec=
9972 lt_save_ifs=$IFS
9973 IFS=';'
9974 for lt_path in $LIB
9975 do
9976 IFS=$lt_save_ifs
9977 # Let DOS variable expansion print the short 8.3 style file name.
9978 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9979 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9980 done
9981 IFS=$lt_save_ifs
9982 # Convert to MSYS style.
9983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9984 ;;
9985 cygwin*)
9986 # Convert to unix form, then to dos form, then back to unix form
9987 # but this time dos style (no spaces!) so that the unix form looks
9988 # like /cygdrive/c/PROGRA~1:/cygdr...
9989 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9990 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9991 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9992 ;;
9993 *)
9994 sys_lib_search_path_spec="$LIB"
9995 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9996 # It is most probably a Windows format PATH.
9997 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9998 else
9999 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10000 fi
10001 # FIXME: find the short name or the path components, as spaces are
10002 # common. (e.g. "Program Files" -> "PROGRA~1")
10003 ;;
10004 esac
10005
10006 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10007 postinstall_cmds='base_file=`basename \${file}`~
10008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10009 dldir=$destdir/`dirname \$dlpath`~
10010 test -d \$dldir || mkdir -p \$dldir~
10011 $install_prog $dir/$dlname \$dldir/$dlname'
10012 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10013 dlpath=$dir/\$dldll~
10014 $RM \$dlpath'
10015 shlibpath_overrides_runpath=yes
10016 dynamic_linker='Win32 link.exe'
10017 ;;
10018
10019 *)
10020 # Assume MSVC wrapper
10021 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10022 dynamic_linker='Win32 ld.exe'
10023 ;;
10024 esac
10025 # FIXME: first we should search . and the directory the executable is in
10026 shlibpath_var=PATH
10027 ;;
10028
10029 darwin* | rhapsody*)
10030 dynamic_linker="$host_os dyld"
10031 version_type=darwin
10032 need_lib_prefix=no
10033 need_version=no
10034 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10035 soname_spec='${libname}${release}${major}$shared_ext'
10036 shlibpath_overrides_runpath=yes
10037 shlibpath_var=DYLD_LIBRARY_PATH
10038 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10039
10040 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10041 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10042 ;;
10043
10044 dgux*)
10045 version_type=linux
10046 need_lib_prefix=no
10047 need_version=no
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 shlibpath_var=LD_LIBRARY_PATH
10051 ;;
10052
10053 freebsd1*)
10054 dynamic_linker=no
10055 ;;
10056
10057 freebsd* | dragonfly*)
10058 # DragonFly does not have aout. When/if they implement a new
10059 # versioning mechanism, adjust this.
10060 if test -x /usr/bin/objformat; then
10061 objformat=`/usr/bin/objformat`
10062 else
10063 case $host_os in
10064 freebsd[123]*) objformat=aout ;;
10065 *) objformat=elf ;;
10066 esac
10067 fi
10068 version_type=freebsd-$objformat
10069 case $version_type in
10070 freebsd-elf*)
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10072 need_version=no
10073 need_lib_prefix=no
10074 ;;
10075 freebsd-*)
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10077 need_version=yes
10078 ;;
10079 esac
10080 shlibpath_var=LD_LIBRARY_PATH
10081 case $host_os in
10082 freebsd2*)
10083 shlibpath_overrides_runpath=yes
10084 ;;
10085 freebsd3.[01]* | freebsdelf3.[01]*)
10086 shlibpath_overrides_runpath=yes
10087 hardcode_into_libs=yes
10088 ;;
10089 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10090 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10091 shlibpath_overrides_runpath=no
10092 hardcode_into_libs=yes
10093 ;;
10094 *) # from 4.6 on, and DragonFly
10095 shlibpath_overrides_runpath=yes
10096 hardcode_into_libs=yes
10097 ;;
10098 esac
10099 ;;
10100
10101 gnu*)
10102 version_type=linux
10103 need_lib_prefix=no
10104 need_version=no
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 hardcode_into_libs=yes
10109 ;;
10110
10111 haiku*)
10112 version_type=linux
10113 need_lib_prefix=no
10114 need_version=no
10115 dynamic_linker="$host_os runtime_loader"
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 shlibpath_var=LIBRARY_PATH
10119 shlibpath_overrides_runpath=yes
10120 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10121 hardcode_into_libs=yes
10122 ;;
10123
10124 hpux9* | hpux10* | hpux11*)
10125 # Give a soname corresponding to the major version so that dld.sl refuses to
10126 # link against other versions.
10127 version_type=sunos
10128 need_lib_prefix=no
10129 need_version=no
10130 case $host_cpu in
10131 ia64*)
10132 shrext_cmds='.so'
10133 hardcode_into_libs=yes
10134 dynamic_linker="$host_os dld.so"
10135 shlibpath_var=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 if test "X$HPUX_IA64_MODE" = X32; then
10140 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10141 else
10142 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10143 fi
10144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10145 ;;
10146 hppa*64*)
10147 shrext_cmds='.sl'
10148 hardcode_into_libs=yes
10149 dynamic_linker="$host_os dld.sl"
10150 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153 soname_spec='${libname}${release}${shared_ext}$major'
10154 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10156 ;;
10157 *)
10158 shrext_cmds='.sl'
10159 dynamic_linker="$host_os dld.sl"
10160 shlibpath_var=SHLIB_PATH
10161 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 ;;
10165 esac
10166 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10167 postinstall_cmds='chmod 555 $lib'
10168 # or fails outright, so override atomically:
10169 install_override_mode=555
10170 ;;
10171
10172 interix[3-9]*)
10173 version_type=linux
10174 need_lib_prefix=no
10175 need_version=no
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=no
10181 hardcode_into_libs=yes
10182 ;;
10183
10184 irix5* | irix6* | nonstopux*)
10185 case $host_os in
10186 nonstopux*) version_type=nonstopux ;;
10187 *)
10188 if test "$lt_cv_prog_gnu_ld" = yes; then
10189 version_type=linux
10190 else
10191 version_type=irix
10192 fi ;;
10193 esac
10194 need_lib_prefix=no
10195 need_version=no
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10198 case $host_os in
10199 irix5* | nonstopux*)
10200 libsuff= shlibsuff=
10201 ;;
10202 *)
10203 case $LD in # libtool.m4 will add one of these switches to LD
10204 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10205 libsuff= shlibsuff= libmagic=32-bit;;
10206 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10207 libsuff=32 shlibsuff=N32 libmagic=N32;;
10208 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10209 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10210 *) libsuff= shlibsuff= libmagic=never-match;;
10211 esac
10212 ;;
10213 esac
10214 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10215 shlibpath_overrides_runpath=no
10216 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10217 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10218 hardcode_into_libs=yes
10219 ;;
10220
10221 # No shared lib support for Linux oldld, aout, or coff.
10222 linux*oldld* | linux*aout* | linux*coff*)
10223 dynamic_linker=no
10224 ;;
10225
10226 # This must be Linux ELF.
10227 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10228 version_type=linux
10229 need_lib_prefix=no
10230 need_version=no
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath=no
10236
10237 # Some binutils ld are patched to set DT_RUNPATH
10238 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 lt_cv_shlibpath_overrides_runpath=no
10242 save_LDFLAGS=$LDFLAGS
10243 save_libdir=$libdir
10244 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10245 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10248
10249 int
10250 main ()
10251 {
10252
10253 ;
10254 return 0;
10255 }
10256 _ACEOF
10257 if ac_fn_c_try_link "$LINENO"; then :
10258 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10259 lt_cv_shlibpath_overrides_runpath=yes
10260 fi
10261 fi
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LDFLAGS=$save_LDFLAGS
10265 libdir=$save_libdir
10266
10267 fi
10268
10269 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10270
10271 # This implies no fast_install, which is unacceptable.
10272 # Some rework will be needed to allow for fast_install
10273 # before this can be enabled.
10274 hardcode_into_libs=yes
10275
10276 # Add ABI-specific directories to the system library path.
10277 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10278
10279 # Append ld.so.conf contents to the search path
10280 if test -f /etc/ld.so.conf; then
10281 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' ' '`
10282 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10283
10284 fi
10285
10286 # We used to test for /lib/ld.so.1 and disable shared libraries on
10287 # powerpc, because MkLinux only supported shared libraries with the
10288 # GNU dynamic linker. Since this was broken with cross compilers,
10289 # most powerpc-linux boxes support dynamic linking these days and
10290 # people can always --disable-shared, the test was removed, and we
10291 # assume the GNU/Linux dynamic linker is in use.
10292 dynamic_linker='GNU/Linux ld.so'
10293 ;;
10294
10295 netbsd*)
10296 version_type=sunos
10297 need_lib_prefix=no
10298 need_version=no
10299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10302 dynamic_linker='NetBSD (a.out) ld.so'
10303 else
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 dynamic_linker='NetBSD ld.elf_so'
10307 fi
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10311 ;;
10312
10313 newsos6)
10314 version_type=linux
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 shlibpath_overrides_runpath=yes
10318 ;;
10319
10320 *nto* | *qnx*)
10321 version_type=qnx
10322 need_lib_prefix=no
10323 need_version=no
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=no
10328 hardcode_into_libs=yes
10329 dynamic_linker='ldqnx.so'
10330 ;;
10331
10332 openbsd*)
10333 version_type=sunos
10334 sys_lib_dlsearch_path_spec="/usr/lib"
10335 need_lib_prefix=no
10336 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10337 case $host_os in
10338 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10339 *) need_version=no ;;
10340 esac
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10345 case $host_os in
10346 openbsd2.[89] | openbsd2.[89].*)
10347 shlibpath_overrides_runpath=no
10348 ;;
10349 *)
10350 shlibpath_overrides_runpath=yes
10351 ;;
10352 esac
10353 else
10354 shlibpath_overrides_runpath=yes
10355 fi
10356 ;;
10357
10358 os2*)
10359 libname_spec='$name'
10360 shrext_cmds=".dll"
10361 need_lib_prefix=no
10362 library_names_spec='$libname${shared_ext} $libname.a'
10363 dynamic_linker='OS/2 ld.exe'
10364 shlibpath_var=LIBPATH
10365 ;;
10366
10367 osf3* | osf4* | osf5*)
10368 version_type=osf
10369 need_lib_prefix=no
10370 need_version=no
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10375 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10376 ;;
10377
10378 rdos*)
10379 dynamic_linker=no
10380 ;;
10381
10382 solaris*)
10383 version_type=linux
10384 need_lib_prefix=no
10385 need_version=no
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=yes
10390 hardcode_into_libs=yes
10391 # ldd complains unless libraries are executable
10392 postinstall_cmds='chmod +x $lib'
10393 ;;
10394
10395 sunos4*)
10396 version_type=sunos
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 shlibpath_overrides_runpath=yes
10401 if test "$with_gnu_ld" = yes; then
10402 need_lib_prefix=no
10403 fi
10404 need_version=yes
10405 ;;
10406
10407 sysv4 | sysv4.3*)
10408 version_type=linux
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 case $host_vendor in
10413 sni)
10414 shlibpath_overrides_runpath=no
10415 need_lib_prefix=no
10416 runpath_var=LD_RUN_PATH
10417 ;;
10418 siemens)
10419 need_lib_prefix=no
10420 ;;
10421 motorola)
10422 need_lib_prefix=no
10423 need_version=no
10424 shlibpath_overrides_runpath=no
10425 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10426 ;;
10427 esac
10428 ;;
10429
10430 sysv4*MP*)
10431 if test -d /usr/nec ;then
10432 version_type=linux
10433 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10434 soname_spec='$libname${shared_ext}.$major'
10435 shlibpath_var=LD_LIBRARY_PATH
10436 fi
10437 ;;
10438
10439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10440 version_type=freebsd-elf
10441 need_lib_prefix=no
10442 need_version=no
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 shlibpath_var=LD_LIBRARY_PATH
10446 shlibpath_overrides_runpath=yes
10447 hardcode_into_libs=yes
10448 if test "$with_gnu_ld" = yes; then
10449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10450 else
10451 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10452 case $host_os in
10453 sco3.2v5*)
10454 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10455 ;;
10456 esac
10457 fi
10458 sys_lib_dlsearch_path_spec='/usr/lib'
10459 ;;
10460
10461 tpf*)
10462 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10463 version_type=linux
10464 need_lib_prefix=no
10465 need_version=no
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=no
10469 hardcode_into_libs=yes
10470 ;;
10471
10472 uts4*)
10473 version_type=linux
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 ;;
10478
10479 *)
10480 dynamic_linker=no
10481 ;;
10482 esac
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10484 $as_echo "$dynamic_linker" >&6; }
10485 test "$dynamic_linker" = no && can_build_shared=no
10486
10487 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10488 if test "$GCC" = yes; then
10489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10490 fi
10491
10492 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10493 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10494 fi
10495 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10496 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10497 fi
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
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10591 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10592 hardcode_action=
10593 if test -n "$hardcode_libdir_flag_spec" ||
10594 test -n "$runpath_var" ||
10595 test "X$hardcode_automatic" = "Xyes" ; then
10596
10597 # We can hardcode non-existent directories.
10598 if test "$hardcode_direct" != no &&
10599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10600 # have to relink, otherwise we might link with an installed library
10601 # when we should be linking with a yet-to-be-installed one
10602 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10603 test "$hardcode_minus_L" != no; then
10604 # Linking always hardcodes the temporary library directory.
10605 hardcode_action=relink
10606 else
10607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10608 hardcode_action=immediate
10609 fi
10610 else
10611 # We cannot hardcode anything, or else we can only hardcode existing
10612 # directories.
10613 hardcode_action=unsupported
10614 fi
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10616 $as_echo "$hardcode_action" >&6; }
10617
10618 if test "$hardcode_action" = relink ||
10619 test "$inherit_rpath" = yes; then
10620 # Fast installation is not supported
10621 enable_fast_install=no
10622 elif test "$shlibpath_overrides_runpath" = yes ||
10623 test "$enable_shared" = no; then
10624 # Fast installation is not necessary
10625 enable_fast_install=needless
10626 fi
10627
10628
10629
10630
10631
10632
10633 if test "x$enable_dlopen" != xyes; then
10634 enable_dlopen=unknown
10635 enable_dlopen_self=unknown
10636 enable_dlopen_self_static=unknown
10637 else
10638 lt_cv_dlopen=no
10639 lt_cv_dlopen_libs=
10640
10641 case $host_os in
10642 beos*)
10643 lt_cv_dlopen="load_add_on"
10644 lt_cv_dlopen_libs=
10645 lt_cv_dlopen_self=yes
10646 ;;
10647
10648 mingw* | pw32* | cegcc*)
10649 lt_cv_dlopen="LoadLibrary"
10650 lt_cv_dlopen_libs=
10651 ;;
10652
10653 cygwin*)
10654 lt_cv_dlopen="dlopen"
10655 lt_cv_dlopen_libs=
10656 ;;
10657
10658 darwin*)
10659 # if libdl is installed we need to link against it
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10661 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10662 if ${ac_cv_lib_dl_dlopen+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 ac_check_lib_save_LIBS=$LIBS
10666 LIBS="-ldl $LIBS"
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char dlopen ();
10677 int
10678 main ()
10679 {
10680 return dlopen ();
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 if ac_fn_c_try_link "$LINENO"; then :
10686 ac_cv_lib_dl_dlopen=yes
10687 else
10688 ac_cv_lib_dl_dlopen=no
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 LIBS=$ac_check_lib_save_LIBS
10693 fi
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10695 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10696 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10698 else
10699
10700 lt_cv_dlopen="dyld"
10701 lt_cv_dlopen_libs=
10702 lt_cv_dlopen_self=yes
10703
10704 fi
10705
10706 ;;
10707
10708 *)
10709 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10710 if test "x$ac_cv_func_shl_load" = xyes; then :
10711 lt_cv_dlopen="shl_load"
10712 else
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10714 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10715 if ${ac_cv_lib_dld_shl_load+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 ac_check_lib_save_LIBS=$LIBS
10719 LIBS="-ldld $LIBS"
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722
10723 /* Override any GCC internal prototype to avoid an error.
10724 Use char because int might match the return type of a GCC
10725 builtin and then its argument prototype would still apply. */
10726 #ifdef __cplusplus
10727 extern "C"
10728 #endif
10729 char shl_load ();
10730 int
10731 main ()
10732 {
10733 return shl_load ();
10734 ;
10735 return 0;
10736 }
10737 _ACEOF
10738 if ac_fn_c_try_link "$LINENO"; then :
10739 ac_cv_lib_dld_shl_load=yes
10740 else
10741 ac_cv_lib_dld_shl_load=no
10742 fi
10743 rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 LIBS=$ac_check_lib_save_LIBS
10746 fi
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10748 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10749 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10750 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10751 else
10752 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10753 if test "x$ac_cv_func_dlopen" = xyes; then :
10754 lt_cv_dlopen="dlopen"
10755 else
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10757 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10758 if ${ac_cv_lib_dl_dlopen+:} false; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-ldl $LIBS"
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10765
10766 /* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
10769 #ifdef __cplusplus
10770 extern "C"
10771 #endif
10772 char dlopen ();
10773 int
10774 main ()
10775 {
10776 return dlopen ();
10777 ;
10778 return 0;
10779 }
10780 _ACEOF
10781 if ac_fn_c_try_link "$LINENO"; then :
10782 ac_cv_lib_dl_dlopen=yes
10783 else
10784 ac_cv_lib_dl_dlopen=no
10785 fi
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 LIBS=$ac_check_lib_save_LIBS
10789 fi
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10791 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10792 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10793 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10794 else
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10796 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10797 if ${ac_cv_lib_svld_dlopen+:} false; then :
10798 $as_echo_n "(cached) " >&6
10799 else
10800 ac_check_lib_save_LIBS=$LIBS
10801 LIBS="-lsvld $LIBS"
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804
10805 /* Override any GCC internal prototype to avoid an error.
10806 Use char because int might match the return type of a GCC
10807 builtin and then its argument prototype would still apply. */
10808 #ifdef __cplusplus
10809 extern "C"
10810 #endif
10811 char dlopen ();
10812 int
10813 main ()
10814 {
10815 return dlopen ();
10816 ;
10817 return 0;
10818 }
10819 _ACEOF
10820 if ac_fn_c_try_link "$LINENO"; then :
10821 ac_cv_lib_svld_dlopen=yes
10822 else
10823 ac_cv_lib_svld_dlopen=no
10824 fi
10825 rm -f core conftest.err conftest.$ac_objext \
10826 conftest$ac_exeext conftest.$ac_ext
10827 LIBS=$ac_check_lib_save_LIBS
10828 fi
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10830 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10831 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10832 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10833 else
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10835 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10836 if ${ac_cv_lib_dld_dld_link+:} false; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839 ac_check_lib_save_LIBS=$LIBS
10840 LIBS="-ldld $LIBS"
10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10843
10844 /* Override any GCC internal prototype to avoid an error.
10845 Use char because int might match the return type of a GCC
10846 builtin and then its argument prototype would still apply. */
10847 #ifdef __cplusplus
10848 extern "C"
10849 #endif
10850 char dld_link ();
10851 int
10852 main ()
10853 {
10854 return dld_link ();
10855 ;
10856 return 0;
10857 }
10858 _ACEOF
10859 if ac_fn_c_try_link "$LINENO"; then :
10860 ac_cv_lib_dld_dld_link=yes
10861 else
10862 ac_cv_lib_dld_dld_link=no
10863 fi
10864 rm -f core conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
10866 LIBS=$ac_check_lib_save_LIBS
10867 fi
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10869 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10870 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10871 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10872 fi
10873
10874
10875 fi
10876
10877
10878 fi
10879
10880
10881 fi
10882
10883
10884 fi
10885
10886
10887 fi
10888
10889 ;;
10890 esac
10891
10892 if test "x$lt_cv_dlopen" != xno; then
10893 enable_dlopen=yes
10894 else
10895 enable_dlopen=no
10896 fi
10897
10898 case $lt_cv_dlopen in
10899 dlopen)
10900 save_CPPFLAGS="$CPPFLAGS"
10901 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10902
10903 save_LDFLAGS="$LDFLAGS"
10904 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10905
10906 save_LIBS="$LIBS"
10907 LIBS="$lt_cv_dlopen_libs $LIBS"
10908
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10910 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10911 if ${lt_cv_dlopen_self+:} false; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 if test "$cross_compiling" = yes; then :
10915 lt_cv_dlopen_self=cross
10916 else
10917 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10918 lt_status=$lt_dlunknown
10919 cat > conftest.$ac_ext <<_LT_EOF
10920 #line $LINENO "configure"
10921 #include "confdefs.h"
10922
10923 #if HAVE_DLFCN_H
10924 #include <dlfcn.h>
10925 #endif
10926
10927 #include <stdio.h>
10928
10929 #ifdef RTLD_GLOBAL
10930 # define LT_DLGLOBAL RTLD_GLOBAL
10931 #else
10932 # ifdef DL_GLOBAL
10933 # define LT_DLGLOBAL DL_GLOBAL
10934 # else
10935 # define LT_DLGLOBAL 0
10936 # endif
10937 #endif
10938
10939 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10940 find out it does not work in some platform. */
10941 #ifndef LT_DLLAZY_OR_NOW
10942 # ifdef RTLD_LAZY
10943 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10944 # else
10945 # ifdef DL_LAZY
10946 # define LT_DLLAZY_OR_NOW DL_LAZY
10947 # else
10948 # ifdef RTLD_NOW
10949 # define LT_DLLAZY_OR_NOW RTLD_NOW
10950 # else
10951 # ifdef DL_NOW
10952 # define LT_DLLAZY_OR_NOW DL_NOW
10953 # else
10954 # define LT_DLLAZY_OR_NOW 0
10955 # endif
10956 # endif
10957 # endif
10958 # endif
10959 #endif
10960
10961 /* When -fvisbility=hidden is used, assume the code has been annotated
10962 correspondingly for the symbols needed. */
10963 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10964 int fnord () __attribute__((visibility("default")));
10965 #endif
10966
10967 int fnord () { return 42; }
10968 int main ()
10969 {
10970 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10971 int status = $lt_dlunknown;
10972
10973 if (self)
10974 {
10975 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10976 else
10977 {
10978 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10979 else puts (dlerror ());
10980 }
10981 /* dlclose (self); */
10982 }
10983 else
10984 puts (dlerror ());
10985
10986 return status;
10987 }
10988 _LT_EOF
10989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10990 (eval $ac_link) 2>&5
10991 ac_status=$?
10992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10993 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10994 (./conftest; exit; ) >&5 2>/dev/null
10995 lt_status=$?
10996 case x$lt_status in
10997 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10998 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10999 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11000 esac
11001 else :
11002 # compilation failed
11003 lt_cv_dlopen_self=no
11004 fi
11005 fi
11006 rm -fr conftest*
11007
11008
11009 fi
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11011 $as_echo "$lt_cv_dlopen_self" >&6; }
11012
11013 if test "x$lt_cv_dlopen_self" = xyes; then
11014 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11016 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11017 if ${lt_cv_dlopen_self_static+:} false; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 if test "$cross_compiling" = yes; then :
11021 lt_cv_dlopen_self_static=cross
11022 else
11023 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11024 lt_status=$lt_dlunknown
11025 cat > conftest.$ac_ext <<_LT_EOF
11026 #line $LINENO "configure"
11027 #include "confdefs.h"
11028
11029 #if HAVE_DLFCN_H
11030 #include <dlfcn.h>
11031 #endif
11032
11033 #include <stdio.h>
11034
11035 #ifdef RTLD_GLOBAL
11036 # define LT_DLGLOBAL RTLD_GLOBAL
11037 #else
11038 # ifdef DL_GLOBAL
11039 # define LT_DLGLOBAL DL_GLOBAL
11040 # else
11041 # define LT_DLGLOBAL 0
11042 # endif
11043 #endif
11044
11045 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11046 find out it does not work in some platform. */
11047 #ifndef LT_DLLAZY_OR_NOW
11048 # ifdef RTLD_LAZY
11049 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11050 # else
11051 # ifdef DL_LAZY
11052 # define LT_DLLAZY_OR_NOW DL_LAZY
11053 # else
11054 # ifdef RTLD_NOW
11055 # define LT_DLLAZY_OR_NOW RTLD_NOW
11056 # else
11057 # ifdef DL_NOW
11058 # define LT_DLLAZY_OR_NOW DL_NOW
11059 # else
11060 # define LT_DLLAZY_OR_NOW 0
11061 # endif
11062 # endif
11063 # endif
11064 # endif
11065 #endif
11066
11067 /* When -fvisbility=hidden is used, assume the code has been annotated
11068 correspondingly for the symbols needed. */
11069 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11070 int fnord () __attribute__((visibility("default")));
11071 #endif
11072
11073 int fnord () { return 42; }
11074 int main ()
11075 {
11076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11077 int status = $lt_dlunknown;
11078
11079 if (self)
11080 {
11081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11082 else
11083 {
11084 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11085 else puts (dlerror ());
11086 }
11087 /* dlclose (self); */
11088 }
11089 else
11090 puts (dlerror ());
11091
11092 return status;
11093 }
11094 _LT_EOF
11095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11096 (eval $ac_link) 2>&5
11097 ac_status=$?
11098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11099 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11100 (./conftest; exit; ) >&5 2>/dev/null
11101 lt_status=$?
11102 case x$lt_status in
11103 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11104 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11105 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11106 esac
11107 else :
11108 # compilation failed
11109 lt_cv_dlopen_self_static=no
11110 fi
11111 fi
11112 rm -fr conftest*
11113
11114
11115 fi
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11117 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11118 fi
11119
11120 CPPFLAGS="$save_CPPFLAGS"
11121 LDFLAGS="$save_LDFLAGS"
11122 LIBS="$save_LIBS"
11123 ;;
11124 esac
11125
11126 case $lt_cv_dlopen_self in
11127 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11128 *) enable_dlopen_self=unknown ;;
11129 esac
11130
11131 case $lt_cv_dlopen_self_static in
11132 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11133 *) enable_dlopen_self_static=unknown ;;
11134 esac
11135 fi
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153 striplib=
11154 old_striplib=
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11156 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11157 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11158 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11159 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11161 $as_echo "yes" >&6; }
11162 else
11163 # FIXME - insert some real tests, host_os isn't really good enough
11164 case $host_os in
11165 darwin*)
11166 if test -n "$STRIP" ; then
11167 striplib="$STRIP -x"
11168 old_striplib="$STRIP -S"
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11170 $as_echo "yes" >&6; }
11171 else
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11174 fi
11175 ;;
11176 *)
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11179 ;;
11180 esac
11181 fi
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194 # Report which library types will actually be built
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11196 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11198 $as_echo "$can_build_shared" >&6; }
11199
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11201 $as_echo_n "checking whether to build shared libraries... " >&6; }
11202 test "$can_build_shared" = "no" && enable_shared=no
11203
11204 # On AIX, shared libraries and static libraries use the same namespace, and
11205 # are all built from PIC.
11206 case $host_os in
11207 aix3*)
11208 test "$enable_shared" = yes && enable_static=no
11209 if test -n "$RANLIB"; then
11210 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11211 postinstall_cmds='$RANLIB $lib'
11212 fi
11213 ;;
11214
11215 aix[4-9]*)
11216 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11217 test "$enable_shared" = yes && enable_static=no
11218 fi
11219 ;;
11220 esac
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11222 $as_echo "$enable_shared" >&6; }
11223
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11225 $as_echo_n "checking whether to build static libraries... " >&6; }
11226 # Make sure either enable_shared or enable_static is yes.
11227 test "$enable_shared" = yes || enable_static=yes
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11229 $as_echo "$enable_static" >&6; }
11230
11231
11232
11233
11234 fi
11235 ac_ext=c
11236 ac_cpp='$CPP $CPPFLAGS'
11237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11240
11241 CC="$lt_save_CC"
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255 ac_config_commands="$ac_config_commands libtool"
11256
11257
11258
11259
11260 # Only expand once:
11261
11262
11263
11264 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11277 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11278 if ${ac_cv_prog_cc_c99+:} false; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 ac_cv_prog_cc_c99=no
11282 ac_save_CC=$CC
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11285 #include <stdarg.h>
11286 #include <stdbool.h>
11287 #include <stdlib.h>
11288 #include <wchar.h>
11289 #include <stdio.h>
11290
11291 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11292 #define debug(...) fprintf (stderr, __VA_ARGS__)
11293 #define showlist(...) puts (#__VA_ARGS__)
11294 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11295 static void
11296 test_varargs_macros (void)
11297 {
11298 int x = 1234;
11299 int y = 5678;
11300 debug ("Flag");
11301 debug ("X = %d\n", x);
11302 showlist (The first, second, and third items.);
11303 report (x>y, "x is %d but y is %d", x, y);
11304 }
11305
11306 // Check long long types.
11307 #define BIG64 18446744073709551615ull
11308 #define BIG32 4294967295ul
11309 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11310 #if !BIG_OK
11311 your preprocessor is broken;
11312 #endif
11313 #if BIG_OK
11314 #else
11315 your preprocessor is broken;
11316 #endif
11317 static long long int bignum = -9223372036854775807LL;
11318 static unsigned long long int ubignum = BIG64;
11319
11320 struct incomplete_array
11321 {
11322 int datasize;
11323 double data[];
11324 };
11325
11326 struct named_init {
11327 int number;
11328 const wchar_t *name;
11329 double average;
11330 };
11331
11332 typedef const char *ccp;
11333
11334 static inline int
11335 test_restrict (ccp restrict text)
11336 {
11337 // See if C++-style comments work.
11338 // Iterate through items via the restricted pointer.
11339 // Also check for declarations in for loops.
11340 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11341 continue;
11342 return 0;
11343 }
11344
11345 // Check varargs and va_copy.
11346 static void
11347 test_varargs (const char *format, ...)
11348 {
11349 va_list args;
11350 va_start (args, format);
11351 va_list args_copy;
11352 va_copy (args_copy, args);
11353
11354 const char *str;
11355 int number;
11356 float fnumber;
11357
11358 while (*format)
11359 {
11360 switch (*format++)
11361 {
11362 case 's': // string
11363 str = va_arg (args_copy, const char *);
11364 break;
11365 case 'd': // int
11366 number = va_arg (args_copy, int);
11367 break;
11368 case 'f': // float
11369 fnumber = va_arg (args_copy, double);
11370 break;
11371 default:
11372 break;
11373 }
11374 }
11375 va_end (args_copy);
11376 va_end (args);
11377 }
11378
11379 int
11380 main ()
11381 {
11382
11383 // Check bool.
11384 _Bool success = false;
11385
11386 // Check restrict.
11387 if (test_restrict ("String literal") == 0)
11388 success = true;
11389 char *restrict newvar = "Another string";
11390
11391 // Check varargs.
11392 test_varargs ("s, d' f .", "string", 65, 34.234);
11393 test_varargs_macros ();
11394
11395 // Check flexible array members.
11396 struct incomplete_array *ia =
11397 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11398 ia->datasize = 10;
11399 for (int i = 0; i < ia->datasize; ++i)
11400 ia->data[i] = i * 1.234;
11401
11402 // Check named initializers.
11403 struct named_init ni = {
11404 .number = 34,
11405 .name = L"Test wide string",
11406 .average = 543.34343,
11407 };
11408
11409 ni.number = 58;
11410
11411 int dynamic_array[ni.number];
11412 dynamic_array[ni.number - 1] = 543;
11413
11414 // work around unused variable warnings
11415 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11416 || dynamic_array[ni.number - 1] != 543);
11417
11418 ;
11419 return 0;
11420 }
11421 _ACEOF
11422 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11423 do
11424 CC="$ac_save_CC $ac_arg"
11425 if ac_fn_c_try_compile "$LINENO"; then :
11426 ac_cv_prog_cc_c99=$ac_arg
11427 fi
11428 rm -f core conftest.err conftest.$ac_objext
11429 test "x$ac_cv_prog_cc_c99" != "xno" && break
11430 done
11431 rm -f conftest.$ac_ext
11432 CC=$ac_save_CC
11433
11434 fi
11435 # AC_CACHE_VAL
11436 case "x$ac_cv_prog_cc_c99" in
11437 x)
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11439 $as_echo "none needed" >&6; } ;;
11440 xno)
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11442 $as_echo "unsupported" >&6; } ;;
11443 *)
11444 CC="$CC $ac_cv_prog_cc_c99"
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11446 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11447 esac
11448 if test "x$ac_cv_prog_cc_c99" != xno; then :
11449
11450 fi
11451
11452
11453
11454
11455 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11456 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11457 CLANGCC="yes"
11458 else
11459 CLANGCC="no"
11460 fi
11461
11462 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11463 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11464 INTELCC="yes"
11465 else
11466 INTELCC="no"
11467 fi
11468
11469 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11470 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11471 SUNCC="yes"
11472 else
11473 SUNCC="no"
11474 fi
11475
11476
11477
11478
11479
11480
11481
11482
11483 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11484 if test -n "$ac_tool_prefix"; then
11485 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11486 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488 $as_echo_n "checking for $ac_word... " >&6; }
11489 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 case $PKG_CONFIG in
11493 [\\/]* | ?:[\\/]*)
11494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11495 ;;
11496 *)
11497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498 for as_dir in $PATH
11499 do
11500 IFS=$as_save_IFS
11501 test -z "$as_dir" && as_dir=.
11502 for ac_exec_ext in '' $ac_executable_extensions; do
11503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11504 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 break 2
11507 fi
11508 done
11509 done
11510 IFS=$as_save_IFS
11511
11512 ;;
11513 esac
11514 fi
11515 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11516 if test -n "$PKG_CONFIG"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11518 $as_echo "$PKG_CONFIG" >&6; }
11519 else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521 $as_echo "no" >&6; }
11522 fi
11523
11524
11525 fi
11526 if test -z "$ac_cv_path_PKG_CONFIG"; then
11527 ac_pt_PKG_CONFIG=$PKG_CONFIG
11528 # Extract the first word of "pkg-config", so it can be a program name with args.
11529 set dummy pkg-config; ac_word=$2
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531 $as_echo_n "checking for $ac_word... " >&6; }
11532 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 case $ac_pt_PKG_CONFIG in
11536 [\\/]* | ?:[\\/]*)
11537 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11538 ;;
11539 *)
11540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541 for as_dir in $PATH
11542 do
11543 IFS=$as_save_IFS
11544 test -z "$as_dir" && as_dir=.
11545 for ac_exec_ext in '' $ac_executable_extensions; do
11546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11547 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11549 break 2
11550 fi
11551 done
11552 done
11553 IFS=$as_save_IFS
11554
11555 ;;
11556 esac
11557 fi
11558 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11559 if test -n "$ac_pt_PKG_CONFIG"; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11561 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11562 else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11565 fi
11566
11567 if test "x$ac_pt_PKG_CONFIG" = x; then
11568 PKG_CONFIG=""
11569 else
11570 case $cross_compiling:$ac_tool_warned in
11571 yes:)
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11574 ac_tool_warned=yes ;;
11575 esac
11576 PKG_CONFIG=$ac_pt_PKG_CONFIG
11577 fi
11578 else
11579 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11580 fi
11581
11582 fi
11583 if test -n "$PKG_CONFIG"; then
11584 _pkg_min_version=0.9.0
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11586 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11587 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589 $as_echo "yes" >&6; }
11590 else
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11593 PKG_CONFIG=""
11594 fi
11595 fi
11596
11597
11598
11599
11600
11601 if test "x$GCC" = xyes ; then
11602 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11603 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11604 -Wbad-function-cast -Wformat=2"
11605 case `$CC -dumpversion` in
11606 3.4.* | 4.*)
11607 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11608 ;;
11609 esac
11610 else
11611 if test "x$SUNCC" = "xyes"; then
11612 CWARNFLAGS="-v"
11613 fi
11614 fi
11615
11616
11617
11618 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
11619
11620
11621
11622
11623 # Check whether --enable-strict-compilation was given.
11624 if test "${enable_strict_compilation+set}" = set; then :
11625 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11626 else
11627 STRICT_COMPILE=no
11628 fi
11629
11630 if test "x$GCC" = xyes ; then
11631 STRICT_CFLAGS="-pedantic -Werror"
11632 # Add -Werror=attributes if supported (gcc 4.2 & later)
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11634 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11635 save_CFLAGS="$CFLAGS"
11636 CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639 return 0;
11640 _ACEOF
11641 if ac_fn_c_try_compile "$LINENO"; then :
11642 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11644 $as_echo "yes" >&6; }
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11648 fi
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 CFLAGS="$save_CFLAGS"
11651 elif test "x$SUNCC" = "xyes"; then
11652 STRICT_CFLAGS="-errwarn"
11653 elif test "x$INTELCC" = "xyes"; then
11654 STRICT_CFLAGS="-Werror"
11655 fi
11656 if test "x$STRICT_COMPILE" = "xyes"; then
11657 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11658 fi
11659
11660
11661
11662
11663
11664 cat >>confdefs.h <<_ACEOF
11665 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11666 _ACEOF
11667
11668 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11669 if test "x$PVM" = "x"; then
11670 PVM="0"
11671 fi
11672
11673 cat >>confdefs.h <<_ACEOF
11674 #define PACKAGE_VERSION_MINOR $PVM
11675 _ACEOF
11676
11677 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11678 if test "x$PVP" = "x"; then
11679 PVP="0"
11680 fi
11681
11682 cat >>confdefs.h <<_ACEOF
11683 #define PACKAGE_VERSION_PATCHLEVEL $PVP
11684 _ACEOF
11685
11686
11687
11688 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11689 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11690 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11691 echo 'git directory not found: installing possibly empty changelog.' >&2)"
11692
11693
11694
11695
11696 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11697 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11698 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11699 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11700 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11701
11702
11703
11704
11705
11706
11707 if test x$APP_MAN_SUFFIX = x ; then
11708 APP_MAN_SUFFIX=1
11709 fi
11710 if test x$APP_MAN_DIR = x ; then
11711 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11712 fi
11713
11714 if test x$LIB_MAN_SUFFIX = x ; then
11715 LIB_MAN_SUFFIX=3
11716 fi
11717 if test x$LIB_MAN_DIR = x ; then
11718 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11719 fi
11720
11721 if test x$FILE_MAN_SUFFIX = x ; then
11722 case $host_os in
11723 solaris*) FILE_MAN_SUFFIX=4 ;;
11724 *) FILE_MAN_SUFFIX=5 ;;
11725 esac
11726 fi
11727 if test x$FILE_MAN_DIR = x ; then
11728 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11729 fi
11730
11731 if test x$MISC_MAN_SUFFIX = x ; then
11732 case $host_os in
11733 solaris*) MISC_MAN_SUFFIX=5 ;;
11734 *) MISC_MAN_SUFFIX=7 ;;
11735 esac
11736 fi
11737 if test x$MISC_MAN_DIR = x ; then
11738 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11739 fi
11740
11741 if test x$DRIVER_MAN_SUFFIX = x ; then
11742 case $host_os in
11743 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11744 *) DRIVER_MAN_SUFFIX=4 ;;
11745 esac
11746 fi
11747 if test x$DRIVER_MAN_DIR = x ; then
11748 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11749 fi
11750
11751 if test x$ADMIN_MAN_SUFFIX = x ; then
11752 case $host_os in
11753 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11754 *) ADMIN_MAN_SUFFIX=8 ;;
11755 esac
11756 fi
11757 if test x$ADMIN_MAN_DIR = x ; then
11758 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11759 fi
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775 XORG_MAN_PAGE="X Version 11"
11776
11777 MAN_SUBSTS="\
11778 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11779 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11780 -e 's|__xservername__|Xorg|g' \
11781 -e 's|__xconfigfile__|xorg.conf|g' \
11782 -e 's|__xorgconfdir__|xorg.conf.d|g' \
11783 -e 's|__projectroot__|\$(prefix)|g' \
11784 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11785 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11786 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11787 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11788 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11789 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11790 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11791
11792
11793
11794 # Check whether --enable-silent-rules was given.
11795 if test "${enable_silent_rules+set}" = set; then :
11796 enableval=$enable_silent_rules;
11797 fi
11798
11799 case $enable_silent_rules in
11800 yes) AM_DEFAULT_VERBOSITY=0;;
11801 no) AM_DEFAULT_VERBOSITY=1;;
11802 *) AM_DEFAULT_VERBOSITY=0;;
11803 esac
11804 AM_BACKSLASH='\'
11805
11806
11807
11808 # Checks for libraries.
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
11810 $as_echo_n "checking for rint in -lm... " >&6; }
11811 if ${ac_cv_lib_m_rint+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 ac_check_lib_save_LIBS=$LIBS
11815 LIBS="-lm $LIBS"
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11822 #ifdef __cplusplus
11823 extern "C"
11824 #endif
11825 char rint ();
11826 int
11827 main ()
11828 {
11829 return rint ();
11830 ;
11831 return 0;
11832 }
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"; then :
11835 ac_cv_lib_m_rint=yes
11836 else
11837 ac_cv_lib_m_rint=no
11838 fi
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
11844 $as_echo "$ac_cv_lib_m_rint" >&6; }
11845 if test "x$ac_cv_lib_m_rint" = xyes; then :
11846 cat >>confdefs.h <<_ACEOF
11847 #define HAVE_LIBM 1
11848 _ACEOF
11849
11850 LIBS="-lm $LIBS"
11851
11852 fi
11853
11854
11855 # Store the list of server defined optional extensions in REQUIRED_MODULES
11856
11857
11858 SAVE_CFLAGS="$CFLAGS"
11859 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862
11863 #include "xorg-server.h"
11864 #if !defined RANDR
11865 #error RANDR not defined
11866 #endif
11867
11868 int
11869 main ()
11870 {
11871
11872 ;
11873 return 0;
11874 }
11875 _ACEOF
11876 if ac_fn_c_try_compile "$LINENO"; then :
11877 _EXT_CHECK=yes
11878 else
11879 _EXT_CHECK=no
11880 fi
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882 CFLAGS="$SAVE_CFLAGS"
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
11884 $as_echo_n "checking if RANDR is defined... " >&6; }
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
11886 $as_echo "$_EXT_CHECK" >&6; }
11887 if test "$_EXT_CHECK" != no; then
11888 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
11889 fi
11890
11891
11892 # Obtain compiler/linker options for the Synaptics driver dependencies
11893
11894 pkg_failed=no
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
11896 $as_echo_n "checking for XORG... " >&6; }
11897
11898 if test -n "$XORG_CFLAGS"; then
11899 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
11900 elif test -n "$PKG_CONFIG"; then
11901 if test -n "$PKG_CONFIG" && \
11902 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto inputproto \$REQUIRED_MODULES\""; } >&5
11903 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES") 2>&5
11904 ac_status=$?
11905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11906 test $ac_status = 0; }; then
11907 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
11908 else
11909 pkg_failed=yes
11910 fi
11911 else
11912 pkg_failed=untried
11913 fi
11914 if test -n "$XORG_LIBS"; then
11915 pkg_cv_XORG_LIBS="$XORG_LIBS"
11916 elif test -n "$PKG_CONFIG"; then
11917 if test -n "$PKG_CONFIG" && \
11918 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto inputproto \$REQUIRED_MODULES\""; } >&5
11919 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES") 2>&5
11920 ac_status=$?
11921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11922 test $ac_status = 0; }; then
11923 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
11924 else
11925 pkg_failed=yes
11926 fi
11927 else
11928 pkg_failed=untried
11929 fi
11930
11931
11932
11933 if test $pkg_failed = yes; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11936
11937 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11938 _pkg_short_errors_supported=yes
11939 else
11940 _pkg_short_errors_supported=no
11941 fi
11942 if test $_pkg_short_errors_supported = yes; then
11943 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>&1`
11944 else
11945 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES" 2>&1`
11946 fi
11947 # Put the nasty error message in config.log where it belongs
11948 echo "$XORG_PKG_ERRORS" >&5
11949
11950 as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto inputproto $REQUIRED_MODULES) were not met:
11951
11952 $XORG_PKG_ERRORS
11953
11954 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11955 installed software in a non-standard prefix.
11956
11957 Alternatively, you may set the environment variables XORG_CFLAGS
11958 and XORG_LIBS to avoid the need to call pkg-config.
11959 See the pkg-config man page for more details." "$LINENO" 5
11960
11961 elif test $pkg_failed = untried; then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11966 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11967 is in your PATH or set the PKG_CONFIG environment variable to the full
11968 path to pkg-config.
11969
11970 Alternatively, you may set the environment variables XORG_CFLAGS
11971 and XORG_LIBS to avoid the need to call pkg-config.
11972 See the pkg-config man page for more details.
11973
11974 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11975 See \`config.log' for more details" "$LINENO" 5; }
11976
11977 else
11978 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
11979 XORG_LIBS=$pkg_cv_XORG_LIBS
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11981 $as_echo "yes" >&6; }
11982
11983 fi
11984
11985 # X Server SDK location is required to install Synaptics header files
11986 # This location is also relayed in the xorg-synaptics.pc file
11987 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
11988
11989
11990 DRIVER_NAME=synaptics
11991
11992
11993 # -----------------------------------------------------------------------------
11994 # Configuration options
11995 # -----------------------------------------------------------------------------
11996 # Define a configure option for an alternate input module directory
11997
11998 # Check whether --with-xorg-module-dir was given.
11999 if test "${with_xorg_module_dir+set}" = set; then :
12000 withval=$with_xorg_module_dir; moduledir="$withval"
12001 else
12002 moduledir="$libdir/xorg/modules"
12003 fi
12004
12005 inputdir=${moduledir}/input
12006
12007
12008 # Define a configure option for an alternate X Server configuration directory
12009 sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
12010
12011 # Check whether --with-xorg-conf-dir was given.
12012 if test "${with_xorg_conf_dir+set}" = set; then :
12013 withval=$with_xorg_conf_dir; configdir="$withval"
12014 else
12015 configdir="$sysconfigdir"
12016 fi
12017
12018
12019 if test "x$sysconfigdir" != "x"; then
12020 HAS_XORG_CONF_DIR_TRUE=
12021 HAS_XORG_CONF_DIR_FALSE='#'
12022 else
12023 HAS_XORG_CONF_DIR_TRUE='#'
12024 HAS_XORG_CONF_DIR_FALSE=
12025 fi
12026
12027
12028 # Define a configure option to enable code debugging
12029 # Check whether --enable-debug was given.
12030 if test "${enable_debug+set}" = set; then :
12031 enableval=$enable_debug; DEBUGGING=$enableval
12032 else
12033 DEBUGGING=no
12034 fi
12035
12036 if test "x$DEBUGGING" = xyes; then
12037
12038 $as_echo "#define DEBUG 1" >>confdefs.h
12039
12040 fi
12041 if test "x$DEBUGGING" = xyes; then
12042 DEBUG_TRUE=
12043 DEBUG_FALSE='#'
12044 else
12045 DEBUG_TRUE='#'
12046 DEBUG_FALSE=
12047 fi
12048
12049
12050 # -----------------------------------------------------------------------------
12051 # Determine which backend, if any, to build
12052 # -----------------------------------------------------------------------------
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which optional backends will be build" >&5
12054 $as_echo_n "checking which optional backends will be build... " >&6; }
12055 case "${host}" in
12056 *linux*)
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: eventcomm" >&5
12058 $as_echo "eventcomm" >&6; }
12059 BUILD_EVENTCOMM="yes"
12060
12061 $as_echo "#define BUILD_EVENTCOMM 1" >>confdefs.h
12062
12063 ;;
12064 *freebsd* | *openbsd* | *netbsd* | *dragonfly*)
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: psmcomm" >&5
12066 $as_echo "psmcomm" >&6; }
12067 BUILD_PSMCOMM="yes"
12068
12069 $as_echo "#define BUILD_PSMCOMM 1" >>confdefs.h
12070
12071 ;;
12072 *)
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12074 $as_echo "none" >&6; }
12075 ;;
12076 esac
12077 if test "x${BUILD_EVENTCOMM}" = "xyes"; then
12078 BUILD_EVENTCOMM_TRUE=
12079 BUILD_EVENTCOMM_FALSE='#'
12080 else
12081 BUILD_EVENTCOMM_TRUE='#'
12082 BUILD_EVENTCOMM_FALSE=
12083 fi
12084
12085 if test "x${BUILD_PSMCOMM}" = "xyes"; then
12086 BUILD_PSMCOMM_TRUE=
12087 BUILD_PSMCOMM_FALSE='#'
12088 else
12089 BUILD_PSMCOMM_TRUE='#'
12090 BUILD_PSMCOMM_FALSE=
12091 fi
12092
12093
12094 # -----------------------------------------------------------------------------
12095 # Dependencies for synclient and syndaemon
12096 # -----------------------------------------------------------------------------
12097 # Obtain compiler/linker options for the Synaptics apps dependencies
12098
12099 pkg_failed=no
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
12101 $as_echo_n "checking for XI... " >&6; }
12102
12103 if test -n "$XI_CFLAGS"; then
12104 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
12105 elif test -n "$PKG_CONFIG"; then
12106 if test -n "$PKG_CONFIG" && \
12107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 inputproto xi >= 1.2\""; } >&5
12108 ($PKG_CONFIG --exists --print-errors "x11 inputproto xi >= 1.2") 2>&5
12109 ac_status=$?
12110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12111 test $ac_status = 0; }; then
12112 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "x11 inputproto xi >= 1.2" 2>/dev/null`
12113 else
12114 pkg_failed=yes
12115 fi
12116 else
12117 pkg_failed=untried
12118 fi
12119 if test -n "$XI_LIBS"; then
12120 pkg_cv_XI_LIBS="$XI_LIBS"
12121 elif test -n "$PKG_CONFIG"; then
12122 if test -n "$PKG_CONFIG" && \
12123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 inputproto xi >= 1.2\""; } >&5
12124 ($PKG_CONFIG --exists --print-errors "x11 inputproto xi >= 1.2") 2>&5
12125 ac_status=$?
12126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12127 test $ac_status = 0; }; then
12128 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "x11 inputproto xi >= 1.2" 2>/dev/null`
12129 else
12130 pkg_failed=yes
12131 fi
12132 else
12133 pkg_failed=untried
12134 fi
12135
12136
12137
12138 if test $pkg_failed = yes; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12141
12142 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12143 _pkg_short_errors_supported=yes
12144 else
12145 _pkg_short_errors_supported=no
12146 fi
12147 if test $_pkg_short_errors_supported = yes; then
12148 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 inputproto xi >= 1.2" 2>&1`
12149 else
12150 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 inputproto xi >= 1.2" 2>&1`
12151 fi
12152 # Put the nasty error message in config.log where it belongs
12153 echo "$XI_PKG_ERRORS" >&5
12154
12155 as_fn_error $? "Package requirements (x11 inputproto xi >= 1.2) were not met:
12156
12157 $XI_PKG_ERRORS
12158
12159 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12160 installed software in a non-standard prefix.
12161
12162 Alternatively, you may set the environment variables XI_CFLAGS
12163 and XI_LIBS to avoid the need to call pkg-config.
12164 See the pkg-config man page for more details." "$LINENO" 5
12165
12166 elif test $pkg_failed = untried; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12171 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12172 is in your PATH or set the PKG_CONFIG environment variable to the full
12173 path to pkg-config.
12174
12175 Alternatively, you may set the environment variables XI_CFLAGS
12176 and XI_LIBS to avoid the need to call pkg-config.
12177 See the pkg-config man page for more details.
12178
12179 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12180 See \`config.log' for more details" "$LINENO" 5; }
12181
12182 else
12183 XI_CFLAGS=$pkg_cv_XI_CFLAGS
12184 XI_LIBS=$pkg_cv_XI_LIBS
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12186 $as_echo "yes" >&6; }
12187
12188 fi
12189
12190 # The syndaemon program uses an optional XRecord extension implementation
12191 # If libxtst >= 1.0.99 is installed, Cflags contains the path to record.h
12192 # If recordproto < 1.13.99.1 is installed, Cflags contains the path to record.h
12193
12194 pkg_failed=no
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5
12196 $as_echo_n "checking for XTST... " >&6; }
12197
12198 if test -n "$XTST_CFLAGS"; then
12199 pkg_cv_XTST_CFLAGS="$XTST_CFLAGS"
12200 elif test -n "$PKG_CONFIG"; then
12201 if test -n "$PKG_CONFIG" && \
12202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst recordproto\""; } >&5
12203 ($PKG_CONFIG --exists --print-errors "xtst recordproto") 2>&5
12204 ac_status=$?
12205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12206 test $ac_status = 0; }; then
12207 pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst recordproto" 2>/dev/null`
12208 else
12209 pkg_failed=yes
12210 fi
12211 else
12212 pkg_failed=untried
12213 fi
12214 if test -n "$XTST_LIBS"; then
12215 pkg_cv_XTST_LIBS="$XTST_LIBS"
12216 elif test -n "$PKG_CONFIG"; then
12217 if test -n "$PKG_CONFIG" && \
12218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst recordproto\""; } >&5
12219 ($PKG_CONFIG --exists --print-errors "xtst recordproto") 2>&5
12220 ac_status=$?
12221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12222 test $ac_status = 0; }; then
12223 pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "xtst recordproto" 2>/dev/null`
12224 else
12225 pkg_failed=yes
12226 fi
12227 else
12228 pkg_failed=untried
12229 fi
12230
12231
12232
12233 if test $pkg_failed = yes; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12236
12237 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12238 _pkg_short_errors_supported=yes
12239 else
12240 _pkg_short_errors_supported=no
12241 fi
12242 if test $_pkg_short_errors_supported = yes; then
12243 XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst recordproto" 2>&1`
12244 else
12245 XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst recordproto" 2>&1`
12246 fi
12247 # Put the nasty error message in config.log where it belongs
12248 echo "$XTST_PKG_ERRORS" >&5
12249
12250 have_libxtst="no"
12251 elif test $pkg_failed = untried; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12254 have_libxtst="no"
12255 else
12256 XTST_CFLAGS=$pkg_cv_XTST_CFLAGS
12257 XTST_LIBS=$pkg_cv_XTST_LIBS
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12259 $as_echo "yes" >&6; }
12260 have_libxtst="yes"
12261 fi
12262 if test "x$have_libxtst" = "xyes" ; then
12263 # Header record.h may come from the xtst or recordproto package, or may be missing
12264 SAVE_CPPFLAGS="$CPPFLAGS"
12265 CPPFLAGS="$CPPFLAGS $XTST_CFLAGS"
12266 for ac_header in X11/extensions/record.h
12267 do :
12268 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/record.h" "ac_cv_header_X11_extensions_record_h" "#include <X11/Xlib.h>
12269 "
12270 if test "x$ac_cv_header_X11_extensions_record_h" = xyes; then :
12271 cat >>confdefs.h <<_ACEOF
12272 #define HAVE_X11_EXTENSIONS_RECORD_H 1
12273 _ACEOF
12274
12275 fi
12276
12277 done
12278
12279 CPPFLAGS="$SAVE_CPPFLAGS"
12280 fi
12281 # -----------------------------------------------------------------------------
12282
12283 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tools/Makefile conf/Makefile include/Makefile xorg-synaptics.pc"
12284
12285 cat >confcache <<\_ACEOF
12286 # This file is a shell script that caches the results of configure
12287 # tests run on this system so they can be shared between configure
12288 # scripts and configure runs, see configure's option --config-cache.
12289 # It is not useful on other systems. If it contains results you don't
12290 # want to keep, you may remove or edit it.
12291 #
12292 # config.status only pays attention to the cache file if you give it
12293 # the --recheck option to rerun configure.
12294 #
12295 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12296 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12297 # following values.
12298
12299 _ACEOF
12300
12301 # The following way of writing the cache mishandles newlines in values,
12302 # but we know of no workaround that is simple, portable, and efficient.
12303 # So, we kill variables containing newlines.
12304 # Ultrix sh set writes to stderr and can't be redirected directly,
12305 # and sets the high bit in the cache file unless we assign to the vars.
12306 (
12307 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12308 eval ac_val=\$$ac_var
12309 case $ac_val in #(
12310 *${as_nl}*)
12311 case $ac_var in #(
12312 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12313 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12314 esac
12315 case $ac_var in #(
12316 _ | IFS | as_nl) ;; #(
12317 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12318 *) { eval $ac_var=; unset $ac_var;} ;;
12319 esac ;;
12320 esac
12321 done
12322
12323 (set) 2>&1 |
12324 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12325 *${as_nl}ac_space=\ *)
12326 # `set' does not quote correctly, so add quotes: double-quote
12327 # substitution turns \\\\ into \\, and sed turns \\ into \.
12328 sed -n \
12329 "s/'/'\\\\''/g;
12330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12331 ;; #(
12332 *)
12333 # `set' quotes correctly as required by POSIX, so do not add quotes.
12334 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12335 ;;
12336 esac |
12337 sort
12338 ) |
12339 sed '
12340 /^ac_cv_env_/b end
12341 t clear
12342 :clear
12343 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12344 t end
12345 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12346 :end' >>confcache
12347 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12348 if test -w "$cache_file"; then
12349 if test "x$cache_file" != "x/dev/null"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12351 $as_echo "$as_me: updating cache $cache_file" >&6;}
12352 if test ! -f "$cache_file" || test -h "$cache_file"; then
12353 cat confcache >"$cache_file"
12354 else
12355 case $cache_file in #(
12356 */* | ?:*)
12357 mv -f confcache "$cache_file"$$ &&
12358 mv -f "$cache_file"$$ "$cache_file" ;; #(
12359 *)
12360 mv -f confcache "$cache_file" ;;
12361 esac
12362 fi
12363 fi
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12366 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12367 fi
12368 fi
12369 rm -f confcache
12370
12371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12372 # Let make expand exec_prefix.
12373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12374
12375 DEFS=-DHAVE_CONFIG_H
12376
12377 ac_libobjs=
12378 ac_ltlibobjs=
12379 U=
12380 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12381 # 1. Remove the extension, and $U if already installed.
12382 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12383 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12384 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12385 # will be set to the directory where LIBOBJS objects are built.
12386 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12387 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12388 done
12389 LIBOBJS=$ac_libobjs
12390
12391 LTLIBOBJS=$ac_ltlibobjs
12392
12393
12394 if test -n "$EXEEXT"; then
12395 am__EXEEXT_TRUE=
12396 am__EXEEXT_FALSE='#'
12397 else
12398 am__EXEEXT_TRUE='#'
12399 am__EXEEXT_FALSE=
12400 fi
12401
12402 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12403 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12405 fi
12406 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12407 as_fn_error $? "conditional \"AMDEP\" was never defined.
12408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12409 fi
12410 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12411 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12413 fi
12414 if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
12415 as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
12416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12417 fi
12418 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
12419 as_fn_error $? "conditional \"DEBUG\" was never defined.
12420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12421 fi
12422 if test -z "${BUILD_EVENTCOMM_TRUE}" && test -z "${BUILD_EVENTCOMM_FALSE}"; then
12423 as_fn_error $? "conditional \"BUILD_EVENTCOMM\" was never defined.
12424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12425 fi
12426 if test -z "${BUILD_PSMCOMM_TRUE}" && test -z "${BUILD_PSMCOMM_FALSE}"; then
12427 as_fn_error $? "conditional \"BUILD_PSMCOMM\" was never defined.
12428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12429 fi
12430
12431 : "${CONFIG_STATUS=./config.status}"
12432 ac_write_fail=0
12433 ac_clean_files_save=$ac_clean_files
12434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12436 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12437 as_write_fail=0
12438 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12439 #! $SHELL
12440 # Generated by $as_me.
12441 # Run this file to recreate the current configuration.
12442 # Compiler output produced by configure, useful for debugging
12443 # configure, is in config.log if it exists.
12444
12445 debug=false
12446 ac_cs_recheck=false
12447 ac_cs_silent=false
12448
12449 SHELL=\${CONFIG_SHELL-$SHELL}
12450 export SHELL
12451 _ASEOF
12452 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12453 ## -------------------- ##
12454 ## M4sh Initialization. ##
12455 ## -------------------- ##
12456
12457 # Be more Bourne compatible
12458 DUALCASE=1; export DUALCASE # for MKS sh
12459 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12460 emulate sh
12461 NULLCMD=:
12462 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12463 # is contrary to our usage. Disable this feature.
12464 alias -g '${1+"$@"}'='"$@"'
12465 setopt NO_GLOB_SUBST
12466 else
12467 case `(set -o) 2>/dev/null` in #(
12468 *posix*) :
12469 set -o posix ;; #(
12470 *) :
12471 ;;
12472 esac
12473 fi
12474
12475
12476 as_nl='
12477 '
12478 export as_nl
12479 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12480 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12481 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12482 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12483 # Prefer a ksh shell builtin over an external printf program on Solaris,
12484 # but without wasting forks for bash or zsh.
12485 if test -z "$BASH_VERSION$ZSH_VERSION" \
12486 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12487 as_echo='print -r --'
12488 as_echo_n='print -rn --'
12489 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12490 as_echo='printf %s\n'
12491 as_echo_n='printf %s'
12492 else
12493 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12494 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12495 as_echo_n='/usr/ucb/echo -n'
12496 else
12497 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12498 as_echo_n_body='eval
12499 arg=$1;
12500 case $arg in #(
12501 *"$as_nl"*)
12502 expr "X$arg" : "X\\(.*\\)$as_nl";
12503 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12504 esac;
12505 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12506 '
12507 export as_echo_n_body
12508 as_echo_n='sh -c $as_echo_n_body as_echo'
12509 fi
12510 export as_echo_body
12511 as_echo='sh -c $as_echo_body as_echo'
12512 fi
12513
12514 # The user is always right.
12515 if test "${PATH_SEPARATOR+set}" != set; then
12516 PATH_SEPARATOR=:
12517 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12518 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12519 PATH_SEPARATOR=';'
12520 }
12521 fi
12522
12523
12524 # IFS
12525 # We need space, tab and new line, in precisely that order. Quoting is
12526 # there to prevent editors from complaining about space-tab.
12527 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12528 # splitting by setting IFS to empty value.)
12529 IFS=" "" $as_nl"
12530
12531 # Find who we are. Look in the path if we contain no directory separator.
12532 as_myself=
12533 case $0 in #((
12534 *[\\/]* ) as_myself=$0 ;;
12535 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536 for as_dir in $PATH
12537 do
12538 IFS=$as_save_IFS
12539 test -z "$as_dir" && as_dir=.
12540 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12541 done
12542 IFS=$as_save_IFS
12543
12544 ;;
12545 esac
12546 # We did not find ourselves, most probably we were run as `sh COMMAND'
12547 # in which case we are not to be found in the path.
12548 if test "x$as_myself" = x; then
12549 as_myself=$0
12550 fi
12551 if test ! -f "$as_myself"; then
12552 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12553 exit 1
12554 fi
12555
12556 # Unset variables that we do not need and which cause bugs (e.g. in
12557 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12558 # suppresses any "Segmentation fault" message there. '((' could
12559 # trigger a bug in pdksh 5.2.14.
12560 for as_var in BASH_ENV ENV MAIL MAILPATH
12561 do eval test x\${$as_var+set} = xset \
12562 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12563 done
12564 PS1='$ '
12565 PS2='> '
12566 PS4='+ '
12567
12568 # NLS nuisances.
12569 LC_ALL=C
12570 export LC_ALL
12571 LANGUAGE=C
12572 export LANGUAGE
12573
12574 # CDPATH.
12575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12576
12577
12578 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12579 # ----------------------------------------
12580 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12581 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12582 # script with STATUS, using 1 if that was 0.
12583 as_fn_error ()
12584 {
12585 as_status=$1; test $as_status -eq 0 && as_status=1
12586 if test "$4"; then
12587 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12588 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12589 fi
12590 $as_echo "$as_me: error: $2" >&2
12591 as_fn_exit $as_status
12592 } # as_fn_error
12593
12594
12595 # as_fn_set_status STATUS
12596 # -----------------------
12597 # Set $? to STATUS, without forking.
12598 as_fn_set_status ()
12599 {
12600 return $1
12601 } # as_fn_set_status
12602
12603 # as_fn_exit STATUS
12604 # -----------------
12605 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12606 as_fn_exit ()
12607 {
12608 set +e
12609 as_fn_set_status $1
12610 exit $1
12611 } # as_fn_exit
12612
12613 # as_fn_unset VAR
12614 # ---------------
12615 # Portably unset VAR.
12616 as_fn_unset ()
12617 {
12618 { eval $1=; unset $1;}
12619 }
12620 as_unset=as_fn_unset
12621 # as_fn_append VAR VALUE
12622 # ----------------------
12623 # Append the text in VALUE to the end of the definition contained in VAR. Take
12624 # advantage of any shell optimizations that allow amortized linear growth over
12625 # repeated appends, instead of the typical quadratic growth present in naive
12626 # implementations.
12627 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12628 eval 'as_fn_append ()
12629 {
12630 eval $1+=\$2
12631 }'
12632 else
12633 as_fn_append ()
12634 {
12635 eval $1=\$$1\$2
12636 }
12637 fi # as_fn_append
12638
12639 # as_fn_arith ARG...
12640 # ------------------
12641 # Perform arithmetic evaluation on the ARGs, and store the result in the
12642 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12643 # must be portable across $(()) and expr.
12644 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12645 eval 'as_fn_arith ()
12646 {
12647 as_val=$(( $* ))
12648 }'
12649 else
12650 as_fn_arith ()
12651 {
12652 as_val=`expr "$@" || test $? -eq 1`
12653 }
12654 fi # as_fn_arith
12655
12656
12657 if expr a : '\(a\)' >/dev/null 2>&1 &&
12658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12659 as_expr=expr
12660 else
12661 as_expr=false
12662 fi
12663
12664 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12665 as_basename=basename
12666 else
12667 as_basename=false
12668 fi
12669
12670 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12671 as_dirname=dirname
12672 else
12673 as_dirname=false
12674 fi
12675
12676 as_me=`$as_basename -- "$0" ||
12677 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12678 X"$0" : 'X\(//\)$' \| \
12679 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12680 $as_echo X/"$0" |
12681 sed '/^.*\/\([^/][^/]*\)\/*$/{
12682 s//\1/
12683 q
12684 }
12685 /^X\/\(\/\/\)$/{
12686 s//\1/
12687 q
12688 }
12689 /^X\/\(\/\).*/{
12690 s//\1/
12691 q
12692 }
12693 s/.*/./; q'`
12694
12695 # Avoid depending upon Character Ranges.
12696 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12697 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12698 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12699 as_cr_digits='0123456789'
12700 as_cr_alnum=$as_cr_Letters$as_cr_digits
12701
12702 ECHO_C= ECHO_N= ECHO_T=
12703 case `echo -n x` in #(((((
12704 -n*)
12705 case `echo 'xy\c'` in
12706 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12707 xy) ECHO_C='\c';;
12708 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12709 ECHO_T=' ';;
12710 esac;;
12711 *)
12712 ECHO_N='-n';;
12713 esac
12714
12715 rm -f conf$$ conf$$.exe conf$$.file
12716 if test -d conf$$.dir; then
12717 rm -f conf$$.dir/conf$$.file
12718 else
12719 rm -f conf$$.dir
12720 mkdir conf$$.dir 2>/dev/null
12721 fi
12722 if (echo >conf$$.file) 2>/dev/null; then
12723 if ln -s conf$$.file conf$$ 2>/dev/null; then
12724 as_ln_s='ln -s'
12725 # ... but there are two gotchas:
12726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12728 # In both cases, we have to default to `cp -p'.
12729 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12730 as_ln_s='cp -p'
12731 elif ln conf$$.file conf$$ 2>/dev/null; then
12732 as_ln_s=ln
12733 else
12734 as_ln_s='cp -p'
12735 fi
12736 else
12737 as_ln_s='cp -p'
12738 fi
12739 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12740 rmdir conf$$.dir 2>/dev/null
12741
12742
12743 # as_fn_mkdir_p
12744 # -------------
12745 # Create "$as_dir" as a directory, including parents if necessary.
12746 as_fn_mkdir_p ()
12747 {
12748
12749 case $as_dir in #(
12750 -*) as_dir=./$as_dir;;
12751 esac
12752 test -d "$as_dir" || eval $as_mkdir_p || {
12753 as_dirs=
12754 while :; do
12755 case $as_dir in #(
12756 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12757 *) as_qdir=$as_dir;;
12758 esac
12759 as_dirs="'$as_qdir' $as_dirs"
12760 as_dir=`$as_dirname -- "$as_dir" ||
12761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12762 X"$as_dir" : 'X\(//\)[^/]' \| \
12763 X"$as_dir" : 'X\(//\)$' \| \
12764 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12765 $as_echo X"$as_dir" |
12766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12767 s//\1/
12768 q
12769 }
12770 /^X\(\/\/\)[^/].*/{
12771 s//\1/
12772 q
12773 }
12774 /^X\(\/\/\)$/{
12775 s//\1/
12776 q
12777 }
12778 /^X\(\/\).*/{
12779 s//\1/
12780 q
12781 }
12782 s/.*/./; q'`
12783 test -d "$as_dir" && break
12784 done
12785 test -z "$as_dirs" || eval "mkdir $as_dirs"
12786 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12787
12788
12789 } # as_fn_mkdir_p
12790 if mkdir -p . 2>/dev/null; then
12791 as_mkdir_p='mkdir -p "$as_dir"'
12792 else
12793 test -d ./-p && rmdir ./-p
12794 as_mkdir_p=false
12795 fi
12796
12797 if test -x / >/dev/null 2>&1; then
12798 as_test_x='test -x'
12799 else
12800 if ls -dL / >/dev/null 2>&1; then
12801 as_ls_L_option=L
12802 else
12803 as_ls_L_option=
12804 fi
12805 as_test_x='
12806 eval sh -c '\''
12807 if test -d "$1"; then
12808 test -d "$1/.";
12809 else
12810 case $1 in #(
12811 -*)set "./$1";;
12812 esac;
12813 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12814 ???[sx]*):;;*)false;;esac;fi
12815 '\'' sh
12816 '
12817 fi
12818 as_executable_p=$as_test_x
12819
12820 # Sed expression to map a string onto a valid CPP name.
12821 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12822
12823 # Sed expression to map a string onto a valid variable name.
12824 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12825
12826
12827 exec 6>&1
12828 ## ----------------------------------- ##
12829 ## Main body of $CONFIG_STATUS script. ##
12830 ## ----------------------------------- ##
12831 _ASEOF
12832 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12833
12834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12835 # Save the log message, to keep $0 and so on meaningful, and to
12836 # report actual input values of CONFIG_FILES etc. instead of their
12837 # values after options handling.
12838 ac_log="
12839 This file was extended by xf86-input-synaptics $as_me 1.4.1, which was
12840 generated by GNU Autoconf 2.68. Invocation command line was
12841
12842 CONFIG_FILES = $CONFIG_FILES
12843 CONFIG_HEADERS = $CONFIG_HEADERS
12844 CONFIG_LINKS = $CONFIG_LINKS
12845 CONFIG_COMMANDS = $CONFIG_COMMANDS
12846 $ $0 $@
12847
12848 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12849 "
12850
12851 _ACEOF
12852
12853 case $ac_config_files in *"
12854 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12855 esac
12856
12857 case $ac_config_headers in *"
12858 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12859 esac
12860
12861
12862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12863 # Files that config.status was made for.
12864 config_files="$ac_config_files"
12865 config_headers="$ac_config_headers"
12866 config_commands="$ac_config_commands"
12867
12868 _ACEOF
12869
12870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12871 ac_cs_usage="\
12872 \`$as_me' instantiates files and other configuration actions
12873 from templates according to the current configuration. Unless the files
12874 and actions are specified as TAGs, all are instantiated by default.
12875
12876 Usage: $0 [OPTION]... [TAG]...
12877
12878 -h, --help print this help, then exit
12879 -V, --version print version number and configuration settings, then exit
12880 --config print configuration, then exit
12881 -q, --quiet, --silent
12882 do not print progress messages
12883 -d, --debug don't remove temporary files
12884 --recheck update $as_me by reconfiguring in the same conditions
12885 --file=FILE[:TEMPLATE]
12886 instantiate the configuration file FILE
12887 --header=FILE[:TEMPLATE]
12888 instantiate the configuration header FILE
12889
12890 Configuration files:
12891 $config_files
12892
12893 Configuration headers:
12894 $config_headers
12895
12896 Configuration commands:
12897 $config_commands
12898
12899 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12900
12901 _ACEOF
12902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12903 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12904 ac_cs_version="\\
12905 xf86-input-synaptics config.status 1.4.1
12906 configured by $0, generated by GNU Autoconf 2.68,
12907 with options \\"\$ac_cs_config\\"
12908
12909 Copyright (C) 2010 Free Software Foundation, Inc.
12910 This config.status script is free software; the Free Software Foundation
12911 gives unlimited permission to copy, distribute and modify it."
12912
12913 ac_pwd='$ac_pwd'
12914 srcdir='$srcdir'
12915 INSTALL='$INSTALL'
12916 MKDIR_P='$MKDIR_P'
12917 AWK='$AWK'
12918 test -n "\$AWK" || AWK=awk
12919 _ACEOF
12920
12921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12922 # The default lists apply if the user does not specify any file.
12923 ac_need_defaults=:
12924 while test $# != 0
12925 do
12926 case $1 in
12927 --*=?*)
12928 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12929 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12930 ac_shift=:
12931 ;;
12932 --*=)
12933 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12934 ac_optarg=
12935 ac_shift=:
12936 ;;
12937 *)
12938 ac_option=$1
12939 ac_optarg=$2
12940 ac_shift=shift
12941 ;;
12942 esac
12943
12944 case $ac_option in
12945 # Handling of the options.
12946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12947 ac_cs_recheck=: ;;
12948 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12949 $as_echo "$ac_cs_version"; exit ;;
12950 --config | --confi | --conf | --con | --co | --c )
12951 $as_echo "$ac_cs_config"; exit ;;
12952 --debug | --debu | --deb | --de | --d | -d )
12953 debug=: ;;
12954 --file | --fil | --fi | --f )
12955 $ac_shift
12956 case $ac_optarg in
12957 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12958 '') as_fn_error $? "missing file argument" ;;
12959 esac
12960 as_fn_append CONFIG_FILES " '$ac_optarg'"
12961 ac_need_defaults=false;;
12962 --header | --heade | --head | --hea )
12963 $ac_shift
12964 case $ac_optarg in
12965 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12966 esac
12967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12968 ac_need_defaults=false;;
12969 --he | --h)
12970 # Conflict between --help and --header
12971 as_fn_error $? "ambiguous option: \`$1'
12972 Try \`$0 --help' for more information.";;
12973 --help | --hel | -h )
12974 $as_echo "$ac_cs_usage"; exit ;;
12975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12976 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12977 ac_cs_silent=: ;;
12978
12979 # This is an error.
12980 -*) as_fn_error $? "unrecognized option: \`$1'
12981 Try \`$0 --help' for more information." ;;
12982
12983 *) as_fn_append ac_config_targets " $1"
12984 ac_need_defaults=false ;;
12985
12986 esac
12987 shift
12988 done
12989
12990 ac_configure_extra_args=
12991
12992 if $ac_cs_silent; then
12993 exec 6>/dev/null
12994 ac_configure_extra_args="$ac_configure_extra_args --silent"
12995 fi
12996
12997 _ACEOF
12998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12999 if \$ac_cs_recheck; then
13000 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13001 shift
13002 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13003 CONFIG_SHELL='$SHELL'
13004 export CONFIG_SHELL
13005 exec "\$@"
13006 fi
13007
13008 _ACEOF
13009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13010 exec 5>>config.log
13011 {
13012 echo
13013 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13014 ## Running $as_me. ##
13015 _ASBOX
13016 $as_echo "$ac_log"
13017 } >&5
13018
13019 _ACEOF
13020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13021 #
13022 # INIT-COMMANDS
13023 #
13024 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13025
13026
13027 # The HP-UX ksh and POSIX shell print the target directory to stdout
13028 # if CDPATH is set.
13029 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13030
13031 sed_quote_subst='$sed_quote_subst'
13032 double_quote_subst='$double_quote_subst'
13033 delay_variable_subst='$delay_variable_subst'
13034 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13035 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13036 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13037 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13038 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13039 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13040 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13041 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13042 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13043 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13044 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13045 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13046 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13047 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13048 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13049 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13050 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13051 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13052 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13053 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13054 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13055 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13056 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13057 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13058 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13059 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13060 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13061 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13062 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13063 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13064 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13065 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13066 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13067 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13068 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13069 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13070 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13071 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13072 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13073 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13074 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13075 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13076 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13077 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13078 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13079 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13080 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13081 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13082 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13083 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13084 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13085 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13086 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13087 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13088 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13089 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"`'
13090 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13091 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13092 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13093 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13094 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13095 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13096 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13097 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13098 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13099 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13100 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13101 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13102 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13103 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13104 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13105 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13106 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13107 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13108 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13109 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13110 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13111 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13112 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13113 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13114 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13115 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13116 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13117 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13118 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13119 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13120 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13121 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13122 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13123 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13124 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13125 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13126 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13127 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13128 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13129 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13130 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13131 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13132 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13133 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13134 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13135 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13136 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13137 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13138 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13139 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13140 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13141 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13142 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13143 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13144 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13145 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13146 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13147 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13148 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13149 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13150 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13151 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13152 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13153 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13154 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13155 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13156 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13157 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13158 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13159 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13160 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13161 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13162 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13163 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13164
13165 LTCC='$LTCC'
13166 LTCFLAGS='$LTCFLAGS'
13167 compiler='$compiler_DEFAULT'
13168
13169 # A function that is used when there is no print builtin or printf.
13170 func_fallback_echo ()
13171 {
13172 eval 'cat <<_LTECHO_EOF
13173 \$1
13174 _LTECHO_EOF'
13175 }
13176
13177 # Quote evaled strings.
13178 for var in SHELL \
13179 ECHO \
13180 SED \
13181 GREP \
13182 EGREP \
13183 FGREP \
13184 LD \
13185 NM \
13186 LN_S \
13187 lt_SP2NL \
13188 lt_NL2SP \
13189 reload_flag \
13190 OBJDUMP \
13191 deplibs_check_method \
13192 file_magic_cmd \
13193 file_magic_glob \
13194 want_nocaseglob \
13195 DLLTOOL \
13196 sharedlib_from_linklib_cmd \
13197 AR \
13198 AR_FLAGS \
13199 archiver_list_spec \
13200 STRIP \
13201 RANLIB \
13202 CC \
13203 CFLAGS \
13204 compiler \
13205 lt_cv_sys_global_symbol_pipe \
13206 lt_cv_sys_global_symbol_to_cdecl \
13207 lt_cv_sys_global_symbol_to_c_name_address \
13208 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13209 nm_file_list_spec \
13210 lt_prog_compiler_no_builtin_flag \
13211 lt_prog_compiler_pic \
13212 lt_prog_compiler_wl \
13213 lt_prog_compiler_static \
13214 lt_cv_prog_compiler_c_o \
13215 need_locks \
13216 MANIFEST_TOOL \
13217 DSYMUTIL \
13218 NMEDIT \
13219 LIPO \
13220 OTOOL \
13221 OTOOL64 \
13222 shrext_cmds \
13223 export_dynamic_flag_spec \
13224 whole_archive_flag_spec \
13225 compiler_needs_object \
13226 with_gnu_ld \
13227 allow_undefined_flag \
13228 no_undefined_flag \
13229 hardcode_libdir_flag_spec \
13230 hardcode_libdir_flag_spec_ld \
13231 hardcode_libdir_separator \
13232 exclude_expsyms \
13233 include_expsyms \
13234 file_list_spec \
13235 variables_saved_for_relink \
13236 libname_spec \
13237 library_names_spec \
13238 soname_spec \
13239 install_override_mode \
13240 finish_eval \
13241 old_striplib \
13242 striplib; do
13243 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13244 *[\\\\\\\`\\"\\\$]*)
13245 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13246 ;;
13247 *)
13248 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13249 ;;
13250 esac
13251 done
13252
13253 # Double-quote double-evaled strings.
13254 for var in reload_cmds \
13255 old_postinstall_cmds \
13256 old_postuninstall_cmds \
13257 old_archive_cmds \
13258 extract_expsyms_cmds \
13259 old_archive_from_new_cmds \
13260 old_archive_from_expsyms_cmds \
13261 archive_cmds \
13262 archive_expsym_cmds \
13263 module_cmds \
13264 module_expsym_cmds \
13265 export_symbols_cmds \
13266 prelink_cmds \
13267 postlink_cmds \
13268 postinstall_cmds \
13269 postuninstall_cmds \
13270 finish_cmds \
13271 sys_lib_search_path_spec \
13272 sys_lib_dlsearch_path_spec; do
13273 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13274 *[\\\\\\\`\\"\\\$]*)
13275 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13276 ;;
13277 *)
13278 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13279 ;;
13280 esac
13281 done
13282
13283 ac_aux_dir='$ac_aux_dir'
13284 xsi_shell='$xsi_shell'
13285 lt_shell_append='$lt_shell_append'
13286
13287 # See if we are running on zsh, and set the options which allow our
13288 # commands through without removal of \ escapes INIT.
13289 if test -n "\${ZSH_VERSION+set}" ; then
13290 setopt NO_GLOB_SUBST
13291 fi
13292
13293
13294 PACKAGE='$PACKAGE'
13295 VERSION='$VERSION'
13296 TIMESTAMP='$TIMESTAMP'
13297 RM='$RM'
13298 ofile='$ofile'
13299
13300
13301
13302
13303 _ACEOF
13304
13305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13306
13307 # Handling of arguments.
13308 for ac_config_target in $ac_config_targets
13309 do
13310 case $ac_config_target in
13311 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13312 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13313 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13314 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13315 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13316 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13317 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13318 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
13319 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13320 "xorg-synaptics.pc") CONFIG_FILES="$CONFIG_FILES xorg-synaptics.pc" ;;
13321
13322 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13323 esac
13324 done
13325
13326
13327 # If the user did not use the arguments to specify the items to instantiate,
13328 # then the envvar interface is used. Set only those that are not.
13329 # We use the long form for the default assignment because of an extremely
13330 # bizarre bug on SunOS 4.1.3.
13331 if $ac_need_defaults; then
13332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13334 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13335 fi
13336
13337 # Have a temporary directory for convenience. Make it in the build tree
13338 # simply because there is no reason against having it here, and in addition,
13339 # creating and moving files from /tmp can sometimes cause problems.
13340 # Hook for its removal unless debugging.
13341 # Note that there is a small window in which the directory will not be cleaned:
13342 # after its creation but before its name has been assigned to `$tmp'.
13343 $debug ||
13344 {
13345 tmp= ac_tmp=
13346 trap 'exit_status=$?
13347 : "${ac_tmp:=$tmp}"
13348 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13349 ' 0
13350 trap 'as_fn_exit 1' 1 2 13 15
13351 }
13352 # Create a (secure) tmp directory for tmp files.
13353
13354 {
13355 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13356 test -d "$tmp"
13357 } ||
13358 {
13359 tmp=./conf$$-$RANDOM
13360 (umask 077 && mkdir "$tmp")
13361 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13362 ac_tmp=$tmp
13363
13364 # Set up the scripts for CONFIG_FILES section.
13365 # No need to generate them if there are no CONFIG_FILES.
13366 # This happens for instance with `./config.status config.h'.
13367 if test -n "$CONFIG_FILES"; then
13368
13369
13370 ac_cr=`echo X | tr X '\015'`
13371 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13372 # But we know of no other shell where ac_cr would be empty at this
13373 # point, so we can use a bashism as a fallback.
13374 if test "x$ac_cr" = x; then
13375 eval ac_cr=\$\'\\r\'
13376 fi
13377 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13378 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13379 ac_cs_awk_cr='\\r'
13380 else
13381 ac_cs_awk_cr=$ac_cr
13382 fi
13383
13384 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13385 _ACEOF
13386
13387
13388 {
13389 echo "cat >conf$$subs.awk <<_ACEOF" &&
13390 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13391 echo "_ACEOF"
13392 } >conf$$subs.sh ||
13393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13394 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13395 ac_delim='%!_!# '
13396 for ac_last_try in false false false false false :; do
13397 . ./conf$$subs.sh ||
13398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13399
13400 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13401 if test $ac_delim_n = $ac_delim_num; then
13402 break
13403 elif $ac_last_try; then
13404 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13405 else
13406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13407 fi
13408 done
13409 rm -f conf$$subs.sh
13410
13411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13412 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13413 _ACEOF
13414 sed -n '
13415 h
13416 s/^/S["/; s/!.*/"]=/
13417 p
13418 g
13419 s/^[^!]*!//
13420 :repl
13421 t repl
13422 s/'"$ac_delim"'$//
13423 t delim
13424 :nl
13425 h
13426 s/\(.\{148\}\)..*/\1/
13427 t more1
13428 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13429 p
13430 n
13431 b repl
13432 :more1
13433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13434 p
13435 g
13436 s/.\{148\}//
13437 t nl
13438 :delim
13439 h
13440 s/\(.\{148\}\)..*/\1/
13441 t more2
13442 s/["\\]/\\&/g; s/^/"/; s/$/"/
13443 p
13444 b
13445 :more2
13446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13447 p
13448 g
13449 s/.\{148\}//
13450 t delim
13451 ' <conf$$subs.awk | sed '
13452 /^[^""]/{
13453 N
13454 s/\n//
13455 }
13456 ' >>$CONFIG_STATUS || ac_write_fail=1
13457 rm -f conf$$subs.awk
13458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13459 _ACAWK
13460 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13461 for (key in S) S_is_set[key] = 1
13462 FS = ""
13463
13464 }
13465 {
13466 line = $ 0
13467 nfields = split(line, field, "@")
13468 substed = 0
13469 len = length(field[1])
13470 for (i = 2; i < nfields; i++) {
13471 key = field[i]
13472 keylen = length(key)
13473 if (S_is_set[key]) {
13474 value = S[key]
13475 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13476 len += length(value) + length(field[++i])
13477 substed = 1
13478 } else
13479 len += 1 + keylen
13480 }
13481
13482 print line
13483 }
13484
13485 _ACAWK
13486 _ACEOF
13487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13488 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13489 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13490 else
13491 cat
13492 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13493 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13494 _ACEOF
13495
13496 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13497 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13498 # trailing colons and then remove the whole line if VPATH becomes empty
13499 # (actually we leave an empty line to preserve line numbers).
13500 if test "x$srcdir" = x.; then
13501 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13502 h
13503 s///
13504 s/^/:/
13505 s/[ ]*$/:/
13506 s/:\$(srcdir):/:/g
13507 s/:\${srcdir}:/:/g
13508 s/:@srcdir@:/:/g
13509 s/^:*//
13510 s/:*$//
13511 x
13512 s/\(=[ ]*\).*/\1/
13513 G
13514 s/\n//
13515 s/^[^=]*=[ ]*$//
13516 }'
13517 fi
13518
13519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13520 fi # test -n "$CONFIG_FILES"
13521
13522 # Set up the scripts for CONFIG_HEADERS section.
13523 # No need to generate them if there are no CONFIG_HEADERS.
13524 # This happens for instance with `./config.status Makefile'.
13525 if test -n "$CONFIG_HEADERS"; then
13526 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13527 BEGIN {
13528 _ACEOF
13529
13530 # Transform confdefs.h into an awk script `defines.awk', embedded as
13531 # here-document in config.status, that substitutes the proper values into
13532 # config.h.in to produce config.h.
13533
13534 # Create a delimiter string that does not exist in confdefs.h, to ease
13535 # handling of long lines.
13536 ac_delim='%!_!# '
13537 for ac_last_try in false false :; do
13538 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13539 if test -z "$ac_tt"; then
13540 break
13541 elif $ac_last_try; then
13542 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13543 else
13544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13545 fi
13546 done
13547
13548 # For the awk script, D is an array of macro values keyed by name,
13549 # likewise P contains macro parameters if any. Preserve backslash
13550 # newline sequences.
13551
13552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13553 sed -n '
13554 s/.\{148\}/&'"$ac_delim"'/g
13555 t rset
13556 :rset
13557 s/^[ ]*#[ ]*define[ ][ ]*/ /
13558 t def
13559 d
13560 :def
13561 s/\\$//
13562 t bsnl
13563 s/["\\]/\\&/g
13564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13565 D["\1"]=" \3"/p
13566 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13567 d
13568 :bsnl
13569 s/["\\]/\\&/g
13570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13571 D["\1"]=" \3\\\\\\n"\\/p
13572 t cont
13573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13574 t cont
13575 d
13576 :cont
13577 n
13578 s/.\{148\}/&'"$ac_delim"'/g
13579 t clear
13580 :clear
13581 s/\\$//
13582 t bsnlc
13583 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13584 d
13585 :bsnlc
13586 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13587 b cont
13588 ' <confdefs.h | sed '
13589 s/'"$ac_delim"'/"\\\
13590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13591
13592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13593 for (key in D) D_is_set[key] = 1
13594 FS = ""
13595 }
13596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13597 line = \$ 0
13598 split(line, arg, " ")
13599 if (arg[1] == "#") {
13600 defundef = arg[2]
13601 mac1 = arg[3]
13602 } else {
13603 defundef = substr(arg[1], 2)
13604 mac1 = arg[2]
13605 }
13606 split(mac1, mac2, "(") #)
13607 macro = mac2[1]
13608 prefix = substr(line, 1, index(line, defundef) - 1)
13609 if (D_is_set[macro]) {
13610 # Preserve the white space surrounding the "#".
13611 print prefix "define", macro P[macro] D[macro]
13612 next
13613 } else {
13614 # Replace #undef with comments. This is necessary, for example,
13615 # in the case of _POSIX_SOURCE, which is predefined and required
13616 # on some systems where configure will not decide to define it.
13617 if (defundef == "undef") {
13618 print "/*", prefix defundef, macro, "*/"
13619 next
13620 }
13621 }
13622 }
13623 { print }
13624 _ACAWK
13625 _ACEOF
13626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13627 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13628 fi # test -n "$CONFIG_HEADERS"
13629
13630
13631 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13632 shift
13633 for ac_tag
13634 do
13635 case $ac_tag in
13636 :[FHLC]) ac_mode=$ac_tag; continue;;
13637 esac
13638 case $ac_mode$ac_tag in
13639 :[FHL]*:*);;
13640 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13641 :[FH]-) ac_tag=-:-;;
13642 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13643 esac
13644 ac_save_IFS=$IFS
13645 IFS=:
13646 set x $ac_tag
13647 IFS=$ac_save_IFS
13648 shift
13649 ac_file=$1
13650 shift
13651
13652 case $ac_mode in
13653 :L) ac_source=$1;;
13654 :[FH])
13655 ac_file_inputs=
13656 for ac_f
13657 do
13658 case $ac_f in
13659 -) ac_f="$ac_tmp/stdin";;
13660 *) # Look for the file first in the build tree, then in the source tree
13661 # (if the path is not absolute). The absolute path cannot be DOS-style,
13662 # because $ac_f cannot contain `:'.
13663 test -f "$ac_f" ||
13664 case $ac_f in
13665 [\\/$]*) false;;
13666 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13667 esac ||
13668 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13669 esac
13670 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13671 as_fn_append ac_file_inputs " '$ac_f'"
13672 done
13673
13674 # Let's still pretend it is `configure' which instantiates (i.e., don't
13675 # use $as_me), people would be surprised to read:
13676 # /* config.h. Generated by config.status. */
13677 configure_input='Generated from '`
13678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13679 `' by configure.'
13680 if test x"$ac_file" != x-; then
13681 configure_input="$ac_file. $configure_input"
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13683 $as_echo "$as_me: creating $ac_file" >&6;}
13684 fi
13685 # Neutralize special characters interpreted by sed in replacement strings.
13686 case $configure_input in #(
13687 *\&* | *\|* | *\\* )
13688 ac_sed_conf_input=`$as_echo "$configure_input" |
13689 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13690 *) ac_sed_conf_input=$configure_input;;
13691 esac
13692
13693 case $ac_tag in
13694 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13696 esac
13697 ;;
13698 esac
13699
13700 ac_dir=`$as_dirname -- "$ac_file" ||
13701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13702 X"$ac_file" : 'X\(//\)[^/]' \| \
13703 X"$ac_file" : 'X\(//\)$' \| \
13704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13705 $as_echo X"$ac_file" |
13706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13707 s//\1/
13708 q
13709 }
13710 /^X\(\/\/\)[^/].*/{
13711 s//\1/
13712 q
13713 }
13714 /^X\(\/\/\)$/{
13715 s//\1/
13716 q
13717 }
13718 /^X\(\/\).*/{
13719 s//\1/
13720 q
13721 }
13722 s/.*/./; q'`
13723 as_dir="$ac_dir"; as_fn_mkdir_p
13724 ac_builddir=.
13725
13726 case "$ac_dir" in
13727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13728 *)
13729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13730 # A ".." for each directory in $ac_dir_suffix.
13731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13732 case $ac_top_builddir_sub in
13733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13735 esac ;;
13736 esac
13737 ac_abs_top_builddir=$ac_pwd
13738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13739 # for backward compatibility:
13740 ac_top_builddir=$ac_top_build_prefix
13741
13742 case $srcdir in
13743 .) # We are building in place.
13744 ac_srcdir=.
13745 ac_top_srcdir=$ac_top_builddir_sub
13746 ac_abs_top_srcdir=$ac_pwd ;;
13747 [\\/]* | ?:[\\/]* ) # Absolute name.
13748 ac_srcdir=$srcdir$ac_dir_suffix;
13749 ac_top_srcdir=$srcdir
13750 ac_abs_top_srcdir=$srcdir ;;
13751 *) # Relative name.
13752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13753 ac_top_srcdir=$ac_top_build_prefix$srcdir
13754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13755 esac
13756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13757
13758
13759 case $ac_mode in
13760 :F)
13761 #
13762 # CONFIG_FILE
13763 #
13764
13765 case $INSTALL in
13766 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13767 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13768 esac
13769 ac_MKDIR_P=$MKDIR_P
13770 case $MKDIR_P in
13771 [\\/$]* | ?:[\\/]* ) ;;
13772 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13773 esac
13774 _ACEOF
13775
13776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13777 # If the template does not know about datarootdir, expand it.
13778 # FIXME: This hack should be removed a few years after 2.60.
13779 ac_datarootdir_hack=; ac_datarootdir_seen=
13780 ac_sed_dataroot='
13781 /datarootdir/ {
13782 p
13783 q
13784 }
13785 /@datadir@/p
13786 /@docdir@/p
13787 /@infodir@/p
13788 /@localedir@/p
13789 /@mandir@/p'
13790 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13791 *datarootdir*) ac_datarootdir_seen=yes;;
13792 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13794 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13795 _ACEOF
13796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13797 ac_datarootdir_hack='
13798 s&@datadir@&$datadir&g
13799 s&@docdir@&$docdir&g
13800 s&@infodir@&$infodir&g
13801 s&@localedir@&$localedir&g
13802 s&@mandir@&$mandir&g
13803 s&\\\${datarootdir}&$datarootdir&g' ;;
13804 esac
13805 _ACEOF
13806
13807 # Neutralize VPATH when `$srcdir' = `.'.
13808 # Shell code in configure.ac might set extrasub.
13809 # FIXME: do we really want to maintain this feature?
13810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13811 ac_sed_extra="$ac_vpsub
13812 $extrasub
13813 _ACEOF
13814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13815 :t
13816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13817 s|@configure_input@|$ac_sed_conf_input|;t t
13818 s&@top_builddir@&$ac_top_builddir_sub&;t t
13819 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13820 s&@srcdir@&$ac_srcdir&;t t
13821 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13822 s&@top_srcdir@&$ac_top_srcdir&;t t
13823 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13824 s&@builddir@&$ac_builddir&;t t
13825 s&@abs_builddir@&$ac_abs_builddir&;t t
13826 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13827 s&@INSTALL@&$ac_INSTALL&;t t
13828 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13829 $ac_datarootdir_hack
13830 "
13831 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13832 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13833
13834 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13835 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13836 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13837 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13839 which seems to be undefined. Please make sure it is defined" >&5
13840 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13841 which seems to be undefined. Please make sure it is defined" >&2;}
13842
13843 rm -f "$ac_tmp/stdin"
13844 case $ac_file in
13845 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13846 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13847 esac \
13848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13849 ;;
13850 :H)
13851 #
13852 # CONFIG_HEADER
13853 #
13854 if test x"$ac_file" != x-; then
13855 {
13856 $as_echo "/* $configure_input */" \
13857 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13858 } >"$ac_tmp/config.h" \
13859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13860 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13862 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13863 else
13864 rm -f "$ac_file"
13865 mv "$ac_tmp/config.h" "$ac_file" \
13866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13867 fi
13868 else
13869 $as_echo "/* $configure_input */" \
13870 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13871 || as_fn_error $? "could not create -" "$LINENO" 5
13872 fi
13873 # Compute "$ac_file"'s index in $config_headers.
13874 _am_arg="$ac_file"
13875 _am_stamp_count=1
13876 for _am_header in $config_headers :; do
13877 case $_am_header in
13878 $_am_arg | $_am_arg:* )
13879 break ;;
13880 * )
13881 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13882 esac
13883 done
13884 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13885 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13886 X"$_am_arg" : 'X\(//\)[^/]' \| \
13887 X"$_am_arg" : 'X\(//\)$' \| \
13888 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13889 $as_echo X"$_am_arg" |
13890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13891 s//\1/
13892 q
13893 }
13894 /^X\(\/\/\)[^/].*/{
13895 s//\1/
13896 q
13897 }
13898 /^X\(\/\/\)$/{
13899 s//\1/
13900 q
13901 }
13902 /^X\(\/\).*/{
13903 s//\1/
13904 q
13905 }
13906 s/.*/./; q'`/stamp-h$_am_stamp_count
13907 ;;
13908
13909 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13910 $as_echo "$as_me: executing $ac_file commands" >&6;}
13911 ;;
13912 esac
13913
13914
13915 case $ac_file$ac_mode in
13916 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13917 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13918 # are listed without --file. Let's play safe and only enable the eval
13919 # if we detect the quoting.
13920 case $CONFIG_FILES in
13921 *\'*) eval set x "$CONFIG_FILES" ;;
13922 *) set x $CONFIG_FILES ;;
13923 esac
13924 shift
13925 for mf
13926 do
13927 # Strip MF so we end up with the name of the file.
13928 mf=`echo "$mf" | sed -e 's/:.*$//'`
13929 # Check whether this is an Automake generated Makefile or not.
13930 # We used to match only the files named `Makefile.in', but
13931 # some people rename them; so instead we look at the file content.
13932 # Grep'ing the first line is not enough: some people post-process
13933 # each Makefile.in and add a new line on top of each file to say so.
13934 # Grep'ing the whole file is not good either: AIX grep has a line
13935 # limit of 2048, but all sed's we know have understand at least 4000.
13936 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13937 dirpart=`$as_dirname -- "$mf" ||
13938 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13939 X"$mf" : 'X\(//\)[^/]' \| \
13940 X"$mf" : 'X\(//\)$' \| \
13941 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13942 $as_echo X"$mf" |
13943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13944 s//\1/
13945 q
13946 }
13947 /^X\(\/\/\)[^/].*/{
13948 s//\1/
13949 q
13950 }
13951 /^X\(\/\/\)$/{
13952 s//\1/
13953 q
13954 }
13955 /^X\(\/\).*/{
13956 s//\1/
13957 q
13958 }
13959 s/.*/./; q'`
13960 else
13961 continue
13962 fi
13963 # Extract the definition of DEPDIR, am__include, and am__quote
13964 # from the Makefile without running `make'.
13965 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13966 test -z "$DEPDIR" && continue
13967 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13968 test -z "am__include" && continue
13969 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13970 # When using ansi2knr, U may be empty or an underscore; expand it
13971 U=`sed -n 's/^U = //p' < "$mf"`
13972 # Find all dependency output files, they are included files with
13973 # $(DEPDIR) in their names. We invoke sed twice because it is the
13974 # simplest approach to changing $(DEPDIR) to its actual value in the
13975 # expansion.
13976 for file in `sed -n "
13977 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13978 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13979 # Make sure the directory exists.
13980 test -f "$dirpart/$file" && continue
13981 fdir=`$as_dirname -- "$file" ||
13982 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13983 X"$file" : 'X\(//\)[^/]' \| \
13984 X"$file" : 'X\(//\)$' \| \
13985 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13986 $as_echo X"$file" |
13987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13988 s//\1/
13989 q
13990 }
13991 /^X\(\/\/\)[^/].*/{
13992 s//\1/
13993 q
13994 }
13995 /^X\(\/\/\)$/{
13996 s//\1/
13997 q
13998 }
13999 /^X\(\/\).*/{
14000 s//\1/
14001 q
14002 }
14003 s/.*/./; q'`
14004 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14005 # echo "creating $dirpart/$file"
14006 echo '# dummy' > "$dirpart/$file"
14007 done
14008 done
14009 }
14010 ;;
14011 "libtool":C)
14012
14013 # See if we are running on zsh, and set the options which allow our
14014 # commands through without removal of \ escapes.
14015 if test -n "${ZSH_VERSION+set}" ; then
14016 setopt NO_GLOB_SUBST
14017 fi
14018
14019 cfgfile="${ofile}T"
14020 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14021 $RM "$cfgfile"
14022
14023 cat <<_LT_EOF >> "$cfgfile"
14024 #! $SHELL
14025
14026 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14027 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14029 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14030 #
14031 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14032 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14033 # Inc.
14034 # Written by Gordon Matzigkeit, 1996
14035 #
14036 # This file is part of GNU Libtool.
14037 #
14038 # GNU Libtool is free software; you can redistribute it and/or
14039 # modify it under the terms of the GNU General Public License as
14040 # published by the Free Software Foundation; either version 2 of
14041 # the License, or (at your option) any later version.
14042 #
14043 # As a special exception to the GNU General Public License,
14044 # if you distribute this file as part of a program or library that
14045 # is built using GNU Libtool, you may include this file under the
14046 # same distribution terms that you use for the rest of that program.
14047 #
14048 # GNU Libtool is distributed in the hope that it will be useful,
14049 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14050 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14051 # GNU General Public License for more details.
14052 #
14053 # You should have received a copy of the GNU General Public License
14054 # along with GNU Libtool; see the file COPYING. If not, a copy
14055 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14056 # obtained by writing to the Free Software Foundation, Inc.,
14057 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14058
14059
14060 # The names of the tagged configurations supported by this script.
14061 available_tags=""
14062
14063 # ### BEGIN LIBTOOL CONFIG
14064
14065 # Whether or not to build static libraries.
14066 build_old_libs=$enable_static
14067
14068 # Which release of libtool.m4 was used?
14069 macro_version=$macro_version
14070 macro_revision=$macro_revision
14071
14072 # Whether or not to build shared libraries.
14073 build_libtool_libs=$enable_shared
14074
14075 # What type of objects to build.
14076 pic_mode=$pic_mode
14077
14078 # Whether or not to optimize for fast installation.
14079 fast_install=$enable_fast_install
14080
14081 # Shell to use when invoking shell scripts.
14082 SHELL=$lt_SHELL
14083
14084 # An echo program that protects backslashes.
14085 ECHO=$lt_ECHO
14086
14087 # The host system.
14088 host_alias=$host_alias
14089 host=$host
14090 host_os=$host_os
14091
14092 # The build system.
14093 build_alias=$build_alias
14094 build=$build
14095 build_os=$build_os
14096
14097 # A sed program that does not truncate output.
14098 SED=$lt_SED
14099
14100 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14101 Xsed="\$SED -e 1s/^X//"
14102
14103 # A grep program that handles long lines.
14104 GREP=$lt_GREP
14105
14106 # An ERE matcher.
14107 EGREP=$lt_EGREP
14108
14109 # A literal string matcher.
14110 FGREP=$lt_FGREP
14111
14112 # A BSD- or MS-compatible name lister.
14113 NM=$lt_NM
14114
14115 # Whether we need soft or hard links.
14116 LN_S=$lt_LN_S
14117
14118 # What is the maximum length of a command?
14119 max_cmd_len=$max_cmd_len
14120
14121 # Object file suffix (normally "o").
14122 objext=$ac_objext
14123
14124 # Executable file suffix (normally "").
14125 exeext=$exeext
14126
14127 # whether the shell understands "unset".
14128 lt_unset=$lt_unset
14129
14130 # turn spaces into newlines.
14131 SP2NL=$lt_lt_SP2NL
14132
14133 # turn newlines into spaces.
14134 NL2SP=$lt_lt_NL2SP
14135
14136 # convert \$build file names to \$host format.
14137 to_host_file_cmd=$lt_cv_to_host_file_cmd
14138
14139 # convert \$build files to toolchain format.
14140 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14141
14142 # An object symbol dumper.
14143 OBJDUMP=$lt_OBJDUMP
14144
14145 # Method to check whether dependent libraries are shared objects.
14146 deplibs_check_method=$lt_deplibs_check_method
14147
14148 # Command to use when deplibs_check_method = "file_magic".
14149 file_magic_cmd=$lt_file_magic_cmd
14150
14151 # How to find potential files when deplibs_check_method = "file_magic".
14152 file_magic_glob=$lt_file_magic_glob
14153
14154 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14155 want_nocaseglob=$lt_want_nocaseglob
14156
14157 # DLL creation program.
14158 DLLTOOL=$lt_DLLTOOL
14159
14160 # Command to associate shared and link libraries.
14161 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14162
14163 # The archiver.
14164 AR=$lt_AR
14165
14166 # Flags to create an archive.
14167 AR_FLAGS=$lt_AR_FLAGS
14168
14169 # How to feed a file listing to the archiver.
14170 archiver_list_spec=$lt_archiver_list_spec
14171
14172 # A symbol stripping program.
14173 STRIP=$lt_STRIP
14174
14175 # Commands used to install an old-style archive.
14176 RANLIB=$lt_RANLIB
14177 old_postinstall_cmds=$lt_old_postinstall_cmds
14178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14179
14180 # Whether to use a lock for old archive extraction.
14181 lock_old_archive_extraction=$lock_old_archive_extraction
14182
14183 # A C compiler.
14184 LTCC=$lt_CC
14185
14186 # LTCC compiler flags.
14187 LTCFLAGS=$lt_CFLAGS
14188
14189 # Take the output of nm and produce a listing of raw symbols and C names.
14190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14191
14192 # Transform the output of nm in a proper C declaration.
14193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14194
14195 # Transform the output of nm in a C name address pair.
14196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14197
14198 # Transform the output of nm in a C name address pair when lib prefix is needed.
14199 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14200
14201 # Specify filename containing input files for \$NM.
14202 nm_file_list_spec=$lt_nm_file_list_spec
14203
14204 # The root where to search for dependent libraries,and in which our libraries should be installed.
14205 lt_sysroot=$lt_sysroot
14206
14207 # The name of the directory that contains temporary libtool files.
14208 objdir=$objdir
14209
14210 # Used to examine libraries when file_magic_cmd begins with "file".
14211 MAGIC_CMD=$MAGIC_CMD
14212
14213 # Must we lock files when doing compilation?
14214 need_locks=$lt_need_locks
14215
14216 # Manifest tool.
14217 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14218
14219 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14220 DSYMUTIL=$lt_DSYMUTIL
14221
14222 # Tool to change global to local symbols on Mac OS X.
14223 NMEDIT=$lt_NMEDIT
14224
14225 # Tool to manipulate fat objects and archives on Mac OS X.
14226 LIPO=$lt_LIPO
14227
14228 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14229 OTOOL=$lt_OTOOL
14230
14231 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14232 OTOOL64=$lt_OTOOL64
14233
14234 # Old archive suffix (normally "a").
14235 libext=$libext
14236
14237 # Shared library suffix (normally ".so").
14238 shrext_cmds=$lt_shrext_cmds
14239
14240 # The commands to extract the exported symbol list from a shared archive.
14241 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14242
14243 # Variables whose values should be saved in libtool wrapper scripts and
14244 # restored at link time.
14245 variables_saved_for_relink=$lt_variables_saved_for_relink
14246
14247 # Do we need the "lib" prefix for modules?
14248 need_lib_prefix=$need_lib_prefix
14249
14250 # Do we need a version for libraries?
14251 need_version=$need_version
14252
14253 # Library versioning type.
14254 version_type=$version_type
14255
14256 # Shared library runtime path variable.
14257 runpath_var=$runpath_var
14258
14259 # Shared library path variable.
14260 shlibpath_var=$shlibpath_var
14261
14262 # Is shlibpath searched before the hard-coded library search path?
14263 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14264
14265 # Format of library name prefix.
14266 libname_spec=$lt_libname_spec
14267
14268 # List of archive names. First name is the real one, the rest are links.
14269 # The last name is the one that the linker finds with -lNAME
14270 library_names_spec=$lt_library_names_spec
14271
14272 # The coded name of the library, if different from the real name.
14273 soname_spec=$lt_soname_spec
14274
14275 # Permission mode override for installation of shared libraries.
14276 install_override_mode=$lt_install_override_mode
14277
14278 # Command to use after installation of a shared archive.
14279 postinstall_cmds=$lt_postinstall_cmds
14280
14281 # Command to use after uninstallation of a shared archive.
14282 postuninstall_cmds=$lt_postuninstall_cmds
14283
14284 # Commands used to finish a libtool library installation in a directory.
14285 finish_cmds=$lt_finish_cmds
14286
14287 # As "finish_cmds", except a single script fragment to be evaled but
14288 # not shown.
14289 finish_eval=$lt_finish_eval
14290
14291 # Whether we should hardcode library paths into libraries.
14292 hardcode_into_libs=$hardcode_into_libs
14293
14294 # Compile-time system search path for libraries.
14295 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14296
14297 # Run-time system search path for libraries.
14298 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14299
14300 # Whether dlopen is supported.
14301 dlopen_support=$enable_dlopen
14302
14303 # Whether dlopen of programs is supported.
14304 dlopen_self=$enable_dlopen_self
14305
14306 # Whether dlopen of statically linked programs is supported.
14307 dlopen_self_static=$enable_dlopen_self_static
14308
14309 # Commands to strip libraries.
14310 old_striplib=$lt_old_striplib
14311 striplib=$lt_striplib
14312
14313
14314 # The linker used to build libraries.
14315 LD=$lt_LD
14316
14317 # How to create reloadable object files.
14318 reload_flag=$lt_reload_flag
14319 reload_cmds=$lt_reload_cmds
14320
14321 # Commands used to build an old-style archive.
14322 old_archive_cmds=$lt_old_archive_cmds
14323
14324 # A language specific compiler.
14325 CC=$lt_compiler
14326
14327 # Is the compiler the GNU compiler?
14328 with_gcc=$GCC
14329
14330 # Compiler flag to turn off builtin functions.
14331 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14332
14333 # Additional compiler flags for building library objects.
14334 pic_flag=$lt_lt_prog_compiler_pic
14335
14336 # How to pass a linker flag through the compiler.
14337 wl=$lt_lt_prog_compiler_wl
14338
14339 # Compiler flag to prevent dynamic linking.
14340 link_static_flag=$lt_lt_prog_compiler_static
14341
14342 # Does compiler simultaneously support -c and -o options?
14343 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14344
14345 # Whether or not to add -lc for building shared libraries.
14346 build_libtool_need_lc=$archive_cmds_need_lc
14347
14348 # Whether or not to disallow shared libs when runtime libs are static.
14349 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14350
14351 # Compiler flag to allow reflexive dlopens.
14352 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14353
14354 # Compiler flag to generate shared objects directly from archives.
14355 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14356
14357 # Whether the compiler copes with passing no objects directly.
14358 compiler_needs_object=$lt_compiler_needs_object
14359
14360 # Create an old-style archive from a shared archive.
14361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14362
14363 # Create a temporary old-style archive to link instead of a shared archive.
14364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14365
14366 # Commands used to build a shared archive.
14367 archive_cmds=$lt_archive_cmds
14368 archive_expsym_cmds=$lt_archive_expsym_cmds
14369
14370 # Commands used to build a loadable module if different from building
14371 # a shared archive.
14372 module_cmds=$lt_module_cmds
14373 module_expsym_cmds=$lt_module_expsym_cmds
14374
14375 # Whether we are building with GNU ld or not.
14376 with_gnu_ld=$lt_with_gnu_ld
14377
14378 # Flag that allows shared libraries with undefined symbols to be built.
14379 allow_undefined_flag=$lt_allow_undefined_flag
14380
14381 # Flag that enforces no undefined symbols.
14382 no_undefined_flag=$lt_no_undefined_flag
14383
14384 # Flag to hardcode \$libdir into a binary during linking.
14385 # This must work even if \$libdir does not exist
14386 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14387
14388 # If ld is used when linking, flag to hardcode \$libdir into a binary
14389 # during linking. This must work even if \$libdir does not exist.
14390 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14391
14392 # Whether we need a single "-rpath" flag with a separated argument.
14393 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14394
14395 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14396 # DIR into the resulting binary.
14397 hardcode_direct=$hardcode_direct
14398
14399 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14400 # DIR into the resulting binary and the resulting library dependency is
14401 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14402 # library is relocated.
14403 hardcode_direct_absolute=$hardcode_direct_absolute
14404
14405 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14406 # into the resulting binary.
14407 hardcode_minus_L=$hardcode_minus_L
14408
14409 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14410 # into the resulting binary.
14411 hardcode_shlibpath_var=$hardcode_shlibpath_var
14412
14413 # Set to "yes" if building a shared library automatically hardcodes DIR
14414 # into the library and all subsequent libraries and executables linked
14415 # against it.
14416 hardcode_automatic=$hardcode_automatic
14417
14418 # Set to yes if linker adds runtime paths of dependent libraries
14419 # to runtime path list.
14420 inherit_rpath=$inherit_rpath
14421
14422 # Whether libtool must link a program against all its dependency libraries.
14423 link_all_deplibs=$link_all_deplibs
14424
14425 # Set to "yes" if exported symbols are required.
14426 always_export_symbols=$always_export_symbols
14427
14428 # The commands to list exported symbols.
14429 export_symbols_cmds=$lt_export_symbols_cmds
14430
14431 # Symbols that should not be listed in the preloaded symbols.
14432 exclude_expsyms=$lt_exclude_expsyms
14433
14434 # Symbols that must always be exported.
14435 include_expsyms=$lt_include_expsyms
14436
14437 # Commands necessary for linking programs (against libraries) with templates.
14438 prelink_cmds=$lt_prelink_cmds
14439
14440 # Commands necessary for finishing linking programs.
14441 postlink_cmds=$lt_postlink_cmds
14442
14443 # Specify filename containing input files.
14444 file_list_spec=$lt_file_list_spec
14445
14446 # How to hardcode a shared library path into an executable.
14447 hardcode_action=$hardcode_action
14448
14449 # ### END LIBTOOL CONFIG
14450
14451 _LT_EOF
14452
14453 case $host_os in
14454 aix3*)
14455 cat <<\_LT_EOF >> "$cfgfile"
14456 # AIX sometimes has problems with the GCC collect2 program. For some
14457 # reason, if we set the COLLECT_NAMES environment variable, the problems
14458 # vanish in a puff of smoke.
14459 if test "X${COLLECT_NAMES+set}" != Xset; then
14460 COLLECT_NAMES=
14461 export COLLECT_NAMES
14462 fi
14463 _LT_EOF
14464 ;;
14465 esac
14466
14467
14468 ltmain="$ac_aux_dir/ltmain.sh"
14469
14470
14471 # We use sed instead of cat because bash on DJGPP gets confused if
14472 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14473 # text mode, it properly converts lines to CR/LF. This bash problem
14474 # is reportedly fixed, but why not run on old versions too?
14475 sed '$q' "$ltmain" >> "$cfgfile" \
14476 || (rm -f "$cfgfile"; exit 1)
14477
14478 if test x"$xsi_shell" = xyes; then
14479 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14480 func_dirname ()\
14481 {\
14482 \ case ${1} in\
14483 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14484 \ * ) func_dirname_result="${3}" ;;\
14485 \ esac\
14486 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14487 && mv -f "$cfgfile.tmp" "$cfgfile" \
14488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14489 test 0 -eq $? || _lt_function_replace_fail=:
14490
14491
14492 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14493 func_basename ()\
14494 {\
14495 \ func_basename_result="${1##*/}"\
14496 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14497 && mv -f "$cfgfile.tmp" "$cfgfile" \
14498 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14499 test 0 -eq $? || _lt_function_replace_fail=:
14500
14501
14502 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14503 func_dirname_and_basename ()\
14504 {\
14505 \ case ${1} in\
14506 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14507 \ * ) func_dirname_result="${3}" ;;\
14508 \ esac\
14509 \ func_basename_result="${1##*/}"\
14510 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14511 && mv -f "$cfgfile.tmp" "$cfgfile" \
14512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14513 test 0 -eq $? || _lt_function_replace_fail=:
14514
14515
14516 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14517 func_stripname ()\
14518 {\
14519 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14520 \ # positional parameters, so assign one to ordinary parameter first.\
14521 \ func_stripname_result=${3}\
14522 \ func_stripname_result=${func_stripname_result#"${1}"}\
14523 \ func_stripname_result=${func_stripname_result%"${2}"}\
14524 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14525 && mv -f "$cfgfile.tmp" "$cfgfile" \
14526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14527 test 0 -eq $? || _lt_function_replace_fail=:
14528
14529
14530 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14531 func_split_long_opt ()\
14532 {\
14533 \ func_split_long_opt_name=${1%%=*}\
14534 \ func_split_long_opt_arg=${1#*=}\
14535 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14536 && mv -f "$cfgfile.tmp" "$cfgfile" \
14537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14538 test 0 -eq $? || _lt_function_replace_fail=:
14539
14540
14541 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14542 func_split_short_opt ()\
14543 {\
14544 \ func_split_short_opt_arg=${1#??}\
14545 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14546 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14547 && mv -f "$cfgfile.tmp" "$cfgfile" \
14548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14549 test 0 -eq $? || _lt_function_replace_fail=:
14550
14551
14552 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14553 func_lo2o ()\
14554 {\
14555 \ case ${1} in\
14556 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14557 \ *) func_lo2o_result=${1} ;;\
14558 \ esac\
14559 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14560 && mv -f "$cfgfile.tmp" "$cfgfile" \
14561 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14562 test 0 -eq $? || _lt_function_replace_fail=:
14563
14564
14565 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14566 func_xform ()\
14567 {\
14568 func_xform_result=${1%.*}.lo\
14569 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14570 && mv -f "$cfgfile.tmp" "$cfgfile" \
14571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14572 test 0 -eq $? || _lt_function_replace_fail=:
14573
14574
14575 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14576 func_arith ()\
14577 {\
14578 func_arith_result=$(( $* ))\
14579 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14580 && mv -f "$cfgfile.tmp" "$cfgfile" \
14581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14582 test 0 -eq $? || _lt_function_replace_fail=:
14583
14584
14585 sed -e '/^func_len ()$/,/^} # func_len /c\
14586 func_len ()\
14587 {\
14588 func_len_result=${#1}\
14589 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14590 && mv -f "$cfgfile.tmp" "$cfgfile" \
14591 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14592 test 0 -eq $? || _lt_function_replace_fail=:
14593
14594 fi
14595
14596 if test x"$lt_shell_append" = xyes; then
14597 sed -e '/^func_append ()$/,/^} # func_append /c\
14598 func_append ()\
14599 {\
14600 eval "${1}+=\\${2}"\
14601 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14602 && mv -f "$cfgfile.tmp" "$cfgfile" \
14603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14604 test 0 -eq $? || _lt_function_replace_fail=:
14605
14606
14607 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14608 func_append_quoted ()\
14609 {\
14610 \ func_quote_for_eval "${2}"\
14611 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14612 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14613 && mv -f "$cfgfile.tmp" "$cfgfile" \
14614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14615 test 0 -eq $? || _lt_function_replace_fail=:
14616
14617
14618 # Save a `func_append' function call where possible by direct use of '+='
14619 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14620 && mv -f "$cfgfile.tmp" "$cfgfile" \
14621 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14622 test 0 -eq $? || _lt_function_replace_fail=:
14623 else
14624 # Save a `func_append' function call even when '+=' is not available
14625 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14626 && mv -f "$cfgfile.tmp" "$cfgfile" \
14627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14628 test 0 -eq $? || _lt_function_replace_fail=:
14629 fi
14630
14631 if test x"$_lt_function_replace_fail" = x":"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14633 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14634 fi
14635
14636
14637 mv -f "$cfgfile" "$ofile" ||
14638 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14639 chmod +x "$ofile"
14640
14641 ;;
14642
14643 esac
14644 done # for ac_tag
14645
14646
14647 as_fn_exit 0
14648 _ACEOF
14649 ac_clean_files=$ac_clean_files_save
14650
14651 test $ac_write_fail = 0 ||
14652 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14653
14654
14655 # configure is writing to config.log, and then calls config.status.
14656 # config.status does its own redirection, appending to config.log.
14657 # Unfortunately, on DOS this fails, as config.log is still kept open
14658 # by configure, so config.status won't be able to write to it; its
14659 # output is simply discarded. So we exec the FD to /dev/null,
14660 # effectively closing config.log, so it can be properly (re)opened and
14661 # appended to by config.status. When coming back to configure, we
14662 # need to make the FD available again.
14663 if test "$no_create" != yes; then
14664 ac_cs_success=:
14665 ac_config_status_args=
14666 test "$silent" = yes &&
14667 ac_config_status_args="$ac_config_status_args --quiet"
14668 exec 5>/dev/null
14669 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14670 exec 5>>config.log
14671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14672 # would make configure fail if this is the last instruction.
14673 $ac_cs_success || as_fn_exit 1
14674 fi
14675 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14677 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14678 fi
14679
14680
14681