configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXinerama 1.1.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 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='libXinerama'
573 PACKAGE_TARNAME='libXinerama'
574 PACKAGE_VERSION='1.1.1'
575 PACKAGE_STRING='libXinerama 1.1.1'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 XTMALLOC_ZERO_CFLAGS
620 XMALLOC_ZERO_CFLAGS
621 MALLOC_ZERO_CFLAGS
622 LINT_FALSE
623 LINT_TRUE
624 LINT_FLAGS
625 LINT
626 XINERAMA_LIBS
627 XINERAMA_CFLAGS
628 OTOOL64
629 OTOOL
630 LIPO
631 NMEDIT
632 DSYMUTIL
633 RANLIB
634 AR
635 OBJDUMP
636 LN_S
637 NM
638 ac_ct_DUMPBIN
639 DUMPBIN
640 LD
641 FGREP
642 LIBTOOL
643 AM_BACKSLASH
644 AM_DEFAULT_VERBOSITY
645 MAN_SUBSTS
646 XORG_MAN_PAGE
647 ADMIN_MAN_DIR
648 DRIVER_MAN_DIR
649 MISC_MAN_DIR
650 FILE_MAN_DIR
651 LIB_MAN_DIR
652 APP_MAN_DIR
653 ADMIN_MAN_SUFFIX
654 DRIVER_MAN_SUFFIX
655 MISC_MAN_SUFFIX
656 FILE_MAN_SUFFIX
657 LIB_MAN_SUFFIX
658 APP_MAN_SUFFIX
659 SED
660 host_os
661 host_vendor
662 host_cpu
663 host
664 build_os
665 build_vendor
666 build_cpu
667 build
668 INSTALL_CMD
669 PKG_CONFIG
670 CHANGELOG_CMD
671 CWARNFLAGS
672 EGREP
673 GREP
674 CPP
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 MAINT
692 MAINTAINER_MODE_FALSE
693 MAINTAINER_MODE_TRUE
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_maintainer_mode
759 enable_dependency_tracking
760 enable_strict_compilation
761 enable_silent_rules
762 enable_shared
763 enable_static
764 with_pic
765 enable_fast_install
766 with_gnu_ld
767 enable_libtool_lock
768 with_lint
769 enable_malloc0returnsnull
770 '
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CPP
780 PKG_CONFIG
781 XINERAMA_CFLAGS
782 XINERAMA_LIBS
783 LINT
784 LINT_FLAGS'
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 libXinerama 1.1.1 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/libXinerama]
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 libXinerama 1.1.1:";;
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 --disable-dependency-tracking speeds up one-time build
1408 --enable-dependency-tracking do not reject slow dependency extractors
1409 --enable-strict-compilation
1410 Enable all warnings from compiler and make them
1411 errors (default: disabled)
1412 --enable-silent-rules less verbose build output (undo: `make V=1')
1413 --disable-silent-rules verbose build output (undo: `make V=0')
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
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-lint Use a lint-style source code checker (default:
1429 disabled)
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 XINERAMA_CFLAGS
1442 C compiler flags for XINERAMA, overriding pkg-config
1443 XINERAMA_LIBS
1444 linker flags for XINERAMA, overriding pkg-config
1445 LINT Path to a lint-style command
1446 LINT_FLAGS Flags for the lint-style command
1447
1448 Use these variables to override the choices made by `configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1450
1451 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1452 _ACEOF
1453 ac_status=$?
1454 fi
1455
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
1462 ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481 .) # We are building in place.
1482 ac_srcdir=.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1504 else
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1508 done
1509 fi
1510
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513 cat <<\_ACEOF
1514 libXinerama configure 1.1.1
1515 generated by GNU Autoconf 2.68
1516
1517 Copyright (C) 2010 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521 exit
1522 fi
1523
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1527
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1532 {
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1548 fi
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1554 ac_retval=0
1555 else
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559 ac_retval=1
1560 fi
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562 as_fn_set_status $ac_retval
1563
1564 } # ac_fn_c_try_compile
1565
1566 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1567 # ---------------------------------------------
1568 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1569 # accordingly.
1570 ac_fn_c_check_decl ()
1571 {
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 as_decl_name=`echo $2|sed 's/ *(.*//'`
1574 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1576 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1577 if eval \${$3+:} false; then :
1578 $as_echo_n "(cached) " >&6
1579 else
1580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581 /* end confdefs.h. */
1582 $4
1583 int
1584 main ()
1585 {
1586 #ifndef $as_decl_name
1587 #ifdef __cplusplus
1588 (void) $as_decl_use;
1589 #else
1590 (void) $as_decl_name;
1591 #endif
1592 #endif
1593
1594 ;
1595 return 0;
1596 }
1597 _ACEOF
1598 if ac_fn_c_try_compile "$LINENO"; then :
1599 eval "$3=yes"
1600 else
1601 eval "$3=no"
1602 fi
1603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604 fi
1605 eval ac_res=\$$3
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1607 $as_echo "$ac_res" >&6; }
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609
1610 } # ac_fn_c_check_decl
1611
1612 # ac_fn_c_try_cpp LINENO
1613 # ----------------------
1614 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_cpp ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_cpp conftest.$ac_ext"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } > conftest.i && {
1634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 }; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_cpp
1648
1649 # ac_fn_c_try_run LINENO
1650 # ----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1652 # that executables *can* be run.
1653 ac_fn_c_try_run ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>&5
1664 ac_status=$?
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1667 { { case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_try") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; }; }; then :
1677 ac_retval=0
1678 else
1679 $as_echo "$as_me: program exited with status $ac_status" >&5
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=$ac_status
1684 fi
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_run
1690
1691 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1692 # -------------------------------------------------------
1693 # Tests whether HEADER exists and can be compiled using the include files in
1694 # INCLUDES, setting the cache variable VAR accordingly.
1695 ac_fn_c_check_header_compile ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1702 else
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1705 $4
1706 #include <$2>
1707 _ACEOF
1708 if ac_fn_c_try_compile "$LINENO"; then :
1709 eval "$3=yes"
1710 else
1711 eval "$3=no"
1712 fi
1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 fi
1715 eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720 } # ac_fn_c_check_header_compile
1721
1722 # ac_fn_c_try_link LINENO
1723 # -----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_link ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext conftest$ac_exeext
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest$ac_exeext && {
1748 test "$cross_compiling" = yes ||
1749 $as_test_x conftest$ac_exeext
1750 }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757 fi
1758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760 # interfere with the next link command; also delete a directory that is
1761 # left behind by Apple's compiler. We do this before executing the actions.
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_link
1767
1768 # ac_fn_c_check_func LINENO FUNC VAR
1769 # ----------------------------------
1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1771 ac_fn_c_check_func ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783 #define $2 innocuous_$2
1784
1785 /* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1789
1790 #ifdef __STDC__
1791 # include <limits.h>
1792 #else
1793 # include <assert.h>
1794 #endif
1795
1796 #undef $2
1797
1798 /* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801 #ifdef __cplusplus
1802 extern "C"
1803 #endif
1804 char $2 ();
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined __stub_$2 || defined __stub___$2
1809 choke me
1810 #endif
1811
1812 int
1813 main ()
1814 {
1815 return $2 ();
1816 ;
1817 return 0;
1818 }
1819 _ACEOF
1820 if ac_fn_c_try_link "$LINENO"; then :
1821 eval "$3=yes"
1822 else
1823 eval "$3=no"
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext \
1826 conftest$ac_exeext conftest.$ac_ext
1827 fi
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833 } # ac_fn_c_check_func
1834 cat >config.log <<_ACEOF
1835 This file contains any messages produced by compilers while
1836 running configure, to aid debugging if configure makes a mistake.
1837
1838 It was created by libXinerama $as_me 1.1.1, which was
1839 generated by GNU Autoconf 2.68. Invocation command line was
1840
1841 $ $0 $@
1842
1843 _ACEOF
1844 exec 5>>config.log
1845 {
1846 cat <<_ASUNAME
1847 ## --------- ##
1848 ## Platform. ##
1849 ## --------- ##
1850
1851 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1852 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1853 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1854 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1855 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1856
1857 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1858 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1859
1860 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1861 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1862 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1863 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1864 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1865 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1866 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1867
1868 _ASUNAME
1869
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 $as_echo "PATH: $as_dir"
1876 done
1877 IFS=$as_save_IFS
1878
1879 } >&5
1880
1881 cat >&5 <<_ACEOF
1882
1883
1884 ## ----------- ##
1885 ## Core tests. ##
1886 ## ----------- ##
1887
1888 _ACEOF
1889
1890
1891 # Keep a trace of the command line.
1892 # Strip out --no-create and --no-recursion so they do not pile up.
1893 # Strip out --silent because we don't want to record it for future runs.
1894 # Also quote any args containing shell meta-characters.
1895 # Make two passes to allow for proper duplicate-argument suppression.
1896 ac_configure_args=
1897 ac_configure_args0=
1898 ac_configure_args1=
1899 ac_must_keep_next=false
1900 for ac_pass in 1 2
1901 do
1902 for ac_arg
1903 do
1904 case $ac_arg in
1905 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1906 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1907 | -silent | --silent | --silen | --sile | --sil)
1908 continue ;;
1909 *\'*)
1910 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1911 esac
1912 case $ac_pass in
1913 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1914 2)
1915 as_fn_append ac_configure_args1 " '$ac_arg'"
1916 if test $ac_must_keep_next = true; then
1917 ac_must_keep_next=false # Got value, back to normal.
1918 else
1919 case $ac_arg in
1920 *=* | --config-cache | -C | -disable-* | --disable-* \
1921 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1922 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1923 | -with-* | --with-* | -without-* | --without-* | --x)
1924 case "$ac_configure_args0 " in
1925 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1926 esac
1927 ;;
1928 -* ) ac_must_keep_next=true ;;
1929 esac
1930 fi
1931 as_fn_append ac_configure_args " '$ac_arg'"
1932 ;;
1933 esac
1934 done
1935 done
1936 { ac_configure_args0=; unset ac_configure_args0;}
1937 { ac_configure_args1=; unset ac_configure_args1;}
1938
1939 # When interrupted or exit'd, cleanup temporary files, and complete
1940 # config.log. We remove comments because anyway the quotes in there
1941 # would cause problems or look ugly.
1942 # WARNING: Use '\'' to represent an apostrophe within the trap.
1943 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1944 trap 'exit_status=$?
1945 # Save into config.log some information that might help in debugging.
1946 {
1947 echo
1948
1949 $as_echo "## ---------------- ##
1950 ## Cache variables. ##
1951 ## ---------------- ##"
1952 echo
1953 # The following way of writing the cache mishandles newlines in values,
1954 (
1955 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1956 eval ac_val=\$$ac_var
1957 case $ac_val in #(
1958 *${as_nl}*)
1959 case $ac_var in #(
1960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1962 esac
1963 case $ac_var in #(
1964 _ | IFS | as_nl) ;; #(
1965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1966 *) { eval $ac_var=; unset $ac_var;} ;;
1967 esac ;;
1968 esac
1969 done
1970 (set) 2>&1 |
1971 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1972 *${as_nl}ac_space=\ *)
1973 sed -n \
1974 "s/'\''/'\''\\\\'\'''\''/g;
1975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1976 ;; #(
1977 *)
1978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1979 ;;
1980 esac |
1981 sort
1982 )
1983 echo
1984
1985 $as_echo "## ----------------- ##
1986 ## Output variables. ##
1987 ## ----------------- ##"
1988 echo
1989 for ac_var in $ac_subst_vars
1990 do
1991 eval ac_val=\$$ac_var
1992 case $ac_val in
1993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 esac
1995 $as_echo "$ac_var='\''$ac_val'\''"
1996 done | sort
1997 echo
1998
1999 if test -n "$ac_subst_files"; then
2000 $as_echo "## ------------------- ##
2001 ## File substitutions. ##
2002 ## ------------------- ##"
2003 echo
2004 for ac_var in $ac_subst_files
2005 do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in
2008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009 esac
2010 $as_echo "$ac_var='\''$ac_val'\''"
2011 done | sort
2012 echo
2013 fi
2014
2015 if test -s confdefs.h; then
2016 $as_echo "## ----------- ##
2017 ## confdefs.h. ##
2018 ## ----------- ##"
2019 echo
2020 cat confdefs.h
2021 echo
2022 fi
2023 test "$ac_signal" != 0 &&
2024 $as_echo "$as_me: caught signal $ac_signal"
2025 $as_echo "$as_me: exit $exit_status"
2026 } >&5
2027 rm -f core *.core core.conftest.* &&
2028 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2029 exit $exit_status
2030 ' 0
2031 for ac_signal in 1 2 13 15; do
2032 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2033 done
2034 ac_signal=0
2035
2036 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2037 rm -f -r conftest* confdefs.h
2038
2039 $as_echo "/* confdefs.h */" > confdefs.h
2040
2041 # Predefined preprocessor variables.
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_NAME "$PACKAGE_NAME"
2045 _ACEOF
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2049 _ACEOF
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2053 _ACEOF
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_STRING "$PACKAGE_STRING"
2057 _ACEOF
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_URL "$PACKAGE_URL"
2065 _ACEOF
2066
2067
2068 # Let the site file select an alternate cache file if it wants to.
2069 # Prefer an explicitly selected file to automatically selected ones.
2070 ac_site_file1=NONE
2071 ac_site_file2=NONE
2072 if test -n "$CONFIG_SITE"; then
2073 # We do not want a PATH search for config.site.
2074 case $CONFIG_SITE in #((
2075 -*) ac_site_file1=./$CONFIG_SITE;;
2076 */*) ac_site_file1=$CONFIG_SITE;;
2077 *) ac_site_file1=./$CONFIG_SITE;;
2078 esac
2079 elif test "x$prefix" != xNONE; then
2080 ac_site_file1=$prefix/share/config.site
2081 ac_site_file2=$prefix/etc/config.site
2082 else
2083 ac_site_file1=$ac_default_prefix/share/config.site
2084 ac_site_file2=$ac_default_prefix/etc/config.site
2085 fi
2086 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2087 do
2088 test "x$ac_site_file" = xNONE && continue
2089 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2091 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2092 sed 's/^/| /' "$ac_site_file" >&5
2093 . "$ac_site_file" \
2094 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2096 as_fn_error $? "failed to load site script $ac_site_file
2097 See \`config.log' for more details" "$LINENO" 5; }
2098 fi
2099 done
2100
2101 if test -r "$cache_file"; then
2102 # Some versions of bash will fail to source /dev/null (special files
2103 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2104 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2106 $as_echo "$as_me: loading cache $cache_file" >&6;}
2107 case $cache_file in
2108 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2109 *) . "./$cache_file";;
2110 esac
2111 fi
2112 else
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2114 $as_echo "$as_me: creating cache $cache_file" >&6;}
2115 >$cache_file
2116 fi
2117
2118 # Check that the precious variables saved in the cache have kept the same
2119 # value.
2120 ac_cache_corrupted=false
2121 for ac_var in $ac_precious_vars; do
2122 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2123 eval ac_new_set=\$ac_env_${ac_var}_set
2124 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2125 eval ac_new_val=\$ac_env_${ac_var}_value
2126 case $ac_old_set,$ac_new_set in
2127 set,)
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2129 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2130 ac_cache_corrupted=: ;;
2131 ,set)
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2133 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2134 ac_cache_corrupted=: ;;
2135 ,);;
2136 *)
2137 if test "x$ac_old_val" != "x$ac_new_val"; then
2138 # differences in whitespace do not lead to failure.
2139 ac_old_val_w=`echo x $ac_old_val`
2140 ac_new_val_w=`echo x $ac_new_val`
2141 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2143 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2144 ac_cache_corrupted=:
2145 else
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2147 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2148 eval $ac_var=\$ac_old_val
2149 fi
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2151 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2153 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2154 fi;;
2155 esac
2156 # Pass precious variables to config.status.
2157 if test "$ac_new_set" = set; then
2158 case $ac_new_val in
2159 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2160 *) ac_arg=$ac_var=$ac_new_val ;;
2161 esac
2162 case " $ac_configure_args " in
2163 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2164 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2165 esac
2166 fi
2167 done
2168 if $ac_cache_corrupted; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2172 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2173 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2174 fi
2175 ## -------------------- ##
2176 ## Main body of script. ##
2177 ## -------------------- ##
2178
2179 ac_ext=c
2180 ac_cpp='$CPP $CPPFLAGS'
2181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184
2185
2186 am__api_version='1.11'
2187
2188 ac_aux_dir=
2189 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2190 if test -f "$ac_dir/install-sh"; then
2191 ac_aux_dir=$ac_dir
2192 ac_install_sh="$ac_aux_dir/install-sh -c"
2193 break
2194 elif test -f "$ac_dir/install.sh"; then
2195 ac_aux_dir=$ac_dir
2196 ac_install_sh="$ac_aux_dir/install.sh -c"
2197 break
2198 elif test -f "$ac_dir/shtool"; then
2199 ac_aux_dir=$ac_dir
2200 ac_install_sh="$ac_aux_dir/shtool install -c"
2201 break
2202 fi
2203 done
2204 if test -z "$ac_aux_dir"; then
2205 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2206 fi
2207
2208 # These three variables are undocumented and unsupported,
2209 # and are intended to be withdrawn in a future Autoconf release.
2210 # They can cause serious problems if a builder's source tree is in a directory
2211 # whose full name contains unusual characters.
2212 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2213 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2214 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2215
2216
2217 # Find a good install program. We prefer a C program (faster),
2218 # so one script is as good as another. But avoid the broken or
2219 # incompatible versions:
2220 # SysV /etc/install, /usr/sbin/install
2221 # SunOS /usr/etc/install
2222 # IRIX /sbin/install
2223 # AIX /bin/install
2224 # AmigaOS /C/install, which installs bootblocks on floppy discs
2225 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2226 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2227 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2228 # OS/2's system install, which has a completely different semantic
2229 # ./install, which can be erroneously created by make from ./install.sh.
2230 # Reject install programs that cannot install multiple files.
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2232 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2233 if test -z "$INSTALL"; then
2234 if ${ac_cv_path_install+:} false; then :
2235 $as_echo_n "(cached) " >&6
2236 else
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 # Account for people who put trailing slashes in PATH elements.
2243 case $as_dir/ in #((
2244 ./ | .// | /[cC]/* | \
2245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2246 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2247 /usr/ucb/* ) ;;
2248 *)
2249 # OSF1 and SCO ODT 3.0 have their own names for install.
2250 # Don't use installbsd from OSF since it installs stuff as root
2251 # by default.
2252 for ac_prog in ginstall scoinst install; do
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2255 if test $ac_prog = install &&
2256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2257 # AIX install. It has an incompatible calling convention.
2258 :
2259 elif test $ac_prog = install &&
2260 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2261 # program-specific install script used by HP pwplus--don't use.
2262 :
2263 else
2264 rm -rf conftest.one conftest.two conftest.dir
2265 echo one > conftest.one
2266 echo two > conftest.two
2267 mkdir conftest.dir
2268 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2269 test -s conftest.one && test -s conftest.two &&
2270 test -s conftest.dir/conftest.one &&
2271 test -s conftest.dir/conftest.two
2272 then
2273 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2274 break 3
2275 fi
2276 fi
2277 fi
2278 done
2279 done
2280 ;;
2281 esac
2282
2283 done
2284 IFS=$as_save_IFS
2285
2286 rm -rf conftest.one conftest.two conftest.dir
2287
2288 fi
2289 if test "${ac_cv_path_install+set}" = set; then
2290 INSTALL=$ac_cv_path_install
2291 else
2292 # As a last resort, use the slow shell script. Don't cache a
2293 # value for INSTALL within a source directory, because that will
2294 # break other packages using the cache if that directory is
2295 # removed, or if the value is a relative name.
2296 INSTALL=$ac_install_sh
2297 fi
2298 fi
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2300 $as_echo "$INSTALL" >&6; }
2301
2302 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2303 # It thinks the first close brace ends the variable substitution.
2304 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2305
2306 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2307
2308 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2309
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2311 $as_echo_n "checking whether build environment is sane... " >&6; }
2312 # Just in case
2313 sleep 1
2314 echo timestamp > conftest.file
2315 # Reject unsafe characters in $srcdir or the absolute working directory
2316 # name. Accept space and tab only in the latter.
2317 am_lf='
2318 '
2319 case `pwd` in
2320 *[\\\"\#\$\&\'\`$am_lf]*)
2321 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2322 esac
2323 case $srcdir in
2324 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2325 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2326 esac
2327
2328 # Do `set' in a subshell so we don't clobber the current shell's
2329 # arguments. Must try -L first in case configure is actually a
2330 # symlink; some systems play weird games with the mod time of symlinks
2331 # (eg FreeBSD returns the mod time of the symlink's containing
2332 # directory).
2333 if (
2334 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2335 if test "$*" = "X"; then
2336 # -L didn't work.
2337 set X `ls -t "$srcdir/configure" conftest.file`
2338 fi
2339 rm -f conftest.file
2340 if test "$*" != "X $srcdir/configure conftest.file" \
2341 && test "$*" != "X conftest.file $srcdir/configure"; then
2342
2343 # If neither matched, then we have a broken ls. This can happen
2344 # if, for instance, CONFIG_SHELL is bash and it inherits a
2345 # broken ls alias from the environment. This has actually
2346 # happened. Such a system could not be considered "sane".
2347 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2348 alias in your environment" "$LINENO" 5
2349 fi
2350
2351 test "$2" = conftest.file
2352 )
2353 then
2354 # Ok.
2355 :
2356 else
2357 as_fn_error $? "newly created file is older than distributed files!
2358 Check your system clock" "$LINENO" 5
2359 fi
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2361 $as_echo "yes" >&6; }
2362 test "$program_prefix" != NONE &&
2363 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2364 # Use a double $ so make ignores it.
2365 test "$program_suffix" != NONE &&
2366 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2367 # Double any \ or $.
2368 # By default was `s,x,x', remove it if useless.
2369 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2370 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2371
2372 # expand $ac_aux_dir to an absolute path
2373 am_aux_dir=`cd $ac_aux_dir && pwd`
2374
2375 if test x"${MISSING+set}" != xset; then
2376 case $am_aux_dir in
2377 *\ * | *\ *)
2378 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2379 *)
2380 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2381 esac
2382 fi
2383 # Use eval to expand $SHELL
2384 if eval "$MISSING --run true"; then
2385 am_missing_run="$MISSING --run "
2386 else
2387 am_missing_run=
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2389 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2390 fi
2391
2392 if test x"${install_sh}" != xset; then
2393 case $am_aux_dir in
2394 *\ * | *\ *)
2395 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2396 *)
2397 install_sh="\${SHELL} $am_aux_dir/install-sh"
2398 esac
2399 fi
2400
2401 # Installed binaries are usually stripped using `strip' when the user
2402 # run `make install-strip'. However `strip' might not be the right
2403 # tool to use in cross-compilation environments, therefore Automake
2404 # will honor the `STRIP' environment variable to overrule this program.
2405 if test "$cross_compiling" != no; then
2406 if test -n "$ac_tool_prefix"; then
2407 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2408 set dummy ${ac_tool_prefix}strip; ac_word=$2
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2410 $as_echo_n "checking for $ac_word... " >&6; }
2411 if ${ac_cv_prog_STRIP+:} false; then :
2412 $as_echo_n "(cached) " >&6
2413 else
2414 if test -n "$STRIP"; then
2415 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 break 2
2427 fi
2428 done
2429 done
2430 IFS=$as_save_IFS
2431
2432 fi
2433 fi
2434 STRIP=$ac_cv_prog_STRIP
2435 if test -n "$STRIP"; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2437 $as_echo "$STRIP" >&6; }
2438 else
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2440 $as_echo "no" >&6; }
2441 fi
2442
2443
2444 fi
2445 if test -z "$ac_cv_prog_STRIP"; then
2446 ac_ct_STRIP=$STRIP
2447 # Extract the first word of "strip", so it can be a program name with args.
2448 set dummy strip; ac_word=$2
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450 $as_echo_n "checking for $ac_word... " >&6; }
2451 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 if test -n "$ac_ct_STRIP"; then
2455 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464 ac_cv_prog_ac_ct_STRIP="strip"
2465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 break 2
2467 fi
2468 done
2469 done
2470 IFS=$as_save_IFS
2471
2472 fi
2473 fi
2474 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2475 if test -n "$ac_ct_STRIP"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2477 $as_echo "$ac_ct_STRIP" >&6; }
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480 $as_echo "no" >&6; }
2481 fi
2482
2483 if test "x$ac_ct_STRIP" = x; then
2484 STRIP=":"
2485 else
2486 case $cross_compiling:$ac_tool_warned in
2487 yes:)
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2490 ac_tool_warned=yes ;;
2491 esac
2492 STRIP=$ac_ct_STRIP
2493 fi
2494 else
2495 STRIP="$ac_cv_prog_STRIP"
2496 fi
2497
2498 fi
2499 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2500
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2502 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2503 if test -z "$MKDIR_P"; then
2504 if ${ac_cv_path_mkdir+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_prog in mkdir gmkdir; do
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2515 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2516 'mkdir (GNU coreutils) '* | \
2517 'mkdir (coreutils) '* | \
2518 'mkdir (fileutils) '4.1*)
2519 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2520 break 3;;
2521 esac
2522 done
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528
2529 test -d ./--version && rmdir ./--version
2530 if test "${ac_cv_path_mkdir+set}" = set; then
2531 MKDIR_P="$ac_cv_path_mkdir -p"
2532 else
2533 # As a last resort, use the slow shell script. Don't cache a
2534 # value for MKDIR_P within a source directory, because that will
2535 # break other packages using the cache if that directory is
2536 # removed, or if the value is a relative name.
2537 MKDIR_P="$ac_install_sh -d"
2538 fi
2539 fi
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2541 $as_echo "$MKDIR_P" >&6; }
2542
2543 mkdir_p="$MKDIR_P"
2544 case $mkdir_p in
2545 [\\/$]* | ?:[\\/]*) ;;
2546 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2547 esac
2548
2549 for ac_prog in gawk mawk nawk awk
2550 do
2551 # Extract the first word of "$ac_prog", so it can be a program name with args.
2552 set dummy $ac_prog; ac_word=$2
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if ${ac_cv_prog_AWK+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$AWK"; then
2559 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_AWK="$ac_prog"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577 fi
2578 AWK=$ac_cv_prog_AWK
2579 if test -n "$AWK"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2581 $as_echo "$AWK" >&6; }
2582 else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2586
2587
2588 test -n "$AWK" && break
2589 done
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2592 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2593 set x ${MAKE-make}
2594 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2595 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 cat >conftest.make <<\_ACEOF
2599 SHELL = /bin/sh
2600 all:
2601 @echo '@@@%%%=$(MAKE)=@@@%%%'
2602 _ACEOF
2603 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2604 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2605 *@@@%%%=?*=@@@%%%*)
2606 eval ac_cv_prog_make_${ac_make}_set=yes;;
2607 *)
2608 eval ac_cv_prog_make_${ac_make}_set=no;;
2609 esac
2610 rm -f conftest.make
2611 fi
2612 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2614 $as_echo "yes" >&6; }
2615 SET_MAKE=
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 SET_MAKE="MAKE=${MAKE-make}"
2620 fi
2621
2622 rm -rf .tst 2>/dev/null
2623 mkdir .tst 2>/dev/null
2624 if test -d .tst; then
2625 am__leading_dot=.
2626 else
2627 am__leading_dot=_
2628 fi
2629 rmdir .tst 2>/dev/null
2630
2631 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2632 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2633 # is not polluted with repeated "-I."
2634 am__isrc=' -I$(srcdir)'
2635 # test to see if srcdir already configured
2636 if test -f $srcdir/config.status; then
2637 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2638 fi
2639 fi
2640
2641 # test whether we have cygpath
2642 if test -z "$CYGPATH_W"; then
2643 if (cygpath --version) >/dev/null 2>/dev/null; then
2644 CYGPATH_W='cygpath -w'
2645 else
2646 CYGPATH_W=echo
2647 fi
2648 fi
2649
2650
2651 # Define the identity of the package.
2652 PACKAGE='libXinerama'
2653 VERSION='1.1.1'
2654
2655
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE "$PACKAGE"
2658 _ACEOF
2659
2660
2661 cat >>confdefs.h <<_ACEOF
2662 #define VERSION "$VERSION"
2663 _ACEOF
2664
2665 # Some tools Automake needs.
2666
2667 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2668
2669
2670 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2671
2672
2673 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2674
2675
2676 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2677
2678
2679 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2680
2681 # We need awk for the "check" target. The system "awk" is bad on
2682 # some platforms.
2683 # Always define AMTAR for backward compatibility.
2684
2685 AMTAR=${AMTAR-"${am_missing_run}tar"}
2686
2687 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2688
2689
2690
2691
2692
2693
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2695 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2696 # Check whether --enable-maintainer-mode was given.
2697 if test "${enable_maintainer_mode+set}" = set; then :
2698 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2699 else
2700 USE_MAINTAINER_MODE=no
2701 fi
2702
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2704 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2705 if test $USE_MAINTAINER_MODE = yes; then
2706 MAINTAINER_MODE_TRUE=
2707 MAINTAINER_MODE_FALSE='#'
2708 else
2709 MAINTAINER_MODE_TRUE='#'
2710 MAINTAINER_MODE_FALSE=
2711 fi
2712
2713 MAINT=$MAINTAINER_MODE_TRUE
2714
2715
2716
2717 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729 DEPDIR="${am__leading_dot}deps"
2730
2731 ac_config_commands="$ac_config_commands depfiles"
2732
2733
2734 am_make=${MAKE-make}
2735 cat > confinc << 'END'
2736 am__doit:
2737 @echo this is the am__doit target
2738 .PHONY: am__doit
2739 END
2740 # If we don't find an include directive, just comment out the code.
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2742 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2743 am__include="#"
2744 am__quote=
2745 _am_result=none
2746 # First try GNU make style include.
2747 echo "include confinc" > confmf
2748 # Ignore all kinds of additional output from `make'.
2749 case `$am_make -s -f confmf 2> /dev/null` in #(
2750 *the\ am__doit\ target*)
2751 am__include=include
2752 am__quote=
2753 _am_result=GNU
2754 ;;
2755 esac
2756 # Now try BSD make style include.
2757 if test "$am__include" = "#"; then
2758 echo '.include "confinc"' > confmf
2759 case `$am_make -s -f confmf 2> /dev/null` in #(
2760 *the\ am__doit\ target*)
2761 am__include=.include
2762 am__quote="\""
2763 _am_result=BSD
2764 ;;
2765 esac
2766 fi
2767
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2770 $as_echo "$_am_result" >&6; }
2771 rm -f confinc confmf
2772
2773 # Check whether --enable-dependency-tracking was given.
2774 if test "${enable_dependency_tracking+set}" = set; then :
2775 enableval=$enable_dependency_tracking;
2776 fi
2777
2778 if test "x$enable_dependency_tracking" != xno; then
2779 am_depcomp="$ac_aux_dir/depcomp"
2780 AMDEPBACKSLASH='\'
2781 fi
2782 if test "x$enable_dependency_tracking" != xno; then
2783 AMDEP_TRUE=
2784 AMDEP_FALSE='#'
2785 else
2786 AMDEP_TRUE='#'
2787 AMDEP_FALSE=
2788 fi
2789
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 if test -n "$ac_tool_prefix"; then
2797 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2798 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800 $as_echo_n "checking for $ac_word... " >&6; }
2801 if ${ac_cv_prog_CC+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC="$CC" # Let the user override the test.
2806 else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 break 2
2817 fi
2818 done
2819 done
2820 IFS=$as_save_IFS
2821
2822 fi
2823 fi
2824 CC=$ac_cv_prog_CC
2825 if test -n "$CC"; then
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2827 $as_echo "$CC" >&6; }
2828 else
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2831 fi
2832
2833
2834 fi
2835 if test -z "$ac_cv_prog_CC"; then
2836 ac_ct_CC=$CC
2837 # Extract the first word of "gcc", so it can be a program name with args.
2838 set dummy gcc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_ac_ct_CC="gcc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2865 if test -n "$ac_ct_CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2867 $as_echo "$ac_ct_CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873 if test "x$ac_ct_CC" = x; then
2874 CC=""
2875 else
2876 case $cross_compiling:$ac_tool_warned in
2877 yes:)
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2880 ac_tool_warned=yes ;;
2881 esac
2882 CC=$ac_ct_CC
2883 fi
2884 else
2885 CC="$ac_cv_prog_CC"
2886 fi
2887
2888 if test -z "$CC"; then
2889 if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}cc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_CC+:} false; then :
2895 $as_echo_n "(cached) " >&6
2896 else
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907 ac_cv_prog_CC="${ac_tool_prefix}cc"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2910 fi
2911 done
2912 done
2913 IFS=$as_save_IFS
2914
2915 fi
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 $as_echo "$CC" >&6; }
2921 else
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2924 fi
2925
2926
2927 fi
2928 fi
2929 if test -z "$CC"; then
2930 # Extract the first word of "cc", so it can be a program name with args.
2931 set dummy cc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 else
2940 ac_prog_rejected=no
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2949 ac_prog_rejected=yes
2950 continue
2951 fi
2952 ac_cv_prog_CC="cc"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 if test $ac_prog_rejected = yes; then
2961 # We found a bogon in the path, so make sure we never use it.
2962 set dummy $ac_cv_prog_CC
2963 shift
2964 if test $# != 0; then
2965 # We chose a different compiler from the bogus one.
2966 # However, it has the same basename, so the bogon will be chosen
2967 # first if we set CC to just the basename; use the full file name.
2968 shift
2969 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2970 fi
2971 fi
2972 fi
2973 fi
2974 CC=$ac_cv_prog_CC
2975 if test -n "$CC"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977 $as_echo "$CC" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 fi
2982
2983
2984 fi
2985 if test -z "$CC"; then
2986 if test -n "$ac_tool_prefix"; then
2987 for ac_prog in cl.exe
2988 do
2989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if ${ac_cv_prog_CC+:} false; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 fi
3015 fi
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025
3026 test -n "$CC" && break
3027 done
3028 fi
3029 if test -z "$CC"; then
3030 ac_ct_CC=$CC
3031 for ac_prog in cl.exe
3032 do
3033 # Extract the first word of "$ac_prog", so it can be a program name with args.
3034 set dummy $ac_prog; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3038 $as_echo_n "(cached) " >&6
3039 else
3040 if test -n "$ac_ct_CC"; then
3041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_ac_ct_CC="$ac_prog"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3053 fi
3054 done
3055 done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3061 if test -n "$ac_ct_CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3063 $as_echo "$ac_ct_CC" >&6; }
3064 else
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070 test -n "$ac_ct_CC" && break
3071 done
3072
3073 if test "x$ac_ct_CC" = x; then
3074 CC=""
3075 else
3076 case $cross_compiling:$ac_tool_warned in
3077 yes:)
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3080 ac_tool_warned=yes ;;
3081 esac
3082 CC=$ac_ct_CC
3083 fi
3084 fi
3085
3086 fi
3087
3088
3089 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error $? "no acceptable C compiler found in \$PATH
3092 See \`config.log' for more details" "$LINENO" 5; }
3093
3094 # Provide some information about the compiler.
3095 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3096 set X $ac_compile
3097 ac_compiler=$2
3098 for ac_option in --version -v -V -qversion; do
3099 { { ac_try="$ac_compiler $ac_option >&5"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 $as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3107 ac_status=$?
3108 if test -s conftest.err; then
3109 sed '10a\
3110 ... rest of stderr output deleted ...
3111 10q' conftest.err >conftest.er1
3112 cat conftest.er1 >&5
3113 fi
3114 rm -f conftest.er1 conftest.err
3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }
3117 done
3118
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3121
3122 int
3123 main ()
3124 {
3125
3126 ;
3127 return 0;
3128 }
3129 _ACEOF
3130 ac_clean_files_save=$ac_clean_files
3131 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3132 # Try to create an executable without -o first, disregard a.out.
3133 # It will help us diagnose broken compilers, and finding out an intuition
3134 # of exeext.
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3136 $as_echo_n "checking whether the C compiler works... " >&6; }
3137 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3138
3139 # The possible output files:
3140 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3141
3142 ac_rmfiles=
3143 for ac_file in $ac_files
3144 do
3145 case $ac_file in
3146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3147 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3148 esac
3149 done
3150 rm -f $ac_rmfiles
3151
3152 if { { ac_try="$ac_link_default"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_link_default") 2>&5
3160 ac_status=$?
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }; then :
3163 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3164 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3165 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3166 # so that the user can short-circuit this test for compilers unknown to
3167 # Autoconf.
3168 for ac_file in $ac_files ''
3169 do
3170 test -f "$ac_file" || continue
3171 case $ac_file in
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3173 ;;
3174 [ab].out )
3175 # We found the default executable, but exeext='' is most
3176 # certainly right.
3177 break;;
3178 *.* )
3179 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3180 then :; else
3181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3182 fi
3183 # We set ac_cv_exeext here because the later test for it is not
3184 # safe: cross compilers may not add the suffix if given an `-o'
3185 # argument, so we may need to know it at that point already.
3186 # Even if this section looks crufty: it has the advantage of
3187 # actually working.
3188 break;;
3189 * )
3190 break;;
3191 esac
3192 done
3193 test "$ac_cv_exeext" = no && ac_cv_exeext=
3194
3195 else
3196 ac_file=''
3197 fi
3198 if test -z "$ac_file"; then :
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error 77 "C compiler cannot create executables
3207 See \`config.log' for more details" "$LINENO" 5; }
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210 $as_echo "yes" >&6; }
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3213 $as_echo_n "checking for C compiler default output file name... " >&6; }
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3215 $as_echo "$ac_file" >&6; }
3216 ac_exeext=$ac_cv_exeext
3217
3218 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3219 ac_clean_files=$ac_clean_files_save
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3221 $as_echo_n "checking for suffix of executables... " >&6; }
3222 if { { ac_try="$ac_link"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 $as_echo "$ac_try_echo"; } >&5
3229 (eval "$ac_link") 2>&5
3230 ac_status=$?
3231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3232 test $ac_status = 0; }; then :
3233 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3234 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3235 # work properly (i.e., refer to `conftest.exe'), while it won't with
3236 # `rm'.
3237 for ac_file in conftest.exe conftest conftest.*; do
3238 test -f "$ac_file" || continue
3239 case $ac_file in
3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3241 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3242 break;;
3243 * ) break;;
3244 esac
3245 done
3246 else
3247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3250 See \`config.log' for more details" "$LINENO" 5; }
3251 fi
3252 rm -f conftest conftest$ac_cv_exeext
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3254 $as_echo "$ac_cv_exeext" >&6; }
3255
3256 rm -f conftest.$ac_ext
3257 EXEEXT=$ac_cv_exeext
3258 ac_exeext=$EXEEXT
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3261 #include <stdio.h>
3262 int
3263 main ()
3264 {
3265 FILE *f = fopen ("conftest.out", "w");
3266 return ferror (f) || fclose (f) != 0;
3267
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 ac_clean_files="$ac_clean_files conftest.out"
3273 # Check that the compiler produces executables we can run. If not, either
3274 # the compiler is broken, or we cross compile.
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3276 $as_echo_n "checking whether we are cross compiling... " >&6; }
3277 if test "$cross_compiling" != yes; then
3278 { { ac_try="$ac_link"
3279 case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285 (eval "$ac_link") 2>&5
3286 ac_status=$?
3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288 test $ac_status = 0; }
3289 if { ac_try='./conftest$ac_cv_exeext'
3290 { { case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_try") 2>&5
3297 ac_status=$?
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }; }; then
3300 cross_compiling=no
3301 else
3302 if test "$cross_compiling" = maybe; then
3303 cross_compiling=yes
3304 else
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot run C compiled programs.
3308 If you meant to cross compile, use \`--host'.
3309 See \`config.log' for more details" "$LINENO" 5; }
3310 fi
3311 fi
3312 fi
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3314 $as_echo "$cross_compiling" >&6; }
3315
3316 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3317 ac_clean_files=$ac_clean_files_save
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3319 $as_echo_n "checking for suffix of object files... " >&6; }
3320 if ${ac_cv_objext+:} false; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3325
3326 int
3327 main ()
3328 {
3329
3330 ;
3331 return 0;
3332 }
3333 _ACEOF
3334 rm -f conftest.o conftest.obj
3335 if { { ac_try="$ac_compile"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_compile") 2>&5
3343 ac_status=$?
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }; then :
3346 for ac_file in conftest.o conftest.obj conftest.*; do
3347 test -f "$ac_file" || continue;
3348 case $ac_file in
3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3350 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3351 break;;
3352 esac
3353 done
3354 else
3355 $as_echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error $? "cannot compute suffix of object files: cannot compile
3361 See \`config.log' for more details" "$LINENO" 5; }
3362 fi
3363 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3366 $as_echo "$ac_cv_objext" >&6; }
3367 OBJEXT=$ac_cv_objext
3368 ac_objext=$OBJEXT
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3370 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3371 if ${ac_cv_c_compiler_gnu+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3376
3377 int
3378 main ()
3379 {
3380 #ifndef __GNUC__
3381 choke me
3382 #endif
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389 ac_compiler_gnu=yes
3390 else
3391 ac_compiler_gnu=no
3392 fi
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3395
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3398 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3399 if test $ac_compiler_gnu = yes; then
3400 GCC=yes
3401 else
3402 GCC=
3403 fi
3404 ac_test_CFLAGS=${CFLAGS+set}
3405 ac_save_CFLAGS=$CFLAGS
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3407 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3408 if ${ac_cv_prog_cc_g+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 ac_save_c_werror_flag=$ac_c_werror_flag
3412 ac_c_werror_flag=yes
3413 ac_cv_prog_cc_g=no
3414 CFLAGS="-g"
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main ()
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 if ac_fn_c_try_compile "$LINENO"; then :
3427 ac_cv_prog_cc_g=yes
3428 else
3429 CFLAGS=""
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3432
3433 int
3434 main ()
3435 {
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 if ac_fn_c_try_compile "$LINENO"; then :
3442
3443 else
3444 ac_c_werror_flag=$ac_save_c_werror_flag
3445 CFLAGS="-g"
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main ()
3451 {
3452
3453 ;
3454 return 0;
3455 }
3456 _ACEOF
3457 if ac_fn_c_try_compile "$LINENO"; then :
3458 ac_cv_prog_cc_g=yes
3459 fi
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 fi
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 fi
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 ac_c_werror_flag=$ac_save_c_werror_flag
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3468 $as_echo "$ac_cv_prog_cc_g" >&6; }
3469 if test "$ac_test_CFLAGS" = set; then
3470 CFLAGS=$ac_save_CFLAGS
3471 elif test $ac_cv_prog_cc_g = yes; then
3472 if test "$GCC" = yes; then
3473 CFLAGS="-g -O2"
3474 else
3475 CFLAGS="-g"
3476 fi
3477 else
3478 if test "$GCC" = yes; then
3479 CFLAGS="-O2"
3480 else
3481 CFLAGS=
3482 fi
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3485 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3486 if ${ac_cv_prog_cc_c89+:} false; then :
3487 $as_echo_n "(cached) " >&6
3488 else
3489 ac_cv_prog_cc_c89=no
3490 ac_save_CC=$CC
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3493 #include <stdarg.h>
3494 #include <stdio.h>
3495 #include <sys/types.h>
3496 #include <sys/stat.h>
3497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3498 struct buf { int x; };
3499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3500 static char *e (p, i)
3501 char **p;
3502 int i;
3503 {
3504 return p[i];
3505 }
3506 static char *f (char * (*g) (char **, int), char **p, ...)
3507 {
3508 char *s;
3509 va_list v;
3510 va_start (v,p);
3511 s = g (p, va_arg (v,int));
3512 va_end (v);
3513 return s;
3514 }
3515
3516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3517 function prototypes and stuff, but not '\xHH' hex character constants.
3518 These don't provoke an error unfortunately, instead are silently treated
3519 as 'x'. The following induces an error, until -std is added to get
3520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3521 array size at least. It's necessary to write '\x00'==0 to get something
3522 that's true only with -std. */
3523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3524
3525 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3526 inside strings and character constants. */
3527 #define FOO(x) 'x'
3528 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3529
3530 int test (int i, double x);
3531 struct s1 {int (*f) (int a);};
3532 struct s2 {int (*f) (double a);};
3533 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3534 int argc;
3535 char **argv;
3536 int
3537 main ()
3538 {
3539 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3540 ;
3541 return 0;
3542 }
3543 _ACEOF
3544 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3545 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3546 do
3547 CC="$ac_save_CC $ac_arg"
3548 if ac_fn_c_try_compile "$LINENO"; then :
3549 ac_cv_prog_cc_c89=$ac_arg
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext
3552 test "x$ac_cv_prog_cc_c89" != "xno" && break
3553 done
3554 rm -f conftest.$ac_ext
3555 CC=$ac_save_CC
3556
3557 fi
3558 # AC_CACHE_VAL
3559 case "x$ac_cv_prog_cc_c89" in
3560 x)
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3562 $as_echo "none needed" >&6; } ;;
3563 xno)
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3565 $as_echo "unsupported" >&6; } ;;
3566 *)
3567 CC="$CC $ac_cv_prog_cc_c89"
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3569 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3570 esac
3571 if test "x$ac_cv_prog_cc_c89" != xno; then :
3572
3573 fi
3574
3575 ac_ext=c
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580
3581 depcc="$CC" am_compiler_list=
3582
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3584 $as_echo_n "checking dependency style of $depcc... " >&6; }
3585 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3589 # We make a subdir and do the tests there. Otherwise we can end up
3590 # making bogus files that we don't know about and never remove. For
3591 # instance it was reported that on HP-UX the gcc test will end up
3592 # making a dummy file named `D' -- because `-MD' means `put the output
3593 # in D'.
3594 mkdir conftest.dir
3595 # Copy depcomp to subdir because otherwise we won't find it if we're
3596 # using a relative directory.
3597 cp "$am_depcomp" conftest.dir
3598 cd conftest.dir
3599 # We will build objects and dependencies in a subdirectory because
3600 # it helps to detect inapplicable dependency modes. For instance
3601 # both Tru64's cc and ICC support -MD to output dependencies as a
3602 # side effect of compilation, but ICC will put the dependencies in
3603 # the current directory while Tru64 will put them in the object
3604 # directory.
3605 mkdir sub
3606
3607 am_cv_CC_dependencies_compiler_type=none
3608 if test "$am_compiler_list" = ""; then
3609 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3610 fi
3611 am__universal=false
3612 case " $depcc " in #(
3613 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3614 esac
3615
3616 for depmode in $am_compiler_list; do
3617 # Setup a source with many dependencies, because some compilers
3618 # like to wrap large dependency lists on column 80 (with \), and
3619 # we should not choose a depcomp mode which is confused by this.
3620 #
3621 # We need to recreate these files for each test, as the compiler may
3622 # overwrite some of them when testing with obscure command lines.
3623 # This happens at least with the AIX C compiler.
3624 : > sub/conftest.c
3625 for i in 1 2 3 4 5 6; do
3626 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3627 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3628 # Solaris 8's {/usr,}/bin/sh.
3629 touch sub/conftst$i.h
3630 done
3631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3632
3633 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3634 # mode. It turns out that the SunPro C++ compiler does not properly
3635 # handle `-M -o', and we need to detect this. Also, some Intel
3636 # versions had trouble with output in subdirs
3637 am__obj=sub/conftest.${OBJEXT-o}
3638 am__minus_obj="-o $am__obj"
3639 case $depmode in
3640 gcc)
3641 # This depmode causes a compiler race in universal mode.
3642 test "$am__universal" = false || continue
3643 ;;
3644 nosideeffect)
3645 # after this tag, mechanisms are not by side-effect, so they'll
3646 # only be used when explicitly requested
3647 if test "x$enable_dependency_tracking" = xyes; then
3648 continue
3649 else
3650 break
3651 fi
3652 ;;
3653 msvisualcpp | msvcmsys)
3654 # This compiler won't grok `-c -o', but also, the minuso test has
3655 # not run yet. These depmodes are late enough in the game, and
3656 # so weak that their functioning should not be impacted.
3657 am__obj=conftest.${OBJEXT-o}
3658 am__minus_obj=
3659 ;;
3660 none) break ;;
3661 esac
3662 if depmode=$depmode \
3663 source=sub/conftest.c object=$am__obj \
3664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3665 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3666 >/dev/null 2>conftest.err &&
3667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3669 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3671 # icc doesn't choke on unknown options, it will just issue warnings
3672 # or remarks (even with -Werror). So we grep stderr for any message
3673 # that says an option was ignored or not supported.
3674 # When given -MP, icc 7.0 and 7.1 complain thusly:
3675 # icc: Command line warning: ignoring option '-M'; no argument required
3676 # The diagnosis changed in icc 8.0:
3677 # icc: Command line remark: option '-MP' not supported
3678 if (grep 'ignoring option' conftest.err ||
3679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3680 am_cv_CC_dependencies_compiler_type=$depmode
3681 break
3682 fi
3683 fi
3684 done
3685
3686 cd ..
3687 rm -rf conftest.dir
3688 else
3689 am_cv_CC_dependencies_compiler_type=none
3690 fi
3691
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3694 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3695 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3696
3697 if
3698 test "x$enable_dependency_tracking" != xno \
3699 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3700 am__fastdepCC_TRUE=
3701 am__fastdepCC_FALSE='#'
3702 else
3703 am__fastdepCC_TRUE='#'
3704 am__fastdepCC_FALSE=
3705 fi
3706
3707
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3709 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3710 if ${ac_cv_prog_cc_c99+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 ac_cv_prog_cc_c99=no
3714 ac_save_CC=$CC
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717 #include <stdarg.h>
3718 #include <stdbool.h>
3719 #include <stdlib.h>
3720 #include <wchar.h>
3721 #include <stdio.h>
3722
3723 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3724 #define debug(...) fprintf (stderr, __VA_ARGS__)
3725 #define showlist(...) puts (#__VA_ARGS__)
3726 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3727 static void
3728 test_varargs_macros (void)
3729 {
3730 int x = 1234;
3731 int y = 5678;
3732 debug ("Flag");
3733 debug ("X = %d\n", x);
3734 showlist (The first, second, and third items.);
3735 report (x>y, "x is %d but y is %d", x, y);
3736 }
3737
3738 // Check long long types.
3739 #define BIG64 18446744073709551615ull
3740 #define BIG32 4294967295ul
3741 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3742 #if !BIG_OK
3743 your preprocessor is broken;
3744 #endif
3745 #if BIG_OK
3746 #else
3747 your preprocessor is broken;
3748 #endif
3749 static long long int bignum = -9223372036854775807LL;
3750 static unsigned long long int ubignum = BIG64;
3751
3752 struct incomplete_array
3753 {
3754 int datasize;
3755 double data[];
3756 };
3757
3758 struct named_init {
3759 int number;
3760 const wchar_t *name;
3761 double average;
3762 };
3763
3764 typedef const char *ccp;
3765
3766 static inline int
3767 test_restrict (ccp restrict text)
3768 {
3769 // See if C++-style comments work.
3770 // Iterate through items via the restricted pointer.
3771 // Also check for declarations in for loops.
3772 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3773 continue;
3774 return 0;
3775 }
3776
3777 // Check varargs and va_copy.
3778 static void
3779 test_varargs (const char *format, ...)
3780 {
3781 va_list args;
3782 va_start (args, format);
3783 va_list args_copy;
3784 va_copy (args_copy, args);
3785
3786 const char *str;
3787 int number;
3788 float fnumber;
3789
3790 while (*format)
3791 {
3792 switch (*format++)
3793 {
3794 case 's': // string
3795 str = va_arg (args_copy, const char *);
3796 break;
3797 case 'd': // int
3798 number = va_arg (args_copy, int);
3799 break;
3800 case 'f': // float
3801 fnumber = va_arg (args_copy, double);
3802 break;
3803 default:
3804 break;
3805 }
3806 }
3807 va_end (args_copy);
3808 va_end (args);
3809 }
3810
3811 int
3812 main ()
3813 {
3814
3815 // Check bool.
3816 _Bool success = false;
3817
3818 // Check restrict.
3819 if (test_restrict ("String literal") == 0)
3820 success = true;
3821 char *restrict newvar = "Another string";
3822
3823 // Check varargs.
3824 test_varargs ("s, d' f .", "string", 65, 34.234);
3825 test_varargs_macros ();
3826
3827 // Check flexible array members.
3828 struct incomplete_array *ia =
3829 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3830 ia->datasize = 10;
3831 for (int i = 0; i < ia->datasize; ++i)
3832 ia->data[i] = i * 1.234;
3833
3834 // Check named initializers.
3835 struct named_init ni = {
3836 .number = 34,
3837 .name = L"Test wide string",
3838 .average = 543.34343,
3839 };
3840
3841 ni.number = 58;
3842
3843 int dynamic_array[ni.number];
3844 dynamic_array[ni.number - 1] = 543;
3845
3846 // work around unused variable warnings
3847 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3848 || dynamic_array[ni.number - 1] != 543);
3849
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3855 do
3856 CC="$ac_save_CC $ac_arg"
3857 if ac_fn_c_try_compile "$LINENO"; then :
3858 ac_cv_prog_cc_c99=$ac_arg
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext
3861 test "x$ac_cv_prog_cc_c99" != "xno" && break
3862 done
3863 rm -f conftest.$ac_ext
3864 CC=$ac_save_CC
3865
3866 fi
3867 # AC_CACHE_VAL
3868 case "x$ac_cv_prog_cc_c99" in
3869 x)
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3871 $as_echo "none needed" >&6; } ;;
3872 xno)
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3874 $as_echo "unsupported" >&6; } ;;
3875 *)
3876 CC="$CC $ac_cv_prog_cc_c99"
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3878 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3879 esac
3880 if test "x$ac_cv_prog_cc_c99" != xno; then :
3881
3882 fi
3883
3884
3885
3886 ac_ext=c
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3892 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3893 # On Suns, sometimes $CPP names a directory.
3894 if test -n "$CPP" && test -d "$CPP"; then
3895 CPP=
3896 fi
3897 if test -z "$CPP"; then
3898 if ${ac_cv_prog_CPP+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 # Double quotes because CPP needs to be expanded
3902 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3903 do
3904 ac_preproc_ok=false
3905 for ac_c_preproc_warn_flag in '' yes
3906 do
3907 # Use a header file that comes with gcc, so configuring glibc
3908 # with a fresh cross-compiler works.
3909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3910 # <limits.h> exists even on freestanding compilers.
3911 # On the NeXT, cc -E runs the code through the compiler's parser,
3912 # not just through cpp. "Syntax error" is here to catch this case.
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #ifdef __STDC__
3916 # include <limits.h>
3917 #else
3918 # include <assert.h>
3919 #endif
3920 Syntax error
3921 _ACEOF
3922 if ac_fn_c_try_cpp "$LINENO"; then :
3923
3924 else
3925 # Broken: fails on valid input.
3926 continue
3927 fi
3928 rm -f conftest.err conftest.i conftest.$ac_ext
3929
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #include <ac_nonexistent.h>
3935 _ACEOF
3936 if ac_fn_c_try_cpp "$LINENO"; then :
3937 # Broken: success on invalid input.
3938 continue
3939 else
3940 # Passes both tests.
3941 ac_preproc_ok=:
3942 break
3943 fi
3944 rm -f conftest.err conftest.i conftest.$ac_ext
3945
3946 done
3947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3948 rm -f conftest.i conftest.err conftest.$ac_ext
3949 if $ac_preproc_ok; then :
3950 break
3951 fi
3952
3953 done
3954 ac_cv_prog_CPP=$CPP
3955
3956 fi
3957 CPP=$ac_cv_prog_CPP
3958 else
3959 ac_cv_prog_CPP=$CPP
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3962 $as_echo "$CPP" >&6; }
3963 ac_preproc_ok=false
3964 for ac_c_preproc_warn_flag in '' yes
3965 do
3966 # Use a header file that comes with gcc, so configuring glibc
3967 # with a fresh cross-compiler works.
3968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3969 # <limits.h> exists even on freestanding compilers.
3970 # On the NeXT, cc -E runs the code through the compiler's parser,
3971 # not just through cpp. "Syntax error" is here to catch this case.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974 #ifdef __STDC__
3975 # include <limits.h>
3976 #else
3977 # include <assert.h>
3978 #endif
3979 Syntax error
3980 _ACEOF
3981 if ac_fn_c_try_cpp "$LINENO"; then :
3982
3983 else
3984 # Broken: fails on valid input.
3985 continue
3986 fi
3987 rm -f conftest.err conftest.i conftest.$ac_ext
3988
3989 # OK, works on sane cases. Now check whether nonexistent headers
3990 # can be detected and how.
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3994 _ACEOF
3995 if ac_fn_c_try_cpp "$LINENO"; then :
3996 # Broken: success on invalid input.
3997 continue
3998 else
3999 # Passes both tests.
4000 ac_preproc_ok=:
4001 break
4002 fi
4003 rm -f conftest.err conftest.i conftest.$ac_ext
4004
4005 done
4006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4007 rm -f conftest.i conftest.err conftest.$ac_ext
4008 if $ac_preproc_ok; then :
4009
4010 else
4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4014 See \`config.log' for more details" "$LINENO" 5; }
4015 fi
4016
4017 ac_ext=c
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022
4023
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4025 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4026 if ${ac_cv_path_GREP+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -z "$GREP"; then
4030 ac_path_GREP_found=false
4031 # Loop through the user's path and test for each of PROGNAME-LIST
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4034 do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_prog in grep ggrep; do
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4040 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4041 # Check for GNU ac_path_GREP and select it if it is found.
4042 # Check for GNU $ac_path_GREP
4043 case `"$ac_path_GREP" --version 2>&1` in
4044 *GNU*)
4045 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4046 *)
4047 ac_count=0
4048 $as_echo_n 0123456789 >"conftest.in"
4049 while :
4050 do
4051 cat "conftest.in" "conftest.in" >"conftest.tmp"
4052 mv "conftest.tmp" "conftest.in"
4053 cp "conftest.in" "conftest.nl"
4054 $as_echo 'GREP' >> "conftest.nl"
4055 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4057 as_fn_arith $ac_count + 1 && ac_count=$as_val
4058 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4059 # Best one so far, save it but keep looking for a better one
4060 ac_cv_path_GREP="$ac_path_GREP"
4061 ac_path_GREP_max=$ac_count
4062 fi
4063 # 10*(2^10) chars as input seems more than enough
4064 test $ac_count -gt 10 && break
4065 done
4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4067 esac
4068
4069 $ac_path_GREP_found && break 3
4070 done
4071 done
4072 done
4073 IFS=$as_save_IFS
4074 if test -z "$ac_cv_path_GREP"; then
4075 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4076 fi
4077 else
4078 ac_cv_path_GREP=$GREP
4079 fi
4080
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4083 $as_echo "$ac_cv_path_GREP" >&6; }
4084 GREP="$ac_cv_path_GREP"
4085
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4088 $as_echo_n "checking for egrep... " >&6; }
4089 if ${ac_cv_path_EGREP+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4093 then ac_cv_path_EGREP="$GREP -E"
4094 else
4095 if test -z "$EGREP"; then
4096 ac_path_EGREP_found=false
4097 # Loop through the user's path and test for each of PROGNAME-LIST
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4100 do
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_prog in egrep; do
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4106 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4107 # Check for GNU ac_path_EGREP and select it if it is found.
4108 # Check for GNU $ac_path_EGREP
4109 case `"$ac_path_EGREP" --version 2>&1` in
4110 *GNU*)
4111 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4112 *)
4113 ac_count=0
4114 $as_echo_n 0123456789 >"conftest.in"
4115 while :
4116 do
4117 cat "conftest.in" "conftest.in" >"conftest.tmp"
4118 mv "conftest.tmp" "conftest.in"
4119 cp "conftest.in" "conftest.nl"
4120 $as_echo 'EGREP' >> "conftest.nl"
4121 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4123 as_fn_arith $ac_count + 1 && ac_count=$as_val
4124 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4125 # Best one so far, save it but keep looking for a better one
4126 ac_cv_path_EGREP="$ac_path_EGREP"
4127 ac_path_EGREP_max=$ac_count
4128 fi
4129 # 10*(2^10) chars as input seems more than enough
4130 test $ac_count -gt 10 && break
4131 done
4132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4133 esac
4134
4135 $ac_path_EGREP_found && break 3
4136 done
4137 done
4138 done
4139 IFS=$as_save_IFS
4140 if test -z "$ac_cv_path_EGREP"; then
4141 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4142 fi
4143 else
4144 ac_cv_path_EGREP=$EGREP
4145 fi
4146
4147 fi
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4150 $as_echo "$ac_cv_path_EGREP" >&6; }
4151 EGREP="$ac_cv_path_EGREP"
4152
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4155 $as_echo_n "checking for ANSI C header files... " >&6; }
4156 if ${ac_cv_header_stdc+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #include <stdlib.h>
4162 #include <stdarg.h>
4163 #include <string.h>
4164 #include <float.h>
4165
4166 int
4167 main ()
4168 {
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_header_stdc=yes
4176 else
4177 ac_cv_header_stdc=no
4178 fi
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180
4181 if test $ac_cv_header_stdc = yes; then
4182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <string.h>
4186
4187 _ACEOF
4188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189 $EGREP "memchr" >/dev/null 2>&1; then :
4190
4191 else
4192 ac_cv_header_stdc=no
4193 fi
4194 rm -f conftest*
4195
4196 fi
4197
4198 if test $ac_cv_header_stdc = yes; then
4199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #include <stdlib.h>
4203
4204 _ACEOF
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 $EGREP "free" >/dev/null 2>&1; then :
4207
4208 else
4209 ac_cv_header_stdc=no
4210 fi
4211 rm -f conftest*
4212
4213 fi
4214
4215 if test $ac_cv_header_stdc = yes; then
4216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4217 if test "$cross_compiling" = yes; then :
4218 :
4219 else
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #include <ctype.h>
4223 #include <stdlib.h>
4224 #if ((' ' & 0x0FF) == 0x020)
4225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4227 #else
4228 # define ISLOWER(c) \
4229 (('a' <= (c) && (c) <= 'i') \
4230 || ('j' <= (c) && (c) <= 'r') \
4231 || ('s' <= (c) && (c) <= 'z'))
4232 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4233 #endif
4234
4235 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4236 int
4237 main ()
4238 {
4239 int i;
4240 for (i = 0; i < 256; i++)
4241 if (XOR (islower (i), ISLOWER (i))
4242 || toupper (i) != TOUPPER (i))
4243 return 2;
4244 return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_c_try_run "$LINENO"; then :
4248
4249 else
4250 ac_cv_header_stdc=no
4251 fi
4252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4253 conftest.$ac_objext conftest.beam conftest.$ac_ext
4254 fi
4255
4256 fi
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4259 $as_echo "$ac_cv_header_stdc" >&6; }
4260 if test $ac_cv_header_stdc = yes; then
4261
4262 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4263
4264 fi
4265
4266 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268 inttypes.h stdint.h unistd.h
4269 do :
4270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4272 "
4273 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4274 cat >>confdefs.h <<_ACEOF
4275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4276 _ACEOF
4277
4278 fi
4279
4280 done
4281
4282
4283
4284
4285 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4286 if test -n "$ac_tool_prefix"; then
4287 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4288 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290 $as_echo_n "checking for $ac_word... " >&6; }
4291 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 case $PKG_CONFIG in
4295 [\\/]* | ?:[\\/]*)
4296 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4297 ;;
4298 *)
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4309 fi
4310 done
4311 done
4312 IFS=$as_save_IFS
4313
4314 ;;
4315 esac
4316 fi
4317 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4318 if test -n "$PKG_CONFIG"; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4320 $as_echo "$PKG_CONFIG" >&6; }
4321 else
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323 $as_echo "no" >&6; }
4324 fi
4325
4326
4327 fi
4328 if test -z "$ac_cv_path_PKG_CONFIG"; then
4329 ac_pt_PKG_CONFIG=$PKG_CONFIG
4330 # Extract the first word of "pkg-config", so it can be a program name with args.
4331 set dummy pkg-config; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 case $ac_pt_PKG_CONFIG in
4338 [\\/]* | ?:[\\/]*)
4339 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4340 ;;
4341 *)
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4344 do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4352 fi
4353 done
4354 done
4355 IFS=$as_save_IFS
4356
4357 ;;
4358 esac
4359 fi
4360 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4361 if test -n "$ac_pt_PKG_CONFIG"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4363 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369 if test "x$ac_pt_PKG_CONFIG" = x; then
4370 PKG_CONFIG=""
4371 else
4372 case $cross_compiling:$ac_tool_warned in
4373 yes:)
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4376 ac_tool_warned=yes ;;
4377 esac
4378 PKG_CONFIG=$ac_pt_PKG_CONFIG
4379 fi
4380 else
4381 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4382 fi
4383
4384 fi
4385 if test -n "$PKG_CONFIG"; then
4386 _pkg_min_version=0.9.0
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4388 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4389 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4391 $as_echo "yes" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4395 PKG_CONFIG=""
4396 fi
4397
4398 fi
4399 # Make sure we can run config.sub.
4400 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4401 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4404 $as_echo_n "checking build system type... " >&6; }
4405 if ${ac_cv_build+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 ac_build_alias=$build_alias
4409 test "x$ac_build_alias" = x &&
4410 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4411 test "x$ac_build_alias" = x &&
4412 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4413 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4415
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4418 $as_echo "$ac_cv_build" >&6; }
4419 case $ac_cv_build in
4420 *-*-*) ;;
4421 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4422 esac
4423 build=$ac_cv_build
4424 ac_save_IFS=$IFS; IFS='-'
4425 set x $ac_cv_build
4426 shift
4427 build_cpu=$1
4428 build_vendor=$2
4429 shift; shift
4430 # Remember, the first character of IFS is used to create $*,
4431 # except with old shells:
4432 build_os=$*
4433 IFS=$ac_save_IFS
4434 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4435
4436
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4438 $as_echo_n "checking host system type... " >&6; }
4439 if ${ac_cv_host+:} false; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test "x$host_alias" = x; then
4443 ac_cv_host=$ac_cv_build
4444 else
4445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4447 fi
4448
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4451 $as_echo "$ac_cv_host" >&6; }
4452 case $ac_cv_host in
4453 *-*-*) ;;
4454 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4455 esac
4456 host=$ac_cv_host
4457 ac_save_IFS=$IFS; IFS='-'
4458 set x $ac_cv_host
4459 shift
4460 host_cpu=$1
4461 host_vendor=$2
4462 shift; shift
4463 # Remember, the first character of IFS is used to create $*,
4464 # except with old shells:
4465 host_os=$*
4466 IFS=$ac_save_IFS
4467 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4468
4469
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4471 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4472 if ${ac_cv_path_SED+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4476 for ac_i in 1 2 3 4 5 6 7; do
4477 ac_script="$ac_script$as_nl$ac_script"
4478 done
4479 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4480 { ac_script=; unset ac_script;}
4481 if test -z "$SED"; then
4482 ac_path_SED_found=false
4483 # Loop through the user's path and test for each of PROGNAME-LIST
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_prog in sed gsed; do
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4492 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4493 # Check for GNU ac_path_SED and select it if it is found.
4494 # Check for GNU $ac_path_SED
4495 case `"$ac_path_SED" --version 2>&1` in
4496 *GNU*)
4497 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4498 *)
4499 ac_count=0
4500 $as_echo_n 0123456789 >"conftest.in"
4501 while :
4502 do
4503 cat "conftest.in" "conftest.in" >"conftest.tmp"
4504 mv "conftest.tmp" "conftest.in"
4505 cp "conftest.in" "conftest.nl"
4506 $as_echo '' >> "conftest.nl"
4507 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4509 as_fn_arith $ac_count + 1 && ac_count=$as_val
4510 if test $ac_count -gt ${ac_path_SED_max-0}; then
4511 # Best one so far, save it but keep looking for a better one
4512 ac_cv_path_SED="$ac_path_SED"
4513 ac_path_SED_max=$ac_count
4514 fi
4515 # 10*(2^10) chars as input seems more than enough
4516 test $ac_count -gt 10 && break
4517 done
4518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4519 esac
4520
4521 $ac_path_SED_found && break 3
4522 done
4523 done
4524 done
4525 IFS=$as_save_IFS
4526 if test -z "$ac_cv_path_SED"; then
4527 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4528 fi
4529 else
4530 ac_cv_path_SED=$SED
4531 fi
4532
4533 fi
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4535 $as_echo "$ac_cv_path_SED" >&6; }
4536 SED="$ac_cv_path_SED"
4537 rm -f conftest.sed
4538
4539
4540
4541
4542
4543 if test "x$GCC" = xyes ; then
4544 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4545 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4546 -Wbad-function-cast -Wformat=2"
4547 case `$CC -dumpversion` in
4548 3.4.* | 4.*)
4549 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4550 ;;
4551 esac
4552 else
4553 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4554 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4555 SUNCC="yes"
4556 else
4557 SUNCC="no"
4558 fi
4559
4560 if test "x$SUNCC" = "xyes"; then
4561 CWARNFLAGS="-v"
4562 fi
4563 fi
4564
4565
4566
4567 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4568
4569
4570
4571 # Check whether --enable-strict-compilation was given.
4572 if test "${enable_strict_compilation+set}" = set; then :
4573 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4574 else
4575 STRICT_COMPILE=no
4576 fi
4577
4578 if test "x$STRICT_COMPILE" = "xyes"; then
4579 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4580 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4581 SUNCC="yes"
4582 else
4583 SUNCC="no"
4584 fi
4585
4586 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4587 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4588 INTELCC="yes"
4589 else
4590 INTELCC="no"
4591 fi
4592
4593 if test "x$GCC" = xyes ; then
4594 STRICT_CFLAGS="-pedantic -Werror"
4595 elif test "x$SUNCC" = "xyes"; then
4596 STRICT_CFLAGS="-errwarn"
4597 elif test "x$INTELCC" = "xyes"; then
4598 STRICT_CFLAGS="-Werror"
4599 fi
4600 fi
4601 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4602
4603
4604
4605
4606 cat >>confdefs.h <<_ACEOF
4607 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4608 _ACEOF
4609
4610 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4611 if test "x$PVM" = "x"; then
4612 PVM="0"
4613 fi
4614
4615 cat >>confdefs.h <<_ACEOF
4616 #define PACKAGE_VERSION_MINOR $PVM
4617 _ACEOF
4618
4619 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4620 if test "x$PVP" = "x"; then
4621 PVP="0"
4622 fi
4623
4624 cat >>confdefs.h <<_ACEOF
4625 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4626 _ACEOF
4627
4628
4629
4630 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4631 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4632 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4633 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4634
4635
4636
4637
4638 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4639 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4640 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4641 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4642 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4643
4644
4645
4646
4647
4648
4649 if test x$APP_MAN_SUFFIX = x ; then
4650 APP_MAN_SUFFIX=1
4651 fi
4652 if test x$APP_MAN_DIR = x ; then
4653 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4654 fi
4655
4656 if test x$LIB_MAN_SUFFIX = x ; then
4657 LIB_MAN_SUFFIX=3
4658 fi
4659 if test x$LIB_MAN_DIR = x ; then
4660 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4661 fi
4662
4663 if test x$FILE_MAN_SUFFIX = x ; then
4664 case $host_os in
4665 solaris*) FILE_MAN_SUFFIX=4 ;;
4666 *) FILE_MAN_SUFFIX=5 ;;
4667 esac
4668 fi
4669 if test x$FILE_MAN_DIR = x ; then
4670 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4671 fi
4672
4673 if test x$MISC_MAN_SUFFIX = x ; then
4674 case $host_os in
4675 solaris*) MISC_MAN_SUFFIX=5 ;;
4676 *) MISC_MAN_SUFFIX=7 ;;
4677 esac
4678 fi
4679 if test x$MISC_MAN_DIR = x ; then
4680 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4681 fi
4682
4683 if test x$DRIVER_MAN_SUFFIX = x ; then
4684 case $host_os in
4685 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4686 *) DRIVER_MAN_SUFFIX=4 ;;
4687 esac
4688 fi
4689 if test x$DRIVER_MAN_DIR = x ; then
4690 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4691 fi
4692
4693 if test x$ADMIN_MAN_SUFFIX = x ; then
4694 case $host_os in
4695 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4696 *) ADMIN_MAN_SUFFIX=8 ;;
4697 esac
4698 fi
4699 if test x$ADMIN_MAN_DIR = x ; then
4700 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4701 fi
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717 XORG_MAN_PAGE="X Version 11"
4718
4719 MAN_SUBSTS="\
4720 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4721 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4722 -e 's|__xservername__|Xorg|g' \
4723 -e 's|__xconfigfile__|xorg.conf|g' \
4724 -e 's|__projectroot__|\$(prefix)|g' \
4725 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4726 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4727 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4728 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4729 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4730 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4731 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4732
4733
4734
4735 # Check whether --enable-silent-rules was given.
4736 if test "${enable_silent_rules+set}" = set; then :
4737 enableval=$enable_silent_rules;
4738 fi
4739
4740 case $enable_silent_rules in
4741 yes) AM_DEFAULT_VERBOSITY=0;;
4742 no) AM_DEFAULT_VERBOSITY=1;;
4743 *) AM_DEFAULT_VERBOSITY=0;;
4744 esac
4745 AM_BACKSLASH='\'
4746
4747
4748 ac_config_headers="$ac_config_headers config.h"
4749
4750
4751 # Check for progs
4752 ac_ext=c
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 if test -n "$ac_tool_prefix"; then
4758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4759 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_prog_CC+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 if test -n "$CC"; then
4766 ac_cv_prog_CC="$CC" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4778 fi
4779 done
4780 done
4781 IFS=$as_save_IFS
4782
4783 fi
4784 fi
4785 CC=$ac_cv_prog_CC
4786 if test -n "$CC"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4788 $as_echo "$CC" >&6; }
4789 else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4792 fi
4793
4794
4795 fi
4796 if test -z "$ac_cv_prog_CC"; then
4797 ac_ct_CC=$CC
4798 # Extract the first word of "gcc", so it can be a program name with args.
4799 set dummy gcc; 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_ac_ct_CC+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 if test -n "$ac_ct_CC"; then
4806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="gcc"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4826 if test -n "$ac_ct_CC"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4828 $as_echo "$ac_ct_CC" >&6; }
4829 else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834 if test "x$ac_ct_CC" = x; then
4835 CC=""
4836 else
4837 case $cross_compiling:$ac_tool_warned in
4838 yes:)
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4841 ac_tool_warned=yes ;;
4842 esac
4843 CC=$ac_ct_CC
4844 fi
4845 else
4846 CC="$ac_cv_prog_CC"
4847 fi
4848
4849 if test -z "$CC"; then
4850 if test -n "$ac_tool_prefix"; then
4851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4852 set dummy ${ac_tool_prefix}cc; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_CC+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$CC"; then
4859 ac_cv_prog_CC="$CC" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_CC="${ac_tool_prefix}cc"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 CC=$ac_cv_prog_CC
4879 if test -n "$CC"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4881 $as_echo "$CC" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888 fi
4889 fi
4890 if test -z "$CC"; then
4891 # Extract the first word of "cc", so it can be a program name with args.
4892 set dummy cc; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_CC+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if test -n "$CC"; then
4899 ac_cv_prog_CC="$CC" # Let the user override the test.
4900 else
4901 ac_prog_rejected=no
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4910 ac_prog_rejected=yes
4911 continue
4912 fi
4913 ac_cv_prog_CC="cc"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 if test $ac_prog_rejected = yes; then
4922 # We found a bogon in the path, so make sure we never use it.
4923 set dummy $ac_cv_prog_CC
4924 shift
4925 if test $# != 0; then
4926 # We chose a different compiler from the bogus one.
4927 # However, it has the same basename, so the bogon will be chosen
4928 # first if we set CC to just the basename; use the full file name.
4929 shift
4930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4931 fi
4932 fi
4933 fi
4934 fi
4935 CC=$ac_cv_prog_CC
4936 if test -n "$CC"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4938 $as_echo "$CC" >&6; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4942 fi
4943
4944
4945 fi
4946 if test -z "$CC"; then
4947 if test -n "$ac_tool_prefix"; then
4948 for ac_prog in cl.exe
4949 do
4950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_CC+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$CC"; then
4958 ac_cv_prog_CC="$CC" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4970 fi
4971 done
4972 done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 CC=$ac_cv_prog_CC
4978 if test -n "$CC"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4980 $as_echo "$CC" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986
4987 test -n "$CC" && break
4988 done
4989 fi
4990 if test -z "$CC"; then
4991 ac_ct_CC=$CC
4992 for ac_prog in cl.exe
4993 do
4994 # Extract the first word of "$ac_prog", so it can be a program name with args.
4995 set dummy $ac_prog; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -n "$ac_ct_CC"; then
5002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 ac_cv_prog_ac_ct_CC="$ac_prog"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5014 fi
5015 done
5016 done
5017 IFS=$as_save_IFS
5018
5019 fi
5020 fi
5021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5022 if test -n "$ac_ct_CC"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5024 $as_echo "$ac_ct_CC" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5029
5030
5031 test -n "$ac_ct_CC" && break
5032 done
5033
5034 if test "x$ac_ct_CC" = x; then
5035 CC=""
5036 else
5037 case $cross_compiling:$ac_tool_warned in
5038 yes:)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5041 ac_tool_warned=yes ;;
5042 esac
5043 CC=$ac_ct_CC
5044 fi
5045 fi
5046
5047 fi
5048
5049
5050 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5052 as_fn_error $? "no acceptable C compiler found in \$PATH
5053 See \`config.log' for more details" "$LINENO" 5; }
5054
5055 # Provide some information about the compiler.
5056 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5057 set X $ac_compile
5058 ac_compiler=$2
5059 for ac_option in --version -v -V -qversion; do
5060 { { ac_try="$ac_compiler $ac_option >&5"
5061 case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064 esac
5065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5066 $as_echo "$ac_try_echo"; } >&5
5067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5068 ac_status=$?
5069 if test -s conftest.err; then
5070 sed '10a\
5071 ... rest of stderr output deleted ...
5072 10q' conftest.err >conftest.er1
5073 cat conftest.er1 >&5
5074 fi
5075 rm -f conftest.er1 conftest.err
5076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5077 test $ac_status = 0; }
5078 done
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5081 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5082 if ${ac_cv_c_compiler_gnu+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087
5088 int
5089 main ()
5090 {
5091 #ifndef __GNUC__
5092 choke me
5093 #endif
5094
5095 ;
5096 return 0;
5097 }
5098 _ACEOF
5099 if ac_fn_c_try_compile "$LINENO"; then :
5100 ac_compiler_gnu=yes
5101 else
5102 ac_compiler_gnu=no
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5106
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5109 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5110 if test $ac_compiler_gnu = yes; then
5111 GCC=yes
5112 else
5113 GCC=
5114 fi
5115 ac_test_CFLAGS=${CFLAGS+set}
5116 ac_save_CFLAGS=$CFLAGS
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5118 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5119 if ${ac_cv_prog_cc_g+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 ac_save_c_werror_flag=$ac_c_werror_flag
5123 ac_c_werror_flag=yes
5124 ac_cv_prog_cc_g=no
5125 CFLAGS="-g"
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128
5129 int
5130 main ()
5131 {
5132
5133 ;
5134 return 0;
5135 }
5136 _ACEOF
5137 if ac_fn_c_try_compile "$LINENO"; then :
5138 ac_cv_prog_cc_g=yes
5139 else
5140 CFLAGS=""
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143
5144 int
5145 main ()
5146 {
5147
5148 ;
5149 return 0;
5150 }
5151 _ACEOF
5152 if ac_fn_c_try_compile "$LINENO"; then :
5153
5154 else
5155 ac_c_werror_flag=$ac_save_c_werror_flag
5156 CFLAGS="-g"
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159
5160 int
5161 main ()
5162 {
5163
5164 ;
5165 return 0;
5166 }
5167 _ACEOF
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 ac_cv_prog_cc_g=yes
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 fi
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 ac_c_werror_flag=$ac_save_c_werror_flag
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5179 $as_echo "$ac_cv_prog_cc_g" >&6; }
5180 if test "$ac_test_CFLAGS" = set; then
5181 CFLAGS=$ac_save_CFLAGS
5182 elif test $ac_cv_prog_cc_g = yes; then
5183 if test "$GCC" = yes; then
5184 CFLAGS="-g -O2"
5185 else
5186 CFLAGS="-g"
5187 fi
5188 else
5189 if test "$GCC" = yes; then
5190 CFLAGS="-O2"
5191 else
5192 CFLAGS=
5193 fi
5194 fi
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5196 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5197 if ${ac_cv_prog_cc_c89+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 ac_cv_prog_cc_c89=no
5201 ac_save_CC=$CC
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 #include <stdarg.h>
5205 #include <stdio.h>
5206 #include <sys/types.h>
5207 #include <sys/stat.h>
5208 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5209 struct buf { int x; };
5210 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5211 static char *e (p, i)
5212 char **p;
5213 int i;
5214 {
5215 return p[i];
5216 }
5217 static char *f (char * (*g) (char **, int), char **p, ...)
5218 {
5219 char *s;
5220 va_list v;
5221 va_start (v,p);
5222 s = g (p, va_arg (v,int));
5223 va_end (v);
5224 return s;
5225 }
5226
5227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5228 function prototypes and stuff, but not '\xHH' hex character constants.
5229 These don't provoke an error unfortunately, instead are silently treated
5230 as 'x'. The following induces an error, until -std is added to get
5231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5232 array size at least. It's necessary to write '\x00'==0 to get something
5233 that's true only with -std. */
5234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5235
5236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5237 inside strings and character constants. */
5238 #define FOO(x) 'x'
5239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5240
5241 int test (int i, double x);
5242 struct s1 {int (*f) (int a);};
5243 struct s2 {int (*f) (double a);};
5244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5245 int argc;
5246 char **argv;
5247 int
5248 main ()
5249 {
5250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5251 ;
5252 return 0;
5253 }
5254 _ACEOF
5255 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5257 do
5258 CC="$ac_save_CC $ac_arg"
5259 if ac_fn_c_try_compile "$LINENO"; then :
5260 ac_cv_prog_cc_c89=$ac_arg
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext
5263 test "x$ac_cv_prog_cc_c89" != "xno" && break
5264 done
5265 rm -f conftest.$ac_ext
5266 CC=$ac_save_CC
5267
5268 fi
5269 # AC_CACHE_VAL
5270 case "x$ac_cv_prog_cc_c89" in
5271 x)
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5273 $as_echo "none needed" >&6; } ;;
5274 xno)
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5276 $as_echo "unsupported" >&6; } ;;
5277 *)
5278 CC="$CC $ac_cv_prog_cc_c89"
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5280 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5281 esac
5282 if test "x$ac_cv_prog_cc_c89" != xno; then :
5283
5284 fi
5285
5286 ac_ext=c
5287 ac_cpp='$CPP $CPPFLAGS'
5288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291
5292 depcc="$CC" am_compiler_list=
5293
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5295 $as_echo_n "checking dependency style of $depcc... " >&6; }
5296 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5300 # We make a subdir and do the tests there. Otherwise we can end up
5301 # making bogus files that we don't know about and never remove. For
5302 # instance it was reported that on HP-UX the gcc test will end up
5303 # making a dummy file named `D' -- because `-MD' means `put the output
5304 # in D'.
5305 mkdir conftest.dir
5306 # Copy depcomp to subdir because otherwise we won't find it if we're
5307 # using a relative directory.
5308 cp "$am_depcomp" conftest.dir
5309 cd conftest.dir
5310 # We will build objects and dependencies in a subdirectory because
5311 # it helps to detect inapplicable dependency modes. For instance
5312 # both Tru64's cc and ICC support -MD to output dependencies as a
5313 # side effect of compilation, but ICC will put the dependencies in
5314 # the current directory while Tru64 will put them in the object
5315 # directory.
5316 mkdir sub
5317
5318 am_cv_CC_dependencies_compiler_type=none
5319 if test "$am_compiler_list" = ""; then
5320 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5321 fi
5322 am__universal=false
5323 case " $depcc " in #(
5324 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5325 esac
5326
5327 for depmode in $am_compiler_list; do
5328 # Setup a source with many dependencies, because some compilers
5329 # like to wrap large dependency lists on column 80 (with \), and
5330 # we should not choose a depcomp mode which is confused by this.
5331 #
5332 # We need to recreate these files for each test, as the compiler may
5333 # overwrite some of them when testing with obscure command lines.
5334 # This happens at least with the AIX C compiler.
5335 : > sub/conftest.c
5336 for i in 1 2 3 4 5 6; do
5337 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5338 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5339 # Solaris 8's {/usr,}/bin/sh.
5340 touch sub/conftst$i.h
5341 done
5342 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5343
5344 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5345 # mode. It turns out that the SunPro C++ compiler does not properly
5346 # handle `-M -o', and we need to detect this. Also, some Intel
5347 # versions had trouble with output in subdirs
5348 am__obj=sub/conftest.${OBJEXT-o}
5349 am__minus_obj="-o $am__obj"
5350 case $depmode in
5351 gcc)
5352 # This depmode causes a compiler race in universal mode.
5353 test "$am__universal" = false || continue
5354 ;;
5355 nosideeffect)
5356 # after this tag, mechanisms are not by side-effect, so they'll
5357 # only be used when explicitly requested
5358 if test "x$enable_dependency_tracking" = xyes; then
5359 continue
5360 else
5361 break
5362 fi
5363 ;;
5364 msvisualcpp | msvcmsys)
5365 # This compiler won't grok `-c -o', but also, the minuso test has
5366 # not run yet. These depmodes are late enough in the game, and
5367 # so weak that their functioning should not be impacted.
5368 am__obj=conftest.${OBJEXT-o}
5369 am__minus_obj=
5370 ;;
5371 none) break ;;
5372 esac
5373 if depmode=$depmode \
5374 source=sub/conftest.c object=$am__obj \
5375 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5376 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5377 >/dev/null 2>conftest.err &&
5378 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5379 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5380 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5381 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5382 # icc doesn't choke on unknown options, it will just issue warnings
5383 # or remarks (even with -Werror). So we grep stderr for any message
5384 # that says an option was ignored or not supported.
5385 # When given -MP, icc 7.0 and 7.1 complain thusly:
5386 # icc: Command line warning: ignoring option '-M'; no argument required
5387 # The diagnosis changed in icc 8.0:
5388 # icc: Command line remark: option '-MP' not supported
5389 if (grep 'ignoring option' conftest.err ||
5390 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5391 am_cv_CC_dependencies_compiler_type=$depmode
5392 break
5393 fi
5394 fi
5395 done
5396
5397 cd ..
5398 rm -rf conftest.dir
5399 else
5400 am_cv_CC_dependencies_compiler_type=none
5401 fi
5402
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5405 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5406 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5407
5408 if
5409 test "x$enable_dependency_tracking" != xno \
5410 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5411 am__fastdepCC_TRUE=
5412 am__fastdepCC_FALSE='#'
5413 else
5414 am__fastdepCC_TRUE='#'
5415 am__fastdepCC_FALSE=
5416 fi
5417
5418
5419 case `pwd` in
5420 *\ * | *\ *)
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5422 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5423 esac
5424
5425
5426
5427 macro_version='2.2.10'
5428 macro_revision='1.3175'
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442 ltmain="$ac_aux_dir/ltmain.sh"
5443
5444 # Backslashify metacharacters that are still active within
5445 # double-quoted strings.
5446 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5447
5448 # Same as above, but do not quote variable references.
5449 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5450
5451 # Sed substitution to delay expansion of an escaped shell variable in a
5452 # double_quote_subst'ed string.
5453 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5454
5455 # Sed substitution to delay expansion of an escaped single quote.
5456 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5457
5458 # Sed substitution to avoid accidental globbing in evaled expressions
5459 no_glob_subst='s/\*/\\\*/g'
5460
5461 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5462 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5463 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5466 $as_echo_n "checking how to print strings... " >&6; }
5467 # Test print first, because it will be a builtin if present.
5468 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5469 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5470 ECHO='print -r --'
5471 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5472 ECHO='printf %s\n'
5473 else
5474 # Use this function as a fallback that always works.
5475 func_fallback_echo ()
5476 {
5477 eval 'cat <<_LTECHO_EOF
5478 $1
5479 _LTECHO_EOF'
5480 }
5481 ECHO='func_fallback_echo'
5482 fi
5483
5484 # func_echo_all arg...
5485 # Invoke $ECHO with all args, space-separated.
5486 func_echo_all ()
5487 {
5488 $ECHO ""
5489 }
5490
5491 case "$ECHO" in
5492 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5493 $as_echo "printf" >&6; } ;;
5494 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5495 $as_echo "print -r" >&6; } ;;
5496 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5497 $as_echo "cat" >&6; } ;;
5498 esac
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5514 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5515 if ${ac_cv_path_SED+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5519 for ac_i in 1 2 3 4 5 6 7; do
5520 ac_script="$ac_script$as_nl$ac_script"
5521 done
5522 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5523 { ac_script=; unset ac_script;}
5524 if test -z "$SED"; then
5525 ac_path_SED_found=false
5526 # Loop through the user's path and test for each of PROGNAME-LIST
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_prog in sed gsed; do
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5535 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5536 # Check for GNU ac_path_SED and select it if it is found.
5537 # Check for GNU $ac_path_SED
5538 case `"$ac_path_SED" --version 2>&1` in
5539 *GNU*)
5540 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5541 *)
5542 ac_count=0
5543 $as_echo_n 0123456789 >"conftest.in"
5544 while :
5545 do
5546 cat "conftest.in" "conftest.in" >"conftest.tmp"
5547 mv "conftest.tmp" "conftest.in"
5548 cp "conftest.in" "conftest.nl"
5549 $as_echo '' >> "conftest.nl"
5550 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5552 as_fn_arith $ac_count + 1 && ac_count=$as_val
5553 if test $ac_count -gt ${ac_path_SED_max-0}; then
5554 # Best one so far, save it but keep looking for a better one
5555 ac_cv_path_SED="$ac_path_SED"
5556 ac_path_SED_max=$ac_count
5557 fi
5558 # 10*(2^10) chars as input seems more than enough
5559 test $ac_count -gt 10 && break
5560 done
5561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5562 esac
5563
5564 $ac_path_SED_found && break 3
5565 done
5566 done
5567 done
5568 IFS=$as_save_IFS
5569 if test -z "$ac_cv_path_SED"; then
5570 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5571 fi
5572 else
5573 ac_cv_path_SED=$SED
5574 fi
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5578 $as_echo "$ac_cv_path_SED" >&6; }
5579 SED="$ac_cv_path_SED"
5580 rm -f conftest.sed
5581
5582 test -z "$SED" && SED=sed
5583 Xsed="$SED -e 1s/^X//"
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5596 $as_echo_n "checking for fgrep... " >&6; }
5597 if ${ac_cv_path_FGREP+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5601 then ac_cv_path_FGREP="$GREP -F"
5602 else
5603 if test -z "$FGREP"; then
5604 ac_path_FGREP_found=false
5605 # Loop through the user's path and test for each of PROGNAME-LIST
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5608 do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_prog in fgrep; do
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5614 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5615 # Check for GNU ac_path_FGREP and select it if it is found.
5616 # Check for GNU $ac_path_FGREP
5617 case `"$ac_path_FGREP" --version 2>&1` in
5618 *GNU*)
5619 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5620 *)
5621 ac_count=0
5622 $as_echo_n 0123456789 >"conftest.in"
5623 while :
5624 do
5625 cat "conftest.in" "conftest.in" >"conftest.tmp"
5626 mv "conftest.tmp" "conftest.in"
5627 cp "conftest.in" "conftest.nl"
5628 $as_echo 'FGREP' >> "conftest.nl"
5629 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5631 as_fn_arith $ac_count + 1 && ac_count=$as_val
5632 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5633 # Best one so far, save it but keep looking for a better one
5634 ac_cv_path_FGREP="$ac_path_FGREP"
5635 ac_path_FGREP_max=$ac_count
5636 fi
5637 # 10*(2^10) chars as input seems more than enough
5638 test $ac_count -gt 10 && break
5639 done
5640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5641 esac
5642
5643 $ac_path_FGREP_found && break 3
5644 done
5645 done
5646 done
5647 IFS=$as_save_IFS
5648 if test -z "$ac_cv_path_FGREP"; then
5649 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5650 fi
5651 else
5652 ac_cv_path_FGREP=$FGREP
5653 fi
5654
5655 fi
5656 fi
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5658 $as_echo "$ac_cv_path_FGREP" >&6; }
5659 FGREP="$ac_cv_path_FGREP"
5660
5661
5662 test -z "$GREP" && GREP=grep
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 # Check whether --with-gnu-ld was given.
5683 if test "${with_gnu_ld+set}" = set; then :
5684 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5685 else
5686 with_gnu_ld=no
5687 fi
5688
5689 ac_prog=ld
5690 if test "$GCC" = yes; then
5691 # Check if gcc -print-prog-name=ld gives a path.
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5693 $as_echo_n "checking for ld used by $CC... " >&6; }
5694 case $host in
5695 *-*-mingw*)
5696 # gcc leaves a trailing carriage return which upsets mingw
5697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5698 *)
5699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5700 esac
5701 case $ac_prog in
5702 # Accept absolute paths.
5703 [\\/]* | ?:[\\/]*)
5704 re_direlt='/[^/][^/]*/\.\./'
5705 # Canonicalize the pathname of ld
5706 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5707 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5708 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5709 done
5710 test -z "$LD" && LD="$ac_prog"
5711 ;;
5712 "")
5713 # If it fails, then pretend we aren't using GCC.
5714 ac_prog=ld
5715 ;;
5716 *)
5717 # If it is relative, then search for the first ld in PATH.
5718 with_gnu_ld=unknown
5719 ;;
5720 esac
5721 elif test "$with_gnu_ld" = yes; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5723 $as_echo_n "checking for GNU ld... " >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5726 $as_echo_n "checking for non-GNU ld... " >&6; }
5727 fi
5728 if ${lt_cv_path_LD+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -z "$LD"; then
5732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5733 for ac_dir in $PATH; do
5734 IFS="$lt_save_ifs"
5735 test -z "$ac_dir" && ac_dir=.
5736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5737 lt_cv_path_LD="$ac_dir/$ac_prog"
5738 # Check to see if the program is GNU ld. I'd rather use --version,
5739 # but apparently some variants of GNU ld only accept -v.
5740 # Break only if it was the GNU/non-GNU ld that we prefer.
5741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5742 *GNU* | *'with BFD'*)
5743 test "$with_gnu_ld" != no && break
5744 ;;
5745 *)
5746 test "$with_gnu_ld" != yes && break
5747 ;;
5748 esac
5749 fi
5750 done
5751 IFS="$lt_save_ifs"
5752 else
5753 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5754 fi
5755 fi
5756
5757 LD="$lt_cv_path_LD"
5758 if test -n "$LD"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5760 $as_echo "$LD" >&6; }
5761 else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5767 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5768 if ${lt_cv_prog_gnu_ld+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5772 case `$LD -v 2>&1 </dev/null` in
5773 *GNU* | *'with BFD'*)
5774 lt_cv_prog_gnu_ld=yes
5775 ;;
5776 *)
5777 lt_cv_prog_gnu_ld=no
5778 ;;
5779 esac
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5782 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5783 with_gnu_ld=$lt_cv_prog_gnu_ld
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5794 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5795 if ${lt_cv_path_NM+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 if test -n "$NM"; then
5799 # Let the user override the test.
5800 lt_cv_path_NM="$NM"
5801 else
5802 lt_nm_to_check="${ac_tool_prefix}nm"
5803 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5804 lt_nm_to_check="$lt_nm_to_check nm"
5805 fi
5806 for lt_tmp_nm in $lt_nm_to_check; do
5807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5808 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5809 IFS="$lt_save_ifs"
5810 test -z "$ac_dir" && ac_dir=.
5811 tmp_nm="$ac_dir/$lt_tmp_nm"
5812 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5813 # Check to see if the nm accepts a BSD-compat flag.
5814 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5815 # nm: unknown option "B" ignored
5816 # Tru64's nm complains that /dev/null is an invalid object file
5817 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5818 */dev/null* | *'Invalid file or object type'*)
5819 lt_cv_path_NM="$tmp_nm -B"
5820 break
5821 ;;
5822 *)
5823 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5824 */dev/null*)
5825 lt_cv_path_NM="$tmp_nm -p"
5826 break
5827 ;;
5828 *)
5829 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5830 continue # so that we can try to find one that supports BSD flags
5831 ;;
5832 esac
5833 ;;
5834 esac
5835 fi
5836 done
5837 IFS="$lt_save_ifs"
5838 done
5839 : ${lt_cv_path_NM=no}
5840 fi
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5843 $as_echo "$lt_cv_path_NM" >&6; }
5844 if test "$lt_cv_path_NM" != "no"; then
5845 NM="$lt_cv_path_NM"
5846 else
5847 # Didn't find any BSD compatible name lister, look for dumpbin.
5848 if test -n "$DUMPBIN"; then :
5849 # Let the user override the test.
5850 else
5851 if test -n "$ac_tool_prefix"; then
5852 for ac_prog in dumpbin "link -dump"
5853 do
5854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5855 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if ${ac_cv_prog_DUMPBIN+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if test -n "$DUMPBIN"; then
5862 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875 done
5876 done
5877 IFS=$as_save_IFS
5878
5879 fi
5880 fi
5881 DUMPBIN=$ac_cv_prog_DUMPBIN
5882 if test -n "$DUMPBIN"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5884 $as_echo "$DUMPBIN" >&6; }
5885 else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5888 fi
5889
5890
5891 test -n "$DUMPBIN" && break
5892 done
5893 fi
5894 if test -z "$DUMPBIN"; then
5895 ac_ct_DUMPBIN=$DUMPBIN
5896 for ac_prog in dumpbin "link -dump"
5897 do
5898 # Extract the first word of "$ac_prog", so it can be a program name with args.
5899 set dummy $ac_prog; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 if test -n "$ac_ct_DUMPBIN"; then
5906 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 break 2
5918 fi
5919 done
5920 done
5921 IFS=$as_save_IFS
5922
5923 fi
5924 fi
5925 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5926 if test -n "$ac_ct_DUMPBIN"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5928 $as_echo "$ac_ct_DUMPBIN" >&6; }
5929 else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5932 fi
5933
5934
5935 test -n "$ac_ct_DUMPBIN" && break
5936 done
5937
5938 if test "x$ac_ct_DUMPBIN" = x; then
5939 DUMPBIN=":"
5940 else
5941 case $cross_compiling:$ac_tool_warned in
5942 yes:)
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5945 ac_tool_warned=yes ;;
5946 esac
5947 DUMPBIN=$ac_ct_DUMPBIN
5948 fi
5949 fi
5950
5951 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5952 *COFF*)
5953 DUMPBIN="$DUMPBIN -symbols"
5954 ;;
5955 *)
5956 DUMPBIN=:
5957 ;;
5958 esac
5959 fi
5960
5961 if test "$DUMPBIN" != ":"; then
5962 NM="$DUMPBIN"
5963 fi
5964 fi
5965 test -z "$NM" && NM=nm
5966
5967
5968
5969
5970
5971
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5973 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5974 if ${lt_cv_nm_interface+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 lt_cv_nm_interface="BSD nm"
5978 echo "int some_variable = 0;" > conftest.$ac_ext
5979 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5980 (eval "$ac_compile" 2>conftest.err)
5981 cat conftest.err >&5
5982 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5983 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5984 cat conftest.err >&5
5985 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5986 cat conftest.out >&5
5987 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5988 lt_cv_nm_interface="MS dumpbin"
5989 fi
5990 rm -f conftest*
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5993 $as_echo "$lt_cv_nm_interface" >&6; }
5994
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5996 $as_echo_n "checking whether ln -s works... " >&6; }
5997 LN_S=$as_ln_s
5998 if test "$LN_S" = "ln -s"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6000 $as_echo "yes" >&6; }
6001 else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6003 $as_echo "no, using $LN_S" >&6; }
6004 fi
6005
6006 # find the maximum length of command line arguments
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6008 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6009 if ${lt_cv_sys_max_cmd_len+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 i=0
6013 teststring="ABCD"
6014
6015 case $build_os in
6016 msdosdjgpp*)
6017 # On DJGPP, this test can blow up pretty badly due to problems in libc
6018 # (any single argument exceeding 2000 bytes causes a buffer overrun
6019 # during glob expansion). Even if it were fixed, the result of this
6020 # check would be larger than it should be.
6021 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6022 ;;
6023
6024 gnu*)
6025 # Under GNU Hurd, this test is not required because there is
6026 # no limit to the length of command line arguments.
6027 # Libtool will interpret -1 as no limit whatsoever
6028 lt_cv_sys_max_cmd_len=-1;
6029 ;;
6030
6031 cygwin* | mingw* | cegcc*)
6032 # On Win9x/ME, this test blows up -- it succeeds, but takes
6033 # about 5 minutes as the teststring grows exponentially.
6034 # Worse, since 9x/ME are not pre-emptively multitasking,
6035 # you end up with a "frozen" computer, even though with patience
6036 # the test eventually succeeds (with a max line length of 256k).
6037 # Instead, let's just punt: use the minimum linelength reported by
6038 # all of the supported platforms: 8192 (on NT/2K/XP).
6039 lt_cv_sys_max_cmd_len=8192;
6040 ;;
6041
6042 mint*)
6043 # On MiNT this can take a long time and run out of memory.
6044 lt_cv_sys_max_cmd_len=8192;
6045 ;;
6046
6047 amigaos*)
6048 # On AmigaOS with pdksh, this test takes hours, literally.
6049 # So we just punt and use a minimum line length of 8192.
6050 lt_cv_sys_max_cmd_len=8192;
6051 ;;
6052
6053 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6054 # This has been around since 386BSD, at least. Likely further.
6055 if test -x /sbin/sysctl; then
6056 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6057 elif test -x /usr/sbin/sysctl; then
6058 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6059 else
6060 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6061 fi
6062 # And add a safety zone
6063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6065 ;;
6066
6067 interix*)
6068 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6069 lt_cv_sys_max_cmd_len=196608
6070 ;;
6071
6072 osf*)
6073 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6074 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6075 # nice to cause kernel panics so lets avoid the loop below.
6076 # First set a reasonable default.
6077 lt_cv_sys_max_cmd_len=16384
6078 #
6079 if test -x /sbin/sysconfig; then
6080 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6081 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6082 esac
6083 fi
6084 ;;
6085 sco3.2v5*)
6086 lt_cv_sys_max_cmd_len=102400
6087 ;;
6088 sysv5* | sco5v6* | sysv4.2uw2*)
6089 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6090 if test -n "$kargmax"; then
6091 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6092 else
6093 lt_cv_sys_max_cmd_len=32768
6094 fi
6095 ;;
6096 *)
6097 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6098 if test -n "$lt_cv_sys_max_cmd_len"; then
6099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6101 else
6102 # Make teststring a little bigger before we do anything with it.
6103 # a 1K string should be a reasonable start.
6104 for i in 1 2 3 4 5 6 7 8 ; do
6105 teststring=$teststring$teststring
6106 done
6107 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6108 # If test is not a shell built-in, we'll probably end up computing a
6109 # maximum length that is only half of the actual maximum length, but
6110 # we can't tell.
6111 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6112 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6113 test $i != 17 # 1/2 MB should be enough
6114 do
6115 i=`expr $i + 1`
6116 teststring=$teststring$teststring
6117 done
6118 # Only check the string length outside the loop.
6119 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6120 teststring=
6121 # Add a significant safety factor because C++ compilers can tack on
6122 # massive amounts of additional arguments before passing them to the
6123 # linker. It appears as though 1/2 is a usable value.
6124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6125 fi
6126 ;;
6127 esac
6128
6129 fi
6130
6131 if test -n $lt_cv_sys_max_cmd_len ; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6133 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6136 $as_echo "none" >&6; }
6137 fi
6138 max_cmd_len=$lt_cv_sys_max_cmd_len
6139
6140
6141
6142
6143
6144
6145 : ${CP="cp -f"}
6146 : ${MV="mv -f"}
6147 : ${RM="rm -f"}
6148
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6150 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6151 # Try some XSI features
6152 xsi_shell=no
6153 ( _lt_dummy="a/b/c"
6154 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6155 = c,a/b,, \
6156 && eval 'test $(( 1 + 1 )) -eq 2 \
6157 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6158 && xsi_shell=yes
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6160 $as_echo "$xsi_shell" >&6; }
6161
6162
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6164 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6165 lt_shell_append=no
6166 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6167 >/dev/null 2>&1 \
6168 && lt_shell_append=yes
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6170 $as_echo "$lt_shell_append" >&6; }
6171
6172
6173 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6174 lt_unset=unset
6175 else
6176 lt_unset=false
6177 fi
6178
6179
6180
6181
6182
6183 # test EBCDIC or ASCII
6184 case `echo X|tr X '\101'` in
6185 A) # ASCII based system
6186 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6187 lt_SP2NL='tr \040 \012'
6188 lt_NL2SP='tr \015\012 \040\040'
6189 ;;
6190 *) # EBCDIC based system
6191 lt_SP2NL='tr \100 \n'
6192 lt_NL2SP='tr \r\n \100\100'
6193 ;;
6194 esac
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6205 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6206 if ${lt_cv_ld_reload_flag+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 lt_cv_ld_reload_flag='-r'
6210 fi
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6212 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6213 reload_flag=$lt_cv_ld_reload_flag
6214 case $reload_flag in
6215 "" | " "*) ;;
6216 *) reload_flag=" $reload_flag" ;;
6217 esac
6218 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6219 case $host_os in
6220 darwin*)
6221 if test "$GCC" = yes; then
6222 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6223 else
6224 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6225 fi
6226 ;;
6227 esac
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237 if test -n "$ac_tool_prefix"; then
6238 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6239 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_prog_OBJDUMP+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 if test -n "$OBJDUMP"; then
6246 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6258 fi
6259 done
6260 done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 OBJDUMP=$ac_cv_prog_OBJDUMP
6266 if test -n "$OBJDUMP"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6268 $as_echo "$OBJDUMP" >&6; }
6269 else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273
6274
6275 fi
6276 if test -z "$ac_cv_prog_OBJDUMP"; then
6277 ac_ct_OBJDUMP=$OBJDUMP
6278 # Extract the first word of "objdump", so it can be a program name with args.
6279 set dummy objdump; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 if test -n "$ac_ct_OBJDUMP"; then
6286 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299 done
6300 done
6301 IFS=$as_save_IFS
6302
6303 fi
6304 fi
6305 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6306 if test -n "$ac_ct_OBJDUMP"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6308 $as_echo "$ac_ct_OBJDUMP" >&6; }
6309 else
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6312 fi
6313
6314 if test "x$ac_ct_OBJDUMP" = x; then
6315 OBJDUMP="false"
6316 else
6317 case $cross_compiling:$ac_tool_warned in
6318 yes:)
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6321 ac_tool_warned=yes ;;
6322 esac
6323 OBJDUMP=$ac_ct_OBJDUMP
6324 fi
6325 else
6326 OBJDUMP="$ac_cv_prog_OBJDUMP"
6327 fi
6328
6329 test -z "$OBJDUMP" && OBJDUMP=objdump
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6340 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6341 if ${lt_cv_deplibs_check_method+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 lt_cv_file_magic_cmd='$MAGIC_CMD'
6345 lt_cv_file_magic_test_file=
6346 lt_cv_deplibs_check_method='unknown'
6347 # Need to set the preceding variable on all platforms that support
6348 # interlibrary dependencies.
6349 # 'none' -- dependencies not supported.
6350 # `unknown' -- same as none, but documents that we really don't know.
6351 # 'pass_all' -- all dependencies passed with no checks.
6352 # 'test_compile' -- check by making test program.
6353 # 'file_magic [[regex]]' -- check by looking for files in library path
6354 # which responds to the $file_magic_cmd with a given extended regex.
6355 # If you have `file' or equivalent on your system and you're not sure
6356 # whether `pass_all' will *always* work, you probably want this one.
6357
6358 case $host_os in
6359 aix[4-9]*)
6360 lt_cv_deplibs_check_method=pass_all
6361 ;;
6362
6363 beos*)
6364 lt_cv_deplibs_check_method=pass_all
6365 ;;
6366
6367 bsdi[45]*)
6368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6369 lt_cv_file_magic_cmd='/usr/bin/file -L'
6370 lt_cv_file_magic_test_file=/shlib/libc.so
6371 ;;
6372
6373 cygwin*)
6374 # func_win32_libid is a shell function defined in ltmain.sh
6375 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6376 lt_cv_file_magic_cmd='func_win32_libid'
6377 ;;
6378
6379 mingw* | pw32*)
6380 # Base MSYS/MinGW do not provide the 'file' command needed by
6381 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6382 # unless we find 'file', for example because we are cross-compiling.
6383 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6384 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6385 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6386 lt_cv_file_magic_cmd='func_win32_libid'
6387 else
6388 # Keep this pattern in sync with the one in func_win32_libid.
6389 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6390 lt_cv_file_magic_cmd='$OBJDUMP -f'
6391 fi
6392 ;;
6393
6394 cegcc*)
6395 # use the weaker test based on 'objdump'. See mingw*.
6396 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6397 lt_cv_file_magic_cmd='$OBJDUMP -f'
6398 ;;
6399
6400 darwin* | rhapsody*)
6401 lt_cv_deplibs_check_method=pass_all
6402 ;;
6403
6404 freebsd* | dragonfly*)
6405 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6406 case $host_cpu in
6407 i*86 )
6408 # Not sure whether the presence of OpenBSD here was a mistake.
6409 # Let's accept both of them until this is cleared up.
6410 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6411 lt_cv_file_magic_cmd=/usr/bin/file
6412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6413 ;;
6414 esac
6415 else
6416 lt_cv_deplibs_check_method=pass_all
6417 fi
6418 ;;
6419
6420 gnu*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424 haiku*)
6425 lt_cv_deplibs_check_method=pass_all
6426 ;;
6427
6428 hpux10.20* | hpux11*)
6429 lt_cv_file_magic_cmd=/usr/bin/file
6430 case $host_cpu in
6431 ia64*)
6432 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6433 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6434 ;;
6435 hppa*64*)
6436 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]'
6437 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6438 ;;
6439 *)
6440 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6441 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6442 ;;
6443 esac
6444 ;;
6445
6446 interix[3-9]*)
6447 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6449 ;;
6450
6451 irix5* | irix6* | nonstopux*)
6452 case $LD in
6453 *-32|*"-32 ") libmagic=32-bit;;
6454 *-n32|*"-n32 ") libmagic=N32;;
6455 *-64|*"-64 ") libmagic=64-bit;;
6456 *) libmagic=never-match;;
6457 esac
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
6460
6461 # This must be Linux ELF.
6462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465
6466 netbsd*)
6467 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6469 else
6470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6471 fi
6472 ;;
6473
6474 newos6*)
6475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6476 lt_cv_file_magic_cmd=/usr/bin/file
6477 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6478 ;;
6479
6480 *nto* | *qnx*)
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483
6484 openbsd*)
6485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6487 else
6488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6489 fi
6490 ;;
6491
6492 osf3* | osf4* | osf5*)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495
6496 rdos*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499
6500 solaris*)
6501 lt_cv_deplibs_check_method=pass_all
6502 ;;
6503
6504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507
6508 sysv4 | sysv4.3*)
6509 case $host_vendor in
6510 motorola)
6511 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]'
6512 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6513 ;;
6514 ncr)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517 sequent)
6518 lt_cv_file_magic_cmd='/bin/file'
6519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6520 ;;
6521 sni)
6522 lt_cv_file_magic_cmd='/bin/file'
6523 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6524 lt_cv_file_magic_test_file=/lib/libc.so
6525 ;;
6526 siemens)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529 pc)
6530 lt_cv_deplibs_check_method=pass_all
6531 ;;
6532 esac
6533 ;;
6534
6535 tpf*)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538 esac
6539
6540 fi
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6542 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6543 file_magic_cmd=$lt_cv_file_magic_cmd
6544 deplibs_check_method=$lt_cv_deplibs_check_method
6545 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558 if test -n "$ac_tool_prefix"; then
6559 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}ar; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if ${ac_cv_prog_AR+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 if test -n "$AR"; then
6567 ac_cv_prog_AR="$AR" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_prog_AR="${ac_tool_prefix}ar"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6579 fi
6580 done
6581 done
6582 IFS=$as_save_IFS
6583
6584 fi
6585 fi
6586 AR=$ac_cv_prog_AR
6587 if test -n "$AR"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6589 $as_echo "$AR" >&6; }
6590 else
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6593 fi
6594
6595
6596 fi
6597 if test -z "$ac_cv_prog_AR"; then
6598 ac_ct_AR=$AR
6599 # Extract the first word of "ar", so it can be a program name with args.
6600 set dummy ar; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 if test -n "$ac_ct_AR"; then
6607 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616 ac_cv_prog_ac_ct_AR="ar"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6619 fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6627 if test -n "$ac_ct_AR"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6629 $as_echo "$ac_ct_AR" >&6; }
6630 else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635 if test "x$ac_ct_AR" = x; then
6636 AR="false"
6637 else
6638 case $cross_compiling:$ac_tool_warned in
6639 yes:)
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6642 ac_tool_warned=yes ;;
6643 esac
6644 AR=$ac_ct_AR
6645 fi
6646 else
6647 AR="$ac_cv_prog_AR"
6648 fi
6649
6650 test -z "$AR" && AR=ar
6651 test -z "$AR_FLAGS" && AR_FLAGS=cru
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663 if test -n "$ac_tool_prefix"; then
6664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6665 set dummy ${ac_tool_prefix}strip; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_STRIP+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 if test -n "$STRIP"; then
6672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 STRIP=$ac_cv_prog_STRIP
6692 if test -n "$STRIP"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6694 $as_echo "$STRIP" >&6; }
6695 else
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700
6701 fi
6702 if test -z "$ac_cv_prog_STRIP"; then
6703 ac_ct_STRIP=$STRIP
6704 # Extract the first word of "strip", so it can be a program name with args.
6705 set dummy strip; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 if test -n "$ac_ct_STRIP"; then
6712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6721 ac_cv_prog_ac_ct_STRIP="strip"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729 fi
6730 fi
6731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6732 if test -n "$ac_ct_STRIP"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6734 $as_echo "$ac_ct_STRIP" >&6; }
6735 else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739
6740 if test "x$ac_ct_STRIP" = x; then
6741 STRIP=":"
6742 else
6743 case $cross_compiling:$ac_tool_warned in
6744 yes:)
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747 ac_tool_warned=yes ;;
6748 esac
6749 STRIP=$ac_ct_STRIP
6750 fi
6751 else
6752 STRIP="$ac_cv_prog_STRIP"
6753 fi
6754
6755 test -z "$STRIP" && STRIP=:
6756
6757
6758
6759
6760
6761
6762 if test -n "$ac_tool_prefix"; then
6763 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6764 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_RANLIB+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 if test -n "$RANLIB"; then
6771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 RANLIB=$ac_cv_prog_RANLIB
6791 if test -n "$RANLIB"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6793 $as_echo "$RANLIB" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798
6799
6800 fi
6801 if test -z "$ac_cv_prog_RANLIB"; then
6802 ac_ct_RANLIB=$RANLIB
6803 # Extract the first word of "ranlib", so it can be a program name with args.
6804 set dummy ranlib; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 if test -n "$ac_ct_RANLIB"; then
6811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6820 ac_cv_prog_ac_ct_RANLIB="ranlib"
6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6823 fi
6824 done
6825 done
6826 IFS=$as_save_IFS
6827
6828 fi
6829 fi
6830 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6831 if test -n "$ac_ct_RANLIB"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6833 $as_echo "$ac_ct_RANLIB" >&6; }
6834 else
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6837 fi
6838
6839 if test "x$ac_ct_RANLIB" = x; then
6840 RANLIB=":"
6841 else
6842 case $cross_compiling:$ac_tool_warned in
6843 yes:)
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6846 ac_tool_warned=yes ;;
6847 esac
6848 RANLIB=$ac_ct_RANLIB
6849 fi
6850 else
6851 RANLIB="$ac_cv_prog_RANLIB"
6852 fi
6853
6854 test -z "$RANLIB" && RANLIB=:
6855
6856
6857
6858
6859
6860
6861 # Determine commands to create old-style static archives.
6862 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6863 old_postinstall_cmds='chmod 644 $oldlib'
6864 old_postuninstall_cmds=
6865
6866 if test -n "$RANLIB"; then
6867 case $host_os in
6868 openbsd*)
6869 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6870 ;;
6871 *)
6872 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6873 ;;
6874 esac
6875 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6876 fi
6877
6878 case $host_os in
6879 darwin*)
6880 lock_old_archive_extraction=yes ;;
6881 *)
6882 lock_old_archive_extraction=no ;;
6883 esac
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923 # If no C compiler was specified, use CC.
6924 LTCC=${LTCC-"$CC"}
6925
6926 # If no C compiler flags were specified, use CFLAGS.
6927 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6928
6929 # Allow CC to be a program name with arguments.
6930 compiler=$CC
6931
6932
6933 # Check for command to grab the raw symbol name followed by C symbol from nm.
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6935 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6936 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939
6940 # These are sane defaults that work on at least a few old systems.
6941 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6942
6943 # Character class describing NM global symbol codes.
6944 symcode='[BCDEGRST]'
6945
6946 # Regexp to match symbols that can be accessed directly from C.
6947 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6948
6949 # Define system-specific variables.
6950 case $host_os in
6951 aix*)
6952 symcode='[BCDT]'
6953 ;;
6954 cygwin* | mingw* | pw32* | cegcc*)
6955 symcode='[ABCDGISTW]'
6956 ;;
6957 hpux*)
6958 if test "$host_cpu" = ia64; then
6959 symcode='[ABCDEGRST]'
6960 fi
6961 ;;
6962 irix* | nonstopux*)
6963 symcode='[BCDEGRST]'
6964 ;;
6965 osf*)
6966 symcode='[BCDEGQRST]'
6967 ;;
6968 solaris*)
6969 symcode='[BDRT]'
6970 ;;
6971 sco3.2v5*)
6972 symcode='[DT]'
6973 ;;
6974 sysv4.2uw2*)
6975 symcode='[DT]'
6976 ;;
6977 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6978 symcode='[ABDT]'
6979 ;;
6980 sysv4)
6981 symcode='[DFNSTU]'
6982 ;;
6983 esac
6984
6985 # If we're using GNU nm, then use its standard symbol codes.
6986 case `$NM -V 2>&1` in
6987 *GNU* | *'with BFD'*)
6988 symcode='[ABCDGIRSTW]' ;;
6989 esac
6990
6991 # Transform an extracted symbol line into a proper C declaration.
6992 # Some systems (esp. on ia64) link data and code symbols differently,
6993 # so use this general approach.
6994 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6995
6996 # Transform an extracted symbol line into symbol name and symbol address
6997 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6998 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'"
6999
7000 # Handle CRLF in mingw tool chain
7001 opt_cr=
7002 case $build_os in
7003 mingw*)
7004 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7005 ;;
7006 esac
7007
7008 # Try without a prefix underscore, then with it.
7009 for ac_symprfx in "" "_"; do
7010
7011 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7012 symxfrm="\\1 $ac_symprfx\\2 \\2"
7013
7014 # Write the raw and C identifiers.
7015 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7016 # Fake it for dumpbin and say T for any non-static function
7017 # and D for any global variable.
7018 # Also find C++ and __fastcall symbols from MSVC++,
7019 # which start with @ or ?.
7020 lt_cv_sys_global_symbol_pipe="$AWK '"\
7021 " {last_section=section; section=\$ 3};"\
7022 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7023 " \$ 0!~/External *\|/{next};"\
7024 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7025 " {if(hide[section]) next};"\
7026 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7027 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7028 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7029 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7030 " ' prfx=^$ac_symprfx"
7031 else
7032 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7033 fi
7034
7035 # Check to see that the pipe works correctly.
7036 pipe_works=no
7037
7038 rm -f conftest*
7039 cat > conftest.$ac_ext <<_LT_EOF
7040 #ifdef __cplusplus
7041 extern "C" {
7042 #endif
7043 char nm_test_var;
7044 void nm_test_func(void);
7045 void nm_test_func(void){}
7046 #ifdef __cplusplus
7047 }
7048 #endif
7049 int main(){nm_test_var='a';nm_test_func();return(0);}
7050 _LT_EOF
7051
7052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7053 (eval $ac_compile) 2>&5
7054 ac_status=$?
7055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7056 test $ac_status = 0; }; then
7057 # Now try to grab the symbols.
7058 nlist=conftest.nm
7059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7060 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7061 ac_status=$?
7062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7063 test $ac_status = 0; } && test -s "$nlist"; then
7064 # Try sorting and uniquifying the output.
7065 if sort "$nlist" | uniq > "$nlist"T; then
7066 mv -f "$nlist"T "$nlist"
7067 else
7068 rm -f "$nlist"T
7069 fi
7070
7071 # Make sure that we snagged all the symbols we need.
7072 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7073 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7074 cat <<_LT_EOF > conftest.$ac_ext
7075 #ifdef __cplusplus
7076 extern "C" {
7077 #endif
7078
7079 _LT_EOF
7080 # Now generate the symbol file.
7081 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7082
7083 cat <<_LT_EOF >> conftest.$ac_ext
7084
7085 /* The mapping between symbol names and symbols. */
7086 const struct {
7087 const char *name;
7088 void *address;
7089 }
7090 lt__PROGRAM__LTX_preloaded_symbols[] =
7091 {
7092 { "@PROGRAM@", (void *) 0 },
7093 _LT_EOF
7094 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7095 cat <<\_LT_EOF >> conftest.$ac_ext
7096 {0, (void *) 0}
7097 };
7098
7099 /* This works around a problem in FreeBSD linker */
7100 #ifdef FREEBSD_WORKAROUND
7101 static const void *lt_preloaded_setup() {
7102 return lt__PROGRAM__LTX_preloaded_symbols;
7103 }
7104 #endif
7105
7106 #ifdef __cplusplus
7107 }
7108 #endif
7109 _LT_EOF
7110 # Now try linking the two files.
7111 mv conftest.$ac_objext conftstm.$ac_objext
7112 lt_save_LIBS="$LIBS"
7113 lt_save_CFLAGS="$CFLAGS"
7114 LIBS="conftstm.$ac_objext"
7115 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7117 (eval $ac_link) 2>&5
7118 ac_status=$?
7119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7120 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7121 pipe_works=yes
7122 fi
7123 LIBS="$lt_save_LIBS"
7124 CFLAGS="$lt_save_CFLAGS"
7125 else
7126 echo "cannot find nm_test_func in $nlist" >&5
7127 fi
7128 else
7129 echo "cannot find nm_test_var in $nlist" >&5
7130 fi
7131 else
7132 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7133 fi
7134 else
7135 echo "$progname: failed program was:" >&5
7136 cat conftest.$ac_ext >&5
7137 fi
7138 rm -rf conftest* conftst*
7139
7140 # Do not use the global_symbol_pipe unless it works.
7141 if test "$pipe_works" = yes; then
7142 break
7143 else
7144 lt_cv_sys_global_symbol_pipe=
7145 fi
7146 done
7147
7148 fi
7149
7150 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7151 lt_cv_sys_global_symbol_to_cdecl=
7152 fi
7153 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7155 $as_echo "failed" >&6; }
7156 else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7158 $as_echo "ok" >&6; }
7159 fi
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182 # Check whether --enable-libtool-lock was given.
7183 if test "${enable_libtool_lock+set}" = set; then :
7184 enableval=$enable_libtool_lock;
7185 fi
7186
7187 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7188
7189 # Some flags need to be propagated to the compiler or linker for good
7190 # libtool support.
7191 case $host in
7192 ia64-*-hpux*)
7193 # Find out which ABI we are using.
7194 echo 'int i;' > conftest.$ac_ext
7195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7196 (eval $ac_compile) 2>&5
7197 ac_status=$?
7198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7199 test $ac_status = 0; }; then
7200 case `/usr/bin/file conftest.$ac_objext` in
7201 *ELF-32*)
7202 HPUX_IA64_MODE="32"
7203 ;;
7204 *ELF-64*)
7205 HPUX_IA64_MODE="64"
7206 ;;
7207 esac
7208 fi
7209 rm -rf conftest*
7210 ;;
7211 *-*-irix6*)
7212 # Find out which ABI we are using.
7213 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7215 (eval $ac_compile) 2>&5
7216 ac_status=$?
7217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7218 test $ac_status = 0; }; then
7219 if test "$lt_cv_prog_gnu_ld" = yes; then
7220 case `/usr/bin/file conftest.$ac_objext` in
7221 *32-bit*)
7222 LD="${LD-ld} -melf32bsmip"
7223 ;;
7224 *N32*)
7225 LD="${LD-ld} -melf32bmipn32"
7226 ;;
7227 *64-bit*)
7228 LD="${LD-ld} -melf64bmip"
7229 ;;
7230 esac
7231 else
7232 case `/usr/bin/file conftest.$ac_objext` in
7233 *32-bit*)
7234 LD="${LD-ld} -32"
7235 ;;
7236 *N32*)
7237 LD="${LD-ld} -n32"
7238 ;;
7239 *64-bit*)
7240 LD="${LD-ld} -64"
7241 ;;
7242 esac
7243 fi
7244 fi
7245 rm -rf conftest*
7246 ;;
7247
7248 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7249 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7250 # Find out which ABI we are using.
7251 echo 'int i;' > conftest.$ac_ext
7252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7253 (eval $ac_compile) 2>&5
7254 ac_status=$?
7255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256 test $ac_status = 0; }; then
7257 case `/usr/bin/file conftest.o` in
7258 *32-bit*)
7259 case $host in
7260 x86_64-*kfreebsd*-gnu)
7261 LD="${LD-ld} -m elf_i386_fbsd"
7262 ;;
7263 x86_64-*linux*)
7264 LD="${LD-ld} -m elf_i386"
7265 ;;
7266 ppc64-*linux*|powerpc64-*linux*)
7267 LD="${LD-ld} -m elf32ppclinux"
7268 ;;
7269 s390x-*linux*)
7270 LD="${LD-ld} -m elf_s390"
7271 ;;
7272 sparc64-*linux*)
7273 LD="${LD-ld} -m elf32_sparc"
7274 ;;
7275 esac
7276 ;;
7277 *64-bit*)
7278 case $host in
7279 x86_64-*kfreebsd*-gnu)
7280 LD="${LD-ld} -m elf_x86_64_fbsd"
7281 ;;
7282 x86_64-*linux*)
7283 LD="${LD-ld} -m elf_x86_64"
7284 ;;
7285 ppc*-*linux*|powerpc*-*linux*)
7286 LD="${LD-ld} -m elf64ppc"
7287 ;;
7288 s390*-*linux*|s390*-*tpf*)
7289 LD="${LD-ld} -m elf64_s390"
7290 ;;
7291 sparc*-*linux*)
7292 LD="${LD-ld} -m elf64_sparc"
7293 ;;
7294 esac
7295 ;;
7296 esac
7297 fi
7298 rm -rf conftest*
7299 ;;
7300
7301 *-*-sco3.2v5*)
7302 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7303 SAVE_CFLAGS="$CFLAGS"
7304 CFLAGS="$CFLAGS -belf"
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7306 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7307 if ${lt_cv_cc_needs_belf+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 ac_ext=c
7311 ac_cpp='$CPP $CPPFLAGS'
7312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318
7319 int
7320 main ()
7321 {
7322
7323 ;
7324 return 0;
7325 }
7326 _ACEOF
7327 if ac_fn_c_try_link "$LINENO"; then :
7328 lt_cv_cc_needs_belf=yes
7329 else
7330 lt_cv_cc_needs_belf=no
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext \
7333 conftest$ac_exeext conftest.$ac_ext
7334 ac_ext=c
7335 ac_cpp='$CPP $CPPFLAGS'
7336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339
7340 fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7342 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7343 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7344 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7345 CFLAGS="$SAVE_CFLAGS"
7346 fi
7347 ;;
7348 sparc*-*solaris*)
7349 # Find out which ABI we are using.
7350 echo 'int i;' > conftest.$ac_ext
7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352 (eval $ac_compile) 2>&5
7353 ac_status=$?
7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355 test $ac_status = 0; }; then
7356 case `/usr/bin/file conftest.o` in
7357 *64-bit*)
7358 case $lt_cv_prog_gnu_ld in
7359 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7360 *)
7361 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7362 LD="${LD-ld} -64"
7363 fi
7364 ;;
7365 esac
7366 ;;
7367 esac
7368 fi
7369 rm -rf conftest*
7370 ;;
7371 esac
7372
7373 need_locks="$enable_libtool_lock"
7374
7375
7376 case $host_os in
7377 rhapsody* | darwin*)
7378 if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 if test -n "$DSYMUTIL"; then
7387 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404 fi
7405 fi
7406 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7407 if test -n "$DSYMUTIL"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7409 $as_echo "$DSYMUTIL" >&6; }
7410 else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7413 fi
7414
7415
7416 fi
7417 if test -z "$ac_cv_prog_DSYMUTIL"; then
7418 ac_ct_DSYMUTIL=$DSYMUTIL
7419 # Extract the first word of "dsymutil", so it can be a program name with args.
7420 set dummy dsymutil; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 if test -n "$ac_ct_DSYMUTIL"; then
7427 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440 done
7441 done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7447 if test -n "$ac_ct_DSYMUTIL"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7449 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454
7455 if test "x$ac_ct_DSYMUTIL" = x; then
7456 DSYMUTIL=":"
7457 else
7458 case $cross_compiling:$ac_tool_warned in
7459 yes:)
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7462 ac_tool_warned=yes ;;
7463 esac
7464 DSYMUTIL=$ac_ct_DSYMUTIL
7465 fi
7466 else
7467 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7468 fi
7469
7470 if test -n "$ac_tool_prefix"; then
7471 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7472 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if ${ac_cv_prog_NMEDIT+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 if test -n "$NMEDIT"; then
7479 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7480 else
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7488 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492 done
7493 done
7494 IFS=$as_save_IFS
7495
7496 fi
7497 fi
7498 NMEDIT=$ac_cv_prog_NMEDIT
7499 if test -n "$NMEDIT"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7501 $as_echo "$NMEDIT" >&6; }
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7505 fi
7506
7507
7508 fi
7509 if test -z "$ac_cv_prog_NMEDIT"; then
7510 ac_ct_NMEDIT=$NMEDIT
7511 # Extract the first word of "nmedit", so it can be a program name with args.
7512 set dummy nmedit; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 if test -n "$ac_ct_NMEDIT"; then
7519 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7531 fi
7532 done
7533 done
7534 IFS=$as_save_IFS
7535
7536 fi
7537 fi
7538 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7539 if test -n "$ac_ct_NMEDIT"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7541 $as_echo "$ac_ct_NMEDIT" >&6; }
7542 else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7545 fi
7546
7547 if test "x$ac_ct_NMEDIT" = x; then
7548 NMEDIT=":"
7549 else
7550 case $cross_compiling:$ac_tool_warned in
7551 yes:)
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7554 ac_tool_warned=yes ;;
7555 esac
7556 NMEDIT=$ac_ct_NMEDIT
7557 fi
7558 else
7559 NMEDIT="$ac_cv_prog_NMEDIT"
7560 fi
7561
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7564 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_prog_LIPO+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 if test -n "$LIPO"; then
7571 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7572 else
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7575 do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7580 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584 done
7585 done
7586 IFS=$as_save_IFS
7587
7588 fi
7589 fi
7590 LIPO=$ac_cv_prog_LIPO
7591 if test -n "$LIPO"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7593 $as_echo "$LIPO" >&6; }
7594 else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598
7599
7600 fi
7601 if test -z "$ac_cv_prog_LIPO"; then
7602 ac_ct_LIPO=$LIPO
7603 # Extract the first word of "lipo", so it can be a program name with args.
7604 set dummy lipo; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 if test -n "$ac_ct_LIPO"; then
7611 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620 ac_cv_prog_ac_ct_LIPO="lipo"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7623 fi
7624 done
7625 done
7626 IFS=$as_save_IFS
7627
7628 fi
7629 fi
7630 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7631 if test -n "$ac_ct_LIPO"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7633 $as_echo "$ac_ct_LIPO" >&6; }
7634 else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7637 fi
7638
7639 if test "x$ac_ct_LIPO" = x; then
7640 LIPO=":"
7641 else
7642 case $cross_compiling:$ac_tool_warned in
7643 yes:)
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646 ac_tool_warned=yes ;;
7647 esac
7648 LIPO=$ac_ct_LIPO
7649 fi
7650 else
7651 LIPO="$ac_cv_prog_LIPO"
7652 fi
7653
7654 if test -n "$ac_tool_prefix"; then
7655 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7656 set dummy ${ac_tool_prefix}otool; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if ${ac_cv_prog_OTOOL+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 if test -n "$OTOOL"; then
7663 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 break 2
7675 fi
7676 done
7677 done
7678 IFS=$as_save_IFS
7679
7680 fi
7681 fi
7682 OTOOL=$ac_cv_prog_OTOOL
7683 if test -n "$OTOOL"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7685 $as_echo "$OTOOL" >&6; }
7686 else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7689 fi
7690
7691
7692 fi
7693 if test -z "$ac_cv_prog_OTOOL"; then
7694 ac_ct_OTOOL=$OTOOL
7695 # Extract the first word of "otool", so it can be a program name with args.
7696 set dummy otool; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 if test -n "$ac_ct_OTOOL"; then
7703 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_ac_ct_OTOOL="otool"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 break 2
7715 fi
7716 done
7717 done
7718 IFS=$as_save_IFS
7719
7720 fi
7721 fi
7722 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7723 if test -n "$ac_ct_OTOOL"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7725 $as_echo "$ac_ct_OTOOL" >&6; }
7726 else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730
7731 if test "x$ac_ct_OTOOL" = x; then
7732 OTOOL=":"
7733 else
7734 case $cross_compiling:$ac_tool_warned in
7735 yes:)
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738 ac_tool_warned=yes ;;
7739 esac
7740 OTOOL=$ac_ct_OTOOL
7741 fi
7742 else
7743 OTOOL="$ac_cv_prog_OTOOL"
7744 fi
7745
7746 if test -n "$ac_tool_prefix"; then
7747 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7748 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if ${ac_cv_prog_OTOOL64+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 if test -n "$OTOOL64"; then
7755 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7756 else
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 break 2
7767 fi
7768 done
7769 done
7770 IFS=$as_save_IFS
7771
7772 fi
7773 fi
7774 OTOOL64=$ac_cv_prog_OTOOL64
7775 if test -n "$OTOOL64"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7777 $as_echo "$OTOOL64" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7781 fi
7782
7783
7784 fi
7785 if test -z "$ac_cv_prog_OTOOL64"; then
7786 ac_ct_OTOOL64=$OTOOL64
7787 # Extract the first word of "otool64", so it can be a program name with args.
7788 set dummy otool64; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 if test -n "$ac_ct_OTOOL64"; then
7795 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7804 ac_cv_prog_ac_ct_OTOOL64="otool64"
7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 break 2
7807 fi
7808 done
7809 done
7810 IFS=$as_save_IFS
7811
7812 fi
7813 fi
7814 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7815 if test -n "$ac_ct_OTOOL64"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7817 $as_echo "$ac_ct_OTOOL64" >&6; }
7818 else
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7821 fi
7822
7823 if test "x$ac_ct_OTOOL64" = x; then
7824 OTOOL64=":"
7825 else
7826 case $cross_compiling:$ac_tool_warned in
7827 yes:)
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7830 ac_tool_warned=yes ;;
7831 esac
7832 OTOOL64=$ac_ct_OTOOL64
7833 fi
7834 else
7835 OTOOL64="$ac_cv_prog_OTOOL64"
7836 fi
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7865 $as_echo_n "checking for -single_module linker flag... " >&6; }
7866 if ${lt_cv_apple_cc_single_mod+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 lt_cv_apple_cc_single_mod=no
7870 if test -z "${LT_MULTI_MODULE}"; then
7871 # By default we will add the -single_module flag. You can override
7872 # by either setting the environment variable LT_MULTI_MODULE
7873 # non-empty at configure time, or by adding -multi_module to the
7874 # link flags.
7875 rm -rf libconftest.dylib*
7876 echo "int foo(void){return 1;}" > conftest.c
7877 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7878 -dynamiclib -Wl,-single_module conftest.c" >&5
7879 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7880 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7881 _lt_result=$?
7882 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7883 lt_cv_apple_cc_single_mod=yes
7884 else
7885 cat conftest.err >&5
7886 fi
7887 rm -rf libconftest.dylib*
7888 rm -f conftest.*
7889 fi
7890 fi
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7892 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7894 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7895 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 lt_cv_ld_exported_symbols_list=no
7899 save_LDFLAGS=$LDFLAGS
7900 echo "_main" > conftest.sym
7901 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904
7905 int
7906 main ()
7907 {
7908
7909 ;
7910 return 0;
7911 }
7912 _ACEOF
7913 if ac_fn_c_try_link "$LINENO"; then :
7914 lt_cv_ld_exported_symbols_list=yes
7915 else
7916 lt_cv_ld_exported_symbols_list=no
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext \
7919 conftest$ac_exeext conftest.$ac_ext
7920 LDFLAGS="$save_LDFLAGS"
7921
7922 fi
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7924 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7926 $as_echo_n "checking for -force_load linker flag... " >&6; }
7927 if ${lt_cv_ld_force_load+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 lt_cv_ld_force_load=no
7931 cat > conftest.c << _LT_EOF
7932 int forced_loaded() { return 2;}
7933 _LT_EOF
7934 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7935 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7936 echo "$AR cru libconftest.a conftest.o" >&5
7937 $AR cru libconftest.a conftest.o 2>&5
7938 echo "$RANLIB libconftest.a" >&5
7939 $RANLIB libconftest.a 2>&5
7940 cat > conftest.c << _LT_EOF
7941 int main() { return 0;}
7942 _LT_EOF
7943 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7944 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7945 _lt_result=$?
7946 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7947 lt_cv_ld_force_load=yes
7948 else
7949 cat conftest.err >&5
7950 fi
7951 rm -f conftest.err libconftest.a conftest conftest.c
7952 rm -rf conftest.dSYM
7953
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7956 $as_echo "$lt_cv_ld_force_load" >&6; }
7957 case $host_os in
7958 rhapsody* | darwin1.[012])
7959 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7960 darwin1.*)
7961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7962 darwin*) # darwin 5.x on
7963 # if running on 10.5 or later, the deployment target defaults
7964 # to the OS version, if on x86, and 10.4, the deployment
7965 # target defaults to 10.4. Don't you love it?
7966 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7967 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7969 10.[012]*)
7970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7971 10.*)
7972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7973 esac
7974 ;;
7975 esac
7976 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7977 _lt_dar_single_mod='$single_module'
7978 fi
7979 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7980 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7981 else
7982 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7983 fi
7984 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7985 _lt_dsymutil='~$DSYMUTIL $lib || :'
7986 else
7987 _lt_dsymutil=
7988 fi
7989 ;;
7990 esac
7991
7992 for ac_header in dlfcn.h
7993 do :
7994 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7995 "
7996 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7997 cat >>confdefs.h <<_ACEOF
7998 #define HAVE_DLFCN_H 1
7999 _ACEOF
8000
8001 fi
8002
8003 done
8004
8005
8006
8007
8008
8009 # Set options
8010
8011
8012
8013 enable_dlopen=no
8014
8015
8016 enable_win32_dll=no
8017
8018
8019 # Check whether --enable-shared was given.
8020 if test "${enable_shared+set}" = set; then :
8021 enableval=$enable_shared; p=${PACKAGE-default}
8022 case $enableval in
8023 yes) enable_shared=yes ;;
8024 no) enable_shared=no ;;
8025 *)
8026 enable_shared=no
8027 # Look at the argument we got. We use all the common list separators.
8028 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8029 for pkg in $enableval; do
8030 IFS="$lt_save_ifs"
8031 if test "X$pkg" = "X$p"; then
8032 enable_shared=yes
8033 fi
8034 done
8035 IFS="$lt_save_ifs"
8036 ;;
8037 esac
8038 else
8039 enable_shared=yes
8040 fi
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050 # Check whether --enable-static was given.
8051 if test "${enable_static+set}" = set; then :
8052 enableval=$enable_static; p=${PACKAGE-default}
8053 case $enableval in
8054 yes) enable_static=yes ;;
8055 no) enable_static=no ;;
8056 *)
8057 enable_static=no
8058 # Look at the argument we got. We use all the common list separators.
8059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8060 for pkg in $enableval; do
8061 IFS="$lt_save_ifs"
8062 if test "X$pkg" = "X$p"; then
8063 enable_static=yes
8064 fi
8065 done
8066 IFS="$lt_save_ifs"
8067 ;;
8068 esac
8069 else
8070 enable_static=yes
8071 fi
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082 # Check whether --with-pic was given.
8083 if test "${with_pic+set}" = set; then :
8084 withval=$with_pic; pic_mode="$withval"
8085 else
8086 pic_mode=default
8087 fi
8088
8089
8090 test -z "$pic_mode" && pic_mode=default
8091
8092
8093
8094
8095
8096
8097
8098 # Check whether --enable-fast-install was given.
8099 if test "${enable_fast_install+set}" = set; then :
8100 enableval=$enable_fast_install; p=${PACKAGE-default}
8101 case $enableval in
8102 yes) enable_fast_install=yes ;;
8103 no) enable_fast_install=no ;;
8104 *)
8105 enable_fast_install=no
8106 # Look at the argument we got. We use all the common list separators.
8107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8108 for pkg in $enableval; do
8109 IFS="$lt_save_ifs"
8110 if test "X$pkg" = "X$p"; then
8111 enable_fast_install=yes
8112 fi
8113 done
8114 IFS="$lt_save_ifs"
8115 ;;
8116 esac
8117 else
8118 enable_fast_install=yes
8119 fi
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131 # This can be used to rebuild libtool when needed
8132 LIBTOOL_DEPS="$ltmain"
8133
8134 # Always use our own libtool.
8135 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162 test -z "$LN_S" && LN_S="ln -s"
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177 if test -n "${ZSH_VERSION+set}" ; then
8178 setopt NO_GLOB_SUBST
8179 fi
8180
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8182 $as_echo_n "checking for objdir... " >&6; }
8183 if ${lt_cv_objdir+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 rm -f .libs 2>/dev/null
8187 mkdir .libs 2>/dev/null
8188 if test -d .libs; then
8189 lt_cv_objdir=.libs
8190 else
8191 # MS-DOS does not allow filenames that begin with a dot.
8192 lt_cv_objdir=_libs
8193 fi
8194 rmdir .libs 2>/dev/null
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8197 $as_echo "$lt_cv_objdir" >&6; }
8198 objdir=$lt_cv_objdir
8199
8200
8201
8202
8203
8204 cat >>confdefs.h <<_ACEOF
8205 #define LT_OBJDIR "$lt_cv_objdir/"
8206 _ACEOF
8207
8208
8209
8210
8211 case $host_os in
8212 aix3*)
8213 # AIX sometimes has problems with the GCC collect2 program. For some
8214 # reason, if we set the COLLECT_NAMES environment variable, the problems
8215 # vanish in a puff of smoke.
8216 if test "X${COLLECT_NAMES+set}" != Xset; then
8217 COLLECT_NAMES=
8218 export COLLECT_NAMES
8219 fi
8220 ;;
8221 esac
8222
8223 # Global variables:
8224 ofile=libtool
8225 can_build_shared=yes
8226
8227 # All known linkers require a `.a' archive for static linking (except MSVC,
8228 # which needs '.lib').
8229 libext=a
8230
8231 with_gnu_ld="$lt_cv_prog_gnu_ld"
8232
8233 old_CC="$CC"
8234 old_CFLAGS="$CFLAGS"
8235
8236 # Set sane defaults for various variables
8237 test -z "$CC" && CC=cc
8238 test -z "$LTCC" && LTCC=$CC
8239 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8240 test -z "$LD" && LD=ld
8241 test -z "$ac_objext" && ac_objext=o
8242
8243 for cc_temp in $compiler""; do
8244 case $cc_temp in
8245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8247 \-*) ;;
8248 *) break;;
8249 esac
8250 done
8251 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8252
8253
8254 # Only perform the check for file, if the check method requires it
8255 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8256 case $deplibs_check_method in
8257 file_magic*)
8258 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8260 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8261 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 case $MAGIC_CMD in
8265 [\\/*] | ?:[\\/]*)
8266 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8267 ;;
8268 *)
8269 lt_save_MAGIC_CMD="$MAGIC_CMD"
8270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8271 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8272 for ac_dir in $ac_dummy; do
8273 IFS="$lt_save_ifs"
8274 test -z "$ac_dir" && ac_dir=.
8275 if test -f $ac_dir/${ac_tool_prefix}file; then
8276 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8277 if test -n "$file_magic_test_file"; then
8278 case $deplibs_check_method in
8279 "file_magic "*)
8280 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8282 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8283 $EGREP "$file_magic_regex" > /dev/null; then
8284 :
8285 else
8286 cat <<_LT_EOF 1>&2
8287
8288 *** Warning: the command libtool uses to detect shared libraries,
8289 *** $file_magic_cmd, produces output that libtool cannot recognize.
8290 *** The result is that libtool may fail to recognize shared libraries
8291 *** as such. This will affect the creation of libtool libraries that
8292 *** depend on shared libraries, but programs linked with such libtool
8293 *** libraries will work regardless of this problem. Nevertheless, you
8294 *** may want to report the problem to your system manager and/or to
8295 *** bug-libtool@gnu.org
8296
8297 _LT_EOF
8298 fi ;;
8299 esac
8300 fi
8301 break
8302 fi
8303 done
8304 IFS="$lt_save_ifs"
8305 MAGIC_CMD="$lt_save_MAGIC_CMD"
8306 ;;
8307 esac
8308 fi
8309
8310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8311 if test -n "$MAGIC_CMD"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8313 $as_echo "$MAGIC_CMD" >&6; }
8314 else
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8317 fi
8318
8319
8320
8321
8322
8323 if test -z "$lt_cv_path_MAGIC_CMD"; then
8324 if test -n "$ac_tool_prefix"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8326 $as_echo_n "checking for file... " >&6; }
8327 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8328 $as_echo_n "(cached) " >&6
8329 else
8330 case $MAGIC_CMD in
8331 [\\/*] | ?:[\\/]*)
8332 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8333 ;;
8334 *)
8335 lt_save_MAGIC_CMD="$MAGIC_CMD"
8336 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8337 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8338 for ac_dir in $ac_dummy; do
8339 IFS="$lt_save_ifs"
8340 test -z "$ac_dir" && ac_dir=.
8341 if test -f $ac_dir/file; then
8342 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8343 if test -n "$file_magic_test_file"; then
8344 case $deplibs_check_method in
8345 "file_magic "*)
8346 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8347 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8348 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8349 $EGREP "$file_magic_regex" > /dev/null; then
8350 :
8351 else
8352 cat <<_LT_EOF 1>&2
8353
8354 *** Warning: the command libtool uses to detect shared libraries,
8355 *** $file_magic_cmd, produces output that libtool cannot recognize.
8356 *** The result is that libtool may fail to recognize shared libraries
8357 *** as such. This will affect the creation of libtool libraries that
8358 *** depend on shared libraries, but programs linked with such libtool
8359 *** libraries will work regardless of this problem. Nevertheless, you
8360 *** may want to report the problem to your system manager and/or to
8361 *** bug-libtool@gnu.org
8362
8363 _LT_EOF
8364 fi ;;
8365 esac
8366 fi
8367 break
8368 fi
8369 done
8370 IFS="$lt_save_ifs"
8371 MAGIC_CMD="$lt_save_MAGIC_CMD"
8372 ;;
8373 esac
8374 fi
8375
8376 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8377 if test -n "$MAGIC_CMD"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8379 $as_echo "$MAGIC_CMD" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8383 fi
8384
8385
8386 else
8387 MAGIC_CMD=:
8388 fi
8389 fi
8390
8391 fi
8392 ;;
8393 esac
8394
8395 # Use C for the default configuration in the libtool script
8396
8397 lt_save_CC="$CC"
8398 ac_ext=c
8399 ac_cpp='$CPP $CPPFLAGS'
8400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8403
8404
8405 # Source file extension for C test sources.
8406 ac_ext=c
8407
8408 # Object file extension for compiled C test sources.
8409 objext=o
8410 objext=$objext
8411
8412 # Code to be used in simple compile tests
8413 lt_simple_compile_test_code="int some_variable = 0;"
8414
8415 # Code to be used in simple link tests
8416 lt_simple_link_test_code='int main(){return(0);}'
8417
8418
8419
8420
8421
8422
8423
8424 # If no C compiler was specified, use CC.
8425 LTCC=${LTCC-"$CC"}
8426
8427 # If no C compiler flags were specified, use CFLAGS.
8428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8429
8430 # Allow CC to be a program name with arguments.
8431 compiler=$CC
8432
8433 # Save the default compiler, since it gets overwritten when the other
8434 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8435 compiler_DEFAULT=$CC
8436
8437 # save warnings/boilerplate of simple test code
8438 ac_outfile=conftest.$ac_objext
8439 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8440 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8441 _lt_compiler_boilerplate=`cat conftest.err`
8442 $RM conftest*
8443
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8446 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_linker_boilerplate=`cat conftest.err`
8448 $RM -r conftest*
8449
8450
8451 if test -n "$compiler"; then
8452
8453 lt_prog_compiler_no_builtin_flag=
8454
8455 if test "$GCC" = yes; then
8456 case $cc_basename in
8457 nvcc*)
8458 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8459 *)
8460 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8461 esac
8462
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8464 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8465 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 lt_cv_prog_compiler_rtti_exceptions=no
8469 ac_outfile=conftest.$ac_objext
8470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8471 lt_compiler_flag="-fno-rtti -fno-exceptions"
8472 # Insert the option either (1) after the last *FLAGS variable, or
8473 # (2) before a word containing "conftest.", or (3) at the end.
8474 # Note that $ac_compile itself does not contain backslashes and begins
8475 # with a dollar sign (not a hyphen), so the echo should work correctly.
8476 # The option is referenced via a variable to avoid confusing sed.
8477 lt_compile=`echo "$ac_compile" | $SED \
8478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8480 -e 's:$: $lt_compiler_flag:'`
8481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8482 (eval "$lt_compile" 2>conftest.err)
8483 ac_status=$?
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 if (exit $ac_status) && test -s "$ac_outfile"; then
8487 # The compiler can only warn and ignore the option if not recognized
8488 # So say no if there are warnings other than the usual output.
8489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8492 lt_cv_prog_compiler_rtti_exceptions=yes
8493 fi
8494 fi
8495 $RM conftest*
8496
8497 fi
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8499 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8500
8501 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8502 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8503 else
8504 :
8505 fi
8506
8507 fi
8508
8509
8510
8511
8512
8513
8514 lt_prog_compiler_wl=
8515 lt_prog_compiler_pic=
8516 lt_prog_compiler_static=
8517
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8519 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8520
8521 if test "$GCC" = yes; then
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_static='-static'
8524
8525 case $host_os in
8526 aix*)
8527 # All AIX code is PIC.
8528 if test "$host_cpu" = ia64; then
8529 # AIX 5 now supports IA64 processor
8530 lt_prog_compiler_static='-Bstatic'
8531 fi
8532 ;;
8533
8534 amigaos*)
8535 case $host_cpu in
8536 powerpc)
8537 # see comment about AmigaOS4 .so support
8538 lt_prog_compiler_pic='-fPIC'
8539 ;;
8540 m68k)
8541 # FIXME: we need at least 68020 code to build shared libraries, but
8542 # adding the `-m68020' flag to GCC prevents building anything better,
8543 # like `-m68040'.
8544 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8545 ;;
8546 esac
8547 ;;
8548
8549 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8550 # PIC is the default for these OSes.
8551 ;;
8552
8553 mingw* | cygwin* | pw32* | os2* | cegcc*)
8554 # This hack is so that the source file can tell whether it is being
8555 # built for inclusion in a dll (and should export symbols for example).
8556 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8557 # (--disable-auto-import) libraries
8558 lt_prog_compiler_pic='-DDLL_EXPORT'
8559 ;;
8560
8561 darwin* | rhapsody*)
8562 # PIC is the default on this platform
8563 # Common symbols not allowed in MH_DYLIB files
8564 lt_prog_compiler_pic='-fno-common'
8565 ;;
8566
8567 haiku*)
8568 # PIC is the default for Haiku.
8569 # The "-static" flag exists, but is broken.
8570 lt_prog_compiler_static=
8571 ;;
8572
8573 hpux*)
8574 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8575 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8576 # sets the default TLS model and affects inlining.
8577 case $host_cpu in
8578 hppa*64*)
8579 # +Z the default
8580 ;;
8581 *)
8582 lt_prog_compiler_pic='-fPIC'
8583 ;;
8584 esac
8585 ;;
8586
8587 interix[3-9]*)
8588 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8589 # Instead, we relocate shared libraries at runtime.
8590 ;;
8591
8592 msdosdjgpp*)
8593 # Just because we use GCC doesn't mean we suddenly get shared libraries
8594 # on systems that don't support them.
8595 lt_prog_compiler_can_build_shared=no
8596 enable_shared=no
8597 ;;
8598
8599 *nto* | *qnx*)
8600 # QNX uses GNU C++, but need to define -shared option too, otherwise
8601 # it will coredump.
8602 lt_prog_compiler_pic='-fPIC -shared'
8603 ;;
8604
8605 sysv4*MP*)
8606 if test -d /usr/nec; then
8607 lt_prog_compiler_pic=-Kconform_pic
8608 fi
8609 ;;
8610
8611 *)
8612 lt_prog_compiler_pic='-fPIC'
8613 ;;
8614 esac
8615
8616 case $cc_basename in
8617 nvcc*) # Cuda Compiler Driver 2.2
8618 lt_prog_compiler_wl='-Xlinker '
8619 lt_prog_compiler_pic='-Xcompiler -fPIC'
8620 ;;
8621 esac
8622 else
8623 # PORTME Check for flag to pass linker flags through the system compiler.
8624 case $host_os in
8625 aix*)
8626 lt_prog_compiler_wl='-Wl,'
8627 if test "$host_cpu" = ia64; then
8628 # AIX 5 now supports IA64 processor
8629 lt_prog_compiler_static='-Bstatic'
8630 else
8631 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8632 fi
8633 ;;
8634
8635 mingw* | cygwin* | pw32* | os2* | cegcc*)
8636 # This hack is so that the source file can tell whether it is being
8637 # built for inclusion in a dll (and should export symbols for example).
8638 lt_prog_compiler_pic='-DDLL_EXPORT'
8639 ;;
8640
8641 hpux9* | hpux10* | hpux11*)
8642 lt_prog_compiler_wl='-Wl,'
8643 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8644 # not for PA HP-UX.
8645 case $host_cpu in
8646 hppa*64*|ia64*)
8647 # +Z the default
8648 ;;
8649 *)
8650 lt_prog_compiler_pic='+Z'
8651 ;;
8652 esac
8653 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8654 lt_prog_compiler_static='${wl}-a ${wl}archive'
8655 ;;
8656
8657 irix5* | irix6* | nonstopux*)
8658 lt_prog_compiler_wl='-Wl,'
8659 # PIC (with -KPIC) is the default.
8660 lt_prog_compiler_static='-non_shared'
8661 ;;
8662
8663 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8664 case $cc_basename in
8665 # old Intel for x86_64 which still supported -KPIC.
8666 ecc*)
8667 lt_prog_compiler_wl='-Wl,'
8668 lt_prog_compiler_pic='-KPIC'
8669 lt_prog_compiler_static='-static'
8670 ;;
8671 # icc used to be incompatible with GCC.
8672 # ICC 10 doesn't accept -KPIC any more.
8673 icc* | ifort*)
8674 lt_prog_compiler_wl='-Wl,'
8675 lt_prog_compiler_pic='-fPIC'
8676 lt_prog_compiler_static='-static'
8677 ;;
8678 # Lahey Fortran 8.1.
8679 lf95*)
8680 lt_prog_compiler_wl='-Wl,'
8681 lt_prog_compiler_pic='--shared'
8682 lt_prog_compiler_static='--static'
8683 ;;
8684 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8685 # Portland Group compilers (*not* the Pentium gcc compiler,
8686 # which looks to be a dead project)
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_pic='-fpic'
8689 lt_prog_compiler_static='-Bstatic'
8690 ;;
8691 ccc*)
8692 lt_prog_compiler_wl='-Wl,'
8693 # All Alpha code is PIC.
8694 lt_prog_compiler_static='-non_shared'
8695 ;;
8696 xl* | bgxl* | bgf* | mpixl*)
8697 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-qpic'
8700 lt_prog_compiler_static='-qstaticlink'
8701 ;;
8702 *)
8703 case `$CC -V 2>&1 | sed 5q` in
8704 *Sun\ F* | *Sun*Fortran*)
8705 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8706 lt_prog_compiler_pic='-KPIC'
8707 lt_prog_compiler_static='-Bstatic'
8708 lt_prog_compiler_wl=''
8709 ;;
8710 *Sun\ C*)
8711 # Sun C 5.9
8712 lt_prog_compiler_pic='-KPIC'
8713 lt_prog_compiler_static='-Bstatic'
8714 lt_prog_compiler_wl='-Wl,'
8715 ;;
8716 esac
8717 ;;
8718 esac
8719 ;;
8720
8721 newsos6)
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8724 ;;
8725
8726 *nto* | *qnx*)
8727 # QNX uses GNU C++, but need to define -shared option too, otherwise
8728 # it will coredump.
8729 lt_prog_compiler_pic='-fPIC -shared'
8730 ;;
8731
8732 osf3* | osf4* | osf5*)
8733 lt_prog_compiler_wl='-Wl,'
8734 # All OSF/1 code is PIC.
8735 lt_prog_compiler_static='-non_shared'
8736 ;;
8737
8738 rdos*)
8739 lt_prog_compiler_static='-non_shared'
8740 ;;
8741
8742 solaris*)
8743 lt_prog_compiler_pic='-KPIC'
8744 lt_prog_compiler_static='-Bstatic'
8745 case $cc_basename in
8746 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8747 lt_prog_compiler_wl='-Qoption ld ';;
8748 *)
8749 lt_prog_compiler_wl='-Wl,';;
8750 esac
8751 ;;
8752
8753 sunos4*)
8754 lt_prog_compiler_wl='-Qoption ld '
8755 lt_prog_compiler_pic='-PIC'
8756 lt_prog_compiler_static='-Bstatic'
8757 ;;
8758
8759 sysv4 | sysv4.2uw2* | sysv4.3*)
8760 lt_prog_compiler_wl='-Wl,'
8761 lt_prog_compiler_pic='-KPIC'
8762 lt_prog_compiler_static='-Bstatic'
8763 ;;
8764
8765 sysv4*MP*)
8766 if test -d /usr/nec ;then
8767 lt_prog_compiler_pic='-Kconform_pic'
8768 lt_prog_compiler_static='-Bstatic'
8769 fi
8770 ;;
8771
8772 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-Bstatic'
8776 ;;
8777
8778 unicos*)
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_can_build_shared=no
8781 ;;
8782
8783 uts4*)
8784 lt_prog_compiler_pic='-pic'
8785 lt_prog_compiler_static='-Bstatic'
8786 ;;
8787
8788 *)
8789 lt_prog_compiler_can_build_shared=no
8790 ;;
8791 esac
8792 fi
8793
8794 case $host_os in
8795 # For platforms which do not support PIC, -DPIC is meaningless:
8796 *djgpp*)
8797 lt_prog_compiler_pic=
8798 ;;
8799 *)
8800 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8801 ;;
8802 esac
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8804 $as_echo "$lt_prog_compiler_pic" >&6; }
8805
8806
8807
8808
8809
8810
8811 #
8812 # Check to make sure the PIC flag actually works.
8813 #
8814 if test -n "$lt_prog_compiler_pic"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8816 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8817 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 lt_cv_prog_compiler_pic_works=no
8821 ac_outfile=conftest.$ac_objext
8822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8823 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8824 # Insert the option either (1) after the last *FLAGS variable, or
8825 # (2) before a word containing "conftest.", or (3) at the end.
8826 # Note that $ac_compile itself does not contain backslashes and begins
8827 # with a dollar sign (not a hyphen), so the echo should work correctly.
8828 # The option is referenced via a variable to avoid confusing sed.
8829 lt_compile=`echo "$ac_compile" | $SED \
8830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8832 -e 's:$: $lt_compiler_flag:'`
8833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8834 (eval "$lt_compile" 2>conftest.err)
8835 ac_status=$?
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 if (exit $ac_status) && test -s "$ac_outfile"; then
8839 # The compiler can only warn and ignore the option if not recognized
8840 # So say no if there are warnings other than the usual output.
8841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8844 lt_cv_prog_compiler_pic_works=yes
8845 fi
8846 fi
8847 $RM conftest*
8848
8849 fi
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8851 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8852
8853 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8854 case $lt_prog_compiler_pic in
8855 "" | " "*) ;;
8856 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8857 esac
8858 else
8859 lt_prog_compiler_pic=
8860 lt_prog_compiler_can_build_shared=no
8861 fi
8862
8863 fi
8864
8865
8866
8867
8868
8869
8870 #
8871 # Check to make sure the static flag actually works.
8872 #
8873 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8875 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8876 if ${lt_cv_prog_compiler_static_works+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 lt_cv_prog_compiler_static_works=no
8880 save_LDFLAGS="$LDFLAGS"
8881 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8882 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8883 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8884 # The linker can only warn and ignore the option if not recognized
8885 # So say no if there are warnings
8886 if test -s conftest.err; then
8887 # Append any errors to the config.log.
8888 cat conftest.err 1>&5
8889 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8891 if diff conftest.exp conftest.er2 >/dev/null; then
8892 lt_cv_prog_compiler_static_works=yes
8893 fi
8894 else
8895 lt_cv_prog_compiler_static_works=yes
8896 fi
8897 fi
8898 $RM -r conftest*
8899 LDFLAGS="$save_LDFLAGS"
8900
8901 fi
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8903 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8904
8905 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8906 :
8907 else
8908 lt_prog_compiler_static=
8909 fi
8910
8911
8912
8913
8914
8915
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8918 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8919 if ${lt_cv_prog_compiler_c_o+:} false; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 lt_cv_prog_compiler_c_o=no
8923 $RM -r conftest 2>/dev/null
8924 mkdir conftest
8925 cd conftest
8926 mkdir out
8927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8928
8929 lt_compiler_flag="-o out/conftest2.$ac_objext"
8930 # Insert the option either (1) after the last *FLAGS variable, or
8931 # (2) before a word containing "conftest.", or (3) at the end.
8932 # Note that $ac_compile itself does not contain backslashes and begins
8933 # with a dollar sign (not a hyphen), so the echo should work correctly.
8934 lt_compile=`echo "$ac_compile" | $SED \
8935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8937 -e 's:$: $lt_compiler_flag:'`
8938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8939 (eval "$lt_compile" 2>out/conftest.err)
8940 ac_status=$?
8941 cat out/conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8944 then
8945 # The compiler can only warn and ignore the option if not recognized
8946 # So say no if there are warnings
8947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8950 lt_cv_prog_compiler_c_o=yes
8951 fi
8952 fi
8953 chmod u+w . 2>&5
8954 $RM conftest*
8955 # SGI C++ compiler will create directory out/ii_files/ for
8956 # template instantiation
8957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8958 $RM out/* && rmdir out
8959 cd ..
8960 $RM -r conftest
8961 $RM conftest*
8962
8963 fi
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8965 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8966
8967
8968
8969
8970
8971
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8973 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8974 if ${lt_cv_prog_compiler_c_o+:} false; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 lt_cv_prog_compiler_c_o=no
8978 $RM -r conftest 2>/dev/null
8979 mkdir conftest
8980 cd conftest
8981 mkdir out
8982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8983
8984 lt_compiler_flag="-o out/conftest2.$ac_objext"
8985 # Insert the option either (1) after the last *FLAGS variable, or
8986 # (2) before a word containing "conftest.", or (3) at the end.
8987 # Note that $ac_compile itself does not contain backslashes and begins
8988 # with a dollar sign (not a hyphen), so the echo should work correctly.
8989 lt_compile=`echo "$ac_compile" | $SED \
8990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8992 -e 's:$: $lt_compiler_flag:'`
8993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8994 (eval "$lt_compile" 2>out/conftest.err)
8995 ac_status=$?
8996 cat out/conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8999 then
9000 # The compiler can only warn and ignore the option if not recognized
9001 # So say no if there are warnings
9002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9005 lt_cv_prog_compiler_c_o=yes
9006 fi
9007 fi
9008 chmod u+w . 2>&5
9009 $RM conftest*
9010 # SGI C++ compiler will create directory out/ii_files/ for
9011 # template instantiation
9012 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9013 $RM out/* && rmdir out
9014 cd ..
9015 $RM -r conftest
9016 $RM conftest*
9017
9018 fi
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9020 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9021
9022
9023
9024
9025 hard_links="nottested"
9026 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9027 # do not overwrite the value of need_locks provided by the user
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9029 $as_echo_n "checking if we can lock with hard links... " >&6; }
9030 hard_links=yes
9031 $RM conftest*
9032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9033 touch conftest.a
9034 ln conftest.a conftest.b 2>&5 || hard_links=no
9035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9037 $as_echo "$hard_links" >&6; }
9038 if test "$hard_links" = no; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9040 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9041 need_locks=warn
9042 fi
9043 else
9044 need_locks=no
9045 fi
9046
9047
9048
9049
9050
9051
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9053 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9054
9055 runpath_var=
9056 allow_undefined_flag=
9057 always_export_symbols=no
9058 archive_cmds=
9059 archive_expsym_cmds=
9060 compiler_needs_object=no
9061 enable_shared_with_static_runtimes=no
9062 export_dynamic_flag_spec=
9063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9064 hardcode_automatic=no
9065 hardcode_direct=no
9066 hardcode_direct_absolute=no
9067 hardcode_libdir_flag_spec=
9068 hardcode_libdir_flag_spec_ld=
9069 hardcode_libdir_separator=
9070 hardcode_minus_L=no
9071 hardcode_shlibpath_var=unsupported
9072 inherit_rpath=no
9073 link_all_deplibs=unknown
9074 module_cmds=
9075 module_expsym_cmds=
9076 old_archive_from_new_cmds=
9077 old_archive_from_expsyms_cmds=
9078 thread_safe_flag_spec=
9079 whole_archive_flag_spec=
9080 # include_expsyms should be a list of space-separated symbols to be *always*
9081 # included in the symbol list
9082 include_expsyms=
9083 # exclude_expsyms can be an extended regexp of symbols to exclude
9084 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9085 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9086 # as well as any symbol that contains `d'.
9087 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9088 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9089 # platforms (ab)use it in PIC code, but their linkers get confused if
9090 # the symbol is explicitly referenced. Since portable code cannot
9091 # rely on this symbol name, it's probably fine to never include it in
9092 # preloaded symbol tables.
9093 # Exclude shared library initialization/finalization symbols.
9094 extract_expsyms_cmds=
9095
9096 case $host_os in
9097 cygwin* | mingw* | pw32* | cegcc*)
9098 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9099 # When not using gcc, we currently assume that we are using
9100 # Microsoft Visual C++.
9101 if test "$GCC" != yes; then
9102 with_gnu_ld=no
9103 fi
9104 ;;
9105 interix*)
9106 # we just hope/assume this is gcc and not c89 (= MSVC++)
9107 with_gnu_ld=yes
9108 ;;
9109 openbsd*)
9110 with_gnu_ld=no
9111 ;;
9112 esac
9113
9114 ld_shlibs=yes
9115
9116 # On some targets, GNU ld is compatible enough with the native linker
9117 # that we're better off using the native interface for both.
9118 lt_use_gnu_ld_interface=no
9119 if test "$with_gnu_ld" = yes; then
9120 case $host_os in
9121 aix*)
9122 # The AIX port of GNU ld has always aspired to compatibility
9123 # with the native linker. However, as the warning in the GNU ld
9124 # block says, versions before 2.19.5* couldn't really create working
9125 # shared libraries, regardless of the interface used.
9126 case `$LD -v 2>&1` in
9127 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9128 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9129 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9130 *)
9131 lt_use_gnu_ld_interface=yes
9132 ;;
9133 esac
9134 ;;
9135 *)
9136 lt_use_gnu_ld_interface=yes
9137 ;;
9138 esac
9139 fi
9140
9141 if test "$lt_use_gnu_ld_interface" = yes; then
9142 # If archive_cmds runs LD, not CC, wlarc should be empty
9143 wlarc='${wl}'
9144
9145 # Set some defaults for GNU ld with shared library support. These
9146 # are reset later if shared libraries are not supported. Putting them
9147 # here allows them to be overridden if necessary.
9148 runpath_var=LD_RUN_PATH
9149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150 export_dynamic_flag_spec='${wl}--export-dynamic'
9151 # ancient GNU ld didn't support --whole-archive et. al.
9152 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9153 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9154 else
9155 whole_archive_flag_spec=
9156 fi
9157 supports_anon_versioning=no
9158 case `$LD -v 2>&1` in
9159 *GNU\ gold*) supports_anon_versioning=yes ;;
9160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9163 *\ 2.11.*) ;; # other 2.11 versions
9164 *) supports_anon_versioning=yes ;;
9165 esac
9166
9167 # See if GNU ld supports shared libraries.
9168 case $host_os in
9169 aix[3-9]*)
9170 # On AIX/PPC, the GNU linker is very broken
9171 if test "$host_cpu" != ia64; then
9172 ld_shlibs=no
9173 cat <<_LT_EOF 1>&2
9174
9175 *** Warning: the GNU linker, at least up to release 2.19, is reported
9176 *** to be unable to reliably create shared libraries on AIX.
9177 *** Therefore, libtool is disabling shared libraries support. If you
9178 *** really care for shared libraries, you may want to install binutils
9179 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9180 *** You will then need to restart the configuration process.
9181
9182 _LT_EOF
9183 fi
9184 ;;
9185
9186 amigaos*)
9187 case $host_cpu in
9188 powerpc)
9189 # see comment about AmigaOS4 .so support
9190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9191 archive_expsym_cmds=''
9192 ;;
9193 m68k)
9194 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)'
9195 hardcode_libdir_flag_spec='-L$libdir'
9196 hardcode_minus_L=yes
9197 ;;
9198 esac
9199 ;;
9200
9201 beos*)
9202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9203 allow_undefined_flag=unsupported
9204 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9205 # support --undefined. This deserves some investigation. FIXME
9206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207 else
9208 ld_shlibs=no
9209 fi
9210 ;;
9211
9212 cygwin* | mingw* | pw32* | cegcc*)
9213 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9214 # as there is no search path for DLLs.
9215 hardcode_libdir_flag_spec='-L$libdir'
9216 export_dynamic_flag_spec='${wl}--export-all-symbols'
9217 allow_undefined_flag=unsupported
9218 always_export_symbols=no
9219 enable_shared_with_static_runtimes=yes
9220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9221
9222 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9224 # If the export-symbols file already is a .def file (1st line
9225 # is EXPORTS), use it as is; otherwise, prepend...
9226 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9227 cp $export_symbols $output_objdir/$soname.def;
9228 else
9229 echo EXPORTS > $output_objdir/$soname.def;
9230 cat $export_symbols >> $output_objdir/$soname.def;
9231 fi~
9232 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9233 else
9234 ld_shlibs=no
9235 fi
9236 ;;
9237
9238 haiku*)
9239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9240 link_all_deplibs=yes
9241 ;;
9242
9243 interix[3-9]*)
9244 hardcode_direct=no
9245 hardcode_shlibpath_var=no
9246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9247 export_dynamic_flag_spec='${wl}-E'
9248 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9249 # Instead, shared libraries are loaded at an image base (0x10000000 by
9250 # default) and relocated if they conflict, which is a slow very memory
9251 # consuming and fragmenting process. To avoid this, we pick a random,
9252 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9253 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9254 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9255 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'
9256 ;;
9257
9258 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9259 tmp_diet=no
9260 if test "$host_os" = linux-dietlibc; then
9261 case $cc_basename in
9262 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9263 esac
9264 fi
9265 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9266 && test "$tmp_diet" = no
9267 then
9268 tmp_addflag=
9269 tmp_sharedflag='-shared'
9270 case $cc_basename,$host_cpu in
9271 pgcc*) # Portland Group C compiler
9272 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'
9273 tmp_addflag=' $pic_flag'
9274 ;;
9275 pgf77* | pgf90* | pgf95* | pgfortran*)
9276 # Portland Group f77 and f90 compilers
9277 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'
9278 tmp_addflag=' $pic_flag -Mnomain' ;;
9279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9280 tmp_addflag=' -i_dynamic' ;;
9281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9282 tmp_addflag=' -i_dynamic -nofor_main' ;;
9283 ifc* | ifort*) # Intel Fortran compiler
9284 tmp_addflag=' -nofor_main' ;;
9285 lf95*) # Lahey Fortran 8.1
9286 whole_archive_flag_spec=
9287 tmp_sharedflag='--shared' ;;
9288 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9289 tmp_sharedflag='-qmkshrobj'
9290 tmp_addflag= ;;
9291 nvcc*) # Cuda Compiler Driver 2.2
9292 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'
9293 compiler_needs_object=yes
9294 ;;
9295 esac
9296 case `$CC -V 2>&1 | sed 5q` in
9297 *Sun\ C*) # Sun C 5.9
9298 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'
9299 compiler_needs_object=yes
9300 tmp_sharedflag='-G' ;;
9301 *Sun\ F*) # Sun Fortran 8.3
9302 tmp_sharedflag='-G' ;;
9303 esac
9304 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9305
9306 if test "x$supports_anon_versioning" = xyes; then
9307 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9309 echo "local: *; };" >> $output_objdir/$libname.ver~
9310 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9311 fi
9312
9313 case $cc_basename in
9314 xlf* | bgf* | bgxlf* | mpixlf*)
9315 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9316 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9317 hardcode_libdir_flag_spec=
9318 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9319 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9320 if test "x$supports_anon_versioning" = xyes; then
9321 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9323 echo "local: *; };" >> $output_objdir/$libname.ver~
9324 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9325 fi
9326 ;;
9327 esac
9328 else
9329 ld_shlibs=no
9330 fi
9331 ;;
9332
9333 netbsd*)
9334 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9335 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9336 wlarc=
9337 else
9338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9340 fi
9341 ;;
9342
9343 solaris*)
9344 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9345 ld_shlibs=no
9346 cat <<_LT_EOF 1>&2
9347
9348 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9349 *** create shared libraries on Solaris systems. Therefore, libtool
9350 *** is disabling shared libraries support. We urge you to upgrade GNU
9351 *** binutils to release 2.9.1 or newer. Another option is to modify
9352 *** your PATH or compiler configuration so that the native linker is
9353 *** used, and then restart.
9354
9355 _LT_EOF
9356 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9359 else
9360 ld_shlibs=no
9361 fi
9362 ;;
9363
9364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9365 case `$LD -v 2>&1` in
9366 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9367 ld_shlibs=no
9368 cat <<_LT_EOF 1>&2
9369
9370 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9371 *** reliably create shared libraries on SCO systems. Therefore, libtool
9372 *** is disabling shared libraries support. We urge you to upgrade GNU
9373 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9374 *** your PATH or compiler configuration so that the native linker is
9375 *** used, and then restart.
9376
9377 _LT_EOF
9378 ;;
9379 *)
9380 # For security reasons, it is highly recommended that you always
9381 # use absolute paths for naming shared libraries, and exclude the
9382 # DT_RUNPATH tag from executables and libraries. But doing so
9383 # requires that you compile everything twice, which is a pain.
9384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9388 else
9389 ld_shlibs=no
9390 fi
9391 ;;
9392 esac
9393 ;;
9394
9395 sunos4*)
9396 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9397 wlarc=
9398 hardcode_direct=yes
9399 hardcode_shlibpath_var=no
9400 ;;
9401
9402 *)
9403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406 else
9407 ld_shlibs=no
9408 fi
9409 ;;
9410 esac
9411
9412 if test "$ld_shlibs" = no; then
9413 runpath_var=
9414 hardcode_libdir_flag_spec=
9415 export_dynamic_flag_spec=
9416 whole_archive_flag_spec=
9417 fi
9418 else
9419 # PORTME fill in a description of your system's linker (not GNU ld)
9420 case $host_os in
9421 aix3*)
9422 allow_undefined_flag=unsupported
9423 always_export_symbols=yes
9424 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'
9425 # Note: this linker hardcodes the directories in LIBPATH if there
9426 # are no directories specified by -L.
9427 hardcode_minus_L=yes
9428 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9429 # Neither direct hardcoding nor static linking is supported with a
9430 # broken collect2.
9431 hardcode_direct=unsupported
9432 fi
9433 ;;
9434
9435 aix[4-9]*)
9436 if test "$host_cpu" = ia64; then
9437 # On IA64, the linker does run time linking by default, so we don't
9438 # have to do anything special.
9439 aix_use_runtimelinking=no
9440 exp_sym_flag='-Bexport'
9441 no_entry_flag=""
9442 else
9443 # If we're using GNU nm, then we don't want the "-C" option.
9444 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9445 # Also, AIX nm treats weak defined symbols like other global
9446 # defined symbols, whereas GNU nm marks them as "W".
9447 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9448 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'
9449 else
9450 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'
9451 fi
9452 aix_use_runtimelinking=no
9453
9454 # Test if we are trying to use run time linking or normal
9455 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9456 # need to do runtime linking.
9457 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9458 for ld_flag in $LDFLAGS; do
9459 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9460 aix_use_runtimelinking=yes
9461 break
9462 fi
9463 done
9464 ;;
9465 esac
9466
9467 exp_sym_flag='-bexport'
9468 no_entry_flag='-bnoentry'
9469 fi
9470
9471 # When large executables or shared objects are built, AIX ld can
9472 # have problems creating the table of contents. If linking a library
9473 # or program results in "error TOC overflow" add -mminimal-toc to
9474 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9475 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9476
9477 archive_cmds=''
9478 hardcode_direct=yes
9479 hardcode_direct_absolute=yes
9480 hardcode_libdir_separator=':'
9481 link_all_deplibs=yes
9482 file_list_spec='${wl}-f,'
9483
9484 if test "$GCC" = yes; then
9485 case $host_os in aix4.[012]|aix4.[012].*)
9486 # We only want to do this on AIX 4.2 and lower, the check
9487 # below for broken collect2 doesn't work under 4.3+
9488 collect2name=`${CC} -print-prog-name=collect2`
9489 if test -f "$collect2name" &&
9490 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9491 then
9492 # We have reworked collect2
9493 :
9494 else
9495 # We have old collect2
9496 hardcode_direct=unsupported
9497 # It fails to find uninstalled libraries when the uninstalled
9498 # path is not listed in the libpath. Setting hardcode_minus_L
9499 # to unsupported forces relinking
9500 hardcode_minus_L=yes
9501 hardcode_libdir_flag_spec='-L$libdir'
9502 hardcode_libdir_separator=
9503 fi
9504 ;;
9505 esac
9506 shared_flag='-shared'
9507 if test "$aix_use_runtimelinking" = yes; then
9508 shared_flag="$shared_flag "'${wl}-G'
9509 fi
9510 else
9511 # not using gcc
9512 if test "$host_cpu" = ia64; then
9513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9514 # chokes on -Wl,-G. The following line is correct:
9515 shared_flag='-G'
9516 else
9517 if test "$aix_use_runtimelinking" = yes; then
9518 shared_flag='${wl}-G'
9519 else
9520 shared_flag='${wl}-bM:SRE'
9521 fi
9522 fi
9523 fi
9524
9525 export_dynamic_flag_spec='${wl}-bexpall'
9526 # It seems that -bexpall does not export symbols beginning with
9527 # underscore (_), so it is better to generate a list of symbols to export.
9528 always_export_symbols=yes
9529 if test "$aix_use_runtimelinking" = yes; then
9530 # Warning - without using the other runtime loading flags (-brtl),
9531 # -berok will link without error, but may produce a broken library.
9532 allow_undefined_flag='-berok'
9533 # Determine the default libpath from the value encoded in an
9534 # empty executable.
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9537
9538 int
9539 main ()
9540 {
9541
9542 ;
9543 return 0;
9544 }
9545 _ACEOF
9546 if ac_fn_c_try_link "$LINENO"; then :
9547
9548 lt_aix_libpath_sed='
9549 /Import File Strings/,/^$/ {
9550 /^0/ {
9551 s/^0 *\(.*\)$/\1/
9552 p
9553 }
9554 }'
9555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9556 # Check for a 64-bit object if we didn't find anything.
9557 if test -z "$aix_libpath"; then
9558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9559 fi
9560 fi
9561 rm -f core conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9564
9565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9566 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"
9567 else
9568 if test "$host_cpu" = ia64; then
9569 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9570 allow_undefined_flag="-z nodefs"
9571 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"
9572 else
9573 # Determine the default libpath from the value encoded in an
9574 # empty executable.
9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577
9578 int
9579 main ()
9580 {
9581
9582 ;
9583 return 0;
9584 }
9585 _ACEOF
9586 if ac_fn_c_try_link "$LINENO"; then :
9587
9588 lt_aix_libpath_sed='
9589 /Import File Strings/,/^$/ {
9590 /^0/ {
9591 s/^0 *\(.*\)$/\1/
9592 p
9593 }
9594 }'
9595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9596 # Check for a 64-bit object if we didn't find anything.
9597 if test -z "$aix_libpath"; then
9598 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9599 fi
9600 fi
9601 rm -f core conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9604
9605 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9606 # Warning - without using the other run time loading flags,
9607 # -berok will link without error, but may produce a broken library.
9608 no_undefined_flag=' ${wl}-bernotok'
9609 allow_undefined_flag=' ${wl}-berok'
9610 if test "$with_gnu_ld" = yes; then
9611 # We only use this code for GNU lds that support --whole-archive.
9612 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9613 else
9614 # Exported symbols can be pulled into shared objects from archives
9615 whole_archive_flag_spec='$convenience'
9616 fi
9617 archive_cmds_need_lc=yes
9618 # This is similar to how AIX traditionally builds its shared libraries.
9619 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'
9620 fi
9621 fi
9622 ;;
9623
9624 amigaos*)
9625 case $host_cpu in
9626 powerpc)
9627 # see comment about AmigaOS4 .so support
9628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9629 archive_expsym_cmds=''
9630 ;;
9631 m68k)
9632 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)'
9633 hardcode_libdir_flag_spec='-L$libdir'
9634 hardcode_minus_L=yes
9635 ;;
9636 esac
9637 ;;
9638
9639 bsdi[45]*)
9640 export_dynamic_flag_spec=-rdynamic
9641 ;;
9642
9643 cygwin* | mingw* | pw32* | cegcc*)
9644 # When not using gcc, we currently assume that we are using
9645 # Microsoft Visual C++.
9646 # hardcode_libdir_flag_spec is actually meaningless, as there is
9647 # no search path for DLLs.
9648 hardcode_libdir_flag_spec=' '
9649 allow_undefined_flag=unsupported
9650 # Tell ltmain to make .lib files, not .a files.
9651 libext=lib
9652 # Tell ltmain to make .dll files, not .so files.
9653 shrext_cmds=".dll"
9654 # FIXME: Setting linknames here is a bad hack.
9655 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9656 # The linker will automatically build a .lib file if we build a DLL.
9657 old_archive_from_new_cmds='true'
9658 # FIXME: Should let the user specify the lib program.
9659 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9660 fix_srcfile_path='`cygpath -w "$srcfile"`'
9661 enable_shared_with_static_runtimes=yes
9662 ;;
9663
9664 darwin* | rhapsody*)
9665
9666
9667 archive_cmds_need_lc=no
9668 hardcode_direct=no
9669 hardcode_automatic=yes
9670 hardcode_shlibpath_var=unsupported
9671 if test "$lt_cv_ld_force_load" = "yes"; then
9672 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\"`'
9673 else
9674 whole_archive_flag_spec=''
9675 fi
9676 link_all_deplibs=yes
9677 allow_undefined_flag="$_lt_dar_allow_undefined"
9678 case $cc_basename in
9679 ifort*) _lt_dar_can_shared=yes ;;
9680 *) _lt_dar_can_shared=$GCC ;;
9681 esac
9682 if test "$_lt_dar_can_shared" = "yes"; then
9683 output_verbose_link_cmd=func_echo_all
9684 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9685 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9686 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}"
9687 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}"
9688
9689 else
9690 ld_shlibs=no
9691 fi
9692
9693 ;;
9694
9695 dgux*)
9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_libdir_flag_spec='-L$libdir'
9698 hardcode_shlibpath_var=no
9699 ;;
9700
9701 freebsd1*)
9702 ld_shlibs=no
9703 ;;
9704
9705 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9706 # support. Future versions do this automatically, but an explicit c++rt0.o
9707 # does not break anything, and helps significantly (at the cost of a little
9708 # extra space).
9709 freebsd2.2*)
9710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9711 hardcode_libdir_flag_spec='-R$libdir'
9712 hardcode_direct=yes
9713 hardcode_shlibpath_var=no
9714 ;;
9715
9716 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9717 freebsd2*)
9718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_direct=yes
9720 hardcode_minus_L=yes
9721 hardcode_shlibpath_var=no
9722 ;;
9723
9724 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9725 freebsd* | dragonfly*)
9726 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9727 hardcode_libdir_flag_spec='-R$libdir'
9728 hardcode_direct=yes
9729 hardcode_shlibpath_var=no
9730 ;;
9731
9732 hpux9*)
9733 if test "$GCC" = yes; then
9734 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9735 else
9736 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'
9737 fi
9738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9739 hardcode_libdir_separator=:
9740 hardcode_direct=yes
9741
9742 # hardcode_minus_L: Not really in the search PATH,
9743 # but as the default location of the library.
9744 hardcode_minus_L=yes
9745 export_dynamic_flag_spec='${wl}-E'
9746 ;;
9747
9748 hpux10*)
9749 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9750 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9751 else
9752 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9753 fi
9754 if test "$with_gnu_ld" = no; then
9755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9756 hardcode_libdir_flag_spec_ld='+b $libdir'
9757 hardcode_libdir_separator=:
9758 hardcode_direct=yes
9759 hardcode_direct_absolute=yes
9760 export_dynamic_flag_spec='${wl}-E'
9761 # hardcode_minus_L: Not really in the search PATH,
9762 # but as the default location of the library.
9763 hardcode_minus_L=yes
9764 fi
9765 ;;
9766
9767 hpux11*)
9768 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9769 case $host_cpu in
9770 hppa*64*)
9771 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 ;;
9773 ia64*)
9774 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9775 ;;
9776 *)
9777 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9778 ;;
9779 esac
9780 else
9781 case $host_cpu in
9782 hppa*64*)
9783 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9784 ;;
9785 ia64*)
9786 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9787 ;;
9788 *)
9789
9790 # Older versions of the 11.00 compiler do not understand -b yet
9791 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9793 $as_echo_n "checking if $CC understands -b... " >&6; }
9794 if ${lt_cv_prog_compiler__b+:} false; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 lt_cv_prog_compiler__b=no
9798 save_LDFLAGS="$LDFLAGS"
9799 LDFLAGS="$LDFLAGS -b"
9800 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9802 # The linker can only warn and ignore the option if not recognized
9803 # So say no if there are warnings
9804 if test -s conftest.err; then
9805 # Append any errors to the config.log.
9806 cat conftest.err 1>&5
9807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9809 if diff conftest.exp conftest.er2 >/dev/null; then
9810 lt_cv_prog_compiler__b=yes
9811 fi
9812 else
9813 lt_cv_prog_compiler__b=yes
9814 fi
9815 fi
9816 $RM -r conftest*
9817 LDFLAGS="$save_LDFLAGS"
9818
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9821 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9822
9823 if test x"$lt_cv_prog_compiler__b" = xyes; then
9824 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9825 else
9826 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9827 fi
9828
9829 ;;
9830 esac
9831 fi
9832 if test "$with_gnu_ld" = no; then
9833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9834 hardcode_libdir_separator=:
9835
9836 case $host_cpu in
9837 hppa*64*|ia64*)
9838 hardcode_direct=no
9839 hardcode_shlibpath_var=no
9840 ;;
9841 *)
9842 hardcode_direct=yes
9843 hardcode_direct_absolute=yes
9844 export_dynamic_flag_spec='${wl}-E'
9845
9846 # hardcode_minus_L: Not really in the search PATH,
9847 # but as the default location of the library.
9848 hardcode_minus_L=yes
9849 ;;
9850 esac
9851 fi
9852 ;;
9853
9854 irix5* | irix6* | nonstopux*)
9855 if test "$GCC" = yes; then
9856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9857 # Try to use the -exported_symbol ld option, if it does not
9858 # work, assume that -exports_file does not work either and
9859 # implicitly export all symbols.
9860 save_LDFLAGS="$LDFLAGS"
9861 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863 /* end confdefs.h. */
9864 int foo(void) {}
9865 _ACEOF
9866 if ac_fn_c_try_link "$LINENO"; then :
9867 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9868
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 LDFLAGS="$save_LDFLAGS"
9873 else
9874 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'
9875 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'
9876 fi
9877 archive_cmds_need_lc='no'
9878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9879 hardcode_libdir_separator=:
9880 inherit_rpath=yes
9881 link_all_deplibs=yes
9882 ;;
9883
9884 netbsd*)
9885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9887 else
9888 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9889 fi
9890 hardcode_libdir_flag_spec='-R$libdir'
9891 hardcode_direct=yes
9892 hardcode_shlibpath_var=no
9893 ;;
9894
9895 newsos6)
9896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897 hardcode_direct=yes
9898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9899 hardcode_libdir_separator=:
9900 hardcode_shlibpath_var=no
9901 ;;
9902
9903 *nto* | *qnx*)
9904 ;;
9905
9906 openbsd*)
9907 if test -f /usr/libexec/ld.so; then
9908 hardcode_direct=yes
9909 hardcode_shlibpath_var=no
9910 hardcode_direct_absolute=yes
9911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9913 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9914 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9915 export_dynamic_flag_spec='${wl}-E'
9916 else
9917 case $host_os in
9918 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9920 hardcode_libdir_flag_spec='-R$libdir'
9921 ;;
9922 *)
9923 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9924 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9925 ;;
9926 esac
9927 fi
9928 else
9929 ld_shlibs=no
9930 fi
9931 ;;
9932
9933 os2*)
9934 hardcode_libdir_flag_spec='-L$libdir'
9935 hardcode_minus_L=yes
9936 allow_undefined_flag=unsupported
9937 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'
9938 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9939 ;;
9940
9941 osf3*)
9942 if test "$GCC" = yes; then
9943 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9944 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'
9945 else
9946 allow_undefined_flag=' -expect_unresolved \*'
9947 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'
9948 fi
9949 archive_cmds_need_lc='no'
9950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9951 hardcode_libdir_separator=:
9952 ;;
9953
9954 osf4* | osf5*) # as osf3* with the addition of -msym flag
9955 if test "$GCC" = yes; then
9956 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9957 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9959 else
9960 allow_undefined_flag=' -expect_unresolved \*'
9961 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'
9962 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~
9963 $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'
9964
9965 # Both c and cxx compiler support -rpath directly
9966 hardcode_libdir_flag_spec='-rpath $libdir'
9967 fi
9968 archive_cmds_need_lc='no'
9969 hardcode_libdir_separator=:
9970 ;;
9971
9972 solaris*)
9973 no_undefined_flag=' -z defs'
9974 if test "$GCC" = yes; then
9975 wlarc='${wl}'
9976 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9977 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9978 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9979 else
9980 case `$CC -V 2>&1` in
9981 *"Compilers 5.0"*)
9982 wlarc=''
9983 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9985 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9986 ;;
9987 *)
9988 wlarc='${wl}'
9989 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9991 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9992 ;;
9993 esac
9994 fi
9995 hardcode_libdir_flag_spec='-R$libdir'
9996 hardcode_shlibpath_var=no
9997 case $host_os in
9998 solaris2.[0-5] | solaris2.[0-5].*) ;;
9999 *)
10000 # The compiler driver will combine and reorder linker options,
10001 # but understands `-z linker_flag'. GCC discards it without `$wl',
10002 # but is careful enough not to reorder.
10003 # Supported since Solaris 2.6 (maybe 2.5.1?)
10004 if test "$GCC" = yes; then
10005 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10006 else
10007 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10008 fi
10009 ;;
10010 esac
10011 link_all_deplibs=yes
10012 ;;
10013
10014 sunos4*)
10015 if test "x$host_vendor" = xsequent; then
10016 # Use $CC to link under sequent, because it throws in some extra .o
10017 # files that make .init and .fini sections work.
10018 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10019 else
10020 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10021 fi
10022 hardcode_libdir_flag_spec='-L$libdir'
10023 hardcode_direct=yes
10024 hardcode_minus_L=yes
10025 hardcode_shlibpath_var=no
10026 ;;
10027
10028 sysv4)
10029 case $host_vendor in
10030 sni)
10031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032 hardcode_direct=yes # is this really true???
10033 ;;
10034 siemens)
10035 ## LD is ld it makes a PLAMLIB
10036 ## CC just makes a GrossModule.
10037 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10038 reload_cmds='$CC -r -o $output$reload_objs'
10039 hardcode_direct=no
10040 ;;
10041 motorola)
10042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10043 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10044 ;;
10045 esac
10046 runpath_var='LD_RUN_PATH'
10047 hardcode_shlibpath_var=no
10048 ;;
10049
10050 sysv4.3*)
10051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10052 hardcode_shlibpath_var=no
10053 export_dynamic_flag_spec='-Bexport'
10054 ;;
10055
10056 sysv4*MP*)
10057 if test -d /usr/nec; then
10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_shlibpath_var=no
10060 runpath_var=LD_RUN_PATH
10061 hardcode_runpath_var=yes
10062 ld_shlibs=yes
10063 fi
10064 ;;
10065
10066 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10067 no_undefined_flag='${wl}-z,text'
10068 archive_cmds_need_lc=no
10069 hardcode_shlibpath_var=no
10070 runpath_var='LD_RUN_PATH'
10071
10072 if test "$GCC" = yes; then
10073 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10075 else
10076 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10077 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10078 fi
10079 ;;
10080
10081 sysv5* | sco3.2v5* | sco5v6*)
10082 # Note: We can NOT use -z defs as we might desire, because we do not
10083 # link with -lc, and that would cause any symbols used from libc to
10084 # always be unresolved, which means just about no library would
10085 # ever link correctly. If we're not using GNU ld we use -z text
10086 # though, which does catch some bad symbols but isn't as heavy-handed
10087 # as -z defs.
10088 no_undefined_flag='${wl}-z,text'
10089 allow_undefined_flag='${wl}-z,nodefs'
10090 archive_cmds_need_lc=no
10091 hardcode_shlibpath_var=no
10092 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10093 hardcode_libdir_separator=':'
10094 link_all_deplibs=yes
10095 export_dynamic_flag_spec='${wl}-Bexport'
10096 runpath_var='LD_RUN_PATH'
10097
10098 if test "$GCC" = yes; then
10099 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10101 else
10102 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10103 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104 fi
10105 ;;
10106
10107 uts4*)
10108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109 hardcode_libdir_flag_spec='-L$libdir'
10110 hardcode_shlibpath_var=no
10111 ;;
10112
10113 *)
10114 ld_shlibs=no
10115 ;;
10116 esac
10117
10118 if test x$host_vendor = xsni; then
10119 case $host in
10120 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10121 export_dynamic_flag_spec='${wl}-Blargedynsym'
10122 ;;
10123 esac
10124 fi
10125 fi
10126
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10128 $as_echo "$ld_shlibs" >&6; }
10129 test "$ld_shlibs" = no && can_build_shared=no
10130
10131 with_gnu_ld=$with_gnu_ld
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147 #
10148 # Do we need to explicitly link libc?
10149 #
10150 case "x$archive_cmds_need_lc" in
10151 x|xyes)
10152 # Assume -lc should be added
10153 archive_cmds_need_lc=yes
10154
10155 if test "$enable_shared" = yes && test "$GCC" = yes; then
10156 case $archive_cmds in
10157 *'~'*)
10158 # FIXME: we may have to deal with multi-command sequences.
10159 ;;
10160 '$CC '*)
10161 # Test whether the compiler implicitly links with -lc since on some
10162 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10163 # to ld, don't add -lc before -lgcc.
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10165 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10166 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10167 $as_echo_n "(cached) " >&6
10168 else
10169 $RM conftest*
10170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10171
10172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10173 (eval $ac_compile) 2>&5
10174 ac_status=$?
10175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10176 test $ac_status = 0; } 2>conftest.err; then
10177 soname=conftest
10178 lib=conftest
10179 libobjs=conftest.$ac_objext
10180 deplibs=
10181 wl=$lt_prog_compiler_wl
10182 pic_flag=$lt_prog_compiler_pic
10183 compiler_flags=-v
10184 linker_flags=-v
10185 verstring=
10186 output_objdir=.
10187 libname=conftest
10188 lt_save_allow_undefined_flag=$allow_undefined_flag
10189 allow_undefined_flag=
10190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10191 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10192 ac_status=$?
10193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10194 test $ac_status = 0; }
10195 then
10196 lt_cv_archive_cmds_need_lc=no
10197 else
10198 lt_cv_archive_cmds_need_lc=yes
10199 fi
10200 allow_undefined_flag=$lt_save_allow_undefined_flag
10201 else
10202 cat conftest.err 1>&5
10203 fi
10204 $RM conftest*
10205
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10208 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10209 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10210 ;;
10211 esac
10212 fi
10213 ;;
10214 esac
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10373 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10374
10375 if test "$GCC" = yes; then
10376 case $host_os in
10377 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10378 *) lt_awk_arg="/^libraries:/" ;;
10379 esac
10380 case $host_os in
10381 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10382 *) lt_sed_strip_eq="s,=/,/,g" ;;
10383 esac
10384 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10385 case $lt_search_path_spec in
10386 *\;*)
10387 # if the path contains ";" then we assume it to be the separator
10388 # otherwise default to the standard path separator (i.e. ":") - it is
10389 # assumed that no part of a normal pathname contains ";" but that should
10390 # okay in the real world where ";" in dirpaths is itself problematic.
10391 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10392 ;;
10393 *)
10394 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10395 ;;
10396 esac
10397 # Ok, now we have the path, separated by spaces, we can step through it
10398 # and add multilib dir if necessary.
10399 lt_tmp_lt_search_path_spec=
10400 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10401 for lt_sys_path in $lt_search_path_spec; do
10402 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10403 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10404 else
10405 test -d "$lt_sys_path" && \
10406 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10407 fi
10408 done
10409 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10410 BEGIN {RS=" "; FS="/|\n";} {
10411 lt_foo="";
10412 lt_count=0;
10413 for (lt_i = NF; lt_i > 0; lt_i--) {
10414 if ($lt_i != "" && $lt_i != ".") {
10415 if ($lt_i == "..") {
10416 lt_count++;
10417 } else {
10418 if (lt_count == 0) {
10419 lt_foo="/" $lt_i lt_foo;
10420 } else {
10421 lt_count--;
10422 }
10423 }
10424 }
10425 }
10426 if (lt_foo != "") { lt_freq[lt_foo]++; }
10427 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10428 }'`
10429 # AWK program above erroneously prepends '/' to C:/dos/paths
10430 # for these hosts.
10431 case $host_os in
10432 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10433 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10434 esac
10435 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10436 else
10437 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10438 fi
10439 library_names_spec=
10440 libname_spec='lib$name'
10441 soname_spec=
10442 shrext_cmds=".so"
10443 postinstall_cmds=
10444 postuninstall_cmds=
10445 finish_cmds=
10446 finish_eval=
10447 shlibpath_var=
10448 shlibpath_overrides_runpath=unknown
10449 version_type=none
10450 dynamic_linker="$host_os ld.so"
10451 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10452 need_lib_prefix=unknown
10453 hardcode_into_libs=no
10454
10455 # when you set need_version to no, make sure it does not cause -set_version
10456 # flags to be left without arguments
10457 need_version=unknown
10458
10459 case $host_os in
10460 aix3*)
10461 version_type=linux
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10463 shlibpath_var=LIBPATH
10464
10465 # AIX 3 has no versioning support, so we append a major version to the name.
10466 soname_spec='${libname}${release}${shared_ext}$major'
10467 ;;
10468
10469 aix[4-9]*)
10470 version_type=linux
10471 need_lib_prefix=no
10472 need_version=no
10473 hardcode_into_libs=yes
10474 if test "$host_cpu" = ia64; then
10475 # AIX 5 supports IA64
10476 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10477 shlibpath_var=LD_LIBRARY_PATH
10478 else
10479 # With GCC up to 2.95.x, collect2 would create an import file
10480 # for dependence libraries. The import file would start with
10481 # the line `#! .'. This would cause the generated library to
10482 # depend on `.', always an invalid library. This was fixed in
10483 # development snapshots of GCC prior to 3.0.
10484 case $host_os in
10485 aix4 | aix4.[01] | aix4.[01].*)
10486 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10487 echo ' yes '
10488 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10489 :
10490 else
10491 can_build_shared=no
10492 fi
10493 ;;
10494 esac
10495 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10496 # soname into executable. Probably we can add versioning support to
10497 # collect2, so additional links can be useful in future.
10498 if test "$aix_use_runtimelinking" = yes; then
10499 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10500 # instead of lib<name>.a to let people know that these are not
10501 # typical AIX shared libraries.
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 else
10504 # We preserve .a as extension for shared libraries through AIX4.2
10505 # and later when we are not doing run time linking.
10506 library_names_spec='${libname}${release}.a $libname.a'
10507 soname_spec='${libname}${release}${shared_ext}$major'
10508 fi
10509 shlibpath_var=LIBPATH
10510 fi
10511 ;;
10512
10513 amigaos*)
10514 case $host_cpu in
10515 powerpc)
10516 # Since July 2007 AmigaOS4 officially supports .so libraries.
10517 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 ;;
10520 m68k)
10521 library_names_spec='$libname.ixlibrary $libname.a'
10522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10523 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'
10524 ;;
10525 esac
10526 ;;
10527
10528 beos*)
10529 library_names_spec='${libname}${shared_ext}'
10530 dynamic_linker="$host_os ld.so"
10531 shlibpath_var=LIBRARY_PATH
10532 ;;
10533
10534 bsdi[45]*)
10535 version_type=linux
10536 need_version=no
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10543 # the default ld.so.conf also contains /usr/contrib/lib and
10544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10545 # libtool to hard-code these into programs
10546 ;;
10547
10548 cygwin* | mingw* | pw32* | cegcc*)
10549 version_type=windows
10550 shrext_cmds=".dll"
10551 need_version=no
10552 need_lib_prefix=no
10553
10554 case $GCC,$host_os in
10555 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10556 library_names_spec='$libname.dll.a'
10557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10558 postinstall_cmds='base_file=`basename \${file}`~
10559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10560 dldir=$destdir/`dirname \$dlpath`~
10561 test -d \$dldir || mkdir -p \$dldir~
10562 $install_prog $dir/$dlname \$dldir/$dlname~
10563 chmod a+x \$dldir/$dlname~
10564 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10565 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10566 fi'
10567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10568 dlpath=$dir/\$dldll~
10569 $RM \$dlpath'
10570 shlibpath_overrides_runpath=yes
10571
10572 case $host_os in
10573 cygwin*)
10574 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10575 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10576
10577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10578 ;;
10579 mingw* | cegcc*)
10580 # MinGW DLLs use traditional 'lib' prefix
10581 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10582 ;;
10583 pw32*)
10584 # pw32 DLLs use 'pw' prefix rather than 'lib'
10585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10586 ;;
10587 esac
10588 ;;
10589
10590 *)
10591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10592 ;;
10593 esac
10594 dynamic_linker='Win32 ld.exe'
10595 # FIXME: first we should search . and the directory the executable is in
10596 shlibpath_var=PATH
10597 ;;
10598
10599 darwin* | rhapsody*)
10600 dynamic_linker="$host_os dyld"
10601 version_type=darwin
10602 need_lib_prefix=no
10603 need_version=no
10604 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10605 soname_spec='${libname}${release}${major}$shared_ext'
10606 shlibpath_overrides_runpath=yes
10607 shlibpath_var=DYLD_LIBRARY_PATH
10608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10609
10610 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10611 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10612 ;;
10613
10614 dgux*)
10615 version_type=linux
10616 need_lib_prefix=no
10617 need_version=no
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 ;;
10622
10623 freebsd1*)
10624 dynamic_linker=no
10625 ;;
10626
10627 freebsd* | dragonfly*)
10628 # DragonFly does not have aout. When/if they implement a new
10629 # versioning mechanism, adjust this.
10630 if test -x /usr/bin/objformat; then
10631 objformat=`/usr/bin/objformat`
10632 else
10633 case $host_os in
10634 freebsd[123]*) objformat=aout ;;
10635 *) objformat=elf ;;
10636 esac
10637 fi
10638 version_type=freebsd-$objformat
10639 case $version_type in
10640 freebsd-elf*)
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10642 need_version=no
10643 need_lib_prefix=no
10644 ;;
10645 freebsd-*)
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10647 need_version=yes
10648 ;;
10649 esac
10650 shlibpath_var=LD_LIBRARY_PATH
10651 case $host_os in
10652 freebsd2*)
10653 shlibpath_overrides_runpath=yes
10654 ;;
10655 freebsd3.[01]* | freebsdelf3.[01]*)
10656 shlibpath_overrides_runpath=yes
10657 hardcode_into_libs=yes
10658 ;;
10659 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10660 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10661 shlibpath_overrides_runpath=no
10662 hardcode_into_libs=yes
10663 ;;
10664 *) # from 4.6 on, and DragonFly
10665 shlibpath_overrides_runpath=yes
10666 hardcode_into_libs=yes
10667 ;;
10668 esac
10669 ;;
10670
10671 gnu*)
10672 version_type=linux
10673 need_lib_prefix=no
10674 need_version=no
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 hardcode_into_libs=yes
10679 ;;
10680
10681 haiku*)
10682 version_type=linux
10683 need_lib_prefix=no
10684 need_version=no
10685 dynamic_linker="$host_os runtime_loader"
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 shlibpath_var=LIBRARY_PATH
10689 shlibpath_overrides_runpath=yes
10690 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10691 hardcode_into_libs=yes
10692 ;;
10693
10694 hpux9* | hpux10* | hpux11*)
10695 # Give a soname corresponding to the major version so that dld.sl refuses to
10696 # link against other versions.
10697 version_type=sunos
10698 need_lib_prefix=no
10699 need_version=no
10700 case $host_cpu in
10701 ia64*)
10702 shrext_cmds='.so'
10703 hardcode_into_libs=yes
10704 dynamic_linker="$host_os dld.so"
10705 shlibpath_var=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708 soname_spec='${libname}${release}${shared_ext}$major'
10709 if test "X$HPUX_IA64_MODE" = X32; then
10710 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10711 else
10712 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10713 fi
10714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10715 ;;
10716 hppa*64*)
10717 shrext_cmds='.sl'
10718 hardcode_into_libs=yes
10719 dynamic_linker="$host_os dld.sl"
10720 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10726 ;;
10727 *)
10728 shrext_cmds='.sl'
10729 dynamic_linker="$host_os dld.sl"
10730 shlibpath_var=SHLIB_PATH
10731 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 ;;
10735 esac
10736 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10737 postinstall_cmds='chmod 555 $lib'
10738 # or fails outright, so override atomically:
10739 install_override_mode=555
10740 ;;
10741
10742 interix[3-9]*)
10743 version_type=linux
10744 need_lib_prefix=no
10745 need_version=no
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath=no
10751 hardcode_into_libs=yes
10752 ;;
10753
10754 irix5* | irix6* | nonstopux*)
10755 case $host_os in
10756 nonstopux*) version_type=nonstopux ;;
10757 *)
10758 if test "$lt_cv_prog_gnu_ld" = yes; then
10759 version_type=linux
10760 else
10761 version_type=irix
10762 fi ;;
10763 esac
10764 need_lib_prefix=no
10765 need_version=no
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10768 case $host_os in
10769 irix5* | nonstopux*)
10770 libsuff= shlibsuff=
10771 ;;
10772 *)
10773 case $LD in # libtool.m4 will add one of these switches to LD
10774 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10775 libsuff= shlibsuff= libmagic=32-bit;;
10776 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10777 libsuff=32 shlibsuff=N32 libmagic=N32;;
10778 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10779 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10780 *) libsuff= shlibsuff= libmagic=never-match;;
10781 esac
10782 ;;
10783 esac
10784 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10785 shlibpath_overrides_runpath=no
10786 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10787 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10788 hardcode_into_libs=yes
10789 ;;
10790
10791 # No shared lib support for Linux oldld, aout, or coff.
10792 linux*oldld* | linux*aout* | linux*coff*)
10793 dynamic_linker=no
10794 ;;
10795
10796 # This must be Linux ELF.
10797 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10798 version_type=linux
10799 need_lib_prefix=no
10800 need_version=no
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 shlibpath_overrides_runpath=no
10806
10807 # Some binutils ld are patched to set DT_RUNPATH
10808 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 lt_cv_shlibpath_overrides_runpath=no
10812 save_LDFLAGS=$LDFLAGS
10813 save_libdir=$libdir
10814 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10815 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10818
10819 int
10820 main ()
10821 {
10822
10823 ;
10824 return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"; then :
10828 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10829 lt_cv_shlibpath_overrides_runpath=yes
10830 fi
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 LDFLAGS=$save_LDFLAGS
10835 libdir=$save_libdir
10836
10837 fi
10838
10839 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10840
10841 # This implies no fast_install, which is unacceptable.
10842 # Some rework will be needed to allow for fast_install
10843 # before this can be enabled.
10844 hardcode_into_libs=yes
10845
10846 # Append ld.so.conf contents to the search path
10847 if test -f /etc/ld.so.conf; then
10848 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' ' '`
10849 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10850 fi
10851
10852 # We used to test for /lib/ld.so.1 and disable shared libraries on
10853 # powerpc, because MkLinux only supported shared libraries with the
10854 # GNU dynamic linker. Since this was broken with cross compilers,
10855 # most powerpc-linux boxes support dynamic linking these days and
10856 # people can always --disable-shared, the test was removed, and we
10857 # assume the GNU/Linux dynamic linker is in use.
10858 dynamic_linker='GNU/Linux ld.so'
10859 ;;
10860
10861 netbsd*)
10862 version_type=sunos
10863 need_lib_prefix=no
10864 need_version=no
10865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10868 dynamic_linker='NetBSD (a.out) ld.so'
10869 else
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10871 soname_spec='${libname}${release}${shared_ext}$major'
10872 dynamic_linker='NetBSD ld.elf_so'
10873 fi
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=yes
10876 hardcode_into_libs=yes
10877 ;;
10878
10879 newsos6)
10880 version_type=linux
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=yes
10884 ;;
10885
10886 *nto* | *qnx*)
10887 version_type=qnx
10888 need_lib_prefix=no
10889 need_version=no
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 shlibpath_var=LD_LIBRARY_PATH
10893 shlibpath_overrides_runpath=no
10894 hardcode_into_libs=yes
10895 dynamic_linker='ldqnx.so'
10896 ;;
10897
10898 openbsd*)
10899 version_type=sunos
10900 sys_lib_dlsearch_path_spec="/usr/lib"
10901 need_lib_prefix=no
10902 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10903 case $host_os in
10904 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10905 *) need_version=no ;;
10906 esac
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10909 shlibpath_var=LD_LIBRARY_PATH
10910 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10911 case $host_os in
10912 openbsd2.[89] | openbsd2.[89].*)
10913 shlibpath_overrides_runpath=no
10914 ;;
10915 *)
10916 shlibpath_overrides_runpath=yes
10917 ;;
10918 esac
10919 else
10920 shlibpath_overrides_runpath=yes
10921 fi
10922 ;;
10923
10924 os2*)
10925 libname_spec='$name'
10926 shrext_cmds=".dll"
10927 need_lib_prefix=no
10928 library_names_spec='$libname${shared_ext} $libname.a'
10929 dynamic_linker='OS/2 ld.exe'
10930 shlibpath_var=LIBPATH
10931 ;;
10932
10933 osf3* | osf4* | osf5*)
10934 version_type=osf
10935 need_lib_prefix=no
10936 need_version=no
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10941 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10942 ;;
10943
10944 rdos*)
10945 dynamic_linker=no
10946 ;;
10947
10948 solaris*)
10949 version_type=linux
10950 need_lib_prefix=no
10951 need_version=no
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath=yes
10956 hardcode_into_libs=yes
10957 # ldd complains unless libraries are executable
10958 postinstall_cmds='chmod +x $lib'
10959 ;;
10960
10961 sunos4*)
10962 version_type=sunos
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10964 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=yes
10967 if test "$with_gnu_ld" = yes; then
10968 need_lib_prefix=no
10969 fi
10970 need_version=yes
10971 ;;
10972
10973 sysv4 | sysv4.3*)
10974 version_type=linux
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 shlibpath_var=LD_LIBRARY_PATH
10978 case $host_vendor in
10979 sni)
10980 shlibpath_overrides_runpath=no
10981 need_lib_prefix=no
10982 runpath_var=LD_RUN_PATH
10983 ;;
10984 siemens)
10985 need_lib_prefix=no
10986 ;;
10987 motorola)
10988 need_lib_prefix=no
10989 need_version=no
10990 shlibpath_overrides_runpath=no
10991 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10992 ;;
10993 esac
10994 ;;
10995
10996 sysv4*MP*)
10997 if test -d /usr/nec ;then
10998 version_type=linux
10999 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11000 soname_spec='$libname${shared_ext}.$major'
11001 shlibpath_var=LD_LIBRARY_PATH
11002 fi
11003 ;;
11004
11005 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11006 version_type=freebsd-elf
11007 need_lib_prefix=no
11008 need_version=no
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11010 soname_spec='${libname}${release}${shared_ext}$major'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 shlibpath_overrides_runpath=yes
11013 hardcode_into_libs=yes
11014 if test "$with_gnu_ld" = yes; then
11015 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11016 else
11017 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11018 case $host_os in
11019 sco3.2v5*)
11020 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11021 ;;
11022 esac
11023 fi
11024 sys_lib_dlsearch_path_spec='/usr/lib'
11025 ;;
11026
11027 tpf*)
11028 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11029 version_type=linux
11030 need_lib_prefix=no
11031 need_version=no
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 shlibpath_overrides_runpath=no
11035 hardcode_into_libs=yes
11036 ;;
11037
11038 uts4*)
11039 version_type=linux
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041 soname_spec='${libname}${release}${shared_ext}$major'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 ;;
11044
11045 *)
11046 dynamic_linker=no
11047 ;;
11048 esac
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11050 $as_echo "$dynamic_linker" >&6; }
11051 test "$dynamic_linker" = no && can_build_shared=no
11052
11053 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11054 if test "$GCC" = yes; then
11055 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11056 fi
11057
11058 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11059 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11060 fi
11061 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11062 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11063 fi
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11157 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11158 hardcode_action=
11159 if test -n "$hardcode_libdir_flag_spec" ||
11160 test -n "$runpath_var" ||
11161 test "X$hardcode_automatic" = "Xyes" ; then
11162
11163 # We can hardcode non-existent directories.
11164 if test "$hardcode_direct" != no &&
11165 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11166 # have to relink, otherwise we might link with an installed library
11167 # when we should be linking with a yet-to-be-installed one
11168 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11169 test "$hardcode_minus_L" != no; then
11170 # Linking always hardcodes the temporary library directory.
11171 hardcode_action=relink
11172 else
11173 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11174 hardcode_action=immediate
11175 fi
11176 else
11177 # We cannot hardcode anything, or else we can only hardcode existing
11178 # directories.
11179 hardcode_action=unsupported
11180 fi
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11182 $as_echo "$hardcode_action" >&6; }
11183
11184 if test "$hardcode_action" = relink ||
11185 test "$inherit_rpath" = yes; then
11186 # Fast installation is not supported
11187 enable_fast_install=no
11188 elif test "$shlibpath_overrides_runpath" = yes ||
11189 test "$enable_shared" = no; then
11190 # Fast installation is not necessary
11191 enable_fast_install=needless
11192 fi
11193
11194
11195
11196
11197
11198
11199 if test "x$enable_dlopen" != xyes; then
11200 enable_dlopen=unknown
11201 enable_dlopen_self=unknown
11202 enable_dlopen_self_static=unknown
11203 else
11204 lt_cv_dlopen=no
11205 lt_cv_dlopen_libs=
11206
11207 case $host_os in
11208 beos*)
11209 lt_cv_dlopen="load_add_on"
11210 lt_cv_dlopen_libs=
11211 lt_cv_dlopen_self=yes
11212 ;;
11213
11214 mingw* | pw32* | cegcc*)
11215 lt_cv_dlopen="LoadLibrary"
11216 lt_cv_dlopen_libs=
11217 ;;
11218
11219 cygwin*)
11220 lt_cv_dlopen="dlopen"
11221 lt_cv_dlopen_libs=
11222 ;;
11223
11224 darwin*)
11225 # if libdl is installed we need to link against it
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11228 if ${ac_cv_lib_dl_dlopen+:} false; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 ac_check_lib_save_LIBS=$LIBS
11232 LIBS="-ldl $LIBS"
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 char dlopen ();
11243 int
11244 main ()
11245 {
11246 return dlopen ();
11247 ;
11248 return 0;
11249 }
11250 _ACEOF
11251 if ac_fn_c_try_link "$LINENO"; then :
11252 ac_cv_lib_dl_dlopen=yes
11253 else
11254 ac_cv_lib_dl_dlopen=no
11255 fi
11256 rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11261 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11262 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11263 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11264 else
11265
11266 lt_cv_dlopen="dyld"
11267 lt_cv_dlopen_libs=
11268 lt_cv_dlopen_self=yes
11269
11270 fi
11271
11272 ;;
11273
11274 *)
11275 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11276 if test "x$ac_cv_func_shl_load" = xyes; then :
11277 lt_cv_dlopen="shl_load"
11278 else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11280 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11281 if ${ac_cv_lib_dld_shl_load+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 ac_check_lib_save_LIBS=$LIBS
11285 LIBS="-ldld $LIBS"
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11288
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 char shl_load ();
11296 int
11297 main ()
11298 {
11299 return shl_load ();
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 if ac_fn_c_try_link "$LINENO"; then :
11305 ac_cv_lib_dld_shl_load=yes
11306 else
11307 ac_cv_lib_dld_shl_load=no
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311 LIBS=$ac_check_lib_save_LIBS
11312 fi
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11314 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11315 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11316 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11317 else
11318 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11319 if test "x$ac_cv_func_dlopen" = xyes; then :
11320 lt_cv_dlopen="dlopen"
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11323 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11324 if ${ac_cv_lib_dl_dlopen+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-ldl $LIBS"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11331
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11335 #ifdef __cplusplus
11336 extern "C"
11337 #endif
11338 char dlopen ();
11339 int
11340 main ()
11341 {
11342 return dlopen ();
11343 ;
11344 return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348 ac_cv_lib_dl_dlopen=yes
11349 else
11350 ac_cv_lib_dl_dlopen=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 LIBS=$ac_check_lib_save_LIBS
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11357 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11358 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11362 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11363 if ${ac_cv_lib_svld_dlopen+:} false; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 ac_check_lib_save_LIBS=$LIBS
11367 LIBS="-lsvld $LIBS"
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11370
11371 /* Override any GCC internal prototype to avoid an error.
11372 Use char because int might match the return type of a GCC
11373 builtin and then its argument prototype would still apply. */
11374 #ifdef __cplusplus
11375 extern "C"
11376 #endif
11377 char dlopen ();
11378 int
11379 main ()
11380 {
11381 return dlopen ();
11382 ;
11383 return 0;
11384 }
11385 _ACEOF
11386 if ac_fn_c_try_link "$LINENO"; then :
11387 ac_cv_lib_svld_dlopen=yes
11388 else
11389 ac_cv_lib_svld_dlopen=no
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 LIBS=$ac_check_lib_save_LIBS
11394 fi
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11396 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11397 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11398 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11401 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11402 if ${ac_cv_lib_dld_dld_link+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 ac_check_lib_save_LIBS=$LIBS
11406 LIBS="-ldld $LIBS"
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11413 #ifdef __cplusplus
11414 extern "C"
11415 #endif
11416 char dld_link ();
11417 int
11418 main ()
11419 {
11420 return dld_link ();
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 ac_cv_lib_dld_dld_link=yes
11427 else
11428 ac_cv_lib_dld_dld_link=no
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11435 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11436 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11437 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11438 fi
11439
11440
11441 fi
11442
11443
11444 fi
11445
11446
11447 fi
11448
11449
11450 fi
11451
11452
11453 fi
11454
11455 ;;
11456 esac
11457
11458 if test "x$lt_cv_dlopen" != xno; then
11459 enable_dlopen=yes
11460 else
11461 enable_dlopen=no
11462 fi
11463
11464 case $lt_cv_dlopen in
11465 dlopen)
11466 save_CPPFLAGS="$CPPFLAGS"
11467 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11468
11469 save_LDFLAGS="$LDFLAGS"
11470 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11471
11472 save_LIBS="$LIBS"
11473 LIBS="$lt_cv_dlopen_libs $LIBS"
11474
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11476 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11477 if ${lt_cv_dlopen_self+:} false; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 if test "$cross_compiling" = yes; then :
11481 lt_cv_dlopen_self=cross
11482 else
11483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11484 lt_status=$lt_dlunknown
11485 cat > conftest.$ac_ext <<_LT_EOF
11486 #line $LINENO "configure"
11487 #include "confdefs.h"
11488
11489 #if HAVE_DLFCN_H
11490 #include <dlfcn.h>
11491 #endif
11492
11493 #include <stdio.h>
11494
11495 #ifdef RTLD_GLOBAL
11496 # define LT_DLGLOBAL RTLD_GLOBAL
11497 #else
11498 # ifdef DL_GLOBAL
11499 # define LT_DLGLOBAL DL_GLOBAL
11500 # else
11501 # define LT_DLGLOBAL 0
11502 # endif
11503 #endif
11504
11505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11506 find out it does not work in some platform. */
11507 #ifndef LT_DLLAZY_OR_NOW
11508 # ifdef RTLD_LAZY
11509 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11510 # else
11511 # ifdef DL_LAZY
11512 # define LT_DLLAZY_OR_NOW DL_LAZY
11513 # else
11514 # ifdef RTLD_NOW
11515 # define LT_DLLAZY_OR_NOW RTLD_NOW
11516 # else
11517 # ifdef DL_NOW
11518 # define LT_DLLAZY_OR_NOW DL_NOW
11519 # else
11520 # define LT_DLLAZY_OR_NOW 0
11521 # endif
11522 # endif
11523 # endif
11524 # endif
11525 #endif
11526
11527 /* When -fvisbility=hidden is used, assume the code has been annotated
11528 correspondingly for the symbols needed. */
11529 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11530 void fnord () __attribute__((visibility("default")));
11531 #endif
11532
11533 void fnord () { int i=42; }
11534 int main ()
11535 {
11536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11537 int status = $lt_dlunknown;
11538
11539 if (self)
11540 {
11541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11542 else
11543 {
11544 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11545 else puts (dlerror ());
11546 }
11547 /* dlclose (self); */
11548 }
11549 else
11550 puts (dlerror ());
11551
11552 return status;
11553 }
11554 _LT_EOF
11555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11556 (eval $ac_link) 2>&5
11557 ac_status=$?
11558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11559 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11560 (./conftest; exit; ) >&5 2>/dev/null
11561 lt_status=$?
11562 case x$lt_status in
11563 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11564 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11565 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11566 esac
11567 else :
11568 # compilation failed
11569 lt_cv_dlopen_self=no
11570 fi
11571 fi
11572 rm -fr conftest*
11573
11574
11575 fi
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11577 $as_echo "$lt_cv_dlopen_self" >&6; }
11578
11579 if test "x$lt_cv_dlopen_self" = xyes; then
11580 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11582 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11583 if ${lt_cv_dlopen_self_static+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 if test "$cross_compiling" = yes; then :
11587 lt_cv_dlopen_self_static=cross
11588 else
11589 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11590 lt_status=$lt_dlunknown
11591 cat > conftest.$ac_ext <<_LT_EOF
11592 #line $LINENO "configure"
11593 #include "confdefs.h"
11594
11595 #if HAVE_DLFCN_H
11596 #include <dlfcn.h>
11597 #endif
11598
11599 #include <stdio.h>
11600
11601 #ifdef RTLD_GLOBAL
11602 # define LT_DLGLOBAL RTLD_GLOBAL
11603 #else
11604 # ifdef DL_GLOBAL
11605 # define LT_DLGLOBAL DL_GLOBAL
11606 # else
11607 # define LT_DLGLOBAL 0
11608 # endif
11609 #endif
11610
11611 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11612 find out it does not work in some platform. */
11613 #ifndef LT_DLLAZY_OR_NOW
11614 # ifdef RTLD_LAZY
11615 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11616 # else
11617 # ifdef DL_LAZY
11618 # define LT_DLLAZY_OR_NOW DL_LAZY
11619 # else
11620 # ifdef RTLD_NOW
11621 # define LT_DLLAZY_OR_NOW RTLD_NOW
11622 # else
11623 # ifdef DL_NOW
11624 # define LT_DLLAZY_OR_NOW DL_NOW
11625 # else
11626 # define LT_DLLAZY_OR_NOW 0
11627 # endif
11628 # endif
11629 # endif
11630 # endif
11631 #endif
11632
11633 /* When -fvisbility=hidden is used, assume the code has been annotated
11634 correspondingly for the symbols needed. */
11635 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11636 void fnord () __attribute__((visibility("default")));
11637 #endif
11638
11639 void fnord () { int i=42; }
11640 int main ()
11641 {
11642 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11643 int status = $lt_dlunknown;
11644
11645 if (self)
11646 {
11647 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11648 else
11649 {
11650 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11651 else puts (dlerror ());
11652 }
11653 /* dlclose (self); */
11654 }
11655 else
11656 puts (dlerror ());
11657
11658 return status;
11659 }
11660 _LT_EOF
11661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11662 (eval $ac_link) 2>&5
11663 ac_status=$?
11664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11665 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11666 (./conftest; exit; ) >&5 2>/dev/null
11667 lt_status=$?
11668 case x$lt_status in
11669 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11670 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11671 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11672 esac
11673 else :
11674 # compilation failed
11675 lt_cv_dlopen_self_static=no
11676 fi
11677 fi
11678 rm -fr conftest*
11679
11680
11681 fi
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11683 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11684 fi
11685
11686 CPPFLAGS="$save_CPPFLAGS"
11687 LDFLAGS="$save_LDFLAGS"
11688 LIBS="$save_LIBS"
11689 ;;
11690 esac
11691
11692 case $lt_cv_dlopen_self in
11693 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11694 *) enable_dlopen_self=unknown ;;
11695 esac
11696
11697 case $lt_cv_dlopen_self_static in
11698 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11699 *) enable_dlopen_self_static=unknown ;;
11700 esac
11701 fi
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719 striplib=
11720 old_striplib=
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11722 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11723 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11724 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11725 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11727 $as_echo "yes" >&6; }
11728 else
11729 # FIXME - insert some real tests, host_os isn't really good enough
11730 case $host_os in
11731 darwin*)
11732 if test -n "$STRIP" ; then
11733 striplib="$STRIP -x"
11734 old_striplib="$STRIP -S"
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11736 $as_echo "yes" >&6; }
11737 else
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11740 fi
11741 ;;
11742 *)
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11745 ;;
11746 esac
11747 fi
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760 # Report which library types will actually be built
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11762 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11764 $as_echo "$can_build_shared" >&6; }
11765
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11767 $as_echo_n "checking whether to build shared libraries... " >&6; }
11768 test "$can_build_shared" = "no" && enable_shared=no
11769
11770 # On AIX, shared libraries and static libraries use the same namespace, and
11771 # are all built from PIC.
11772 case $host_os in
11773 aix3*)
11774 test "$enable_shared" = yes && enable_static=no
11775 if test -n "$RANLIB"; then
11776 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11777 postinstall_cmds='$RANLIB $lib'
11778 fi
11779 ;;
11780
11781 aix[4-9]*)
11782 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11783 test "$enable_shared" = yes && enable_static=no
11784 fi
11785 ;;
11786 esac
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11788 $as_echo "$enable_shared" >&6; }
11789
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11791 $as_echo_n "checking whether to build static libraries... " >&6; }
11792 # Make sure either enable_shared or enable_static is yes.
11793 test "$enable_shared" = yes || enable_static=yes
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11795 $as_echo "$enable_static" >&6; }
11796
11797
11798
11799
11800 fi
11801 ac_ext=c
11802 ac_cpp='$CPP $CPPFLAGS'
11803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11806
11807 CC="$lt_save_CC"
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821 ac_config_commands="$ac_config_commands libtool"
11822
11823
11824
11825
11826 # Only expand once:
11827
11828
11829
11830 # Check for dependencies
11831
11832 pkg_failed=no
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
11834 $as_echo_n "checking for XINERAMA... " >&6; }
11835
11836 if test -n "$XINERAMA_CFLAGS"; then
11837 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
11838 elif test -n "$PKG_CONFIG"; then
11839 if test -n "$PKG_CONFIG" && \
11840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
11841 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
11842 ac_status=$?
11843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11844 test $ac_status = 0; }; then
11845 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
11846 else
11847 pkg_failed=yes
11848 fi
11849 else
11850 pkg_failed=untried
11851 fi
11852 if test -n "$XINERAMA_LIBS"; then
11853 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
11854 elif test -n "$PKG_CONFIG"; then
11855 if test -n "$PKG_CONFIG" && \
11856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
11857 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
11858 ac_status=$?
11859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11860 test $ac_status = 0; }; then
11861 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
11862 else
11863 pkg_failed=yes
11864 fi
11865 else
11866 pkg_failed=untried
11867 fi
11868
11869
11870
11871 if test $pkg_failed = yes; then
11872
11873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11874 _pkg_short_errors_supported=yes
11875 else
11876 _pkg_short_errors_supported=no
11877 fi
11878 if test $_pkg_short_errors_supported = yes; then
11879 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
11880 else
11881 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
11882 fi
11883 # Put the nasty error message in config.log where it belongs
11884 echo "$XINERAMA_PKG_ERRORS" >&5
11885
11886 as_fn_error $? "Package requirements (x11 xext xextproto xineramaproto >= 1.1.99.1) were not met:
11887
11888 $XINERAMA_PKG_ERRORS
11889
11890 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11891 installed software in a non-standard prefix.
11892
11893 Alternatively, you may set the environment variables XINERAMA_CFLAGS
11894 and XINERAMA_LIBS to avoid the need to call pkg-config.
11895 See the pkg-config man page for more details.
11896 " "$LINENO" 5
11897 elif test $pkg_failed = untried; then
11898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11900 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11901 is in your PATH or set the PKG_CONFIG environment variable to the full
11902 path to pkg-config.
11903
11904 Alternatively, you may set the environment variables XINERAMA_CFLAGS
11905 and XINERAMA_LIBS to avoid the need to call pkg-config.
11906 See the pkg-config man page for more details.
11907
11908 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11909 See \`config.log' for more details" "$LINENO" 5; }
11910 else
11911 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
11912 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11914 $as_echo "yes" >&6; }
11915 :
11916 fi
11917
11918
11919
11920
11921
11922
11923 # Check whether --with-lint was given.
11924 if test "${with_lint+set}" = set; then :
11925 withval=$with_lint; use_lint=$withval
11926 else
11927 use_lint=no
11928 fi
11929
11930
11931 # Obtain platform specific info like program name and options
11932 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11933 case $host_os in
11934 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11935 lint_name=splint
11936 lint_options="-badflag"
11937 ;;
11938 *freebsd* | *netbsd*)
11939 lint_name=lint
11940 lint_options="-u -b"
11941 ;;
11942 *solaris*)
11943 lint_name=lint
11944 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11945 ;;
11946 esac
11947
11948 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11949 if test "x$use_lint" = x"yes" ; then
11950 # Extract the first word of "$lint_name", so it can be a program name with args.
11951 set dummy $lint_name; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_path_LINT+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 case $LINT in
11958 [\\/]* | ?:[\\/]*)
11959 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11960 ;;
11961 *)
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11964 do
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11969 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971 break 2
11972 fi
11973 done
11974 done
11975 IFS=$as_save_IFS
11976
11977 ;;
11978 esac
11979 fi
11980 LINT=$ac_cv_path_LINT
11981 if test -n "$LINT"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11983 $as_echo "$LINT" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987 fi
11988
11989
11990 if test "x$LINT" = "x"; then
11991 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11992 fi
11993 elif test "x$use_lint" = x"no" ; then
11994 if test "x$LINT" != "x"; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11996 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11997 fi
11998 else
11999 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12000 fi
12001
12002 # User supplied flags override default flags
12003 if test "x$LINT_FLAGS" != "x"; then
12004 lint_options=$LINT_FLAGS
12005 fi
12006
12007 LINT_FLAGS=$lint_options
12008
12009 if test "x$LINT" != x; then
12010 LINT_TRUE=
12011 LINT_FALSE='#'
12012 else
12013 LINT_TRUE='#'
12014 LINT_FALSE=
12015 fi
12016
12017
12018
12019 LINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}"
12020
12021
12022 # Check whether --enable-malloc0returnsnull was given.
12023 if test "${enable_malloc0returnsnull+set}" = set; then :
12024 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
12025 else
12026 MALLOC_ZERO_RETURNS_NULL=auto
12027 fi
12028
12029
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
12031 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
12032 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
12033 if test "$cross_compiling" = yes; then :
12034 MALLOC_ZERO_RETURNS_NULL=yes
12035 else
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12038
12039 char *malloc();
12040 char *realloc();
12041 char *calloc();
12042 main() {
12043 char *m0, *r0, *c0, *p;
12044 m0 = malloc(0);
12045 p = malloc(10);
12046 r0 = realloc(p,0);
12047 c0 = calloc(0);
12048 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
12049 }
12050 _ACEOF
12051 if ac_fn_c_try_run "$LINENO"; then :
12052 MALLOC_ZERO_RETURNS_NULL=yes
12053 else
12054 MALLOC_ZERO_RETURNS_NULL=no
12055 fi
12056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12057 conftest.$ac_objext conftest.beam conftest.$ac_ext
12058 fi
12059
12060 fi
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
12062 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
12063
12064 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12065 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12066 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12067 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12068 else
12069 MALLOC_ZERO_CFLAGS=""
12070 XMALLOC_ZERO_CFLAGS=""
12071 XTMALLOC_ZERO_CFLAGS=""
12072 fi
12073
12074
12075
12076
12077
12078
12079 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xinerama.pc"
12080
12081 cat >confcache <<\_ACEOF
12082 # This file is a shell script that caches the results of configure
12083 # tests run on this system so they can be shared between configure
12084 # scripts and configure runs, see configure's option --config-cache.
12085 # It is not useful on other systems. If it contains results you don't
12086 # want to keep, you may remove or edit it.
12087 #
12088 # config.status only pays attention to the cache file if you give it
12089 # the --recheck option to rerun configure.
12090 #
12091 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12092 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12093 # following values.
12094
12095 _ACEOF
12096
12097 # The following way of writing the cache mishandles newlines in values,
12098 # but we know of no workaround that is simple, portable, and efficient.
12099 # So, we kill variables containing newlines.
12100 # Ultrix sh set writes to stderr and can't be redirected directly,
12101 # and sets the high bit in the cache file unless we assign to the vars.
12102 (
12103 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12104 eval ac_val=\$$ac_var
12105 case $ac_val in #(
12106 *${as_nl}*)
12107 case $ac_var in #(
12108 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12109 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12110 esac
12111 case $ac_var in #(
12112 _ | IFS | as_nl) ;; #(
12113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12114 *) { eval $ac_var=; unset $ac_var;} ;;
12115 esac ;;
12116 esac
12117 done
12118
12119 (set) 2>&1 |
12120 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12121 *${as_nl}ac_space=\ *)
12122 # `set' does not quote correctly, so add quotes: double-quote
12123 # substitution turns \\\\ into \\, and sed turns \\ into \.
12124 sed -n \
12125 "s/'/'\\\\''/g;
12126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12127 ;; #(
12128 *)
12129 # `set' quotes correctly as required by POSIX, so do not add quotes.
12130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12131 ;;
12132 esac |
12133 sort
12134 ) |
12135 sed '
12136 /^ac_cv_env_/b end
12137 t clear
12138 :clear
12139 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12140 t end
12141 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12142 :end' >>confcache
12143 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12144 if test -w "$cache_file"; then
12145 if test "x$cache_file" != "x/dev/null"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12147 $as_echo "$as_me: updating cache $cache_file" >&6;}
12148 if test ! -f "$cache_file" || test -h "$cache_file"; then
12149 cat confcache >"$cache_file"
12150 else
12151 case $cache_file in #(
12152 */* | ?:*)
12153 mv -f confcache "$cache_file"$$ &&
12154 mv -f "$cache_file"$$ "$cache_file" ;; #(
12155 *)
12156 mv -f confcache "$cache_file" ;;
12157 esac
12158 fi
12159 fi
12160 else
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12162 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12163 fi
12164 fi
12165 rm -f confcache
12166
12167 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12168 # Let make expand exec_prefix.
12169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12170
12171 DEFS=-DHAVE_CONFIG_H
12172
12173 ac_libobjs=
12174 ac_ltlibobjs=
12175 U=
12176 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12177 # 1. Remove the extension, and $U if already installed.
12178 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12179 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12180 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12181 # will be set to the directory where LIBOBJS objects are built.
12182 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12183 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12184 done
12185 LIBOBJS=$ac_libobjs
12186
12187 LTLIBOBJS=$ac_ltlibobjs
12188
12189
12190 if test -n "$EXEEXT"; then
12191 am__EXEEXT_TRUE=
12192 am__EXEEXT_FALSE='#'
12193 else
12194 am__EXEEXT_TRUE='#'
12195 am__EXEEXT_FALSE=
12196 fi
12197
12198 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12199 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12201 fi
12202 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12203 as_fn_error $? "conditional \"AMDEP\" was never defined.
12204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12205 fi
12206 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12207 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12209 fi
12210 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12211 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12213 fi
12214 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12215 as_fn_error $? "conditional \"LINT\" was never defined.
12216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12217 fi
12218
12219 : "${CONFIG_STATUS=./config.status}"
12220 ac_write_fail=0
12221 ac_clean_files_save=$ac_clean_files
12222 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12224 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12225 as_write_fail=0
12226 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12227 #! $SHELL
12228 # Generated by $as_me.
12229 # Run this file to recreate the current configuration.
12230 # Compiler output produced by configure, useful for debugging
12231 # configure, is in config.log if it exists.
12232
12233 debug=false
12234 ac_cs_recheck=false
12235 ac_cs_silent=false
12236
12237 SHELL=\${CONFIG_SHELL-$SHELL}
12238 export SHELL
12239 _ASEOF
12240 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12241 ## -------------------- ##
12242 ## M4sh Initialization. ##
12243 ## -------------------- ##
12244
12245 # Be more Bourne compatible
12246 DUALCASE=1; export DUALCASE # for MKS sh
12247 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12248 emulate sh
12249 NULLCMD=:
12250 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12251 # is contrary to our usage. Disable this feature.
12252 alias -g '${1+"$@"}'='"$@"'
12253 setopt NO_GLOB_SUBST
12254 else
12255 case `(set -o) 2>/dev/null` in #(
12256 *posix*) :
12257 set -o posix ;; #(
12258 *) :
12259 ;;
12260 esac
12261 fi
12262
12263
12264 as_nl='
12265 '
12266 export as_nl
12267 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12268 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12269 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12270 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12271 # Prefer a ksh shell builtin over an external printf program on Solaris,
12272 # but without wasting forks for bash or zsh.
12273 if test -z "$BASH_VERSION$ZSH_VERSION" \
12274 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12275 as_echo='print -r --'
12276 as_echo_n='print -rn --'
12277 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12278 as_echo='printf %s\n'
12279 as_echo_n='printf %s'
12280 else
12281 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12282 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12283 as_echo_n='/usr/ucb/echo -n'
12284 else
12285 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12286 as_echo_n_body='eval
12287 arg=$1;
12288 case $arg in #(
12289 *"$as_nl"*)
12290 expr "X$arg" : "X\\(.*\\)$as_nl";
12291 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12292 esac;
12293 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12294 '
12295 export as_echo_n_body
12296 as_echo_n='sh -c $as_echo_n_body as_echo'
12297 fi
12298 export as_echo_body
12299 as_echo='sh -c $as_echo_body as_echo'
12300 fi
12301
12302 # The user is always right.
12303 if test "${PATH_SEPARATOR+set}" != set; then
12304 PATH_SEPARATOR=:
12305 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12306 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12307 PATH_SEPARATOR=';'
12308 }
12309 fi
12310
12311
12312 # IFS
12313 # We need space, tab and new line, in precisely that order. Quoting is
12314 # there to prevent editors from complaining about space-tab.
12315 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12316 # splitting by setting IFS to empty value.)
12317 IFS=" "" $as_nl"
12318
12319 # Find who we are. Look in the path if we contain no directory separator.
12320 as_myself=
12321 case $0 in #((
12322 *[\\/]* ) as_myself=$0 ;;
12323 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12325 do
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12329 done
12330 IFS=$as_save_IFS
12331
12332 ;;
12333 esac
12334 # We did not find ourselves, most probably we were run as `sh COMMAND'
12335 # in which case we are not to be found in the path.
12336 if test "x$as_myself" = x; then
12337 as_myself=$0
12338 fi
12339 if test ! -f "$as_myself"; then
12340 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12341 exit 1
12342 fi
12343
12344 # Unset variables that we do not need and which cause bugs (e.g. in
12345 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12346 # suppresses any "Segmentation fault" message there. '((' could
12347 # trigger a bug in pdksh 5.2.14.
12348 for as_var in BASH_ENV ENV MAIL MAILPATH
12349 do eval test x\${$as_var+set} = xset \
12350 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12351 done
12352 PS1='$ '
12353 PS2='> '
12354 PS4='+ '
12355
12356 # NLS nuisances.
12357 LC_ALL=C
12358 export LC_ALL
12359 LANGUAGE=C
12360 export LANGUAGE
12361
12362 # CDPATH.
12363 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12364
12365
12366 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12367 # ----------------------------------------
12368 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12369 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12370 # script with STATUS, using 1 if that was 0.
12371 as_fn_error ()
12372 {
12373 as_status=$1; test $as_status -eq 0 && as_status=1
12374 if test "$4"; then
12375 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12376 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12377 fi
12378 $as_echo "$as_me: error: $2" >&2
12379 as_fn_exit $as_status
12380 } # as_fn_error
12381
12382
12383 # as_fn_set_status STATUS
12384 # -----------------------
12385 # Set $? to STATUS, without forking.
12386 as_fn_set_status ()
12387 {
12388 return $1
12389 } # as_fn_set_status
12390
12391 # as_fn_exit STATUS
12392 # -----------------
12393 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12394 as_fn_exit ()
12395 {
12396 set +e
12397 as_fn_set_status $1
12398 exit $1
12399 } # as_fn_exit
12400
12401 # as_fn_unset VAR
12402 # ---------------
12403 # Portably unset VAR.
12404 as_fn_unset ()
12405 {
12406 { eval $1=; unset $1;}
12407 }
12408 as_unset=as_fn_unset
12409 # as_fn_append VAR VALUE
12410 # ----------------------
12411 # Append the text in VALUE to the end of the definition contained in VAR. Take
12412 # advantage of any shell optimizations that allow amortized linear growth over
12413 # repeated appends, instead of the typical quadratic growth present in naive
12414 # implementations.
12415 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12416 eval 'as_fn_append ()
12417 {
12418 eval $1+=\$2
12419 }'
12420 else
12421 as_fn_append ()
12422 {
12423 eval $1=\$$1\$2
12424 }
12425 fi # as_fn_append
12426
12427 # as_fn_arith ARG...
12428 # ------------------
12429 # Perform arithmetic evaluation on the ARGs, and store the result in the
12430 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12431 # must be portable across $(()) and expr.
12432 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12433 eval 'as_fn_arith ()
12434 {
12435 as_val=$(( $* ))
12436 }'
12437 else
12438 as_fn_arith ()
12439 {
12440 as_val=`expr "$@" || test $? -eq 1`
12441 }
12442 fi # as_fn_arith
12443
12444
12445 if expr a : '\(a\)' >/dev/null 2>&1 &&
12446 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12447 as_expr=expr
12448 else
12449 as_expr=false
12450 fi
12451
12452 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12453 as_basename=basename
12454 else
12455 as_basename=false
12456 fi
12457
12458 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12459 as_dirname=dirname
12460 else
12461 as_dirname=false
12462 fi
12463
12464 as_me=`$as_basename -- "$0" ||
12465 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12466 X"$0" : 'X\(//\)$' \| \
12467 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12468 $as_echo X/"$0" |
12469 sed '/^.*\/\([^/][^/]*\)\/*$/{
12470 s//\1/
12471 q
12472 }
12473 /^X\/\(\/\/\)$/{
12474 s//\1/
12475 q
12476 }
12477 /^X\/\(\/\).*/{
12478 s//\1/
12479 q
12480 }
12481 s/.*/./; q'`
12482
12483 # Avoid depending upon Character Ranges.
12484 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12485 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12486 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12487 as_cr_digits='0123456789'
12488 as_cr_alnum=$as_cr_Letters$as_cr_digits
12489
12490 ECHO_C= ECHO_N= ECHO_T=
12491 case `echo -n x` in #(((((
12492 -n*)
12493 case `echo 'xy\c'` in
12494 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12495 xy) ECHO_C='\c';;
12496 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12497 ECHO_T=' ';;
12498 esac;;
12499 *)
12500 ECHO_N='-n';;
12501 esac
12502
12503 rm -f conf$$ conf$$.exe conf$$.file
12504 if test -d conf$$.dir; then
12505 rm -f conf$$.dir/conf$$.file
12506 else
12507 rm -f conf$$.dir
12508 mkdir conf$$.dir 2>/dev/null
12509 fi
12510 if (echo >conf$$.file) 2>/dev/null; then
12511 if ln -s conf$$.file conf$$ 2>/dev/null; then
12512 as_ln_s='ln -s'
12513 # ... but there are two gotchas:
12514 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12515 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12516 # In both cases, we have to default to `cp -p'.
12517 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12518 as_ln_s='cp -p'
12519 elif ln conf$$.file conf$$ 2>/dev/null; then
12520 as_ln_s=ln
12521 else
12522 as_ln_s='cp -p'
12523 fi
12524 else
12525 as_ln_s='cp -p'
12526 fi
12527 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12528 rmdir conf$$.dir 2>/dev/null
12529
12530
12531 # as_fn_mkdir_p
12532 # -------------
12533 # Create "$as_dir" as a directory, including parents if necessary.
12534 as_fn_mkdir_p ()
12535 {
12536
12537 case $as_dir in #(
12538 -*) as_dir=./$as_dir;;
12539 esac
12540 test -d "$as_dir" || eval $as_mkdir_p || {
12541 as_dirs=
12542 while :; do
12543 case $as_dir in #(
12544 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12545 *) as_qdir=$as_dir;;
12546 esac
12547 as_dirs="'$as_qdir' $as_dirs"
12548 as_dir=`$as_dirname -- "$as_dir" ||
12549 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12550 X"$as_dir" : 'X\(//\)[^/]' \| \
12551 X"$as_dir" : 'X\(//\)$' \| \
12552 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12553 $as_echo X"$as_dir" |
12554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12555 s//\1/
12556 q
12557 }
12558 /^X\(\/\/\)[^/].*/{
12559 s//\1/
12560 q
12561 }
12562 /^X\(\/\/\)$/{
12563 s//\1/
12564 q
12565 }
12566 /^X\(\/\).*/{
12567 s//\1/
12568 q
12569 }
12570 s/.*/./; q'`
12571 test -d "$as_dir" && break
12572 done
12573 test -z "$as_dirs" || eval "mkdir $as_dirs"
12574 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12575
12576
12577 } # as_fn_mkdir_p
12578 if mkdir -p . 2>/dev/null; then
12579 as_mkdir_p='mkdir -p "$as_dir"'
12580 else
12581 test -d ./-p && rmdir ./-p
12582 as_mkdir_p=false
12583 fi
12584
12585 if test -x / >/dev/null 2>&1; then
12586 as_test_x='test -x'
12587 else
12588 if ls -dL / >/dev/null 2>&1; then
12589 as_ls_L_option=L
12590 else
12591 as_ls_L_option=
12592 fi
12593 as_test_x='
12594 eval sh -c '\''
12595 if test -d "$1"; then
12596 test -d "$1/.";
12597 else
12598 case $1 in #(
12599 -*)set "./$1";;
12600 esac;
12601 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12602 ???[sx]*):;;*)false;;esac;fi
12603 '\'' sh
12604 '
12605 fi
12606 as_executable_p=$as_test_x
12607
12608 # Sed expression to map a string onto a valid CPP name.
12609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12610
12611 # Sed expression to map a string onto a valid variable name.
12612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12613
12614
12615 exec 6>&1
12616 ## ----------------------------------- ##
12617 ## Main body of $CONFIG_STATUS script. ##
12618 ## ----------------------------------- ##
12619 _ASEOF
12620 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12621
12622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12623 # Save the log message, to keep $0 and so on meaningful, and to
12624 # report actual input values of CONFIG_FILES etc. instead of their
12625 # values after options handling.
12626 ac_log="
12627 This file was extended by libXinerama $as_me 1.1.1, which was
12628 generated by GNU Autoconf 2.68. Invocation command line was
12629
12630 CONFIG_FILES = $CONFIG_FILES
12631 CONFIG_HEADERS = $CONFIG_HEADERS
12632 CONFIG_LINKS = $CONFIG_LINKS
12633 CONFIG_COMMANDS = $CONFIG_COMMANDS
12634 $ $0 $@
12635
12636 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12637 "
12638
12639 _ACEOF
12640
12641 case $ac_config_files in *"
12642 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12643 esac
12644
12645 case $ac_config_headers in *"
12646 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12647 esac
12648
12649
12650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12651 # Files that config.status was made for.
12652 config_files="$ac_config_files"
12653 config_headers="$ac_config_headers"
12654 config_commands="$ac_config_commands"
12655
12656 _ACEOF
12657
12658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12659 ac_cs_usage="\
12660 \`$as_me' instantiates files and other configuration actions
12661 from templates according to the current configuration. Unless the files
12662 and actions are specified as TAGs, all are instantiated by default.
12663
12664 Usage: $0 [OPTION]... [TAG]...
12665
12666 -h, --help print this help, then exit
12667 -V, --version print version number and configuration settings, then exit
12668 --config print configuration, then exit
12669 -q, --quiet, --silent
12670 do not print progress messages
12671 -d, --debug don't remove temporary files
12672 --recheck update $as_me by reconfiguring in the same conditions
12673 --file=FILE[:TEMPLATE]
12674 instantiate the configuration file FILE
12675 --header=FILE[:TEMPLATE]
12676 instantiate the configuration header FILE
12677
12678 Configuration files:
12679 $config_files
12680
12681 Configuration headers:
12682 $config_headers
12683
12684 Configuration commands:
12685 $config_commands
12686
12687 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12688
12689 _ACEOF
12690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12691 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12692 ac_cs_version="\\
12693 libXinerama config.status 1.1.1
12694 configured by $0, generated by GNU Autoconf 2.68,
12695 with options \\"\$ac_cs_config\\"
12696
12697 Copyright (C) 2010 Free Software Foundation, Inc.
12698 This config.status script is free software; the Free Software Foundation
12699 gives unlimited permission to copy, distribute and modify it."
12700
12701 ac_pwd='$ac_pwd'
12702 srcdir='$srcdir'
12703 INSTALL='$INSTALL'
12704 MKDIR_P='$MKDIR_P'
12705 AWK='$AWK'
12706 test -n "\$AWK" || AWK=awk
12707 _ACEOF
12708
12709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12710 # The default lists apply if the user does not specify any file.
12711 ac_need_defaults=:
12712 while test $# != 0
12713 do
12714 case $1 in
12715 --*=?*)
12716 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12717 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12718 ac_shift=:
12719 ;;
12720 --*=)
12721 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12722 ac_optarg=
12723 ac_shift=:
12724 ;;
12725 *)
12726 ac_option=$1
12727 ac_optarg=$2
12728 ac_shift=shift
12729 ;;
12730 esac
12731
12732 case $ac_option in
12733 # Handling of the options.
12734 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12735 ac_cs_recheck=: ;;
12736 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12737 $as_echo "$ac_cs_version"; exit ;;
12738 --config | --confi | --conf | --con | --co | --c )
12739 $as_echo "$ac_cs_config"; exit ;;
12740 --debug | --debu | --deb | --de | --d | -d )
12741 debug=: ;;
12742 --file | --fil | --fi | --f )
12743 $ac_shift
12744 case $ac_optarg in
12745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12746 '') as_fn_error $? "missing file argument" ;;
12747 esac
12748 as_fn_append CONFIG_FILES " '$ac_optarg'"
12749 ac_need_defaults=false;;
12750 --header | --heade | --head | --hea )
12751 $ac_shift
12752 case $ac_optarg in
12753 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12754 esac
12755 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12756 ac_need_defaults=false;;
12757 --he | --h)
12758 # Conflict between --help and --header
12759 as_fn_error $? "ambiguous option: \`$1'
12760 Try \`$0 --help' for more information.";;
12761 --help | --hel | -h )
12762 $as_echo "$ac_cs_usage"; exit ;;
12763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12764 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12765 ac_cs_silent=: ;;
12766
12767 # This is an error.
12768 -*) as_fn_error $? "unrecognized option: \`$1'
12769 Try \`$0 --help' for more information." ;;
12770
12771 *) as_fn_append ac_config_targets " $1"
12772 ac_need_defaults=false ;;
12773
12774 esac
12775 shift
12776 done
12777
12778 ac_configure_extra_args=
12779
12780 if $ac_cs_silent; then
12781 exec 6>/dev/null
12782 ac_configure_extra_args="$ac_configure_extra_args --silent"
12783 fi
12784
12785 _ACEOF
12786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12787 if \$ac_cs_recheck; then
12788 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12789 shift
12790 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12791 CONFIG_SHELL='$SHELL'
12792 export CONFIG_SHELL
12793 exec "\$@"
12794 fi
12795
12796 _ACEOF
12797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12798 exec 5>>config.log
12799 {
12800 echo
12801 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12802 ## Running $as_me. ##
12803 _ASBOX
12804 $as_echo "$ac_log"
12805 } >&5
12806
12807 _ACEOF
12808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12809 #
12810 # INIT-COMMANDS
12811 #
12812 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12813
12814
12815 # The HP-UX ksh and POSIX shell print the target directory to stdout
12816 # if CDPATH is set.
12817 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12818
12819 sed_quote_subst='$sed_quote_subst'
12820 double_quote_subst='$double_quote_subst'
12821 delay_variable_subst='$delay_variable_subst'
12822 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12823 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12824 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12825 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12826 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12827 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12828 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12829 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12830 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12831 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12832 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12833 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12834 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12835 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12836 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12837 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12838 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12839 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12840 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12841 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12842 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12843 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12844 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12845 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12846 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12847 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12848 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12849 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12850 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12851 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12852 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12853 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12854 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12855 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12856 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12857 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12858 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12859 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12860 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12861 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12862 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12863 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12864 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12865 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12866 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12867 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12869 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12870 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"`'
12871 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12872 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12873 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12874 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12875 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12876 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12877 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12878 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12879 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12880 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12881 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12882 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12883 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12884 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12885 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12886 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12887 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12888 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12889 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12890 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12891 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12892 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12893 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12894 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12895 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12896 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12897 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12898 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12899 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12900 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12901 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12902 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12903 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12904 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12905 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12906 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12907 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12908 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12909 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12910 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12911 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12912 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12913 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12914 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12915 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12916 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12917 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12918 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12919 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12920 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12921 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12922 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12923 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12924 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12925 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12926 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12927 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12928 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12929 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12930 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12931 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12932 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12933 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12934 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12935 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12936 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12937 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12938 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12939 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12940 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12941 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12942
12943 LTCC='$LTCC'
12944 LTCFLAGS='$LTCFLAGS'
12945 compiler='$compiler_DEFAULT'
12946
12947 # A function that is used when there is no print builtin or printf.
12948 func_fallback_echo ()
12949 {
12950 eval 'cat <<_LTECHO_EOF
12951 \$1
12952 _LTECHO_EOF'
12953 }
12954
12955 # Quote evaled strings.
12956 for var in SHELL \
12957 ECHO \
12958 SED \
12959 GREP \
12960 EGREP \
12961 FGREP \
12962 LD \
12963 NM \
12964 LN_S \
12965 lt_SP2NL \
12966 lt_NL2SP \
12967 reload_flag \
12968 OBJDUMP \
12969 deplibs_check_method \
12970 file_magic_cmd \
12971 AR \
12972 AR_FLAGS \
12973 STRIP \
12974 RANLIB \
12975 CC \
12976 CFLAGS \
12977 compiler \
12978 lt_cv_sys_global_symbol_pipe \
12979 lt_cv_sys_global_symbol_to_cdecl \
12980 lt_cv_sys_global_symbol_to_c_name_address \
12981 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12982 lt_prog_compiler_no_builtin_flag \
12983 lt_prog_compiler_wl \
12984 lt_prog_compiler_pic \
12985 lt_prog_compiler_static \
12986 lt_cv_prog_compiler_c_o \
12987 need_locks \
12988 DSYMUTIL \
12989 NMEDIT \
12990 LIPO \
12991 OTOOL \
12992 OTOOL64 \
12993 shrext_cmds \
12994 export_dynamic_flag_spec \
12995 whole_archive_flag_spec \
12996 compiler_needs_object \
12997 with_gnu_ld \
12998 allow_undefined_flag \
12999 no_undefined_flag \
13000 hardcode_libdir_flag_spec \
13001 hardcode_libdir_flag_spec_ld \
13002 hardcode_libdir_separator \
13003 fix_srcfile_path \
13004 exclude_expsyms \
13005 include_expsyms \
13006 file_list_spec \
13007 variables_saved_for_relink \
13008 libname_spec \
13009 library_names_spec \
13010 soname_spec \
13011 install_override_mode \
13012 finish_eval \
13013 old_striplib \
13014 striplib; do
13015 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13016 *[\\\\\\\`\\"\\\$]*)
13017 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13018 ;;
13019 *)
13020 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13021 ;;
13022 esac
13023 done
13024
13025 # Double-quote double-evaled strings.
13026 for var in reload_cmds \
13027 old_postinstall_cmds \
13028 old_postuninstall_cmds \
13029 old_archive_cmds \
13030 extract_expsyms_cmds \
13031 old_archive_from_new_cmds \
13032 old_archive_from_expsyms_cmds \
13033 archive_cmds \
13034 archive_expsym_cmds \
13035 module_cmds \
13036 module_expsym_cmds \
13037 export_symbols_cmds \
13038 prelink_cmds \
13039 postinstall_cmds \
13040 postuninstall_cmds \
13041 finish_cmds \
13042 sys_lib_search_path_spec \
13043 sys_lib_dlsearch_path_spec; do
13044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13045 *[\\\\\\\`\\"\\\$]*)
13046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13047 ;;
13048 *)
13049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13050 ;;
13051 esac
13052 done
13053
13054 ac_aux_dir='$ac_aux_dir'
13055 xsi_shell='$xsi_shell'
13056 lt_shell_append='$lt_shell_append'
13057
13058 # See if we are running on zsh, and set the options which allow our
13059 # commands through without removal of \ escapes INIT.
13060 if test -n "\${ZSH_VERSION+set}" ; then
13061 setopt NO_GLOB_SUBST
13062 fi
13063
13064
13065 PACKAGE='$PACKAGE'
13066 VERSION='$VERSION'
13067 TIMESTAMP='$TIMESTAMP'
13068 RM='$RM'
13069 ofile='$ofile'
13070
13071
13072
13073
13074 _ACEOF
13075
13076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13077
13078 # Handling of arguments.
13079 for ac_config_target in $ac_config_targets
13080 do
13081 case $ac_config_target in
13082 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13083 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13084 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13085 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13086 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13087 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13088 "xinerama.pc") CONFIG_FILES="$CONFIG_FILES xinerama.pc" ;;
13089
13090 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13091 esac
13092 done
13093
13094
13095 # If the user did not use the arguments to specify the items to instantiate,
13096 # then the envvar interface is used. Set only those that are not.
13097 # We use the long form for the default assignment because of an extremely
13098 # bizarre bug on SunOS 4.1.3.
13099 if $ac_need_defaults; then
13100 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13101 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13102 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13103 fi
13104
13105 # Have a temporary directory for convenience. Make it in the build tree
13106 # simply because there is no reason against having it here, and in addition,
13107 # creating and moving files from /tmp can sometimes cause problems.
13108 # Hook for its removal unless debugging.
13109 # Note that there is a small window in which the directory will not be cleaned:
13110 # after its creation but before its name has been assigned to `$tmp'.
13111 $debug ||
13112 {
13113 tmp= ac_tmp=
13114 trap 'exit_status=$?
13115 : "${ac_tmp:=$tmp}"
13116 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13117 ' 0
13118 trap 'as_fn_exit 1' 1 2 13 15
13119 }
13120 # Create a (secure) tmp directory for tmp files.
13121
13122 {
13123 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13124 test -d "$tmp"
13125 } ||
13126 {
13127 tmp=./conf$$-$RANDOM
13128 (umask 077 && mkdir "$tmp")
13129 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13130 ac_tmp=$tmp
13131
13132 # Set up the scripts for CONFIG_FILES section.
13133 # No need to generate them if there are no CONFIG_FILES.
13134 # This happens for instance with `./config.status config.h'.
13135 if test -n "$CONFIG_FILES"; then
13136
13137
13138 ac_cr=`echo X | tr X '\015'`
13139 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13140 # But we know of no other shell where ac_cr would be empty at this
13141 # point, so we can use a bashism as a fallback.
13142 if test "x$ac_cr" = x; then
13143 eval ac_cr=\$\'\\r\'
13144 fi
13145 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13146 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13147 ac_cs_awk_cr='\\r'
13148 else
13149 ac_cs_awk_cr=$ac_cr
13150 fi
13151
13152 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13153 _ACEOF
13154
13155
13156 {
13157 echo "cat >conf$$subs.awk <<_ACEOF" &&
13158 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13159 echo "_ACEOF"
13160 } >conf$$subs.sh ||
13161 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13162 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13163 ac_delim='%!_!# '
13164 for ac_last_try in false false false false false :; do
13165 . ./conf$$subs.sh ||
13166 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13167
13168 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13169 if test $ac_delim_n = $ac_delim_num; then
13170 break
13171 elif $ac_last_try; then
13172 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13173 else
13174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13175 fi
13176 done
13177 rm -f conf$$subs.sh
13178
13179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13180 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13181 _ACEOF
13182 sed -n '
13183 h
13184 s/^/S["/; s/!.*/"]=/
13185 p
13186 g
13187 s/^[^!]*!//
13188 :repl
13189 t repl
13190 s/'"$ac_delim"'$//
13191 t delim
13192 :nl
13193 h
13194 s/\(.\{148\}\)..*/\1/
13195 t more1
13196 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13197 p
13198 n
13199 b repl
13200 :more1
13201 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13202 p
13203 g
13204 s/.\{148\}//
13205 t nl
13206 :delim
13207 h
13208 s/\(.\{148\}\)..*/\1/
13209 t more2
13210 s/["\\]/\\&/g; s/^/"/; s/$/"/
13211 p
13212 b
13213 :more2
13214 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13215 p
13216 g
13217 s/.\{148\}//
13218 t delim
13219 ' <conf$$subs.awk | sed '
13220 /^[^""]/{
13221 N
13222 s/\n//
13223 }
13224 ' >>$CONFIG_STATUS || ac_write_fail=1
13225 rm -f conf$$subs.awk
13226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13227 _ACAWK
13228 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13229 for (key in S) S_is_set[key] = 1
13230 FS = ""
13231
13232 }
13233 {
13234 line = $ 0
13235 nfields = split(line, field, "@")
13236 substed = 0
13237 len = length(field[1])
13238 for (i = 2; i < nfields; i++) {
13239 key = field[i]
13240 keylen = length(key)
13241 if (S_is_set[key]) {
13242 value = S[key]
13243 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13244 len += length(value) + length(field[++i])
13245 substed = 1
13246 } else
13247 len += 1 + keylen
13248 }
13249
13250 print line
13251 }
13252
13253 _ACAWK
13254 _ACEOF
13255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13256 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13257 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13258 else
13259 cat
13260 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13261 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13262 _ACEOF
13263
13264 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13265 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13266 # trailing colons and then remove the whole line if VPATH becomes empty
13267 # (actually we leave an empty line to preserve line numbers).
13268 if test "x$srcdir" = x.; then
13269 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13270 h
13271 s///
13272 s/^/:/
13273 s/[ ]*$/:/
13274 s/:\$(srcdir):/:/g
13275 s/:\${srcdir}:/:/g
13276 s/:@srcdir@:/:/g
13277 s/^:*//
13278 s/:*$//
13279 x
13280 s/\(=[ ]*\).*/\1/
13281 G
13282 s/\n//
13283 s/^[^=]*=[ ]*$//
13284 }'
13285 fi
13286
13287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13288 fi # test -n "$CONFIG_FILES"
13289
13290 # Set up the scripts for CONFIG_HEADERS section.
13291 # No need to generate them if there are no CONFIG_HEADERS.
13292 # This happens for instance with `./config.status Makefile'.
13293 if test -n "$CONFIG_HEADERS"; then
13294 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13295 BEGIN {
13296 _ACEOF
13297
13298 # Transform confdefs.h into an awk script `defines.awk', embedded as
13299 # here-document in config.status, that substitutes the proper values into
13300 # config.h.in to produce config.h.
13301
13302 # Create a delimiter string that does not exist in confdefs.h, to ease
13303 # handling of long lines.
13304 ac_delim='%!_!# '
13305 for ac_last_try in false false :; do
13306 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13307 if test -z "$ac_tt"; then
13308 break
13309 elif $ac_last_try; then
13310 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13311 else
13312 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13313 fi
13314 done
13315
13316 # For the awk script, D is an array of macro values keyed by name,
13317 # likewise P contains macro parameters if any. Preserve backslash
13318 # newline sequences.
13319
13320 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13321 sed -n '
13322 s/.\{148\}/&'"$ac_delim"'/g
13323 t rset
13324 :rset
13325 s/^[ ]*#[ ]*define[ ][ ]*/ /
13326 t def
13327 d
13328 :def
13329 s/\\$//
13330 t bsnl
13331 s/["\\]/\\&/g
13332 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13333 D["\1"]=" \3"/p
13334 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13335 d
13336 :bsnl
13337 s/["\\]/\\&/g
13338 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13339 D["\1"]=" \3\\\\\\n"\\/p
13340 t cont
13341 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13342 t cont
13343 d
13344 :cont
13345 n
13346 s/.\{148\}/&'"$ac_delim"'/g
13347 t clear
13348 :clear
13349 s/\\$//
13350 t bsnlc
13351 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13352 d
13353 :bsnlc
13354 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13355 b cont
13356 ' <confdefs.h | sed '
13357 s/'"$ac_delim"'/"\\\
13358 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13359
13360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13361 for (key in D) D_is_set[key] = 1
13362 FS = ""
13363 }
13364 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13365 line = \$ 0
13366 split(line, arg, " ")
13367 if (arg[1] == "#") {
13368 defundef = arg[2]
13369 mac1 = arg[3]
13370 } else {
13371 defundef = substr(arg[1], 2)
13372 mac1 = arg[2]
13373 }
13374 split(mac1, mac2, "(") #)
13375 macro = mac2[1]
13376 prefix = substr(line, 1, index(line, defundef) - 1)
13377 if (D_is_set[macro]) {
13378 # Preserve the white space surrounding the "#".
13379 print prefix "define", macro P[macro] D[macro]
13380 next
13381 } else {
13382 # Replace #undef with comments. This is necessary, for example,
13383 # in the case of _POSIX_SOURCE, which is predefined and required
13384 # on some systems where configure will not decide to define it.
13385 if (defundef == "undef") {
13386 print "/*", prefix defundef, macro, "*/"
13387 next
13388 }
13389 }
13390 }
13391 { print }
13392 _ACAWK
13393 _ACEOF
13394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13395 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13396 fi # test -n "$CONFIG_HEADERS"
13397
13398
13399 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13400 shift
13401 for ac_tag
13402 do
13403 case $ac_tag in
13404 :[FHLC]) ac_mode=$ac_tag; continue;;
13405 esac
13406 case $ac_mode$ac_tag in
13407 :[FHL]*:*);;
13408 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13409 :[FH]-) ac_tag=-:-;;
13410 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13411 esac
13412 ac_save_IFS=$IFS
13413 IFS=:
13414 set x $ac_tag
13415 IFS=$ac_save_IFS
13416 shift
13417 ac_file=$1
13418 shift
13419
13420 case $ac_mode in
13421 :L) ac_source=$1;;
13422 :[FH])
13423 ac_file_inputs=
13424 for ac_f
13425 do
13426 case $ac_f in
13427 -) ac_f="$ac_tmp/stdin";;
13428 *) # Look for the file first in the build tree, then in the source tree
13429 # (if the path is not absolute). The absolute path cannot be DOS-style,
13430 # because $ac_f cannot contain `:'.
13431 test -f "$ac_f" ||
13432 case $ac_f in
13433 [\\/$]*) false;;
13434 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13435 esac ||
13436 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13437 esac
13438 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13439 as_fn_append ac_file_inputs " '$ac_f'"
13440 done
13441
13442 # Let's still pretend it is `configure' which instantiates (i.e., don't
13443 # use $as_me), people would be surprised to read:
13444 # /* config.h. Generated by config.status. */
13445 configure_input='Generated from '`
13446 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13447 `' by configure.'
13448 if test x"$ac_file" != x-; then
13449 configure_input="$ac_file. $configure_input"
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13451 $as_echo "$as_me: creating $ac_file" >&6;}
13452 fi
13453 # Neutralize special characters interpreted by sed in replacement strings.
13454 case $configure_input in #(
13455 *\&* | *\|* | *\\* )
13456 ac_sed_conf_input=`$as_echo "$configure_input" |
13457 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13458 *) ac_sed_conf_input=$configure_input;;
13459 esac
13460
13461 case $ac_tag in
13462 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13464 esac
13465 ;;
13466 esac
13467
13468 ac_dir=`$as_dirname -- "$ac_file" ||
13469 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13470 X"$ac_file" : 'X\(//\)[^/]' \| \
13471 X"$ac_file" : 'X\(//\)$' \| \
13472 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13473 $as_echo X"$ac_file" |
13474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13475 s//\1/
13476 q
13477 }
13478 /^X\(\/\/\)[^/].*/{
13479 s//\1/
13480 q
13481 }
13482 /^X\(\/\/\)$/{
13483 s//\1/
13484 q
13485 }
13486 /^X\(\/\).*/{
13487 s//\1/
13488 q
13489 }
13490 s/.*/./; q'`
13491 as_dir="$ac_dir"; as_fn_mkdir_p
13492 ac_builddir=.
13493
13494 case "$ac_dir" in
13495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13496 *)
13497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13498 # A ".." for each directory in $ac_dir_suffix.
13499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13500 case $ac_top_builddir_sub in
13501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13503 esac ;;
13504 esac
13505 ac_abs_top_builddir=$ac_pwd
13506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13507 # for backward compatibility:
13508 ac_top_builddir=$ac_top_build_prefix
13509
13510 case $srcdir in
13511 .) # We are building in place.
13512 ac_srcdir=.
13513 ac_top_srcdir=$ac_top_builddir_sub
13514 ac_abs_top_srcdir=$ac_pwd ;;
13515 [\\/]* | ?:[\\/]* ) # Absolute name.
13516 ac_srcdir=$srcdir$ac_dir_suffix;
13517 ac_top_srcdir=$srcdir
13518 ac_abs_top_srcdir=$srcdir ;;
13519 *) # Relative name.
13520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13521 ac_top_srcdir=$ac_top_build_prefix$srcdir
13522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13523 esac
13524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13525
13526
13527 case $ac_mode in
13528 :F)
13529 #
13530 # CONFIG_FILE
13531 #
13532
13533 case $INSTALL in
13534 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13535 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13536 esac
13537 ac_MKDIR_P=$MKDIR_P
13538 case $MKDIR_P in
13539 [\\/$]* | ?:[\\/]* ) ;;
13540 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13541 esac
13542 _ACEOF
13543
13544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13545 # If the template does not know about datarootdir, expand it.
13546 # FIXME: This hack should be removed a few years after 2.60.
13547 ac_datarootdir_hack=; ac_datarootdir_seen=
13548 ac_sed_dataroot='
13549 /datarootdir/ {
13550 p
13551 q
13552 }
13553 /@datadir@/p
13554 /@docdir@/p
13555 /@infodir@/p
13556 /@localedir@/p
13557 /@mandir@/p'
13558 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13559 *datarootdir*) ac_datarootdir_seen=yes;;
13560 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13562 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13563 _ACEOF
13564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13565 ac_datarootdir_hack='
13566 s&@datadir@&$datadir&g
13567 s&@docdir@&$docdir&g
13568 s&@infodir@&$infodir&g
13569 s&@localedir@&$localedir&g
13570 s&@mandir@&$mandir&g
13571 s&\\\${datarootdir}&$datarootdir&g' ;;
13572 esac
13573 _ACEOF
13574
13575 # Neutralize VPATH when `$srcdir' = `.'.
13576 # Shell code in configure.ac might set extrasub.
13577 # FIXME: do we really want to maintain this feature?
13578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13579 ac_sed_extra="$ac_vpsub
13580 $extrasub
13581 _ACEOF
13582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13583 :t
13584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13585 s|@configure_input@|$ac_sed_conf_input|;t t
13586 s&@top_builddir@&$ac_top_builddir_sub&;t t
13587 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13588 s&@srcdir@&$ac_srcdir&;t t
13589 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13590 s&@top_srcdir@&$ac_top_srcdir&;t t
13591 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13592 s&@builddir@&$ac_builddir&;t t
13593 s&@abs_builddir@&$ac_abs_builddir&;t t
13594 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13595 s&@INSTALL@&$ac_INSTALL&;t t
13596 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13597 $ac_datarootdir_hack
13598 "
13599 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13600 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13601
13602 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13603 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13604 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13605 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13607 which seems to be undefined. Please make sure it is defined" >&5
13608 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13609 which seems to be undefined. Please make sure it is defined" >&2;}
13610
13611 rm -f "$ac_tmp/stdin"
13612 case $ac_file in
13613 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13614 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13615 esac \
13616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13617 ;;
13618 :H)
13619 #
13620 # CONFIG_HEADER
13621 #
13622 if test x"$ac_file" != x-; then
13623 {
13624 $as_echo "/* $configure_input */" \
13625 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13626 } >"$ac_tmp/config.h" \
13627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13628 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13630 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13631 else
13632 rm -f "$ac_file"
13633 mv "$ac_tmp/config.h" "$ac_file" \
13634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13635 fi
13636 else
13637 $as_echo "/* $configure_input */" \
13638 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13639 || as_fn_error $? "could not create -" "$LINENO" 5
13640 fi
13641 # Compute "$ac_file"'s index in $config_headers.
13642 _am_arg="$ac_file"
13643 _am_stamp_count=1
13644 for _am_header in $config_headers :; do
13645 case $_am_header in
13646 $_am_arg | $_am_arg:* )
13647 break ;;
13648 * )
13649 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13650 esac
13651 done
13652 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13653 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13654 X"$_am_arg" : 'X\(//\)[^/]' \| \
13655 X"$_am_arg" : 'X\(//\)$' \| \
13656 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13657 $as_echo X"$_am_arg" |
13658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13659 s//\1/
13660 q
13661 }
13662 /^X\(\/\/\)[^/].*/{
13663 s//\1/
13664 q
13665 }
13666 /^X\(\/\/\)$/{
13667 s//\1/
13668 q
13669 }
13670 /^X\(\/\).*/{
13671 s//\1/
13672 q
13673 }
13674 s/.*/./; q'`/stamp-h$_am_stamp_count
13675 ;;
13676
13677 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13678 $as_echo "$as_me: executing $ac_file commands" >&6;}
13679 ;;
13680 esac
13681
13682
13683 case $ac_file$ac_mode in
13684 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13685 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13686 # are listed without --file. Let's play safe and only enable the eval
13687 # if we detect the quoting.
13688 case $CONFIG_FILES in
13689 *\'*) eval set x "$CONFIG_FILES" ;;
13690 *) set x $CONFIG_FILES ;;
13691 esac
13692 shift
13693 for mf
13694 do
13695 # Strip MF so we end up with the name of the file.
13696 mf=`echo "$mf" | sed -e 's/:.*$//'`
13697 # Check whether this is an Automake generated Makefile or not.
13698 # We used to match only the files named `Makefile.in', but
13699 # some people rename them; so instead we look at the file content.
13700 # Grep'ing the first line is not enough: some people post-process
13701 # each Makefile.in and add a new line on top of each file to say so.
13702 # Grep'ing the whole file is not good either: AIX grep has a line
13703 # limit of 2048, but all sed's we know have understand at least 4000.
13704 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13705 dirpart=`$as_dirname -- "$mf" ||
13706 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13707 X"$mf" : 'X\(//\)[^/]' \| \
13708 X"$mf" : 'X\(//\)$' \| \
13709 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13710 $as_echo X"$mf" |
13711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13712 s//\1/
13713 q
13714 }
13715 /^X\(\/\/\)[^/].*/{
13716 s//\1/
13717 q
13718 }
13719 /^X\(\/\/\)$/{
13720 s//\1/
13721 q
13722 }
13723 /^X\(\/\).*/{
13724 s//\1/
13725 q
13726 }
13727 s/.*/./; q'`
13728 else
13729 continue
13730 fi
13731 # Extract the definition of DEPDIR, am__include, and am__quote
13732 # from the Makefile without running `make'.
13733 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13734 test -z "$DEPDIR" && continue
13735 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13736 test -z "am__include" && continue
13737 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13738 # When using ansi2knr, U may be empty or an underscore; expand it
13739 U=`sed -n 's/^U = //p' < "$mf"`
13740 # Find all dependency output files, they are included files with
13741 # $(DEPDIR) in their names. We invoke sed twice because it is the
13742 # simplest approach to changing $(DEPDIR) to its actual value in the
13743 # expansion.
13744 for file in `sed -n "
13745 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13746 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13747 # Make sure the directory exists.
13748 test -f "$dirpart/$file" && continue
13749 fdir=`$as_dirname -- "$file" ||
13750 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13751 X"$file" : 'X\(//\)[^/]' \| \
13752 X"$file" : 'X\(//\)$' \| \
13753 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13754 $as_echo X"$file" |
13755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13756 s//\1/
13757 q
13758 }
13759 /^X\(\/\/\)[^/].*/{
13760 s//\1/
13761 q
13762 }
13763 /^X\(\/\/\)$/{
13764 s//\1/
13765 q
13766 }
13767 /^X\(\/\).*/{
13768 s//\1/
13769 q
13770 }
13771 s/.*/./; q'`
13772 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13773 # echo "creating $dirpart/$file"
13774 echo '# dummy' > "$dirpart/$file"
13775 done
13776 done
13777 }
13778 ;;
13779 "libtool":C)
13780
13781 # See if we are running on zsh, and set the options which allow our
13782 # commands through without removal of \ escapes.
13783 if test -n "${ZSH_VERSION+set}" ; then
13784 setopt NO_GLOB_SUBST
13785 fi
13786
13787 cfgfile="${ofile}T"
13788 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13789 $RM "$cfgfile"
13790
13791 cat <<_LT_EOF >> "$cfgfile"
13792 #! $SHELL
13793
13794 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13795 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13796 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13797 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13798 #
13799 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13800 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13801 # Inc.
13802 # Written by Gordon Matzigkeit, 1996
13803 #
13804 # This file is part of GNU Libtool.
13805 #
13806 # GNU Libtool is free software; you can redistribute it and/or
13807 # modify it under the terms of the GNU General Public License as
13808 # published by the Free Software Foundation; either version 2 of
13809 # the License, or (at your option) any later version.
13810 #
13811 # As a special exception to the GNU General Public License,
13812 # if you distribute this file as part of a program or library that
13813 # is built using GNU Libtool, you may include this file under the
13814 # same distribution terms that you use for the rest of that program.
13815 #
13816 # GNU Libtool is distributed in the hope that it will be useful,
13817 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13818 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13819 # GNU General Public License for more details.
13820 #
13821 # You should have received a copy of the GNU General Public License
13822 # along with GNU Libtool; see the file COPYING. If not, a copy
13823 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13824 # obtained by writing to the Free Software Foundation, Inc.,
13825 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13826
13827
13828 # The names of the tagged configurations supported by this script.
13829 available_tags=""
13830
13831 # ### BEGIN LIBTOOL CONFIG
13832
13833 # Which release of libtool.m4 was used?
13834 macro_version=$macro_version
13835 macro_revision=$macro_revision
13836
13837 # Whether or not to build shared libraries.
13838 build_libtool_libs=$enable_shared
13839
13840 # Whether or not to build static libraries.
13841 build_old_libs=$enable_static
13842
13843 # What type of objects to build.
13844 pic_mode=$pic_mode
13845
13846 # Whether or not to optimize for fast installation.
13847 fast_install=$enable_fast_install
13848
13849 # Shell to use when invoking shell scripts.
13850 SHELL=$lt_SHELL
13851
13852 # An echo program that protects backslashes.
13853 ECHO=$lt_ECHO
13854
13855 # The host system.
13856 host_alias=$host_alias
13857 host=$host
13858 host_os=$host_os
13859
13860 # The build system.
13861 build_alias=$build_alias
13862 build=$build
13863 build_os=$build_os
13864
13865 # A sed program that does not truncate output.
13866 SED=$lt_SED
13867
13868 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13869 Xsed="\$SED -e 1s/^X//"
13870
13871 # A grep program that handles long lines.
13872 GREP=$lt_GREP
13873
13874 # An ERE matcher.
13875 EGREP=$lt_EGREP
13876
13877 # A literal string matcher.
13878 FGREP=$lt_FGREP
13879
13880 # A BSD- or MS-compatible name lister.
13881 NM=$lt_NM
13882
13883 # Whether we need soft or hard links.
13884 LN_S=$lt_LN_S
13885
13886 # What is the maximum length of a command?
13887 max_cmd_len=$max_cmd_len
13888
13889 # Object file suffix (normally "o").
13890 objext=$ac_objext
13891
13892 # Executable file suffix (normally "").
13893 exeext=$exeext
13894
13895 # whether the shell understands "unset".
13896 lt_unset=$lt_unset
13897
13898 # turn spaces into newlines.
13899 SP2NL=$lt_lt_SP2NL
13900
13901 # turn newlines into spaces.
13902 NL2SP=$lt_lt_NL2SP
13903
13904 # An object symbol dumper.
13905 OBJDUMP=$lt_OBJDUMP
13906
13907 # Method to check whether dependent libraries are shared objects.
13908 deplibs_check_method=$lt_deplibs_check_method
13909
13910 # Command to use when deplibs_check_method == "file_magic".
13911 file_magic_cmd=$lt_file_magic_cmd
13912
13913 # The archiver.
13914 AR=$lt_AR
13915 AR_FLAGS=$lt_AR_FLAGS
13916
13917 # A symbol stripping program.
13918 STRIP=$lt_STRIP
13919
13920 # Commands used to install an old-style archive.
13921 RANLIB=$lt_RANLIB
13922 old_postinstall_cmds=$lt_old_postinstall_cmds
13923 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13924
13925 # Whether to use a lock for old archive extraction.
13926 lock_old_archive_extraction=$lock_old_archive_extraction
13927
13928 # A C compiler.
13929 LTCC=$lt_CC
13930
13931 # LTCC compiler flags.
13932 LTCFLAGS=$lt_CFLAGS
13933
13934 # Take the output of nm and produce a listing of raw symbols and C names.
13935 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13936
13937 # Transform the output of nm in a proper C declaration.
13938 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13939
13940 # Transform the output of nm in a C name address pair.
13941 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13942
13943 # Transform the output of nm in a C name address pair when lib prefix is needed.
13944 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13945
13946 # The name of the directory that contains temporary libtool files.
13947 objdir=$objdir
13948
13949 # Used to examine libraries when file_magic_cmd begins with "file".
13950 MAGIC_CMD=$MAGIC_CMD
13951
13952 # Must we lock files when doing compilation?
13953 need_locks=$lt_need_locks
13954
13955 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13956 DSYMUTIL=$lt_DSYMUTIL
13957
13958 # Tool to change global to local symbols on Mac OS X.
13959 NMEDIT=$lt_NMEDIT
13960
13961 # Tool to manipulate fat objects and archives on Mac OS X.
13962 LIPO=$lt_LIPO
13963
13964 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13965 OTOOL=$lt_OTOOL
13966
13967 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13968 OTOOL64=$lt_OTOOL64
13969
13970 # Old archive suffix (normally "a").
13971 libext=$libext
13972
13973 # Shared library suffix (normally ".so").
13974 shrext_cmds=$lt_shrext_cmds
13975
13976 # The commands to extract the exported symbol list from a shared archive.
13977 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13978
13979 # Variables whose values should be saved in libtool wrapper scripts and
13980 # restored at link time.
13981 variables_saved_for_relink=$lt_variables_saved_for_relink
13982
13983 # Do we need the "lib" prefix for modules?
13984 need_lib_prefix=$need_lib_prefix
13985
13986 # Do we need a version for libraries?
13987 need_version=$need_version
13988
13989 # Library versioning type.
13990 version_type=$version_type
13991
13992 # Shared library runtime path variable.
13993 runpath_var=$runpath_var
13994
13995 # Shared library path variable.
13996 shlibpath_var=$shlibpath_var
13997
13998 # Is shlibpath searched before the hard-coded library search path?
13999 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14000
14001 # Format of library name prefix.
14002 libname_spec=$lt_libname_spec
14003
14004 # List of archive names. First name is the real one, the rest are links.
14005 # The last name is the one that the linker finds with -lNAME
14006 library_names_spec=$lt_library_names_spec
14007
14008 # The coded name of the library, if different from the real name.
14009 soname_spec=$lt_soname_spec
14010
14011 # Permission mode override for installation of shared libraries.
14012 install_override_mode=$lt_install_override_mode
14013
14014 # Command to use after installation of a shared archive.
14015 postinstall_cmds=$lt_postinstall_cmds
14016
14017 # Command to use after uninstallation of a shared archive.
14018 postuninstall_cmds=$lt_postuninstall_cmds
14019
14020 # Commands used to finish a libtool library installation in a directory.
14021 finish_cmds=$lt_finish_cmds
14022
14023 # As "finish_cmds", except a single script fragment to be evaled but
14024 # not shown.
14025 finish_eval=$lt_finish_eval
14026
14027 # Whether we should hardcode library paths into libraries.
14028 hardcode_into_libs=$hardcode_into_libs
14029
14030 # Compile-time system search path for libraries.
14031 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14032
14033 # Run-time system search path for libraries.
14034 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14035
14036 # Whether dlopen is supported.
14037 dlopen_support=$enable_dlopen
14038
14039 # Whether dlopen of programs is supported.
14040 dlopen_self=$enable_dlopen_self
14041
14042 # Whether dlopen of statically linked programs is supported.
14043 dlopen_self_static=$enable_dlopen_self_static
14044
14045 # Commands to strip libraries.
14046 old_striplib=$lt_old_striplib
14047 striplib=$lt_striplib
14048
14049
14050 # The linker used to build libraries.
14051 LD=$lt_LD
14052
14053 # How to create reloadable object files.
14054 reload_flag=$lt_reload_flag
14055 reload_cmds=$lt_reload_cmds
14056
14057 # Commands used to build an old-style archive.
14058 old_archive_cmds=$lt_old_archive_cmds
14059
14060 # A language specific compiler.
14061 CC=$lt_compiler
14062
14063 # Is the compiler the GNU compiler?
14064 with_gcc=$GCC
14065
14066 # Compiler flag to turn off builtin functions.
14067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14068
14069 # How to pass a linker flag through the compiler.
14070 wl=$lt_lt_prog_compiler_wl
14071
14072 # Additional compiler flags for building library objects.
14073 pic_flag=$lt_lt_prog_compiler_pic
14074
14075 # Compiler flag to prevent dynamic linking.
14076 link_static_flag=$lt_lt_prog_compiler_static
14077
14078 # Does compiler simultaneously support -c and -o options?
14079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14080
14081 # Whether or not to add -lc for building shared libraries.
14082 build_libtool_need_lc=$archive_cmds_need_lc
14083
14084 # Whether or not to disallow shared libs when runtime libs are static.
14085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14086
14087 # Compiler flag to allow reflexive dlopens.
14088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14089
14090 # Compiler flag to generate shared objects directly from archives.
14091 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14092
14093 # Whether the compiler copes with passing no objects directly.
14094 compiler_needs_object=$lt_compiler_needs_object
14095
14096 # Create an old-style archive from a shared archive.
14097 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14098
14099 # Create a temporary old-style archive to link instead of a shared archive.
14100 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14101
14102 # Commands used to build a shared archive.
14103 archive_cmds=$lt_archive_cmds
14104 archive_expsym_cmds=$lt_archive_expsym_cmds
14105
14106 # Commands used to build a loadable module if different from building
14107 # a shared archive.
14108 module_cmds=$lt_module_cmds
14109 module_expsym_cmds=$lt_module_expsym_cmds
14110
14111 # Whether we are building with GNU ld or not.
14112 with_gnu_ld=$lt_with_gnu_ld
14113
14114 # Flag that allows shared libraries with undefined symbols to be built.
14115 allow_undefined_flag=$lt_allow_undefined_flag
14116
14117 # Flag that enforces no undefined symbols.
14118 no_undefined_flag=$lt_no_undefined_flag
14119
14120 # Flag to hardcode \$libdir into a binary during linking.
14121 # This must work even if \$libdir does not exist
14122 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14123
14124 # If ld is used when linking, flag to hardcode \$libdir into a binary
14125 # during linking. This must work even if \$libdir does not exist.
14126 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14127
14128 # Whether we need a single "-rpath" flag with a separated argument.
14129 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14130
14131 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14132 # DIR into the resulting binary.
14133 hardcode_direct=$hardcode_direct
14134
14135 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14136 # DIR into the resulting binary and the resulting library dependency is
14137 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14138 # library is relocated.
14139 hardcode_direct_absolute=$hardcode_direct_absolute
14140
14141 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14142 # into the resulting binary.
14143 hardcode_minus_L=$hardcode_minus_L
14144
14145 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14146 # into the resulting binary.
14147 hardcode_shlibpath_var=$hardcode_shlibpath_var
14148
14149 # Set to "yes" if building a shared library automatically hardcodes DIR
14150 # into the library and all subsequent libraries and executables linked
14151 # against it.
14152 hardcode_automatic=$hardcode_automatic
14153
14154 # Set to yes if linker adds runtime paths of dependent libraries
14155 # to runtime path list.
14156 inherit_rpath=$inherit_rpath
14157
14158 # Whether libtool must link a program against all its dependency libraries.
14159 link_all_deplibs=$link_all_deplibs
14160
14161 # Fix the shell variable \$srcfile for the compiler.
14162 fix_srcfile_path=$lt_fix_srcfile_path
14163
14164 # Set to "yes" if exported symbols are required.
14165 always_export_symbols=$always_export_symbols
14166
14167 # The commands to list exported symbols.
14168 export_symbols_cmds=$lt_export_symbols_cmds
14169
14170 # Symbols that should not be listed in the preloaded symbols.
14171 exclude_expsyms=$lt_exclude_expsyms
14172
14173 # Symbols that must always be exported.
14174 include_expsyms=$lt_include_expsyms
14175
14176 # Commands necessary for linking programs (against libraries) with templates.
14177 prelink_cmds=$lt_prelink_cmds
14178
14179 # Specify filename containing input files.
14180 file_list_spec=$lt_file_list_spec
14181
14182 # How to hardcode a shared library path into an executable.
14183 hardcode_action=$hardcode_action
14184
14185 # ### END LIBTOOL CONFIG
14186
14187 _LT_EOF
14188
14189 case $host_os in
14190 aix3*)
14191 cat <<\_LT_EOF >> "$cfgfile"
14192 # AIX sometimes has problems with the GCC collect2 program. For some
14193 # reason, if we set the COLLECT_NAMES environment variable, the problems
14194 # vanish in a puff of smoke.
14195 if test "X${COLLECT_NAMES+set}" != Xset; then
14196 COLLECT_NAMES=
14197 export COLLECT_NAMES
14198 fi
14199 _LT_EOF
14200 ;;
14201 esac
14202
14203
14204 ltmain="$ac_aux_dir/ltmain.sh"
14205
14206
14207 # We use sed instead of cat because bash on DJGPP gets confused if
14208 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14209 # text mode, it properly converts lines to CR/LF. This bash problem
14210 # is reportedly fixed, but why not run on old versions too?
14211 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14212 || (rm -f "$cfgfile"; exit 1)
14213
14214 case $xsi_shell in
14215 yes)
14216 cat << \_LT_EOF >> "$cfgfile"
14217
14218 # func_dirname file append nondir_replacement
14219 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14220 # otherwise set result to NONDIR_REPLACEMENT.
14221 func_dirname ()
14222 {
14223 case ${1} in
14224 */*) func_dirname_result="${1%/*}${2}" ;;
14225 * ) func_dirname_result="${3}" ;;
14226 esac
14227 }
14228
14229 # func_basename file
14230 func_basename ()
14231 {
14232 func_basename_result="${1##*/}"
14233 }
14234
14235 # func_dirname_and_basename file append nondir_replacement
14236 # perform func_basename and func_dirname in a single function
14237 # call:
14238 # dirname: Compute the dirname of FILE. If nonempty,
14239 # add APPEND to the result, otherwise set result
14240 # to NONDIR_REPLACEMENT.
14241 # value returned in "$func_dirname_result"
14242 # basename: Compute filename of FILE.
14243 # value retuned in "$func_basename_result"
14244 # Implementation must be kept synchronized with func_dirname
14245 # and func_basename. For efficiency, we do not delegate to
14246 # those functions but instead duplicate the functionality here.
14247 func_dirname_and_basename ()
14248 {
14249 case ${1} in
14250 */*) func_dirname_result="${1%/*}${2}" ;;
14251 * ) func_dirname_result="${3}" ;;
14252 esac
14253 func_basename_result="${1##*/}"
14254 }
14255
14256 # func_stripname prefix suffix name
14257 # strip PREFIX and SUFFIX off of NAME.
14258 # PREFIX and SUFFIX must not contain globbing or regex special
14259 # characters, hashes, percent signs, but SUFFIX may contain a leading
14260 # dot (in which case that matches only a dot).
14261 func_stripname ()
14262 {
14263 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14264 # positional parameters, so assign one to ordinary parameter first.
14265 func_stripname_result=${3}
14266 func_stripname_result=${func_stripname_result#"${1}"}
14267 func_stripname_result=${func_stripname_result%"${2}"}
14268 }
14269
14270 # func_opt_split
14271 func_opt_split ()
14272 {
14273 func_opt_split_opt=${1%%=*}
14274 func_opt_split_arg=${1#*=}
14275 }
14276
14277 # func_lo2o object
14278 func_lo2o ()
14279 {
14280 case ${1} in
14281 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14282 *) func_lo2o_result=${1} ;;
14283 esac
14284 }
14285
14286 # func_xform libobj-or-source
14287 func_xform ()
14288 {
14289 func_xform_result=${1%.*}.lo
14290 }
14291
14292 # func_arith arithmetic-term...
14293 func_arith ()
14294 {
14295 func_arith_result=$(( $* ))
14296 }
14297
14298 # func_len string
14299 # STRING may not start with a hyphen.
14300 func_len ()
14301 {
14302 func_len_result=${#1}
14303 }
14304
14305 _LT_EOF
14306 ;;
14307 *) # Bourne compatible functions.
14308 cat << \_LT_EOF >> "$cfgfile"
14309
14310 # func_dirname file append nondir_replacement
14311 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14312 # otherwise set result to NONDIR_REPLACEMENT.
14313 func_dirname ()
14314 {
14315 # Extract subdirectory from the argument.
14316 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14317 if test "X$func_dirname_result" = "X${1}"; then
14318 func_dirname_result="${3}"
14319 else
14320 func_dirname_result="$func_dirname_result${2}"
14321 fi
14322 }
14323
14324 # func_basename file
14325 func_basename ()
14326 {
14327 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14328 }
14329
14330
14331 # func_stripname prefix suffix name
14332 # strip PREFIX and SUFFIX off of NAME.
14333 # PREFIX and SUFFIX must not contain globbing or regex special
14334 # characters, hashes, percent signs, but SUFFIX may contain a leading
14335 # dot (in which case that matches only a dot).
14336 # func_strip_suffix prefix name
14337 func_stripname ()
14338 {
14339 case ${2} in
14340 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14341 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14342 esac
14343 }
14344
14345 # sed scripts:
14346 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14347 my_sed_long_arg='1s/^-[^=]*=//'
14348
14349 # func_opt_split
14350 func_opt_split ()
14351 {
14352 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14353 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14354 }
14355
14356 # func_lo2o object
14357 func_lo2o ()
14358 {
14359 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14360 }
14361
14362 # func_xform libobj-or-source
14363 func_xform ()
14364 {
14365 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14366 }
14367
14368 # func_arith arithmetic-term...
14369 func_arith ()
14370 {
14371 func_arith_result=`expr "$@"`
14372 }
14373
14374 # func_len string
14375 # STRING may not start with a hyphen.
14376 func_len ()
14377 {
14378 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14379 }
14380
14381 _LT_EOF
14382 esac
14383
14384 case $lt_shell_append in
14385 yes)
14386 cat << \_LT_EOF >> "$cfgfile"
14387
14388 # func_append var value
14389 # Append VALUE to the end of shell variable VAR.
14390 func_append ()
14391 {
14392 eval "$1+=\$2"
14393 }
14394 _LT_EOF
14395 ;;
14396 *)
14397 cat << \_LT_EOF >> "$cfgfile"
14398
14399 # func_append var value
14400 # Append VALUE to the end of shell variable VAR.
14401 func_append ()
14402 {
14403 eval "$1=\$$1\$2"
14404 }
14405
14406 _LT_EOF
14407 ;;
14408 esac
14409
14410
14411 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14412 || (rm -f "$cfgfile"; exit 1)
14413
14414 mv -f "$cfgfile" "$ofile" ||
14415 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14416 chmod +x "$ofile"
14417
14418 ;;
14419
14420 esac
14421 done # for ac_tag
14422
14423
14424 as_fn_exit 0
14425 _ACEOF
14426 ac_clean_files=$ac_clean_files_save
14427
14428 test $ac_write_fail = 0 ||
14429 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14430
14431
14432 # configure is writing to config.log, and then calls config.status.
14433 # config.status does its own redirection, appending to config.log.
14434 # Unfortunately, on DOS this fails, as config.log is still kept open
14435 # by configure, so config.status won't be able to write to it; its
14436 # output is simply discarded. So we exec the FD to /dev/null,
14437 # effectively closing config.log, so it can be properly (re)opened and
14438 # appended to by config.status. When coming back to configure, we
14439 # need to make the FD available again.
14440 if test "$no_create" != yes; then
14441 ac_cs_success=:
14442 ac_config_status_args=
14443 test "$silent" = yes &&
14444 ac_config_status_args="$ac_config_status_args --quiet"
14445 exec 5>/dev/null
14446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14447 exec 5>>config.log
14448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14449 # would make configure fail if this is the last instruction.
14450 $ac_cs_success || as_fn_exit 1
14451 fi
14452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14454 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14455 fi
14456
14457