configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXrandr 1.3.2.
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='libXrandr'
573 PACKAGE_TARNAME='libXrandr'
574 PACKAGE_VERSION='1.3.2'
575 PACKAGE_STRING='libXrandr 1.3.2'
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 RANDR_LIBS
621 RANDR_CFLAGS
622 RANDR_VERSION
623 XTMALLOC_ZERO_CFLAGS
624 XMALLOC_ZERO_CFLAGS
625 MALLOC_ZERO_CFLAGS
626 AM_BACKSLASH
627 AM_DEFAULT_VERBOSITY
628 MAN_SUBSTS
629 XORG_MAN_PAGE
630 ADMIN_MAN_DIR
631 DRIVER_MAN_DIR
632 MISC_MAN_DIR
633 FILE_MAN_DIR
634 LIB_MAN_DIR
635 APP_MAN_DIR
636 ADMIN_MAN_SUFFIX
637 DRIVER_MAN_SUFFIX
638 MISC_MAN_SUFFIX
639 FILE_MAN_SUFFIX
640 LIB_MAN_SUFFIX
641 APP_MAN_SUFFIX
642 INSTALL_CMD
643 PKG_CONFIG
644 CHANGELOG_CMD
645 STRICT_CFLAGS
646 CWARNFLAGS
647 CPP
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 EGREP
666 GREP
667 SED
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__quote
675 am__include
676 DEPDIR
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 LIBTOOL
693 MAINT
694 MAINTAINER_MODE_FALSE
695 MAINTAINER_MODE_TRUE
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_maintainer_mode
761 enable_shared
762 enable_static
763 with_pic
764 enable_fast_install
765 enable_dependency_tracking
766 with_gnu_ld
767 with_sysroot
768 enable_libtool_lock
769 enable_strict_compilation
770 enable_silent_rules
771 enable_malloc0returnsnull
772 '
773 ac_precious_vars='build_alias
774 host_alias
775 target_alias
776 CC
777 CFLAGS
778 LDFLAGS
779 LIBS
780 CPPFLAGS
781 CPP
782 PKG_CONFIG
783 RANDR_CFLAGS
784 RANDR_LIBS'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
850 esac
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
862
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
877
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
882
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
915
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1135
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
1170 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 ;;
1191
1192 esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $? "missing argument to $ac_option"
1198 fi
1199
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1206 fi
1207
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1213 do
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used" >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures libXrandr 1.3.2 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/libXrandr]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1381
1382 cat <<\_ACEOF
1383
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of libXrandr 1.3.2:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-maintainer-mode enable make rules and dependencies not useful
1406 (and sometimes confusing) to the casual installer
1407 --enable-shared[=PKGS] build shared libraries [default=yes]
1408 --enable-static[=PKGS] build static libraries [default=yes]
1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
1411 --disable-dependency-tracking speeds up one-time build
1412 --enable-dependency-tracking do not reject slow dependency extractors
1413 --disable-libtool-lock avoid locking (might break parallel builds)
1414 --enable-strict-compilation
1415 Enable all warnings from compiler and make them
1416 errors (default: disabled)
1417 --enable-silent-rules less verbose build output (undo: `make V=1')
1418 --disable-silent-rules verbose build output (undo: `make V=0')
1419 --enable-malloc0returnsnull
1420 malloc(0) returns NULL (default: auto)
1421
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-pic try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428 --with-sysroot=DIR Search for dependent libraries within DIR
1429 (or the compiler's sysroot if not specified).
1430
1431 Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1439 CPP C preprocessor
1440 PKG_CONFIG path to pkg-config utility
1441 RANDR_CFLAGS
1442 C compiler flags for RANDR, overriding pkg-config
1443 RANDR_LIBS linker flags for RANDR, overriding pkg-config
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1449 _ACEOF
1450 ac_status=$?
1451 fi
1452
1453 if test "$ac_init_help" = "recursive"; then
1454 # If there are subdirs, report their specific --help.
1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456 test -d "$ac_dir" ||
1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458 continue
1459 ac_builddir=.
1460
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *)
1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465 # A ".." for each directory in $ac_dir_suffix.
1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467 case $ac_top_builddir_sub in
1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1476
1477 case $srcdir in
1478 .) # We are building in place.
1479 ac_srcdir=.
1480 ac_top_srcdir=$ac_top_builddir_sub
1481 ac_abs_top_srcdir=$ac_pwd ;;
1482 [\\/]* | ?:[\\/]* ) # Absolute name.
1483 ac_srcdir=$srcdir$ac_dir_suffix;
1484 ac_top_srcdir=$srcdir
1485 ac_abs_top_srcdir=$srcdir ;;
1486 *) # Relative name.
1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488 ac_top_srcdir=$ac_top_build_prefix$srcdir
1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493 cd "$ac_dir" || { ac_status=$?; continue; }
1494 # Check for guested configure.
1495 if test -f "$ac_srcdir/configure.gnu"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498 elif test -f "$ac_srcdir/configure"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure" --help=recursive
1501 else
1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 fi || ac_status=$?
1504 cd "$ac_pwd" || { ac_status=$?; break; }
1505 done
1506 fi
1507
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510 cat <<\_ACEOF
1511 libXrandr configure 1.3.2
1512 generated by GNU Autoconf 2.68
1513
1514 Copyright (C) 2010 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518 exit
1519 fi
1520
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1524
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1529 {
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 rm -f conftest.$ac_objext
1532 if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_compile") 2>conftest.err
1540 ac_status=$?
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1545 fi
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } && {
1548 test -z "$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1550 } && test -s conftest.$ac_objext; then :
1551 ac_retval=0
1552 else
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556 ac_retval=1
1557 fi
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_compile
1562
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_link ()
1567 {
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext conftest$ac_exeext
1570 if { { ac_try="$ac_link"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_link") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest$ac_exeext && {
1589 test "$cross_compiling" = yes ||
1590 $as_test_x conftest$ac_exeext
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601 # interfere with the next link command; also delete a directory that is
1602 # left behind by Apple's compiler. We do this before executing the actions.
1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_link
1608
1609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists and can be compiled using the include files in
1612 # INCLUDES, setting the cache variable VAR accordingly.
1613 ac_fn_c_check_header_compile ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if eval \${$3+:} false; then :
1619 $as_echo_n "(cached) " >&6
1620 else
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 $4
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627 eval "$3=yes"
1628 else
1629 eval "$3=no"
1630 fi
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 fi
1633 eval ac_res=\$$3
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638 } # ac_fn_c_check_header_compile
1639
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } > conftest.i && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_cpp
1676
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695 { { case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_try") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; }; }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: program exited with status $ac_status" >&5
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=$ac_status
1712 fi
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_run
1718
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1729 else
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1734 #define $2 innocuous_$2
1735
1736 /* System header to define __stub macros and hopefully few prototypes,
1737 which can conflict with char $2 (); below.
1738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739 <limits.h> exists even on freestanding compilers. */
1740
1741 #ifdef __STDC__
1742 # include <limits.h>
1743 #else
1744 # include <assert.h>
1745 #endif
1746
1747 #undef $2
1748
1749 /* Override any GCC internal prototype to avoid an error.
1750 Use char because int might match the return type of a GCC
1751 builtin and then its argument prototype would still apply. */
1752 #ifdef __cplusplus
1753 extern "C"
1754 #endif
1755 char $2 ();
1756 /* The GNU C library defines this for functions which it implements
1757 to always fail with ENOSYS. Some functions are actually named
1758 something starting with __ and the normal name is an alias. */
1759 #if defined __stub_$2 || defined __stub___$2
1760 choke me
1761 #endif
1762
1763 int
1764 main ()
1765 {
1766 return $2 ();
1767 ;
1768 return 0;
1769 }
1770 _ACEOF
1771 if ac_fn_c_try_link "$LINENO"; then :
1772 eval "$3=yes"
1773 else
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext \
1777 conftest$ac_exeext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_func
1785
1786 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1787 # ---------------------------------------------
1788 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1789 # accordingly.
1790 ac_fn_c_check_decl ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 as_decl_name=`echo $2|sed 's/ *(.*//'`
1794 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1796 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 $4
1803 int
1804 main ()
1805 {
1806 #ifndef $as_decl_name
1807 #ifdef __cplusplus
1808 (void) $as_decl_use;
1809 #else
1810 (void) $as_decl_name;
1811 #endif
1812 #endif
1813
1814 ;
1815 return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 eval "$3=yes"
1820 else
1821 eval "$3=no"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 fi
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830 } # ac_fn_c_check_decl
1831 cat >config.log <<_ACEOF
1832 This file contains any messages produced by compilers while
1833 running configure, to aid debugging if configure makes a mistake.
1834
1835 It was created by libXrandr $as_me 1.3.2, which was
1836 generated by GNU Autoconf 2.68. Invocation command line was
1837
1838 $ $0 $@
1839
1840 _ACEOF
1841 exec 5>>config.log
1842 {
1843 cat <<_ASUNAME
1844 ## --------- ##
1845 ## Platform. ##
1846 ## --------- ##
1847
1848 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1849 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1850 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1851 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1852 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1853
1854 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1855 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1856
1857 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1858 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1859 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1860 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1861 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1862 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1863 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1864
1865 _ASUNAME
1866
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 $as_echo "PATH: $as_dir"
1873 done
1874 IFS=$as_save_IFS
1875
1876 } >&5
1877
1878 cat >&5 <<_ACEOF
1879
1880
1881 ## ----------- ##
1882 ## Core tests. ##
1883 ## ----------- ##
1884
1885 _ACEOF
1886
1887
1888 # Keep a trace of the command line.
1889 # Strip out --no-create and --no-recursion so they do not pile up.
1890 # Strip out --silent because we don't want to record it for future runs.
1891 # Also quote any args containing shell meta-characters.
1892 # Make two passes to allow for proper duplicate-argument suppression.
1893 ac_configure_args=
1894 ac_configure_args0=
1895 ac_configure_args1=
1896 ac_must_keep_next=false
1897 for ac_pass in 1 2
1898 do
1899 for ac_arg
1900 do
1901 case $ac_arg in
1902 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1904 | -silent | --silent | --silen | --sile | --sil)
1905 continue ;;
1906 *\'*)
1907 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 esac
1909 case $ac_pass in
1910 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1911 2)
1912 as_fn_append ac_configure_args1 " '$ac_arg'"
1913 if test $ac_must_keep_next = true; then
1914 ac_must_keep_next=false # Got value, back to normal.
1915 else
1916 case $ac_arg in
1917 *=* | --config-cache | -C | -disable-* | --disable-* \
1918 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1919 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1920 | -with-* | --with-* | -without-* | --without-* | --x)
1921 case "$ac_configure_args0 " in
1922 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1923 esac
1924 ;;
1925 -* ) ac_must_keep_next=true ;;
1926 esac
1927 fi
1928 as_fn_append ac_configure_args " '$ac_arg'"
1929 ;;
1930 esac
1931 done
1932 done
1933 { ac_configure_args0=; unset ac_configure_args0;}
1934 { ac_configure_args1=; unset ac_configure_args1;}
1935
1936 # When interrupted or exit'd, cleanup temporary files, and complete
1937 # config.log. We remove comments because anyway the quotes in there
1938 # would cause problems or look ugly.
1939 # WARNING: Use '\'' to represent an apostrophe within the trap.
1940 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1941 trap 'exit_status=$?
1942 # Save into config.log some information that might help in debugging.
1943 {
1944 echo
1945
1946 $as_echo "## ---------------- ##
1947 ## Cache variables. ##
1948 ## ---------------- ##"
1949 echo
1950 # The following way of writing the cache mishandles newlines in values,
1951 (
1952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1953 eval ac_val=\$$ac_var
1954 case $ac_val in #(
1955 *${as_nl}*)
1956 case $ac_var in #(
1957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1959 esac
1960 case $ac_var in #(
1961 _ | IFS | as_nl) ;; #(
1962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1963 *) { eval $ac_var=; unset $ac_var;} ;;
1964 esac ;;
1965 esac
1966 done
1967 (set) 2>&1 |
1968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1969 *${as_nl}ac_space=\ *)
1970 sed -n \
1971 "s/'\''/'\''\\\\'\'''\''/g;
1972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1973 ;; #(
1974 *)
1975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1976 ;;
1977 esac |
1978 sort
1979 )
1980 echo
1981
1982 $as_echo "## ----------------- ##
1983 ## Output variables. ##
1984 ## ----------------- ##"
1985 echo
1986 for ac_var in $ac_subst_vars
1987 do
1988 eval ac_val=\$$ac_var
1989 case $ac_val in
1990 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991 esac
1992 $as_echo "$ac_var='\''$ac_val'\''"
1993 done | sort
1994 echo
1995
1996 if test -n "$ac_subst_files"; then
1997 $as_echo "## ------------------- ##
1998 ## File substitutions. ##
1999 ## ------------------- ##"
2000 echo
2001 for ac_var in $ac_subst_files
2002 do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in
2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 esac
2007 $as_echo "$ac_var='\''$ac_val'\''"
2008 done | sort
2009 echo
2010 fi
2011
2012 if test -s confdefs.h; then
2013 $as_echo "## ----------- ##
2014 ## confdefs.h. ##
2015 ## ----------- ##"
2016 echo
2017 cat confdefs.h
2018 echo
2019 fi
2020 test "$ac_signal" != 0 &&
2021 $as_echo "$as_me: caught signal $ac_signal"
2022 $as_echo "$as_me: exit $exit_status"
2023 } >&5
2024 rm -f core *.core core.conftest.* &&
2025 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2026 exit $exit_status
2027 ' 0
2028 for ac_signal in 1 2 13 15; do
2029 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2030 done
2031 ac_signal=0
2032
2033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2034 rm -f -r conftest* confdefs.h
2035
2036 $as_echo "/* confdefs.h */" > confdefs.h
2037
2038 # Predefined preprocessor variables.
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_NAME "$PACKAGE_NAME"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_STRING "$PACKAGE_STRING"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_URL "$PACKAGE_URL"
2062 _ACEOF
2063
2064
2065 # Let the site file select an alternate cache file if it wants to.
2066 # Prefer an explicitly selected file to automatically selected ones.
2067 ac_site_file1=NONE
2068 ac_site_file2=NONE
2069 if test -n "$CONFIG_SITE"; then
2070 # We do not want a PATH search for config.site.
2071 case $CONFIG_SITE in #((
2072 -*) ac_site_file1=./$CONFIG_SITE;;
2073 */*) ac_site_file1=$CONFIG_SITE;;
2074 *) ac_site_file1=./$CONFIG_SITE;;
2075 esac
2076 elif test "x$prefix" != xNONE; then
2077 ac_site_file1=$prefix/share/config.site
2078 ac_site_file2=$prefix/etc/config.site
2079 else
2080 ac_site_file1=$ac_default_prefix/share/config.site
2081 ac_site_file2=$ac_default_prefix/etc/config.site
2082 fi
2083 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2084 do
2085 test "x$ac_site_file" = xNONE && continue
2086 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2088 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2089 sed 's/^/| /' "$ac_site_file" >&5
2090 . "$ac_site_file" \
2091 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2093 as_fn_error $? "failed to load site script $ac_site_file
2094 See \`config.log' for more details" "$LINENO" 5; }
2095 fi
2096 done
2097
2098 if test -r "$cache_file"; then
2099 # Some versions of bash will fail to source /dev/null (special files
2100 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2101 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2103 $as_echo "$as_me: loading cache $cache_file" >&6;}
2104 case $cache_file in
2105 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2106 *) . "./$cache_file";;
2107 esac
2108 fi
2109 else
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2111 $as_echo "$as_me: creating cache $cache_file" >&6;}
2112 >$cache_file
2113 fi
2114
2115 # Check that the precious variables saved in the cache have kept the same
2116 # value.
2117 ac_cache_corrupted=false
2118 for ac_var in $ac_precious_vars; do
2119 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2120 eval ac_new_set=\$ac_env_${ac_var}_set
2121 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2122 eval ac_new_val=\$ac_env_${ac_var}_value
2123 case $ac_old_set,$ac_new_set in
2124 set,)
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2126 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2127 ac_cache_corrupted=: ;;
2128 ,set)
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2130 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2131 ac_cache_corrupted=: ;;
2132 ,);;
2133 *)
2134 if test "x$ac_old_val" != "x$ac_new_val"; then
2135 # differences in whitespace do not lead to failure.
2136 ac_old_val_w=`echo x $ac_old_val`
2137 ac_new_val_w=`echo x $ac_new_val`
2138 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2140 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2141 ac_cache_corrupted=:
2142 else
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2144 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2145 eval $ac_var=\$ac_old_val
2146 fi
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2148 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2150 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2151 fi;;
2152 esac
2153 # Pass precious variables to config.status.
2154 if test "$ac_new_set" = set; then
2155 case $ac_new_val in
2156 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2157 *) ac_arg=$ac_var=$ac_new_val ;;
2158 esac
2159 case " $ac_configure_args " in
2160 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2161 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2162 esac
2163 fi
2164 done
2165 if $ac_cache_corrupted; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2169 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2170 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2171 fi
2172 ## -------------------- ##
2173 ## Main body of script. ##
2174 ## -------------------- ##
2175
2176 ac_ext=c
2177 ac_cpp='$CPP $CPPFLAGS'
2178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2181
2182
2183
2184 ac_config_headers="$ac_config_headers config.h"
2185
2186
2187 # Initialize Automake
2188 am__api_version='1.11'
2189
2190 ac_aux_dir=
2191 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2192 if test -f "$ac_dir/install-sh"; then
2193 ac_aux_dir=$ac_dir
2194 ac_install_sh="$ac_aux_dir/install-sh -c"
2195 break
2196 elif test -f "$ac_dir/install.sh"; then
2197 ac_aux_dir=$ac_dir
2198 ac_install_sh="$ac_aux_dir/install.sh -c"
2199 break
2200 elif test -f "$ac_dir/shtool"; then
2201 ac_aux_dir=$ac_dir
2202 ac_install_sh="$ac_aux_dir/shtool install -c"
2203 break
2204 fi
2205 done
2206 if test -z "$ac_aux_dir"; then
2207 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2208 fi
2209
2210 # These three variables are undocumented and unsupported,
2211 # and are intended to be withdrawn in a future Autoconf release.
2212 # They can cause serious problems if a builder's source tree is in a directory
2213 # whose full name contains unusual characters.
2214 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2215 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2216 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2217
2218
2219 # Find a good install program. We prefer a C program (faster),
2220 # so one script is as good as another. But avoid the broken or
2221 # incompatible versions:
2222 # SysV /etc/install, /usr/sbin/install
2223 # SunOS /usr/etc/install
2224 # IRIX /sbin/install
2225 # AIX /bin/install
2226 # AmigaOS /C/install, which installs bootblocks on floppy discs
2227 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2230 # OS/2's system install, which has a completely different semantic
2231 # ./install, which can be erroneously created by make from ./install.sh.
2232 # Reject install programs that cannot install multiple files.
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2234 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2235 if test -z "$INSTALL"; then
2236 if ${ac_cv_path_install+:} false; then :
2237 $as_echo_n "(cached) " >&6
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 # Account for people who put trailing slashes in PATH elements.
2245 case $as_dir/ in #((
2246 ./ | .// | /[cC]/* | \
2247 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2248 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2249 /usr/ucb/* ) ;;
2250 *)
2251 # OSF1 and SCO ODT 3.0 have their own names for install.
2252 # Don't use installbsd from OSF since it installs stuff as root
2253 # by default.
2254 for ac_prog in ginstall scoinst install; do
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2257 if test $ac_prog = install &&
2258 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259 # AIX install. It has an incompatible calling convention.
2260 :
2261 elif test $ac_prog = install &&
2262 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2263 # program-specific install script used by HP pwplus--don't use.
2264 :
2265 else
2266 rm -rf conftest.one conftest.two conftest.dir
2267 echo one > conftest.one
2268 echo two > conftest.two
2269 mkdir conftest.dir
2270 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2271 test -s conftest.one && test -s conftest.two &&
2272 test -s conftest.dir/conftest.one &&
2273 test -s conftest.dir/conftest.two
2274 then
2275 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2276 break 3
2277 fi
2278 fi
2279 fi
2280 done
2281 done
2282 ;;
2283 esac
2284
2285 done
2286 IFS=$as_save_IFS
2287
2288 rm -rf conftest.one conftest.two conftest.dir
2289
2290 fi
2291 if test "${ac_cv_path_install+set}" = set; then
2292 INSTALL=$ac_cv_path_install
2293 else
2294 # As a last resort, use the slow shell script. Don't cache a
2295 # value for INSTALL within a source directory, because that will
2296 # break other packages using the cache if that directory is
2297 # removed, or if the value is a relative name.
2298 INSTALL=$ac_install_sh
2299 fi
2300 fi
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2302 $as_echo "$INSTALL" >&6; }
2303
2304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2305 # It thinks the first close brace ends the variable substitution.
2306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2307
2308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2309
2310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2311
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2313 $as_echo_n "checking whether build environment is sane... " >&6; }
2314 # Just in case
2315 sleep 1
2316 echo timestamp > conftest.file
2317 # Reject unsafe characters in $srcdir or the absolute working directory
2318 # name. Accept space and tab only in the latter.
2319 am_lf='
2320 '
2321 case `pwd` in
2322 *[\\\"\#\$\&\'\`$am_lf]*)
2323 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2324 esac
2325 case $srcdir in
2326 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2327 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2328 esac
2329
2330 # Do `set' in a subshell so we don't clobber the current shell's
2331 # arguments. Must try -L first in case configure is actually a
2332 # symlink; some systems play weird games with the mod time of symlinks
2333 # (eg FreeBSD returns the mod time of the symlink's containing
2334 # directory).
2335 if (
2336 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2337 if test "$*" = "X"; then
2338 # -L didn't work.
2339 set X `ls -t "$srcdir/configure" conftest.file`
2340 fi
2341 rm -f conftest.file
2342 if test "$*" != "X $srcdir/configure conftest.file" \
2343 && test "$*" != "X conftest.file $srcdir/configure"; then
2344
2345 # If neither matched, then we have a broken ls. This can happen
2346 # if, for instance, CONFIG_SHELL is bash and it inherits a
2347 # broken ls alias from the environment. This has actually
2348 # happened. Such a system could not be considered "sane".
2349 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2350 alias in your environment" "$LINENO" 5
2351 fi
2352
2353 test "$2" = conftest.file
2354 )
2355 then
2356 # Ok.
2357 :
2358 else
2359 as_fn_error $? "newly created file is older than distributed files!
2360 Check your system clock" "$LINENO" 5
2361 fi
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2363 $as_echo "yes" >&6; }
2364 test "$program_prefix" != NONE &&
2365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2366 # Use a double $ so make ignores it.
2367 test "$program_suffix" != NONE &&
2368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369 # Double any \ or $.
2370 # By default was `s,x,x', remove it if useless.
2371 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2373
2374 # expand $ac_aux_dir to an absolute path
2375 am_aux_dir=`cd $ac_aux_dir && pwd`
2376
2377 if test x"${MISSING+set}" != xset; then
2378 case $am_aux_dir in
2379 *\ * | *\ *)
2380 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2381 *)
2382 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2383 esac
2384 fi
2385 # Use eval to expand $SHELL
2386 if eval "$MISSING --run true"; then
2387 am_missing_run="$MISSING --run "
2388 else
2389 am_missing_run=
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2391 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2392 fi
2393
2394 if test x"${install_sh}" != xset; then
2395 case $am_aux_dir in
2396 *\ * | *\ *)
2397 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2398 *)
2399 install_sh="\${SHELL} $am_aux_dir/install-sh"
2400 esac
2401 fi
2402
2403 # Installed binaries are usually stripped using `strip' when the user
2404 # run `make install-strip'. However `strip' might not be the right
2405 # tool to use in cross-compilation environments, therefore Automake
2406 # will honor the `STRIP' environment variable to overrule this program.
2407 if test "$cross_compiling" != no; then
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2410 set dummy ${ac_tool_prefix}strip; ac_word=$2
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if ${ac_cv_prog_STRIP+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test -n "$STRIP"; then
2417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430 done
2431 done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 STRIP=$ac_cv_prog_STRIP
2437 if test -n "$STRIP"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2439 $as_echo "$STRIP" >&6; }
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442 $as_echo "no" >&6; }
2443 fi
2444
2445
2446 fi
2447 if test -z "$ac_cv_prog_STRIP"; then
2448 ac_ct_STRIP=$STRIP
2449 # Extract the first word of "strip", so it can be a program name with args.
2450 set dummy strip; ac_word=$2
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452 $as_echo_n "checking for $ac_word... " >&6; }
2453 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 if test -n "$ac_ct_STRIP"; then
2457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_ac_ct_STRIP="strip"
2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2469 fi
2470 done
2471 done
2472 IFS=$as_save_IFS
2473
2474 fi
2475 fi
2476 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2477 if test -n "$ac_ct_STRIP"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2479 $as_echo "$ac_ct_STRIP" >&6; }
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482 $as_echo "no" >&6; }
2483 fi
2484
2485 if test "x$ac_ct_STRIP" = x; then
2486 STRIP=":"
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489 yes:)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2492 ac_tool_warned=yes ;;
2493 esac
2494 STRIP=$ac_ct_STRIP
2495 fi
2496 else
2497 STRIP="$ac_cv_prog_STRIP"
2498 fi
2499
2500 fi
2501 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2502
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2504 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2505 if test -z "$MKDIR_P"; then
2506 if ${ac_cv_path_mkdir+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_prog in mkdir gmkdir; do
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2517 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2518 'mkdir (GNU coreutils) '* | \
2519 'mkdir (coreutils) '* | \
2520 'mkdir (fileutils) '4.1*)
2521 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2522 break 3;;
2523 esac
2524 done
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530
2531 test -d ./--version && rmdir ./--version
2532 if test "${ac_cv_path_mkdir+set}" = set; then
2533 MKDIR_P="$ac_cv_path_mkdir -p"
2534 else
2535 # As a last resort, use the slow shell script. Don't cache a
2536 # value for MKDIR_P within a source directory, because that will
2537 # break other packages using the cache if that directory is
2538 # removed, or if the value is a relative name.
2539 MKDIR_P="$ac_install_sh -d"
2540 fi
2541 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2543 $as_echo "$MKDIR_P" >&6; }
2544
2545 mkdir_p="$MKDIR_P"
2546 case $mkdir_p in
2547 [\\/$]* | ?:[\\/]*) ;;
2548 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2549 esac
2550
2551 for ac_prog in gawk mawk nawk awk
2552 do
2553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2554 set dummy $ac_prog; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if ${ac_cv_prog_AWK+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 if test -n "$AWK"; then
2561 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_AWK="$ac_prog"
2571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 AWK=$ac_cv_prog_AWK
2581 if test -n "$AWK"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2583 $as_echo "$AWK" >&6; }
2584 else
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2587 fi
2588
2589
2590 test -n "$AWK" && break
2591 done
2592
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2594 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2595 set x ${MAKE-make}
2596 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2597 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 cat >conftest.make <<\_ACEOF
2601 SHELL = /bin/sh
2602 all:
2603 @echo '@@@%%%=$(MAKE)=@@@%%%'
2604 _ACEOF
2605 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2606 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2607 *@@@%%%=?*=@@@%%%*)
2608 eval ac_cv_prog_make_${ac_make}_set=yes;;
2609 *)
2610 eval ac_cv_prog_make_${ac_make}_set=no;;
2611 esac
2612 rm -f conftest.make
2613 fi
2614 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 SET_MAKE=
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2621 SET_MAKE="MAKE=${MAKE-make}"
2622 fi
2623
2624 rm -rf .tst 2>/dev/null
2625 mkdir .tst 2>/dev/null
2626 if test -d .tst; then
2627 am__leading_dot=.
2628 else
2629 am__leading_dot=_
2630 fi
2631 rmdir .tst 2>/dev/null
2632
2633 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2634 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2635 # is not polluted with repeated "-I."
2636 am__isrc=' -I$(srcdir)'
2637 # test to see if srcdir already configured
2638 if test -f $srcdir/config.status; then
2639 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2640 fi
2641 fi
2642
2643 # test whether we have cygpath
2644 if test -z "$CYGPATH_W"; then
2645 if (cygpath --version) >/dev/null 2>/dev/null; then
2646 CYGPATH_W='cygpath -w'
2647 else
2648 CYGPATH_W=echo
2649 fi
2650 fi
2651
2652
2653 # Define the identity of the package.
2654 PACKAGE='libXrandr'
2655 VERSION='1.3.2'
2656
2657
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE "$PACKAGE"
2660 _ACEOF
2661
2662
2663 cat >>confdefs.h <<_ACEOF
2664 #define VERSION "$VERSION"
2665 _ACEOF
2666
2667 # Some tools Automake needs.
2668
2669 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2670
2671
2672 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2673
2674
2675 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2676
2677
2678 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2679
2680
2681 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2682
2683 # We need awk for the "check" target. The system "awk" is bad on
2684 # some platforms.
2685 # Always define AMTAR for backward compatibility.
2686
2687 AMTAR=${AMTAR-"${am_missing_run}tar"}
2688
2689 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2690
2691
2692
2693
2694
2695
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2697 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2698 # Check whether --enable-maintainer-mode was given.
2699 if test "${enable_maintainer_mode+set}" = set; then :
2700 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2701 else
2702 USE_MAINTAINER_MODE=no
2703 fi
2704
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2706 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2707 if test $USE_MAINTAINER_MODE = yes; then
2708 MAINTAINER_MODE_TRUE=
2709 MAINTAINER_MODE_FALSE='#'
2710 else
2711 MAINTAINER_MODE_TRUE='#'
2712 MAINTAINER_MODE_FALSE=
2713 fi
2714
2715 MAINT=$MAINTAINER_MODE_TRUE
2716
2717
2718
2719 # Initialize libtool
2720 case `pwd` in
2721 *\ * | *\ *)
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2723 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2724 esac
2725
2726
2727
2728 macro_version='2.4'
2729 macro_revision='1.3293'
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743 ltmain="$ac_aux_dir/ltmain.sh"
2744
2745 # Make sure we can run config.sub.
2746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2747 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2750 $as_echo_n "checking build system type... " >&6; }
2751 if ${ac_cv_build+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 ac_build_alias=$build_alias
2755 test "x$ac_build_alias" = x &&
2756 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2757 test "x$ac_build_alias" = x &&
2758 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2759 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2761
2762 fi
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2764 $as_echo "$ac_cv_build" >&6; }
2765 case $ac_cv_build in
2766 *-*-*) ;;
2767 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2768 esac
2769 build=$ac_cv_build
2770 ac_save_IFS=$IFS; IFS='-'
2771 set x $ac_cv_build
2772 shift
2773 build_cpu=$1
2774 build_vendor=$2
2775 shift; shift
2776 # Remember, the first character of IFS is used to create $*,
2777 # except with old shells:
2778 build_os=$*
2779 IFS=$ac_save_IFS
2780 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2781
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2784 $as_echo_n "checking host system type... " >&6; }
2785 if ${ac_cv_host+:} false; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test "x$host_alias" = x; then
2789 ac_cv_host=$ac_cv_build
2790 else
2791 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2793 fi
2794
2795 fi
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2797 $as_echo "$ac_cv_host" >&6; }
2798 case $ac_cv_host in
2799 *-*-*) ;;
2800 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2801 esac
2802 host=$ac_cv_host
2803 ac_save_IFS=$IFS; IFS='-'
2804 set x $ac_cv_host
2805 shift
2806 host_cpu=$1
2807 host_vendor=$2
2808 shift; shift
2809 # Remember, the first character of IFS is used to create $*,
2810 # except with old shells:
2811 host_os=$*
2812 IFS=$ac_save_IFS
2813 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2814
2815
2816 # Backslashify metacharacters that are still active within
2817 # double-quoted strings.
2818 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2819
2820 # Same as above, but do not quote variable references.
2821 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2822
2823 # Sed substitution to delay expansion of an escaped shell variable in a
2824 # double_quote_subst'ed string.
2825 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2826
2827 # Sed substitution to delay expansion of an escaped single quote.
2828 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2829
2830 # Sed substitution to avoid accidental globbing in evaled expressions
2831 no_glob_subst='s/\*/\\\*/g'
2832
2833 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2834 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2835 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2836
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2838 $as_echo_n "checking how to print strings... " >&6; }
2839 # Test print first, because it will be a builtin if present.
2840 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2841 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2842 ECHO='print -r --'
2843 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2844 ECHO='printf %s\n'
2845 else
2846 # Use this function as a fallback that always works.
2847 func_fallback_echo ()
2848 {
2849 eval 'cat <<_LTECHO_EOF
2850 $1
2851 _LTECHO_EOF'
2852 }
2853 ECHO='func_fallback_echo'
2854 fi
2855
2856 # func_echo_all arg...
2857 # Invoke $ECHO with all args, space-separated.
2858 func_echo_all ()
2859 {
2860 $ECHO ""
2861 }
2862
2863 case "$ECHO" in
2864 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2865 $as_echo "printf" >&6; } ;;
2866 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2867 $as_echo "print -r" >&6; } ;;
2868 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2869 $as_echo "cat" >&6; } ;;
2870 esac
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885 DEPDIR="${am__leading_dot}deps"
2886
2887 ac_config_commands="$ac_config_commands depfiles"
2888
2889
2890 am_make=${MAKE-make}
2891 cat > confinc << 'END'
2892 am__doit:
2893 @echo this is the am__doit target
2894 .PHONY: am__doit
2895 END
2896 # If we don't find an include directive, just comment out the code.
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2898 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2899 am__include="#"
2900 am__quote=
2901 _am_result=none
2902 # First try GNU make style include.
2903 echo "include confinc" > confmf
2904 # Ignore all kinds of additional output from `make'.
2905 case `$am_make -s -f confmf 2> /dev/null` in #(
2906 *the\ am__doit\ target*)
2907 am__include=include
2908 am__quote=
2909 _am_result=GNU
2910 ;;
2911 esac
2912 # Now try BSD make style include.
2913 if test "$am__include" = "#"; then
2914 echo '.include "confinc"' > confmf
2915 case `$am_make -s -f confmf 2> /dev/null` in #(
2916 *the\ am__doit\ target*)
2917 am__include=.include
2918 am__quote="\""
2919 _am_result=BSD
2920 ;;
2921 esac
2922 fi
2923
2924
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2926 $as_echo "$_am_result" >&6; }
2927 rm -f confinc confmf
2928
2929 # Check whether --enable-dependency-tracking was given.
2930 if test "${enable_dependency_tracking+set}" = set; then :
2931 enableval=$enable_dependency_tracking;
2932 fi
2933
2934 if test "x$enable_dependency_tracking" != xno; then
2935 am_depcomp="$ac_aux_dir/depcomp"
2936 AMDEPBACKSLASH='\'
2937 fi
2938 if test "x$enable_dependency_tracking" != xno; then
2939 AMDEP_TRUE=
2940 AMDEP_FALSE='#'
2941 else
2942 AMDEP_TRUE='#'
2943 AMDEP_FALSE=
2944 fi
2945
2946
2947 ac_ext=c
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if ${ac_cv_prog_CC+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2987 fi
2988
2989
2990 fi
2991 if test -z "$ac_cv_prog_CC"; then
2992 ac_ct_CC=$CC
2993 # Extract the first word of "gcc", so it can be a program name with args.
2994 set dummy gcc; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$ac_ct_CC"; then
3001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_ac_ct_CC="gcc"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021 if test -n "$ac_ct_CC"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023 $as_echo "$ac_ct_CC" >&6; }
3024 else
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029 if test "x$ac_ct_CC" = x; then
3030 CC=""
3031 else
3032 case $cross_compiling:$ac_tool_warned in
3033 yes:)
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned=yes ;;
3037 esac
3038 CC=$ac_ct_CC
3039 fi
3040 else
3041 CC="$ac_cv_prog_CC"
3042 fi
3043
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}cc; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_CC+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_CC="${ac_tool_prefix}cc"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067 done
3068 done
3069 IFS=$as_save_IFS
3070
3071 fi
3072 fi
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080 fi
3081
3082
3083 fi
3084 fi
3085 if test -z "$CC"; then
3086 # Extract the first word of "cc", so it can be a program name with args.
3087 set dummy cc; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 ac_prog_rejected=no
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3105 ac_prog_rejected=yes
3106 continue
3107 fi
3108 ac_cv_prog_CC="cc"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112 done
3113 done
3114 IFS=$as_save_IFS
3115
3116 if test $ac_prog_rejected = yes; then
3117 # We found a bogon in the path, so make sure we never use it.
3118 set dummy $ac_cv_prog_CC
3119 shift
3120 if test $# != 0; then
3121 # We chose a different compiler from the bogus one.
3122 # However, it has the same basename, so the bogon will be chosen
3123 # first if we set CC to just the basename; use the full file name.
3124 shift
3125 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3126 fi
3127 fi
3128 fi
3129 fi
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140 fi
3141 if test -z "$CC"; then
3142 if test -n "$ac_tool_prefix"; then
3143 for ac_prog in cl.exe
3144 do
3145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_CC+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3165 fi
3166 done
3167 done
3168 IFS=$as_save_IFS
3169
3170 fi
3171 fi
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 fi
3180
3181
3182 test -n "$CC" && break
3183 done
3184 fi
3185 if test -z "$CC"; then
3186 ac_ct_CC=$CC
3187 for ac_prog in cl.exe
3188 do
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_ac_ct_CC="$ac_prog"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225
3226 test -n "$ac_ct_CC" && break
3227 done
3228
3229 if test "x$ac_ct_CC" = x; then
3230 CC=""
3231 else
3232 case $cross_compiling:$ac_tool_warned in
3233 yes:)
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3236 ac_tool_warned=yes ;;
3237 esac
3238 CC=$ac_ct_CC
3239 fi
3240 fi
3241
3242 fi
3243
3244
3245 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247 as_fn_error $? "no acceptable C compiler found in \$PATH
3248 See \`config.log' for more details" "$LINENO" 5; }
3249
3250 # Provide some information about the compiler.
3251 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3252 set X $ac_compile
3253 ac_compiler=$2
3254 for ac_option in --version -v -V -qversion; do
3255 { { ac_try="$ac_compiler $ac_option >&5"
3256 case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259 esac
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3263 ac_status=$?
3264 if test -s conftest.err; then
3265 sed '10a\
3266 ... rest of stderr output deleted ...
3267 10q' conftest.err >conftest.er1
3268 cat conftest.er1 >&5
3269 fi
3270 rm -f conftest.er1 conftest.err
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }
3273 done
3274
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3277
3278 int
3279 main ()
3280 {
3281
3282 ;
3283 return 0;
3284 }
3285 _ACEOF
3286 ac_clean_files_save=$ac_clean_files
3287 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3288 # Try to create an executable without -o first, disregard a.out.
3289 # It will help us diagnose broken compilers, and finding out an intuition
3290 # of exeext.
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3292 $as_echo_n "checking whether the C compiler works... " >&6; }
3293 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3294
3295 # The possible output files:
3296 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3297
3298 ac_rmfiles=
3299 for ac_file in $ac_files
3300 do
3301 case $ac_file in
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3303 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3304 esac
3305 done
3306 rm -f $ac_rmfiles
3307
3308 if { { ac_try="$ac_link_default"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_link_default") 2>&5
3316 ac_status=$?
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3319 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3320 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3321 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3322 # so that the user can short-circuit this test for compilers unknown to
3323 # Autoconf.
3324 for ac_file in $ac_files ''
3325 do
3326 test -f "$ac_file" || continue
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3329 ;;
3330 [ab].out )
3331 # We found the default executable, but exeext='' is most
3332 # certainly right.
3333 break;;
3334 *.* )
3335 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3336 then :; else
3337 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338 fi
3339 # We set ac_cv_exeext here because the later test for it is not
3340 # safe: cross compilers may not add the suffix if given an `-o'
3341 # argument, so we may need to know it at that point already.
3342 # Even if this section looks crufty: it has the advantage of
3343 # actually working.
3344 break;;
3345 * )
3346 break;;
3347 esac
3348 done
3349 test "$ac_cv_exeext" = no && ac_cv_exeext=
3350
3351 else
3352 ac_file=''
3353 fi
3354 if test -z "$ac_file"; then :
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error 77 "C compiler cannot create executables
3363 See \`config.log' for more details" "$LINENO" 5; }
3364 else
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366 $as_echo "yes" >&6; }
3367 fi
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3369 $as_echo_n "checking for C compiler default output file name... " >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3371 $as_echo "$ac_file" >&6; }
3372 ac_exeext=$ac_cv_exeext
3373
3374 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3375 ac_clean_files=$ac_clean_files_save
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3377 $as_echo_n "checking for suffix of executables... " >&6; }
3378 if { { ac_try="$ac_link"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_link") 2>&5
3386 ac_status=$?
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }; then :
3389 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3390 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3391 # work properly (i.e., refer to `conftest.exe'), while it won't with
3392 # `rm'.
3393 for ac_file in conftest.exe conftest conftest.*; do
3394 test -f "$ac_file" || continue
3395 case $ac_file in
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3397 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398 break;;
3399 * ) break;;
3400 esac
3401 done
3402 else
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3406 See \`config.log' for more details" "$LINENO" 5; }
3407 fi
3408 rm -f conftest conftest$ac_cv_exeext
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3410 $as_echo "$ac_cv_exeext" >&6; }
3411
3412 rm -f conftest.$ac_ext
3413 EXEEXT=$ac_cv_exeext
3414 ac_exeext=$EXEEXT
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417 #include <stdio.h>
3418 int
3419 main ()
3420 {
3421 FILE *f = fopen ("conftest.out", "w");
3422 return ferror (f) || fclose (f) != 0;
3423
3424 ;
3425 return 0;
3426 }
3427 _ACEOF
3428 ac_clean_files="$ac_clean_files conftest.out"
3429 # Check that the compiler produces executables we can run. If not, either
3430 # the compiler is broken, or we cross compile.
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3432 $as_echo_n "checking whether we are cross compiling... " >&6; }
3433 if test "$cross_compiling" != yes; then
3434 { { ac_try="$ac_link"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441 (eval "$ac_link") 2>&5
3442 ac_status=$?
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }
3445 if { ac_try='./conftest$ac_cv_exeext'
3446 { { case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452 (eval "$ac_try") 2>&5
3453 ac_status=$?
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }; }; then
3456 cross_compiling=no
3457 else
3458 if test "$cross_compiling" = maybe; then
3459 cross_compiling=yes
3460 else
3461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 as_fn_error $? "cannot run C compiled programs.
3464 If you meant to cross compile, use \`--host'.
3465 See \`config.log' for more details" "$LINENO" 5; }
3466 fi
3467 fi
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3470 $as_echo "$cross_compiling" >&6; }
3471
3472 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3473 ac_clean_files=$ac_clean_files_save
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3475 $as_echo_n "checking for suffix of object files... " >&6; }
3476 if ${ac_cv_objext+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481
3482 int
3483 main ()
3484 {
3485
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 rm -f conftest.o conftest.obj
3491 if { { ac_try="$ac_compile"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498 (eval "$ac_compile") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }; then :
3502 for ac_file in conftest.o conftest.obj conftest.*; do
3503 test -f "$ac_file" || continue;
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3506 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3507 break;;
3508 esac
3509 done
3510 else
3511 $as_echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 as_fn_error $? "cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details" "$LINENO" 5; }
3518 fi
3519 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3522 $as_echo "$ac_cv_objext" >&6; }
3523 OBJEXT=$ac_cv_objext
3524 ac_objext=$OBJEXT
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3526 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3527 if ${ac_cv_c_compiler_gnu+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529 else
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3532
3533 int
3534 main ()
3535 {
3536 #ifndef __GNUC__
3537 choke me
3538 #endif
3539
3540 ;
3541 return 0;
3542 }
3543 _ACEOF
3544 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_compiler_gnu=yes
3546 else
3547 ac_compiler_gnu=no
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3551
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3554 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3555 if test $ac_compiler_gnu = yes; then
3556 GCC=yes
3557 else
3558 GCC=
3559 fi
3560 ac_test_CFLAGS=${CFLAGS+set}
3561 ac_save_CFLAGS=$CFLAGS
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3563 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3564 if ${ac_cv_prog_cc_g+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 ac_save_c_werror_flag=$ac_c_werror_flag
3568 ac_c_werror_flag=yes
3569 ac_cv_prog_cc_g=no
3570 CFLAGS="-g"
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573
3574 int
3575 main ()
3576 {
3577
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_cv_prog_cc_g=yes
3584 else
3585 CFLAGS=""
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588
3589 int
3590 main ()
3591 {
3592
3593 ;
3594 return 0;
3595 }
3596 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598
3599 else
3600 ac_c_werror_flag=$ac_save_c_werror_flag
3601 CFLAGS="-g"
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604
3605 int
3606 main ()
3607 {
3608
3609 ;
3610 return 0;
3611 }
3612 _ACEOF
3613 if ac_fn_c_try_compile "$LINENO"; then :
3614 ac_cv_prog_cc_g=yes
3615 fi
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 fi
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 fi
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 ac_c_werror_flag=$ac_save_c_werror_flag
3622 fi
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3624 $as_echo "$ac_cv_prog_cc_g" >&6; }
3625 if test "$ac_test_CFLAGS" = set; then
3626 CFLAGS=$ac_save_CFLAGS
3627 elif test $ac_cv_prog_cc_g = yes; then
3628 if test "$GCC" = yes; then
3629 CFLAGS="-g -O2"
3630 else
3631 CFLAGS="-g"
3632 fi
3633 else
3634 if test "$GCC" = yes; then
3635 CFLAGS="-O2"
3636 else
3637 CFLAGS=
3638 fi
3639 fi
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3641 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3642 if ${ac_cv_prog_cc_c89+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 ac_cv_prog_cc_c89=no
3646 ac_save_CC=$CC
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649 #include <stdarg.h>
3650 #include <stdio.h>
3651 #include <sys/types.h>
3652 #include <sys/stat.h>
3653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3654 struct buf { int x; };
3655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3656 static char *e (p, i)
3657 char **p;
3658 int i;
3659 {
3660 return p[i];
3661 }
3662 static char *f (char * (*g) (char **, int), char **p, ...)
3663 {
3664 char *s;
3665 va_list v;
3666 va_start (v,p);
3667 s = g (p, va_arg (v,int));
3668 va_end (v);
3669 return s;
3670 }
3671
3672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3673 function prototypes and stuff, but not '\xHH' hex character constants.
3674 These don't provoke an error unfortunately, instead are silently treated
3675 as 'x'. The following induces an error, until -std is added to get
3676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3677 array size at least. It's necessary to write '\x00'==0 to get something
3678 that's true only with -std. */
3679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3680
3681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3682 inside strings and character constants. */
3683 #define FOO(x) 'x'
3684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3685
3686 int test (int i, double x);
3687 struct s1 {int (*f) (int a);};
3688 struct s2 {int (*f) (double a);};
3689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3690 int argc;
3691 char **argv;
3692 int
3693 main ()
3694 {
3695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3702 do
3703 CC="$ac_save_CC $ac_arg"
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_c89=$ac_arg
3706 fi
3707 rm -f core conftest.err conftest.$ac_objext
3708 test "x$ac_cv_prog_cc_c89" != "xno" && break
3709 done
3710 rm -f conftest.$ac_ext
3711 CC=$ac_save_CC
3712
3713 fi
3714 # AC_CACHE_VAL
3715 case "x$ac_cv_prog_cc_c89" in
3716 x)
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3718 $as_echo "none needed" >&6; } ;;
3719 xno)
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3721 $as_echo "unsupported" >&6; } ;;
3722 *)
3723 CC="$CC $ac_cv_prog_cc_c89"
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3725 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3726 esac
3727 if test "x$ac_cv_prog_cc_c89" != xno; then :
3728
3729 fi
3730
3731 ac_ext=c
3732 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736
3737 depcc="$CC" am_compiler_list=
3738
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3740 $as_echo_n "checking dependency style of $depcc... " >&6; }
3741 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3745 # We make a subdir and do the tests there. Otherwise we can end up
3746 # making bogus files that we don't know about and never remove. For
3747 # instance it was reported that on HP-UX the gcc test will end up
3748 # making a dummy file named `D' -- because `-MD' means `put the output
3749 # in D'.
3750 mkdir conftest.dir
3751 # Copy depcomp to subdir because otherwise we won't find it if we're
3752 # using a relative directory.
3753 cp "$am_depcomp" conftest.dir
3754 cd conftest.dir
3755 # We will build objects and dependencies in a subdirectory because
3756 # it helps to detect inapplicable dependency modes. For instance
3757 # both Tru64's cc and ICC support -MD to output dependencies as a
3758 # side effect of compilation, but ICC will put the dependencies in
3759 # the current directory while Tru64 will put them in the object
3760 # directory.
3761 mkdir sub
3762
3763 am_cv_CC_dependencies_compiler_type=none
3764 if test "$am_compiler_list" = ""; then
3765 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3766 fi
3767 am__universal=false
3768 case " $depcc " in #(
3769 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3770 esac
3771
3772 for depmode in $am_compiler_list; do
3773 # Setup a source with many dependencies, because some compilers
3774 # like to wrap large dependency lists on column 80 (with \), and
3775 # we should not choose a depcomp mode which is confused by this.
3776 #
3777 # We need to recreate these files for each test, as the compiler may
3778 # overwrite some of them when testing with obscure command lines.
3779 # This happens at least with the AIX C compiler.
3780 : > sub/conftest.c
3781 for i in 1 2 3 4 5 6; do
3782 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3783 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3784 # Solaris 8's {/usr,}/bin/sh.
3785 touch sub/conftst$i.h
3786 done
3787 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3788
3789 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3790 # mode. It turns out that the SunPro C++ compiler does not properly
3791 # handle `-M -o', and we need to detect this. Also, some Intel
3792 # versions had trouble with output in subdirs
3793 am__obj=sub/conftest.${OBJEXT-o}
3794 am__minus_obj="-o $am__obj"
3795 case $depmode in
3796 gcc)
3797 # This depmode causes a compiler race in universal mode.
3798 test "$am__universal" = false || continue
3799 ;;
3800 nosideeffect)
3801 # after this tag, mechanisms are not by side-effect, so they'll
3802 # only be used when explicitly requested
3803 if test "x$enable_dependency_tracking" = xyes; then
3804 continue
3805 else
3806 break
3807 fi
3808 ;;
3809 msvisualcpp | msvcmsys)
3810 # This compiler won't grok `-c -o', but also, the minuso test has
3811 # not run yet. These depmodes are late enough in the game, and
3812 # so weak that their functioning should not be impacted.
3813 am__obj=conftest.${OBJEXT-o}
3814 am__minus_obj=
3815 ;;
3816 none) break ;;
3817 esac
3818 if depmode=$depmode \
3819 source=sub/conftest.c object=$am__obj \
3820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3822 >/dev/null 2>conftest.err &&
3823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3825 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3827 # icc doesn't choke on unknown options, it will just issue warnings
3828 # or remarks (even with -Werror). So we grep stderr for any message
3829 # that says an option was ignored or not supported.
3830 # When given -MP, icc 7.0 and 7.1 complain thusly:
3831 # icc: Command line warning: ignoring option '-M'; no argument required
3832 # The diagnosis changed in icc 8.0:
3833 # icc: Command line remark: option '-MP' not supported
3834 if (grep 'ignoring option' conftest.err ||
3835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3836 am_cv_CC_dependencies_compiler_type=$depmode
3837 break
3838 fi
3839 fi
3840 done
3841
3842 cd ..
3843 rm -rf conftest.dir
3844 else
3845 am_cv_CC_dependencies_compiler_type=none
3846 fi
3847
3848 fi
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3850 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3851 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3852
3853 if
3854 test "x$enable_dependency_tracking" != xno \
3855 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3856 am__fastdepCC_TRUE=
3857 am__fastdepCC_FALSE='#'
3858 else
3859 am__fastdepCC_TRUE='#'
3860 am__fastdepCC_FALSE=
3861 fi
3862
3863
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3865 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3866 if ${ac_cv_path_SED+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868 else
3869 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3870 for ac_i in 1 2 3 4 5 6 7; do
3871 ac_script="$ac_script$as_nl$ac_script"
3872 done
3873 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3874 { ac_script=; unset ac_script;}
3875 if test -z "$SED"; then
3876 ac_path_SED_found=false
3877 # Loop through the user's path and test for each of PROGNAME-LIST
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_prog in sed gsed; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3886 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3887 # Check for GNU ac_path_SED and select it if it is found.
3888 # Check for GNU $ac_path_SED
3889 case `"$ac_path_SED" --version 2>&1` in
3890 *GNU*)
3891 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3892 *)
3893 ac_count=0
3894 $as_echo_n 0123456789 >"conftest.in"
3895 while :
3896 do
3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
3898 mv "conftest.tmp" "conftest.in"
3899 cp "conftest.in" "conftest.nl"
3900 $as_echo '' >> "conftest.nl"
3901 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903 as_fn_arith $ac_count + 1 && ac_count=$as_val
3904 if test $ac_count -gt ${ac_path_SED_max-0}; then
3905 # Best one so far, save it but keep looking for a better one
3906 ac_cv_path_SED="$ac_path_SED"
3907 ac_path_SED_max=$ac_count
3908 fi
3909 # 10*(2^10) chars as input seems more than enough
3910 test $ac_count -gt 10 && break
3911 done
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913 esac
3914
3915 $ac_path_SED_found && break 3
3916 done
3917 done
3918 done
3919 IFS=$as_save_IFS
3920 if test -z "$ac_cv_path_SED"; then
3921 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3922 fi
3923 else
3924 ac_cv_path_SED=$SED
3925 fi
3926
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3929 $as_echo "$ac_cv_path_SED" >&6; }
3930 SED="$ac_cv_path_SED"
3931 rm -f conftest.sed
3932
3933 test -z "$SED" && SED=sed
3934 Xsed="$SED -e 1s/^X//"
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3947 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3948 if ${ac_cv_path_GREP+:} false; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 if test -z "$GREP"; then
3952 ac_path_GREP_found=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_prog in grep ggrep; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3963 # Check for GNU ac_path_GREP and select it if it is found.
3964 # Check for GNU $ac_path_GREP
3965 case `"$ac_path_GREP" --version 2>&1` in
3966 *GNU*)
3967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3968 *)
3969 ac_count=0
3970 $as_echo_n 0123456789 >"conftest.in"
3971 while :
3972 do
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 $as_echo 'GREP' >> "conftest.nl"
3977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979 as_fn_arith $ac_count + 1 && ac_count=$as_val
3980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_GREP="$ac_path_GREP"
3983 ac_path_GREP_max=$ac_count
3984 fi
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3987 done
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989 esac
3990
3991 $ac_path_GREP_found && break 3
3992 done
3993 done
3994 done
3995 IFS=$as_save_IFS
3996 if test -z "$ac_cv_path_GREP"; then
3997 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3998 fi
3999 else
4000 ac_cv_path_GREP=$GREP
4001 fi
4002
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4005 $as_echo "$ac_cv_path_GREP" >&6; }
4006 GREP="$ac_cv_path_GREP"
4007
4008
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4010 $as_echo_n "checking for egrep... " >&6; }
4011 if ${ac_cv_path_EGREP+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4015 then ac_cv_path_EGREP="$GREP -E"
4016 else
4017 if test -z "$EGREP"; then
4018 ac_path_EGREP_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 egrep; do
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4028 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4029 # Check for GNU ac_path_EGREP and select it if it is found.
4030 # Check for GNU $ac_path_EGREP
4031 case `"$ac_path_EGREP" --version 2>&1` in
4032 *GNU*)
4033 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
4043 "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then
4047 # Best one so far, save it but keep looking for a better one
4048 ac_cv_path_EGREP="$ac_path_EGREP"
4049 ac_path_EGREP_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_EGREP_found && break 3
4058 done
4059 done
4060 done
4061 IFS=$as_save_IFS
4062 if test -z "$ac_cv_path_EGREP"; then
4063 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4064 fi
4065 else
4066 ac_cv_path_EGREP=$EGREP
4067 fi
4068
4069 fi
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4072 $as_echo "$ac_cv_path_EGREP" >&6; }
4073 EGREP="$ac_cv_path_EGREP"
4074
4075
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4077 $as_echo_n "checking for fgrep... " >&6; }
4078 if ${ac_cv_path_FGREP+:} false; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4082 then ac_cv_path_FGREP="$GREP -F"
4083 else
4084 if test -z "$FGREP"; then
4085 ac_path_FGREP_found=false
4086 # Loop through the user's path and test for each of PROGNAME-LIST
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089 do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_prog in fgrep; do
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4095 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4096 # Check for GNU ac_path_FGREP and select it if it is found.
4097 # Check for GNU $ac_path_FGREP
4098 case `"$ac_path_FGREP" --version 2>&1` in
4099 *GNU*)
4100 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4101 *)
4102 ac_count=0
4103 $as_echo_n 0123456789 >"conftest.in"
4104 while :
4105 do
4106 cat "conftest.in" "conftest.in" >"conftest.tmp"
4107 mv "conftest.tmp" "conftest.in"
4108 cp "conftest.in" "conftest.nl"
4109 $as_echo 'FGREP' >> "conftest.nl"
4110 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4112 as_fn_arith $ac_count + 1 && ac_count=$as_val
4113 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4114 # Best one so far, save it but keep looking for a better one
4115 ac_cv_path_FGREP="$ac_path_FGREP"
4116 ac_path_FGREP_max=$ac_count
4117 fi
4118 # 10*(2^10) chars as input seems more than enough
4119 test $ac_count -gt 10 && break
4120 done
4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122 esac
4123
4124 $ac_path_FGREP_found && break 3
4125 done
4126 done
4127 done
4128 IFS=$as_save_IFS
4129 if test -z "$ac_cv_path_FGREP"; then
4130 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4131 fi
4132 else
4133 ac_cv_path_FGREP=$FGREP
4134 fi
4135
4136 fi
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4139 $as_echo "$ac_cv_path_FGREP" >&6; }
4140 FGREP="$ac_cv_path_FGREP"
4141
4142
4143 test -z "$GREP" && GREP=grep
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163 # Check whether --with-gnu-ld was given.
4164 if test "${with_gnu_ld+set}" = set; then :
4165 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4166 else
4167 with_gnu_ld=no
4168 fi
4169
4170 ac_prog=ld
4171 if test "$GCC" = yes; then
4172 # Check if gcc -print-prog-name=ld gives a path.
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4174 $as_echo_n "checking for ld used by $CC... " >&6; }
4175 case $host in
4176 *-*-mingw*)
4177 # gcc leaves a trailing carriage return which upsets mingw
4178 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4179 *)
4180 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4181 esac
4182 case $ac_prog in
4183 # Accept absolute paths.
4184 [\\/]* | ?:[\\/]*)
4185 re_direlt='/[^/][^/]*/\.\./'
4186 # Canonicalize the pathname of ld
4187 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4188 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4189 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4190 done
4191 test -z "$LD" && LD="$ac_prog"
4192 ;;
4193 "")
4194 # If it fails, then pretend we aren't using GCC.
4195 ac_prog=ld
4196 ;;
4197 *)
4198 # If it is relative, then search for the first ld in PATH.
4199 with_gnu_ld=unknown
4200 ;;
4201 esac
4202 elif test "$with_gnu_ld" = yes; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4204 $as_echo_n "checking for GNU ld... " >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4207 $as_echo_n "checking for non-GNU ld... " >&6; }
4208 fi
4209 if ${lt_cv_path_LD+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -z "$LD"; then
4213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4214 for ac_dir in $PATH; do
4215 IFS="$lt_save_ifs"
4216 test -z "$ac_dir" && ac_dir=.
4217 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4218 lt_cv_path_LD="$ac_dir/$ac_prog"
4219 # Check to see if the program is GNU ld. I'd rather use --version,
4220 # but apparently some variants of GNU ld only accept -v.
4221 # Break only if it was the GNU/non-GNU ld that we prefer.
4222 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4223 *GNU* | *'with BFD'*)
4224 test "$with_gnu_ld" != no && break
4225 ;;
4226 *)
4227 test "$with_gnu_ld" != yes && break
4228 ;;
4229 esac
4230 fi
4231 done
4232 IFS="$lt_save_ifs"
4233 else
4234 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4235 fi
4236 fi
4237
4238 LD="$lt_cv_path_LD"
4239 if test -n "$LD"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4241 $as_echo "$LD" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4245 fi
4246 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4248 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4249 if ${lt_cv_prog_gnu_ld+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4253 case `$LD -v 2>&1 </dev/null` in
4254 *GNU* | *'with BFD'*)
4255 lt_cv_prog_gnu_ld=yes
4256 ;;
4257 *)
4258 lt_cv_prog_gnu_ld=no
4259 ;;
4260 esac
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4263 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4264 with_gnu_ld=$lt_cv_prog_gnu_ld
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4275 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4276 if ${lt_cv_path_NM+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$NM"; then
4280 # Let the user override the test.
4281 lt_cv_path_NM="$NM"
4282 else
4283 lt_nm_to_check="${ac_tool_prefix}nm"
4284 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4285 lt_nm_to_check="$lt_nm_to_check nm"
4286 fi
4287 for lt_tmp_nm in $lt_nm_to_check; do
4288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4289 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4290 IFS="$lt_save_ifs"
4291 test -z "$ac_dir" && ac_dir=.
4292 tmp_nm="$ac_dir/$lt_tmp_nm"
4293 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4294 # Check to see if the nm accepts a BSD-compat flag.
4295 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4296 # nm: unknown option "B" ignored
4297 # Tru64's nm complains that /dev/null is an invalid object file
4298 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4299 */dev/null* | *'Invalid file or object type'*)
4300 lt_cv_path_NM="$tmp_nm -B"
4301 break
4302 ;;
4303 *)
4304 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4305 */dev/null*)
4306 lt_cv_path_NM="$tmp_nm -p"
4307 break
4308 ;;
4309 *)
4310 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4311 continue # so that we can try to find one that supports BSD flags
4312 ;;
4313 esac
4314 ;;
4315 esac
4316 fi
4317 done
4318 IFS="$lt_save_ifs"
4319 done
4320 : ${lt_cv_path_NM=no}
4321 fi
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4324 $as_echo "$lt_cv_path_NM" >&6; }
4325 if test "$lt_cv_path_NM" != "no"; then
4326 NM="$lt_cv_path_NM"
4327 else
4328 # Didn't find any BSD compatible name lister, look for dumpbin.
4329 if test -n "$DUMPBIN"; then :
4330 # Let the user override the test.
4331 else
4332 if test -n "$ac_tool_prefix"; then
4333 for ac_prog in dumpbin "link -dump"
4334 do
4335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_DUMPBIN+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -n "$DUMPBIN"; then
4343 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4344 else
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4355 fi
4356 done
4357 done
4358 IFS=$as_save_IFS
4359
4360 fi
4361 fi
4362 DUMPBIN=$ac_cv_prog_DUMPBIN
4363 if test -n "$DUMPBIN"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4365 $as_echo "$DUMPBIN" >&6; }
4366 else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4369 fi
4370
4371
4372 test -n "$DUMPBIN" && break
4373 done
4374 fi
4375 if test -z "$DUMPBIN"; then
4376 ac_ct_DUMPBIN=$DUMPBIN
4377 for ac_prog in dumpbin "link -dump"
4378 do
4379 # Extract the first word of "$ac_prog", so it can be a program name with args.
4380 set dummy $ac_prog; ac_word=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if test -n "$ac_ct_DUMPBIN"; then
4387 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4399 fi
4400 done
4401 done
4402 IFS=$as_save_IFS
4403
4404 fi
4405 fi
4406 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4407 if test -n "$ac_ct_DUMPBIN"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4409 $as_echo "$ac_ct_DUMPBIN" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413 fi
4414
4415
4416 test -n "$ac_ct_DUMPBIN" && break
4417 done
4418
4419 if test "x$ac_ct_DUMPBIN" = x; then
4420 DUMPBIN=":"
4421 else
4422 case $cross_compiling:$ac_tool_warned in
4423 yes:)
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4426 ac_tool_warned=yes ;;
4427 esac
4428 DUMPBIN=$ac_ct_DUMPBIN
4429 fi
4430 fi
4431
4432 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4433 *COFF*)
4434 DUMPBIN="$DUMPBIN -symbols"
4435 ;;
4436 *)
4437 DUMPBIN=:
4438 ;;
4439 esac
4440 fi
4441
4442 if test "$DUMPBIN" != ":"; then
4443 NM="$DUMPBIN"
4444 fi
4445 fi
4446 test -z "$NM" && NM=nm
4447
4448
4449
4450
4451
4452
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4454 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4455 if ${lt_cv_nm_interface+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 lt_cv_nm_interface="BSD nm"
4459 echo "int some_variable = 0;" > conftest.$ac_ext
4460 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4461 (eval "$ac_compile" 2>conftest.err)
4462 cat conftest.err >&5
4463 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4464 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4465 cat conftest.err >&5
4466 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4467 cat conftest.out >&5
4468 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4469 lt_cv_nm_interface="MS dumpbin"
4470 fi
4471 rm -f conftest*
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4474 $as_echo "$lt_cv_nm_interface" >&6; }
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4477 $as_echo_n "checking whether ln -s works... " >&6; }
4478 LN_S=$as_ln_s
4479 if test "$LN_S" = "ln -s"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4481 $as_echo "yes" >&6; }
4482 else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4484 $as_echo "no, using $LN_S" >&6; }
4485 fi
4486
4487 # find the maximum length of command line arguments
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4489 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4490 if ${lt_cv_sys_max_cmd_len+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 i=0
4494 teststring="ABCD"
4495
4496 case $build_os in
4497 msdosdjgpp*)
4498 # On DJGPP, this test can blow up pretty badly due to problems in libc
4499 # (any single argument exceeding 2000 bytes causes a buffer overrun
4500 # during glob expansion). Even if it were fixed, the result of this
4501 # check would be larger than it should be.
4502 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4503 ;;
4504
4505 gnu*)
4506 # Under GNU Hurd, this test is not required because there is
4507 # no limit to the length of command line arguments.
4508 # Libtool will interpret -1 as no limit whatsoever
4509 lt_cv_sys_max_cmd_len=-1;
4510 ;;
4511
4512 cygwin* | mingw* | cegcc*)
4513 # On Win9x/ME, this test blows up -- it succeeds, but takes
4514 # about 5 minutes as the teststring grows exponentially.
4515 # Worse, since 9x/ME are not pre-emptively multitasking,
4516 # you end up with a "frozen" computer, even though with patience
4517 # the test eventually succeeds (with a max line length of 256k).
4518 # Instead, let's just punt: use the minimum linelength reported by
4519 # all of the supported platforms: 8192 (on NT/2K/XP).
4520 lt_cv_sys_max_cmd_len=8192;
4521 ;;
4522
4523 mint*)
4524 # On MiNT this can take a long time and run out of memory.
4525 lt_cv_sys_max_cmd_len=8192;
4526 ;;
4527
4528 amigaos*)
4529 # On AmigaOS with pdksh, this test takes hours, literally.
4530 # So we just punt and use a minimum line length of 8192.
4531 lt_cv_sys_max_cmd_len=8192;
4532 ;;
4533
4534 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4535 # This has been around since 386BSD, at least. Likely further.
4536 if test -x /sbin/sysctl; then
4537 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4538 elif test -x /usr/sbin/sysctl; then
4539 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4540 else
4541 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4542 fi
4543 # And add a safety zone
4544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4546 ;;
4547
4548 interix*)
4549 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4550 lt_cv_sys_max_cmd_len=196608
4551 ;;
4552
4553 osf*)
4554 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4555 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4556 # nice to cause kernel panics so lets avoid the loop below.
4557 # First set a reasonable default.
4558 lt_cv_sys_max_cmd_len=16384
4559 #
4560 if test -x /sbin/sysconfig; then
4561 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4562 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4563 esac
4564 fi
4565 ;;
4566 sco3.2v5*)
4567 lt_cv_sys_max_cmd_len=102400
4568 ;;
4569 sysv5* | sco5v6* | sysv4.2uw2*)
4570 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4571 if test -n "$kargmax"; then
4572 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4573 else
4574 lt_cv_sys_max_cmd_len=32768
4575 fi
4576 ;;
4577 *)
4578 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4579 if test -n "$lt_cv_sys_max_cmd_len"; then
4580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4582 else
4583 # Make teststring a little bigger before we do anything with it.
4584 # a 1K string should be a reasonable start.
4585 for i in 1 2 3 4 5 6 7 8 ; do
4586 teststring=$teststring$teststring
4587 done
4588 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4589 # If test is not a shell built-in, we'll probably end up computing a
4590 # maximum length that is only half of the actual maximum length, but
4591 # we can't tell.
4592 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4593 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4594 test $i != 17 # 1/2 MB should be enough
4595 do
4596 i=`expr $i + 1`
4597 teststring=$teststring$teststring
4598 done
4599 # Only check the string length outside the loop.
4600 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4601 teststring=
4602 # Add a significant safety factor because C++ compilers can tack on
4603 # massive amounts of additional arguments before passing them to the
4604 # linker. It appears as though 1/2 is a usable value.
4605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4606 fi
4607 ;;
4608 esac
4609
4610 fi
4611
4612 if test -n $lt_cv_sys_max_cmd_len ; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4614 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4617 $as_echo "none" >&6; }
4618 fi
4619 max_cmd_len=$lt_cv_sys_max_cmd_len
4620
4621
4622
4623
4624
4625
4626 : ${CP="cp -f"}
4627 : ${MV="mv -f"}
4628 : ${RM="rm -f"}
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4631 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4632 # Try some XSI features
4633 xsi_shell=no
4634 ( _lt_dummy="a/b/c"
4635 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4636 = c,a/b,b/c, \
4637 && eval 'test $(( 1 + 1 )) -eq 2 \
4638 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4639 && xsi_shell=yes
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4641 $as_echo "$xsi_shell" >&6; }
4642
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4645 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4646 lt_shell_append=no
4647 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4648 >/dev/null 2>&1 \
4649 && lt_shell_append=yes
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4651 $as_echo "$lt_shell_append" >&6; }
4652
4653
4654 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4655 lt_unset=unset
4656 else
4657 lt_unset=false
4658 fi
4659
4660
4661
4662
4663
4664 # test EBCDIC or ASCII
4665 case `echo X|tr X '\101'` in
4666 A) # ASCII based system
4667 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4668 lt_SP2NL='tr \040 \012'
4669 lt_NL2SP='tr \015\012 \040\040'
4670 ;;
4671 *) # EBCDIC based system
4672 lt_SP2NL='tr \100 \n'
4673 lt_NL2SP='tr \r\n \100\100'
4674 ;;
4675 esac
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4686 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4687 if ${lt_cv_to_host_file_cmd+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 case $host in
4691 *-*-mingw* )
4692 case $build in
4693 *-*-mingw* ) # actually msys
4694 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4695 ;;
4696 *-*-cygwin* )
4697 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4698 ;;
4699 * ) # otherwise, assume *nix
4700 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4701 ;;
4702 esac
4703 ;;
4704 *-*-cygwin* )
4705 case $build in
4706 *-*-mingw* ) # actually msys
4707 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4708 ;;
4709 *-*-cygwin* )
4710 lt_cv_to_host_file_cmd=func_convert_file_noop
4711 ;;
4712 * ) # otherwise, assume *nix
4713 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4714 ;;
4715 esac
4716 ;;
4717 * ) # unhandled hosts (and "normal" native builds)
4718 lt_cv_to_host_file_cmd=func_convert_file_noop
4719 ;;
4720 esac
4721
4722 fi
4723
4724 to_host_file_cmd=$lt_cv_to_host_file_cmd
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4726 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4727
4728
4729
4730
4731
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4733 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4734 if ${lt_cv_to_tool_file_cmd+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 #assume ordinary cross tools, or native build.
4738 lt_cv_to_tool_file_cmd=func_convert_file_noop
4739 case $host in
4740 *-*-mingw* )
4741 case $build in
4742 *-*-mingw* ) # actually msys
4743 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4744 ;;
4745 esac
4746 ;;
4747 esac
4748
4749 fi
4750
4751 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4753 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4754
4755
4756
4757
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4760 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4761 if ${lt_cv_ld_reload_flag+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 lt_cv_ld_reload_flag='-r'
4765 fi
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4767 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4768 reload_flag=$lt_cv_ld_reload_flag
4769 case $reload_flag in
4770 "" | " "*) ;;
4771 *) reload_flag=" $reload_flag" ;;
4772 esac
4773 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4774 case $host_os in
4775 cygwin* | mingw* | pw32* | cegcc*)
4776 if test "$GCC" != yes; then
4777 reload_cmds=false
4778 fi
4779 ;;
4780 darwin*)
4781 if test "$GCC" = yes; then
4782 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4783 else
4784 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4785 fi
4786 ;;
4787 esac
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797 if test -n "$ac_tool_prefix"; then
4798 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4799 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if ${ac_cv_prog_OBJDUMP+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 if test -n "$OBJDUMP"; then
4806 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4818 fi
4819 done
4820 done
4821 IFS=$as_save_IFS
4822
4823 fi
4824 fi
4825 OBJDUMP=$ac_cv_prog_OBJDUMP
4826 if test -n "$OBJDUMP"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4828 $as_echo "$OBJDUMP" >&6; }
4829 else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834
4835 fi
4836 if test -z "$ac_cv_prog_OBJDUMP"; then
4837 ac_ct_OBJDUMP=$OBJDUMP
4838 # Extract the first word of "objdump", so it can be a program name with args.
4839 set dummy objdump; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$ac_ct_OBJDUMP"; then
4846 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4858 fi
4859 done
4860 done
4861 IFS=$as_save_IFS
4862
4863 fi
4864 fi
4865 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4866 if test -n "$ac_ct_OBJDUMP"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4868 $as_echo "$ac_ct_OBJDUMP" >&6; }
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4872 fi
4873
4874 if test "x$ac_ct_OBJDUMP" = x; then
4875 OBJDUMP="false"
4876 else
4877 case $cross_compiling:$ac_tool_warned in
4878 yes:)
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4881 ac_tool_warned=yes ;;
4882 esac
4883 OBJDUMP=$ac_ct_OBJDUMP
4884 fi
4885 else
4886 OBJDUMP="$ac_cv_prog_OBJDUMP"
4887 fi
4888
4889 test -z "$OBJDUMP" && OBJDUMP=objdump
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4900 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4901 if ${lt_cv_deplibs_check_method+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 lt_cv_file_magic_cmd='$MAGIC_CMD'
4905 lt_cv_file_magic_test_file=
4906 lt_cv_deplibs_check_method='unknown'
4907 # Need to set the preceding variable on all platforms that support
4908 # interlibrary dependencies.
4909 # 'none' -- dependencies not supported.
4910 # `unknown' -- same as none, but documents that we really don't know.
4911 # 'pass_all' -- all dependencies passed with no checks.
4912 # 'test_compile' -- check by making test program.
4913 # 'file_magic [[regex]]' -- check by looking for files in library path
4914 # which responds to the $file_magic_cmd with a given extended regex.
4915 # If you have `file' or equivalent on your system and you're not sure
4916 # whether `pass_all' will *always* work, you probably want this one.
4917
4918 case $host_os in
4919 aix[4-9]*)
4920 lt_cv_deplibs_check_method=pass_all
4921 ;;
4922
4923 beos*)
4924 lt_cv_deplibs_check_method=pass_all
4925 ;;
4926
4927 bsdi[45]*)
4928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4929 lt_cv_file_magic_cmd='/usr/bin/file -L'
4930 lt_cv_file_magic_test_file=/shlib/libc.so
4931 ;;
4932
4933 cygwin*)
4934 # func_win32_libid is a shell function defined in ltmain.sh
4935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4936 lt_cv_file_magic_cmd='func_win32_libid'
4937 ;;
4938
4939 mingw* | pw32*)
4940 # Base MSYS/MinGW do not provide the 'file' command needed by
4941 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4942 # unless we find 'file', for example because we are cross-compiling.
4943 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4944 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4945 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4946 lt_cv_file_magic_cmd='func_win32_libid'
4947 else
4948 # Keep this pattern in sync with the one in func_win32_libid.
4949 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4950 lt_cv_file_magic_cmd='$OBJDUMP -f'
4951 fi
4952 ;;
4953
4954 cegcc*)
4955 # use the weaker test based on 'objdump'. See mingw*.
4956 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4957 lt_cv_file_magic_cmd='$OBJDUMP -f'
4958 ;;
4959
4960 darwin* | rhapsody*)
4961 lt_cv_deplibs_check_method=pass_all
4962 ;;
4963
4964 freebsd* | dragonfly*)
4965 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4966 case $host_cpu in
4967 i*86 )
4968 # Not sure whether the presence of OpenBSD here was a mistake.
4969 # Let's accept both of them until this is cleared up.
4970 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4971 lt_cv_file_magic_cmd=/usr/bin/file
4972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4973 ;;
4974 esac
4975 else
4976 lt_cv_deplibs_check_method=pass_all
4977 fi
4978 ;;
4979
4980 gnu*)
4981 lt_cv_deplibs_check_method=pass_all
4982 ;;
4983
4984 haiku*)
4985 lt_cv_deplibs_check_method=pass_all
4986 ;;
4987
4988 hpux10.20* | hpux11*)
4989 lt_cv_file_magic_cmd=/usr/bin/file
4990 case $host_cpu in
4991 ia64*)
4992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4993 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4994 ;;
4995 hppa*64*)
4996 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]'
4997 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4998 ;;
4999 *)
5000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5001 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5002 ;;
5003 esac
5004 ;;
5005
5006 interix[3-9]*)
5007 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5009 ;;
5010
5011 irix5* | irix6* | nonstopux*)
5012 case $LD in
5013 *-32|*"-32 ") libmagic=32-bit;;
5014 *-n32|*"-n32 ") libmagic=N32;;
5015 *-64|*"-64 ") libmagic=64-bit;;
5016 *) libmagic=never-match;;
5017 esac
5018 lt_cv_deplibs_check_method=pass_all
5019 ;;
5020
5021 # This must be Linux ELF.
5022 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5023 lt_cv_deplibs_check_method=pass_all
5024 ;;
5025
5026 netbsd*)
5027 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5029 else
5030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5031 fi
5032 ;;
5033
5034 newos6*)
5035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5036 lt_cv_file_magic_cmd=/usr/bin/file
5037 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5038 ;;
5039
5040 *nto* | *qnx*)
5041 lt_cv_deplibs_check_method=pass_all
5042 ;;
5043
5044 openbsd*)
5045 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5047 else
5048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5049 fi
5050 ;;
5051
5052 osf3* | osf4* | osf5*)
5053 lt_cv_deplibs_check_method=pass_all
5054 ;;
5055
5056 rdos*)
5057 lt_cv_deplibs_check_method=pass_all
5058 ;;
5059
5060 solaris*)
5061 lt_cv_deplibs_check_method=pass_all
5062 ;;
5063
5064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5065 lt_cv_deplibs_check_method=pass_all
5066 ;;
5067
5068 sysv4 | sysv4.3*)
5069 case $host_vendor in
5070 motorola)
5071 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]'
5072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5073 ;;
5074 ncr)
5075 lt_cv_deplibs_check_method=pass_all
5076 ;;
5077 sequent)
5078 lt_cv_file_magic_cmd='/bin/file'
5079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5080 ;;
5081 sni)
5082 lt_cv_file_magic_cmd='/bin/file'
5083 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5084 lt_cv_file_magic_test_file=/lib/libc.so
5085 ;;
5086 siemens)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
5089 pc)
5090 lt_cv_deplibs_check_method=pass_all
5091 ;;
5092 esac
5093 ;;
5094
5095 tpf*)
5096 lt_cv_deplibs_check_method=pass_all
5097 ;;
5098 esac
5099
5100 fi
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5102 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5103
5104 file_magic_glob=
5105 want_nocaseglob=no
5106 if test "$build" = "$host"; then
5107 case $host_os in
5108 mingw* | pw32*)
5109 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5110 want_nocaseglob=yes
5111 else
5112 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5113 fi
5114 ;;
5115 esac
5116 fi
5117
5118 file_magic_cmd=$lt_cv_file_magic_cmd
5119 deplibs_check_method=$lt_cv_deplibs_check_method
5120 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143 if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5145 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_DLLTOOL+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$DLLTOOL"; then
5152 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165 done
5166 done
5167 IFS=$as_save_IFS
5168
5169 fi
5170 fi
5171 DLLTOOL=$ac_cv_prog_DLLTOOL
5172 if test -n "$DLLTOOL"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5174 $as_echo "$DLLTOOL" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180
5181 fi
5182 if test -z "$ac_cv_prog_DLLTOOL"; then
5183 ac_ct_DLLTOOL=$DLLTOOL
5184 # Extract the first word of "dlltool", so it can be a program name with args.
5185 set dummy dlltool; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$ac_ct_DLLTOOL"; then
5192 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205 done
5206 done
5207 IFS=$as_save_IFS
5208
5209 fi
5210 fi
5211 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5212 if test -n "$ac_ct_DLLTOOL"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5214 $as_echo "$ac_ct_DLLTOOL" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220 if test "x$ac_ct_DLLTOOL" = x; then
5221 DLLTOOL="false"
5222 else
5223 case $cross_compiling:$ac_tool_warned in
5224 yes:)
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned=yes ;;
5228 esac
5229 DLLTOOL=$ac_ct_DLLTOOL
5230 fi
5231 else
5232 DLLTOOL="$ac_cv_prog_DLLTOOL"
5233 fi
5234
5235 test -z "$DLLTOOL" && DLLTOOL=dlltool
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5247 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5248 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 lt_cv_sharedlib_from_linklib_cmd='unknown'
5252
5253 case $host_os in
5254 cygwin* | mingw* | pw32* | cegcc*)
5255 # two different shell functions defined in ltmain.sh
5256 # decide which to use based on capabilities of $DLLTOOL
5257 case `$DLLTOOL --help 2>&1` in
5258 *--identify-strict*)
5259 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5260 ;;
5261 *)
5262 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5263 ;;
5264 esac
5265 ;;
5266 *)
5267 # fallback: assume linklib IS sharedlib
5268 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5269 ;;
5270 esac
5271
5272 fi
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5274 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5275 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5276 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5277
5278
5279
5280
5281
5282
5283
5284
5285 if test -n "$ac_tool_prefix"; then
5286 for ac_prog in ar
5287 do
5288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if ${ac_cv_prog_AR+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if test -n "$AR"; then
5296 ac_cv_prog_AR="$AR" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5308 fi
5309 done
5310 done
5311 IFS=$as_save_IFS
5312
5313 fi
5314 fi
5315 AR=$ac_cv_prog_AR
5316 if test -n "$AR"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5318 $as_echo "$AR" >&6; }
5319 else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5322 fi
5323
5324
5325 test -n "$AR" && break
5326 done
5327 fi
5328 if test -z "$AR"; then
5329 ac_ct_AR=$AR
5330 for ac_prog in ar
5331 do
5332 # Extract the first word of "$ac_prog", so it can be a program name with args.
5333 set dummy $ac_prog; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -n "$ac_ct_AR"; then
5340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5344 do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_ac_ct_AR="$ac_prog"
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5352 fi
5353 done
5354 done
5355 IFS=$as_save_IFS
5356
5357 fi
5358 fi
5359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5360 if test -n "$ac_ct_AR"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5362 $as_echo "$ac_ct_AR" >&6; }
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5366 fi
5367
5368
5369 test -n "$ac_ct_AR" && break
5370 done
5371
5372 if test "x$ac_ct_AR" = x; then
5373 AR="false"
5374 else
5375 case $cross_compiling:$ac_tool_warned in
5376 yes:)
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5379 ac_tool_warned=yes ;;
5380 esac
5381 AR=$ac_ct_AR
5382 fi
5383 fi
5384
5385 : ${AR=ar}
5386 : ${AR_FLAGS=cru}
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5399 $as_echo_n "checking for archiver @FILE support... " >&6; }
5400 if ${lt_cv_ar_at_file+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 lt_cv_ar_at_file=no
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406
5407 int
5408 main ()
5409 {
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"; then :
5416 echo conftest.$ac_objext > conftest.lst
5417 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5419 (eval $lt_ar_try) 2>&5
5420 ac_status=$?
5421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5422 test $ac_status = 0; }
5423 if test "$ac_status" -eq 0; then
5424 # Ensure the archiver fails upon bogus file names.
5425 rm -f conftest.$ac_objext libconftest.a
5426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5427 (eval $lt_ar_try) 2>&5
5428 ac_status=$?
5429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5430 test $ac_status = 0; }
5431 if test "$ac_status" -ne 0; then
5432 lt_cv_ar_at_file=@
5433 fi
5434 fi
5435 rm -f conftest.* libconftest.a
5436
5437 fi
5438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5442 $as_echo "$lt_cv_ar_at_file" >&6; }
5443
5444 if test "x$lt_cv_ar_at_file" = xno; then
5445 archiver_list_spec=
5446 else
5447 archiver_list_spec=$lt_cv_ar_at_file
5448 fi
5449
5450
5451
5452
5453
5454
5455
5456 if test -n "$ac_tool_prefix"; then
5457 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5458 set dummy ${ac_tool_prefix}strip; ac_word=$2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if ${ac_cv_prog_STRIP+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if test -n "$STRIP"; then
5465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 break 2
5477 fi
5478 done
5479 done
5480 IFS=$as_save_IFS
5481
5482 fi
5483 fi
5484 STRIP=$ac_cv_prog_STRIP
5485 if test -n "$STRIP"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5487 $as_echo "$STRIP" >&6; }
5488 else
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5491 fi
5492
5493
5494 fi
5495 if test -z "$ac_cv_prog_STRIP"; then
5496 ac_ct_STRIP=$STRIP
5497 # Extract the first word of "strip", so it can be a program name with args.
5498 set dummy strip; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$ac_ct_STRIP"; then
5505 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_prog_ac_ct_STRIP="strip"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518 done
5519 done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5525 if test -n "$ac_ct_STRIP"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5527 $as_echo "$ac_ct_STRIP" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532
5533 if test "x$ac_ct_STRIP" = x; then
5534 STRIP=":"
5535 else
5536 case $cross_compiling:$ac_tool_warned in
5537 yes:)
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5540 ac_tool_warned=yes ;;
5541 esac
5542 STRIP=$ac_ct_STRIP
5543 fi
5544 else
5545 STRIP="$ac_cv_prog_STRIP"
5546 fi
5547
5548 test -z "$STRIP" && STRIP=:
5549
5550
5551
5552
5553
5554
5555 if test -n "$ac_tool_prefix"; then
5556 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_RANLIB+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 if test -n "$RANLIB"; then
5564 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5576 fi
5577 done
5578 done
5579 IFS=$as_save_IFS
5580
5581 fi
5582 fi
5583 RANLIB=$ac_cv_prog_RANLIB
5584 if test -n "$RANLIB"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5586 $as_echo "$RANLIB" >&6; }
5587 else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592
5593 fi
5594 if test -z "$ac_cv_prog_RANLIB"; then
5595 ac_ct_RANLIB=$RANLIB
5596 # Extract the first word of "ranlib", so it can be a program name with args.
5597 set dummy ranlib; ac_word=$2
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 if test -n "$ac_ct_RANLIB"; then
5604 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613 ac_cv_prog_ac_ct_RANLIB="ranlib"
5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617 done
5618 done
5619 IFS=$as_save_IFS
5620
5621 fi
5622 fi
5623 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5624 if test -n "$ac_ct_RANLIB"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5626 $as_echo "$ac_ct_RANLIB" >&6; }
5627 else
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629 $as_echo "no" >&6; }
5630 fi
5631
5632 if test "x$ac_ct_RANLIB" = x; then
5633 RANLIB=":"
5634 else
5635 case $cross_compiling:$ac_tool_warned in
5636 yes:)
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5639 ac_tool_warned=yes ;;
5640 esac
5641 RANLIB=$ac_ct_RANLIB
5642 fi
5643 else
5644 RANLIB="$ac_cv_prog_RANLIB"
5645 fi
5646
5647 test -z "$RANLIB" && RANLIB=:
5648
5649
5650
5651
5652
5653
5654 # Determine commands to create old-style static archives.
5655 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5656 old_postinstall_cmds='chmod 644 $oldlib'
5657 old_postuninstall_cmds=
5658
5659 if test -n "$RANLIB"; then
5660 case $host_os in
5661 openbsd*)
5662 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5663 ;;
5664 *)
5665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5666 ;;
5667 esac
5668 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5669 fi
5670
5671 case $host_os in
5672 darwin*)
5673 lock_old_archive_extraction=yes ;;
5674 *)
5675 lock_old_archive_extraction=no ;;
5676 esac
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716 # If no C compiler was specified, use CC.
5717 LTCC=${LTCC-"$CC"}
5718
5719 # If no C compiler flags were specified, use CFLAGS.
5720 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5721
5722 # Allow CC to be a program name with arguments.
5723 compiler=$CC
5724
5725
5726 # Check for command to grab the raw symbol name followed by C symbol from nm.
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5728 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5729 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732
5733 # These are sane defaults that work on at least a few old systems.
5734 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5735
5736 # Character class describing NM global symbol codes.
5737 symcode='[BCDEGRST]'
5738
5739 # Regexp to match symbols that can be accessed directly from C.
5740 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5741
5742 # Define system-specific variables.
5743 case $host_os in
5744 aix*)
5745 symcode='[BCDT]'
5746 ;;
5747 cygwin* | mingw* | pw32* | cegcc*)
5748 symcode='[ABCDGISTW]'
5749 ;;
5750 hpux*)
5751 if test "$host_cpu" = ia64; then
5752 symcode='[ABCDEGRST]'
5753 fi
5754 ;;
5755 irix* | nonstopux*)
5756 symcode='[BCDEGRST]'
5757 ;;
5758 osf*)
5759 symcode='[BCDEGQRST]'
5760 ;;
5761 solaris*)
5762 symcode='[BDRT]'
5763 ;;
5764 sco3.2v5*)
5765 symcode='[DT]'
5766 ;;
5767 sysv4.2uw2*)
5768 symcode='[DT]'
5769 ;;
5770 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5771 symcode='[ABDT]'
5772 ;;
5773 sysv4)
5774 symcode='[DFNSTU]'
5775 ;;
5776 esac
5777
5778 # If we're using GNU nm, then use its standard symbol codes.
5779 case `$NM -V 2>&1` in
5780 *GNU* | *'with BFD'*)
5781 symcode='[ABCDGIRSTW]' ;;
5782 esac
5783
5784 # Transform an extracted symbol line into a proper C declaration.
5785 # Some systems (esp. on ia64) link data and code symbols differently,
5786 # so use this general approach.
5787 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5788
5789 # Transform an extracted symbol line into symbol name and symbol address
5790 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5791 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'"
5792
5793 # Handle CRLF in mingw tool chain
5794 opt_cr=
5795 case $build_os in
5796 mingw*)
5797 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5798 ;;
5799 esac
5800
5801 # Try without a prefix underscore, then with it.
5802 for ac_symprfx in "" "_"; do
5803
5804 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5805 symxfrm="\\1 $ac_symprfx\\2 \\2"
5806
5807 # Write the raw and C identifiers.
5808 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5809 # Fake it for dumpbin and say T for any non-static function
5810 # and D for any global variable.
5811 # Also find C++ and __fastcall symbols from MSVC++,
5812 # which start with @ or ?.
5813 lt_cv_sys_global_symbol_pipe="$AWK '"\
5814 " {last_section=section; section=\$ 3};"\
5815 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5816 " \$ 0!~/External *\|/{next};"\
5817 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5818 " {if(hide[section]) next};"\
5819 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5820 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5821 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5822 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5823 " ' prfx=^$ac_symprfx"
5824 else
5825 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5826 fi
5827 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5828
5829 # Check to see that the pipe works correctly.
5830 pipe_works=no
5831
5832 rm -f conftest*
5833 cat > conftest.$ac_ext <<_LT_EOF
5834 #ifdef __cplusplus
5835 extern "C" {
5836 #endif
5837 char nm_test_var;
5838 void nm_test_func(void);
5839 void nm_test_func(void){}
5840 #ifdef __cplusplus
5841 }
5842 #endif
5843 int main(){nm_test_var='a';nm_test_func();return(0);}
5844 _LT_EOF
5845
5846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5847 (eval $ac_compile) 2>&5
5848 ac_status=$?
5849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850 test $ac_status = 0; }; then
5851 # Now try to grab the symbols.
5852 nlist=conftest.nm
5853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5854 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5855 ac_status=$?
5856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5857 test $ac_status = 0; } && test -s "$nlist"; then
5858 # Try sorting and uniquifying the output.
5859 if sort "$nlist" | uniq > "$nlist"T; then
5860 mv -f "$nlist"T "$nlist"
5861 else
5862 rm -f "$nlist"T
5863 fi
5864
5865 # Make sure that we snagged all the symbols we need.
5866 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5867 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5868 cat <<_LT_EOF > conftest.$ac_ext
5869 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5870 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5871 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5872 relocations are performed -- see ld's documentation on pseudo-relocs. */
5873 # define LT_DLSYM_CONST
5874 #elif defined(__osf__)
5875 /* This system does not cope well with relocations in const data. */
5876 # define LT_DLSYM_CONST
5877 #else
5878 # define LT_DLSYM_CONST const
5879 #endif
5880
5881 #ifdef __cplusplus
5882 extern "C" {
5883 #endif
5884
5885 _LT_EOF
5886 # Now generate the symbol file.
5887 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5888
5889 cat <<_LT_EOF >> conftest.$ac_ext
5890
5891 /* The mapping between symbol names and symbols. */
5892 LT_DLSYM_CONST struct {
5893 const char *name;
5894 void *address;
5895 }
5896 lt__PROGRAM__LTX_preloaded_symbols[] =
5897 {
5898 { "@PROGRAM@", (void *) 0 },
5899 _LT_EOF
5900 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5901 cat <<\_LT_EOF >> conftest.$ac_ext
5902 {0, (void *) 0}
5903 };
5904
5905 /* This works around a problem in FreeBSD linker */
5906 #ifdef FREEBSD_WORKAROUND
5907 static const void *lt_preloaded_setup() {
5908 return lt__PROGRAM__LTX_preloaded_symbols;
5909 }
5910 #endif
5911
5912 #ifdef __cplusplus
5913 }
5914 #endif
5915 _LT_EOF
5916 # Now try linking the two files.
5917 mv conftest.$ac_objext conftstm.$ac_objext
5918 lt_globsym_save_LIBS=$LIBS
5919 lt_globsym_save_CFLAGS=$CFLAGS
5920 LIBS="conftstm.$ac_objext"
5921 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5923 (eval $ac_link) 2>&5
5924 ac_status=$?
5925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5926 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5927 pipe_works=yes
5928 fi
5929 LIBS=$lt_globsym_save_LIBS
5930 CFLAGS=$lt_globsym_save_CFLAGS
5931 else
5932 echo "cannot find nm_test_func in $nlist" >&5
5933 fi
5934 else
5935 echo "cannot find nm_test_var in $nlist" >&5
5936 fi
5937 else
5938 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5939 fi
5940 else
5941 echo "$progname: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5943 fi
5944 rm -rf conftest* conftst*
5945
5946 # Do not use the global_symbol_pipe unless it works.
5947 if test "$pipe_works" = yes; then
5948 break
5949 else
5950 lt_cv_sys_global_symbol_pipe=
5951 fi
5952 done
5953
5954 fi
5955
5956 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5957 lt_cv_sys_global_symbol_to_cdecl=
5958 fi
5959 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5961 $as_echo "failed" >&6; }
5962 else
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5964 $as_echo "ok" >&6; }
5965 fi
5966
5967 # Response file support.
5968 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5969 nm_file_list_spec='@'
5970 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5971 nm_file_list_spec='@'
5972 fi
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6001 $as_echo_n "checking for sysroot... " >&6; }
6002
6003 # Check whether --with-sysroot was given.
6004 if test "${with_sysroot+set}" = set; then :
6005 withval=$with_sysroot;
6006 else
6007 with_sysroot=no
6008 fi
6009
6010
6011 lt_sysroot=
6012 case ${with_sysroot} in #(
6013 yes)
6014 if test "$GCC" = yes; then
6015 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6016 fi
6017 ;; #(
6018 /*)
6019 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6020 ;; #(
6021 no|'')
6022 ;; #(
6023 *)
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6025 $as_echo "${with_sysroot}" >&6; }
6026 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6027 ;;
6028 esac
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6031 $as_echo "${lt_sysroot:-no}" >&6; }
6032
6033
6034
6035
6036
6037 # Check whether --enable-libtool-lock was given.
6038 if test "${enable_libtool_lock+set}" = set; then :
6039 enableval=$enable_libtool_lock;
6040 fi
6041
6042 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6043
6044 # Some flags need to be propagated to the compiler or linker for good
6045 # libtool support.
6046 case $host in
6047 ia64-*-hpux*)
6048 # Find out which ABI we are using.
6049 echo 'int i;' > conftest.$ac_ext
6050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6051 (eval $ac_compile) 2>&5
6052 ac_status=$?
6053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054 test $ac_status = 0; }; then
6055 case `/usr/bin/file conftest.$ac_objext` in
6056 *ELF-32*)
6057 HPUX_IA64_MODE="32"
6058 ;;
6059 *ELF-64*)
6060 HPUX_IA64_MODE="64"
6061 ;;
6062 esac
6063 fi
6064 rm -rf conftest*
6065 ;;
6066 *-*-irix6*)
6067 # Find out which ABI we are using.
6068 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6070 (eval $ac_compile) 2>&5
6071 ac_status=$?
6072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6073 test $ac_status = 0; }; then
6074 if test "$lt_cv_prog_gnu_ld" = yes; then
6075 case `/usr/bin/file conftest.$ac_objext` in
6076 *32-bit*)
6077 LD="${LD-ld} -melf32bsmip"
6078 ;;
6079 *N32*)
6080 LD="${LD-ld} -melf32bmipn32"
6081 ;;
6082 *64-bit*)
6083 LD="${LD-ld} -melf64bmip"
6084 ;;
6085 esac
6086 else
6087 case `/usr/bin/file conftest.$ac_objext` in
6088 *32-bit*)
6089 LD="${LD-ld} -32"
6090 ;;
6091 *N32*)
6092 LD="${LD-ld} -n32"
6093 ;;
6094 *64-bit*)
6095 LD="${LD-ld} -64"
6096 ;;
6097 esac
6098 fi
6099 fi
6100 rm -rf conftest*
6101 ;;
6102
6103 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6104 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6105 # Find out which ABI we are using.
6106 echo 'int i;' > conftest.$ac_ext
6107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6108 (eval $ac_compile) 2>&5
6109 ac_status=$?
6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111 test $ac_status = 0; }; then
6112 case `/usr/bin/file conftest.o` in
6113 *32-bit*)
6114 case $host in
6115 x86_64-*kfreebsd*-gnu)
6116 LD="${LD-ld} -m elf_i386_fbsd"
6117 ;;
6118 x86_64-*linux*)
6119 LD="${LD-ld} -m elf_i386"
6120 ;;
6121 ppc64-*linux*|powerpc64-*linux*)
6122 LD="${LD-ld} -m elf32ppclinux"
6123 ;;
6124 s390x-*linux*)
6125 LD="${LD-ld} -m elf_s390"
6126 ;;
6127 sparc64-*linux*)
6128 LD="${LD-ld} -m elf32_sparc"
6129 ;;
6130 esac
6131 ;;
6132 *64-bit*)
6133 case $host in
6134 x86_64-*kfreebsd*-gnu)
6135 LD="${LD-ld} -m elf_x86_64_fbsd"
6136 ;;
6137 x86_64-*linux*)
6138 LD="${LD-ld} -m elf_x86_64"
6139 ;;
6140 ppc*-*linux*|powerpc*-*linux*)
6141 LD="${LD-ld} -m elf64ppc"
6142 ;;
6143 s390*-*linux*|s390*-*tpf*)
6144 LD="${LD-ld} -m elf64_s390"
6145 ;;
6146 sparc*-*linux*)
6147 LD="${LD-ld} -m elf64_sparc"
6148 ;;
6149 esac
6150 ;;
6151 esac
6152 fi
6153 rm -rf conftest*
6154 ;;
6155
6156 *-*-sco3.2v5*)
6157 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6158 SAVE_CFLAGS="$CFLAGS"
6159 CFLAGS="$CFLAGS -belf"
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6161 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6162 if ${lt_cv_cc_needs_belf+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 ac_ext=c
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173
6174 int
6175 main ()
6176 {
6177
6178 ;
6179 return 0;
6180 }
6181 _ACEOF
6182 if ac_fn_c_try_link "$LINENO"; then :
6183 lt_cv_cc_needs_belf=yes
6184 else
6185 lt_cv_cc_needs_belf=no
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext \
6188 conftest$ac_exeext conftest.$ac_ext
6189 ac_ext=c
6190 ac_cpp='$CPP $CPPFLAGS'
6191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194
6195 fi
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6197 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6198 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6199 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6200 CFLAGS="$SAVE_CFLAGS"
6201 fi
6202 ;;
6203 sparc*-*solaris*)
6204 # Find out which ABI we are using.
6205 echo 'int i;' > conftest.$ac_ext
6206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6207 (eval $ac_compile) 2>&5
6208 ac_status=$?
6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210 test $ac_status = 0; }; then
6211 case `/usr/bin/file conftest.o` in
6212 *64-bit*)
6213 case $lt_cv_prog_gnu_ld in
6214 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6215 *)
6216 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6217 LD="${LD-ld} -64"
6218 fi
6219 ;;
6220 esac
6221 ;;
6222 esac
6223 fi
6224 rm -rf conftest*
6225 ;;
6226 esac
6227
6228 need_locks="$enable_libtool_lock"
6229
6230 if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6232 set dummy ${ac_tool_prefix}mt; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -n "$MANIFEST_TOOL"; then
6239 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6259 if test -n "$MANIFEST_TOOL"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6261 $as_echo "$MANIFEST_TOOL" >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267
6268 fi
6269 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6270 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6271 # Extract the first word of "mt", so it can be a program name with args.
6272 set dummy mt; ac_word=$2
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274 $as_echo_n "checking for $ac_word... " >&6; }
6275 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 if test -n "$ac_ct_MANIFEST_TOOL"; then
6279 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296 fi
6297 fi
6298 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6299 if test -n "$ac_ct_MANIFEST_TOOL"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6301 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6305 fi
6306
6307 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6308 MANIFEST_TOOL=":"
6309 else
6310 case $cross_compiling:$ac_tool_warned in
6311 yes:)
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6314 ac_tool_warned=yes ;;
6315 esac
6316 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6317 fi
6318 else
6319 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6320 fi
6321
6322 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6324 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6325 if ${lt_cv_path_mainfest_tool+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 lt_cv_path_mainfest_tool=no
6329 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6330 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6331 cat conftest.err >&5
6332 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6333 lt_cv_path_mainfest_tool=yes
6334 fi
6335 rm -f conftest*
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6338 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6339 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6340 MANIFEST_TOOL=:
6341 fi
6342
6343
6344
6345
6346
6347
6348 case $host_os in
6349 rhapsody* | darwin*)
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test -n "$DSYMUTIL"; then
6359 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372 done
6373 done
6374 IFS=$as_save_IFS
6375
6376 fi
6377 fi
6378 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6379 if test -n "$DSYMUTIL"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6381 $as_echo "$DSYMUTIL" >&6; }
6382 else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6385 fi
6386
6387
6388 fi
6389 if test -z "$ac_cv_prog_DSYMUTIL"; then
6390 ac_ct_DSYMUTIL=$DSYMUTIL
6391 # Extract the first word of "dsymutil", so it can be a program name with args.
6392 set dummy dsymutil; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$ac_ct_DSYMUTIL"; then
6399 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6419 if test -n "$ac_ct_DSYMUTIL"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6421 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426
6427 if test "x$ac_ct_DSYMUTIL" = x; then
6428 DSYMUTIL=":"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431 yes:)
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6435 esac
6436 DSYMUTIL=$ac_ct_DSYMUTIL
6437 fi
6438 else
6439 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6440 fi
6441
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_NMEDIT+:} false; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 if test -n "$NMEDIT"; then
6451 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 NMEDIT=$ac_cv_prog_NMEDIT
6471 if test -n "$NMEDIT"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6473 $as_echo "$NMEDIT" >&6; }
6474 else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479
6480 fi
6481 if test -z "$ac_cv_prog_NMEDIT"; then
6482 ac_ct_NMEDIT=$NMEDIT
6483 # Extract the first word of "nmedit", so it can be a program name with args.
6484 set dummy nmedit; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -n "$ac_ct_NMEDIT"; then
6491 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6511 if test -n "$ac_ct_NMEDIT"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6513 $as_echo "$ac_ct_NMEDIT" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519 if test "x$ac_ct_NMEDIT" = x; then
6520 NMEDIT=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528 NMEDIT=$ac_ct_NMEDIT
6529 fi
6530 else
6531 NMEDIT="$ac_cv_prog_NMEDIT"
6532 fi
6533
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_LIPO+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 if test -n "$LIPO"; then
6543 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556 done
6557 done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 LIPO=$ac_cv_prog_LIPO
6563 if test -n "$LIPO"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6565 $as_echo "$LIPO" >&6; }
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571
6572 fi
6573 if test -z "$ac_cv_prog_LIPO"; then
6574 ac_ct_LIPO=$LIPO
6575 # Extract the first word of "lipo", so it can be a program name with args.
6576 set dummy lipo; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 if test -n "$ac_ct_LIPO"; then
6583 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_LIPO="lipo"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6603 if test -n "$ac_ct_LIPO"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6605 $as_echo "$ac_ct_LIPO" >&6; }
6606 else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610
6611 if test "x$ac_ct_LIPO" = x; then
6612 LIPO=":"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620 LIPO=$ac_ct_LIPO
6621 fi
6622 else
6623 LIPO="$ac_cv_prog_LIPO"
6624 fi
6625
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}otool; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_OTOOL+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$OTOOL"; then
6635 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 OTOOL=$ac_cv_prog_OTOOL
6655 if test -n "$OTOOL"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6657 $as_echo "$OTOOL" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_OTOOL"; then
6666 ac_ct_OTOOL=$OTOOL
6667 # Extract the first word of "otool", so it can be a program name with args.
6668 set dummy otool; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if test -n "$ac_ct_OTOOL"; then
6675 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_ac_ct_OTOOL="otool"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6695 if test -n "$ac_ct_OTOOL"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6697 $as_echo "$ac_ct_OTOOL" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702
6703 if test "x$ac_ct_OTOOL" = x; then
6704 OTOOL=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712 OTOOL=$ac_ct_OTOOL
6713 fi
6714 else
6715 OTOOL="$ac_cv_prog_OTOOL"
6716 fi
6717
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_prog_OTOOL64+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$OTOOL64"; then
6727 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 OTOOL64=$ac_cv_prog_OTOOL64
6747 if test -n "$OTOOL64"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6749 $as_echo "$OTOOL64" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6753 fi
6754
6755
6756 fi
6757 if test -z "$ac_cv_prog_OTOOL64"; then
6758 ac_ct_OTOOL64=$OTOOL64
6759 # Extract the first word of "otool64", so it can be a program name with args.
6760 set dummy otool64; ac_word=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 if test -n "$ac_ct_OTOOL64"; then
6767 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_OTOOL64="otool64"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6787 if test -n "$ac_ct_OTOOL64"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6789 $as_echo "$ac_ct_OTOOL64" >&6; }
6790 else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6793 fi
6794
6795 if test "x$ac_ct_OTOOL64" = x; then
6796 OTOOL64=":"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802 ac_tool_warned=yes ;;
6803 esac
6804 OTOOL64=$ac_ct_OTOOL64
6805 fi
6806 else
6807 OTOOL64="$ac_cv_prog_OTOOL64"
6808 fi
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6837 $as_echo_n "checking for -single_module linker flag... " >&6; }
6838 if ${lt_cv_apple_cc_single_mod+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 lt_cv_apple_cc_single_mod=no
6842 if test -z "${LT_MULTI_MODULE}"; then
6843 # By default we will add the -single_module flag. You can override
6844 # by either setting the environment variable LT_MULTI_MODULE
6845 # non-empty at configure time, or by adding -multi_module to the
6846 # link flags.
6847 rm -rf libconftest.dylib*
6848 echo "int foo(void){return 1;}" > conftest.c
6849 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6850 -dynamiclib -Wl,-single_module conftest.c" >&5
6851 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6852 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6853 _lt_result=$?
6854 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6855 lt_cv_apple_cc_single_mod=yes
6856 else
6857 cat conftest.err >&5
6858 fi
6859 rm -rf libconftest.dylib*
6860 rm -f conftest.*
6861 fi
6862 fi
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6864 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6866 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6867 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 lt_cv_ld_exported_symbols_list=no
6871 save_LDFLAGS=$LDFLAGS
6872 echo "_main" > conftest.sym
6873 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876
6877 int
6878 main ()
6879 {
6880
6881 ;
6882 return 0;
6883 }
6884 _ACEOF
6885 if ac_fn_c_try_link "$LINENO"; then :
6886 lt_cv_ld_exported_symbols_list=yes
6887 else
6888 lt_cv_ld_exported_symbols_list=no
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext \
6891 conftest$ac_exeext conftest.$ac_ext
6892 LDFLAGS="$save_LDFLAGS"
6893
6894 fi
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6896 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6898 $as_echo_n "checking for -force_load linker flag... " >&6; }
6899 if ${lt_cv_ld_force_load+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 lt_cv_ld_force_load=no
6903 cat > conftest.c << _LT_EOF
6904 int forced_loaded() { return 2;}
6905 _LT_EOF
6906 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6907 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6908 echo "$AR cru libconftest.a conftest.o" >&5
6909 $AR cru libconftest.a conftest.o 2>&5
6910 echo "$RANLIB libconftest.a" >&5
6911 $RANLIB libconftest.a 2>&5
6912 cat > conftest.c << _LT_EOF
6913 int main() { return 0;}
6914 _LT_EOF
6915 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6916 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6917 _lt_result=$?
6918 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6919 lt_cv_ld_force_load=yes
6920 else
6921 cat conftest.err >&5
6922 fi
6923 rm -f conftest.err libconftest.a conftest conftest.c
6924 rm -rf conftest.dSYM
6925
6926 fi
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6928 $as_echo "$lt_cv_ld_force_load" >&6; }
6929 case $host_os in
6930 rhapsody* | darwin1.[012])
6931 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6932 darwin1.*)
6933 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6934 darwin*) # darwin 5.x on
6935 # if running on 10.5 or later, the deployment target defaults
6936 # to the OS version, if on x86, and 10.4, the deployment
6937 # target defaults to 10.4. Don't you love it?
6938 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6939 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6940 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6941 10.[012]*)
6942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6943 10.*)
6944 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6945 esac
6946 ;;
6947 esac
6948 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6949 _lt_dar_single_mod='$single_module'
6950 fi
6951 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6952 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6953 else
6954 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6955 fi
6956 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6957 _lt_dsymutil='~$DSYMUTIL $lib || :'
6958 else
6959 _lt_dsymutil=
6960 fi
6961 ;;
6962 esac
6963
6964 ac_ext=c
6965 ac_cpp='$CPP $CPPFLAGS'
6966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6971 # On Suns, sometimes $CPP names a directory.
6972 if test -n "$CPP" && test -d "$CPP"; then
6973 CPP=
6974 fi
6975 if test -z "$CPP"; then
6976 if ${ac_cv_prog_CPP+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 # Double quotes because CPP needs to be expanded
6980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6981 do
6982 ac_preproc_ok=false
6983 for ac_c_preproc_warn_flag in '' yes
6984 do
6985 # Use a header file that comes with gcc, so configuring glibc
6986 # with a fresh cross-compiler works.
6987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6988 # <limits.h> exists even on freestanding compilers.
6989 # On the NeXT, cc -E runs the code through the compiler's parser,
6990 # not just through cpp. "Syntax error" is here to catch this case.
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 #ifdef __STDC__
6994 # include <limits.h>
6995 #else
6996 # include <assert.h>
6997 #endif
6998 Syntax error
6999 _ACEOF
7000 if ac_fn_c_try_cpp "$LINENO"; then :
7001
7002 else
7003 # Broken: fails on valid input.
7004 continue
7005 fi
7006 rm -f conftest.err conftest.i conftest.$ac_ext
7007
7008 # OK, works on sane cases. Now check whether nonexistent headers
7009 # can be detected and how.
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7012 #include <ac_nonexistent.h>
7013 _ACEOF
7014 if ac_fn_c_try_cpp "$LINENO"; then :
7015 # Broken: success on invalid input.
7016 continue
7017 else
7018 # Passes both tests.
7019 ac_preproc_ok=:
7020 break
7021 fi
7022 rm -f conftest.err conftest.i conftest.$ac_ext
7023
7024 done
7025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7026 rm -f conftest.i conftest.err conftest.$ac_ext
7027 if $ac_preproc_ok; then :
7028 break
7029 fi
7030
7031 done
7032 ac_cv_prog_CPP=$CPP
7033
7034 fi
7035 CPP=$ac_cv_prog_CPP
7036 else
7037 ac_cv_prog_CPP=$CPP
7038 fi
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7040 $as_echo "$CPP" >&6; }
7041 ac_preproc_ok=false
7042 for ac_c_preproc_warn_flag in '' yes
7043 do
7044 # Use a header file that comes with gcc, so configuring glibc
7045 # with a fresh cross-compiler works.
7046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047 # <limits.h> exists even on freestanding compilers.
7048 # On the NeXT, cc -E runs the code through the compiler's parser,
7049 # not just through cpp. "Syntax error" is here to catch this case.
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 #ifdef __STDC__
7053 # include <limits.h>
7054 #else
7055 # include <assert.h>
7056 #endif
7057 Syntax error
7058 _ACEOF
7059 if ac_fn_c_try_cpp "$LINENO"; then :
7060
7061 else
7062 # Broken: fails on valid input.
7063 continue
7064 fi
7065 rm -f conftest.err conftest.i conftest.$ac_ext
7066
7067 # OK, works on sane cases. Now check whether nonexistent headers
7068 # can be detected and how.
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071 #include <ac_nonexistent.h>
7072 _ACEOF
7073 if ac_fn_c_try_cpp "$LINENO"; then :
7074 # Broken: success on invalid input.
7075 continue
7076 else
7077 # Passes both tests.
7078 ac_preproc_ok=:
7079 break
7080 fi
7081 rm -f conftest.err conftest.i conftest.$ac_ext
7082
7083 done
7084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7085 rm -f conftest.i conftest.err conftest.$ac_ext
7086 if $ac_preproc_ok; then :
7087
7088 else
7089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7091 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7092 See \`config.log' for more details" "$LINENO" 5; }
7093 fi
7094
7095 ac_ext=c
7096 ac_cpp='$CPP $CPPFLAGS'
7097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7100
7101
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7103 $as_echo_n "checking for ANSI C header files... " >&6; }
7104 if ${ac_cv_header_stdc+:} false; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 #include <stdlib.h>
7110 #include <stdarg.h>
7111 #include <string.h>
7112 #include <float.h>
7113
7114 int
7115 main ()
7116 {
7117
7118 ;
7119 return 0;
7120 }
7121 _ACEOF
7122 if ac_fn_c_try_compile "$LINENO"; then :
7123 ac_cv_header_stdc=yes
7124 else
7125 ac_cv_header_stdc=no
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128
7129 if test $ac_cv_header_stdc = yes; then
7130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 #include <string.h>
7134
7135 _ACEOF
7136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7137 $EGREP "memchr" >/dev/null 2>&1; then :
7138
7139 else
7140 ac_cv_header_stdc=no
7141 fi
7142 rm -f conftest*
7143
7144 fi
7145
7146 if test $ac_cv_header_stdc = yes; then
7147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 #include <stdlib.h>
7151
7152 _ACEOF
7153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7154 $EGREP "free" >/dev/null 2>&1; then :
7155
7156 else
7157 ac_cv_header_stdc=no
7158 fi
7159 rm -f conftest*
7160
7161 fi
7162
7163 if test $ac_cv_header_stdc = yes; then
7164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7165 if test "$cross_compiling" = yes; then :
7166 :
7167 else
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170 #include <ctype.h>
7171 #include <stdlib.h>
7172 #if ((' ' & 0x0FF) == 0x020)
7173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7175 #else
7176 # define ISLOWER(c) \
7177 (('a' <= (c) && (c) <= 'i') \
7178 || ('j' <= (c) && (c) <= 'r') \
7179 || ('s' <= (c) && (c) <= 'z'))
7180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7181 #endif
7182
7183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7184 int
7185 main ()
7186 {
7187 int i;
7188 for (i = 0; i < 256; i++)
7189 if (XOR (islower (i), ISLOWER (i))
7190 || toupper (i) != TOUPPER (i))
7191 return 2;
7192 return 0;
7193 }
7194 _ACEOF
7195 if ac_fn_c_try_run "$LINENO"; then :
7196
7197 else
7198 ac_cv_header_stdc=no
7199 fi
7200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7201 conftest.$ac_objext conftest.beam conftest.$ac_ext
7202 fi
7203
7204 fi
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7207 $as_echo "$ac_cv_header_stdc" >&6; }
7208 if test $ac_cv_header_stdc = yes; then
7209
7210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7211
7212 fi
7213
7214 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7215 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7216 inttypes.h stdint.h unistd.h
7217 do :
7218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7219 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7220 "
7221 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7222 cat >>confdefs.h <<_ACEOF
7223 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224 _ACEOF
7225
7226 fi
7227
7228 done
7229
7230
7231 for ac_header in dlfcn.h
7232 do :
7233 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7234 "
7235 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7236 cat >>confdefs.h <<_ACEOF
7237 #define HAVE_DLFCN_H 1
7238 _ACEOF
7239
7240 fi
7241
7242 done
7243
7244
7245
7246
7247
7248 # Set options
7249
7250
7251
7252 enable_dlopen=no
7253
7254
7255 enable_win32_dll=no
7256
7257
7258 # Check whether --enable-shared was given.
7259 if test "${enable_shared+set}" = set; then :
7260 enableval=$enable_shared; p=${PACKAGE-default}
7261 case $enableval in
7262 yes) enable_shared=yes ;;
7263 no) enable_shared=no ;;
7264 *)
7265 enable_shared=no
7266 # Look at the argument we got. We use all the common list separators.
7267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7268 for pkg in $enableval; do
7269 IFS="$lt_save_ifs"
7270 if test "X$pkg" = "X$p"; then
7271 enable_shared=yes
7272 fi
7273 done
7274 IFS="$lt_save_ifs"
7275 ;;
7276 esac
7277 else
7278 enable_shared=yes
7279 fi
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289 # Check whether --enable-static was given.
7290 if test "${enable_static+set}" = set; then :
7291 enableval=$enable_static; p=${PACKAGE-default}
7292 case $enableval in
7293 yes) enable_static=yes ;;
7294 no) enable_static=no ;;
7295 *)
7296 enable_static=no
7297 # Look at the argument we got. We use all the common list separators.
7298 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7299 for pkg in $enableval; do
7300 IFS="$lt_save_ifs"
7301 if test "X$pkg" = "X$p"; then
7302 enable_static=yes
7303 fi
7304 done
7305 IFS="$lt_save_ifs"
7306 ;;
7307 esac
7308 else
7309 enable_static=yes
7310 fi
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321 # Check whether --with-pic was given.
7322 if test "${with_pic+set}" = set; then :
7323 withval=$with_pic; pic_mode="$withval"
7324 else
7325 pic_mode=default
7326 fi
7327
7328
7329 test -z "$pic_mode" && pic_mode=default
7330
7331
7332
7333
7334
7335
7336
7337 # Check whether --enable-fast-install was given.
7338 if test "${enable_fast_install+set}" = set; then :
7339 enableval=$enable_fast_install; p=${PACKAGE-default}
7340 case $enableval in
7341 yes) enable_fast_install=yes ;;
7342 no) enable_fast_install=no ;;
7343 *)
7344 enable_fast_install=no
7345 # Look at the argument we got. We use all the common list separators.
7346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7347 for pkg in $enableval; do
7348 IFS="$lt_save_ifs"
7349 if test "X$pkg" = "X$p"; then
7350 enable_fast_install=yes
7351 fi
7352 done
7353 IFS="$lt_save_ifs"
7354 ;;
7355 esac
7356 else
7357 enable_fast_install=yes
7358 fi
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370 # This can be used to rebuild libtool when needed
7371 LIBTOOL_DEPS="$ltmain"
7372
7373 # Always use our own libtool.
7374 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401 test -z "$LN_S" && LN_S="ln -s"
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416 if test -n "${ZSH_VERSION+set}" ; then
7417 setopt NO_GLOB_SUBST
7418 fi
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7421 $as_echo_n "checking for objdir... " >&6; }
7422 if ${lt_cv_objdir+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 rm -f .libs 2>/dev/null
7426 mkdir .libs 2>/dev/null
7427 if test -d .libs; then
7428 lt_cv_objdir=.libs
7429 else
7430 # MS-DOS does not allow filenames that begin with a dot.
7431 lt_cv_objdir=_libs
7432 fi
7433 rmdir .libs 2>/dev/null
7434 fi
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7436 $as_echo "$lt_cv_objdir" >&6; }
7437 objdir=$lt_cv_objdir
7438
7439
7440
7441
7442
7443 cat >>confdefs.h <<_ACEOF
7444 #define LT_OBJDIR "$lt_cv_objdir/"
7445 _ACEOF
7446
7447
7448
7449
7450 case $host_os in
7451 aix3*)
7452 # AIX sometimes has problems with the GCC collect2 program. For some
7453 # reason, if we set the COLLECT_NAMES environment variable, the problems
7454 # vanish in a puff of smoke.
7455 if test "X${COLLECT_NAMES+set}" != Xset; then
7456 COLLECT_NAMES=
7457 export COLLECT_NAMES
7458 fi
7459 ;;
7460 esac
7461
7462 # Global variables:
7463 ofile=libtool
7464 can_build_shared=yes
7465
7466 # All known linkers require a `.a' archive for static linking (except MSVC,
7467 # which needs '.lib').
7468 libext=a
7469
7470 with_gnu_ld="$lt_cv_prog_gnu_ld"
7471
7472 old_CC="$CC"
7473 old_CFLAGS="$CFLAGS"
7474
7475 # Set sane defaults for various variables
7476 test -z "$CC" && CC=cc
7477 test -z "$LTCC" && LTCC=$CC
7478 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7479 test -z "$LD" && LD=ld
7480 test -z "$ac_objext" && ac_objext=o
7481
7482 for cc_temp in $compiler""; do
7483 case $cc_temp in
7484 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7485 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7486 \-*) ;;
7487 *) break;;
7488 esac
7489 done
7490 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7491
7492
7493 # Only perform the check for file, if the check method requires it
7494 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7495 case $deplibs_check_method in
7496 file_magic*)
7497 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7499 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7500 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 case $MAGIC_CMD in
7504 [\\/*] | ?:[\\/]*)
7505 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7506 ;;
7507 *)
7508 lt_save_MAGIC_CMD="$MAGIC_CMD"
7509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7510 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7511 for ac_dir in $ac_dummy; do
7512 IFS="$lt_save_ifs"
7513 test -z "$ac_dir" && ac_dir=.
7514 if test -f $ac_dir/${ac_tool_prefix}file; then
7515 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7516 if test -n "$file_magic_test_file"; then
7517 case $deplibs_check_method in
7518 "file_magic "*)
7519 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7521 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7522 $EGREP "$file_magic_regex" > /dev/null; then
7523 :
7524 else
7525 cat <<_LT_EOF 1>&2
7526
7527 *** Warning: the command libtool uses to detect shared libraries,
7528 *** $file_magic_cmd, produces output that libtool cannot recognize.
7529 *** The result is that libtool may fail to recognize shared libraries
7530 *** as such. This will affect the creation of libtool libraries that
7531 *** depend on shared libraries, but programs linked with such libtool
7532 *** libraries will work regardless of this problem. Nevertheless, you
7533 *** may want to report the problem to your system manager and/or to
7534 *** bug-libtool@gnu.org
7535
7536 _LT_EOF
7537 fi ;;
7538 esac
7539 fi
7540 break
7541 fi
7542 done
7543 IFS="$lt_save_ifs"
7544 MAGIC_CMD="$lt_save_MAGIC_CMD"
7545 ;;
7546 esac
7547 fi
7548
7549 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7550 if test -n "$MAGIC_CMD"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7552 $as_echo "$MAGIC_CMD" >&6; }
7553 else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7556 fi
7557
7558
7559
7560
7561
7562 if test -z "$lt_cv_path_MAGIC_CMD"; then
7563 if test -n "$ac_tool_prefix"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7565 $as_echo_n "checking for file... " >&6; }
7566 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 case $MAGIC_CMD in
7570 [\\/*] | ?:[\\/]*)
7571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7572 ;;
7573 *)
7574 lt_save_MAGIC_CMD="$MAGIC_CMD"
7575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7576 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7577 for ac_dir in $ac_dummy; do
7578 IFS="$lt_save_ifs"
7579 test -z "$ac_dir" && ac_dir=.
7580 if test -f $ac_dir/file; then
7581 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7582 if test -n "$file_magic_test_file"; then
7583 case $deplibs_check_method in
7584 "file_magic "*)
7585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7588 $EGREP "$file_magic_regex" > /dev/null; then
7589 :
7590 else
7591 cat <<_LT_EOF 1>&2
7592
7593 *** Warning: the command libtool uses to detect shared libraries,
7594 *** $file_magic_cmd, produces output that libtool cannot recognize.
7595 *** The result is that libtool may fail to recognize shared libraries
7596 *** as such. This will affect the creation of libtool libraries that
7597 *** depend on shared libraries, but programs linked with such libtool
7598 *** libraries will work regardless of this problem. Nevertheless, you
7599 *** may want to report the problem to your system manager and/or to
7600 *** bug-libtool@gnu.org
7601
7602 _LT_EOF
7603 fi ;;
7604 esac
7605 fi
7606 break
7607 fi
7608 done
7609 IFS="$lt_save_ifs"
7610 MAGIC_CMD="$lt_save_MAGIC_CMD"
7611 ;;
7612 esac
7613 fi
7614
7615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7616 if test -n "$MAGIC_CMD"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7618 $as_echo "$MAGIC_CMD" >&6; }
7619 else
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622 fi
7623
7624
7625 else
7626 MAGIC_CMD=:
7627 fi
7628 fi
7629
7630 fi
7631 ;;
7632 esac
7633
7634 # Use C for the default configuration in the libtool script
7635
7636 lt_save_CC="$CC"
7637 ac_ext=c
7638 ac_cpp='$CPP $CPPFLAGS'
7639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7642
7643
7644 # Source file extension for C test sources.
7645 ac_ext=c
7646
7647 # Object file extension for compiled C test sources.
7648 objext=o
7649 objext=$objext
7650
7651 # Code to be used in simple compile tests
7652 lt_simple_compile_test_code="int some_variable = 0;"
7653
7654 # Code to be used in simple link tests
7655 lt_simple_link_test_code='int main(){return(0);}'
7656
7657
7658
7659
7660
7661
7662
7663 # If no C compiler was specified, use CC.
7664 LTCC=${LTCC-"$CC"}
7665
7666 # If no C compiler flags were specified, use CFLAGS.
7667 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7668
7669 # Allow CC to be a program name with arguments.
7670 compiler=$CC
7671
7672 # Save the default compiler, since it gets overwritten when the other
7673 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7674 compiler_DEFAULT=$CC
7675
7676 # save warnings/boilerplate of simple test code
7677 ac_outfile=conftest.$ac_objext
7678 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7679 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7680 _lt_compiler_boilerplate=`cat conftest.err`
7681 $RM conftest*
7682
7683 ac_outfile=conftest.$ac_objext
7684 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7685 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7686 _lt_linker_boilerplate=`cat conftest.err`
7687 $RM -r conftest*
7688
7689
7690 if test -n "$compiler"; then
7691
7692 lt_prog_compiler_no_builtin_flag=
7693
7694 if test "$GCC" = yes; then
7695 case $cc_basename in
7696 nvcc*)
7697 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7698 *)
7699 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7700 esac
7701
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7703 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7704 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 lt_cv_prog_compiler_rtti_exceptions=no
7708 ac_outfile=conftest.$ac_objext
7709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7710 lt_compiler_flag="-fno-rtti -fno-exceptions"
7711 # Insert the option either (1) after the last *FLAGS variable, or
7712 # (2) before a word containing "conftest.", or (3) at the end.
7713 # Note that $ac_compile itself does not contain backslashes and begins
7714 # with a dollar sign (not a hyphen), so the echo should work correctly.
7715 # The option is referenced via a variable to avoid confusing sed.
7716 lt_compile=`echo "$ac_compile" | $SED \
7717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7719 -e 's:$: $lt_compiler_flag:'`
7720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7721 (eval "$lt_compile" 2>conftest.err)
7722 ac_status=$?
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 if (exit $ac_status) && test -s "$ac_outfile"; then
7726 # The compiler can only warn and ignore the option if not recognized
7727 # So say no if there are warnings other than the usual output.
7728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7731 lt_cv_prog_compiler_rtti_exceptions=yes
7732 fi
7733 fi
7734 $RM conftest*
7735
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7738 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7739
7740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7741 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7742 else
7743 :
7744 fi
7745
7746 fi
7747
7748
7749
7750
7751
7752
7753 lt_prog_compiler_wl=
7754 lt_prog_compiler_pic=
7755 lt_prog_compiler_static=
7756
7757
7758 if test "$GCC" = yes; then
7759 lt_prog_compiler_wl='-Wl,'
7760 lt_prog_compiler_static='-static'
7761
7762 case $host_os in
7763 aix*)
7764 # All AIX code is PIC.
7765 if test "$host_cpu" = ia64; then
7766 # AIX 5 now supports IA64 processor
7767 lt_prog_compiler_static='-Bstatic'
7768 fi
7769 ;;
7770
7771 amigaos*)
7772 case $host_cpu in
7773 powerpc)
7774 # see comment about AmigaOS4 .so support
7775 lt_prog_compiler_pic='-fPIC'
7776 ;;
7777 m68k)
7778 # FIXME: we need at least 68020 code to build shared libraries, but
7779 # adding the `-m68020' flag to GCC prevents building anything better,
7780 # like `-m68040'.
7781 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7782 ;;
7783 esac
7784 ;;
7785
7786 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7787 # PIC is the default for these OSes.
7788 ;;
7789
7790 mingw* | cygwin* | pw32* | os2* | cegcc*)
7791 # This hack is so that the source file can tell whether it is being
7792 # built for inclusion in a dll (and should export symbols for example).
7793 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7794 # (--disable-auto-import) libraries
7795 lt_prog_compiler_pic='-DDLL_EXPORT'
7796 ;;
7797
7798 darwin* | rhapsody*)
7799 # PIC is the default on this platform
7800 # Common symbols not allowed in MH_DYLIB files
7801 lt_prog_compiler_pic='-fno-common'
7802 ;;
7803
7804 haiku*)
7805 # PIC is the default for Haiku.
7806 # The "-static" flag exists, but is broken.
7807 lt_prog_compiler_static=
7808 ;;
7809
7810 hpux*)
7811 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7812 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7813 # sets the default TLS model and affects inlining.
7814 case $host_cpu in
7815 hppa*64*)
7816 # +Z the default
7817 ;;
7818 *)
7819 lt_prog_compiler_pic='-fPIC'
7820 ;;
7821 esac
7822 ;;
7823
7824 interix[3-9]*)
7825 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7826 # Instead, we relocate shared libraries at runtime.
7827 ;;
7828
7829 msdosdjgpp*)
7830 # Just because we use GCC doesn't mean we suddenly get shared libraries
7831 # on systems that don't support them.
7832 lt_prog_compiler_can_build_shared=no
7833 enable_shared=no
7834 ;;
7835
7836 *nto* | *qnx*)
7837 # QNX uses GNU C++, but need to define -shared option too, otherwise
7838 # it will coredump.
7839 lt_prog_compiler_pic='-fPIC -shared'
7840 ;;
7841
7842 sysv4*MP*)
7843 if test -d /usr/nec; then
7844 lt_prog_compiler_pic=-Kconform_pic
7845 fi
7846 ;;
7847
7848 *)
7849 lt_prog_compiler_pic='-fPIC'
7850 ;;
7851 esac
7852
7853 case $cc_basename in
7854 nvcc*) # Cuda Compiler Driver 2.2
7855 lt_prog_compiler_wl='-Xlinker '
7856 lt_prog_compiler_pic='-Xcompiler -fPIC'
7857 ;;
7858 esac
7859 else
7860 # PORTME Check for flag to pass linker flags through the system compiler.
7861 case $host_os in
7862 aix*)
7863 lt_prog_compiler_wl='-Wl,'
7864 if test "$host_cpu" = ia64; then
7865 # AIX 5 now supports IA64 processor
7866 lt_prog_compiler_static='-Bstatic'
7867 else
7868 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7869 fi
7870 ;;
7871
7872 mingw* | cygwin* | pw32* | os2* | cegcc*)
7873 # This hack is so that the source file can tell whether it is being
7874 # built for inclusion in a dll (and should export symbols for example).
7875 lt_prog_compiler_pic='-DDLL_EXPORT'
7876 ;;
7877
7878 hpux9* | hpux10* | hpux11*)
7879 lt_prog_compiler_wl='-Wl,'
7880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7881 # not for PA HP-UX.
7882 case $host_cpu in
7883 hppa*64*|ia64*)
7884 # +Z the default
7885 ;;
7886 *)
7887 lt_prog_compiler_pic='+Z'
7888 ;;
7889 esac
7890 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7891 lt_prog_compiler_static='${wl}-a ${wl}archive'
7892 ;;
7893
7894 irix5* | irix6* | nonstopux*)
7895 lt_prog_compiler_wl='-Wl,'
7896 # PIC (with -KPIC) is the default.
7897 lt_prog_compiler_static='-non_shared'
7898 ;;
7899
7900 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7901 case $cc_basename in
7902 # old Intel for x86_64 which still supported -KPIC.
7903 ecc*)
7904 lt_prog_compiler_wl='-Wl,'
7905 lt_prog_compiler_pic='-KPIC'
7906 lt_prog_compiler_static='-static'
7907 ;;
7908 # icc used to be incompatible with GCC.
7909 # ICC 10 doesn't accept -KPIC any more.
7910 icc* | ifort*)
7911 lt_prog_compiler_wl='-Wl,'
7912 lt_prog_compiler_pic='-fPIC'
7913 lt_prog_compiler_static='-static'
7914 ;;
7915 # Lahey Fortran 8.1.
7916 lf95*)
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_pic='--shared'
7919 lt_prog_compiler_static='--static'
7920 ;;
7921 nagfor*)
7922 # NAG Fortran compiler
7923 lt_prog_compiler_wl='-Wl,-Wl,,'
7924 lt_prog_compiler_pic='-PIC'
7925 lt_prog_compiler_static='-Bstatic'
7926 ;;
7927 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7928 # Portland Group compilers (*not* the Pentium gcc compiler,
7929 # which looks to be a dead project)
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_pic='-fpic'
7932 lt_prog_compiler_static='-Bstatic'
7933 ;;
7934 ccc*)
7935 lt_prog_compiler_wl='-Wl,'
7936 # All Alpha code is PIC.
7937 lt_prog_compiler_static='-non_shared'
7938 ;;
7939 xl* | bgxl* | bgf* | mpixl*)
7940 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7941 lt_prog_compiler_wl='-Wl,'
7942 lt_prog_compiler_pic='-qpic'
7943 lt_prog_compiler_static='-qstaticlink'
7944 ;;
7945 *)
7946 case `$CC -V 2>&1 | sed 5q` in
7947 *Sun\ F* | *Sun*Fortran*)
7948 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7949 lt_prog_compiler_pic='-KPIC'
7950 lt_prog_compiler_static='-Bstatic'
7951 lt_prog_compiler_wl=''
7952 ;;
7953 *Sun\ C*)
7954 # Sun C 5.9
7955 lt_prog_compiler_pic='-KPIC'
7956 lt_prog_compiler_static='-Bstatic'
7957 lt_prog_compiler_wl='-Wl,'
7958 ;;
7959 esac
7960 ;;
7961 esac
7962 ;;
7963
7964 newsos6)
7965 lt_prog_compiler_pic='-KPIC'
7966 lt_prog_compiler_static='-Bstatic'
7967 ;;
7968
7969 *nto* | *qnx*)
7970 # QNX uses GNU C++, but need to define -shared option too, otherwise
7971 # it will coredump.
7972 lt_prog_compiler_pic='-fPIC -shared'
7973 ;;
7974
7975 osf3* | osf4* | osf5*)
7976 lt_prog_compiler_wl='-Wl,'
7977 # All OSF/1 code is PIC.
7978 lt_prog_compiler_static='-non_shared'
7979 ;;
7980
7981 rdos*)
7982 lt_prog_compiler_static='-non_shared'
7983 ;;
7984
7985 solaris*)
7986 lt_prog_compiler_pic='-KPIC'
7987 lt_prog_compiler_static='-Bstatic'
7988 case $cc_basename in
7989 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7990 lt_prog_compiler_wl='-Qoption ld ';;
7991 *)
7992 lt_prog_compiler_wl='-Wl,';;
7993 esac
7994 ;;
7995
7996 sunos4*)
7997 lt_prog_compiler_wl='-Qoption ld '
7998 lt_prog_compiler_pic='-PIC'
7999 lt_prog_compiler_static='-Bstatic'
8000 ;;
8001
8002 sysv4 | sysv4.2uw2* | sysv4.3*)
8003 lt_prog_compiler_wl='-Wl,'
8004 lt_prog_compiler_pic='-KPIC'
8005 lt_prog_compiler_static='-Bstatic'
8006 ;;
8007
8008 sysv4*MP*)
8009 if test -d /usr/nec ;then
8010 lt_prog_compiler_pic='-Kconform_pic'
8011 lt_prog_compiler_static='-Bstatic'
8012 fi
8013 ;;
8014
8015 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8016 lt_prog_compiler_wl='-Wl,'
8017 lt_prog_compiler_pic='-KPIC'
8018 lt_prog_compiler_static='-Bstatic'
8019 ;;
8020
8021 unicos*)
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_can_build_shared=no
8024 ;;
8025
8026 uts4*)
8027 lt_prog_compiler_pic='-pic'
8028 lt_prog_compiler_static='-Bstatic'
8029 ;;
8030
8031 *)
8032 lt_prog_compiler_can_build_shared=no
8033 ;;
8034 esac
8035 fi
8036
8037 case $host_os in
8038 # For platforms which do not support PIC, -DPIC is meaningless:
8039 *djgpp*)
8040 lt_prog_compiler_pic=
8041 ;;
8042 *)
8043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8044 ;;
8045 esac
8046
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8048 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8049 if ${lt_cv_prog_compiler_pic+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8052 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8053 fi
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8055 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8056 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8057
8058 #
8059 # Check to make sure the PIC flag actually works.
8060 #
8061 if test -n "$lt_prog_compiler_pic"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8063 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8064 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 lt_cv_prog_compiler_pic_works=no
8068 ac_outfile=conftest.$ac_objext
8069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8070 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8071 # Insert the option either (1) after the last *FLAGS variable, or
8072 # (2) before a word containing "conftest.", or (3) at the end.
8073 # Note that $ac_compile itself does not contain backslashes and begins
8074 # with a dollar sign (not a hyphen), so the echo should work correctly.
8075 # The option is referenced via a variable to avoid confusing sed.
8076 lt_compile=`echo "$ac_compile" | $SED \
8077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079 -e 's:$: $lt_compiler_flag:'`
8080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8081 (eval "$lt_compile" 2>conftest.err)
8082 ac_status=$?
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 if (exit $ac_status) && test -s "$ac_outfile"; then
8086 # The compiler can only warn and ignore the option if not recognized
8087 # So say no if there are warnings other than the usual output.
8088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8091 lt_cv_prog_compiler_pic_works=yes
8092 fi
8093 fi
8094 $RM conftest*
8095
8096 fi
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8098 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8099
8100 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8101 case $lt_prog_compiler_pic in
8102 "" | " "*) ;;
8103 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8104 esac
8105 else
8106 lt_prog_compiler_pic=
8107 lt_prog_compiler_can_build_shared=no
8108 fi
8109
8110 fi
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122 #
8123 # Check to make sure the static flag actually works.
8124 #
8125 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8127 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8128 if ${lt_cv_prog_compiler_static_works+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 lt_cv_prog_compiler_static_works=no
8132 save_LDFLAGS="$LDFLAGS"
8133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8134 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8136 # The linker can only warn and ignore the option if not recognized
8137 # So say no if there are warnings
8138 if test -s conftest.err; then
8139 # Append any errors to the config.log.
8140 cat conftest.err 1>&5
8141 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8143 if diff conftest.exp conftest.er2 >/dev/null; then
8144 lt_cv_prog_compiler_static_works=yes
8145 fi
8146 else
8147 lt_cv_prog_compiler_static_works=yes
8148 fi
8149 fi
8150 $RM -r conftest*
8151 LDFLAGS="$save_LDFLAGS"
8152
8153 fi
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8155 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8156
8157 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8158 :
8159 else
8160 lt_prog_compiler_static=
8161 fi
8162
8163
8164
8165
8166
8167
8168
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8170 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8171 if ${lt_cv_prog_compiler_c_o+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 lt_cv_prog_compiler_c_o=no
8175 $RM -r conftest 2>/dev/null
8176 mkdir conftest
8177 cd conftest
8178 mkdir out
8179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8180
8181 lt_compiler_flag="-o out/conftest2.$ac_objext"
8182 # Insert the option either (1) after the last *FLAGS variable, or
8183 # (2) before a word containing "conftest.", or (3) at the end.
8184 # Note that $ac_compile itself does not contain backslashes and begins
8185 # with a dollar sign (not a hyphen), so the echo should work correctly.
8186 lt_compile=`echo "$ac_compile" | $SED \
8187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8189 -e 's:$: $lt_compiler_flag:'`
8190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8191 (eval "$lt_compile" 2>out/conftest.err)
8192 ac_status=$?
8193 cat out/conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8196 then
8197 # The compiler can only warn and ignore the option if not recognized
8198 # So say no if there are warnings
8199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8200 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8201 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8202 lt_cv_prog_compiler_c_o=yes
8203 fi
8204 fi
8205 chmod u+w . 2>&5
8206 $RM conftest*
8207 # SGI C++ compiler will create directory out/ii_files/ for
8208 # template instantiation
8209 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8210 $RM out/* && rmdir out
8211 cd ..
8212 $RM -r conftest
8213 $RM conftest*
8214
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8217 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8218
8219
8220
8221
8222
8223
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8225 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8226 if ${lt_cv_prog_compiler_c_o+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 lt_cv_prog_compiler_c_o=no
8230 $RM -r conftest 2>/dev/null
8231 mkdir conftest
8232 cd conftest
8233 mkdir out
8234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8235
8236 lt_compiler_flag="-o out/conftest2.$ac_objext"
8237 # Insert the option either (1) after the last *FLAGS variable, or
8238 # (2) before a word containing "conftest.", or (3) at the end.
8239 # Note that $ac_compile itself does not contain backslashes and begins
8240 # with a dollar sign (not a hyphen), so the echo should work correctly.
8241 lt_compile=`echo "$ac_compile" | $SED \
8242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8244 -e 's:$: $lt_compiler_flag:'`
8245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8246 (eval "$lt_compile" 2>out/conftest.err)
8247 ac_status=$?
8248 cat out/conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8251 then
8252 # The compiler can only warn and ignore the option if not recognized
8253 # So say no if there are warnings
8254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8257 lt_cv_prog_compiler_c_o=yes
8258 fi
8259 fi
8260 chmod u+w . 2>&5
8261 $RM conftest*
8262 # SGI C++ compiler will create directory out/ii_files/ for
8263 # template instantiation
8264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8265 $RM out/* && rmdir out
8266 cd ..
8267 $RM -r conftest
8268 $RM conftest*
8269
8270 fi
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8272 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8273
8274
8275
8276
8277 hard_links="nottested"
8278 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8279 # do not overwrite the value of need_locks provided by the user
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8281 $as_echo_n "checking if we can lock with hard links... " >&6; }
8282 hard_links=yes
8283 $RM conftest*
8284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8285 touch conftest.a
8286 ln conftest.a conftest.b 2>&5 || hard_links=no
8287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8289 $as_echo "$hard_links" >&6; }
8290 if test "$hard_links" = no; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8292 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8293 need_locks=warn
8294 fi
8295 else
8296 need_locks=no
8297 fi
8298
8299
8300
8301
8302
8303
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8305 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8306
8307 runpath_var=
8308 allow_undefined_flag=
8309 always_export_symbols=no
8310 archive_cmds=
8311 archive_expsym_cmds=
8312 compiler_needs_object=no
8313 enable_shared_with_static_runtimes=no
8314 export_dynamic_flag_spec=
8315 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8316 hardcode_automatic=no
8317 hardcode_direct=no
8318 hardcode_direct_absolute=no
8319 hardcode_libdir_flag_spec=
8320 hardcode_libdir_flag_spec_ld=
8321 hardcode_libdir_separator=
8322 hardcode_minus_L=no
8323 hardcode_shlibpath_var=unsupported
8324 inherit_rpath=no
8325 link_all_deplibs=unknown
8326 module_cmds=
8327 module_expsym_cmds=
8328 old_archive_from_new_cmds=
8329 old_archive_from_expsyms_cmds=
8330 thread_safe_flag_spec=
8331 whole_archive_flag_spec=
8332 # include_expsyms should be a list of space-separated symbols to be *always*
8333 # included in the symbol list
8334 include_expsyms=
8335 # exclude_expsyms can be an extended regexp of symbols to exclude
8336 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8337 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8338 # as well as any symbol that contains `d'.
8339 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8340 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8341 # platforms (ab)use it in PIC code, but their linkers get confused if
8342 # the symbol is explicitly referenced. Since portable code cannot
8343 # rely on this symbol name, it's probably fine to never include it in
8344 # preloaded symbol tables.
8345 # Exclude shared library initialization/finalization symbols.
8346 extract_expsyms_cmds=
8347
8348 case $host_os in
8349 cygwin* | mingw* | pw32* | cegcc*)
8350 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8351 # When not using gcc, we currently assume that we are using
8352 # Microsoft Visual C++.
8353 if test "$GCC" != yes; then
8354 with_gnu_ld=no
8355 fi
8356 ;;
8357 interix*)
8358 # we just hope/assume this is gcc and not c89 (= MSVC++)
8359 with_gnu_ld=yes
8360 ;;
8361 openbsd*)
8362 with_gnu_ld=no
8363 ;;
8364 esac
8365
8366 ld_shlibs=yes
8367
8368 # On some targets, GNU ld is compatible enough with the native linker
8369 # that we're better off using the native interface for both.
8370 lt_use_gnu_ld_interface=no
8371 if test "$with_gnu_ld" = yes; then
8372 case $host_os in
8373 aix*)
8374 # The AIX port of GNU ld has always aspired to compatibility
8375 # with the native linker. However, as the warning in the GNU ld
8376 # block says, versions before 2.19.5* couldn't really create working
8377 # shared libraries, regardless of the interface used.
8378 case `$LD -v 2>&1` in
8379 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8380 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8381 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8382 *)
8383 lt_use_gnu_ld_interface=yes
8384 ;;
8385 esac
8386 ;;
8387 *)
8388 lt_use_gnu_ld_interface=yes
8389 ;;
8390 esac
8391 fi
8392
8393 if test "$lt_use_gnu_ld_interface" = yes; then
8394 # If archive_cmds runs LD, not CC, wlarc should be empty
8395 wlarc='${wl}'
8396
8397 # Set some defaults for GNU ld with shared library support. These
8398 # are reset later if shared libraries are not supported. Putting them
8399 # here allows them to be overridden if necessary.
8400 runpath_var=LD_RUN_PATH
8401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8402 export_dynamic_flag_spec='${wl}--export-dynamic'
8403 # ancient GNU ld didn't support --whole-archive et. al.
8404 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8405 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8406 else
8407 whole_archive_flag_spec=
8408 fi
8409 supports_anon_versioning=no
8410 case `$LD -v 2>&1` in
8411 *GNU\ gold*) supports_anon_versioning=yes ;;
8412 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8413 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8414 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8415 *\ 2.11.*) ;; # other 2.11 versions
8416 *) supports_anon_versioning=yes ;;
8417 esac
8418
8419 # See if GNU ld supports shared libraries.
8420 case $host_os in
8421 aix[3-9]*)
8422 # On AIX/PPC, the GNU linker is very broken
8423 if test "$host_cpu" != ia64; then
8424 ld_shlibs=no
8425 cat <<_LT_EOF 1>&2
8426
8427 *** Warning: the GNU linker, at least up to release 2.19, is reported
8428 *** to be unable to reliably create shared libraries on AIX.
8429 *** Therefore, libtool is disabling shared libraries support. If you
8430 *** really care for shared libraries, you may want to install binutils
8431 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8432 *** You will then need to restart the configuration process.
8433
8434 _LT_EOF
8435 fi
8436 ;;
8437
8438 amigaos*)
8439 case $host_cpu in
8440 powerpc)
8441 # see comment about AmigaOS4 .so support
8442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8443 archive_expsym_cmds=''
8444 ;;
8445 m68k)
8446 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)'
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_minus_L=yes
8449 ;;
8450 esac
8451 ;;
8452
8453 beos*)
8454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8455 allow_undefined_flag=unsupported
8456 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8457 # support --undefined. This deserves some investigation. FIXME
8458 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8459 else
8460 ld_shlibs=no
8461 fi
8462 ;;
8463
8464 cygwin* | mingw* | pw32* | cegcc*)
8465 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8466 # as there is no search path for DLLs.
8467 hardcode_libdir_flag_spec='-L$libdir'
8468 export_dynamic_flag_spec='${wl}--export-all-symbols'
8469 allow_undefined_flag=unsupported
8470 always_export_symbols=no
8471 enable_shared_with_static_runtimes=yes
8472 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'
8473 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8474
8475 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8477 # If the export-symbols file already is a .def file (1st line
8478 # is EXPORTS), use it as is; otherwise, prepend...
8479 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8480 cp $export_symbols $output_objdir/$soname.def;
8481 else
8482 echo EXPORTS > $output_objdir/$soname.def;
8483 cat $export_symbols >> $output_objdir/$soname.def;
8484 fi~
8485 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8486 else
8487 ld_shlibs=no
8488 fi
8489 ;;
8490
8491 haiku*)
8492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8493 link_all_deplibs=yes
8494 ;;
8495
8496 interix[3-9]*)
8497 hardcode_direct=no
8498 hardcode_shlibpath_var=no
8499 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8500 export_dynamic_flag_spec='${wl}-E'
8501 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8502 # Instead, shared libraries are loaded at an image base (0x10000000 by
8503 # default) and relocated if they conflict, which is a slow very memory
8504 # consuming and fragmenting process. To avoid this, we pick a random,
8505 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8506 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8507 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8508 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'
8509 ;;
8510
8511 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8512 tmp_diet=no
8513 if test "$host_os" = linux-dietlibc; then
8514 case $cc_basename in
8515 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8516 esac
8517 fi
8518 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8519 && test "$tmp_diet" = no
8520 then
8521 tmp_addflag=' $pic_flag'
8522 tmp_sharedflag='-shared'
8523 case $cc_basename,$host_cpu in
8524 pgcc*) # Portland Group C compiler
8525 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'
8526 tmp_addflag=' $pic_flag'
8527 ;;
8528 pgf77* | pgf90* | pgf95* | pgfortran*)
8529 # Portland Group f77 and f90 compilers
8530 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'
8531 tmp_addflag=' $pic_flag -Mnomain' ;;
8532 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8533 tmp_addflag=' -i_dynamic' ;;
8534 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8535 tmp_addflag=' -i_dynamic -nofor_main' ;;
8536 ifc* | ifort*) # Intel Fortran compiler
8537 tmp_addflag=' -nofor_main' ;;
8538 lf95*) # Lahey Fortran 8.1
8539 whole_archive_flag_spec=
8540 tmp_sharedflag='--shared' ;;
8541 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8542 tmp_sharedflag='-qmkshrobj'
8543 tmp_addflag= ;;
8544 nvcc*) # Cuda Compiler Driver 2.2
8545 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'
8546 compiler_needs_object=yes
8547 ;;
8548 esac
8549 case `$CC -V 2>&1 | sed 5q` in
8550 *Sun\ C*) # Sun C 5.9
8551 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'
8552 compiler_needs_object=yes
8553 tmp_sharedflag='-G' ;;
8554 *Sun\ F*) # Sun Fortran 8.3
8555 tmp_sharedflag='-G' ;;
8556 esac
8557 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558
8559 if test "x$supports_anon_versioning" = xyes; then
8560 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8562 echo "local: *; };" >> $output_objdir/$libname.ver~
8563 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8564 fi
8565
8566 case $cc_basename in
8567 xlf* | bgf* | bgxlf* | mpixlf*)
8568 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8569 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8570 hardcode_libdir_flag_spec=
8571 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8572 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8573 if test "x$supports_anon_versioning" = xyes; then
8574 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8575 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8576 echo "local: *; };" >> $output_objdir/$libname.ver~
8577 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8578 fi
8579 ;;
8580 esac
8581 else
8582 ld_shlibs=no
8583 fi
8584 ;;
8585
8586 netbsd*)
8587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8588 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8589 wlarc=
8590 else
8591 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8593 fi
8594 ;;
8595
8596 solaris*)
8597 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8598 ld_shlibs=no
8599 cat <<_LT_EOF 1>&2
8600
8601 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8602 *** create shared libraries on Solaris systems. Therefore, libtool
8603 *** is disabling shared libraries support. We urge you to upgrade GNU
8604 *** binutils to release 2.9.1 or newer. Another option is to modify
8605 *** your PATH or compiler configuration so that the native linker is
8606 *** used, and then restart.
8607
8608 _LT_EOF
8609 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8610 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8611 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8612 else
8613 ld_shlibs=no
8614 fi
8615 ;;
8616
8617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8618 case `$LD -v 2>&1` in
8619 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8620 ld_shlibs=no
8621 cat <<_LT_EOF 1>&2
8622
8623 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8624 *** reliably create shared libraries on SCO systems. Therefore, libtool
8625 *** is disabling shared libraries support. We urge you to upgrade GNU
8626 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8627 *** your PATH or compiler configuration so that the native linker is
8628 *** used, and then restart.
8629
8630 _LT_EOF
8631 ;;
8632 *)
8633 # For security reasons, it is highly recommended that you always
8634 # use absolute paths for naming shared libraries, and exclude the
8635 # DT_RUNPATH tag from executables and libraries. But doing so
8636 # requires that you compile everything twice, which is a pain.
8637 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8641 else
8642 ld_shlibs=no
8643 fi
8644 ;;
8645 esac
8646 ;;
8647
8648 sunos4*)
8649 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8650 wlarc=
8651 hardcode_direct=yes
8652 hardcode_shlibpath_var=no
8653 ;;
8654
8655 *)
8656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8659 else
8660 ld_shlibs=no
8661 fi
8662 ;;
8663 esac
8664
8665 if test "$ld_shlibs" = no; then
8666 runpath_var=
8667 hardcode_libdir_flag_spec=
8668 export_dynamic_flag_spec=
8669 whole_archive_flag_spec=
8670 fi
8671 else
8672 # PORTME fill in a description of your system's linker (not GNU ld)
8673 case $host_os in
8674 aix3*)
8675 allow_undefined_flag=unsupported
8676 always_export_symbols=yes
8677 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'
8678 # Note: this linker hardcodes the directories in LIBPATH if there
8679 # are no directories specified by -L.
8680 hardcode_minus_L=yes
8681 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8682 # Neither direct hardcoding nor static linking is supported with a
8683 # broken collect2.
8684 hardcode_direct=unsupported
8685 fi
8686 ;;
8687
8688 aix[4-9]*)
8689 if test "$host_cpu" = ia64; then
8690 # On IA64, the linker does run time linking by default, so we don't
8691 # have to do anything special.
8692 aix_use_runtimelinking=no
8693 exp_sym_flag='-Bexport'
8694 no_entry_flag=""
8695 else
8696 # If we're using GNU nm, then we don't want the "-C" option.
8697 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8698 # Also, AIX nm treats weak defined symbols like other global
8699 # defined symbols, whereas GNU nm marks them as "W".
8700 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8701 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'
8702 else
8703 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'
8704 fi
8705 aix_use_runtimelinking=no
8706
8707 # Test if we are trying to use run time linking or normal
8708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8709 # need to do runtime linking.
8710 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8711 for ld_flag in $LDFLAGS; do
8712 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8713 aix_use_runtimelinking=yes
8714 break
8715 fi
8716 done
8717 ;;
8718 esac
8719
8720 exp_sym_flag='-bexport'
8721 no_entry_flag='-bnoentry'
8722 fi
8723
8724 # When large executables or shared objects are built, AIX ld can
8725 # have problems creating the table of contents. If linking a library
8726 # or program results in "error TOC overflow" add -mminimal-toc to
8727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8729
8730 archive_cmds=''
8731 hardcode_direct=yes
8732 hardcode_direct_absolute=yes
8733 hardcode_libdir_separator=':'
8734 link_all_deplibs=yes
8735 file_list_spec='${wl}-f,'
8736
8737 if test "$GCC" = yes; then
8738 case $host_os in aix4.[012]|aix4.[012].*)
8739 # We only want to do this on AIX 4.2 and lower, the check
8740 # below for broken collect2 doesn't work under 4.3+
8741 collect2name=`${CC} -print-prog-name=collect2`
8742 if test -f "$collect2name" &&
8743 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8744 then
8745 # We have reworked collect2
8746 :
8747 else
8748 # We have old collect2
8749 hardcode_direct=unsupported
8750 # It fails to find uninstalled libraries when the uninstalled
8751 # path is not listed in the libpath. Setting hardcode_minus_L
8752 # to unsupported forces relinking
8753 hardcode_minus_L=yes
8754 hardcode_libdir_flag_spec='-L$libdir'
8755 hardcode_libdir_separator=
8756 fi
8757 ;;
8758 esac
8759 shared_flag='-shared'
8760 if test "$aix_use_runtimelinking" = yes; then
8761 shared_flag="$shared_flag "'${wl}-G'
8762 fi
8763 else
8764 # not using gcc
8765 if test "$host_cpu" = ia64; then
8766 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8767 # chokes on -Wl,-G. The following line is correct:
8768 shared_flag='-G'
8769 else
8770 if test "$aix_use_runtimelinking" = yes; then
8771 shared_flag='${wl}-G'
8772 else
8773 shared_flag='${wl}-bM:SRE'
8774 fi
8775 fi
8776 fi
8777
8778 export_dynamic_flag_spec='${wl}-bexpall'
8779 # It seems that -bexpall does not export symbols beginning with
8780 # underscore (_), so it is better to generate a list of symbols to export.
8781 always_export_symbols=yes
8782 if test "$aix_use_runtimelinking" = yes; then
8783 # Warning - without using the other runtime loading flags (-brtl),
8784 # -berok will link without error, but may produce a broken library.
8785 allow_undefined_flag='-berok'
8786 # Determine the default libpath from the value encoded in an
8787 # empty executable.
8788 if test "${lt_cv_aix_libpath+set}" = set; then
8789 aix_libpath=$lt_cv_aix_libpath
8790 else
8791 if ${lt_cv_aix_libpath_+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796
8797 int
8798 main ()
8799 {
8800
8801 ;
8802 return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"; then :
8806
8807 lt_aix_libpath_sed='
8808 /Import File Strings/,/^$/ {
8809 /^0/ {
8810 s/^0 *\([^ ]*\) *$/\1/
8811 p
8812 }
8813 }'
8814 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8815 # Check for a 64-bit object if we didn't find anything.
8816 if test -z "$lt_cv_aix_libpath_"; then
8817 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8818 fi
8819 fi
8820 rm -f core conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
8822 if test -z "$lt_cv_aix_libpath_"; then
8823 lt_cv_aix_libpath_="/usr/lib:/lib"
8824 fi
8825
8826 fi
8827
8828 aix_libpath=$lt_cv_aix_libpath_
8829 fi
8830
8831 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8832 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"
8833 else
8834 if test "$host_cpu" = ia64; then
8835 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8836 allow_undefined_flag="-z nodefs"
8837 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"
8838 else
8839 # Determine the default libpath from the value encoded in an
8840 # empty executable.
8841 if test "${lt_cv_aix_libpath+set}" = set; then
8842 aix_libpath=$lt_cv_aix_libpath
8843 else
8844 if ${lt_cv_aix_libpath_+:} false; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8849
8850 int
8851 main ()
8852 {
8853
8854 ;
8855 return 0;
8856 }
8857 _ACEOF
8858 if ac_fn_c_try_link "$LINENO"; then :
8859
8860 lt_aix_libpath_sed='
8861 /Import File Strings/,/^$/ {
8862 /^0/ {
8863 s/^0 *\([^ ]*\) *$/\1/
8864 p
8865 }
8866 }'
8867 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8868 # Check for a 64-bit object if we didn't find anything.
8869 if test -z "$lt_cv_aix_libpath_"; then
8870 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8871 fi
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext \
8874 conftest$ac_exeext conftest.$ac_ext
8875 if test -z "$lt_cv_aix_libpath_"; then
8876 lt_cv_aix_libpath_="/usr/lib:/lib"
8877 fi
8878
8879 fi
8880
8881 aix_libpath=$lt_cv_aix_libpath_
8882 fi
8883
8884 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8885 # Warning - without using the other run time loading flags,
8886 # -berok will link without error, but may produce a broken library.
8887 no_undefined_flag=' ${wl}-bernotok'
8888 allow_undefined_flag=' ${wl}-berok'
8889 if test "$with_gnu_ld" = yes; then
8890 # We only use this code for GNU lds that support --whole-archive.
8891 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8892 else
8893 # Exported symbols can be pulled into shared objects from archives
8894 whole_archive_flag_spec='$convenience'
8895 fi
8896 archive_cmds_need_lc=yes
8897 # This is similar to how AIX traditionally builds its shared libraries.
8898 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'
8899 fi
8900 fi
8901 ;;
8902
8903 amigaos*)
8904 case $host_cpu in
8905 powerpc)
8906 # see comment about AmigaOS4 .so support
8907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908 archive_expsym_cmds=''
8909 ;;
8910 m68k)
8911 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)'
8912 hardcode_libdir_flag_spec='-L$libdir'
8913 hardcode_minus_L=yes
8914 ;;
8915 esac
8916 ;;
8917
8918 bsdi[45]*)
8919 export_dynamic_flag_spec=-rdynamic
8920 ;;
8921
8922 cygwin* | mingw* | pw32* | cegcc*)
8923 # When not using gcc, we currently assume that we are using
8924 # Microsoft Visual C++.
8925 # hardcode_libdir_flag_spec is actually meaningless, as there is
8926 # no search path for DLLs.
8927 case $cc_basename in
8928 cl*)
8929 # Native MSVC
8930 hardcode_libdir_flag_spec=' '
8931 allow_undefined_flag=unsupported
8932 always_export_symbols=yes
8933 file_list_spec='@'
8934 # Tell ltmain to make .lib files, not .a files.
8935 libext=lib
8936 # Tell ltmain to make .dll files, not .so files.
8937 shrext_cmds=".dll"
8938 # FIXME: Setting linknames here is a bad hack.
8939 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8940 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8941 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8942 else
8943 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8944 fi~
8945 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8946 linknames='
8947 # The linker will not automatically build a static lib if we build a DLL.
8948 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8949 enable_shared_with_static_runtimes=yes
8950 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8951 # Don't use ranlib
8952 old_postinstall_cmds='chmod 644 $oldlib'
8953 postlink_cmds='lt_outputfile="@OUTPUT@"~
8954 lt_tool_outputfile="@TOOL_OUTPUT@"~
8955 case $lt_outputfile in
8956 *.exe|*.EXE) ;;
8957 *)
8958 lt_outputfile="$lt_outputfile.exe"
8959 lt_tool_outputfile="$lt_tool_outputfile.exe"
8960 ;;
8961 esac~
8962 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8963 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8964 $RM "$lt_outputfile.manifest";
8965 fi'
8966 ;;
8967 *)
8968 # Assume MSVC wrapper
8969 hardcode_libdir_flag_spec=' '
8970 allow_undefined_flag=unsupported
8971 # Tell ltmain to make .lib files, not .a files.
8972 libext=lib
8973 # Tell ltmain to make .dll files, not .so files.
8974 shrext_cmds=".dll"
8975 # FIXME: Setting linknames here is a bad hack.
8976 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8977 # The linker will automatically build a .lib file if we build a DLL.
8978 old_archive_from_new_cmds='true'
8979 # FIXME: Should let the user specify the lib program.
8980 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8981 enable_shared_with_static_runtimes=yes
8982 ;;
8983 esac
8984 ;;
8985
8986 darwin* | rhapsody*)
8987
8988
8989 archive_cmds_need_lc=no
8990 hardcode_direct=no
8991 hardcode_automatic=yes
8992 hardcode_shlibpath_var=unsupported
8993 if test "$lt_cv_ld_force_load" = "yes"; then
8994 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\"`'
8995 else
8996 whole_archive_flag_spec=''
8997 fi
8998 link_all_deplibs=yes
8999 allow_undefined_flag="$_lt_dar_allow_undefined"
9000 case $cc_basename in
9001 ifort*) _lt_dar_can_shared=yes ;;
9002 *) _lt_dar_can_shared=$GCC ;;
9003 esac
9004 if test "$_lt_dar_can_shared" = "yes"; then
9005 output_verbose_link_cmd=func_echo_all
9006 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9007 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9008 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}"
9009 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}"
9010
9011 else
9012 ld_shlibs=no
9013 fi
9014
9015 ;;
9016
9017 dgux*)
9018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9019 hardcode_libdir_flag_spec='-L$libdir'
9020 hardcode_shlibpath_var=no
9021 ;;
9022
9023 freebsd1*)
9024 ld_shlibs=no
9025 ;;
9026
9027 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9028 # support. Future versions do this automatically, but an explicit c++rt0.o
9029 # does not break anything, and helps significantly (at the cost of a little
9030 # extra space).
9031 freebsd2.2*)
9032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9033 hardcode_libdir_flag_spec='-R$libdir'
9034 hardcode_direct=yes
9035 hardcode_shlibpath_var=no
9036 ;;
9037
9038 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9039 freebsd2*)
9040 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9041 hardcode_direct=yes
9042 hardcode_minus_L=yes
9043 hardcode_shlibpath_var=no
9044 ;;
9045
9046 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9047 freebsd* | dragonfly*)
9048 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9049 hardcode_libdir_flag_spec='-R$libdir'
9050 hardcode_direct=yes
9051 hardcode_shlibpath_var=no
9052 ;;
9053
9054 hpux9*)
9055 if test "$GCC" = yes; then
9056 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'
9057 else
9058 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'
9059 fi
9060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9061 hardcode_libdir_separator=:
9062 hardcode_direct=yes
9063
9064 # hardcode_minus_L: Not really in the search PATH,
9065 # but as the default location of the library.
9066 hardcode_minus_L=yes
9067 export_dynamic_flag_spec='${wl}-E'
9068 ;;
9069
9070 hpux10*)
9071 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9072 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9073 else
9074 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9075 fi
9076 if test "$with_gnu_ld" = no; then
9077 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9078 hardcode_libdir_flag_spec_ld='+b $libdir'
9079 hardcode_libdir_separator=:
9080 hardcode_direct=yes
9081 hardcode_direct_absolute=yes
9082 export_dynamic_flag_spec='${wl}-E'
9083 # hardcode_minus_L: Not really in the search PATH,
9084 # but as the default location of the library.
9085 hardcode_minus_L=yes
9086 fi
9087 ;;
9088
9089 hpux11*)
9090 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9091 case $host_cpu in
9092 hppa*64*)
9093 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9094 ;;
9095 ia64*)
9096 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9097 ;;
9098 *)
9099 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9100 ;;
9101 esac
9102 else
9103 case $host_cpu in
9104 hppa*64*)
9105 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9106 ;;
9107 ia64*)
9108 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9109 ;;
9110 *)
9111
9112 # Older versions of the 11.00 compiler do not understand -b yet
9113 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9115 $as_echo_n "checking if $CC understands -b... " >&6; }
9116 if ${lt_cv_prog_compiler__b+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 lt_cv_prog_compiler__b=no
9120 save_LDFLAGS="$LDFLAGS"
9121 LDFLAGS="$LDFLAGS -b"
9122 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9124 # The linker can only warn and ignore the option if not recognized
9125 # So say no if there are warnings
9126 if test -s conftest.err; then
9127 # Append any errors to the config.log.
9128 cat conftest.err 1>&5
9129 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9131 if diff conftest.exp conftest.er2 >/dev/null; then
9132 lt_cv_prog_compiler__b=yes
9133 fi
9134 else
9135 lt_cv_prog_compiler__b=yes
9136 fi
9137 fi
9138 $RM -r conftest*
9139 LDFLAGS="$save_LDFLAGS"
9140
9141 fi
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9143 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9144
9145 if test x"$lt_cv_prog_compiler__b" = xyes; then
9146 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9147 else
9148 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9149 fi
9150
9151 ;;
9152 esac
9153 fi
9154 if test "$with_gnu_ld" = no; then
9155 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9156 hardcode_libdir_separator=:
9157
9158 case $host_cpu in
9159 hppa*64*|ia64*)
9160 hardcode_direct=no
9161 hardcode_shlibpath_var=no
9162 ;;
9163 *)
9164 hardcode_direct=yes
9165 hardcode_direct_absolute=yes
9166 export_dynamic_flag_spec='${wl}-E'
9167
9168 # hardcode_minus_L: Not really in the search PATH,
9169 # but as the default location of the library.
9170 hardcode_minus_L=yes
9171 ;;
9172 esac
9173 fi
9174 ;;
9175
9176 irix5* | irix6* | nonstopux*)
9177 if test "$GCC" = yes; then
9178 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'
9179 # Try to use the -exported_symbol ld option, if it does not
9180 # work, assume that -exports_file does not work either and
9181 # implicitly export all symbols.
9182 # This should be the same for all languages, so no per-tag cache variable.
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9184 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9185 if ${lt_cv_irix_exported_symbol+:} false; then :
9186 $as_echo_n "(cached) " >&6
9187 else
9188 save_LDFLAGS="$LDFLAGS"
9189 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9192 int foo (void) { return 0; }
9193 _ACEOF
9194 if ac_fn_c_try_link "$LINENO"; then :
9195 lt_cv_irix_exported_symbol=yes
9196 else
9197 lt_cv_irix_exported_symbol=no
9198 fi
9199 rm -f core conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201 LDFLAGS="$save_LDFLAGS"
9202 fi
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9204 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9205 if test "$lt_cv_irix_exported_symbol" = yes; then
9206 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'
9207 fi
9208 else
9209 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'
9210 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'
9211 fi
9212 archive_cmds_need_lc='no'
9213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9214 hardcode_libdir_separator=:
9215 inherit_rpath=yes
9216 link_all_deplibs=yes
9217 ;;
9218
9219 netbsd*)
9220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9222 else
9223 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9224 fi
9225 hardcode_libdir_flag_spec='-R$libdir'
9226 hardcode_direct=yes
9227 hardcode_shlibpath_var=no
9228 ;;
9229
9230 newsos6)
9231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232 hardcode_direct=yes
9233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234 hardcode_libdir_separator=:
9235 hardcode_shlibpath_var=no
9236 ;;
9237
9238 *nto* | *qnx*)
9239 ;;
9240
9241 openbsd*)
9242 if test -f /usr/libexec/ld.so; then
9243 hardcode_direct=yes
9244 hardcode_shlibpath_var=no
9245 hardcode_direct_absolute=yes
9246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9248 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9249 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9250 export_dynamic_flag_spec='${wl}-E'
9251 else
9252 case $host_os in
9253 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9255 hardcode_libdir_flag_spec='-R$libdir'
9256 ;;
9257 *)
9258 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9259 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260 ;;
9261 esac
9262 fi
9263 else
9264 ld_shlibs=no
9265 fi
9266 ;;
9267
9268 os2*)
9269 hardcode_libdir_flag_spec='-L$libdir'
9270 hardcode_minus_L=yes
9271 allow_undefined_flag=unsupported
9272 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'
9273 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9274 ;;
9275
9276 osf3*)
9277 if test "$GCC" = yes; then
9278 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9279 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'
9280 else
9281 allow_undefined_flag=' -expect_unresolved \*'
9282 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'
9283 fi
9284 archive_cmds_need_lc='no'
9285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9286 hardcode_libdir_separator=:
9287 ;;
9288
9289 osf4* | osf5*) # as osf3* with the addition of -msym flag
9290 if test "$GCC" = yes; then
9291 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9292 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'
9293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294 else
9295 allow_undefined_flag=' -expect_unresolved \*'
9296 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'
9297 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~
9298 $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'
9299
9300 # Both c and cxx compiler support -rpath directly
9301 hardcode_libdir_flag_spec='-rpath $libdir'
9302 fi
9303 archive_cmds_need_lc='no'
9304 hardcode_libdir_separator=:
9305 ;;
9306
9307 solaris*)
9308 no_undefined_flag=' -z defs'
9309 if test "$GCC" = yes; then
9310 wlarc='${wl}'
9311 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9312 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9313 $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'
9314 else
9315 case `$CC -V 2>&1` in
9316 *"Compilers 5.0"*)
9317 wlarc=''
9318 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9320 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9321 ;;
9322 *)
9323 wlarc='${wl}'
9324 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9325 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9326 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9327 ;;
9328 esac
9329 fi
9330 hardcode_libdir_flag_spec='-R$libdir'
9331 hardcode_shlibpath_var=no
9332 case $host_os in
9333 solaris2.[0-5] | solaris2.[0-5].*) ;;
9334 *)
9335 # The compiler driver will combine and reorder linker options,
9336 # but understands `-z linker_flag'. GCC discards it without `$wl',
9337 # but is careful enough not to reorder.
9338 # Supported since Solaris 2.6 (maybe 2.5.1?)
9339 if test "$GCC" = yes; then
9340 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9341 else
9342 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9343 fi
9344 ;;
9345 esac
9346 link_all_deplibs=yes
9347 ;;
9348
9349 sunos4*)
9350 if test "x$host_vendor" = xsequent; then
9351 # Use $CC to link under sequent, because it throws in some extra .o
9352 # files that make .init and .fini sections work.
9353 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9354 else
9355 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9356 fi
9357 hardcode_libdir_flag_spec='-L$libdir'
9358 hardcode_direct=yes
9359 hardcode_minus_L=yes
9360 hardcode_shlibpath_var=no
9361 ;;
9362
9363 sysv4)
9364 case $host_vendor in
9365 sni)
9366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367 hardcode_direct=yes # is this really true???
9368 ;;
9369 siemens)
9370 ## LD is ld it makes a PLAMLIB
9371 ## CC just makes a GrossModule.
9372 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9373 reload_cmds='$CC -r -o $output$reload_objs'
9374 hardcode_direct=no
9375 ;;
9376 motorola)
9377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9379 ;;
9380 esac
9381 runpath_var='LD_RUN_PATH'
9382 hardcode_shlibpath_var=no
9383 ;;
9384
9385 sysv4.3*)
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_shlibpath_var=no
9388 export_dynamic_flag_spec='-Bexport'
9389 ;;
9390
9391 sysv4*MP*)
9392 if test -d /usr/nec; then
9393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9394 hardcode_shlibpath_var=no
9395 runpath_var=LD_RUN_PATH
9396 hardcode_runpath_var=yes
9397 ld_shlibs=yes
9398 fi
9399 ;;
9400
9401 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9402 no_undefined_flag='${wl}-z,text'
9403 archive_cmds_need_lc=no
9404 hardcode_shlibpath_var=no
9405 runpath_var='LD_RUN_PATH'
9406
9407 if test "$GCC" = yes; then
9408 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 else
9411 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 fi
9414 ;;
9415
9416 sysv5* | sco3.2v5* | sco5v6*)
9417 # Note: We can NOT use -z defs as we might desire, because we do not
9418 # link with -lc, and that would cause any symbols used from libc to
9419 # always be unresolved, which means just about no library would
9420 # ever link correctly. If we're not using GNU ld we use -z text
9421 # though, which does catch some bad symbols but isn't as heavy-handed
9422 # as -z defs.
9423 no_undefined_flag='${wl}-z,text'
9424 allow_undefined_flag='${wl}-z,nodefs'
9425 archive_cmds_need_lc=no
9426 hardcode_shlibpath_var=no
9427 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9428 hardcode_libdir_separator=':'
9429 link_all_deplibs=yes
9430 export_dynamic_flag_spec='${wl}-Bexport'
9431 runpath_var='LD_RUN_PATH'
9432
9433 if test "$GCC" = yes; then
9434 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436 else
9437 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 fi
9440 ;;
9441
9442 uts4*)
9443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9444 hardcode_libdir_flag_spec='-L$libdir'
9445 hardcode_shlibpath_var=no
9446 ;;
9447
9448 *)
9449 ld_shlibs=no
9450 ;;
9451 esac
9452
9453 if test x$host_vendor = xsni; then
9454 case $host in
9455 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9456 export_dynamic_flag_spec='${wl}-Blargedynsym'
9457 ;;
9458 esac
9459 fi
9460 fi
9461
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9463 $as_echo "$ld_shlibs" >&6; }
9464 test "$ld_shlibs" = no && can_build_shared=no
9465
9466 with_gnu_ld=$with_gnu_ld
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482 #
9483 # Do we need to explicitly link libc?
9484 #
9485 case "x$archive_cmds_need_lc" in
9486 x|xyes)
9487 # Assume -lc should be added
9488 archive_cmds_need_lc=yes
9489
9490 if test "$enable_shared" = yes && test "$GCC" = yes; then
9491 case $archive_cmds in
9492 *'~'*)
9493 # FIXME: we may have to deal with multi-command sequences.
9494 ;;
9495 '$CC '*)
9496 # Test whether the compiler implicitly links with -lc since on some
9497 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9498 # to ld, don't add -lc before -lgcc.
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9500 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9501 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 $RM conftest*
9505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9506
9507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9508 (eval $ac_compile) 2>&5
9509 ac_status=$?
9510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9511 test $ac_status = 0; } 2>conftest.err; then
9512 soname=conftest
9513 lib=conftest
9514 libobjs=conftest.$ac_objext
9515 deplibs=
9516 wl=$lt_prog_compiler_wl
9517 pic_flag=$lt_prog_compiler_pic
9518 compiler_flags=-v
9519 linker_flags=-v
9520 verstring=
9521 output_objdir=.
9522 libname=conftest
9523 lt_save_allow_undefined_flag=$allow_undefined_flag
9524 allow_undefined_flag=
9525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9526 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9527 ac_status=$?
9528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9529 test $ac_status = 0; }
9530 then
9531 lt_cv_archive_cmds_need_lc=no
9532 else
9533 lt_cv_archive_cmds_need_lc=yes
9534 fi
9535 allow_undefined_flag=$lt_save_allow_undefined_flag
9536 else
9537 cat conftest.err 1>&5
9538 fi
9539 $RM conftest*
9540
9541 fi
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9543 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9544 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9545 ;;
9546 esac
9547 fi
9548 ;;
9549 esac
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9708 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9709
9710 if test "$GCC" = yes; then
9711 case $host_os in
9712 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9713 *) lt_awk_arg="/^libraries:/" ;;
9714 esac
9715 case $host_os in
9716 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9717 *) lt_sed_strip_eq="s,=/,/,g" ;;
9718 esac
9719 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9720 case $lt_search_path_spec in
9721 *\;*)
9722 # if the path contains ";" then we assume it to be the separator
9723 # otherwise default to the standard path separator (i.e. ":") - it is
9724 # assumed that no part of a normal pathname contains ";" but that should
9725 # okay in the real world where ";" in dirpaths is itself problematic.
9726 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9727 ;;
9728 *)
9729 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9730 ;;
9731 esac
9732 # Ok, now we have the path, separated by spaces, we can step through it
9733 # and add multilib dir if necessary.
9734 lt_tmp_lt_search_path_spec=
9735 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9736 for lt_sys_path in $lt_search_path_spec; do
9737 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9738 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9739 else
9740 test -d "$lt_sys_path" && \
9741 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9742 fi
9743 done
9744 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9745 BEGIN {RS=" "; FS="/|\n";} {
9746 lt_foo="";
9747 lt_count=0;
9748 for (lt_i = NF; lt_i > 0; lt_i--) {
9749 if ($lt_i != "" && $lt_i != ".") {
9750 if ($lt_i == "..") {
9751 lt_count++;
9752 } else {
9753 if (lt_count == 0) {
9754 lt_foo="/" $lt_i lt_foo;
9755 } else {
9756 lt_count--;
9757 }
9758 }
9759 }
9760 }
9761 if (lt_foo != "") { lt_freq[lt_foo]++; }
9762 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9763 }'`
9764 # AWK program above erroneously prepends '/' to C:/dos/paths
9765 # for these hosts.
9766 case $host_os in
9767 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9768 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9769 esac
9770 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9771 else
9772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9773 fi
9774 library_names_spec=
9775 libname_spec='lib$name'
9776 soname_spec=
9777 shrext_cmds=".so"
9778 postinstall_cmds=
9779 postuninstall_cmds=
9780 finish_cmds=
9781 finish_eval=
9782 shlibpath_var=
9783 shlibpath_overrides_runpath=unknown
9784 version_type=none
9785 dynamic_linker="$host_os ld.so"
9786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9787 need_lib_prefix=unknown
9788 hardcode_into_libs=no
9789
9790 # when you set need_version to no, make sure it does not cause -set_version
9791 # flags to be left without arguments
9792 need_version=unknown
9793
9794 case $host_os in
9795 aix3*)
9796 version_type=linux
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9798 shlibpath_var=LIBPATH
9799
9800 # AIX 3 has no versioning support, so we append a major version to the name.
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 ;;
9803
9804 aix[4-9]*)
9805 version_type=linux
9806 need_lib_prefix=no
9807 need_version=no
9808 hardcode_into_libs=yes
9809 if test "$host_cpu" = ia64; then
9810 # AIX 5 supports IA64
9811 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9812 shlibpath_var=LD_LIBRARY_PATH
9813 else
9814 # With GCC up to 2.95.x, collect2 would create an import file
9815 # for dependence libraries. The import file would start with
9816 # the line `#! .'. This would cause the generated library to
9817 # depend on `.', always an invalid library. This was fixed in
9818 # development snapshots of GCC prior to 3.0.
9819 case $host_os in
9820 aix4 | aix4.[01] | aix4.[01].*)
9821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9822 echo ' yes '
9823 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9824 :
9825 else
9826 can_build_shared=no
9827 fi
9828 ;;
9829 esac
9830 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9831 # soname into executable. Probably we can add versioning support to
9832 # collect2, so additional links can be useful in future.
9833 if test "$aix_use_runtimelinking" = yes; then
9834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9835 # instead of lib<name>.a to let people know that these are not
9836 # typical AIX shared libraries.
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838 else
9839 # We preserve .a as extension for shared libraries through AIX4.2
9840 # and later when we are not doing run time linking.
9841 library_names_spec='${libname}${release}.a $libname.a'
9842 soname_spec='${libname}${release}${shared_ext}$major'
9843 fi
9844 shlibpath_var=LIBPATH
9845 fi
9846 ;;
9847
9848 amigaos*)
9849 case $host_cpu in
9850 powerpc)
9851 # Since July 2007 AmigaOS4 officially supports .so libraries.
9852 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854 ;;
9855 m68k)
9856 library_names_spec='$libname.ixlibrary $libname.a'
9857 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9858 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'
9859 ;;
9860 esac
9861 ;;
9862
9863 beos*)
9864 library_names_spec='${libname}${shared_ext}'
9865 dynamic_linker="$host_os ld.so"
9866 shlibpath_var=LIBRARY_PATH
9867 ;;
9868
9869 bsdi[45]*)
9870 version_type=linux
9871 need_version=no
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873 soname_spec='${libname}${release}${shared_ext}$major'
9874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9875 shlibpath_var=LD_LIBRARY_PATH
9876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9878 # the default ld.so.conf also contains /usr/contrib/lib and
9879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9880 # libtool to hard-code these into programs
9881 ;;
9882
9883 cygwin* | mingw* | pw32* | cegcc*)
9884 version_type=windows
9885 shrext_cmds=".dll"
9886 need_version=no
9887 need_lib_prefix=no
9888
9889 case $GCC,$cc_basename in
9890 yes,*)
9891 # gcc
9892 library_names_spec='$libname.dll.a'
9893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9894 postinstall_cmds='base_file=`basename \${file}`~
9895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9896 dldir=$destdir/`dirname \$dlpath`~
9897 test -d \$dldir || mkdir -p \$dldir~
9898 $install_prog $dir/$dlname \$dldir/$dlname~
9899 chmod a+x \$dldir/$dlname~
9900 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9901 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9902 fi'
9903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9904 dlpath=$dir/\$dldll~
9905 $RM \$dlpath'
9906 shlibpath_overrides_runpath=yes
9907
9908 case $host_os in
9909 cygwin*)
9910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9912
9913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9914 ;;
9915 mingw* | cegcc*)
9916 # MinGW DLLs use traditional 'lib' prefix
9917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918 ;;
9919 pw32*)
9920 # pw32 DLLs use 'pw' prefix rather than 'lib'
9921 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9922 ;;
9923 esac
9924 dynamic_linker='Win32 ld.exe'
9925 ;;
9926
9927 *,cl*)
9928 # Native MSVC
9929 libname_spec='$name'
9930 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9931 library_names_spec='${libname}.dll.lib'
9932
9933 case $build_os in
9934 mingw*)
9935 sys_lib_search_path_spec=
9936 lt_save_ifs=$IFS
9937 IFS=';'
9938 for lt_path in $LIB
9939 do
9940 IFS=$lt_save_ifs
9941 # Let DOS variable expansion print the short 8.3 style file name.
9942 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9943 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9944 done
9945 IFS=$lt_save_ifs
9946 # Convert to MSYS style.
9947 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9948 ;;
9949 cygwin*)
9950 # Convert to unix form, then to dos form, then back to unix form
9951 # but this time dos style (no spaces!) so that the unix form looks
9952 # like /cygdrive/c/PROGRA~1:/cygdr...
9953 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9954 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9955 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9956 ;;
9957 *)
9958 sys_lib_search_path_spec="$LIB"
9959 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9960 # It is most probably a Windows format PATH.
9961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9962 else
9963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9964 fi
9965 # FIXME: find the short name or the path components, as spaces are
9966 # common. (e.g. "Program Files" -> "PROGRA~1")
9967 ;;
9968 esac
9969
9970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9971 postinstall_cmds='base_file=`basename \${file}`~
9972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9973 dldir=$destdir/`dirname \$dlpath`~
9974 test -d \$dldir || mkdir -p \$dldir~
9975 $install_prog $dir/$dlname \$dldir/$dlname'
9976 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9977 dlpath=$dir/\$dldll~
9978 $RM \$dlpath'
9979 shlibpath_overrides_runpath=yes
9980 dynamic_linker='Win32 link.exe'
9981 ;;
9982
9983 *)
9984 # Assume MSVC wrapper
9985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9986 dynamic_linker='Win32 ld.exe'
9987 ;;
9988 esac
9989 # FIXME: first we should search . and the directory the executable is in
9990 shlibpath_var=PATH
9991 ;;
9992
9993 darwin* | rhapsody*)
9994 dynamic_linker="$host_os dyld"
9995 version_type=darwin
9996 need_lib_prefix=no
9997 need_version=no
9998 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9999 soname_spec='${libname}${release}${major}$shared_ext'
10000 shlibpath_overrides_runpath=yes
10001 shlibpath_var=DYLD_LIBRARY_PATH
10002 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10003
10004 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10006 ;;
10007
10008 dgux*)
10009 version_type=linux
10010 need_lib_prefix=no
10011 need_version=no
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 shlibpath_var=LD_LIBRARY_PATH
10015 ;;
10016
10017 freebsd1*)
10018 dynamic_linker=no
10019 ;;
10020
10021 freebsd* | dragonfly*)
10022 # DragonFly does not have aout. When/if they implement a new
10023 # versioning mechanism, adjust this.
10024 if test -x /usr/bin/objformat; then
10025 objformat=`/usr/bin/objformat`
10026 else
10027 case $host_os in
10028 freebsd[123]*) objformat=aout ;;
10029 *) objformat=elf ;;
10030 esac
10031 fi
10032 version_type=freebsd-$objformat
10033 case $version_type in
10034 freebsd-elf*)
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10036 need_version=no
10037 need_lib_prefix=no
10038 ;;
10039 freebsd-*)
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10041 need_version=yes
10042 ;;
10043 esac
10044 shlibpath_var=LD_LIBRARY_PATH
10045 case $host_os in
10046 freebsd2*)
10047 shlibpath_overrides_runpath=yes
10048 ;;
10049 freebsd3.[01]* | freebsdelf3.[01]*)
10050 shlibpath_overrides_runpath=yes
10051 hardcode_into_libs=yes
10052 ;;
10053 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10054 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10055 shlibpath_overrides_runpath=no
10056 hardcode_into_libs=yes
10057 ;;
10058 *) # from 4.6 on, and DragonFly
10059 shlibpath_overrides_runpath=yes
10060 hardcode_into_libs=yes
10061 ;;
10062 esac
10063 ;;
10064
10065 gnu*)
10066 version_type=linux
10067 need_lib_prefix=no
10068 need_version=no
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 shlibpath_var=LD_LIBRARY_PATH
10072 hardcode_into_libs=yes
10073 ;;
10074
10075 haiku*)
10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 dynamic_linker="$host_os runtime_loader"
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 shlibpath_var=LIBRARY_PATH
10083 shlibpath_overrides_runpath=yes
10084 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10085 hardcode_into_libs=yes
10086 ;;
10087
10088 hpux9* | hpux10* | hpux11*)
10089 # Give a soname corresponding to the major version so that dld.sl refuses to
10090 # link against other versions.
10091 version_type=sunos
10092 need_lib_prefix=no
10093 need_version=no
10094 case $host_cpu in
10095 ia64*)
10096 shrext_cmds='.so'
10097 hardcode_into_libs=yes
10098 dynamic_linker="$host_os dld.so"
10099 shlibpath_var=LD_LIBRARY_PATH
10100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 if test "X$HPUX_IA64_MODE" = X32; then
10104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10105 else
10106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10107 fi
10108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10109 ;;
10110 hppa*64*)
10111 shrext_cmds='.sl'
10112 hardcode_into_libs=yes
10113 dynamic_linker="$host_os dld.sl"
10114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10120 ;;
10121 *)
10122 shrext_cmds='.sl'
10123 dynamic_linker="$host_os dld.sl"
10124 shlibpath_var=SHLIB_PATH
10125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 ;;
10129 esac
10130 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10131 postinstall_cmds='chmod 555 $lib'
10132 # or fails outright, so override atomically:
10133 install_override_mode=555
10134 ;;
10135
10136 interix[3-9]*)
10137 version_type=linux
10138 need_lib_prefix=no
10139 need_version=no
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 shlibpath_overrides_runpath=no
10145 hardcode_into_libs=yes
10146 ;;
10147
10148 irix5* | irix6* | nonstopux*)
10149 case $host_os in
10150 nonstopux*) version_type=nonstopux ;;
10151 *)
10152 if test "$lt_cv_prog_gnu_ld" = yes; then
10153 version_type=linux
10154 else
10155 version_type=irix
10156 fi ;;
10157 esac
10158 need_lib_prefix=no
10159 need_version=no
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10162 case $host_os in
10163 irix5* | nonstopux*)
10164 libsuff= shlibsuff=
10165 ;;
10166 *)
10167 case $LD in # libtool.m4 will add one of these switches to LD
10168 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10169 libsuff= shlibsuff= libmagic=32-bit;;
10170 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10171 libsuff=32 shlibsuff=N32 libmagic=N32;;
10172 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10173 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10174 *) libsuff= shlibsuff= libmagic=never-match;;
10175 esac
10176 ;;
10177 esac
10178 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10179 shlibpath_overrides_runpath=no
10180 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10181 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10182 hardcode_into_libs=yes
10183 ;;
10184
10185 # No shared lib support for Linux oldld, aout, or coff.
10186 linux*oldld* | linux*aout* | linux*coff*)
10187 dynamic_linker=no
10188 ;;
10189
10190 # This must be Linux ELF.
10191 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10192 version_type=linux
10193 need_lib_prefix=no
10194 need_version=no
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=no
10200
10201 # Some binutils ld are patched to set DT_RUNPATH
10202 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 lt_cv_shlibpath_overrides_runpath=no
10206 save_LDFLAGS=$LDFLAGS
10207 save_libdir=$libdir
10208 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10209 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212
10213 int
10214 main ()
10215 {
10216
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 if ac_fn_c_try_link "$LINENO"; then :
10222 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10223 lt_cv_shlibpath_overrides_runpath=yes
10224 fi
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 LDFLAGS=$save_LDFLAGS
10229 libdir=$save_libdir
10230
10231 fi
10232
10233 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10234
10235 # This implies no fast_install, which is unacceptable.
10236 # Some rework will be needed to allow for fast_install
10237 # before this can be enabled.
10238 hardcode_into_libs=yes
10239
10240 # Append ld.so.conf contents to the search path
10241 if test -f /etc/ld.so.conf; then
10242 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' ' '`
10243 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10244 fi
10245
10246 # We used to test for /lib/ld.so.1 and disable shared libraries on
10247 # powerpc, because MkLinux only supported shared libraries with the
10248 # GNU dynamic linker. Since this was broken with cross compilers,
10249 # most powerpc-linux boxes support dynamic linking these days and
10250 # people can always --disable-shared, the test was removed, and we
10251 # assume the GNU/Linux dynamic linker is in use.
10252 dynamic_linker='GNU/Linux ld.so'
10253 ;;
10254
10255 netbsd*)
10256 version_type=sunos
10257 need_lib_prefix=no
10258 need_version=no
10259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10262 dynamic_linker='NetBSD (a.out) ld.so'
10263 else
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 dynamic_linker='NetBSD ld.elf_so'
10267 fi
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=yes
10270 hardcode_into_libs=yes
10271 ;;
10272
10273 newsos6)
10274 version_type=linux
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 shlibpath_overrides_runpath=yes
10278 ;;
10279
10280 *nto* | *qnx*)
10281 version_type=qnx
10282 need_lib_prefix=no
10283 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=no
10288 hardcode_into_libs=yes
10289 dynamic_linker='ldqnx.so'
10290 ;;
10291
10292 openbsd*)
10293 version_type=sunos
10294 sys_lib_dlsearch_path_spec="/usr/lib"
10295 need_lib_prefix=no
10296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10297 case $host_os in
10298 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10299 *) need_version=no ;;
10300 esac
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10305 case $host_os in
10306 openbsd2.[89] | openbsd2.[89].*)
10307 shlibpath_overrides_runpath=no
10308 ;;
10309 *)
10310 shlibpath_overrides_runpath=yes
10311 ;;
10312 esac
10313 else
10314 shlibpath_overrides_runpath=yes
10315 fi
10316 ;;
10317
10318 os2*)
10319 libname_spec='$name'
10320 shrext_cmds=".dll"
10321 need_lib_prefix=no
10322 library_names_spec='$libname${shared_ext} $libname.a'
10323 dynamic_linker='OS/2 ld.exe'
10324 shlibpath_var=LIBPATH
10325 ;;
10326
10327 osf3* | osf4* | osf5*)
10328 version_type=osf
10329 need_lib_prefix=no
10330 need_version=no
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10336 ;;
10337
10338 rdos*)
10339 dynamic_linker=no
10340 ;;
10341
10342 solaris*)
10343 version_type=linux
10344 need_lib_prefix=no
10345 need_version=no
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=yes
10350 hardcode_into_libs=yes
10351 # ldd complains unless libraries are executable
10352 postinstall_cmds='chmod +x $lib'
10353 ;;
10354
10355 sunos4*)
10356 version_type=sunos
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10358 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 if test "$with_gnu_ld" = yes; then
10362 need_lib_prefix=no
10363 fi
10364 need_version=yes
10365 ;;
10366
10367 sysv4 | sysv4.3*)
10368 version_type=linux
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 case $host_vendor in
10373 sni)
10374 shlibpath_overrides_runpath=no
10375 need_lib_prefix=no
10376 runpath_var=LD_RUN_PATH
10377 ;;
10378 siemens)
10379 need_lib_prefix=no
10380 ;;
10381 motorola)
10382 need_lib_prefix=no
10383 need_version=no
10384 shlibpath_overrides_runpath=no
10385 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10386 ;;
10387 esac
10388 ;;
10389
10390 sysv4*MP*)
10391 if test -d /usr/nec ;then
10392 version_type=linux
10393 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10394 soname_spec='$libname${shared_ext}.$major'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 fi
10397 ;;
10398
10399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10400 version_type=freebsd-elf
10401 need_lib_prefix=no
10402 need_version=no
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 shlibpath_var=LD_LIBRARY_PATH
10406 shlibpath_overrides_runpath=yes
10407 hardcode_into_libs=yes
10408 if test "$with_gnu_ld" = yes; then
10409 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10410 else
10411 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10412 case $host_os in
10413 sco3.2v5*)
10414 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10415 ;;
10416 esac
10417 fi
10418 sys_lib_dlsearch_path_spec='/usr/lib'
10419 ;;
10420
10421 tpf*)
10422 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10423 version_type=linux
10424 need_lib_prefix=no
10425 need_version=no
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10429 hardcode_into_libs=yes
10430 ;;
10431
10432 uts4*)
10433 version_type=linux
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435 soname_spec='${libname}${release}${shared_ext}$major'
10436 shlibpath_var=LD_LIBRARY_PATH
10437 ;;
10438
10439 *)
10440 dynamic_linker=no
10441 ;;
10442 esac
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10444 $as_echo "$dynamic_linker" >&6; }
10445 test "$dynamic_linker" = no && can_build_shared=no
10446
10447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10448 if test "$GCC" = yes; then
10449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10450 fi
10451
10452 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10453 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10454 fi
10455 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10456 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10457 fi
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10551 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10552 hardcode_action=
10553 if test -n "$hardcode_libdir_flag_spec" ||
10554 test -n "$runpath_var" ||
10555 test "X$hardcode_automatic" = "Xyes" ; then
10556
10557 # We can hardcode non-existent directories.
10558 if test "$hardcode_direct" != no &&
10559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10560 # have to relink, otherwise we might link with an installed library
10561 # when we should be linking with a yet-to-be-installed one
10562 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10563 test "$hardcode_minus_L" != no; then
10564 # Linking always hardcodes the temporary library directory.
10565 hardcode_action=relink
10566 else
10567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10568 hardcode_action=immediate
10569 fi
10570 else
10571 # We cannot hardcode anything, or else we can only hardcode existing
10572 # directories.
10573 hardcode_action=unsupported
10574 fi
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10576 $as_echo "$hardcode_action" >&6; }
10577
10578 if test "$hardcode_action" = relink ||
10579 test "$inherit_rpath" = yes; then
10580 # Fast installation is not supported
10581 enable_fast_install=no
10582 elif test "$shlibpath_overrides_runpath" = yes ||
10583 test "$enable_shared" = no; then
10584 # Fast installation is not necessary
10585 enable_fast_install=needless
10586 fi
10587
10588
10589
10590
10591
10592
10593 if test "x$enable_dlopen" != xyes; then
10594 enable_dlopen=unknown
10595 enable_dlopen_self=unknown
10596 enable_dlopen_self_static=unknown
10597 else
10598 lt_cv_dlopen=no
10599 lt_cv_dlopen_libs=
10600
10601 case $host_os in
10602 beos*)
10603 lt_cv_dlopen="load_add_on"
10604 lt_cv_dlopen_libs=
10605 lt_cv_dlopen_self=yes
10606 ;;
10607
10608 mingw* | pw32* | cegcc*)
10609 lt_cv_dlopen="LoadLibrary"
10610 lt_cv_dlopen_libs=
10611 ;;
10612
10613 cygwin*)
10614 lt_cv_dlopen="dlopen"
10615 lt_cv_dlopen_libs=
10616 ;;
10617
10618 darwin*)
10619 # if libdl is installed we need to link against it
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10621 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10622 if ${ac_cv_lib_dl_dlopen+:} false; then :
10623 $as_echo_n "(cached) " >&6
10624 else
10625 ac_check_lib_save_LIBS=$LIBS
10626 LIBS="-ldl $LIBS"
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629
10630 /* Override any GCC internal prototype to avoid an error.
10631 Use char because int might match the return type of a GCC
10632 builtin and then its argument prototype would still apply. */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 char dlopen ();
10637 int
10638 main ()
10639 {
10640 return dlopen ();
10641 ;
10642 return 0;
10643 }
10644 _ACEOF
10645 if ac_fn_c_try_link "$LINENO"; then :
10646 ac_cv_lib_dl_dlopen=yes
10647 else
10648 ac_cv_lib_dl_dlopen=no
10649 fi
10650 rm -f core conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652 LIBS=$ac_check_lib_save_LIBS
10653 fi
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10655 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10656 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10657 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10658 else
10659
10660 lt_cv_dlopen="dyld"
10661 lt_cv_dlopen_libs=
10662 lt_cv_dlopen_self=yes
10663
10664 fi
10665
10666 ;;
10667
10668 *)
10669 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10670 if test "x$ac_cv_func_shl_load" = xyes; then :
10671 lt_cv_dlopen="shl_load"
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10674 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10675 if ${ac_cv_lib_dld_shl_load+:} false; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 ac_check_lib_save_LIBS=$LIBS
10679 LIBS="-ldld $LIBS"
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10682
10683 /* Override any GCC internal prototype to avoid an error.
10684 Use char because int might match the return type of a GCC
10685 builtin and then its argument prototype would still apply. */
10686 #ifdef __cplusplus
10687 extern "C"
10688 #endif
10689 char shl_load ();
10690 int
10691 main ()
10692 {
10693 return shl_load ();
10694 ;
10695 return 0;
10696 }
10697 _ACEOF
10698 if ac_fn_c_try_link "$LINENO"; then :
10699 ac_cv_lib_dld_shl_load=yes
10700 else
10701 ac_cv_lib_dld_shl_load=no
10702 fi
10703 rm -f core conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10705 LIBS=$ac_check_lib_save_LIBS
10706 fi
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10708 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10709 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10710 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10711 else
10712 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10713 if test "x$ac_cv_func_dlopen" = xyes; then :
10714 lt_cv_dlopen="dlopen"
10715 else
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10717 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10718 if ${ac_cv_lib_dl_dlopen+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 ac_check_lib_save_LIBS=$LIBS
10722 LIBS="-ldl $LIBS"
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10729 #ifdef __cplusplus
10730 extern "C"
10731 #endif
10732 char dlopen ();
10733 int
10734 main ()
10735 {
10736 return dlopen ();
10737 ;
10738 return 0;
10739 }
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"; then :
10742 ac_cv_lib_dl_dlopen=yes
10743 else
10744 ac_cv_lib_dl_dlopen=no
10745 fi
10746 rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10749 fi
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10751 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10752 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10754 else
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10756 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10757 if ${ac_cv_lib_svld_dlopen+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 ac_check_lib_save_LIBS=$LIBS
10761 LIBS="-lsvld $LIBS"
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764
10765 /* Override any GCC internal prototype to avoid an error.
10766 Use char because int might match the return type of a GCC
10767 builtin and then its argument prototype would still apply. */
10768 #ifdef __cplusplus
10769 extern "C"
10770 #endif
10771 char dlopen ();
10772 int
10773 main ()
10774 {
10775 return dlopen ();
10776 ;
10777 return 0;
10778 }
10779 _ACEOF
10780 if ac_fn_c_try_link "$LINENO"; then :
10781 ac_cv_lib_svld_dlopen=yes
10782 else
10783 ac_cv_lib_svld_dlopen=no
10784 fi
10785 rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10787 LIBS=$ac_check_lib_save_LIBS
10788 fi
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10790 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10791 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10795 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10796 if ${ac_cv_lib_dld_dld_link+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 ac_check_lib_save_LIBS=$LIBS
10800 LIBS="-ldld $LIBS"
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10803
10804 /* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10807 #ifdef __cplusplus
10808 extern "C"
10809 #endif
10810 char dld_link ();
10811 int
10812 main ()
10813 {
10814 return dld_link ();
10815 ;
10816 return 0;
10817 }
10818 _ACEOF
10819 if ac_fn_c_try_link "$LINENO"; then :
10820 ac_cv_lib_dld_dld_link=yes
10821 else
10822 ac_cv_lib_dld_dld_link=no
10823 fi
10824 rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10826 LIBS=$ac_check_lib_save_LIBS
10827 fi
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10829 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10830 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10831 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10832 fi
10833
10834
10835 fi
10836
10837
10838 fi
10839
10840
10841 fi
10842
10843
10844 fi
10845
10846
10847 fi
10848
10849 ;;
10850 esac
10851
10852 if test "x$lt_cv_dlopen" != xno; then
10853 enable_dlopen=yes
10854 else
10855 enable_dlopen=no
10856 fi
10857
10858 case $lt_cv_dlopen in
10859 dlopen)
10860 save_CPPFLAGS="$CPPFLAGS"
10861 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10862
10863 save_LDFLAGS="$LDFLAGS"
10864 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10865
10866 save_LIBS="$LIBS"
10867 LIBS="$lt_cv_dlopen_libs $LIBS"
10868
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10870 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10871 if ${lt_cv_dlopen_self+:} false; then :
10872 $as_echo_n "(cached) " >&6
10873 else
10874 if test "$cross_compiling" = yes; then :
10875 lt_cv_dlopen_self=cross
10876 else
10877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10878 lt_status=$lt_dlunknown
10879 cat > conftest.$ac_ext <<_LT_EOF
10880 #line $LINENO "configure"
10881 #include "confdefs.h"
10882
10883 #if HAVE_DLFCN_H
10884 #include <dlfcn.h>
10885 #endif
10886
10887 #include <stdio.h>
10888
10889 #ifdef RTLD_GLOBAL
10890 # define LT_DLGLOBAL RTLD_GLOBAL
10891 #else
10892 # ifdef DL_GLOBAL
10893 # define LT_DLGLOBAL DL_GLOBAL
10894 # else
10895 # define LT_DLGLOBAL 0
10896 # endif
10897 #endif
10898
10899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10900 find out it does not work in some platform. */
10901 #ifndef LT_DLLAZY_OR_NOW
10902 # ifdef RTLD_LAZY
10903 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10904 # else
10905 # ifdef DL_LAZY
10906 # define LT_DLLAZY_OR_NOW DL_LAZY
10907 # else
10908 # ifdef RTLD_NOW
10909 # define LT_DLLAZY_OR_NOW RTLD_NOW
10910 # else
10911 # ifdef DL_NOW
10912 # define LT_DLLAZY_OR_NOW DL_NOW
10913 # else
10914 # define LT_DLLAZY_OR_NOW 0
10915 # endif
10916 # endif
10917 # endif
10918 # endif
10919 #endif
10920
10921 /* When -fvisbility=hidden is used, assume the code has been annotated
10922 correspondingly for the symbols needed. */
10923 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10924 int fnord () __attribute__((visibility("default")));
10925 #endif
10926
10927 int fnord () { return 42; }
10928 int main ()
10929 {
10930 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10931 int status = $lt_dlunknown;
10932
10933 if (self)
10934 {
10935 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10936 else
10937 {
10938 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10939 else puts (dlerror ());
10940 }
10941 /* dlclose (self); */
10942 }
10943 else
10944 puts (dlerror ());
10945
10946 return status;
10947 }
10948 _LT_EOF
10949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10950 (eval $ac_link) 2>&5
10951 ac_status=$?
10952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10953 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10954 (./conftest; exit; ) >&5 2>/dev/null
10955 lt_status=$?
10956 case x$lt_status in
10957 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10958 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10959 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10960 esac
10961 else :
10962 # compilation failed
10963 lt_cv_dlopen_self=no
10964 fi
10965 fi
10966 rm -fr conftest*
10967
10968
10969 fi
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10971 $as_echo "$lt_cv_dlopen_self" >&6; }
10972
10973 if test "x$lt_cv_dlopen_self" = xyes; then
10974 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10976 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10977 if ${lt_cv_dlopen_self_static+:} false; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 if test "$cross_compiling" = yes; then :
10981 lt_cv_dlopen_self_static=cross
10982 else
10983 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10984 lt_status=$lt_dlunknown
10985 cat > conftest.$ac_ext <<_LT_EOF
10986 #line $LINENO "configure"
10987 #include "confdefs.h"
10988
10989 #if HAVE_DLFCN_H
10990 #include <dlfcn.h>
10991 #endif
10992
10993 #include <stdio.h>
10994
10995 #ifdef RTLD_GLOBAL
10996 # define LT_DLGLOBAL RTLD_GLOBAL
10997 #else
10998 # ifdef DL_GLOBAL
10999 # define LT_DLGLOBAL DL_GLOBAL
11000 # else
11001 # define LT_DLGLOBAL 0
11002 # endif
11003 #endif
11004
11005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11006 find out it does not work in some platform. */
11007 #ifndef LT_DLLAZY_OR_NOW
11008 # ifdef RTLD_LAZY
11009 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11010 # else
11011 # ifdef DL_LAZY
11012 # define LT_DLLAZY_OR_NOW DL_LAZY
11013 # else
11014 # ifdef RTLD_NOW
11015 # define LT_DLLAZY_OR_NOW RTLD_NOW
11016 # else
11017 # ifdef DL_NOW
11018 # define LT_DLLAZY_OR_NOW DL_NOW
11019 # else
11020 # define LT_DLLAZY_OR_NOW 0
11021 # endif
11022 # endif
11023 # endif
11024 # endif
11025 #endif
11026
11027 /* When -fvisbility=hidden is used, assume the code has been annotated
11028 correspondingly for the symbols needed. */
11029 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11030 int fnord () __attribute__((visibility("default")));
11031 #endif
11032
11033 int fnord () { return 42; }
11034 int main ()
11035 {
11036 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11037 int status = $lt_dlunknown;
11038
11039 if (self)
11040 {
11041 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11042 else
11043 {
11044 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11045 else puts (dlerror ());
11046 }
11047 /* dlclose (self); */
11048 }
11049 else
11050 puts (dlerror ());
11051
11052 return status;
11053 }
11054 _LT_EOF
11055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11056 (eval $ac_link) 2>&5
11057 ac_status=$?
11058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11059 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11060 (./conftest; exit; ) >&5 2>/dev/null
11061 lt_status=$?
11062 case x$lt_status in
11063 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11064 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11065 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11066 esac
11067 else :
11068 # compilation failed
11069 lt_cv_dlopen_self_static=no
11070 fi
11071 fi
11072 rm -fr conftest*
11073
11074
11075 fi
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11077 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11078 fi
11079
11080 CPPFLAGS="$save_CPPFLAGS"
11081 LDFLAGS="$save_LDFLAGS"
11082 LIBS="$save_LIBS"
11083 ;;
11084 esac
11085
11086 case $lt_cv_dlopen_self in
11087 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11088 *) enable_dlopen_self=unknown ;;
11089 esac
11090
11091 case $lt_cv_dlopen_self_static in
11092 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11093 *) enable_dlopen_self_static=unknown ;;
11094 esac
11095 fi
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113 striplib=
11114 old_striplib=
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11116 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11117 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11118 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11119 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11121 $as_echo "yes" >&6; }
11122 else
11123 # FIXME - insert some real tests, host_os isn't really good enough
11124 case $host_os in
11125 darwin*)
11126 if test -n "$STRIP" ; then
11127 striplib="$STRIP -x"
11128 old_striplib="$STRIP -S"
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11130 $as_echo "yes" >&6; }
11131 else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11134 fi
11135 ;;
11136 *)
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11139 ;;
11140 esac
11141 fi
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154 # Report which library types will actually be built
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11156 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11158 $as_echo "$can_build_shared" >&6; }
11159
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11161 $as_echo_n "checking whether to build shared libraries... " >&6; }
11162 test "$can_build_shared" = "no" && enable_shared=no
11163
11164 # On AIX, shared libraries and static libraries use the same namespace, and
11165 # are all built from PIC.
11166 case $host_os in
11167 aix3*)
11168 test "$enable_shared" = yes && enable_static=no
11169 if test -n "$RANLIB"; then
11170 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11171 postinstall_cmds='$RANLIB $lib'
11172 fi
11173 ;;
11174
11175 aix[4-9]*)
11176 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11177 test "$enable_shared" = yes && enable_static=no
11178 fi
11179 ;;
11180 esac
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11182 $as_echo "$enable_shared" >&6; }
11183
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11185 $as_echo_n "checking whether to build static libraries... " >&6; }
11186 # Make sure either enable_shared or enable_static is yes.
11187 test "$enable_shared" = yes || enable_static=yes
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11189 $as_echo "$enable_static" >&6; }
11190
11191
11192
11193
11194 fi
11195 ac_ext=c
11196 ac_cpp='$CPP $CPPFLAGS'
11197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11200
11201 CC="$lt_save_CC"
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215 ac_config_commands="$ac_config_commands libtool"
11216
11217
11218
11219
11220 # Only expand once:
11221
11222
11223
11224 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11237 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11238 if ${ac_cv_prog_cc_c99+:} false; then :
11239 $as_echo_n "(cached) " >&6
11240 else
11241 ac_cv_prog_cc_c99=no
11242 ac_save_CC=$CC
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245 #include <stdarg.h>
11246 #include <stdbool.h>
11247 #include <stdlib.h>
11248 #include <wchar.h>
11249 #include <stdio.h>
11250
11251 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11252 #define debug(...) fprintf (stderr, __VA_ARGS__)
11253 #define showlist(...) puts (#__VA_ARGS__)
11254 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11255 static void
11256 test_varargs_macros (void)
11257 {
11258 int x = 1234;
11259 int y = 5678;
11260 debug ("Flag");
11261 debug ("X = %d\n", x);
11262 showlist (The first, second, and third items.);
11263 report (x>y, "x is %d but y is %d", x, y);
11264 }
11265
11266 // Check long long types.
11267 #define BIG64 18446744073709551615ull
11268 #define BIG32 4294967295ul
11269 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11270 #if !BIG_OK
11271 your preprocessor is broken;
11272 #endif
11273 #if BIG_OK
11274 #else
11275 your preprocessor is broken;
11276 #endif
11277 static long long int bignum = -9223372036854775807LL;
11278 static unsigned long long int ubignum = BIG64;
11279
11280 struct incomplete_array
11281 {
11282 int datasize;
11283 double data[];
11284 };
11285
11286 struct named_init {
11287 int number;
11288 const wchar_t *name;
11289 double average;
11290 };
11291
11292 typedef const char *ccp;
11293
11294 static inline int
11295 test_restrict (ccp restrict text)
11296 {
11297 // See if C++-style comments work.
11298 // Iterate through items via the restricted pointer.
11299 // Also check for declarations in for loops.
11300 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11301 continue;
11302 return 0;
11303 }
11304
11305 // Check varargs and va_copy.
11306 static void
11307 test_varargs (const char *format, ...)
11308 {
11309 va_list args;
11310 va_start (args, format);
11311 va_list args_copy;
11312 va_copy (args_copy, args);
11313
11314 const char *str;
11315 int number;
11316 float fnumber;
11317
11318 while (*format)
11319 {
11320 switch (*format++)
11321 {
11322 case 's': // string
11323 str = va_arg (args_copy, const char *);
11324 break;
11325 case 'd': // int
11326 number = va_arg (args_copy, int);
11327 break;
11328 case 'f': // float
11329 fnumber = va_arg (args_copy, double);
11330 break;
11331 default:
11332 break;
11333 }
11334 }
11335 va_end (args_copy);
11336 va_end (args);
11337 }
11338
11339 int
11340 main ()
11341 {
11342
11343 // Check bool.
11344 _Bool success = false;
11345
11346 // Check restrict.
11347 if (test_restrict ("String literal") == 0)
11348 success = true;
11349 char *restrict newvar = "Another string";
11350
11351 // Check varargs.
11352 test_varargs ("s, d' f .", "string", 65, 34.234);
11353 test_varargs_macros ();
11354
11355 // Check flexible array members.
11356 struct incomplete_array *ia =
11357 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11358 ia->datasize = 10;
11359 for (int i = 0; i < ia->datasize; ++i)
11360 ia->data[i] = i * 1.234;
11361
11362 // Check named initializers.
11363 struct named_init ni = {
11364 .number = 34,
11365 .name = L"Test wide string",
11366 .average = 543.34343,
11367 };
11368
11369 ni.number = 58;
11370
11371 int dynamic_array[ni.number];
11372 dynamic_array[ni.number - 1] = 543;
11373
11374 // work around unused variable warnings
11375 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11376 || dynamic_array[ni.number - 1] != 543);
11377
11378 ;
11379 return 0;
11380 }
11381 _ACEOF
11382 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11383 do
11384 CC="$ac_save_CC $ac_arg"
11385 if ac_fn_c_try_compile "$LINENO"; then :
11386 ac_cv_prog_cc_c99=$ac_arg
11387 fi
11388 rm -f core conftest.err conftest.$ac_objext
11389 test "x$ac_cv_prog_cc_c99" != "xno" && break
11390 done
11391 rm -f conftest.$ac_ext
11392 CC=$ac_save_CC
11393
11394 fi
11395 # AC_CACHE_VAL
11396 case "x$ac_cv_prog_cc_c99" in
11397 x)
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11399 $as_echo "none needed" >&6; } ;;
11400 xno)
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11402 $as_echo "unsupported" >&6; } ;;
11403 *)
11404 CC="$CC $ac_cv_prog_cc_c99"
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11406 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11407 esac
11408 if test "x$ac_cv_prog_cc_c99" != xno; then :
11409
11410 fi
11411
11412
11413
11414
11415 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11416 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11417 CLANGCC="yes"
11418 else
11419 CLANGCC="no"
11420 fi
11421
11422 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11423 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11424 INTELCC="yes"
11425 else
11426 INTELCC="no"
11427 fi
11428
11429 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11430 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11431 SUNCC="yes"
11432 else
11433 SUNCC="no"
11434 fi
11435
11436
11437
11438
11439 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11440 if test -n "$ac_tool_prefix"; then
11441 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11442 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444 $as_echo_n "checking for $ac_word... " >&6; }
11445 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 case $PKG_CONFIG in
11449 [\\/]* | ?:[\\/]*)
11450 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11451 ;;
11452 *)
11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $PATH
11455 do
11456 IFS=$as_save_IFS
11457 test -z "$as_dir" && as_dir=.
11458 for ac_exec_ext in '' $ac_executable_extensions; do
11459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11460 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11462 break 2
11463 fi
11464 done
11465 done
11466 IFS=$as_save_IFS
11467
11468 ;;
11469 esac
11470 fi
11471 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11472 if test -n "$PKG_CONFIG"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11474 $as_echo "$PKG_CONFIG" >&6; }
11475 else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11478 fi
11479
11480
11481 fi
11482 if test -z "$ac_cv_path_PKG_CONFIG"; then
11483 ac_pt_PKG_CONFIG=$PKG_CONFIG
11484 # Extract the first word of "pkg-config", so it can be a program name with args.
11485 set dummy pkg-config; ac_word=$2
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487 $as_echo_n "checking for $ac_word... " >&6; }
11488 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 case $ac_pt_PKG_CONFIG in
11492 [\\/]* | ?:[\\/]*)
11493 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11494 ;;
11495 *)
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11498 do
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11503 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 break 2
11506 fi
11507 done
11508 done
11509 IFS=$as_save_IFS
11510
11511 ;;
11512 esac
11513 fi
11514 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11515 if test -n "$ac_pt_PKG_CONFIG"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11517 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11521 fi
11522
11523 if test "x$ac_pt_PKG_CONFIG" = x; then
11524 PKG_CONFIG=""
11525 else
11526 case $cross_compiling:$ac_tool_warned in
11527 yes:)
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11530 ac_tool_warned=yes ;;
11531 esac
11532 PKG_CONFIG=$ac_pt_PKG_CONFIG
11533 fi
11534 else
11535 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11536 fi
11537
11538 fi
11539 if test -n "$PKG_CONFIG"; then
11540 _pkg_min_version=0.9.0
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11542 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11543 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11545 $as_echo "yes" >&6; }
11546 else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11549 PKG_CONFIG=""
11550 fi
11551
11552 fi
11553
11554
11555
11556
11557
11558 if test "x$GCC" = xyes ; then
11559 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11560 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11561 -Wbad-function-cast -Wformat=2"
11562 case `$CC -dumpversion` in
11563 3.4.* | 4.*)
11564 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11565 ;;
11566 esac
11567 else
11568 if test "x$SUNCC" = "xyes"; then
11569 CWARNFLAGS="-v"
11570 fi
11571 fi
11572
11573
11574
11575 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
11576
11577
11578
11579
11580 # Check whether --enable-strict-compilation was given.
11581 if test "${enable_strict_compilation+set}" = set; then :
11582 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11583 else
11584 STRICT_COMPILE=no
11585 fi
11586
11587 if test "x$GCC" = xyes ; then
11588 STRICT_CFLAGS="-pedantic -Werror"
11589 # Add -Werror=attributes if supported (gcc 4.2 & later)
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11591 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11592 save_CFLAGS="$CFLAGS"
11593 CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11596 return 0;
11597 _ACEOF
11598 if ac_fn_c_try_compile "$LINENO"; then :
11599 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11601 $as_echo "yes" >&6; }
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607 CFLAGS="$save_CFLAGS"
11608 elif test "x$SUNCC" = "xyes"; then
11609 STRICT_CFLAGS="-errwarn"
11610 elif test "x$INTELCC" = "xyes"; then
11611 STRICT_CFLAGS="-Werror"
11612 fi
11613 if test "x$STRICT_COMPILE" = "xyes"; then
11614 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11615 fi
11616
11617
11618
11619
11620
11621 cat >>confdefs.h <<_ACEOF
11622 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11623 _ACEOF
11624
11625 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11626 if test "x$PVM" = "x"; then
11627 PVM="0"
11628 fi
11629
11630 cat >>confdefs.h <<_ACEOF
11631 #define PACKAGE_VERSION_MINOR $PVM
11632 _ACEOF
11633
11634 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11635 if test "x$PVP" = "x"; then
11636 PVP="0"
11637 fi
11638
11639 cat >>confdefs.h <<_ACEOF
11640 #define PACKAGE_VERSION_PATCHLEVEL $PVP
11641 _ACEOF
11642
11643
11644
11645 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11646 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11647 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11648 echo 'git directory not found: installing possibly empty changelog.' >&2)"
11649
11650
11651
11652
11653 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11654 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11655 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11656 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11657 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11658
11659
11660
11661
11662
11663
11664 if test x$APP_MAN_SUFFIX = x ; then
11665 APP_MAN_SUFFIX=1
11666 fi
11667 if test x$APP_MAN_DIR = x ; then
11668 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11669 fi
11670
11671 if test x$LIB_MAN_SUFFIX = x ; then
11672 LIB_MAN_SUFFIX=3
11673 fi
11674 if test x$LIB_MAN_DIR = x ; then
11675 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11676 fi
11677
11678 if test x$FILE_MAN_SUFFIX = x ; then
11679 case $host_os in
11680 solaris*) FILE_MAN_SUFFIX=4 ;;
11681 *) FILE_MAN_SUFFIX=5 ;;
11682 esac
11683 fi
11684 if test x$FILE_MAN_DIR = x ; then
11685 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11686 fi
11687
11688 if test x$MISC_MAN_SUFFIX = x ; then
11689 case $host_os in
11690 solaris*) MISC_MAN_SUFFIX=5 ;;
11691 *) MISC_MAN_SUFFIX=7 ;;
11692 esac
11693 fi
11694 if test x$MISC_MAN_DIR = x ; then
11695 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11696 fi
11697
11698 if test x$DRIVER_MAN_SUFFIX = x ; then
11699 case $host_os in
11700 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11701 *) DRIVER_MAN_SUFFIX=4 ;;
11702 esac
11703 fi
11704 if test x$DRIVER_MAN_DIR = x ; then
11705 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11706 fi
11707
11708 if test x$ADMIN_MAN_SUFFIX = x ; then
11709 case $host_os in
11710 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11711 *) ADMIN_MAN_SUFFIX=8 ;;
11712 esac
11713 fi
11714 if test x$ADMIN_MAN_DIR = x ; then
11715 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11716 fi
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732 XORG_MAN_PAGE="X Version 11"
11733
11734 MAN_SUBSTS="\
11735 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11736 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11737 -e 's|__xservername__|Xorg|g' \
11738 -e 's|__xconfigfile__|xorg.conf|g' \
11739 -e 's|__projectroot__|\$(prefix)|g' \
11740 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11741 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11742 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11743 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11744 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11745 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11746 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11747
11748
11749
11750 # Check whether --enable-silent-rules was given.
11751 if test "${enable_silent_rules+set}" = set; then :
11752 enableval=$enable_silent_rules;
11753 fi
11754
11755 case $enable_silent_rules in
11756 yes) AM_DEFAULT_VERBOSITY=0;;
11757 no) AM_DEFAULT_VERBOSITY=1;;
11758 *) AM_DEFAULT_VERBOSITY=0;;
11759 esac
11760 AM_BACKSLASH='\'
11761
11762
11763
11764 # Check whether --enable-malloc0returnsnull was given.
11765 if test "${enable_malloc0returnsnull+set}" = set; then :
11766 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
11767 else
11768 MALLOC_ZERO_RETURNS_NULL=auto
11769 fi
11770
11771
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
11773 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
11774 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
11775 if test "$cross_compiling" = yes; then :
11776 MALLOC_ZERO_RETURNS_NULL=yes
11777 else
11778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h. */
11780
11781 #include <stdlib.h>
11782
11783 int
11784 main ()
11785 {
11786
11787 char *m0, *r0, *c0, *p;
11788 m0 = malloc(0);
11789 p = malloc(10);
11790 r0 = realloc(p,0);
11791 c0 = calloc(0,10);
11792 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
11793
11794 ;
11795 return 0;
11796 }
11797 _ACEOF
11798 if ac_fn_c_try_run "$LINENO"; then :
11799 MALLOC_ZERO_RETURNS_NULL=yes
11800 else
11801 MALLOC_ZERO_RETURNS_NULL=no
11802 fi
11803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11804 conftest.$ac_objext conftest.beam conftest.$ac_ext
11805 fi
11806
11807 fi
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
11809 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
11810
11811 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
11812 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
11813 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
11814 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
11815 else
11816 MALLOC_ZERO_CFLAGS=""
11817 XMALLOC_ZERO_CFLAGS=""
11818 XTMALLOC_ZERO_CFLAGS=""
11819 fi
11820
11821
11822
11823
11824
11825
11826 # Check randr configuration, strip extra digits from package version to
11827 # find the required protocol version
11828 RANDR_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
11829
11830
11831 # Obtain compiler/linker options for depedencies
11832
11833 pkg_failed=no
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR" >&5
11835 $as_echo_n "checking for RANDR... " >&6; }
11836
11837 if test -n "$RANDR_CFLAGS"; then
11838 pkg_cv_RANDR_CFLAGS="$RANDR_CFLAGS"
11839 elif test -n "$PKG_CONFIG"; then
11840 if test -n "$PKG_CONFIG" && \
11841 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5
11842 ($PKG_CONFIG --exists --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5
11843 ac_status=$?
11844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11845 test $ac_status = 0; }; then
11846 pkg_cv_RANDR_CFLAGS=`$PKG_CONFIG --cflags "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null`
11847 else
11848 pkg_failed=yes
11849 fi
11850 else
11851 pkg_failed=untried
11852 fi
11853 if test -n "$RANDR_LIBS"; then
11854 pkg_cv_RANDR_LIBS="$RANDR_LIBS"
11855 elif test -n "$PKG_CONFIG"; then
11856 if test -n "$PKG_CONFIG" && \
11857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5
11858 ($PKG_CONFIG --exists --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5
11859 ac_status=$?
11860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11861 test $ac_status = 0; }; then
11862 pkg_cv_RANDR_LIBS=`$PKG_CONFIG --libs "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null`
11863 else
11864 pkg_failed=yes
11865 fi
11866 else
11867 pkg_failed=untried
11868 fi
11869
11870
11871
11872 if test $pkg_failed = yes; then
11873
11874 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11875 _pkg_short_errors_supported=yes
11876 else
11877 _pkg_short_errors_supported=no
11878 fi
11879 if test $_pkg_short_errors_supported = yes; then
11880 RANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1`
11881 else
11882 RANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1`
11883 fi
11884 # Put the nasty error message in config.log where it belongs
11885 echo "$RANDR_PKG_ERRORS" >&5
11886
11887 as_fn_error $? "Package requirements (x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) were not met:
11888
11889 $RANDR_PKG_ERRORS
11890
11891 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11892 installed software in a non-standard prefix.
11893
11894 Alternatively, you may set the environment variables RANDR_CFLAGS
11895 and RANDR_LIBS to avoid the need to call pkg-config.
11896 See the pkg-config man page for more details.
11897 " "$LINENO" 5
11898 elif test $pkg_failed = untried; then
11899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11901 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11902 is in your PATH or set the PKG_CONFIG environment variable to the full
11903 path to pkg-config.
11904
11905 Alternatively, you may set the environment variables RANDR_CFLAGS
11906 and RANDR_LIBS to avoid the need to call pkg-config.
11907 See the pkg-config man page for more details.
11908
11909 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11910 See \`config.log' for more details" "$LINENO" 5; }
11911 else
11912 RANDR_CFLAGS=$pkg_cv_RANDR_CFLAGS
11913 RANDR_LIBS=$pkg_cv_RANDR_LIBS
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 $as_echo "yes" >&6; }
11916 :
11917 fi
11918
11919 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xrandr.pc"
11920
11921 cat >confcache <<\_ACEOF
11922 # This file is a shell script that caches the results of configure
11923 # tests run on this system so they can be shared between configure
11924 # scripts and configure runs, see configure's option --config-cache.
11925 # It is not useful on other systems. If it contains results you don't
11926 # want to keep, you may remove or edit it.
11927 #
11928 # config.status only pays attention to the cache file if you give it
11929 # the --recheck option to rerun configure.
11930 #
11931 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11932 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11933 # following values.
11934
11935 _ACEOF
11936
11937 # The following way of writing the cache mishandles newlines in values,
11938 # but we know of no workaround that is simple, portable, and efficient.
11939 # So, we kill variables containing newlines.
11940 # Ultrix sh set writes to stderr and can't be redirected directly,
11941 # and sets the high bit in the cache file unless we assign to the vars.
11942 (
11943 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11944 eval ac_val=\$$ac_var
11945 case $ac_val in #(
11946 *${as_nl}*)
11947 case $ac_var in #(
11948 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11949 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11950 esac
11951 case $ac_var in #(
11952 _ | IFS | as_nl) ;; #(
11953 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11954 *) { eval $ac_var=; unset $ac_var;} ;;
11955 esac ;;
11956 esac
11957 done
11958
11959 (set) 2>&1 |
11960 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11961 *${as_nl}ac_space=\ *)
11962 # `set' does not quote correctly, so add quotes: double-quote
11963 # substitution turns \\\\ into \\, and sed turns \\ into \.
11964 sed -n \
11965 "s/'/'\\\\''/g;
11966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11967 ;; #(
11968 *)
11969 # `set' quotes correctly as required by POSIX, so do not add quotes.
11970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11971 ;;
11972 esac |
11973 sort
11974 ) |
11975 sed '
11976 /^ac_cv_env_/b end
11977 t clear
11978 :clear
11979 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11980 t end
11981 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11982 :end' >>confcache
11983 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11984 if test -w "$cache_file"; then
11985 if test "x$cache_file" != "x/dev/null"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11987 $as_echo "$as_me: updating cache $cache_file" >&6;}
11988 if test ! -f "$cache_file" || test -h "$cache_file"; then
11989 cat confcache >"$cache_file"
11990 else
11991 case $cache_file in #(
11992 */* | ?:*)
11993 mv -f confcache "$cache_file"$$ &&
11994 mv -f "$cache_file"$$ "$cache_file" ;; #(
11995 *)
11996 mv -f confcache "$cache_file" ;;
11997 esac
11998 fi
11999 fi
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12002 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12003 fi
12004 fi
12005 rm -f confcache
12006
12007 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12008 # Let make expand exec_prefix.
12009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12010
12011 DEFS=-DHAVE_CONFIG_H
12012
12013 ac_libobjs=
12014 ac_ltlibobjs=
12015 U=
12016 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12017 # 1. Remove the extension, and $U if already installed.
12018 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12019 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12020 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12021 # will be set to the directory where LIBOBJS objects are built.
12022 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12023 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12024 done
12025 LIBOBJS=$ac_libobjs
12026
12027 LTLIBOBJS=$ac_ltlibobjs
12028
12029
12030 if test -n "$EXEEXT"; then
12031 am__EXEEXT_TRUE=
12032 am__EXEEXT_FALSE='#'
12033 else
12034 am__EXEEXT_TRUE='#'
12035 am__EXEEXT_FALSE=
12036 fi
12037
12038 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12039 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12041 fi
12042 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12043 as_fn_error $? "conditional \"AMDEP\" was never defined.
12044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12045 fi
12046 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12047 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12049 fi
12050
12051 : "${CONFIG_STATUS=./config.status}"
12052 ac_write_fail=0
12053 ac_clean_files_save=$ac_clean_files
12054 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12056 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12057 as_write_fail=0
12058 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12059 #! $SHELL
12060 # Generated by $as_me.
12061 # Run this file to recreate the current configuration.
12062 # Compiler output produced by configure, useful for debugging
12063 # configure, is in config.log if it exists.
12064
12065 debug=false
12066 ac_cs_recheck=false
12067 ac_cs_silent=false
12068
12069 SHELL=\${CONFIG_SHELL-$SHELL}
12070 export SHELL
12071 _ASEOF
12072 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12073 ## -------------------- ##
12074 ## M4sh Initialization. ##
12075 ## -------------------- ##
12076
12077 # Be more Bourne compatible
12078 DUALCASE=1; export DUALCASE # for MKS sh
12079 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12080 emulate sh
12081 NULLCMD=:
12082 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12083 # is contrary to our usage. Disable this feature.
12084 alias -g '${1+"$@"}'='"$@"'
12085 setopt NO_GLOB_SUBST
12086 else
12087 case `(set -o) 2>/dev/null` in #(
12088 *posix*) :
12089 set -o posix ;; #(
12090 *) :
12091 ;;
12092 esac
12093 fi
12094
12095
12096 as_nl='
12097 '
12098 export as_nl
12099 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12100 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12101 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12102 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12103 # Prefer a ksh shell builtin over an external printf program on Solaris,
12104 # but without wasting forks for bash or zsh.
12105 if test -z "$BASH_VERSION$ZSH_VERSION" \
12106 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12107 as_echo='print -r --'
12108 as_echo_n='print -rn --'
12109 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12110 as_echo='printf %s\n'
12111 as_echo_n='printf %s'
12112 else
12113 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12114 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12115 as_echo_n='/usr/ucb/echo -n'
12116 else
12117 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12118 as_echo_n_body='eval
12119 arg=$1;
12120 case $arg in #(
12121 *"$as_nl"*)
12122 expr "X$arg" : "X\\(.*\\)$as_nl";
12123 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12124 esac;
12125 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12126 '
12127 export as_echo_n_body
12128 as_echo_n='sh -c $as_echo_n_body as_echo'
12129 fi
12130 export as_echo_body
12131 as_echo='sh -c $as_echo_body as_echo'
12132 fi
12133
12134 # The user is always right.
12135 if test "${PATH_SEPARATOR+set}" != set; then
12136 PATH_SEPARATOR=:
12137 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12138 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12139 PATH_SEPARATOR=';'
12140 }
12141 fi
12142
12143
12144 # IFS
12145 # We need space, tab and new line, in precisely that order. Quoting is
12146 # there to prevent editors from complaining about space-tab.
12147 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12148 # splitting by setting IFS to empty value.)
12149 IFS=" "" $as_nl"
12150
12151 # Find who we are. Look in the path if we contain no directory separator.
12152 as_myself=
12153 case $0 in #((
12154 *[\\/]* ) as_myself=$0 ;;
12155 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12157 do
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12161 done
12162 IFS=$as_save_IFS
12163
12164 ;;
12165 esac
12166 # We did not find ourselves, most probably we were run as `sh COMMAND'
12167 # in which case we are not to be found in the path.
12168 if test "x$as_myself" = x; then
12169 as_myself=$0
12170 fi
12171 if test ! -f "$as_myself"; then
12172 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12173 exit 1
12174 fi
12175
12176 # Unset variables that we do not need and which cause bugs (e.g. in
12177 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12178 # suppresses any "Segmentation fault" message there. '((' could
12179 # trigger a bug in pdksh 5.2.14.
12180 for as_var in BASH_ENV ENV MAIL MAILPATH
12181 do eval test x\${$as_var+set} = xset \
12182 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12183 done
12184 PS1='$ '
12185 PS2='> '
12186 PS4='+ '
12187
12188 # NLS nuisances.
12189 LC_ALL=C
12190 export LC_ALL
12191 LANGUAGE=C
12192 export LANGUAGE
12193
12194 # CDPATH.
12195 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12196
12197
12198 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12199 # ----------------------------------------
12200 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12201 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12202 # script with STATUS, using 1 if that was 0.
12203 as_fn_error ()
12204 {
12205 as_status=$1; test $as_status -eq 0 && as_status=1
12206 if test "$4"; then
12207 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12208 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12209 fi
12210 $as_echo "$as_me: error: $2" >&2
12211 as_fn_exit $as_status
12212 } # as_fn_error
12213
12214
12215 # as_fn_set_status STATUS
12216 # -----------------------
12217 # Set $? to STATUS, without forking.
12218 as_fn_set_status ()
12219 {
12220 return $1
12221 } # as_fn_set_status
12222
12223 # as_fn_exit STATUS
12224 # -----------------
12225 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12226 as_fn_exit ()
12227 {
12228 set +e
12229 as_fn_set_status $1
12230 exit $1
12231 } # as_fn_exit
12232
12233 # as_fn_unset VAR
12234 # ---------------
12235 # Portably unset VAR.
12236 as_fn_unset ()
12237 {
12238 { eval $1=; unset $1;}
12239 }
12240 as_unset=as_fn_unset
12241 # as_fn_append VAR VALUE
12242 # ----------------------
12243 # Append the text in VALUE to the end of the definition contained in VAR. Take
12244 # advantage of any shell optimizations that allow amortized linear growth over
12245 # repeated appends, instead of the typical quadratic growth present in naive
12246 # implementations.
12247 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12248 eval 'as_fn_append ()
12249 {
12250 eval $1+=\$2
12251 }'
12252 else
12253 as_fn_append ()
12254 {
12255 eval $1=\$$1\$2
12256 }
12257 fi # as_fn_append
12258
12259 # as_fn_arith ARG...
12260 # ------------------
12261 # Perform arithmetic evaluation on the ARGs, and store the result in the
12262 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12263 # must be portable across $(()) and expr.
12264 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12265 eval 'as_fn_arith ()
12266 {
12267 as_val=$(( $* ))
12268 }'
12269 else
12270 as_fn_arith ()
12271 {
12272 as_val=`expr "$@" || test $? -eq 1`
12273 }
12274 fi # as_fn_arith
12275
12276
12277 if expr a : '\(a\)' >/dev/null 2>&1 &&
12278 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12279 as_expr=expr
12280 else
12281 as_expr=false
12282 fi
12283
12284 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12285 as_basename=basename
12286 else
12287 as_basename=false
12288 fi
12289
12290 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12291 as_dirname=dirname
12292 else
12293 as_dirname=false
12294 fi
12295
12296 as_me=`$as_basename -- "$0" ||
12297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12298 X"$0" : 'X\(//\)$' \| \
12299 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12300 $as_echo X/"$0" |
12301 sed '/^.*\/\([^/][^/]*\)\/*$/{
12302 s//\1/
12303 q
12304 }
12305 /^X\/\(\/\/\)$/{
12306 s//\1/
12307 q
12308 }
12309 /^X\/\(\/\).*/{
12310 s//\1/
12311 q
12312 }
12313 s/.*/./; q'`
12314
12315 # Avoid depending upon Character Ranges.
12316 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12317 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12318 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12319 as_cr_digits='0123456789'
12320 as_cr_alnum=$as_cr_Letters$as_cr_digits
12321
12322 ECHO_C= ECHO_N= ECHO_T=
12323 case `echo -n x` in #(((((
12324 -n*)
12325 case `echo 'xy\c'` in
12326 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12327 xy) ECHO_C='\c';;
12328 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12329 ECHO_T=' ';;
12330 esac;;
12331 *)
12332 ECHO_N='-n';;
12333 esac
12334
12335 rm -f conf$$ conf$$.exe conf$$.file
12336 if test -d conf$$.dir; then
12337 rm -f conf$$.dir/conf$$.file
12338 else
12339 rm -f conf$$.dir
12340 mkdir conf$$.dir 2>/dev/null
12341 fi
12342 if (echo >conf$$.file) 2>/dev/null; then
12343 if ln -s conf$$.file conf$$ 2>/dev/null; then
12344 as_ln_s='ln -s'
12345 # ... but there are two gotchas:
12346 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12347 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12348 # In both cases, we have to default to `cp -p'.
12349 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12350 as_ln_s='cp -p'
12351 elif ln conf$$.file conf$$ 2>/dev/null; then
12352 as_ln_s=ln
12353 else
12354 as_ln_s='cp -p'
12355 fi
12356 else
12357 as_ln_s='cp -p'
12358 fi
12359 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12360 rmdir conf$$.dir 2>/dev/null
12361
12362
12363 # as_fn_mkdir_p
12364 # -------------
12365 # Create "$as_dir" as a directory, including parents if necessary.
12366 as_fn_mkdir_p ()
12367 {
12368
12369 case $as_dir in #(
12370 -*) as_dir=./$as_dir;;
12371 esac
12372 test -d "$as_dir" || eval $as_mkdir_p || {
12373 as_dirs=
12374 while :; do
12375 case $as_dir in #(
12376 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12377 *) as_qdir=$as_dir;;
12378 esac
12379 as_dirs="'$as_qdir' $as_dirs"
12380 as_dir=`$as_dirname -- "$as_dir" ||
12381 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12382 X"$as_dir" : 'X\(//\)[^/]' \| \
12383 X"$as_dir" : 'X\(//\)$' \| \
12384 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12385 $as_echo X"$as_dir" |
12386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12387 s//\1/
12388 q
12389 }
12390 /^X\(\/\/\)[^/].*/{
12391 s//\1/
12392 q
12393 }
12394 /^X\(\/\/\)$/{
12395 s//\1/
12396 q
12397 }
12398 /^X\(\/\).*/{
12399 s//\1/
12400 q
12401 }
12402 s/.*/./; q'`
12403 test -d "$as_dir" && break
12404 done
12405 test -z "$as_dirs" || eval "mkdir $as_dirs"
12406 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12407
12408
12409 } # as_fn_mkdir_p
12410 if mkdir -p . 2>/dev/null; then
12411 as_mkdir_p='mkdir -p "$as_dir"'
12412 else
12413 test -d ./-p && rmdir ./-p
12414 as_mkdir_p=false
12415 fi
12416
12417 if test -x / >/dev/null 2>&1; then
12418 as_test_x='test -x'
12419 else
12420 if ls -dL / >/dev/null 2>&1; then
12421 as_ls_L_option=L
12422 else
12423 as_ls_L_option=
12424 fi
12425 as_test_x='
12426 eval sh -c '\''
12427 if test -d "$1"; then
12428 test -d "$1/.";
12429 else
12430 case $1 in #(
12431 -*)set "./$1";;
12432 esac;
12433 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12434 ???[sx]*):;;*)false;;esac;fi
12435 '\'' sh
12436 '
12437 fi
12438 as_executable_p=$as_test_x
12439
12440 # Sed expression to map a string onto a valid CPP name.
12441 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12442
12443 # Sed expression to map a string onto a valid variable name.
12444 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12445
12446
12447 exec 6>&1
12448 ## ----------------------------------- ##
12449 ## Main body of $CONFIG_STATUS script. ##
12450 ## ----------------------------------- ##
12451 _ASEOF
12452 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12453
12454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12455 # Save the log message, to keep $0 and so on meaningful, and to
12456 # report actual input values of CONFIG_FILES etc. instead of their
12457 # values after options handling.
12458 ac_log="
12459 This file was extended by libXrandr $as_me 1.3.2, which was
12460 generated by GNU Autoconf 2.68. Invocation command line was
12461
12462 CONFIG_FILES = $CONFIG_FILES
12463 CONFIG_HEADERS = $CONFIG_HEADERS
12464 CONFIG_LINKS = $CONFIG_LINKS
12465 CONFIG_COMMANDS = $CONFIG_COMMANDS
12466 $ $0 $@
12467
12468 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12469 "
12470
12471 _ACEOF
12472
12473 case $ac_config_files in *"
12474 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12475 esac
12476
12477 case $ac_config_headers in *"
12478 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12479 esac
12480
12481
12482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12483 # Files that config.status was made for.
12484 config_files="$ac_config_files"
12485 config_headers="$ac_config_headers"
12486 config_commands="$ac_config_commands"
12487
12488 _ACEOF
12489
12490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12491 ac_cs_usage="\
12492 \`$as_me' instantiates files and other configuration actions
12493 from templates according to the current configuration. Unless the files
12494 and actions are specified as TAGs, all are instantiated by default.
12495
12496 Usage: $0 [OPTION]... [TAG]...
12497
12498 -h, --help print this help, then exit
12499 -V, --version print version number and configuration settings, then exit
12500 --config print configuration, then exit
12501 -q, --quiet, --silent
12502 do not print progress messages
12503 -d, --debug don't remove temporary files
12504 --recheck update $as_me by reconfiguring in the same conditions
12505 --file=FILE[:TEMPLATE]
12506 instantiate the configuration file FILE
12507 --header=FILE[:TEMPLATE]
12508 instantiate the configuration header FILE
12509
12510 Configuration files:
12511 $config_files
12512
12513 Configuration headers:
12514 $config_headers
12515
12516 Configuration commands:
12517 $config_commands
12518
12519 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12520
12521 _ACEOF
12522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12523 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12524 ac_cs_version="\\
12525 libXrandr config.status 1.3.2
12526 configured by $0, generated by GNU Autoconf 2.68,
12527 with options \\"\$ac_cs_config\\"
12528
12529 Copyright (C) 2010 Free Software Foundation, Inc.
12530 This config.status script is free software; the Free Software Foundation
12531 gives unlimited permission to copy, distribute and modify it."
12532
12533 ac_pwd='$ac_pwd'
12534 srcdir='$srcdir'
12535 INSTALL='$INSTALL'
12536 MKDIR_P='$MKDIR_P'
12537 AWK='$AWK'
12538 test -n "\$AWK" || AWK=awk
12539 _ACEOF
12540
12541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12542 # The default lists apply if the user does not specify any file.
12543 ac_need_defaults=:
12544 while test $# != 0
12545 do
12546 case $1 in
12547 --*=?*)
12548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12550 ac_shift=:
12551 ;;
12552 --*=)
12553 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12554 ac_optarg=
12555 ac_shift=:
12556 ;;
12557 *)
12558 ac_option=$1
12559 ac_optarg=$2
12560 ac_shift=shift
12561 ;;
12562 esac
12563
12564 case $ac_option in
12565 # Handling of the options.
12566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12567 ac_cs_recheck=: ;;
12568 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12569 $as_echo "$ac_cs_version"; exit ;;
12570 --config | --confi | --conf | --con | --co | --c )
12571 $as_echo "$ac_cs_config"; exit ;;
12572 --debug | --debu | --deb | --de | --d | -d )
12573 debug=: ;;
12574 --file | --fil | --fi | --f )
12575 $ac_shift
12576 case $ac_optarg in
12577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12578 '') as_fn_error $? "missing file argument" ;;
12579 esac
12580 as_fn_append CONFIG_FILES " '$ac_optarg'"
12581 ac_need_defaults=false;;
12582 --header | --heade | --head | --hea )
12583 $ac_shift
12584 case $ac_optarg in
12585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12586 esac
12587 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12588 ac_need_defaults=false;;
12589 --he | --h)
12590 # Conflict between --help and --header
12591 as_fn_error $? "ambiguous option: \`$1'
12592 Try \`$0 --help' for more information.";;
12593 --help | --hel | -h )
12594 $as_echo "$ac_cs_usage"; exit ;;
12595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12596 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12597 ac_cs_silent=: ;;
12598
12599 # This is an error.
12600 -*) as_fn_error $? "unrecognized option: \`$1'
12601 Try \`$0 --help' for more information." ;;
12602
12603 *) as_fn_append ac_config_targets " $1"
12604 ac_need_defaults=false ;;
12605
12606 esac
12607 shift
12608 done
12609
12610 ac_configure_extra_args=
12611
12612 if $ac_cs_silent; then
12613 exec 6>/dev/null
12614 ac_configure_extra_args="$ac_configure_extra_args --silent"
12615 fi
12616
12617 _ACEOF
12618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12619 if \$ac_cs_recheck; then
12620 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12621 shift
12622 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12623 CONFIG_SHELL='$SHELL'
12624 export CONFIG_SHELL
12625 exec "\$@"
12626 fi
12627
12628 _ACEOF
12629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12630 exec 5>>config.log
12631 {
12632 echo
12633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12634 ## Running $as_me. ##
12635 _ASBOX
12636 $as_echo "$ac_log"
12637 } >&5
12638
12639 _ACEOF
12640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12641 #
12642 # INIT-COMMANDS
12643 #
12644 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12645
12646
12647 # The HP-UX ksh and POSIX shell print the target directory to stdout
12648 # if CDPATH is set.
12649 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12650
12651 sed_quote_subst='$sed_quote_subst'
12652 double_quote_subst='$double_quote_subst'
12653 delay_variable_subst='$delay_variable_subst'
12654 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12655 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12656 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12657 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12658 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12659 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12660 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12661 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12662 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12663 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12664 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12665 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12666 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12667 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12668 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12669 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12670 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12671 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12672 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12673 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12674 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12675 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12676 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12677 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12678 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12679 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12680 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12681 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12682 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12683 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12684 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12685 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12686 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12687 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12688 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12689 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12690 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12691 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12692 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12693 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12694 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12695 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12696 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12697 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12698 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12699 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12700 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12701 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12702 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12703 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12704 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12705 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12706 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12707 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12708 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12709 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"`'
12710 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12711 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12712 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12713 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12714 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12715 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12716 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12717 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12718 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12719 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12720 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12721 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12722 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12723 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12724 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12725 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12726 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12727 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12728 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12729 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12730 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12731 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12732 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12733 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12734 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12735 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12736 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12737 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12738 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12739 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12740 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12741 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12742 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12743 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12744 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12745 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12746 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12747 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12748 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12749 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12750 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12751 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12752 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12753 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12754 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12755 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12756 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12757 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12758 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12759 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12760 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12761 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12762 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12763 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12764 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12765 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12766 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12767 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12768 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12769 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12770 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12771 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12772 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12773 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12774 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12775 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12776 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12777 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12778 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12779 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12780 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12781 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12782 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12783 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12784
12785 LTCC='$LTCC'
12786 LTCFLAGS='$LTCFLAGS'
12787 compiler='$compiler_DEFAULT'
12788
12789 # A function that is used when there is no print builtin or printf.
12790 func_fallback_echo ()
12791 {
12792 eval 'cat <<_LTECHO_EOF
12793 \$1
12794 _LTECHO_EOF'
12795 }
12796
12797 # Quote evaled strings.
12798 for var in SHELL \
12799 ECHO \
12800 SED \
12801 GREP \
12802 EGREP \
12803 FGREP \
12804 LD \
12805 NM \
12806 LN_S \
12807 lt_SP2NL \
12808 lt_NL2SP \
12809 reload_flag \
12810 OBJDUMP \
12811 deplibs_check_method \
12812 file_magic_cmd \
12813 file_magic_glob \
12814 want_nocaseglob \
12815 DLLTOOL \
12816 sharedlib_from_linklib_cmd \
12817 AR \
12818 AR_FLAGS \
12819 archiver_list_spec \
12820 STRIP \
12821 RANLIB \
12822 CC \
12823 CFLAGS \
12824 compiler \
12825 lt_cv_sys_global_symbol_pipe \
12826 lt_cv_sys_global_symbol_to_cdecl \
12827 lt_cv_sys_global_symbol_to_c_name_address \
12828 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12829 nm_file_list_spec \
12830 lt_prog_compiler_no_builtin_flag \
12831 lt_prog_compiler_pic \
12832 lt_prog_compiler_wl \
12833 lt_prog_compiler_static \
12834 lt_cv_prog_compiler_c_o \
12835 need_locks \
12836 MANIFEST_TOOL \
12837 DSYMUTIL \
12838 NMEDIT \
12839 LIPO \
12840 OTOOL \
12841 OTOOL64 \
12842 shrext_cmds \
12843 export_dynamic_flag_spec \
12844 whole_archive_flag_spec \
12845 compiler_needs_object \
12846 with_gnu_ld \
12847 allow_undefined_flag \
12848 no_undefined_flag \
12849 hardcode_libdir_flag_spec \
12850 hardcode_libdir_flag_spec_ld \
12851 hardcode_libdir_separator \
12852 exclude_expsyms \
12853 include_expsyms \
12854 file_list_spec \
12855 variables_saved_for_relink \
12856 libname_spec \
12857 library_names_spec \
12858 soname_spec \
12859 install_override_mode \
12860 finish_eval \
12861 old_striplib \
12862 striplib; do
12863 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12864 *[\\\\\\\`\\"\\\$]*)
12865 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12866 ;;
12867 *)
12868 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12869 ;;
12870 esac
12871 done
12872
12873 # Double-quote double-evaled strings.
12874 for var in reload_cmds \
12875 old_postinstall_cmds \
12876 old_postuninstall_cmds \
12877 old_archive_cmds \
12878 extract_expsyms_cmds \
12879 old_archive_from_new_cmds \
12880 old_archive_from_expsyms_cmds \
12881 archive_cmds \
12882 archive_expsym_cmds \
12883 module_cmds \
12884 module_expsym_cmds \
12885 export_symbols_cmds \
12886 prelink_cmds \
12887 postlink_cmds \
12888 postinstall_cmds \
12889 postuninstall_cmds \
12890 finish_cmds \
12891 sys_lib_search_path_spec \
12892 sys_lib_dlsearch_path_spec; do
12893 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12894 *[\\\\\\\`\\"\\\$]*)
12895 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12896 ;;
12897 *)
12898 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12899 ;;
12900 esac
12901 done
12902
12903 ac_aux_dir='$ac_aux_dir'
12904 xsi_shell='$xsi_shell'
12905 lt_shell_append='$lt_shell_append'
12906
12907 # See if we are running on zsh, and set the options which allow our
12908 # commands through without removal of \ escapes INIT.
12909 if test -n "\${ZSH_VERSION+set}" ; then
12910 setopt NO_GLOB_SUBST
12911 fi
12912
12913
12914 PACKAGE='$PACKAGE'
12915 VERSION='$VERSION'
12916 TIMESTAMP='$TIMESTAMP'
12917 RM='$RM'
12918 ofile='$ofile'
12919
12920
12921
12922
12923 _ACEOF
12924
12925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12926
12927 # Handling of arguments.
12928 for ac_config_target in $ac_config_targets
12929 do
12930 case $ac_config_target in
12931 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12932 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12933 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12934 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12935 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12936 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12937 "xrandr.pc") CONFIG_FILES="$CONFIG_FILES xrandr.pc" ;;
12938
12939 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12940 esac
12941 done
12942
12943
12944 # If the user did not use the arguments to specify the items to instantiate,
12945 # then the envvar interface is used. Set only those that are not.
12946 # We use the long form for the default assignment because of an extremely
12947 # bizarre bug on SunOS 4.1.3.
12948 if $ac_need_defaults; then
12949 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12950 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12951 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12952 fi
12953
12954 # Have a temporary directory for convenience. Make it in the build tree
12955 # simply because there is no reason against having it here, and in addition,
12956 # creating and moving files from /tmp can sometimes cause problems.
12957 # Hook for its removal unless debugging.
12958 # Note that there is a small window in which the directory will not be cleaned:
12959 # after its creation but before its name has been assigned to `$tmp'.
12960 $debug ||
12961 {
12962 tmp= ac_tmp=
12963 trap 'exit_status=$?
12964 : "${ac_tmp:=$tmp}"
12965 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12966 ' 0
12967 trap 'as_fn_exit 1' 1 2 13 15
12968 }
12969 # Create a (secure) tmp directory for tmp files.
12970
12971 {
12972 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12973 test -d "$tmp"
12974 } ||
12975 {
12976 tmp=./conf$$-$RANDOM
12977 (umask 077 && mkdir "$tmp")
12978 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12979 ac_tmp=$tmp
12980
12981 # Set up the scripts for CONFIG_FILES section.
12982 # No need to generate them if there are no CONFIG_FILES.
12983 # This happens for instance with `./config.status config.h'.
12984 if test -n "$CONFIG_FILES"; then
12985
12986
12987 ac_cr=`echo X | tr X '\015'`
12988 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12989 # But we know of no other shell where ac_cr would be empty at this
12990 # point, so we can use a bashism as a fallback.
12991 if test "x$ac_cr" = x; then
12992 eval ac_cr=\$\'\\r\'
12993 fi
12994 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12995 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12996 ac_cs_awk_cr='\\r'
12997 else
12998 ac_cs_awk_cr=$ac_cr
12999 fi
13000
13001 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13002 _ACEOF
13003
13004
13005 {
13006 echo "cat >conf$$subs.awk <<_ACEOF" &&
13007 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13008 echo "_ACEOF"
13009 } >conf$$subs.sh ||
13010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13011 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13012 ac_delim='%!_!# '
13013 for ac_last_try in false false false false false :; do
13014 . ./conf$$subs.sh ||
13015 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13016
13017 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13018 if test $ac_delim_n = $ac_delim_num; then
13019 break
13020 elif $ac_last_try; then
13021 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13022 else
13023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13024 fi
13025 done
13026 rm -f conf$$subs.sh
13027
13028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13029 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13030 _ACEOF
13031 sed -n '
13032 h
13033 s/^/S["/; s/!.*/"]=/
13034 p
13035 g
13036 s/^[^!]*!//
13037 :repl
13038 t repl
13039 s/'"$ac_delim"'$//
13040 t delim
13041 :nl
13042 h
13043 s/\(.\{148\}\)..*/\1/
13044 t more1
13045 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13046 p
13047 n
13048 b repl
13049 :more1
13050 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13051 p
13052 g
13053 s/.\{148\}//
13054 t nl
13055 :delim
13056 h
13057 s/\(.\{148\}\)..*/\1/
13058 t more2
13059 s/["\\]/\\&/g; s/^/"/; s/$/"/
13060 p
13061 b
13062 :more2
13063 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13064 p
13065 g
13066 s/.\{148\}//
13067 t delim
13068 ' <conf$$subs.awk | sed '
13069 /^[^""]/{
13070 N
13071 s/\n//
13072 }
13073 ' >>$CONFIG_STATUS || ac_write_fail=1
13074 rm -f conf$$subs.awk
13075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13076 _ACAWK
13077 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13078 for (key in S) S_is_set[key] = 1
13079 FS = ""
13080
13081 }
13082 {
13083 line = $ 0
13084 nfields = split(line, field, "@")
13085 substed = 0
13086 len = length(field[1])
13087 for (i = 2; i < nfields; i++) {
13088 key = field[i]
13089 keylen = length(key)
13090 if (S_is_set[key]) {
13091 value = S[key]
13092 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13093 len += length(value) + length(field[++i])
13094 substed = 1
13095 } else
13096 len += 1 + keylen
13097 }
13098
13099 print line
13100 }
13101
13102 _ACAWK
13103 _ACEOF
13104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13105 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13106 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13107 else
13108 cat
13109 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13110 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13111 _ACEOF
13112
13113 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13114 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13115 # trailing colons and then remove the whole line if VPATH becomes empty
13116 # (actually we leave an empty line to preserve line numbers).
13117 if test "x$srcdir" = x.; then
13118 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13119 h
13120 s///
13121 s/^/:/
13122 s/[ ]*$/:/
13123 s/:\$(srcdir):/:/g
13124 s/:\${srcdir}:/:/g
13125 s/:@srcdir@:/:/g
13126 s/^:*//
13127 s/:*$//
13128 x
13129 s/\(=[ ]*\).*/\1/
13130 G
13131 s/\n//
13132 s/^[^=]*=[ ]*$//
13133 }'
13134 fi
13135
13136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13137 fi # test -n "$CONFIG_FILES"
13138
13139 # Set up the scripts for CONFIG_HEADERS section.
13140 # No need to generate them if there are no CONFIG_HEADERS.
13141 # This happens for instance with `./config.status Makefile'.
13142 if test -n "$CONFIG_HEADERS"; then
13143 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13144 BEGIN {
13145 _ACEOF
13146
13147 # Transform confdefs.h into an awk script `defines.awk', embedded as
13148 # here-document in config.status, that substitutes the proper values into
13149 # config.h.in to produce config.h.
13150
13151 # Create a delimiter string that does not exist in confdefs.h, to ease
13152 # handling of long lines.
13153 ac_delim='%!_!# '
13154 for ac_last_try in false false :; do
13155 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13156 if test -z "$ac_tt"; then
13157 break
13158 elif $ac_last_try; then
13159 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13160 else
13161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13162 fi
13163 done
13164
13165 # For the awk script, D is an array of macro values keyed by name,
13166 # likewise P contains macro parameters if any. Preserve backslash
13167 # newline sequences.
13168
13169 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13170 sed -n '
13171 s/.\{148\}/&'"$ac_delim"'/g
13172 t rset
13173 :rset
13174 s/^[ ]*#[ ]*define[ ][ ]*/ /
13175 t def
13176 d
13177 :def
13178 s/\\$//
13179 t bsnl
13180 s/["\\]/\\&/g
13181 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13182 D["\1"]=" \3"/p
13183 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13184 d
13185 :bsnl
13186 s/["\\]/\\&/g
13187 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13188 D["\1"]=" \3\\\\\\n"\\/p
13189 t cont
13190 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13191 t cont
13192 d
13193 :cont
13194 n
13195 s/.\{148\}/&'"$ac_delim"'/g
13196 t clear
13197 :clear
13198 s/\\$//
13199 t bsnlc
13200 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13201 d
13202 :bsnlc
13203 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13204 b cont
13205 ' <confdefs.h | sed '
13206 s/'"$ac_delim"'/"\\\
13207 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13208
13209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13210 for (key in D) D_is_set[key] = 1
13211 FS = ""
13212 }
13213 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13214 line = \$ 0
13215 split(line, arg, " ")
13216 if (arg[1] == "#") {
13217 defundef = arg[2]
13218 mac1 = arg[3]
13219 } else {
13220 defundef = substr(arg[1], 2)
13221 mac1 = arg[2]
13222 }
13223 split(mac1, mac2, "(") #)
13224 macro = mac2[1]
13225 prefix = substr(line, 1, index(line, defundef) - 1)
13226 if (D_is_set[macro]) {
13227 # Preserve the white space surrounding the "#".
13228 print prefix "define", macro P[macro] D[macro]
13229 next
13230 } else {
13231 # Replace #undef with comments. This is necessary, for example,
13232 # in the case of _POSIX_SOURCE, which is predefined and required
13233 # on some systems where configure will not decide to define it.
13234 if (defundef == "undef") {
13235 print "/*", prefix defundef, macro, "*/"
13236 next
13237 }
13238 }
13239 }
13240 { print }
13241 _ACAWK
13242 _ACEOF
13243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13244 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13245 fi # test -n "$CONFIG_HEADERS"
13246
13247
13248 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13249 shift
13250 for ac_tag
13251 do
13252 case $ac_tag in
13253 :[FHLC]) ac_mode=$ac_tag; continue;;
13254 esac
13255 case $ac_mode$ac_tag in
13256 :[FHL]*:*);;
13257 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13258 :[FH]-) ac_tag=-:-;;
13259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13260 esac
13261 ac_save_IFS=$IFS
13262 IFS=:
13263 set x $ac_tag
13264 IFS=$ac_save_IFS
13265 shift
13266 ac_file=$1
13267 shift
13268
13269 case $ac_mode in
13270 :L) ac_source=$1;;
13271 :[FH])
13272 ac_file_inputs=
13273 for ac_f
13274 do
13275 case $ac_f in
13276 -) ac_f="$ac_tmp/stdin";;
13277 *) # Look for the file first in the build tree, then in the source tree
13278 # (if the path is not absolute). The absolute path cannot be DOS-style,
13279 # because $ac_f cannot contain `:'.
13280 test -f "$ac_f" ||
13281 case $ac_f in
13282 [\\/$]*) false;;
13283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13284 esac ||
13285 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13286 esac
13287 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13288 as_fn_append ac_file_inputs " '$ac_f'"
13289 done
13290
13291 # Let's still pretend it is `configure' which instantiates (i.e., don't
13292 # use $as_me), people would be surprised to read:
13293 # /* config.h. Generated by config.status. */
13294 configure_input='Generated from '`
13295 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13296 `' by configure.'
13297 if test x"$ac_file" != x-; then
13298 configure_input="$ac_file. $configure_input"
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13300 $as_echo "$as_me: creating $ac_file" >&6;}
13301 fi
13302 # Neutralize special characters interpreted by sed in replacement strings.
13303 case $configure_input in #(
13304 *\&* | *\|* | *\\* )
13305 ac_sed_conf_input=`$as_echo "$configure_input" |
13306 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13307 *) ac_sed_conf_input=$configure_input;;
13308 esac
13309
13310 case $ac_tag in
13311 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13313 esac
13314 ;;
13315 esac
13316
13317 ac_dir=`$as_dirname -- "$ac_file" ||
13318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13319 X"$ac_file" : 'X\(//\)[^/]' \| \
13320 X"$ac_file" : 'X\(//\)$' \| \
13321 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13322 $as_echo X"$ac_file" |
13323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13324 s//\1/
13325 q
13326 }
13327 /^X\(\/\/\)[^/].*/{
13328 s//\1/
13329 q
13330 }
13331 /^X\(\/\/\)$/{
13332 s//\1/
13333 q
13334 }
13335 /^X\(\/\).*/{
13336 s//\1/
13337 q
13338 }
13339 s/.*/./; q'`
13340 as_dir="$ac_dir"; as_fn_mkdir_p
13341 ac_builddir=.
13342
13343 case "$ac_dir" in
13344 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13345 *)
13346 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13347 # A ".." for each directory in $ac_dir_suffix.
13348 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13349 case $ac_top_builddir_sub in
13350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13352 esac ;;
13353 esac
13354 ac_abs_top_builddir=$ac_pwd
13355 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13356 # for backward compatibility:
13357 ac_top_builddir=$ac_top_build_prefix
13358
13359 case $srcdir in
13360 .) # We are building in place.
13361 ac_srcdir=.
13362 ac_top_srcdir=$ac_top_builddir_sub
13363 ac_abs_top_srcdir=$ac_pwd ;;
13364 [\\/]* | ?:[\\/]* ) # Absolute name.
13365 ac_srcdir=$srcdir$ac_dir_suffix;
13366 ac_top_srcdir=$srcdir
13367 ac_abs_top_srcdir=$srcdir ;;
13368 *) # Relative name.
13369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13370 ac_top_srcdir=$ac_top_build_prefix$srcdir
13371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13372 esac
13373 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13374
13375
13376 case $ac_mode in
13377 :F)
13378 #
13379 # CONFIG_FILE
13380 #
13381
13382 case $INSTALL in
13383 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13384 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13385 esac
13386 ac_MKDIR_P=$MKDIR_P
13387 case $MKDIR_P in
13388 [\\/$]* | ?:[\\/]* ) ;;
13389 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13390 esac
13391 _ACEOF
13392
13393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13394 # If the template does not know about datarootdir, expand it.
13395 # FIXME: This hack should be removed a few years after 2.60.
13396 ac_datarootdir_hack=; ac_datarootdir_seen=
13397 ac_sed_dataroot='
13398 /datarootdir/ {
13399 p
13400 q
13401 }
13402 /@datadir@/p
13403 /@docdir@/p
13404 /@infodir@/p
13405 /@localedir@/p
13406 /@mandir@/p'
13407 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13408 *datarootdir*) ac_datarootdir_seen=yes;;
13409 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13411 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13412 _ACEOF
13413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13414 ac_datarootdir_hack='
13415 s&@datadir@&$datadir&g
13416 s&@docdir@&$docdir&g
13417 s&@infodir@&$infodir&g
13418 s&@localedir@&$localedir&g
13419 s&@mandir@&$mandir&g
13420 s&\\\${datarootdir}&$datarootdir&g' ;;
13421 esac
13422 _ACEOF
13423
13424 # Neutralize VPATH when `$srcdir' = `.'.
13425 # Shell code in configure.ac might set extrasub.
13426 # FIXME: do we really want to maintain this feature?
13427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13428 ac_sed_extra="$ac_vpsub
13429 $extrasub
13430 _ACEOF
13431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13432 :t
13433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13434 s|@configure_input@|$ac_sed_conf_input|;t t
13435 s&@top_builddir@&$ac_top_builddir_sub&;t t
13436 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13437 s&@srcdir@&$ac_srcdir&;t t
13438 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13439 s&@top_srcdir@&$ac_top_srcdir&;t t
13440 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13441 s&@builddir@&$ac_builddir&;t t
13442 s&@abs_builddir@&$ac_abs_builddir&;t t
13443 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13444 s&@INSTALL@&$ac_INSTALL&;t t
13445 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13446 $ac_datarootdir_hack
13447 "
13448 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13449 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13450
13451 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13452 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13453 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13454 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13456 which seems to be undefined. Please make sure it is defined" >&5
13457 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13458 which seems to be undefined. Please make sure it is defined" >&2;}
13459
13460 rm -f "$ac_tmp/stdin"
13461 case $ac_file in
13462 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13463 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13464 esac \
13465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13466 ;;
13467 :H)
13468 #
13469 # CONFIG_HEADER
13470 #
13471 if test x"$ac_file" != x-; then
13472 {
13473 $as_echo "/* $configure_input */" \
13474 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13475 } >"$ac_tmp/config.h" \
13476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13477 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13479 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13480 else
13481 rm -f "$ac_file"
13482 mv "$ac_tmp/config.h" "$ac_file" \
13483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13484 fi
13485 else
13486 $as_echo "/* $configure_input */" \
13487 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13488 || as_fn_error $? "could not create -" "$LINENO" 5
13489 fi
13490 # Compute "$ac_file"'s index in $config_headers.
13491 _am_arg="$ac_file"
13492 _am_stamp_count=1
13493 for _am_header in $config_headers :; do
13494 case $_am_header in
13495 $_am_arg | $_am_arg:* )
13496 break ;;
13497 * )
13498 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13499 esac
13500 done
13501 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13502 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13503 X"$_am_arg" : 'X\(//\)[^/]' \| \
13504 X"$_am_arg" : 'X\(//\)$' \| \
13505 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13506 $as_echo X"$_am_arg" |
13507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13508 s//\1/
13509 q
13510 }
13511 /^X\(\/\/\)[^/].*/{
13512 s//\1/
13513 q
13514 }
13515 /^X\(\/\/\)$/{
13516 s//\1/
13517 q
13518 }
13519 /^X\(\/\).*/{
13520 s//\1/
13521 q
13522 }
13523 s/.*/./; q'`/stamp-h$_am_stamp_count
13524 ;;
13525
13526 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13527 $as_echo "$as_me: executing $ac_file commands" >&6;}
13528 ;;
13529 esac
13530
13531
13532 case $ac_file$ac_mode in
13533 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13534 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13535 # are listed without --file. Let's play safe and only enable the eval
13536 # if we detect the quoting.
13537 case $CONFIG_FILES in
13538 *\'*) eval set x "$CONFIG_FILES" ;;
13539 *) set x $CONFIG_FILES ;;
13540 esac
13541 shift
13542 for mf
13543 do
13544 # Strip MF so we end up with the name of the file.
13545 mf=`echo "$mf" | sed -e 's/:.*$//'`
13546 # Check whether this is an Automake generated Makefile or not.
13547 # We used to match only the files named `Makefile.in', but
13548 # some people rename them; so instead we look at the file content.
13549 # Grep'ing the first line is not enough: some people post-process
13550 # each Makefile.in and add a new line on top of each file to say so.
13551 # Grep'ing the whole file is not good either: AIX grep has a line
13552 # limit of 2048, but all sed's we know have understand at least 4000.
13553 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13554 dirpart=`$as_dirname -- "$mf" ||
13555 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13556 X"$mf" : 'X\(//\)[^/]' \| \
13557 X"$mf" : 'X\(//\)$' \| \
13558 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13559 $as_echo X"$mf" |
13560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13561 s//\1/
13562 q
13563 }
13564 /^X\(\/\/\)[^/].*/{
13565 s//\1/
13566 q
13567 }
13568 /^X\(\/\/\)$/{
13569 s//\1/
13570 q
13571 }
13572 /^X\(\/\).*/{
13573 s//\1/
13574 q
13575 }
13576 s/.*/./; q'`
13577 else
13578 continue
13579 fi
13580 # Extract the definition of DEPDIR, am__include, and am__quote
13581 # from the Makefile without running `make'.
13582 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13583 test -z "$DEPDIR" && continue
13584 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13585 test -z "am__include" && continue
13586 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13587 # When using ansi2knr, U may be empty or an underscore; expand it
13588 U=`sed -n 's/^U = //p' < "$mf"`
13589 # Find all dependency output files, they are included files with
13590 # $(DEPDIR) in their names. We invoke sed twice because it is the
13591 # simplest approach to changing $(DEPDIR) to its actual value in the
13592 # expansion.
13593 for file in `sed -n "
13594 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13595 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13596 # Make sure the directory exists.
13597 test -f "$dirpart/$file" && continue
13598 fdir=`$as_dirname -- "$file" ||
13599 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13600 X"$file" : 'X\(//\)[^/]' \| \
13601 X"$file" : 'X\(//\)$' \| \
13602 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13603 $as_echo X"$file" |
13604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13605 s//\1/
13606 q
13607 }
13608 /^X\(\/\/\)[^/].*/{
13609 s//\1/
13610 q
13611 }
13612 /^X\(\/\/\)$/{
13613 s//\1/
13614 q
13615 }
13616 /^X\(\/\).*/{
13617 s//\1/
13618 q
13619 }
13620 s/.*/./; q'`
13621 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13622 # echo "creating $dirpart/$file"
13623 echo '# dummy' > "$dirpart/$file"
13624 done
13625 done
13626 }
13627 ;;
13628 "libtool":C)
13629
13630 # See if we are running on zsh, and set the options which allow our
13631 # commands through without removal of \ escapes.
13632 if test -n "${ZSH_VERSION+set}" ; then
13633 setopt NO_GLOB_SUBST
13634 fi
13635
13636 cfgfile="${ofile}T"
13637 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13638 $RM "$cfgfile"
13639
13640 cat <<_LT_EOF >> "$cfgfile"
13641 #! $SHELL
13642
13643 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13644 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13646 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13647 #
13648 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13649 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13650 # Inc.
13651 # Written by Gordon Matzigkeit, 1996
13652 #
13653 # This file is part of GNU Libtool.
13654 #
13655 # GNU Libtool is free software; you can redistribute it and/or
13656 # modify it under the terms of the GNU General Public License as
13657 # published by the Free Software Foundation; either version 2 of
13658 # the License, or (at your option) any later version.
13659 #
13660 # As a special exception to the GNU General Public License,
13661 # if you distribute this file as part of a program or library that
13662 # is built using GNU Libtool, you may include this file under the
13663 # same distribution terms that you use for the rest of that program.
13664 #
13665 # GNU Libtool is distributed in the hope that it will be useful,
13666 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13667 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13668 # GNU General Public License for more details.
13669 #
13670 # You should have received a copy of the GNU General Public License
13671 # along with GNU Libtool; see the file COPYING. If not, a copy
13672 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13673 # obtained by writing to the Free Software Foundation, Inc.,
13674 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13675
13676
13677 # The names of the tagged configurations supported by this script.
13678 available_tags=""
13679
13680 # ### BEGIN LIBTOOL CONFIG
13681
13682 # Which release of libtool.m4 was used?
13683 macro_version=$macro_version
13684 macro_revision=$macro_revision
13685
13686 # Whether or not to build shared libraries.
13687 build_libtool_libs=$enable_shared
13688
13689 # Whether or not to build static libraries.
13690 build_old_libs=$enable_static
13691
13692 # What type of objects to build.
13693 pic_mode=$pic_mode
13694
13695 # Whether or not to optimize for fast installation.
13696 fast_install=$enable_fast_install
13697
13698 # Shell to use when invoking shell scripts.
13699 SHELL=$lt_SHELL
13700
13701 # An echo program that protects backslashes.
13702 ECHO=$lt_ECHO
13703
13704 # The host system.
13705 host_alias=$host_alias
13706 host=$host
13707 host_os=$host_os
13708
13709 # The build system.
13710 build_alias=$build_alias
13711 build=$build
13712 build_os=$build_os
13713
13714 # A sed program that does not truncate output.
13715 SED=$lt_SED
13716
13717 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13718 Xsed="\$SED -e 1s/^X//"
13719
13720 # A grep program that handles long lines.
13721 GREP=$lt_GREP
13722
13723 # An ERE matcher.
13724 EGREP=$lt_EGREP
13725
13726 # A literal string matcher.
13727 FGREP=$lt_FGREP
13728
13729 # A BSD- or MS-compatible name lister.
13730 NM=$lt_NM
13731
13732 # Whether we need soft or hard links.
13733 LN_S=$lt_LN_S
13734
13735 # What is the maximum length of a command?
13736 max_cmd_len=$max_cmd_len
13737
13738 # Object file suffix (normally "o").
13739 objext=$ac_objext
13740
13741 # Executable file suffix (normally "").
13742 exeext=$exeext
13743
13744 # whether the shell understands "unset".
13745 lt_unset=$lt_unset
13746
13747 # turn spaces into newlines.
13748 SP2NL=$lt_lt_SP2NL
13749
13750 # turn newlines into spaces.
13751 NL2SP=$lt_lt_NL2SP
13752
13753 # convert \$build file names to \$host format.
13754 to_host_file_cmd=$lt_cv_to_host_file_cmd
13755
13756 # convert \$build files to toolchain format.
13757 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13758
13759 # An object symbol dumper.
13760 OBJDUMP=$lt_OBJDUMP
13761
13762 # Method to check whether dependent libraries are shared objects.
13763 deplibs_check_method=$lt_deplibs_check_method
13764
13765 # Command to use when deplibs_check_method = "file_magic".
13766 file_magic_cmd=$lt_file_magic_cmd
13767
13768 # How to find potential files when deplibs_check_method = "file_magic".
13769 file_magic_glob=$lt_file_magic_glob
13770
13771 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13772 want_nocaseglob=$lt_want_nocaseglob
13773
13774 # DLL creation program.
13775 DLLTOOL=$lt_DLLTOOL
13776
13777 # Command to associate shared and link libraries.
13778 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13779
13780 # The archiver.
13781 AR=$lt_AR
13782
13783 # Flags to create an archive.
13784 AR_FLAGS=$lt_AR_FLAGS
13785
13786 # How to feed a file listing to the archiver.
13787 archiver_list_spec=$lt_archiver_list_spec
13788
13789 # A symbol stripping program.
13790 STRIP=$lt_STRIP
13791
13792 # Commands used to install an old-style archive.
13793 RANLIB=$lt_RANLIB
13794 old_postinstall_cmds=$lt_old_postinstall_cmds
13795 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13796
13797 # Whether to use a lock for old archive extraction.
13798 lock_old_archive_extraction=$lock_old_archive_extraction
13799
13800 # A C compiler.
13801 LTCC=$lt_CC
13802
13803 # LTCC compiler flags.
13804 LTCFLAGS=$lt_CFLAGS
13805
13806 # Take the output of nm and produce a listing of raw symbols and C names.
13807 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13808
13809 # Transform the output of nm in a proper C declaration.
13810 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13811
13812 # Transform the output of nm in a C name address pair.
13813 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13814
13815 # Transform the output of nm in a C name address pair when lib prefix is needed.
13816 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13817
13818 # Specify filename containing input files for \$NM.
13819 nm_file_list_spec=$lt_nm_file_list_spec
13820
13821 # The root where to search for dependent libraries,and in which our libraries should be installed.
13822 lt_sysroot=$lt_sysroot
13823
13824 # The name of the directory that contains temporary libtool files.
13825 objdir=$objdir
13826
13827 # Used to examine libraries when file_magic_cmd begins with "file".
13828 MAGIC_CMD=$MAGIC_CMD
13829
13830 # Must we lock files when doing compilation?
13831 need_locks=$lt_need_locks
13832
13833 # Manifest tool.
13834 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13835
13836 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13837 DSYMUTIL=$lt_DSYMUTIL
13838
13839 # Tool to change global to local symbols on Mac OS X.
13840 NMEDIT=$lt_NMEDIT
13841
13842 # Tool to manipulate fat objects and archives on Mac OS X.
13843 LIPO=$lt_LIPO
13844
13845 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13846 OTOOL=$lt_OTOOL
13847
13848 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13849 OTOOL64=$lt_OTOOL64
13850
13851 # Old archive suffix (normally "a").
13852 libext=$libext
13853
13854 # Shared library suffix (normally ".so").
13855 shrext_cmds=$lt_shrext_cmds
13856
13857 # The commands to extract the exported symbol list from a shared archive.
13858 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13859
13860 # Variables whose values should be saved in libtool wrapper scripts and
13861 # restored at link time.
13862 variables_saved_for_relink=$lt_variables_saved_for_relink
13863
13864 # Do we need the "lib" prefix for modules?
13865 need_lib_prefix=$need_lib_prefix
13866
13867 # Do we need a version for libraries?
13868 need_version=$need_version
13869
13870 # Library versioning type.
13871 version_type=$version_type
13872
13873 # Shared library runtime path variable.
13874 runpath_var=$runpath_var
13875
13876 # Shared library path variable.
13877 shlibpath_var=$shlibpath_var
13878
13879 # Is shlibpath searched before the hard-coded library search path?
13880 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13881
13882 # Format of library name prefix.
13883 libname_spec=$lt_libname_spec
13884
13885 # List of archive names. First name is the real one, the rest are links.
13886 # The last name is the one that the linker finds with -lNAME
13887 library_names_spec=$lt_library_names_spec
13888
13889 # The coded name of the library, if different from the real name.
13890 soname_spec=$lt_soname_spec
13891
13892 # Permission mode override for installation of shared libraries.
13893 install_override_mode=$lt_install_override_mode
13894
13895 # Command to use after installation of a shared archive.
13896 postinstall_cmds=$lt_postinstall_cmds
13897
13898 # Command to use after uninstallation of a shared archive.
13899 postuninstall_cmds=$lt_postuninstall_cmds
13900
13901 # Commands used to finish a libtool library installation in a directory.
13902 finish_cmds=$lt_finish_cmds
13903
13904 # As "finish_cmds", except a single script fragment to be evaled but
13905 # not shown.
13906 finish_eval=$lt_finish_eval
13907
13908 # Whether we should hardcode library paths into libraries.
13909 hardcode_into_libs=$hardcode_into_libs
13910
13911 # Compile-time system search path for libraries.
13912 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13913
13914 # Run-time system search path for libraries.
13915 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13916
13917 # Whether dlopen is supported.
13918 dlopen_support=$enable_dlopen
13919
13920 # Whether dlopen of programs is supported.
13921 dlopen_self=$enable_dlopen_self
13922
13923 # Whether dlopen of statically linked programs is supported.
13924 dlopen_self_static=$enable_dlopen_self_static
13925
13926 # Commands to strip libraries.
13927 old_striplib=$lt_old_striplib
13928 striplib=$lt_striplib
13929
13930
13931 # The linker used to build libraries.
13932 LD=$lt_LD
13933
13934 # How to create reloadable object files.
13935 reload_flag=$lt_reload_flag
13936 reload_cmds=$lt_reload_cmds
13937
13938 # Commands used to build an old-style archive.
13939 old_archive_cmds=$lt_old_archive_cmds
13940
13941 # A language specific compiler.
13942 CC=$lt_compiler
13943
13944 # Is the compiler the GNU compiler?
13945 with_gcc=$GCC
13946
13947 # Compiler flag to turn off builtin functions.
13948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13949
13950 # Additional compiler flags for building library objects.
13951 pic_flag=$lt_lt_prog_compiler_pic
13952
13953 # How to pass a linker flag through the compiler.
13954 wl=$lt_lt_prog_compiler_wl
13955
13956 # Compiler flag to prevent dynamic linking.
13957 link_static_flag=$lt_lt_prog_compiler_static
13958
13959 # Does compiler simultaneously support -c and -o options?
13960 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13961
13962 # Whether or not to add -lc for building shared libraries.
13963 build_libtool_need_lc=$archive_cmds_need_lc
13964
13965 # Whether or not to disallow shared libs when runtime libs are static.
13966 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13967
13968 # Compiler flag to allow reflexive dlopens.
13969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13970
13971 # Compiler flag to generate shared objects directly from archives.
13972 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13973
13974 # Whether the compiler copes with passing no objects directly.
13975 compiler_needs_object=$lt_compiler_needs_object
13976
13977 # Create an old-style archive from a shared archive.
13978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13979
13980 # Create a temporary old-style archive to link instead of a shared archive.
13981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13982
13983 # Commands used to build a shared archive.
13984 archive_cmds=$lt_archive_cmds
13985 archive_expsym_cmds=$lt_archive_expsym_cmds
13986
13987 # Commands used to build a loadable module if different from building
13988 # a shared archive.
13989 module_cmds=$lt_module_cmds
13990 module_expsym_cmds=$lt_module_expsym_cmds
13991
13992 # Whether we are building with GNU ld or not.
13993 with_gnu_ld=$lt_with_gnu_ld
13994
13995 # Flag that allows shared libraries with undefined symbols to be built.
13996 allow_undefined_flag=$lt_allow_undefined_flag
13997
13998 # Flag that enforces no undefined symbols.
13999 no_undefined_flag=$lt_no_undefined_flag
14000
14001 # Flag to hardcode \$libdir into a binary during linking.
14002 # This must work even if \$libdir does not exist
14003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14004
14005 # If ld is used when linking, flag to hardcode \$libdir into a binary
14006 # during linking. This must work even if \$libdir does not exist.
14007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14008
14009 # Whether we need a single "-rpath" flag with a separated argument.
14010 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14011
14012 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14013 # DIR into the resulting binary.
14014 hardcode_direct=$hardcode_direct
14015
14016 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14017 # DIR into the resulting binary and the resulting library dependency is
14018 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14019 # library is relocated.
14020 hardcode_direct_absolute=$hardcode_direct_absolute
14021
14022 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14023 # into the resulting binary.
14024 hardcode_minus_L=$hardcode_minus_L
14025
14026 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14027 # into the resulting binary.
14028 hardcode_shlibpath_var=$hardcode_shlibpath_var
14029
14030 # Set to "yes" if building a shared library automatically hardcodes DIR
14031 # into the library and all subsequent libraries and executables linked
14032 # against it.
14033 hardcode_automatic=$hardcode_automatic
14034
14035 # Set to yes if linker adds runtime paths of dependent libraries
14036 # to runtime path list.
14037 inherit_rpath=$inherit_rpath
14038
14039 # Whether libtool must link a program against all its dependency libraries.
14040 link_all_deplibs=$link_all_deplibs
14041
14042 # Set to "yes" if exported symbols are required.
14043 always_export_symbols=$always_export_symbols
14044
14045 # The commands to list exported symbols.
14046 export_symbols_cmds=$lt_export_symbols_cmds
14047
14048 # Symbols that should not be listed in the preloaded symbols.
14049 exclude_expsyms=$lt_exclude_expsyms
14050
14051 # Symbols that must always be exported.
14052 include_expsyms=$lt_include_expsyms
14053
14054 # Commands necessary for linking programs (against libraries) with templates.
14055 prelink_cmds=$lt_prelink_cmds
14056
14057 # Commands necessary for finishing linking programs.
14058 postlink_cmds=$lt_postlink_cmds
14059
14060 # Specify filename containing input files.
14061 file_list_spec=$lt_file_list_spec
14062
14063 # How to hardcode a shared library path into an executable.
14064 hardcode_action=$hardcode_action
14065
14066 # ### END LIBTOOL CONFIG
14067
14068 _LT_EOF
14069
14070 case $host_os in
14071 aix3*)
14072 cat <<\_LT_EOF >> "$cfgfile"
14073 # AIX sometimes has problems with the GCC collect2 program. For some
14074 # reason, if we set the COLLECT_NAMES environment variable, the problems
14075 # vanish in a puff of smoke.
14076 if test "X${COLLECT_NAMES+set}" != Xset; then
14077 COLLECT_NAMES=
14078 export COLLECT_NAMES
14079 fi
14080 _LT_EOF
14081 ;;
14082 esac
14083
14084
14085 ltmain="$ac_aux_dir/ltmain.sh"
14086
14087
14088 # We use sed instead of cat because bash on DJGPP gets confused if
14089 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14090 # text mode, it properly converts lines to CR/LF. This bash problem
14091 # is reportedly fixed, but why not run on old versions too?
14092 sed '$q' "$ltmain" >> "$cfgfile" \
14093 || (rm -f "$cfgfile"; exit 1)
14094
14095 if test x"$xsi_shell" = xyes; then
14096 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14097 func_dirname ()\
14098 {\
14099 \ case ${1} in\
14100 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14101 \ * ) func_dirname_result="${3}" ;;\
14102 \ esac\
14103 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14104 && mv -f "$cfgfile.tmp" "$cfgfile" \
14105 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14106 test 0 -eq $? || _lt_function_replace_fail=:
14107
14108
14109 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14110 func_basename ()\
14111 {\
14112 \ func_basename_result="${1##*/}"\
14113 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14114 && mv -f "$cfgfile.tmp" "$cfgfile" \
14115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14116 test 0 -eq $? || _lt_function_replace_fail=:
14117
14118
14119 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14120 func_dirname_and_basename ()\
14121 {\
14122 \ case ${1} in\
14123 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14124 \ * ) func_dirname_result="${3}" ;;\
14125 \ esac\
14126 \ func_basename_result="${1##*/}"\
14127 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14128 && mv -f "$cfgfile.tmp" "$cfgfile" \
14129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14130 test 0 -eq $? || _lt_function_replace_fail=:
14131
14132
14133 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14134 func_stripname ()\
14135 {\
14136 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14137 \ # positional parameters, so assign one to ordinary parameter first.\
14138 \ func_stripname_result=${3}\
14139 \ func_stripname_result=${func_stripname_result#"${1}"}\
14140 \ func_stripname_result=${func_stripname_result%"${2}"}\
14141 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14142 && mv -f "$cfgfile.tmp" "$cfgfile" \
14143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14144 test 0 -eq $? || _lt_function_replace_fail=:
14145
14146
14147 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14148 func_split_long_opt ()\
14149 {\
14150 \ func_split_long_opt_name=${1%%=*}\
14151 \ func_split_long_opt_arg=${1#*=}\
14152 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14153 && mv -f "$cfgfile.tmp" "$cfgfile" \
14154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14155 test 0 -eq $? || _lt_function_replace_fail=:
14156
14157
14158 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14159 func_split_short_opt ()\
14160 {\
14161 \ func_split_short_opt_arg=${1#??}\
14162 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14163 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14164 && mv -f "$cfgfile.tmp" "$cfgfile" \
14165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14166 test 0 -eq $? || _lt_function_replace_fail=:
14167
14168
14169 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14170 func_lo2o ()\
14171 {\
14172 \ case ${1} in\
14173 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14174 \ *) func_lo2o_result=${1} ;;\
14175 \ esac\
14176 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14177 && mv -f "$cfgfile.tmp" "$cfgfile" \
14178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14179 test 0 -eq $? || _lt_function_replace_fail=:
14180
14181
14182 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14183 func_xform ()\
14184 {\
14185 func_xform_result=${1%.*}.lo\
14186 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14187 && mv -f "$cfgfile.tmp" "$cfgfile" \
14188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14189 test 0 -eq $? || _lt_function_replace_fail=:
14190
14191
14192 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14193 func_arith ()\
14194 {\
14195 func_arith_result=$(( $* ))\
14196 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14197 && mv -f "$cfgfile.tmp" "$cfgfile" \
14198 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14199 test 0 -eq $? || _lt_function_replace_fail=:
14200
14201
14202 sed -e '/^func_len ()$/,/^} # func_len /c\
14203 func_len ()\
14204 {\
14205 func_len_result=${#1}\
14206 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14207 && mv -f "$cfgfile.tmp" "$cfgfile" \
14208 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14209 test 0 -eq $? || _lt_function_replace_fail=:
14210
14211 fi
14212
14213 if test x"$lt_shell_append" = xyes; then
14214 sed -e '/^func_append ()$/,/^} # func_append /c\
14215 func_append ()\
14216 {\
14217 eval "${1}+=\\${2}"\
14218 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14219 && mv -f "$cfgfile.tmp" "$cfgfile" \
14220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14221 test 0 -eq $? || _lt_function_replace_fail=:
14222
14223
14224 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14225 func_append_quoted ()\
14226 {\
14227 \ func_quote_for_eval "${2}"\
14228 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14229 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14230 && mv -f "$cfgfile.tmp" "$cfgfile" \
14231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14232 test 0 -eq $? || _lt_function_replace_fail=:
14233
14234
14235 # Save a `func_append' function call where possible by direct use of '+='
14236 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14237 && mv -f "$cfgfile.tmp" "$cfgfile" \
14238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14239 test 0 -eq $? || _lt_function_replace_fail=:
14240 else
14241 # Save a `func_append' function call even when '+=' is not available
14242 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14243 && mv -f "$cfgfile.tmp" "$cfgfile" \
14244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14245 test 0 -eq $? || _lt_function_replace_fail=:
14246 fi
14247
14248 if test x"$_lt_function_replace_fail" = x":"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14250 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14251 fi
14252
14253
14254 mv -f "$cfgfile" "$ofile" ||
14255 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14256 chmod +x "$ofile"
14257
14258 ;;
14259
14260 esac
14261 done # for ac_tag
14262
14263
14264 as_fn_exit 0
14265 _ACEOF
14266 ac_clean_files=$ac_clean_files_save
14267
14268 test $ac_write_fail = 0 ||
14269 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14270
14271
14272 # configure is writing to config.log, and then calls config.status.
14273 # config.status does its own redirection, appending to config.log.
14274 # Unfortunately, on DOS this fails, as config.log is still kept open
14275 # by configure, so config.status won't be able to write to it; its
14276 # output is simply discarded. So we exec the FD to /dev/null,
14277 # effectively closing config.log, so it can be properly (re)opened and
14278 # appended to by config.status. When coming back to configure, we
14279 # need to make the FD available again.
14280 if test "$no_create" != yes; then
14281 ac_cs_success=:
14282 ac_config_status_args=
14283 test "$silent" = yes &&
14284 ac_config_status_args="$ac_config_status_args --quiet"
14285 exec 5>/dev/null
14286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14287 exec 5>>config.log
14288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14289 # would make configure fail if this is the last instruction.
14290 $ac_cs_success || as_fn_exit 1
14291 fi
14292 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14294 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14295 fi
14296
14297