configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xdm 1.1.11.
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='xdm'
573 PACKAGE_TARNAME='xdm'
574 PACKAGE_VERSION='1.1.11'
575 PACKAGE_STRING='xdm 1.1.11'
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_unique_file="Makefile.am"
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 appdefaultdir
621 APPDEFS_LIBS
622 APPDEFS_CFLAGS
623 DEF_AUTH_DIR
624 XDMXAUTHDIR
625 DEF_CHOOSER
626 DEF_XDM_CONFIG
627 DEF_FAILSAFE_CLIENT
628 DEF_SYSTEM_SHELL
629 DEF_SYSTEM_PATH
630 DEF_USER_PATH
631 DEF_SESSION
632 XRDB_PROGRAM
633 DEF_SERVER_LINE
634 CHOOSER_LIBS
635 CHOOSER_CFLAGS
636 XDMSHELL_LIBS
637 XDMSHELL_CFLAGS
638 XT_LIBS
639 XT_CFLAGS
640 INSTALL_XDMSHELL_FALSE
641 INSTALL_XDMSHELL_TRUE
642 HAS_XDM_AUTH_FALSE
643 HAS_XDM_AUTH_TRUE
644 DEF_GREETER_LIB
645 XDMGREET_LIBS
646 XDMGREET_CFLAGS
647 AUTH_LIBS
648 AUTH_CFLAGS
649 XLIB_LIBS
650 XLIB_CFLAGS
651 DMCP_LIBS
652 DMCP_CFLAGS
653 XDM_TOOLKIT_LIBS
654 XDM_TOOLKIT_CFLAGS
655 XDM_PIXMAPDIR
656 XDM_BWPIXMAP
657 XDM_PIXMAP
658 USE_XPM_FALSE
659 USE_XPM_TRUE
660 XPM_LIBS
661 XPM_CFLAGS
662 XFT_LIBS
663 XFT_CFLAGS
664 XINERAMA_LIBS
665 XINERAMA_CFLAGS
666 XDM_LIBS
667 XDM_CFLAGS
668 SHELL_CMD
669 WTMP_FILE
670 UTMP_FILE
671 SERVERSTYPE
672 DEFAULTVT
673 XDMPIDDIR
674 XDMLOGDIR
675 XDMSCRIPTDIR
676 XDMCONFIGDIR
677 XDMLIBDIR
678 HAS_KERBEROS_FIVE_FALSE
679 HAS_KERBEROS_FIVE_TRUE
680 DEV_RANDOM
681 SU
682 HAVE_SYSTEMD_FALSE
683 HAVE_SYSTEMD_TRUE
684 systemdsystemunitdir
685 HAS_SECURE_RPC_FALSE
686 HAS_SECURE_RPC_TRUE
687 HAVE_ARC4RANDOM_FALSE
688 HAVE_ARC4RANDOM_TRUE
689 HAVE_ARC4RANDOM
690 HAVE_MKTEMP_COMMAND_FALSE
691 HAVE_MKTEMP_COMMAND_TRUE
692 MKTEMP_COMMAND
693 LINT_FALSE
694 LINT_TRUE
695 LINT_FLAGS
696 LINT
697 RAWCPPFLAGS
698 RAWCPP
699 AM_BACKSLASH
700 AM_DEFAULT_VERBOSITY
701 MAN_SUBSTS
702 XORG_MAN_PAGE
703 ADMIN_MAN_DIR
704 DRIVER_MAN_DIR
705 MISC_MAN_DIR
706 FILE_MAN_DIR
707 LIB_MAN_DIR
708 APP_MAN_DIR
709 ADMIN_MAN_SUFFIX
710 DRIVER_MAN_SUFFIX
711 MISC_MAN_SUFFIX
712 FILE_MAN_SUFFIX
713 LIB_MAN_SUFFIX
714 APP_MAN_SUFFIX
715 INSTALL_CMD
716 PKG_CONFIG_LIBDIR
717 PKG_CONFIG_PATH
718 PKG_CONFIG
719 CHANGELOG_CMD
720 STRICT_CFLAGS
721 CWARNFLAGS
722 OTOOL64
723 OTOOL
724 LIPO
725 NMEDIT
726 DSYMUTIL
727 MANIFEST_TOOL
728 RANLIB
729 ac_ct_AR
730 AR
731 DLLTOOL
732 OBJDUMP
733 LN_S
734 NM
735 ac_ct_DUMPBIN
736 DUMPBIN
737 LD
738 FGREP
739 SED
740 host_os
741 host_vendor
742 host_cpu
743 host
744 build_os
745 build_vendor
746 build_cpu
747 build
748 LIBTOOL
749 MAINT
750 MAINTAINER_MODE_FALSE
751 MAINTAINER_MODE_TRUE
752 am__fastdepCC_FALSE
753 am__fastdepCC_TRUE
754 CCDEPMODE
755 AMDEPBACKSLASH
756 AMDEP_FALSE
757 AMDEP_TRUE
758 am__quote
759 am__include
760 DEPDIR
761 am__untar
762 am__tar
763 AMTAR
764 am__leading_dot
765 SET_MAKE
766 AWK
767 mkdir_p
768 MKDIR_P
769 INSTALL_STRIP_PROGRAM
770 STRIP
771 install_sh
772 MAKEINFO
773 AUTOHEADER
774 AUTOMAKE
775 AUTOCONF
776 ACLOCAL
777 VERSION
778 PACKAGE
779 CYGPATH_W
780 am__isrc
781 INSTALL_DATA
782 INSTALL_SCRIPT
783 INSTALL_PROGRAM
784 EGREP
785 GREP
786 CPP
787 OBJEXT
788 EXEEXT
789 ac_ct_CC
790 CPPFLAGS
791 LDFLAGS
792 CFLAGS
793 CC
794 target_alias
795 host_alias
796 build_alias
797 LIBS
798 ECHO_T
799 ECHO_N
800 ECHO_C
801 DEFS
802 mandir
803 localedir
804 libdir
805 psdir
806 pdfdir
807 dvidir
808 htmldir
809 infodir
810 docdir
811 oldincludedir
812 includedir
813 localstatedir
814 sharedstatedir
815 sysconfdir
816 datadir
817 datarootdir
818 libexecdir
819 sbindir
820 bindir
821 program_transform_name
822 prefix
823 exec_prefix
824 PACKAGE_URL
825 PACKAGE_BUGREPORT
826 PACKAGE_STRING
827 PACKAGE_VERSION
828 PACKAGE_TARNAME
829 PACKAGE_NAME
830 PATH_SEPARATOR
831 SHELL'
832 ac_subst_files=''
833 ac_user_opts='
834 enable_option_checking
835 enable_dependency_tracking
836 enable_maintainer_mode
837 enable_static
838 enable_shared
839 with_pic
840 enable_fast_install
841 with_gnu_ld
842 with_sysroot
843 enable_libtool_lock
844 enable_strict_compilation
845 enable_silent_rules
846 with_lint
847 enable_unix_transport
848 enable_tcp_transport
849 enable_ipv6
850 enable_local_transport
851 enable_secure_rpc
852 with_pam
853 with_selinux
854 with_systemdsystemunitdir
855 with_random_device
856 with_xdmlibdir
857 with_xdmconfigdir
858 with_xdmscriptdir
859 with_logdir
860 with_piddir
861 with_default_vt
862 with_config_type
863 with_utmp_file
864 with_wtmp_file
865 with_xft
866 enable_xpm_logos
867 with_color_pixmap
868 with_bw_pixmap
869 with_pixmapdir
870 enable_xdm_auth
871 enable_xdmshell
872 with_xrdb
873 with_default_session
874 with_authdir
875 with_appdefaultdir
876 '
877 ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CC
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
885 CPP
886 PKG_CONFIG
887 PKG_CONFIG_PATH
888 PKG_CONFIG_LIBDIR
889 LINT
890 LINT_FLAGS
891 XDM_CFLAGS
892 XDM_LIBS
893 XINERAMA_CFLAGS
894 XINERAMA_LIBS
895 XFT_CFLAGS
896 XFT_LIBS
897 XPM_CFLAGS
898 XPM_LIBS
899 XDM_TOOLKIT_CFLAGS
900 XDM_TOOLKIT_LIBS
901 DMCP_CFLAGS
902 DMCP_LIBS
903 XLIB_CFLAGS
904 XLIB_LIBS
905 AUTH_CFLAGS
906 AUTH_LIBS
907 XDMGREET_CFLAGS
908 XDMGREET_LIBS
909 XT_CFLAGS
910 XT_LIBS
911 APPDEFS_CFLAGS
912 APPDEFS_LIBS'
913
914
915 # Initialize some variables set by options.
916 ac_init_help=
917 ac_init_version=false
918 ac_unrecognized_opts=
919 ac_unrecognized_sep=
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
922 cache_file=/dev/null
923 exec_prefix=NONE
924 no_create=
925 no_recursion=
926 prefix=NONE
927 program_prefix=NONE
928 program_suffix=NONE
929 program_transform_name=s,x,x,
930 silent=
931 site=
932 srcdir=
933 verbose=
934 x_includes=NONE
935 x_libraries=NONE
936
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954 infodir='${datarootdir}/info'
955 htmldir='${docdir}'
956 dvidir='${docdir}'
957 pdfdir='${docdir}'
958 psdir='${docdir}'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
962
963 ac_prev=
964 ac_dashdash=
965 for ac_option
966 do
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
970 ac_prev=
971 continue
972 fi
973
974 case $ac_option in
975 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 *=) ac_optarg= ;;
977 *) ac_optarg=yes ;;
978 esac
979
980 # Accept the important Cygnus configure options, so we can diagnose typos.
981
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
985
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
990
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
995
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1002
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1005
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1010
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1017
1018 -disable-* | --disable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=no ;;
1033
1034 -docdir | --docdir | --docdi | --doc | --do)
1035 ac_prev=docdir ;;
1036 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037 docdir=$ac_optarg ;;
1038
1039 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040 ac_prev=dvidir ;;
1041 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042 dvidir=$ac_optarg ;;
1043
1044 -enable-* | --enable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error $? "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1068
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1071 with_gas=yes ;;
1072
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1079
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1084
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086 ac_prev=htmldir ;;
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088 | --ht=*)
1089 htmldir=$ac_optarg ;;
1090
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1097
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1099 ac_prev=infodir ;;
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1102
1103 -libdir | --libdir | --libdi | --libd)
1104 ac_prev=libdir ;;
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1107
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1114
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1119
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1126
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128 ac_prev=mandir ;;
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1131
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1134 with_fp=no ;;
1135
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1138 no_create=yes ;;
1139
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 no_recursion=yes ;;
1143
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1152
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154 ac_prev=prefix ;;
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1157
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1164
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1171
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1188
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190 ac_prev=pdfdir ;;
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1193
1194 -psdir | --psdir | --psdi | --psd | --ps)
1195 ac_prev=psdir ;;
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 psdir=$ac_optarg ;;
1198
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1201 silent=yes ;;
1202
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
1207 sbindir=$ac_optarg ;;
1208
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
1218 sharedstatedir=$ac_optarg ;;
1219
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
1223 site=$ac_optarg ;;
1224
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1229
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1236
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1241
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1244
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1247
1248 -with-* | --with-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=\$ac_optarg ;;
1263
1264 -without-* | --without-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: $ac_useropt"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=no ;;
1279
1280 --x)
1281 # Obsolete; use --with-x.
1282 with_x=yes ;;
1283
1284 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285 | --x-incl | --x-inc | --x-in | --x-i)
1286 ac_prev=x_includes ;;
1287 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289 x_includes=$ac_optarg ;;
1290
1291 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293 ac_prev=x_libraries ;;
1294 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296 x_libraries=$ac_optarg ;;
1297
1298 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1299 Try \`$0 --help' for more information"
1300 ;;
1301
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 case $ac_envvar in #(
1306 '' | [0-9]* | *[!_$as_cr_alnum]* )
1307 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1308 esac
1309 eval $ac_envvar=\$ac_optarg
1310 export $ac_envvar ;;
1311
1312 *)
1313 # FIXME: should be removed in autoconf 3.0.
1314 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 ;;
1319
1320 esac
1321 done
1322
1323 if test -n "$ac_prev"; then
1324 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325 as_fn_error $? "missing argument to $ac_option"
1326 fi
1327
1328 if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1330 no) ;;
1331 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1332 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 esac
1334 fi
1335
1336 # Check all directory arguments for consistency.
1337 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1341 do
1342 eval ac_val=\$$ac_var
1343 # Remove trailing slashes.
1344 case $ac_val in
1345 */ )
1346 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347 eval $ac_var=\$ac_val;;
1348 esac
1349 # Be sure to have absolute directory names.
1350 case $ac_val in
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 esac
1354 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1355 done
1356
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1363
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1369 If a cross compiler is detected then cross compile mode will be used" >&2
1370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1372 fi
1373 fi
1374
1375 ac_tool_prefix=
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378 test "$silent" = yes && exec 6>/dev/null
1379
1380
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error $? "working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)[^/].*/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\).*/{
1412 s//\1/
1413 q
1414 }
1415 s/.*/./; q'`
1416 srcdir=$ac_confdir
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 srcdir=..
1419 fi
1420 else
1421 ac_srcdir_defaulted=no
1422 fi
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426 fi
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430 pwd)`
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1434 fi
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1438 case $srcdir in
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 esac
1441 for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 done
1447
1448 #
1449 # Report the --help message.
1450 #
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
1455 \`configure' configures xdm 1.1.11 to adapt to many kinds of systems.
1456
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1461
1462 Defaults for the options are specified in brackets.
1463
1464 Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking ...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 [PREFIX]
1480
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1485
1486 For better control, use the options below.
1487
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/xdm]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1508 _ACEOF
1509
1510 cat <<\_ACEOF
1511
1512 Program names:
1513 --program-prefix=PREFIX prepend PREFIX to installed program names
1514 --program-suffix=SUFFIX append SUFFIX to installed program names
1515 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1516
1517 System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524 case $ac_init_help in
1525 short | recursive ) echo "Configuration of xdm 1.1.11:";;
1526 esac
1527 cat <<\_ACEOF
1528
1529 Optional Features:
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --disable-dependency-tracking speeds up one-time build
1534 --enable-dependency-tracking do not reject slow dependency extractors
1535 --enable-maintainer-mode enable make rules and dependencies not useful
1536 (and sometimes confusing) to the casual installer
1537 --enable-static[=PKGS] build static libraries [default=no]
1538 --enable-shared[=PKGS] build shared libraries [default=yes]
1539 --enable-fast-install[=PKGS]
1540 optimize for fast installation [default=yes]
1541 --disable-libtool-lock avoid locking (might break parallel builds)
1542 --enable-strict-compilation
1543 Enable all warnings from compiler and make them
1544 errors (default: disabled)
1545 --enable-silent-rules less verbose build output (undo: `make V=1')
1546 --disable-silent-rules verbose build output (undo: `make V=0')
1547 --enable-unix-transport Enable UNIX domain socket transport
1548 --enable-tcp-transport Enable TCP socket transport
1549 --enable-ipv6 Enable IPv6 support
1550 --enable-local-transport
1551 Enable os-specific local transport
1552 --enable-secure-rpc Enable Secure RPC
1553 --enable-xpm-logos Display xpm logos in greeter (default is YES)
1554 --enable-xdm-auth Support XDM-AUTHENTICATION-1 and XDM-AUTHORIZATION-1
1555 (default: auto)
1556 --enable-xdmshell Install xdmshell (default: disabled)
1557
1558 Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-pic try to use only PIC/non-PIC objects [default=use
1562 both]
1563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1564 --with-sysroot=DIR Search for dependent libraries within DIR
1565 (or the compiler's sysroot if not specified).
1566 --with-lint Use a lint-style source code checker (default:
1567 disabled)
1568 --with-pam Use PAM for authentication (default is autodetected)
1569 --with-selinux Add support for SELinux (default is no support)
1570 --with-systemdsystemunitdir=DIR
1571 Directory for systemd service files (default from
1572 the System and Service Manager)
1573 --with-random-device\=<pathname>\
1574 Use <pathname> as a source of randomness (default is
1575 auto-detected)
1576 --with-xdmlibdir=<pathname>
1577 specify directory for xdm scripts and modules
1578 (default=${libdir}/X11/xdm)
1579 --with-xdmconfigdir=<pathname>
1580 specify directory for xdm config files (default is
1581 same as xdmlibdir)
1582 --with-xdmscriptdir=<pathname>
1583 specify directory for xdm scripts (default is same
1584 as xdmlibdir)
1585 --with-logdir=<pathname>
1586 specify directory for xdm log files
1587 (default=/var/log)
1588 --with-piddir=<pathname>
1589 specify directory for xdm pid files
1590 (default=/var/run)
1591 --with-default-vt=<vtname>
1592 specify default vt to start xdm on (default=none)
1593 --with-config-type={ws|fs}
1594 default config file type to use - workstation (ws)
1595 or fileserver (fs) (default=ws)
1596 --with-utmp-file=<pathname>
1597 specify file to pass to sessreg -u for current
1598 logins
1599 --with-wtmp-file=<pathname>
1600 specify file to pass to sessreg -w for login history
1601 --with-xft Use Xft to draw text (default is YES if installed)
1602 --with-color-pixmap=<filename>
1603 specify xpm file to use as color logo
1604 (default=xorg.xpm)
1605 --with-bw-pixmap=<filename>
1606 specify xpm file to use as black-and-white logo
1607 (default=xorg-bw.xpm)
1608 --with-pixmapdir=<pathname>
1609 specify directory for xpm files
1610 (default=xdmlibdir/pixmaps)
1611 --with-xrdb=path Use path for xrdb (default: bindir/xrdb)
1612 --with-default-session=command
1613 Use command for default session (default:
1614 bindir/xterm -ls)
1615 --with-authdir=<pathname>
1616 specify directory for X auth files
1617 (default=/var/lib/xdm)
1618 --with-appdefaultdir=<pathname>
1619 specify directory for app-defaults files (default is
1620 autodetected)
1621
1622 Some influential environment variables:
1623 CC C compiler command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
1627 LIBS libraries to pass to the linker, e.g. -l<library>
1628 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1630 CPP C preprocessor
1631 PKG_CONFIG path to pkg-config utility
1632 PKG_CONFIG_PATH
1633 directories to add to pkg-config's search path
1634 PKG_CONFIG_LIBDIR
1635 path overriding pkg-config's built-in search path
1636 LINT Path to a lint-style command
1637 LINT_FLAGS Flags for the lint-style command
1638 XDM_CFLAGS C compiler flags for XDM, overriding pkg-config
1639 XDM_LIBS linker flags for XDM, overriding pkg-config
1640 XINERAMA_CFLAGS
1641 C compiler flags for XINERAMA, overriding pkg-config
1642 XINERAMA_LIBS
1643 linker flags for XINERAMA, overriding pkg-config
1644 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config
1645 XFT_LIBS linker flags for XFT, overriding pkg-config
1646 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config
1647 XPM_LIBS linker flags for XPM, overriding pkg-config
1648 XDM_TOOLKIT_CFLAGS
1649 C compiler flags for XDM_TOOLKIT, overriding pkg-config
1650 XDM_TOOLKIT_LIBS
1651 linker flags for XDM_TOOLKIT, overriding pkg-config
1652 DMCP_CFLAGS C compiler flags for DMCP, overriding pkg-config
1653 DMCP_LIBS linker flags for DMCP, overriding pkg-config
1654 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
1655 XLIB_LIBS linker flags for XLIB, overriding pkg-config
1656 AUTH_CFLAGS C compiler flags for AUTH, overriding pkg-config
1657 AUTH_LIBS linker flags for AUTH, overriding pkg-config
1658 XDMGREET_CFLAGS
1659 C compiler flags for XDMGREET, overriding pkg-config
1660 XDMGREET_LIBS
1661 linker flags for XDMGREET, overriding pkg-config
1662 XT_CFLAGS C compiler flags for XT, overriding pkg-config
1663 XT_LIBS linker flags for XT, overriding pkg-config
1664 APPDEFS_CFLAGS
1665 C compiler flags for APPDEFS, overriding pkg-config
1666 APPDEFS_LIBS
1667 linker flags for APPDEFS, overriding pkg-config
1668
1669 Use these variables to override the choices made by `configure' or to help
1670 it to find libraries and programs with nonstandard names/locations.
1671
1672 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1673 _ACEOF
1674 ac_status=$?
1675 fi
1676
1677 if test "$ac_init_help" = "recursive"; then
1678 # If there are subdirs, report their specific --help.
1679 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1680 test -d "$ac_dir" ||
1681 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1682 continue
1683 ac_builddir=.
1684
1685 case "$ac_dir" in
1686 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687 *)
1688 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1689 # A ".." for each directory in $ac_dir_suffix.
1690 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1691 case $ac_top_builddir_sub in
1692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1694 esac ;;
1695 esac
1696 ac_abs_top_builddir=$ac_pwd
1697 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1698 # for backward compatibility:
1699 ac_top_builddir=$ac_top_build_prefix
1700
1701 case $srcdir in
1702 .) # We are building in place.
1703 ac_srcdir=.
1704 ac_top_srcdir=$ac_top_builddir_sub
1705 ac_abs_top_srcdir=$ac_pwd ;;
1706 [\\/]* | ?:[\\/]* ) # Absolute name.
1707 ac_srcdir=$srcdir$ac_dir_suffix;
1708 ac_top_srcdir=$srcdir
1709 ac_abs_top_srcdir=$srcdir ;;
1710 *) # Relative name.
1711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1712 ac_top_srcdir=$ac_top_build_prefix$srcdir
1713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1714 esac
1715 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1716
1717 cd "$ac_dir" || { ac_status=$?; continue; }
1718 # Check for guested configure.
1719 if test -f "$ac_srcdir/configure.gnu"; then
1720 echo &&
1721 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1722 elif test -f "$ac_srcdir/configure"; then
1723 echo &&
1724 $SHELL "$ac_srcdir/configure" --help=recursive
1725 else
1726 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1727 fi || ac_status=$?
1728 cd "$ac_pwd" || { ac_status=$?; break; }
1729 done
1730 fi
1731
1732 test -n "$ac_init_help" && exit $ac_status
1733 if $ac_init_version; then
1734 cat <<\_ACEOF
1735 xdm configure 1.1.11
1736 generated by GNU Autoconf 2.68
1737
1738 Copyright (C) 2010 Free Software Foundation, Inc.
1739 This configure script is free software; the Free Software Foundation
1740 gives unlimited permission to copy, distribute and modify it.
1741 _ACEOF
1742 exit
1743 fi
1744
1745 ## ------------------------ ##
1746 ## Autoconf initialization. ##
1747 ## ------------------------ ##
1748
1749 # ac_fn_c_try_compile LINENO
1750 # --------------------------
1751 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_compile ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext
1756 if { { ac_try="$ac_compile"
1757 case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_compile") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest.$ac_objext; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=1
1781 fi
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_compile
1786
1787 # ac_fn_c_try_cpp LINENO
1788 # ----------------------
1789 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_cpp ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_cpp conftest.$ac_ext"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } > conftest.i && {
1809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1821
1822 } # ac_fn_c_try_cpp
1823
1824 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1827 # the include files in INCLUDES and setting the cache variable VAR
1828 # accordingly.
1829 ac_fn_c_check_header_mongrel ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 if eval \${$3+:} false; then :
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837 fi
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 else
1842 # Is the header compilable?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1844 $as_echo_n "checking $2 usability... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 $4
1848 #include <$2>
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851 ac_header_compiler=yes
1852 else
1853 ac_header_compiler=no
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1857 $as_echo "$ac_header_compiler" >&6; }
1858
1859 # Is the header present?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1861 $as_echo_n "checking $2 presence... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 #include <$2>
1865 _ACEOF
1866 if ac_fn_c_try_cpp "$LINENO"; then :
1867 ac_header_preproc=yes
1868 else
1869 ac_header_preproc=no
1870 fi
1871 rm -f conftest.err conftest.i conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1873 $as_echo "$ac_header_preproc" >&6; }
1874
1875 # So? What about this header?
1876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1877 yes:no: )
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1879 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 ;;
1883 no:yes:* )
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1885 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1887 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1889 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1891 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1893 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894 ( $as_echo "## ---------------------------------------------------------------------- ##
1895 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1896 ## ---------------------------------------------------------------------- ##"
1897 ) | sed "s/^/$as_me: WARNING: /" >&2
1898 ;;
1899 esac
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 eval "$3=\$ac_header_compiler"
1906 fi
1907 eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 fi
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913 } # ac_fn_c_check_header_mongrel
1914
1915 # ac_fn_c_try_run LINENO
1916 # ----------------------
1917 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1918 # that executables *can* be run.
1919 ac_fn_c_try_run ()
1920 {
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_link"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_link") 2>&5
1930 ac_status=$?
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1933 { { case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_try") 2>&5
1940 ac_status=$?
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; }; }; then :
1943 ac_retval=0
1944 else
1945 $as_echo "$as_me: program exited with status $ac_status" >&5
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 ac_retval=$ac_status
1950 fi
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1954
1955 } # ac_fn_c_try_run
1956
1957 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1958 # -------------------------------------------------------
1959 # Tests whether HEADER exists and can be compiled using the include files in
1960 # INCLUDES, setting the cache variable VAR accordingly.
1961 ac_fn_c_check_header_compile ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1968 else
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 $4
1972 #include <$2>
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 eval "$3=yes"
1976 else
1977 eval "$3=no"
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 fi
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986 } # ac_fn_c_check_header_compile
1987
1988 # ac_fn_c_try_link LINENO
1989 # -----------------------
1990 # Try to link conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_link ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext conftest$ac_exeext
1995 if { { ac_try="$ac_link"
1996 case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_link") 2>conftest.err
2003 ac_status=$?
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2008 fi
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest$ac_exeext && {
2014 test "$cross_compiling" = yes ||
2015 $as_test_x conftest$ac_exeext
2016 }; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 ac_retval=1
2023 fi
2024 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2025 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2026 # interfere with the next link command; also delete a directory that is
2027 # left behind by Apple's compiler. We do this before executing the actions.
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2031
2032 } # ac_fn_c_try_link
2033
2034 # ac_fn_c_check_func LINENO FUNC VAR
2035 # ----------------------------------
2036 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2037 ac_fn_c_check_func ()
2038 {
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2049 #define $2 innocuous_$2
2050
2051 /* System header to define __stub macros and hopefully few prototypes,
2052 which can conflict with char $2 (); below.
2053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2054 <limits.h> exists even on freestanding compilers. */
2055
2056 #ifdef __STDC__
2057 # include <limits.h>
2058 #else
2059 # include <assert.h>
2060 #endif
2061
2062 #undef $2
2063
2064 /* Override any GCC internal prototype to avoid an error.
2065 Use char because int might match the return type of a GCC
2066 builtin and then its argument prototype would still apply. */
2067 #ifdef __cplusplus
2068 extern "C"
2069 #endif
2070 char $2 ();
2071 /* The GNU C library defines this for functions which it implements
2072 to always fail with ENOSYS. Some functions are actually named
2073 something starting with __ and the normal name is an alias. */
2074 #if defined __stub_$2 || defined __stub___$2
2075 choke me
2076 #endif
2077
2078 int
2079 main ()
2080 {
2081 return $2 ();
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_link "$LINENO"; then :
2087 eval "$3=yes"
2088 else
2089 eval "$3=no"
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext \
2092 conftest$ac_exeext conftest.$ac_ext
2093 fi
2094 eval ac_res=\$$3
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098
2099 } # ac_fn_c_check_func
2100
2101 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2102 # ---------------------------------------------
2103 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2104 # accordingly.
2105 ac_fn_c_check_decl ()
2106 {
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 as_decl_name=`echo $2|sed 's/ *(.*//'`
2109 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2111 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2112 if eval \${$3+:} false; then :
2113 $as_echo_n "(cached) " >&6
2114 else
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $4
2118 int
2119 main ()
2120 {
2121 #ifndef $as_decl_name
2122 #ifdef __cplusplus
2123 (void) $as_decl_use;
2124 #else
2125 (void) $as_decl_name;
2126 #endif
2127 #endif
2128
2129 ;
2130 return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 eval "$3=yes"
2135 else
2136 eval "$3=no"
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 fi
2140 eval ac_res=\$$3
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144
2145 } # ac_fn_c_check_decl
2146
2147 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2148 # -------------------------------------------
2149 # Tests whether TYPE exists after having included INCLUDES, setting cache
2150 # variable VAR accordingly.
2151 ac_fn_c_check_type ()
2152 {
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if eval \${$3+:} false; then :
2157 $as_echo_n "(cached) " >&6
2158 else
2159 eval "$3=no"
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2162 $4
2163 int
2164 main ()
2165 {
2166 if (sizeof ($2))
2167 return 0;
2168 ;
2169 return 0;
2170 }
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2175 $4
2176 int
2177 main ()
2178 {
2179 if (sizeof (($2)))
2180 return 0;
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186
2187 else
2188 eval "$3=yes"
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 fi
2194 eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198
2199 } # ac_fn_c_check_type
2200
2201 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2202 # ----------------------------------------------------
2203 # Tries to find if the field MEMBER exists in type AGGR, after including
2204 # INCLUDES, setting cache variable VAR accordingly.
2205 ac_fn_c_check_member ()
2206 {
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2209 $as_echo_n "checking for $2.$3... " >&6; }
2210 if eval \${$4+:} false; then :
2211 $as_echo_n "(cached) " >&6
2212 else
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2215 $5
2216 int
2217 main ()
2218 {
2219 static $2 ac_aggr;
2220 if (ac_aggr.$3)
2221 return 0;
2222 ;
2223 return 0;
2224 }
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 eval "$4=yes"
2228 else
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2231 $5
2232 int
2233 main ()
2234 {
2235 static $2 ac_aggr;
2236 if (sizeof ac_aggr.$3)
2237 return 0;
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243 eval "$4=yes"
2244 else
2245 eval "$4=no"
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 fi
2251 eval ac_res=\$$4
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255
2256 } # ac_fn_c_check_member
2257 cat >config.log <<_ACEOF
2258 This file contains any messages produced by compilers while
2259 running configure, to aid debugging if configure makes a mistake.
2260
2261 It was created by xdm $as_me 1.1.11, which was
2262 generated by GNU Autoconf 2.68. Invocation command line was
2263
2264 $ $0 $@
2265
2266 _ACEOF
2267 exec 5>>config.log
2268 {
2269 cat <<_ASUNAME
2270 ## --------- ##
2271 ## Platform. ##
2272 ## --------- ##
2273
2274 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2282
2283 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2287 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290
2291 _ASUNAME
2292
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 $as_echo "PATH: $as_dir"
2299 done
2300 IFS=$as_save_IFS
2301
2302 } >&5
2303
2304 cat >&5 <<_ACEOF
2305
2306
2307 ## ----------- ##
2308 ## Core tests. ##
2309 ## ----------- ##
2310
2311 _ACEOF
2312
2313
2314 # Keep a trace of the command line.
2315 # Strip out --no-create and --no-recursion so they do not pile up.
2316 # Strip out --silent because we don't want to record it for future runs.
2317 # Also quote any args containing shell meta-characters.
2318 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_configure_args=
2320 ac_configure_args0=
2321 ac_configure_args1=
2322 ac_must_keep_next=false
2323 for ac_pass in 1 2
2324 do
2325 for ac_arg
2326 do
2327 case $ac_arg in
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2331 continue ;;
2332 *\'*)
2333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 esac
2335 case $ac_pass in
2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337 2)
2338 as_fn_append ac_configure_args1 " '$ac_arg'"
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2341 else
2342 case $ac_arg in
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 esac
2350 ;;
2351 -* ) ac_must_keep_next=true ;;
2352 esac
2353 fi
2354 as_fn_append ac_configure_args " '$ac_arg'"
2355 ;;
2356 esac
2357 done
2358 done
2359 { ac_configure_args0=; unset ac_configure_args0;}
2360 { ac_configure_args1=; unset ac_configure_args1;}
2361
2362 # When interrupted or exit'd, cleanup temporary files, and complete
2363 # config.log. We remove comments because anyway the quotes in there
2364 # would cause problems or look ugly.
2365 # WARNING: Use '\'' to represent an apostrophe within the trap.
2366 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367 trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2369 {
2370 echo
2371
2372 $as_echo "## ---------------- ##
2373 ## Cache variables. ##
2374 ## ---------------- ##"
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2377 (
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2400 *)
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 ;;
2403 esac |
2404 sort
2405 )
2406 echo
2407
2408 $as_echo "## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##"
2411 echo
2412 for ac_var in $ac_subst_vars
2413 do
2414 eval ac_val=\$$ac_var
2415 case $ac_val in
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 esac
2418 $as_echo "$ac_var='\''$ac_val'\''"
2419 done | sort
2420 echo
2421
2422 if test -n "$ac_subst_files"; then
2423 $as_echo "## ------------------- ##
2424 ## File substitutions. ##
2425 ## ------------------- ##"
2426 echo
2427 for ac_var in $ac_subst_files
2428 do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2436 fi
2437
2438 if test -s confdefs.h; then
2439 $as_echo "## ----------- ##
2440 ## confdefs.h. ##
2441 ## ----------- ##"
2442 echo
2443 cat confdefs.h
2444 echo
2445 fi
2446 test "$ac_signal" != 0 &&
2447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
2449 } >&5
2450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452 exit $exit_status
2453 ' 0
2454 for ac_signal in 1 2 13 15; do
2455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456 done
2457 ac_signal=0
2458
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2461
2462 $as_echo "/* confdefs.h */" > confdefs.h
2463
2464 # Predefined preprocessor variables.
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2468 _ACEOF
2469
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472 _ACEOF
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2488 _ACEOF
2489
2490
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2493 ac_site_file1=NONE
2494 ac_site_file2=NONE
2495 if test -n "$CONFIG_SITE"; then
2496 # We do not want a PATH search for config.site.
2497 case $CONFIG_SITE in #((
2498 -*) ac_site_file1=./$CONFIG_SITE;;
2499 */*) ac_site_file1=$CONFIG_SITE;;
2500 *) ac_site_file1=./$CONFIG_SITE;;
2501 esac
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505 else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2508 fi
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510 do
2511 test "x$ac_site_file" = xNONE && continue
2512 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file" \
2517 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 as_fn_error $? "failed to load site script $ac_site_file
2520 See \`config.log' for more details" "$LINENO" 5; }
2521 fi
2522 done
2523
2524 if test -r "$cache_file"; then
2525 # Some versions of bash will fail to source /dev/null (special files
2526 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2527 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529 $as_echo "$as_me: loading cache $cache_file" >&6;}
2530 case $cache_file in
2531 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532 *) . "./$cache_file";;
2533 esac
2534 fi
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537 $as_echo "$as_me: creating cache $cache_file" >&6;}
2538 >$cache_file
2539 fi
2540
2541 # Check that the precious variables saved in the cache have kept the same
2542 # value.
2543 ac_cache_corrupted=false
2544 for ac_var in $ac_precious_vars; do
2545 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2546 eval ac_new_set=\$ac_env_${ac_var}_set
2547 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2548 eval ac_new_val=\$ac_env_${ac_var}_value
2549 case $ac_old_set,$ac_new_set in
2550 set,)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,set)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,);;
2559 *)
2560 if test "x$ac_old_val" != "x$ac_new_val"; then
2561 # differences in whitespace do not lead to failure.
2562 ac_old_val_w=`echo x $ac_old_val`
2563 ac_new_val_w=`echo x $ac_new_val`
2564 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2566 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2567 ac_cache_corrupted=:
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2570 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2571 eval $ac_var=\$ac_old_val
2572 fi
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2574 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2576 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2577 fi;;
2578 esac
2579 # Pass precious variables to config.status.
2580 if test "$ac_new_set" = set; then
2581 case $ac_new_val in
2582 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2583 *) ac_arg=$ac_var=$ac_new_val ;;
2584 esac
2585 case " $ac_configure_args " in
2586 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2587 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2588 esac
2589 fi
2590 done
2591 if $ac_cache_corrupted; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2595 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2596 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2597 fi
2598 ## -------------------- ##
2599 ## Main body of script. ##
2600 ## -------------------- ##
2601
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607
2608
2609 ac_ext=c
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614 if test -n "$ac_tool_prefix"; then
2615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_CC+:} false; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 break 2
2635 fi
2636 done
2637 done
2638 IFS=$as_save_IFS
2639
2640 fi
2641 fi
2642 CC=$ac_cv_prog_CC
2643 if test -n "$CC"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645 $as_echo "$CC" >&6; }
2646 else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2649 fi
2650
2651
2652 fi
2653 if test -z "$ac_cv_prog_CC"; then
2654 ac_ct_CC=$CC
2655 # Extract the first word of "gcc", so it can be a program name with args.
2656 set dummy gcc; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$ac_ct_CC"; then
2663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_ac_ct_CC="gcc"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2683 if test -n "$ac_ct_CC"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2685 $as_echo "$ac_ct_CC" >&6; }
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689 fi
2690
2691 if test "x$ac_ct_CC" = x; then
2692 CC=""
2693 else
2694 case $cross_compiling:$ac_tool_warned in
2695 yes:)
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2698 ac_tool_warned=yes ;;
2699 esac
2700 CC=$ac_ct_CC
2701 fi
2702 else
2703 CC="$ac_cv_prog_CC"
2704 fi
2705
2706 if test -z "$CC"; then
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2709 set dummy ${ac_tool_prefix}cc; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_CC+:} false; then :
2713 $as_echo_n "(cached) " >&6
2714 else
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_CC="${ac_tool_prefix}cc"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 fi
2734 fi
2735 CC=$ac_cv_prog_CC
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 fi
2743
2744
2745 fi
2746 fi
2747 if test -z "$CC"; then
2748 # Extract the first word of "cc", so it can be a program name with args.
2749 set dummy cc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_CC+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 else
2758 ac_prog_rejected=no
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2767 ac_prog_rejected=yes
2768 continue
2769 fi
2770 ac_cv_prog_CC="cc"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774 done
2775 done
2776 IFS=$as_save_IFS
2777
2778 if test $ac_prog_rejected = yes; then
2779 # We found a bogon in the path, so make sure we never use it.
2780 set dummy $ac_cv_prog_CC
2781 shift
2782 if test $# != 0; then
2783 # We chose a different compiler from the bogus one.
2784 # However, it has the same basename, so the bogon will be chosen
2785 # first if we set CC to just the basename; use the full file name.
2786 shift
2787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2788 fi
2789 fi
2790 fi
2791 fi
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2800
2801
2802 fi
2803 if test -z "$CC"; then
2804 if test -n "$ac_tool_prefix"; then
2805 for ac_prog in cl.exe
2806 do
2807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_CC+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828 done
2829 done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 CC=$ac_cv_prog_CC
2835 if test -n "$CC"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2837 $as_echo "$CC" >&6; }
2838 else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2841 fi
2842
2843
2844 test -n "$CC" && break
2845 done
2846 fi
2847 if test -z "$CC"; then
2848 ac_ct_CC=$CC
2849 for ac_prog in cl.exe
2850 do
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 if test -n "$ac_ct_CC"; then
2859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_ac_ct_CC="$ac_prog"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872 done
2873 done
2874 IFS=$as_save_IFS
2875
2876 fi
2877 fi
2878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2879 if test -n "$ac_ct_CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2881 $as_echo "$ac_ct_CC" >&6; }
2882 else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2885 fi
2886
2887
2888 test -n "$ac_ct_CC" && break
2889 done
2890
2891 if test "x$ac_ct_CC" = x; then
2892 CC=""
2893 else
2894 case $cross_compiling:$ac_tool_warned in
2895 yes:)
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898 ac_tool_warned=yes ;;
2899 esac
2900 CC=$ac_ct_CC
2901 fi
2902 fi
2903
2904 fi
2905
2906
2907 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 as_fn_error $? "no acceptable C compiler found in \$PATH
2910 See \`config.log' for more details" "$LINENO" 5; }
2911
2912 # Provide some information about the compiler.
2913 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2914 set X $ac_compile
2915 ac_compiler=$2
2916 for ac_option in --version -v -V -qversion; do
2917 { { ac_try="$ac_compiler $ac_option >&5"
2918 case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2921 esac
2922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2923 $as_echo "$ac_try_echo"; } >&5
2924 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2925 ac_status=$?
2926 if test -s conftest.err; then
2927 sed '10a\
2928 ... rest of stderr output deleted ...
2929 10q' conftest.err >conftest.er1
2930 cat conftest.er1 >&5
2931 fi
2932 rm -f conftest.er1 conftest.err
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }
2935 done
2936
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h. */
2939
2940 int
2941 main ()
2942 {
2943
2944 ;
2945 return 0;
2946 }
2947 _ACEOF
2948 ac_clean_files_save=$ac_clean_files
2949 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2950 # Try to create an executable without -o first, disregard a.out.
2951 # It will help us diagnose broken compilers, and finding out an intuition
2952 # of exeext.
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2954 $as_echo_n "checking whether the C compiler works... " >&6; }
2955 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2956
2957 # The possible output files:
2958 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2959
2960 ac_rmfiles=
2961 for ac_file in $ac_files
2962 do
2963 case $ac_file in
2964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2965 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2966 esac
2967 done
2968 rm -f $ac_rmfiles
2969
2970 if { { ac_try="$ac_link_default"
2971 case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976 $as_echo "$ac_try_echo"; } >&5
2977 (eval "$ac_link_default") 2>&5
2978 ac_status=$?
2979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980 test $ac_status = 0; }; then :
2981 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2982 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2983 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2984 # so that the user can short-circuit this test for compilers unknown to
2985 # Autoconf.
2986 for ac_file in $ac_files ''
2987 do
2988 test -f "$ac_file" || continue
2989 case $ac_file in
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2991 ;;
2992 [ab].out )
2993 # We found the default executable, but exeext='' is most
2994 # certainly right.
2995 break;;
2996 *.* )
2997 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2998 then :; else
2999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000 fi
3001 # We set ac_cv_exeext here because the later test for it is not
3002 # safe: cross compilers may not add the suffix if given an `-o'
3003 # argument, so we may need to know it at that point already.
3004 # Even if this section looks crufty: it has the advantage of
3005 # actually working.
3006 break;;
3007 * )
3008 break;;
3009 esac
3010 done
3011 test "$ac_cv_exeext" = no && ac_cv_exeext=
3012
3013 else
3014 ac_file=''
3015 fi
3016 if test -z "$ac_file"; then :
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error 77 "C compiler cannot create executables
3025 See \`config.log' for more details" "$LINENO" 5; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028 $as_echo "yes" >&6; }
3029 fi
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3031 $as_echo_n "checking for C compiler default output file name... " >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3033 $as_echo "$ac_file" >&6; }
3034 ac_exeext=$ac_cv_exeext
3035
3036 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3037 ac_clean_files=$ac_clean_files_save
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3039 $as_echo_n "checking for suffix of executables... " >&6; }
3040 if { { ac_try="$ac_link"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_link") 2>&5
3048 ac_status=$?
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }; then :
3051 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3052 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3053 # work properly (i.e., refer to `conftest.exe'), while it won't with
3054 # `rm'.
3055 for ac_file in conftest.exe conftest conftest.*; do
3056 test -f "$ac_file" || continue
3057 case $ac_file in
3058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3059 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3060 break;;
3061 * ) break;;
3062 esac
3063 done
3064 else
3065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3068 See \`config.log' for more details" "$LINENO" 5; }
3069 fi
3070 rm -f conftest conftest$ac_cv_exeext
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3072 $as_echo "$ac_cv_exeext" >&6; }
3073
3074 rm -f conftest.$ac_ext
3075 EXEEXT=$ac_cv_exeext
3076 ac_exeext=$EXEEXT
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3079 #include <stdio.h>
3080 int
3081 main ()
3082 {
3083 FILE *f = fopen ("conftest.out", "w");
3084 return ferror (f) || fclose (f) != 0;
3085
3086 ;
3087 return 0;
3088 }
3089 _ACEOF
3090 ac_clean_files="$ac_clean_files conftest.out"
3091 # Check that the compiler produces executables we can run. If not, either
3092 # the compiler is broken, or we cross compile.
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3094 $as_echo_n "checking whether we are cross compiling... " >&6; }
3095 if test "$cross_compiling" != yes; then
3096 { { ac_try="$ac_link"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_link") 2>&5
3104 ac_status=$?
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3107 if { ac_try='./conftest$ac_cv_exeext'
3108 { { case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_try") 2>&5
3115 ac_status=$?
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; }; then
3118 cross_compiling=no
3119 else
3120 if test "$cross_compiling" = maybe; then
3121 cross_compiling=yes
3122 else
3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $? "cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details" "$LINENO" 5; }
3128 fi
3129 fi
3130 fi
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3132 $as_echo "$cross_compiling" >&6; }
3133
3134 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3135 ac_clean_files=$ac_clean_files_save
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3137 $as_echo_n "checking for suffix of object files... " >&6; }
3138 if ${ac_cv_objext+:} false; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3143
3144 int
3145 main ()
3146 {
3147
3148 ;
3149 return 0;
3150 }
3151 _ACEOF
3152 rm -f conftest.o conftest.obj
3153 if { { ac_try="$ac_compile"
3154 case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157 esac
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_compile") 2>&5
3161 ac_status=$?
3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }; then :
3164 for ac_file in conftest.o conftest.obj conftest.*; do
3165 test -f "$ac_file" || continue;
3166 case $ac_file in
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3168 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3169 break;;
3170 esac
3171 done
3172 else
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "cannot compute suffix of object files: cannot compile
3179 See \`config.log' for more details" "$LINENO" 5; }
3180 fi
3181 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3184 $as_echo "$ac_cv_objext" >&6; }
3185 OBJEXT=$ac_cv_objext
3186 ac_objext=$OBJEXT
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3188 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3189 if ${ac_cv_c_compiler_gnu+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3194
3195 int
3196 main ()
3197 {
3198 #ifndef __GNUC__
3199 choke me
3200 #endif
3201
3202 ;
3203 return 0;
3204 }
3205 _ACEOF
3206 if ac_fn_c_try_compile "$LINENO"; then :
3207 ac_compiler_gnu=yes
3208 else
3209 ac_compiler_gnu=no
3210 fi
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3213
3214 fi
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3216 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3217 if test $ac_compiler_gnu = yes; then
3218 GCC=yes
3219 else
3220 GCC=
3221 fi
3222 ac_test_CFLAGS=${CFLAGS+set}
3223 ac_save_CFLAGS=$CFLAGS
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3225 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3226 if ${ac_cv_prog_cc_g+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 ac_save_c_werror_flag=$ac_c_werror_flag
3230 ac_c_werror_flag=yes
3231 ac_cv_prog_cc_g=no
3232 CFLAGS="-g"
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3235
3236 int
3237 main ()
3238 {
3239
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 if ac_fn_c_try_compile "$LINENO"; then :
3245 ac_cv_prog_cc_g=yes
3246 else
3247 CFLAGS=""
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3250
3251 int
3252 main ()
3253 {
3254
3255 ;
3256 return 0;
3257 }
3258 _ACEOF
3259 if ac_fn_c_try_compile "$LINENO"; then :
3260
3261 else
3262 ac_c_werror_flag=$ac_save_c_werror_flag
3263 CFLAGS="-g"
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3266
3267 int
3268 main ()
3269 {
3270
3271 ;
3272 return 0;
3273 }
3274 _ACEOF
3275 if ac_fn_c_try_compile "$LINENO"; then :
3276 ac_cv_prog_cc_g=yes
3277 fi
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 fi
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 fi
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 ac_c_werror_flag=$ac_save_c_werror_flag
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3286 $as_echo "$ac_cv_prog_cc_g" >&6; }
3287 if test "$ac_test_CFLAGS" = set; then
3288 CFLAGS=$ac_save_CFLAGS
3289 elif test $ac_cv_prog_cc_g = yes; then
3290 if test "$GCC" = yes; then
3291 CFLAGS="-g -O2"
3292 else
3293 CFLAGS="-g"
3294 fi
3295 else
3296 if test "$GCC" = yes; then
3297 CFLAGS="-O2"
3298 else
3299 CFLAGS=
3300 fi
3301 fi
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3303 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3304 if ${ac_cv_prog_cc_c89+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 ac_cv_prog_cc_c89=no
3308 ac_save_CC=$CC
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3311 #include <stdarg.h>
3312 #include <stdio.h>
3313 #include <sys/types.h>
3314 #include <sys/stat.h>
3315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3319 char **p;
3320 int i;
3321 {
3322 return p[i];
3323 }
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3325 {
3326 char *s;
3327 va_list v;
3328 va_start (v,p);
3329 s = g (p, va_arg (v,int));
3330 va_end (v);
3331 return s;
3332 }
3333
3334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3335 function prototypes and stuff, but not '\xHH' hex character constants.
3336 These don't provoke an error unfortunately, instead are silently treated
3337 as 'x'. The following induces an error, until -std is added to get
3338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3339 array size at least. It's necessary to write '\x00'==0 to get something
3340 that's true only with -std. */
3341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3342
3343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344 inside strings and character constants. */
3345 #define FOO(x) 'x'
3346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3347
3348 int test (int i, double x);
3349 struct s1 {int (*f) (int a);};
3350 struct s2 {int (*f) (double a);};
3351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3352 int argc;
3353 char **argv;
3354 int
3355 main ()
3356 {
3357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3364 do
3365 CC="$ac_save_CC $ac_arg"
3366 if ac_fn_c_try_compile "$LINENO"; then :
3367 ac_cv_prog_cc_c89=$ac_arg
3368 fi
3369 rm -f core conftest.err conftest.$ac_objext
3370 test "x$ac_cv_prog_cc_c89" != "xno" && break
3371 done
3372 rm -f conftest.$ac_ext
3373 CC=$ac_save_CC
3374
3375 fi
3376 # AC_CACHE_VAL
3377 case "x$ac_cv_prog_cc_c89" in
3378 x)
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3380 $as_echo "none needed" >&6; } ;;
3381 xno)
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3383 $as_echo "unsupported" >&6; } ;;
3384 *)
3385 CC="$CC $ac_cv_prog_cc_c89"
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3387 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3388 esac
3389 if test "x$ac_cv_prog_cc_c89" != xno; then :
3390
3391 fi
3392
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
3399
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3406 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3407 # On Suns, sometimes $CPP names a directory.
3408 if test -n "$CPP" && test -d "$CPP"; then
3409 CPP=
3410 fi
3411 if test -z "$CPP"; then
3412 if ${ac_cv_prog_CPP+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 # Double quotes because CPP needs to be expanded
3416 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3417 do
3418 ac_preproc_ok=false
3419 for ac_c_preproc_warn_flag in '' yes
3420 do
3421 # Use a header file that comes with gcc, so configuring glibc
3422 # with a fresh cross-compiler works.
3423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424 # <limits.h> exists even on freestanding compilers.
3425 # On the NeXT, cc -E runs the code through the compiler's parser,
3426 # not just through cpp. "Syntax error" is here to catch this case.
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429 #ifdef __STDC__
3430 # include <limits.h>
3431 #else
3432 # include <assert.h>
3433 #endif
3434 Syntax error
3435 _ACEOF
3436 if ac_fn_c_try_cpp "$LINENO"; then :
3437
3438 else
3439 # Broken: fails on valid input.
3440 continue
3441 fi
3442 rm -f conftest.err conftest.i conftest.$ac_ext
3443
3444 # OK, works on sane cases. Now check whether nonexistent headers
3445 # can be detected and how.
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448 #include <ac_nonexistent.h>
3449 _ACEOF
3450 if ac_fn_c_try_cpp "$LINENO"; then :
3451 # Broken: success on invalid input.
3452 continue
3453 else
3454 # Passes both tests.
3455 ac_preproc_ok=:
3456 break
3457 fi
3458 rm -f conftest.err conftest.i conftest.$ac_ext
3459
3460 done
3461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3462 rm -f conftest.i conftest.err conftest.$ac_ext
3463 if $ac_preproc_ok; then :
3464 break
3465 fi
3466
3467 done
3468 ac_cv_prog_CPP=$CPP
3469
3470 fi
3471 CPP=$ac_cv_prog_CPP
3472 else
3473 ac_cv_prog_CPP=$CPP
3474 fi
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3476 $as_echo "$CPP" >&6; }
3477 ac_preproc_ok=false
3478 for ac_c_preproc_warn_flag in '' yes
3479 do
3480 # Use a header file that comes with gcc, so configuring glibc
3481 # with a fresh cross-compiler works.
3482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3483 # <limits.h> exists even on freestanding compilers.
3484 # On the NeXT, cc -E runs the code through the compiler's parser,
3485 # not just through cpp. "Syntax error" is here to catch this case.
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488 #ifdef __STDC__
3489 # include <limits.h>
3490 #else
3491 # include <assert.h>
3492 #endif
3493 Syntax error
3494 _ACEOF
3495 if ac_fn_c_try_cpp "$LINENO"; then :
3496
3497 else
3498 # Broken: fails on valid input.
3499 continue
3500 fi
3501 rm -f conftest.err conftest.i conftest.$ac_ext
3502
3503 # OK, works on sane cases. Now check whether nonexistent headers
3504 # can be detected and how.
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #include <ac_nonexistent.h>
3508 _ACEOF
3509 if ac_fn_c_try_cpp "$LINENO"; then :
3510 # Broken: success on invalid input.
3511 continue
3512 else
3513 # Passes both tests.
3514 ac_preproc_ok=:
3515 break
3516 fi
3517 rm -f conftest.err conftest.i conftest.$ac_ext
3518
3519 done
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.i conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then :
3523
3524 else
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3528 See \`config.log' for more details" "$LINENO" 5; }
3529 fi
3530
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3539 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3540 if ${ac_cv_path_GREP+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -z "$GREP"; then
3544 ac_path_GREP_found=false
3545 # Loop through the user's path and test for each of PROGNAME-LIST
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3548 do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_prog in grep ggrep; do
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3554 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3555 # Check for GNU ac_path_GREP and select it if it is found.
3556 # Check for GNU $ac_path_GREP
3557 case `"$ac_path_GREP" --version 2>&1` in
3558 *GNU*)
3559 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3560 *)
3561 ac_count=0
3562 $as_echo_n 0123456789 >"conftest.in"
3563 while :
3564 do
3565 cat "conftest.in" "conftest.in" >"conftest.tmp"
3566 mv "conftest.tmp" "conftest.in"
3567 cp "conftest.in" "conftest.nl"
3568 $as_echo 'GREP' >> "conftest.nl"
3569 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3571 as_fn_arith $ac_count + 1 && ac_count=$as_val
3572 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3573 # Best one so far, save it but keep looking for a better one
3574 ac_cv_path_GREP="$ac_path_GREP"
3575 ac_path_GREP_max=$ac_count
3576 fi
3577 # 10*(2^10) chars as input seems more than enough
3578 test $ac_count -gt 10 && break
3579 done
3580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3581 esac
3582
3583 $ac_path_GREP_found && break 3
3584 done
3585 done
3586 done
3587 IFS=$as_save_IFS
3588 if test -z "$ac_cv_path_GREP"; then
3589 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3590 fi
3591 else
3592 ac_cv_path_GREP=$GREP
3593 fi
3594
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3597 $as_echo "$ac_cv_path_GREP" >&6; }
3598 GREP="$ac_cv_path_GREP"
3599
3600
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3602 $as_echo_n "checking for egrep... " >&6; }
3603 if ${ac_cv_path_EGREP+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3607 then ac_cv_path_EGREP="$GREP -E"
3608 else
3609 if test -z "$EGREP"; then
3610 ac_path_EGREP_found=false
3611 # Loop through the user's path and test for each of PROGNAME-LIST
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_prog in egrep; do
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3620 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3621 # Check for GNU ac_path_EGREP and select it if it is found.
3622 # Check for GNU $ac_path_EGREP
3623 case `"$ac_path_EGREP" --version 2>&1` in
3624 *GNU*)
3625 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3626 *)
3627 ac_count=0
3628 $as_echo_n 0123456789 >"conftest.in"
3629 while :
3630 do
3631 cat "conftest.in" "conftest.in" >"conftest.tmp"
3632 mv "conftest.tmp" "conftest.in"
3633 cp "conftest.in" "conftest.nl"
3634 $as_echo 'EGREP' >> "conftest.nl"
3635 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637 as_fn_arith $ac_count + 1 && ac_count=$as_val
3638 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3639 # Best one so far, save it but keep looking for a better one
3640 ac_cv_path_EGREP="$ac_path_EGREP"
3641 ac_path_EGREP_max=$ac_count
3642 fi
3643 # 10*(2^10) chars as input seems more than enough
3644 test $ac_count -gt 10 && break
3645 done
3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3647 esac
3648
3649 $ac_path_EGREP_found && break 3
3650 done
3651 done
3652 done
3653 IFS=$as_save_IFS
3654 if test -z "$ac_cv_path_EGREP"; then
3655 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3656 fi
3657 else
3658 ac_cv_path_EGREP=$EGREP
3659 fi
3660
3661 fi
3662 fi
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3664 $as_echo "$ac_cv_path_EGREP" >&6; }
3665 EGREP="$ac_cv_path_EGREP"
3666
3667
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3669 $as_echo_n "checking for ANSI C header files... " >&6; }
3670 if ${ac_cv_header_stdc+:} false; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675 #include <stdlib.h>
3676 #include <stdarg.h>
3677 #include <string.h>
3678 #include <float.h>
3679
3680 int
3681 main ()
3682 {
3683
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 if ac_fn_c_try_compile "$LINENO"; then :
3689 ac_cv_header_stdc=yes
3690 else
3691 ac_cv_header_stdc=no
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694
3695 if test $ac_cv_header_stdc = yes; then
3696 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699 #include <string.h>
3700
3701 _ACEOF
3702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3703 $EGREP "memchr" >/dev/null 2>&1; then :
3704
3705 else
3706 ac_cv_header_stdc=no
3707 fi
3708 rm -f conftest*
3709
3710 fi
3711
3712 if test $ac_cv_header_stdc = yes; then
3713 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3716 #include <stdlib.h>
3717
3718 _ACEOF
3719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3720 $EGREP "free" >/dev/null 2>&1; then :
3721
3722 else
3723 ac_cv_header_stdc=no
3724 fi
3725 rm -f conftest*
3726
3727 fi
3728
3729 if test $ac_cv_header_stdc = yes; then
3730 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3731 if test "$cross_compiling" = yes; then :
3732 :
3733 else
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736 #include <ctype.h>
3737 #include <stdlib.h>
3738 #if ((' ' & 0x0FF) == 0x020)
3739 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3740 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3741 #else
3742 # define ISLOWER(c) \
3743 (('a' <= (c) && (c) <= 'i') \
3744 || ('j' <= (c) && (c) <= 'r') \
3745 || ('s' <= (c) && (c) <= 'z'))
3746 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3747 #endif
3748
3749 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3750 int
3751 main ()
3752 {
3753 int i;
3754 for (i = 0; i < 256; i++)
3755 if (XOR (islower (i), ISLOWER (i))
3756 || toupper (i) != TOUPPER (i))
3757 return 2;
3758 return 0;
3759 }
3760 _ACEOF
3761 if ac_fn_c_try_run "$LINENO"; then :
3762
3763 else
3764 ac_cv_header_stdc=no
3765 fi
3766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3767 conftest.$ac_objext conftest.beam conftest.$ac_ext
3768 fi
3769
3770 fi
3771 fi
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3773 $as_echo "$ac_cv_header_stdc" >&6; }
3774 if test $ac_cv_header_stdc = yes; then
3775
3776 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3777
3778 fi
3779
3780 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3781 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3782 inttypes.h stdint.h unistd.h
3783 do :
3784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3786 "
3787 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3788 cat >>confdefs.h <<_ACEOF
3789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3790 _ACEOF
3791
3792 fi
3793
3794 done
3795
3796
3797
3798 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3799 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3800 MINIX=yes
3801 else
3802 MINIX=
3803 fi
3804
3805
3806 if test "$MINIX" = yes; then
3807
3808 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3809
3810
3811 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3812
3813
3814 $as_echo "#define _MINIX 1" >>confdefs.h
3815
3816 fi
3817
3818
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3820 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3821 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826
3827 # define __EXTENSIONS__ 1
3828 $ac_includes_default
3829 int
3830 main ()
3831 {
3832
3833 ;
3834 return 0;
3835 }
3836 _ACEOF
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838 ac_cv_safe_to_define___extensions__=yes
3839 else
3840 ac_cv_safe_to_define___extensions__=no
3841 fi
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 fi
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3845 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3846 test $ac_cv_safe_to_define___extensions__ = yes &&
3847 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3848
3849 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3850
3851 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3852
3853 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3854
3855 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3856
3857
3858
3859
3860 ac_config_headers="$ac_config_headers config.h"
3861
3862
3863 # Initialize Automake
3864 am__api_version='1.11'
3865
3866 ac_aux_dir=
3867 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3868 if test -f "$ac_dir/install-sh"; then
3869 ac_aux_dir=$ac_dir
3870 ac_install_sh="$ac_aux_dir/install-sh -c"
3871 break
3872 elif test -f "$ac_dir/install.sh"; then
3873 ac_aux_dir=$ac_dir
3874 ac_install_sh="$ac_aux_dir/install.sh -c"
3875 break
3876 elif test -f "$ac_dir/shtool"; then
3877 ac_aux_dir=$ac_dir
3878 ac_install_sh="$ac_aux_dir/shtool install -c"
3879 break
3880 fi
3881 done
3882 if test -z "$ac_aux_dir"; then
3883 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3884 fi
3885
3886 # These three variables are undocumented and unsupported,
3887 # and are intended to be withdrawn in a future Autoconf release.
3888 # They can cause serious problems if a builder's source tree is in a directory
3889 # whose full name contains unusual characters.
3890 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3891 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3892 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3893
3894
3895 # Find a good install program. We prefer a C program (faster),
3896 # so one script is as good as another. But avoid the broken or
3897 # incompatible versions:
3898 # SysV /etc/install, /usr/sbin/install
3899 # SunOS /usr/etc/install
3900 # IRIX /sbin/install
3901 # AIX /bin/install
3902 # AmigaOS /C/install, which installs bootblocks on floppy discs
3903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3906 # OS/2's system install, which has a completely different semantic
3907 # ./install, which can be erroneously created by make from ./install.sh.
3908 # Reject install programs that cannot install multiple files.
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3910 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3911 if test -z "$INSTALL"; then
3912 if ${ac_cv_path_install+:} false; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 # Account for people who put trailing slashes in PATH elements.
3921 case $as_dir/ in #((
3922 ./ | .// | /[cC]/* | \
3923 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3924 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3925 /usr/ucb/* ) ;;
3926 *)
3927 # OSF1 and SCO ODT 3.0 have their own names for install.
3928 # Don't use installbsd from OSF since it installs stuff as root
3929 # by default.
3930 for ac_prog in ginstall scoinst install; do
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3933 if test $ac_prog = install &&
3934 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3935 # AIX install. It has an incompatible calling convention.
3936 :
3937 elif test $ac_prog = install &&
3938 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3939 # program-specific install script used by HP pwplus--don't use.
3940 :
3941 else
3942 rm -rf conftest.one conftest.two conftest.dir
3943 echo one > conftest.one
3944 echo two > conftest.two
3945 mkdir conftest.dir
3946 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3947 test -s conftest.one && test -s conftest.two &&
3948 test -s conftest.dir/conftest.one &&
3949 test -s conftest.dir/conftest.two
3950 then
3951 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3952 break 3
3953 fi
3954 fi
3955 fi
3956 done
3957 done
3958 ;;
3959 esac
3960
3961 done
3962 IFS=$as_save_IFS
3963
3964 rm -rf conftest.one conftest.two conftest.dir
3965
3966 fi
3967 if test "${ac_cv_path_install+set}" = set; then
3968 INSTALL=$ac_cv_path_install
3969 else
3970 # As a last resort, use the slow shell script. Don't cache a
3971 # value for INSTALL within a source directory, because that will
3972 # break other packages using the cache if that directory is
3973 # removed, or if the value is a relative name.
3974 INSTALL=$ac_install_sh
3975 fi
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3978 $as_echo "$INSTALL" >&6; }
3979
3980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3981 # It thinks the first close brace ends the variable substitution.
3982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3983
3984 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3985
3986 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3989 $as_echo_n "checking whether build environment is sane... " >&6; }
3990 # Just in case
3991 sleep 1
3992 echo timestamp > conftest.file
3993 # Reject unsafe characters in $srcdir or the absolute working directory
3994 # name. Accept space and tab only in the latter.
3995 am_lf='
3996 '
3997 case `pwd` in
3998 *[\\\"\#\$\&\'\`$am_lf]*)
3999 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4000 esac
4001 case $srcdir in
4002 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4003 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4004 esac
4005
4006 # Do `set' in a subshell so we don't clobber the current shell's
4007 # arguments. Must try -L first in case configure is actually a
4008 # symlink; some systems play weird games with the mod time of symlinks
4009 # (eg FreeBSD returns the mod time of the symlink's containing
4010 # directory).
4011 if (
4012 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4013 if test "$*" = "X"; then
4014 # -L didn't work.
4015 set X `ls -t "$srcdir/configure" conftest.file`
4016 fi
4017 rm -f conftest.file
4018 if test "$*" != "X $srcdir/configure conftest.file" \
4019 && test "$*" != "X conftest.file $srcdir/configure"; then
4020
4021 # If neither matched, then we have a broken ls. This can happen
4022 # if, for instance, CONFIG_SHELL is bash and it inherits a
4023 # broken ls alias from the environment. This has actually
4024 # happened. Such a system could not be considered "sane".
4025 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4026 alias in your environment" "$LINENO" 5
4027 fi
4028
4029 test "$2" = conftest.file
4030 )
4031 then
4032 # Ok.
4033 :
4034 else
4035 as_fn_error $? "newly created file is older than distributed files!
4036 Check your system clock" "$LINENO" 5
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4039 $as_echo "yes" >&6; }
4040 test "$program_prefix" != NONE &&
4041 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4042 # Use a double $ so make ignores it.
4043 test "$program_suffix" != NONE &&
4044 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4045 # Double any \ or $.
4046 # By default was `s,x,x', remove it if useless.
4047 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4048 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4049
4050 # expand $ac_aux_dir to an absolute path
4051 am_aux_dir=`cd $ac_aux_dir && pwd`
4052
4053 if test x"${MISSING+set}" != xset; then
4054 case $am_aux_dir in
4055 *\ * | *\ *)
4056 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4057 *)
4058 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4059 esac
4060 fi
4061 # Use eval to expand $SHELL
4062 if eval "$MISSING --run true"; then
4063 am_missing_run="$MISSING --run "
4064 else
4065 am_missing_run=
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4067 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4068 fi
4069
4070 if test x"${install_sh}" != xset; then
4071 case $am_aux_dir in
4072 *\ * | *\ *)
4073 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4074 *)
4075 install_sh="\${SHELL} $am_aux_dir/install-sh"
4076 esac
4077 fi
4078
4079 # Installed binaries are usually stripped using `strip' when the user
4080 # run `make install-strip'. However `strip' might not be the right
4081 # tool to use in cross-compilation environments, therefore Automake
4082 # will honor the `STRIP' environment variable to overrule this program.
4083 if test "$cross_compiling" != no; then
4084 if test -n "$ac_tool_prefix"; then
4085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4086 set dummy ${ac_tool_prefix}strip; ac_word=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if ${ac_cv_prog_STRIP+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if test -n "$STRIP"; then
4093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 break 2
4105 fi
4106 done
4107 done
4108 IFS=$as_save_IFS
4109
4110 fi
4111 fi
4112 STRIP=$ac_cv_prog_STRIP
4113 if test -n "$STRIP"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4115 $as_echo "$STRIP" >&6; }
4116 else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4119 fi
4120
4121
4122 fi
4123 if test -z "$ac_cv_prog_STRIP"; then
4124 ac_ct_STRIP=$STRIP
4125 # Extract the first word of "strip", so it can be a program name with args.
4126 set dummy strip; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test -n "$ac_ct_STRIP"; then
4133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_prog_ac_ct_STRIP="strip"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150 fi
4151 fi
4152 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4153 if test -n "$ac_ct_STRIP"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4155 $as_echo "$ac_ct_STRIP" >&6; }
4156 else
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4159 fi
4160
4161 if test "x$ac_ct_STRIP" = x; then
4162 STRIP=":"
4163 else
4164 case $cross_compiling:$ac_tool_warned in
4165 yes:)
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168 ac_tool_warned=yes ;;
4169 esac
4170 STRIP=$ac_ct_STRIP
4171 fi
4172 else
4173 STRIP="$ac_cv_prog_STRIP"
4174 fi
4175
4176 fi
4177 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4180 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4181 if test -z "$MKDIR_P"; then
4182 if ${ac_cv_path_mkdir+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4187 do
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_prog in mkdir gmkdir; do
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4193 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4194 'mkdir (GNU coreutils) '* | \
4195 'mkdir (coreutils) '* | \
4196 'mkdir (fileutils) '4.1*)
4197 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4198 break 3;;
4199 esac
4200 done
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205 fi
4206
4207 test -d ./--version && rmdir ./--version
4208 if test "${ac_cv_path_mkdir+set}" = set; then
4209 MKDIR_P="$ac_cv_path_mkdir -p"
4210 else
4211 # As a last resort, use the slow shell script. Don't cache a
4212 # value for MKDIR_P within a source directory, because that will
4213 # break other packages using the cache if that directory is
4214 # removed, or if the value is a relative name.
4215 MKDIR_P="$ac_install_sh -d"
4216 fi
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4219 $as_echo "$MKDIR_P" >&6; }
4220
4221 mkdir_p="$MKDIR_P"
4222 case $mkdir_p in
4223 [\\/$]* | ?:[\\/]*) ;;
4224 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4225 esac
4226
4227 for ac_prog in gawk mawk nawk awk
4228 do
4229 # Extract the first word of "$ac_prog", so it can be a program name with args.
4230 set dummy $ac_prog; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_AWK+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -n "$AWK"; then
4237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_AWK="$ac_prog"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4249 fi
4250 done
4251 done
4252 IFS=$as_save_IFS
4253
4254 fi
4255 fi
4256 AWK=$ac_cv_prog_AWK
4257 if test -n "$AWK"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4259 $as_echo "$AWK" >&6; }
4260 else
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4263 fi
4264
4265
4266 test -n "$AWK" && break
4267 done
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4270 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4271 set x ${MAKE-make}
4272 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4273 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 cat >conftest.make <<\_ACEOF
4277 SHELL = /bin/sh
4278 all:
4279 @echo '@@@%%%=$(MAKE)=@@@%%%'
4280 _ACEOF
4281 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4282 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4283 *@@@%%%=?*=@@@%%%*)
4284 eval ac_cv_prog_make_${ac_make}_set=yes;;
4285 *)
4286 eval ac_cv_prog_make_${ac_make}_set=no;;
4287 esac
4288 rm -f conftest.make
4289 fi
4290 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292 $as_echo "yes" >&6; }
4293 SET_MAKE=
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 SET_MAKE="MAKE=${MAKE-make}"
4298 fi
4299
4300 rm -rf .tst 2>/dev/null
4301 mkdir .tst 2>/dev/null
4302 if test -d .tst; then
4303 am__leading_dot=.
4304 else
4305 am__leading_dot=_
4306 fi
4307 rmdir .tst 2>/dev/null
4308
4309 DEPDIR="${am__leading_dot}deps"
4310
4311 ac_config_commands="$ac_config_commands depfiles"
4312
4313
4314 am_make=${MAKE-make}
4315 cat > confinc << 'END'
4316 am__doit:
4317 @echo this is the am__doit target
4318 .PHONY: am__doit
4319 END
4320 # If we don't find an include directive, just comment out the code.
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4322 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4323 am__include="#"
4324 am__quote=
4325 _am_result=none
4326 # First try GNU make style include.
4327 echo "include confinc" > confmf
4328 # Ignore all kinds of additional output from `make'.
4329 case `$am_make -s -f confmf 2> /dev/null` in #(
4330 *the\ am__doit\ target*)
4331 am__include=include
4332 am__quote=
4333 _am_result=GNU
4334 ;;
4335 esac
4336 # Now try BSD make style include.
4337 if test "$am__include" = "#"; then
4338 echo '.include "confinc"' > confmf
4339 case `$am_make -s -f confmf 2> /dev/null` in #(
4340 *the\ am__doit\ target*)
4341 am__include=.include
4342 am__quote="\""
4343 _am_result=BSD
4344 ;;
4345 esac
4346 fi
4347
4348
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4350 $as_echo "$_am_result" >&6; }
4351 rm -f confinc confmf
4352
4353 # Check whether --enable-dependency-tracking was given.
4354 if test "${enable_dependency_tracking+set}" = set; then :
4355 enableval=$enable_dependency_tracking;
4356 fi
4357
4358 if test "x$enable_dependency_tracking" != xno; then
4359 am_depcomp="$ac_aux_dir/depcomp"
4360 AMDEPBACKSLASH='\'
4361 fi
4362 if test "x$enable_dependency_tracking" != xno; then
4363 AMDEP_TRUE=
4364 AMDEP_FALSE='#'
4365 else
4366 AMDEP_TRUE='#'
4367 AMDEP_FALSE=
4368 fi
4369
4370
4371 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4372 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4373 # is not polluted with repeated "-I."
4374 am__isrc=' -I$(srcdir)'
4375 # test to see if srcdir already configured
4376 if test -f $srcdir/config.status; then
4377 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4378 fi
4379 fi
4380
4381 # test whether we have cygpath
4382 if test -z "$CYGPATH_W"; then
4383 if (cygpath --version) >/dev/null 2>/dev/null; then
4384 CYGPATH_W='cygpath -w'
4385 else
4386 CYGPATH_W=echo
4387 fi
4388 fi
4389
4390
4391 # Define the identity of the package.
4392 PACKAGE='xdm'
4393 VERSION='1.1.11'
4394
4395
4396 cat >>confdefs.h <<_ACEOF
4397 #define PACKAGE "$PACKAGE"
4398 _ACEOF
4399
4400
4401 cat >>confdefs.h <<_ACEOF
4402 #define VERSION "$VERSION"
4403 _ACEOF
4404
4405 # Some tools Automake needs.
4406
4407 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4408
4409
4410 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4411
4412
4413 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4414
4415
4416 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4417
4418
4419 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4420
4421 # We need awk for the "check" target. The system "awk" is bad on
4422 # some platforms.
4423 # Always define AMTAR for backward compatibility.
4424
4425 AMTAR=${AMTAR-"${am_missing_run}tar"}
4426
4427 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4428
4429
4430
4431
4432 depcc="$CC" am_compiler_list=
4433
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4435 $as_echo_n "checking dependency style of $depcc... " >&6; }
4436 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4440 # We make a subdir and do the tests there. Otherwise we can end up
4441 # making bogus files that we don't know about and never remove. For
4442 # instance it was reported that on HP-UX the gcc test will end up
4443 # making a dummy file named `D' -- because `-MD' means `put the output
4444 # in D'.
4445 mkdir conftest.dir
4446 # Copy depcomp to subdir because otherwise we won't find it if we're
4447 # using a relative directory.
4448 cp "$am_depcomp" conftest.dir
4449 cd conftest.dir
4450 # We will build objects and dependencies in a subdirectory because
4451 # it helps to detect inapplicable dependency modes. For instance
4452 # both Tru64's cc and ICC support -MD to output dependencies as a
4453 # side effect of compilation, but ICC will put the dependencies in
4454 # the current directory while Tru64 will put them in the object
4455 # directory.
4456 mkdir sub
4457
4458 am_cv_CC_dependencies_compiler_type=none
4459 if test "$am_compiler_list" = ""; then
4460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4461 fi
4462 am__universal=false
4463 case " $depcc " in #(
4464 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4465 esac
4466
4467 for depmode in $am_compiler_list; do
4468 # Setup a source with many dependencies, because some compilers
4469 # like to wrap large dependency lists on column 80 (with \), and
4470 # we should not choose a depcomp mode which is confused by this.
4471 #
4472 # We need to recreate these files for each test, as the compiler may
4473 # overwrite some of them when testing with obscure command lines.
4474 # This happens at least with the AIX C compiler.
4475 : > sub/conftest.c
4476 for i in 1 2 3 4 5 6; do
4477 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4478 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4479 # Solaris 8's {/usr,}/bin/sh.
4480 touch sub/conftst$i.h
4481 done
4482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4483
4484 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4485 # mode. It turns out that the SunPro C++ compiler does not properly
4486 # handle `-M -o', and we need to detect this. Also, some Intel
4487 # versions had trouble with output in subdirs
4488 am__obj=sub/conftest.${OBJEXT-o}
4489 am__minus_obj="-o $am__obj"
4490 case $depmode in
4491 gcc)
4492 # This depmode causes a compiler race in universal mode.
4493 test "$am__universal" = false || continue
4494 ;;
4495 nosideeffect)
4496 # after this tag, mechanisms are not by side-effect, so they'll
4497 # only be used when explicitly requested
4498 if test "x$enable_dependency_tracking" = xyes; then
4499 continue
4500 else
4501 break
4502 fi
4503 ;;
4504 msvisualcpp | msvcmsys)
4505 # This compiler won't grok `-c -o', but also, the minuso test has
4506 # not run yet. These depmodes are late enough in the game, and
4507 # so weak that their functioning should not be impacted.
4508 am__obj=conftest.${OBJEXT-o}
4509 am__minus_obj=
4510 ;;
4511 none) break ;;
4512 esac
4513 if depmode=$depmode \
4514 source=sub/conftest.c object=$am__obj \
4515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4516 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4517 >/dev/null 2>conftest.err &&
4518 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4519 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4520 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4521 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4522 # icc doesn't choke on unknown options, it will just issue warnings
4523 # or remarks (even with -Werror). So we grep stderr for any message
4524 # that says an option was ignored or not supported.
4525 # When given -MP, icc 7.0 and 7.1 complain thusly:
4526 # icc: Command line warning: ignoring option '-M'; no argument required
4527 # The diagnosis changed in icc 8.0:
4528 # icc: Command line remark: option '-MP' not supported
4529 if (grep 'ignoring option' conftest.err ||
4530 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4531 am_cv_CC_dependencies_compiler_type=$depmode
4532 break
4533 fi
4534 fi
4535 done
4536
4537 cd ..
4538 rm -rf conftest.dir
4539 else
4540 am_cv_CC_dependencies_compiler_type=none
4541 fi
4542
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4545 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4546 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4547
4548 if
4549 test "x$enable_dependency_tracking" != xno \
4550 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4551 am__fastdepCC_TRUE=
4552 am__fastdepCC_FALSE='#'
4553 else
4554 am__fastdepCC_TRUE='#'
4555 am__fastdepCC_FALSE=
4556 fi
4557
4558
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4562 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4563 # Check whether --enable-maintainer-mode was given.
4564 if test "${enable_maintainer_mode+set}" = set; then :
4565 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4566 else
4567 USE_MAINTAINER_MODE=no
4568 fi
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4571 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4572 if test $USE_MAINTAINER_MODE = yes; then
4573 MAINTAINER_MODE_TRUE=
4574 MAINTAINER_MODE_FALSE='#'
4575 else
4576 MAINTAINER_MODE_TRUE='#'
4577 MAINTAINER_MODE_FALSE=
4578 fi
4579
4580 MAINT=$MAINTAINER_MODE_TRUE
4581
4582
4583
4584 # Initialize libtool
4585 # Check whether --enable-static was given.
4586 if test "${enable_static+set}" = set; then :
4587 enableval=$enable_static; p=${PACKAGE-default}
4588 case $enableval in
4589 yes) enable_static=yes ;;
4590 no) enable_static=no ;;
4591 *)
4592 enable_static=no
4593 # Look at the argument we got. We use all the common list separators.
4594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4595 for pkg in $enableval; do
4596 IFS="$lt_save_ifs"
4597 if test "X$pkg" = "X$p"; then
4598 enable_static=yes
4599 fi
4600 done
4601 IFS="$lt_save_ifs"
4602 ;;
4603 esac
4604 else
4605 enable_static=no
4606 fi
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616 enable_dlopen=yes
4617
4618
4619
4620 case `pwd` in
4621 *\ * | *\ *)
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4623 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4624 esac
4625
4626
4627
4628 macro_version='2.4'
4629 macro_revision='1.3293'
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643 ltmain="$ac_aux_dir/ltmain.sh"
4644
4645 # Make sure we can run config.sub.
4646 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4647 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4650 $as_echo_n "checking build system type... " >&6; }
4651 if ${ac_cv_build+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 ac_build_alias=$build_alias
4655 test "x$ac_build_alias" = x &&
4656 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4657 test "x$ac_build_alias" = x &&
4658 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4659 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4660 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4661
4662 fi
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4664 $as_echo "$ac_cv_build" >&6; }
4665 case $ac_cv_build in
4666 *-*-*) ;;
4667 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4668 esac
4669 build=$ac_cv_build
4670 ac_save_IFS=$IFS; IFS='-'
4671 set x $ac_cv_build
4672 shift
4673 build_cpu=$1
4674 build_vendor=$2
4675 shift; shift
4676 # Remember, the first character of IFS is used to create $*,
4677 # except with old shells:
4678 build_os=$*
4679 IFS=$ac_save_IFS
4680 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4681
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4684 $as_echo_n "checking host system type... " >&6; }
4685 if ${ac_cv_host+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test "x$host_alias" = x; then
4689 ac_cv_host=$ac_cv_build
4690 else
4691 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4692 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4693 fi
4694
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4697 $as_echo "$ac_cv_host" >&6; }
4698 case $ac_cv_host in
4699 *-*-*) ;;
4700 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4701 esac
4702 host=$ac_cv_host
4703 ac_save_IFS=$IFS; IFS='-'
4704 set x $ac_cv_host
4705 shift
4706 host_cpu=$1
4707 host_vendor=$2
4708 shift; shift
4709 # Remember, the first character of IFS is used to create $*,
4710 # except with old shells:
4711 host_os=$*
4712 IFS=$ac_save_IFS
4713 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4714
4715
4716 # Backslashify metacharacters that are still active within
4717 # double-quoted strings.
4718 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4719
4720 # Same as above, but do not quote variable references.
4721 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4722
4723 # Sed substitution to delay expansion of an escaped shell variable in a
4724 # double_quote_subst'ed string.
4725 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4726
4727 # Sed substitution to delay expansion of an escaped single quote.
4728 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4729
4730 # Sed substitution to avoid accidental globbing in evaled expressions
4731 no_glob_subst='s/\*/\\\*/g'
4732
4733 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4734 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4735 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4738 $as_echo_n "checking how to print strings... " >&6; }
4739 # Test print first, because it will be a builtin if present.
4740 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4741 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4742 ECHO='print -r --'
4743 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4744 ECHO='printf %s\n'
4745 else
4746 # Use this function as a fallback that always works.
4747 func_fallback_echo ()
4748 {
4749 eval 'cat <<_LTECHO_EOF
4750 $1
4751 _LTECHO_EOF'
4752 }
4753 ECHO='func_fallback_echo'
4754 fi
4755
4756 # func_echo_all arg...
4757 # Invoke $ECHO with all args, space-separated.
4758 func_echo_all ()
4759 {
4760 $ECHO ""
4761 }
4762
4763 case "$ECHO" in
4764 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4765 $as_echo "printf" >&6; } ;;
4766 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4767 $as_echo "print -r" >&6; } ;;
4768 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4769 $as_echo "cat" >&6; } ;;
4770 esac
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4786 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4787 if ${ac_cv_path_SED+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4791 for ac_i in 1 2 3 4 5 6 7; do
4792 ac_script="$ac_script$as_nl$ac_script"
4793 done
4794 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4795 { ac_script=; unset ac_script;}
4796 if test -z "$SED"; then
4797 ac_path_SED_found=false
4798 # Loop through the user's path and test for each of PROGNAME-LIST
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_prog in sed gsed; do
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4807 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4808 # Check for GNU ac_path_SED and select it if it is found.
4809 # Check for GNU $ac_path_SED
4810 case `"$ac_path_SED" --version 2>&1` in
4811 *GNU*)
4812 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4813 *)
4814 ac_count=0
4815 $as_echo_n 0123456789 >"conftest.in"
4816 while :
4817 do
4818 cat "conftest.in" "conftest.in" >"conftest.tmp"
4819 mv "conftest.tmp" "conftest.in"
4820 cp "conftest.in" "conftest.nl"
4821 $as_echo '' >> "conftest.nl"
4822 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4824 as_fn_arith $ac_count + 1 && ac_count=$as_val
4825 if test $ac_count -gt ${ac_path_SED_max-0}; then
4826 # Best one so far, save it but keep looking for a better one
4827 ac_cv_path_SED="$ac_path_SED"
4828 ac_path_SED_max=$ac_count
4829 fi
4830 # 10*(2^10) chars as input seems more than enough
4831 test $ac_count -gt 10 && break
4832 done
4833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4834 esac
4835
4836 $ac_path_SED_found && break 3
4837 done
4838 done
4839 done
4840 IFS=$as_save_IFS
4841 if test -z "$ac_cv_path_SED"; then
4842 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4843 fi
4844 else
4845 ac_cv_path_SED=$SED
4846 fi
4847
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4850 $as_echo "$ac_cv_path_SED" >&6; }
4851 SED="$ac_cv_path_SED"
4852 rm -f conftest.sed
4853
4854 test -z "$SED" && SED=sed
4855 Xsed="$SED -e 1s/^X//"
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4868 $as_echo_n "checking for fgrep... " >&6; }
4869 if ${ac_cv_path_FGREP+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4873 then ac_cv_path_FGREP="$GREP -F"
4874 else
4875 if test -z "$FGREP"; then
4876 ac_path_FGREP_found=false
4877 # Loop through the user's path and test for each of PROGNAME-LIST
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4880 do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_prog in fgrep; do
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4886 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4887 # Check for GNU ac_path_FGREP and select it if it is found.
4888 # Check for GNU $ac_path_FGREP
4889 case `"$ac_path_FGREP" --version 2>&1` in
4890 *GNU*)
4891 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4892 *)
4893 ac_count=0
4894 $as_echo_n 0123456789 >"conftest.in"
4895 while :
4896 do
4897 cat "conftest.in" "conftest.in" >"conftest.tmp"
4898 mv "conftest.tmp" "conftest.in"
4899 cp "conftest.in" "conftest.nl"
4900 $as_echo 'FGREP' >> "conftest.nl"
4901 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4903 as_fn_arith $ac_count + 1 && ac_count=$as_val
4904 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4905 # Best one so far, save it but keep looking for a better one
4906 ac_cv_path_FGREP="$ac_path_FGREP"
4907 ac_path_FGREP_max=$ac_count
4908 fi
4909 # 10*(2^10) chars as input seems more than enough
4910 test $ac_count -gt 10 && break
4911 done
4912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4913 esac
4914
4915 $ac_path_FGREP_found && break 3
4916 done
4917 done
4918 done
4919 IFS=$as_save_IFS
4920 if test -z "$ac_cv_path_FGREP"; then
4921 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4922 fi
4923 else
4924 ac_cv_path_FGREP=$FGREP
4925 fi
4926
4927 fi
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4930 $as_echo "$ac_cv_path_FGREP" >&6; }
4931 FGREP="$ac_cv_path_FGREP"
4932
4933
4934 test -z "$GREP" && GREP=grep
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954 # Check whether --with-gnu-ld was given.
4955 if test "${with_gnu_ld+set}" = set; then :
4956 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4957 else
4958 with_gnu_ld=no
4959 fi
4960
4961 ac_prog=ld
4962 if test "$GCC" = yes; then
4963 # Check if gcc -print-prog-name=ld gives a path.
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4965 $as_echo_n "checking for ld used by $CC... " >&6; }
4966 case $host in
4967 *-*-mingw*)
4968 # gcc leaves a trailing carriage return which upsets mingw
4969 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4970 *)
4971 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4972 esac
4973 case $ac_prog in
4974 # Accept absolute paths.
4975 [\\/]* | ?:[\\/]*)
4976 re_direlt='/[^/][^/]*/\.\./'
4977 # Canonicalize the pathname of ld
4978 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4979 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4980 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4981 done
4982 test -z "$LD" && LD="$ac_prog"
4983 ;;
4984 "")
4985 # If it fails, then pretend we aren't using GCC.
4986 ac_prog=ld
4987 ;;
4988 *)
4989 # If it is relative, then search for the first ld in PATH.
4990 with_gnu_ld=unknown
4991 ;;
4992 esac
4993 elif test "$with_gnu_ld" = yes; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4995 $as_echo_n "checking for GNU ld... " >&6; }
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4998 $as_echo_n "checking for non-GNU ld... " >&6; }
4999 fi
5000 if ${lt_cv_path_LD+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 if test -z "$LD"; then
5004 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5005 for ac_dir in $PATH; do
5006 IFS="$lt_save_ifs"
5007 test -z "$ac_dir" && ac_dir=.
5008 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5009 lt_cv_path_LD="$ac_dir/$ac_prog"
5010 # Check to see if the program is GNU ld. I'd rather use --version,
5011 # but apparently some variants of GNU ld only accept -v.
5012 # Break only if it was the GNU/non-GNU ld that we prefer.
5013 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5014 *GNU* | *'with BFD'*)
5015 test "$with_gnu_ld" != no && break
5016 ;;
5017 *)
5018 test "$with_gnu_ld" != yes && break
5019 ;;
5020 esac
5021 fi
5022 done
5023 IFS="$lt_save_ifs"
5024 else
5025 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5026 fi
5027 fi
5028
5029 LD="$lt_cv_path_LD"
5030 if test -n "$LD"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5032 $as_echo "$LD" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5039 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5040 if ${lt_cv_prog_gnu_ld+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5044 case `$LD -v 2>&1 </dev/null` in
5045 *GNU* | *'with BFD'*)
5046 lt_cv_prog_gnu_ld=yes
5047 ;;
5048 *)
5049 lt_cv_prog_gnu_ld=no
5050 ;;
5051 esac
5052 fi
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5054 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5055 with_gnu_ld=$lt_cv_prog_gnu_ld
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5066 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5067 if ${lt_cv_path_NM+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if test -n "$NM"; then
5071 # Let the user override the test.
5072 lt_cv_path_NM="$NM"
5073 else
5074 lt_nm_to_check="${ac_tool_prefix}nm"
5075 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5076 lt_nm_to_check="$lt_nm_to_check nm"
5077 fi
5078 for lt_tmp_nm in $lt_nm_to_check; do
5079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5080 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5081 IFS="$lt_save_ifs"
5082 test -z "$ac_dir" && ac_dir=.
5083 tmp_nm="$ac_dir/$lt_tmp_nm"
5084 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5085 # Check to see if the nm accepts a BSD-compat flag.
5086 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5087 # nm: unknown option "B" ignored
5088 # Tru64's nm complains that /dev/null is an invalid object file
5089 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5090 */dev/null* | *'Invalid file or object type'*)
5091 lt_cv_path_NM="$tmp_nm -B"
5092 break
5093 ;;
5094 *)
5095 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5096 */dev/null*)
5097 lt_cv_path_NM="$tmp_nm -p"
5098 break
5099 ;;
5100 *)
5101 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5102 continue # so that we can try to find one that supports BSD flags
5103 ;;
5104 esac
5105 ;;
5106 esac
5107 fi
5108 done
5109 IFS="$lt_save_ifs"
5110 done
5111 : ${lt_cv_path_NM=no}
5112 fi
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5115 $as_echo "$lt_cv_path_NM" >&6; }
5116 if test "$lt_cv_path_NM" != "no"; then
5117 NM="$lt_cv_path_NM"
5118 else
5119 # Didn't find any BSD compatible name lister, look for dumpbin.
5120 if test -n "$DUMPBIN"; then :
5121 # Let the user override the test.
5122 else
5123 if test -n "$ac_tool_prefix"; then
5124 for ac_prog in dumpbin "link -dump"
5125 do
5126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_DUMPBIN+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -n "$DUMPBIN"; then
5134 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147 done
5148 done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 DUMPBIN=$ac_cv_prog_DUMPBIN
5154 if test -n "$DUMPBIN"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5156 $as_echo "$DUMPBIN" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162
5163 test -n "$DUMPBIN" && break
5164 done
5165 fi
5166 if test -z "$DUMPBIN"; then
5167 ac_ct_DUMPBIN=$DUMPBIN
5168 for ac_prog in dumpbin "link -dump"
5169 do
5170 # Extract the first word of "$ac_prog", so it can be a program name with args.
5171 set dummy $ac_prog; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if test -n "$ac_ct_DUMPBIN"; then
5178 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5198 if test -n "$ac_ct_DUMPBIN"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5200 $as_echo "$ac_ct_DUMPBIN" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205
5206
5207 test -n "$ac_ct_DUMPBIN" && break
5208 done
5209
5210 if test "x$ac_ct_DUMPBIN" = x; then
5211 DUMPBIN=":"
5212 else
5213 case $cross_compiling:$ac_tool_warned in
5214 yes:)
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217 ac_tool_warned=yes ;;
5218 esac
5219 DUMPBIN=$ac_ct_DUMPBIN
5220 fi
5221 fi
5222
5223 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5224 *COFF*)
5225 DUMPBIN="$DUMPBIN -symbols"
5226 ;;
5227 *)
5228 DUMPBIN=:
5229 ;;
5230 esac
5231 fi
5232
5233 if test "$DUMPBIN" != ":"; then
5234 NM="$DUMPBIN"
5235 fi
5236 fi
5237 test -z "$NM" && NM=nm
5238
5239
5240
5241
5242
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5245 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5246 if ${lt_cv_nm_interface+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 lt_cv_nm_interface="BSD nm"
5250 echo "int some_variable = 0;" > conftest.$ac_ext
5251 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5252 (eval "$ac_compile" 2>conftest.err)
5253 cat conftest.err >&5
5254 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5255 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5256 cat conftest.err >&5
5257 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5258 cat conftest.out >&5
5259 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5260 lt_cv_nm_interface="MS dumpbin"
5261 fi
5262 rm -f conftest*
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5265 $as_echo "$lt_cv_nm_interface" >&6; }
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5268 $as_echo_n "checking whether ln -s works... " >&6; }
5269 LN_S=$as_ln_s
5270 if test "$LN_S" = "ln -s"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5272 $as_echo "yes" >&6; }
5273 else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5275 $as_echo "no, using $LN_S" >&6; }
5276 fi
5277
5278 # find the maximum length of command line arguments
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5280 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5281 if ${lt_cv_sys_max_cmd_len+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 i=0
5285 teststring="ABCD"
5286
5287 case $build_os in
5288 msdosdjgpp*)
5289 # On DJGPP, this test can blow up pretty badly due to problems in libc
5290 # (any single argument exceeding 2000 bytes causes a buffer overrun
5291 # during glob expansion). Even if it were fixed, the result of this
5292 # check would be larger than it should be.
5293 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5294 ;;
5295
5296 gnu*)
5297 # Under GNU Hurd, this test is not required because there is
5298 # no limit to the length of command line arguments.
5299 # Libtool will interpret -1 as no limit whatsoever
5300 lt_cv_sys_max_cmd_len=-1;
5301 ;;
5302
5303 cygwin* | mingw* | cegcc*)
5304 # On Win9x/ME, this test blows up -- it succeeds, but takes
5305 # about 5 minutes as the teststring grows exponentially.
5306 # Worse, since 9x/ME are not pre-emptively multitasking,
5307 # you end up with a "frozen" computer, even though with patience
5308 # the test eventually succeeds (with a max line length of 256k).
5309 # Instead, let's just punt: use the minimum linelength reported by
5310 # all of the supported platforms: 8192 (on NT/2K/XP).
5311 lt_cv_sys_max_cmd_len=8192;
5312 ;;
5313
5314 mint*)
5315 # On MiNT this can take a long time and run out of memory.
5316 lt_cv_sys_max_cmd_len=8192;
5317 ;;
5318
5319 amigaos*)
5320 # On AmigaOS with pdksh, this test takes hours, literally.
5321 # So we just punt and use a minimum line length of 8192.
5322 lt_cv_sys_max_cmd_len=8192;
5323 ;;
5324
5325 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5326 # This has been around since 386BSD, at least. Likely further.
5327 if test -x /sbin/sysctl; then
5328 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5329 elif test -x /usr/sbin/sysctl; then
5330 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5331 else
5332 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5333 fi
5334 # And add a safety zone
5335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5337 ;;
5338
5339 interix*)
5340 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5341 lt_cv_sys_max_cmd_len=196608
5342 ;;
5343
5344 osf*)
5345 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5346 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5347 # nice to cause kernel panics so lets avoid the loop below.
5348 # First set a reasonable default.
5349 lt_cv_sys_max_cmd_len=16384
5350 #
5351 if test -x /sbin/sysconfig; then
5352 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5353 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5354 esac
5355 fi
5356 ;;
5357 sco3.2v5*)
5358 lt_cv_sys_max_cmd_len=102400
5359 ;;
5360 sysv5* | sco5v6* | sysv4.2uw2*)
5361 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5362 if test -n "$kargmax"; then
5363 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5364 else
5365 lt_cv_sys_max_cmd_len=32768
5366 fi
5367 ;;
5368 *)
5369 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5370 if test -n "$lt_cv_sys_max_cmd_len"; then
5371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5373 else
5374 # Make teststring a little bigger before we do anything with it.
5375 # a 1K string should be a reasonable start.
5376 for i in 1 2 3 4 5 6 7 8 ; do
5377 teststring=$teststring$teststring
5378 done
5379 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5380 # If test is not a shell built-in, we'll probably end up computing a
5381 # maximum length that is only half of the actual maximum length, but
5382 # we can't tell.
5383 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5384 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5385 test $i != 17 # 1/2 MB should be enough
5386 do
5387 i=`expr $i + 1`
5388 teststring=$teststring$teststring
5389 done
5390 # Only check the string length outside the loop.
5391 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5392 teststring=
5393 # Add a significant safety factor because C++ compilers can tack on
5394 # massive amounts of additional arguments before passing them to the
5395 # linker. It appears as though 1/2 is a usable value.
5396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5397 fi
5398 ;;
5399 esac
5400
5401 fi
5402
5403 if test -n $lt_cv_sys_max_cmd_len ; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5405 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5408 $as_echo "none" >&6; }
5409 fi
5410 max_cmd_len=$lt_cv_sys_max_cmd_len
5411
5412
5413
5414
5415
5416
5417 : ${CP="cp -f"}
5418 : ${MV="mv -f"}
5419 : ${RM="rm -f"}
5420
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5422 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5423 # Try some XSI features
5424 xsi_shell=no
5425 ( _lt_dummy="a/b/c"
5426 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5427 = c,a/b,b/c, \
5428 && eval 'test $(( 1 + 1 )) -eq 2 \
5429 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5430 && xsi_shell=yes
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5432 $as_echo "$xsi_shell" >&6; }
5433
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5436 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5437 lt_shell_append=no
5438 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5439 >/dev/null 2>&1 \
5440 && lt_shell_append=yes
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5442 $as_echo "$lt_shell_append" >&6; }
5443
5444
5445 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5446 lt_unset=unset
5447 else
5448 lt_unset=false
5449 fi
5450
5451
5452
5453
5454
5455 # test EBCDIC or ASCII
5456 case `echo X|tr X '\101'` in
5457 A) # ASCII based system
5458 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5459 lt_SP2NL='tr \040 \012'
5460 lt_NL2SP='tr \015\012 \040\040'
5461 ;;
5462 *) # EBCDIC based system
5463 lt_SP2NL='tr \100 \n'
5464 lt_NL2SP='tr \r\n \100\100'
5465 ;;
5466 esac
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5477 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5478 if ${lt_cv_to_host_file_cmd+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 case $host in
5482 *-*-mingw* )
5483 case $build in
5484 *-*-mingw* ) # actually msys
5485 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5486 ;;
5487 *-*-cygwin* )
5488 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5489 ;;
5490 * ) # otherwise, assume *nix
5491 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5492 ;;
5493 esac
5494 ;;
5495 *-*-cygwin* )
5496 case $build in
5497 *-*-mingw* ) # actually msys
5498 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5499 ;;
5500 *-*-cygwin* )
5501 lt_cv_to_host_file_cmd=func_convert_file_noop
5502 ;;
5503 * ) # otherwise, assume *nix
5504 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5505 ;;
5506 esac
5507 ;;
5508 * ) # unhandled hosts (and "normal" native builds)
5509 lt_cv_to_host_file_cmd=func_convert_file_noop
5510 ;;
5511 esac
5512
5513 fi
5514
5515 to_host_file_cmd=$lt_cv_to_host_file_cmd
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5517 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5518
5519
5520
5521
5522
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5524 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5525 if ${lt_cv_to_tool_file_cmd+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 #assume ordinary cross tools, or native build.
5529 lt_cv_to_tool_file_cmd=func_convert_file_noop
5530 case $host in
5531 *-*-mingw* )
5532 case $build in
5533 *-*-mingw* ) # actually msys
5534 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5535 ;;
5536 esac
5537 ;;
5538 esac
5539
5540 fi
5541
5542 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5544 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5545
5546
5547
5548
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5551 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5552 if ${lt_cv_ld_reload_flag+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 lt_cv_ld_reload_flag='-r'
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5558 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5559 reload_flag=$lt_cv_ld_reload_flag
5560 case $reload_flag in
5561 "" | " "*) ;;
5562 *) reload_flag=" $reload_flag" ;;
5563 esac
5564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5565 case $host_os in
5566 cygwin* | mingw* | pw32* | cegcc*)
5567 if test "$GCC" != yes; then
5568 reload_cmds=false
5569 fi
5570 ;;
5571 darwin*)
5572 if test "$GCC" = yes; then
5573 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5574 else
5575 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5576 fi
5577 ;;
5578 esac
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588 if test -n "$ac_tool_prefix"; then
5589 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5590 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_prog_OBJDUMP+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if test -n "$OBJDUMP"; then
5597 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5609 fi
5610 done
5611 done
5612 IFS=$as_save_IFS
5613
5614 fi
5615 fi
5616 OBJDUMP=$ac_cv_prog_OBJDUMP
5617 if test -n "$OBJDUMP"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5619 $as_echo "$OBJDUMP" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 fi
5624
5625
5626 fi
5627 if test -z "$ac_cv_prog_OBJDUMP"; then
5628 ac_ct_OBJDUMP=$OBJDUMP
5629 # Extract the first word of "objdump", so it can be a program name with args.
5630 set dummy objdump; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$ac_ct_OBJDUMP"; then
5637 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5657 if test -n "$ac_ct_OBJDUMP"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5659 $as_echo "$ac_ct_OBJDUMP" >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665 if test "x$ac_ct_OBJDUMP" = x; then
5666 OBJDUMP="false"
5667 else
5668 case $cross_compiling:$ac_tool_warned in
5669 yes:)
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5672 ac_tool_warned=yes ;;
5673 esac
5674 OBJDUMP=$ac_ct_OBJDUMP
5675 fi
5676 else
5677 OBJDUMP="$ac_cv_prog_OBJDUMP"
5678 fi
5679
5680 test -z "$OBJDUMP" && OBJDUMP=objdump
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5691 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5692 if ${lt_cv_deplibs_check_method+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 lt_cv_file_magic_cmd='$MAGIC_CMD'
5696 lt_cv_file_magic_test_file=
5697 lt_cv_deplibs_check_method='unknown'
5698 # Need to set the preceding variable on all platforms that support
5699 # interlibrary dependencies.
5700 # 'none' -- dependencies not supported.
5701 # `unknown' -- same as none, but documents that we really don't know.
5702 # 'pass_all' -- all dependencies passed with no checks.
5703 # 'test_compile' -- check by making test program.
5704 # 'file_magic [[regex]]' -- check by looking for files in library path
5705 # which responds to the $file_magic_cmd with a given extended regex.
5706 # If you have `file' or equivalent on your system and you're not sure
5707 # whether `pass_all' will *always* work, you probably want this one.
5708
5709 case $host_os in
5710 aix[4-9]*)
5711 lt_cv_deplibs_check_method=pass_all
5712 ;;
5713
5714 beos*)
5715 lt_cv_deplibs_check_method=pass_all
5716 ;;
5717
5718 bsdi[45]*)
5719 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5720 lt_cv_file_magic_cmd='/usr/bin/file -L'
5721 lt_cv_file_magic_test_file=/shlib/libc.so
5722 ;;
5723
5724 cygwin*)
5725 # func_win32_libid is a shell function defined in ltmain.sh
5726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5727 lt_cv_file_magic_cmd='func_win32_libid'
5728 ;;
5729
5730 mingw* | pw32*)
5731 # Base MSYS/MinGW do not provide the 'file' command needed by
5732 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5733 # unless we find 'file', for example because we are cross-compiling.
5734 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5735 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5736 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5737 lt_cv_file_magic_cmd='func_win32_libid'
5738 else
5739 # Keep this pattern in sync with the one in func_win32_libid.
5740 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5741 lt_cv_file_magic_cmd='$OBJDUMP -f'
5742 fi
5743 ;;
5744
5745 cegcc*)
5746 # use the weaker test based on 'objdump'. See mingw*.
5747 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5748 lt_cv_file_magic_cmd='$OBJDUMP -f'
5749 ;;
5750
5751 darwin* | rhapsody*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755 freebsd* | dragonfly*)
5756 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5757 case $host_cpu in
5758 i*86 )
5759 # Not sure whether the presence of OpenBSD here was a mistake.
5760 # Let's accept both of them until this is cleared up.
5761 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5762 lt_cv_file_magic_cmd=/usr/bin/file
5763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5764 ;;
5765 esac
5766 else
5767 lt_cv_deplibs_check_method=pass_all
5768 fi
5769 ;;
5770
5771 gnu*)
5772 lt_cv_deplibs_check_method=pass_all
5773 ;;
5774
5775 haiku*)
5776 lt_cv_deplibs_check_method=pass_all
5777 ;;
5778
5779 hpux10.20* | hpux11*)
5780 lt_cv_file_magic_cmd=/usr/bin/file
5781 case $host_cpu in
5782 ia64*)
5783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5784 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5785 ;;
5786 hppa*64*)
5787 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]'
5788 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5789 ;;
5790 *)
5791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5792 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5793 ;;
5794 esac
5795 ;;
5796
5797 interix[3-9]*)
5798 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5800 ;;
5801
5802 irix5* | irix6* | nonstopux*)
5803 case $LD in
5804 *-32|*"-32 ") libmagic=32-bit;;
5805 *-n32|*"-n32 ") libmagic=N32;;
5806 *-64|*"-64 ") libmagic=64-bit;;
5807 *) libmagic=never-match;;
5808 esac
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811
5812 # This must be Linux ELF.
5813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5814 lt_cv_deplibs_check_method=pass_all
5815 ;;
5816
5817 netbsd*)
5818 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5820 else
5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5822 fi
5823 ;;
5824
5825 newos6*)
5826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5827 lt_cv_file_magic_cmd=/usr/bin/file
5828 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5829 ;;
5830
5831 *nto* | *qnx*)
5832 lt_cv_deplibs_check_method=pass_all
5833 ;;
5834
5835 openbsd*)
5836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5838 else
5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5840 fi
5841 ;;
5842
5843 osf3* | osf4* | osf5*)
5844 lt_cv_deplibs_check_method=pass_all
5845 ;;
5846
5847 rdos*)
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
5850
5851 solaris*)
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
5854
5855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858
5859 sysv4 | sysv4.3*)
5860 case $host_vendor in
5861 motorola)
5862 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]'
5863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5864 ;;
5865 ncr)
5866 lt_cv_deplibs_check_method=pass_all
5867 ;;
5868 sequent)
5869 lt_cv_file_magic_cmd='/bin/file'
5870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5871 ;;
5872 sni)
5873 lt_cv_file_magic_cmd='/bin/file'
5874 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5875 lt_cv_file_magic_test_file=/lib/libc.so
5876 ;;
5877 siemens)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880 pc)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883 esac
5884 ;;
5885
5886 tpf*)
5887 lt_cv_deplibs_check_method=pass_all
5888 ;;
5889 esac
5890
5891 fi
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5893 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5894
5895 file_magic_glob=
5896 want_nocaseglob=no
5897 if test "$build" = "$host"; then
5898 case $host_os in
5899 mingw* | pw32*)
5900 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5901 want_nocaseglob=yes
5902 else
5903 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5904 fi
5905 ;;
5906 esac
5907 fi
5908
5909 file_magic_cmd=$lt_cv_file_magic_cmd
5910 deplibs_check_method=$lt_cv_deplibs_check_method
5911 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934 if test -n "$ac_tool_prefix"; then
5935 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5936 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if ${ac_cv_prog_DLLTOOL+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if test -n "$DLLTOOL"; then
5943 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956 done
5957 done
5958 IFS=$as_save_IFS
5959
5960 fi
5961 fi
5962 DLLTOOL=$ac_cv_prog_DLLTOOL
5963 if test -n "$DLLTOOL"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5965 $as_echo "$DLLTOOL" >&6; }
5966 else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5969 fi
5970
5971
5972 fi
5973 if test -z "$ac_cv_prog_DLLTOOL"; then
5974 ac_ct_DLLTOOL=$DLLTOOL
5975 # Extract the first word of "dlltool", so it can be a program name with args.
5976 set dummy dlltool; ac_word=$2
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978 $as_echo_n "checking for $ac_word... " >&6; }
5979 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 if test -n "$ac_ct_DLLTOOL"; then
5983 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996 done
5997 done
5998 IFS=$as_save_IFS
5999
6000 fi
6001 fi
6002 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6003 if test -n "$ac_ct_DLLTOOL"; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6005 $as_echo "$ac_ct_DLLTOOL" >&6; }
6006 else
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 $as_echo "no" >&6; }
6009 fi
6010
6011 if test "x$ac_ct_DLLTOOL" = x; then
6012 DLLTOOL="false"
6013 else
6014 case $cross_compiling:$ac_tool_warned in
6015 yes:)
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6018 ac_tool_warned=yes ;;
6019 esac
6020 DLLTOOL=$ac_ct_DLLTOOL
6021 fi
6022 else
6023 DLLTOOL="$ac_cv_prog_DLLTOOL"
6024 fi
6025
6026 test -z "$DLLTOOL" && DLLTOOL=dlltool
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6038 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6039 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 lt_cv_sharedlib_from_linklib_cmd='unknown'
6043
6044 case $host_os in
6045 cygwin* | mingw* | pw32* | cegcc*)
6046 # two different shell functions defined in ltmain.sh
6047 # decide which to use based on capabilities of $DLLTOOL
6048 case `$DLLTOOL --help 2>&1` in
6049 *--identify-strict*)
6050 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6051 ;;
6052 *)
6053 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6054 ;;
6055 esac
6056 ;;
6057 *)
6058 # fallback: assume linklib IS sharedlib
6059 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6060 ;;
6061 esac
6062
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6065 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6066 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6067 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6068
6069
6070
6071
6072
6073
6074
6075 if test -n "$ac_tool_prefix"; then
6076 for ac_prog in ar
6077 do
6078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_AR+:} false; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 if test -n "$AR"; then
6086 ac_cv_prog_AR="$AR" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 AR=$ac_cv_prog_AR
6106 if test -n "$AR"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6108 $as_echo "$AR" >&6; }
6109 else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114
6115 test -n "$AR" && break
6116 done
6117 fi
6118 if test -z "$AR"; then
6119 ac_ct_AR=$AR
6120 for ac_prog in ar
6121 do
6122 # Extract the first word of "$ac_prog", so it can be a program name with args.
6123 set dummy $ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 if test -n "$ac_ct_AR"; then
6130 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135 IFS=$as_save_IFS
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139 ac_cv_prog_ac_ct_AR="$ac_prog"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 break 2
6142 fi
6143 done
6144 done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6150 if test -n "$ac_ct_AR"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6152 $as_echo "$ac_ct_AR" >&6; }
6153 else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158
6159 test -n "$ac_ct_AR" && break
6160 done
6161
6162 if test "x$ac_ct_AR" = x; then
6163 AR="false"
6164 else
6165 case $cross_compiling:$ac_tool_warned in
6166 yes:)
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6170 esac
6171 AR=$ac_ct_AR
6172 fi
6173 fi
6174
6175 : ${AR=ar}
6176 : ${AR_FLAGS=cru}
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6189 $as_echo_n "checking for archiver @FILE support... " >&6; }
6190 if ${lt_cv_ar_at_file+:} false; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 lt_cv_ar_at_file=no
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196
6197 int
6198 main ()
6199 {
6200
6201 ;
6202 return 0;
6203 }
6204 _ACEOF
6205 if ac_fn_c_try_compile "$LINENO"; then :
6206 echo conftest.$ac_objext > conftest.lst
6207 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6209 (eval $lt_ar_try) 2>&5
6210 ac_status=$?
6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; }
6213 if test "$ac_status" -eq 0; then
6214 # Ensure the archiver fails upon bogus file names.
6215 rm -f conftest.$ac_objext libconftest.a
6216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6217 (eval $lt_ar_try) 2>&5
6218 ac_status=$?
6219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220 test $ac_status = 0; }
6221 if test "$ac_status" -ne 0; then
6222 lt_cv_ar_at_file=@
6223 fi
6224 fi
6225 rm -f conftest.* libconftest.a
6226
6227 fi
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6232 $as_echo "$lt_cv_ar_at_file" >&6; }
6233
6234 if test "x$lt_cv_ar_at_file" = xno; then
6235 archiver_list_spec=
6236 else
6237 archiver_list_spec=$lt_cv_ar_at_file
6238 fi
6239
6240
6241
6242
6243
6244
6245
6246 if test -n "$ac_tool_prefix"; then
6247 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6248 set dummy ${ac_tool_prefix}strip; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if ${ac_cv_prog_STRIP+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 if test -n "$STRIP"; then
6255 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 STRIP=$ac_cv_prog_STRIP
6275 if test -n "$STRIP"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6277 $as_echo "$STRIP" >&6; }
6278 else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282
6283
6284 fi
6285 if test -z "$ac_cv_prog_STRIP"; then
6286 ac_ct_STRIP=$STRIP
6287 # Extract the first word of "strip", so it can be a program name with args.
6288 set dummy strip; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$ac_ct_STRIP"; then
6295 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_ac_ct_STRIP="strip"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6315 if test -n "$ac_ct_STRIP"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6317 $as_echo "$ac_ct_STRIP" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323 if test "x$ac_ct_STRIP" = x; then
6324 STRIP=":"
6325 else
6326 case $cross_compiling:$ac_tool_warned in
6327 yes:)
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6330 ac_tool_warned=yes ;;
6331 esac
6332 STRIP=$ac_ct_STRIP
6333 fi
6334 else
6335 STRIP="$ac_cv_prog_STRIP"
6336 fi
6337
6338 test -z "$STRIP" && STRIP=:
6339
6340
6341
6342
6343
6344
6345 if test -n "$ac_tool_prefix"; then
6346 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_RANLIB+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$RANLIB"; then
6354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 RANLIB=$ac_cv_prog_RANLIB
6374 if test -n "$RANLIB"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6376 $as_echo "$RANLIB" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382
6383 fi
6384 if test -z "$ac_cv_prog_RANLIB"; then
6385 ac_ct_RANLIB=$RANLIB
6386 # Extract the first word of "ranlib", so it can be a program name with args.
6387 set dummy ranlib; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 if test -n "$ac_ct_RANLIB"; then
6394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_ac_ct_RANLIB="ranlib"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6414 if test -n "$ac_ct_RANLIB"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6416 $as_echo "$ac_ct_RANLIB" >&6; }
6417 else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422 if test "x$ac_ct_RANLIB" = x; then
6423 RANLIB=":"
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431 RANLIB=$ac_ct_RANLIB
6432 fi
6433 else
6434 RANLIB="$ac_cv_prog_RANLIB"
6435 fi
6436
6437 test -z "$RANLIB" && RANLIB=:
6438
6439
6440
6441
6442
6443
6444 # Determine commands to create old-style static archives.
6445 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6446 old_postinstall_cmds='chmod 644 $oldlib'
6447 old_postuninstall_cmds=
6448
6449 if test -n "$RANLIB"; then
6450 case $host_os in
6451 openbsd*)
6452 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6453 ;;
6454 *)
6455 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6456 ;;
6457 esac
6458 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6459 fi
6460
6461 case $host_os in
6462 darwin*)
6463 lock_old_archive_extraction=yes ;;
6464 *)
6465 lock_old_archive_extraction=no ;;
6466 esac
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506 # If no C compiler was specified, use CC.
6507 LTCC=${LTCC-"$CC"}
6508
6509 # If no C compiler flags were specified, use CFLAGS.
6510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6511
6512 # Allow CC to be a program name with arguments.
6513 compiler=$CC
6514
6515
6516 # Check for command to grab the raw symbol name followed by C symbol from nm.
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6518 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6519 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522
6523 # These are sane defaults that work on at least a few old systems.
6524 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6525
6526 # Character class describing NM global symbol codes.
6527 symcode='[BCDEGRST]'
6528
6529 # Regexp to match symbols that can be accessed directly from C.
6530 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6531
6532 # Define system-specific variables.
6533 case $host_os in
6534 aix*)
6535 symcode='[BCDT]'
6536 ;;
6537 cygwin* | mingw* | pw32* | cegcc*)
6538 symcode='[ABCDGISTW]'
6539 ;;
6540 hpux*)
6541 if test "$host_cpu" = ia64; then
6542 symcode='[ABCDEGRST]'
6543 fi
6544 ;;
6545 irix* | nonstopux*)
6546 symcode='[BCDEGRST]'
6547 ;;
6548 osf*)
6549 symcode='[BCDEGQRST]'
6550 ;;
6551 solaris*)
6552 symcode='[BDRT]'
6553 ;;
6554 sco3.2v5*)
6555 symcode='[DT]'
6556 ;;
6557 sysv4.2uw2*)
6558 symcode='[DT]'
6559 ;;
6560 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6561 symcode='[ABDT]'
6562 ;;
6563 sysv4)
6564 symcode='[DFNSTU]'
6565 ;;
6566 esac
6567
6568 # If we're using GNU nm, then use its standard symbol codes.
6569 case `$NM -V 2>&1` in
6570 *GNU* | *'with BFD'*)
6571 symcode='[ABCDGIRSTW]' ;;
6572 esac
6573
6574 # Transform an extracted symbol line into a proper C declaration.
6575 # Some systems (esp. on ia64) link data and code symbols differently,
6576 # so use this general approach.
6577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6578
6579 # Transform an extracted symbol line into symbol name and symbol address
6580 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6581 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'"
6582
6583 # Handle CRLF in mingw tool chain
6584 opt_cr=
6585 case $build_os in
6586 mingw*)
6587 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6588 ;;
6589 esac
6590
6591 # Try without a prefix underscore, then with it.
6592 for ac_symprfx in "" "_"; do
6593
6594 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6595 symxfrm="\\1 $ac_symprfx\\2 \\2"
6596
6597 # Write the raw and C identifiers.
6598 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6599 # Fake it for dumpbin and say T for any non-static function
6600 # and D for any global variable.
6601 # Also find C++ and __fastcall symbols from MSVC++,
6602 # which start with @ or ?.
6603 lt_cv_sys_global_symbol_pipe="$AWK '"\
6604 " {last_section=section; section=\$ 3};"\
6605 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6606 " \$ 0!~/External *\|/{next};"\
6607 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6608 " {if(hide[section]) next};"\
6609 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6610 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6611 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6612 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6613 " ' prfx=^$ac_symprfx"
6614 else
6615 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6616 fi
6617 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6618
6619 # Check to see that the pipe works correctly.
6620 pipe_works=no
6621
6622 rm -f conftest*
6623 cat > conftest.$ac_ext <<_LT_EOF
6624 #ifdef __cplusplus
6625 extern "C" {
6626 #endif
6627 char nm_test_var;
6628 void nm_test_func(void);
6629 void nm_test_func(void){}
6630 #ifdef __cplusplus
6631 }
6632 #endif
6633 int main(){nm_test_var='a';nm_test_func();return(0);}
6634 _LT_EOF
6635
6636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6637 (eval $ac_compile) 2>&5
6638 ac_status=$?
6639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640 test $ac_status = 0; }; then
6641 # Now try to grab the symbols.
6642 nlist=conftest.nm
6643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6644 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6645 ac_status=$?
6646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6647 test $ac_status = 0; } && test -s "$nlist"; then
6648 # Try sorting and uniquifying the output.
6649 if sort "$nlist" | uniq > "$nlist"T; then
6650 mv -f "$nlist"T "$nlist"
6651 else
6652 rm -f "$nlist"T
6653 fi
6654
6655 # Make sure that we snagged all the symbols we need.
6656 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6657 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6658 cat <<_LT_EOF > conftest.$ac_ext
6659 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6660 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6661 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6662 relocations are performed -- see ld's documentation on pseudo-relocs. */
6663 # define LT_DLSYM_CONST
6664 #elif defined(__osf__)
6665 /* This system does not cope well with relocations in const data. */
6666 # define LT_DLSYM_CONST
6667 #else
6668 # define LT_DLSYM_CONST const
6669 #endif
6670
6671 #ifdef __cplusplus
6672 extern "C" {
6673 #endif
6674
6675 _LT_EOF
6676 # Now generate the symbol file.
6677 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6678
6679 cat <<_LT_EOF >> conftest.$ac_ext
6680
6681 /* The mapping between symbol names and symbols. */
6682 LT_DLSYM_CONST struct {
6683 const char *name;
6684 void *address;
6685 }
6686 lt__PROGRAM__LTX_preloaded_symbols[] =
6687 {
6688 { "@PROGRAM@", (void *) 0 },
6689 _LT_EOF
6690 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6691 cat <<\_LT_EOF >> conftest.$ac_ext
6692 {0, (void *) 0}
6693 };
6694
6695 /* This works around a problem in FreeBSD linker */
6696 #ifdef FREEBSD_WORKAROUND
6697 static const void *lt_preloaded_setup() {
6698 return lt__PROGRAM__LTX_preloaded_symbols;
6699 }
6700 #endif
6701
6702 #ifdef __cplusplus
6703 }
6704 #endif
6705 _LT_EOF
6706 # Now try linking the two files.
6707 mv conftest.$ac_objext conftstm.$ac_objext
6708 lt_globsym_save_LIBS=$LIBS
6709 lt_globsym_save_CFLAGS=$CFLAGS
6710 LIBS="conftstm.$ac_objext"
6711 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6713 (eval $ac_link) 2>&5
6714 ac_status=$?
6715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6716 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6717 pipe_works=yes
6718 fi
6719 LIBS=$lt_globsym_save_LIBS
6720 CFLAGS=$lt_globsym_save_CFLAGS
6721 else
6722 echo "cannot find nm_test_func in $nlist" >&5
6723 fi
6724 else
6725 echo "cannot find nm_test_var in $nlist" >&5
6726 fi
6727 else
6728 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6729 fi
6730 else
6731 echo "$progname: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 fi
6734 rm -rf conftest* conftst*
6735
6736 # Do not use the global_symbol_pipe unless it works.
6737 if test "$pipe_works" = yes; then
6738 break
6739 else
6740 lt_cv_sys_global_symbol_pipe=
6741 fi
6742 done
6743
6744 fi
6745
6746 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6747 lt_cv_sys_global_symbol_to_cdecl=
6748 fi
6749 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6751 $as_echo "failed" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6754 $as_echo "ok" >&6; }
6755 fi
6756
6757 # Response file support.
6758 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6759 nm_file_list_spec='@'
6760 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6761 nm_file_list_spec='@'
6762 fi
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6791 $as_echo_n "checking for sysroot... " >&6; }
6792
6793 # Check whether --with-sysroot was given.
6794 if test "${with_sysroot+set}" = set; then :
6795 withval=$with_sysroot;
6796 else
6797 with_sysroot=no
6798 fi
6799
6800
6801 lt_sysroot=
6802 case ${with_sysroot} in #(
6803 yes)
6804 if test "$GCC" = yes; then
6805 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6806 fi
6807 ;; #(
6808 /*)
6809 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6810 ;; #(
6811 no|'')
6812 ;; #(
6813 *)
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6815 $as_echo "${with_sysroot}" >&6; }
6816 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6817 ;;
6818 esac
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6821 $as_echo "${lt_sysroot:-no}" >&6; }
6822
6823
6824
6825
6826
6827 # Check whether --enable-libtool-lock was given.
6828 if test "${enable_libtool_lock+set}" = set; then :
6829 enableval=$enable_libtool_lock;
6830 fi
6831
6832 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6833
6834 # Some flags need to be propagated to the compiler or linker for good
6835 # libtool support.
6836 case $host in
6837 ia64-*-hpux*)
6838 # Find out which ABI we are using.
6839 echo 'int i;' > conftest.$ac_ext
6840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841 (eval $ac_compile) 2>&5
6842 ac_status=$?
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }; then
6845 case `/usr/bin/file conftest.$ac_objext` in
6846 *ELF-32*)
6847 HPUX_IA64_MODE="32"
6848 ;;
6849 *ELF-64*)
6850 HPUX_IA64_MODE="64"
6851 ;;
6852 esac
6853 fi
6854 rm -rf conftest*
6855 ;;
6856 *-*-irix6*)
6857 # Find out which ABI we are using.
6858 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6860 (eval $ac_compile) 2>&5
6861 ac_status=$?
6862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6863 test $ac_status = 0; }; then
6864 if test "$lt_cv_prog_gnu_ld" = yes; then
6865 case `/usr/bin/file conftest.$ac_objext` in
6866 *32-bit*)
6867 LD="${LD-ld} -melf32bsmip"
6868 ;;
6869 *N32*)
6870 LD="${LD-ld} -melf32bmipn32"
6871 ;;
6872 *64-bit*)
6873 LD="${LD-ld} -melf64bmip"
6874 ;;
6875 esac
6876 else
6877 case `/usr/bin/file conftest.$ac_objext` in
6878 *32-bit*)
6879 LD="${LD-ld} -32"
6880 ;;
6881 *N32*)
6882 LD="${LD-ld} -n32"
6883 ;;
6884 *64-bit*)
6885 LD="${LD-ld} -64"
6886 ;;
6887 esac
6888 fi
6889 fi
6890 rm -rf conftest*
6891 ;;
6892
6893 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6894 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6895 # Find out which ABI we are using.
6896 echo 'int i;' > conftest.$ac_ext
6897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6898 (eval $ac_compile) 2>&5
6899 ac_status=$?
6900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6901 test $ac_status = 0; }; then
6902 case `/usr/bin/file conftest.o` in
6903 *32-bit*)
6904 case $host in
6905 x86_64-*kfreebsd*-gnu)
6906 LD="${LD-ld} -m elf_i386_fbsd"
6907 ;;
6908 x86_64-*linux*)
6909 LD="${LD-ld} -m elf_i386"
6910 ;;
6911 ppc64-*linux*|powerpc64-*linux*)
6912 LD="${LD-ld} -m elf32ppclinux"
6913 ;;
6914 s390x-*linux*)
6915 LD="${LD-ld} -m elf_s390"
6916 ;;
6917 sparc64-*linux*)
6918 LD="${LD-ld} -m elf32_sparc"
6919 ;;
6920 esac
6921 ;;
6922 *64-bit*)
6923 case $host in
6924 x86_64-*kfreebsd*-gnu)
6925 LD="${LD-ld} -m elf_x86_64_fbsd"
6926 ;;
6927 x86_64-*linux*)
6928 LD="${LD-ld} -m elf_x86_64"
6929 ;;
6930 ppc*-*linux*|powerpc*-*linux*)
6931 LD="${LD-ld} -m elf64ppc"
6932 ;;
6933 s390*-*linux*|s390*-*tpf*)
6934 LD="${LD-ld} -m elf64_s390"
6935 ;;
6936 sparc*-*linux*)
6937 LD="${LD-ld} -m elf64_sparc"
6938 ;;
6939 esac
6940 ;;
6941 esac
6942 fi
6943 rm -rf conftest*
6944 ;;
6945
6946 *-*-sco3.2v5*)
6947 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6948 SAVE_CFLAGS="$CFLAGS"
6949 CFLAGS="$CFLAGS -belf"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6951 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6952 if ${lt_cv_cc_needs_belf+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 ac_ext=c
6956 ac_cpp='$CPP $CPPFLAGS'
6957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6960
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963
6964 int
6965 main ()
6966 {
6967
6968 ;
6969 return 0;
6970 }
6971 _ACEOF
6972 if ac_fn_c_try_link "$LINENO"; then :
6973 lt_cv_cc_needs_belf=yes
6974 else
6975 lt_cv_cc_needs_belf=no
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
6979 ac_ext=c
6980 ac_cpp='$CPP $CPPFLAGS'
6981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6984
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6987 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6988 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6989 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6990 CFLAGS="$SAVE_CFLAGS"
6991 fi
6992 ;;
6993 sparc*-*solaris*)
6994 # Find out which ABI we are using.
6995 echo 'int i;' > conftest.$ac_ext
6996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6997 (eval $ac_compile) 2>&5
6998 ac_status=$?
6999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7000 test $ac_status = 0; }; then
7001 case `/usr/bin/file conftest.o` in
7002 *64-bit*)
7003 case $lt_cv_prog_gnu_ld in
7004 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7005 *)
7006 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7007 LD="${LD-ld} -64"
7008 fi
7009 ;;
7010 esac
7011 ;;
7012 esac
7013 fi
7014 rm -rf conftest*
7015 ;;
7016 esac
7017
7018 need_locks="$enable_libtool_lock"
7019
7020 if test -n "$ac_tool_prefix"; then
7021 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7022 set dummy ${ac_tool_prefix}mt; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 if test -n "$MANIFEST_TOOL"; then
7029 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7041 fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7049 if test -n "$MANIFEST_TOOL"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7051 $as_echo "$MANIFEST_TOOL" >&6; }
7052 else
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7055 fi
7056
7057
7058 fi
7059 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7060 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7061 # Extract the first word of "mt", so it can be a program name with args.
7062 set dummy mt; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 if test -n "$ac_ct_MANIFEST_TOOL"; then
7069 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7089 if test -n "$ac_ct_MANIFEST_TOOL"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7091 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7092 else
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096
7097 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7098 MANIFEST_TOOL=":"
7099 else
7100 case $cross_compiling:$ac_tool_warned in
7101 yes:)
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7104 ac_tool_warned=yes ;;
7105 esac
7106 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7107 fi
7108 else
7109 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7110 fi
7111
7112 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7114 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7115 if ${lt_cv_path_mainfest_tool+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 lt_cv_path_mainfest_tool=no
7119 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7120 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7121 cat conftest.err >&5
7122 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7123 lt_cv_path_mainfest_tool=yes
7124 fi
7125 rm -f conftest*
7126 fi
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7128 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7129 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7130 MANIFEST_TOOL=:
7131 fi
7132
7133
7134
7135
7136
7137
7138 case $host_os in
7139 rhapsody* | darwin*)
7140 if test -n "$ac_tool_prefix"; then
7141 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 if test -n "$DSYMUTIL"; then
7149 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7158 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 break 2
7161 fi
7162 done
7163 done
7164 IFS=$as_save_IFS
7165
7166 fi
7167 fi
7168 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7169 if test -n "$DSYMUTIL"; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7171 $as_echo "$DSYMUTIL" >&6; }
7172 else
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7175 fi
7176
7177
7178 fi
7179 if test -z "$ac_cv_prog_DSYMUTIL"; then
7180 ac_ct_DSYMUTIL=$DSYMUTIL
7181 # Extract the first word of "dsymutil", so it can be a program name with args.
7182 set dummy dsymutil; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 if test -n "$ac_ct_DSYMUTIL"; then
7189 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7201 fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7209 if test -n "$ac_ct_DSYMUTIL"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7211 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7212 else
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7215 fi
7216
7217 if test "x$ac_ct_DSYMUTIL" = x; then
7218 DSYMUTIL=":"
7219 else
7220 case $cross_compiling:$ac_tool_warned in
7221 yes:)
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7225 esac
7226 DSYMUTIL=$ac_ct_DSYMUTIL
7227 fi
7228 else
7229 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7230 fi
7231
7232 if test -n "$ac_tool_prefix"; then
7233 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if ${ac_cv_prog_NMEDIT+:} false; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 if test -n "$NMEDIT"; then
7241 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7253 fi
7254 done
7255 done
7256 IFS=$as_save_IFS
7257
7258 fi
7259 fi
7260 NMEDIT=$ac_cv_prog_NMEDIT
7261 if test -n "$NMEDIT"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7263 $as_echo "$NMEDIT" >&6; }
7264 else
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7267 fi
7268
7269
7270 fi
7271 if test -z "$ac_cv_prog_NMEDIT"; then
7272 ac_ct_NMEDIT=$NMEDIT
7273 # Extract the first word of "nmedit", so it can be a program name with args.
7274 set dummy nmedit; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 if test -n "$ac_ct_NMEDIT"; then
7281 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298 fi
7299 fi
7300 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7301 if test -n "$ac_ct_NMEDIT"; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7303 $as_echo "$ac_ct_NMEDIT" >&6; }
7304 else
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7307 fi
7308
7309 if test "x$ac_ct_NMEDIT" = x; then
7310 NMEDIT=":"
7311 else
7312 case $cross_compiling:$ac_tool_warned in
7313 yes:)
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7317 esac
7318 NMEDIT=$ac_ct_NMEDIT
7319 fi
7320 else
7321 NMEDIT="$ac_cv_prog_NMEDIT"
7322 fi
7323
7324 if test -n "$ac_tool_prefix"; then
7325 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7326 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_prog_LIPO+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 if test -n "$LIPO"; then
7333 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7345 fi
7346 done
7347 done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 LIPO=$ac_cv_prog_LIPO
7353 if test -n "$LIPO"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7355 $as_echo "$LIPO" >&6; }
7356 else
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7359 fi
7360
7361
7362 fi
7363 if test -z "$ac_cv_prog_LIPO"; then
7364 ac_ct_LIPO=$LIPO
7365 # Extract the first word of "lipo", so it can be a program name with args.
7366 set dummy lipo; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 if test -n "$ac_ct_LIPO"; then
7373 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382 ac_cv_prog_ac_ct_LIPO="lipo"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 break 2
7385 fi
7386 done
7387 done
7388 IFS=$as_save_IFS
7389
7390 fi
7391 fi
7392 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7393 if test -n "$ac_ct_LIPO"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7395 $as_echo "$ac_ct_LIPO" >&6; }
7396 else
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7399 fi
7400
7401 if test "x$ac_ct_LIPO" = x; then
7402 LIPO=":"
7403 else
7404 case $cross_compiling:$ac_tool_warned in
7405 yes:)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7409 esac
7410 LIPO=$ac_ct_LIPO
7411 fi
7412 else
7413 LIPO="$ac_cv_prog_LIPO"
7414 fi
7415
7416 if test -n "$ac_tool_prefix"; then
7417 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7418 set dummy ${ac_tool_prefix}otool; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if ${ac_cv_prog_OTOOL+:} false; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 if test -n "$OTOOL"; then
7425 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 break 2
7437 fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7441
7442 fi
7443 fi
7444 OTOOL=$ac_cv_prog_OTOOL
7445 if test -n "$OTOOL"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7447 $as_echo "$OTOOL" >&6; }
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451 fi
7452
7453
7454 fi
7455 if test -z "$ac_cv_prog_OTOOL"; then
7456 ac_ct_OTOOL=$OTOOL
7457 # Extract the first word of "otool", so it can be a program name with args.
7458 set dummy otool; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 if test -n "$ac_ct_OTOOL"; then
7465 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_prog_ac_ct_OTOOL="otool"
7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 break 2
7477 fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7481
7482 fi
7483 fi
7484 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7485 if test -n "$ac_ct_OTOOL"; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7487 $as_echo "$ac_ct_OTOOL" >&6; }
7488 else
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 fi
7492
7493 if test "x$ac_ct_OTOOL" = x; then
7494 OTOOL=":"
7495 else
7496 case $cross_compiling:$ac_tool_warned in
7497 yes:)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502 OTOOL=$ac_ct_OTOOL
7503 fi
7504 else
7505 OTOOL="$ac_cv_prog_OTOOL"
7506 fi
7507
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_OTOOL64+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 if test -n "$OTOOL64"; then
7517 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7529 fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 OTOOL64=$ac_cv_prog_OTOOL64
7537 if test -n "$OTOOL64"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7539 $as_echo "$OTOOL64" >&6; }
7540 else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_OTOOL64"; then
7548 ac_ct_OTOOL64=$OTOOL64
7549 # Extract the first word of "otool64", so it can be a program name with args.
7550 set dummy otool64; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 if test -n "$ac_ct_OTOOL64"; then
7557 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_prog_ac_ct_OTOOL64="otool64"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7577 if test -n "$ac_ct_OTOOL64"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7579 $as_echo "$ac_ct_OTOOL64" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585 if test "x$ac_ct_OTOOL64" = x; then
7586 OTOOL64=":"
7587 else
7588 case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594 OTOOL64=$ac_ct_OTOOL64
7595 fi
7596 else
7597 OTOOL64="$ac_cv_prog_OTOOL64"
7598 fi
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7627 $as_echo_n "checking for -single_module linker flag... " >&6; }
7628 if ${lt_cv_apple_cc_single_mod+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 lt_cv_apple_cc_single_mod=no
7632 if test -z "${LT_MULTI_MODULE}"; then
7633 # By default we will add the -single_module flag. You can override
7634 # by either setting the environment variable LT_MULTI_MODULE
7635 # non-empty at configure time, or by adding -multi_module to the
7636 # link flags.
7637 rm -rf libconftest.dylib*
7638 echo "int foo(void){return 1;}" > conftest.c
7639 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7640 -dynamiclib -Wl,-single_module conftest.c" >&5
7641 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7642 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7643 _lt_result=$?
7644 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7645 lt_cv_apple_cc_single_mod=yes
7646 else
7647 cat conftest.err >&5
7648 fi
7649 rm -rf libconftest.dylib*
7650 rm -f conftest.*
7651 fi
7652 fi
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7654 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7656 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7657 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 lt_cv_ld_exported_symbols_list=no
7661 save_LDFLAGS=$LDFLAGS
7662 echo "_main" > conftest.sym
7663 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666
7667 int
7668 main ()
7669 {
7670
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 if ac_fn_c_try_link "$LINENO"; then :
7676 lt_cv_ld_exported_symbols_list=yes
7677 else
7678 lt_cv_ld_exported_symbols_list=no
7679 fi
7680 rm -f core conftest.err conftest.$ac_objext \
7681 conftest$ac_exeext conftest.$ac_ext
7682 LDFLAGS="$save_LDFLAGS"
7683
7684 fi
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7686 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7688 $as_echo_n "checking for -force_load linker flag... " >&6; }
7689 if ${lt_cv_ld_force_load+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 lt_cv_ld_force_load=no
7693 cat > conftest.c << _LT_EOF
7694 int forced_loaded() { return 2;}
7695 _LT_EOF
7696 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7697 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7698 echo "$AR cru libconftest.a conftest.o" >&5
7699 $AR cru libconftest.a conftest.o 2>&5
7700 echo "$RANLIB libconftest.a" >&5
7701 $RANLIB libconftest.a 2>&5
7702 cat > conftest.c << _LT_EOF
7703 int main() { return 0;}
7704 _LT_EOF
7705 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7706 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7707 _lt_result=$?
7708 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7709 lt_cv_ld_force_load=yes
7710 else
7711 cat conftest.err >&5
7712 fi
7713 rm -f conftest.err libconftest.a conftest conftest.c
7714 rm -rf conftest.dSYM
7715
7716 fi
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7718 $as_echo "$lt_cv_ld_force_load" >&6; }
7719 case $host_os in
7720 rhapsody* | darwin1.[012])
7721 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7722 darwin1.*)
7723 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7724 darwin*) # darwin 5.x on
7725 # if running on 10.5 or later, the deployment target defaults
7726 # to the OS version, if on x86, and 10.4, the deployment
7727 # target defaults to 10.4. Don't you love it?
7728 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7729 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7730 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7731 10.[012]*)
7732 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7733 10.*)
7734 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7735 esac
7736 ;;
7737 esac
7738 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7739 _lt_dar_single_mod='$single_module'
7740 fi
7741 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7742 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7743 else
7744 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7745 fi
7746 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7747 _lt_dsymutil='~$DSYMUTIL $lib || :'
7748 else
7749 _lt_dsymutil=
7750 fi
7751 ;;
7752 esac
7753
7754 for ac_header in dlfcn.h
7755 do :
7756 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7757 "
7758 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7759 cat >>confdefs.h <<_ACEOF
7760 #define HAVE_DLFCN_H 1
7761 _ACEOF
7762
7763 fi
7764
7765 done
7766
7767
7768
7769
7770
7771 # Set options
7772
7773
7774
7775
7776 enable_win32_dll=no
7777
7778
7779 # Check whether --enable-shared was given.
7780 if test "${enable_shared+set}" = set; then :
7781 enableval=$enable_shared; p=${PACKAGE-default}
7782 case $enableval in
7783 yes) enable_shared=yes ;;
7784 no) enable_shared=no ;;
7785 *)
7786 enable_shared=no
7787 # Look at the argument we got. We use all the common list separators.
7788 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7789 for pkg in $enableval; do
7790 IFS="$lt_save_ifs"
7791 if test "X$pkg" = "X$p"; then
7792 enable_shared=yes
7793 fi
7794 done
7795 IFS="$lt_save_ifs"
7796 ;;
7797 esac
7798 else
7799 enable_shared=yes
7800 fi
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812 # Check whether --with-pic was given.
7813 if test "${with_pic+set}" = set; then :
7814 withval=$with_pic; pic_mode="$withval"
7815 else
7816 pic_mode=default
7817 fi
7818
7819
7820 test -z "$pic_mode" && pic_mode=default
7821
7822
7823
7824
7825
7826
7827
7828 # Check whether --enable-fast-install was given.
7829 if test "${enable_fast_install+set}" = set; then :
7830 enableval=$enable_fast_install; p=${PACKAGE-default}
7831 case $enableval in
7832 yes) enable_fast_install=yes ;;
7833 no) enable_fast_install=no ;;
7834 *)
7835 enable_fast_install=no
7836 # Look at the argument we got. We use all the common list separators.
7837 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7838 for pkg in $enableval; do
7839 IFS="$lt_save_ifs"
7840 if test "X$pkg" = "X$p"; then
7841 enable_fast_install=yes
7842 fi
7843 done
7844 IFS="$lt_save_ifs"
7845 ;;
7846 esac
7847 else
7848 enable_fast_install=yes
7849 fi
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861 # This can be used to rebuild libtool when needed
7862 LIBTOOL_DEPS="$ltmain"
7863
7864 # Always use our own libtool.
7865 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892 test -z "$LN_S" && LN_S="ln -s"
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907 if test -n "${ZSH_VERSION+set}" ; then
7908 setopt NO_GLOB_SUBST
7909 fi
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7912 $as_echo_n "checking for objdir... " >&6; }
7913 if ${lt_cv_objdir+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 rm -f .libs 2>/dev/null
7917 mkdir .libs 2>/dev/null
7918 if test -d .libs; then
7919 lt_cv_objdir=.libs
7920 else
7921 # MS-DOS does not allow filenames that begin with a dot.
7922 lt_cv_objdir=_libs
7923 fi
7924 rmdir .libs 2>/dev/null
7925 fi
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7927 $as_echo "$lt_cv_objdir" >&6; }
7928 objdir=$lt_cv_objdir
7929
7930
7931
7932
7933
7934 cat >>confdefs.h <<_ACEOF
7935 #define LT_OBJDIR "$lt_cv_objdir/"
7936 _ACEOF
7937
7938
7939
7940
7941 case $host_os in
7942 aix3*)
7943 # AIX sometimes has problems with the GCC collect2 program. For some
7944 # reason, if we set the COLLECT_NAMES environment variable, the problems
7945 # vanish in a puff of smoke.
7946 if test "X${COLLECT_NAMES+set}" != Xset; then
7947 COLLECT_NAMES=
7948 export COLLECT_NAMES
7949 fi
7950 ;;
7951 esac
7952
7953 # Global variables:
7954 ofile=libtool
7955 can_build_shared=yes
7956
7957 # All known linkers require a `.a' archive for static linking (except MSVC,
7958 # which needs '.lib').
7959 libext=a
7960
7961 with_gnu_ld="$lt_cv_prog_gnu_ld"
7962
7963 old_CC="$CC"
7964 old_CFLAGS="$CFLAGS"
7965
7966 # Set sane defaults for various variables
7967 test -z "$CC" && CC=cc
7968 test -z "$LTCC" && LTCC=$CC
7969 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7970 test -z "$LD" && LD=ld
7971 test -z "$ac_objext" && ac_objext=o
7972
7973 for cc_temp in $compiler""; do
7974 case $cc_temp in
7975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7977 \-*) ;;
7978 *) break;;
7979 esac
7980 done
7981 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7982
7983
7984 # Only perform the check for file, if the check method requires it
7985 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7986 case $deplibs_check_method in
7987 file_magic*)
7988 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7990 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7991 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 case $MAGIC_CMD in
7995 [\\/*] | ?:[\\/]*)
7996 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7997 ;;
7998 *)
7999 lt_save_MAGIC_CMD="$MAGIC_CMD"
8000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8001 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8002 for ac_dir in $ac_dummy; do
8003 IFS="$lt_save_ifs"
8004 test -z "$ac_dir" && ac_dir=.
8005 if test -f $ac_dir/${ac_tool_prefix}file; then
8006 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8007 if test -n "$file_magic_test_file"; then
8008 case $deplibs_check_method in
8009 "file_magic "*)
8010 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8011 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8012 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8013 $EGREP "$file_magic_regex" > /dev/null; then
8014 :
8015 else
8016 cat <<_LT_EOF 1>&2
8017
8018 *** Warning: the command libtool uses to detect shared libraries,
8019 *** $file_magic_cmd, produces output that libtool cannot recognize.
8020 *** The result is that libtool may fail to recognize shared libraries
8021 *** as such. This will affect the creation of libtool libraries that
8022 *** depend on shared libraries, but programs linked with such libtool
8023 *** libraries will work regardless of this problem. Nevertheless, you
8024 *** may want to report the problem to your system manager and/or to
8025 *** bug-libtool@gnu.org
8026
8027 _LT_EOF
8028 fi ;;
8029 esac
8030 fi
8031 break
8032 fi
8033 done
8034 IFS="$lt_save_ifs"
8035 MAGIC_CMD="$lt_save_MAGIC_CMD"
8036 ;;
8037 esac
8038 fi
8039
8040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8041 if test -n "$MAGIC_CMD"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8043 $as_echo "$MAGIC_CMD" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8047 fi
8048
8049
8050
8051
8052
8053 if test -z "$lt_cv_path_MAGIC_CMD"; then
8054 if test -n "$ac_tool_prefix"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8056 $as_echo_n "checking for file... " >&6; }
8057 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 case $MAGIC_CMD in
8061 [\\/*] | ?:[\\/]*)
8062 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8063 ;;
8064 *)
8065 lt_save_MAGIC_CMD="$MAGIC_CMD"
8066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8067 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8068 for ac_dir in $ac_dummy; do
8069 IFS="$lt_save_ifs"
8070 test -z "$ac_dir" && ac_dir=.
8071 if test -f $ac_dir/file; then
8072 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8073 if test -n "$file_magic_test_file"; then
8074 case $deplibs_check_method in
8075 "file_magic "*)
8076 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8078 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8079 $EGREP "$file_magic_regex" > /dev/null; then
8080 :
8081 else
8082 cat <<_LT_EOF 1>&2
8083
8084 *** Warning: the command libtool uses to detect shared libraries,
8085 *** $file_magic_cmd, produces output that libtool cannot recognize.
8086 *** The result is that libtool may fail to recognize shared libraries
8087 *** as such. This will affect the creation of libtool libraries that
8088 *** depend on shared libraries, but programs linked with such libtool
8089 *** libraries will work regardless of this problem. Nevertheless, you
8090 *** may want to report the problem to your system manager and/or to
8091 *** bug-libtool@gnu.org
8092
8093 _LT_EOF
8094 fi ;;
8095 esac
8096 fi
8097 break
8098 fi
8099 done
8100 IFS="$lt_save_ifs"
8101 MAGIC_CMD="$lt_save_MAGIC_CMD"
8102 ;;
8103 esac
8104 fi
8105
8106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8107 if test -n "$MAGIC_CMD"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8109 $as_echo "$MAGIC_CMD" >&6; }
8110 else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114
8115
8116 else
8117 MAGIC_CMD=:
8118 fi
8119 fi
8120
8121 fi
8122 ;;
8123 esac
8124
8125 # Use C for the default configuration in the libtool script
8126
8127 lt_save_CC="$CC"
8128 ac_ext=c
8129 ac_cpp='$CPP $CPPFLAGS'
8130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8133
8134
8135 # Source file extension for C test sources.
8136 ac_ext=c
8137
8138 # Object file extension for compiled C test sources.
8139 objext=o
8140 objext=$objext
8141
8142 # Code to be used in simple compile tests
8143 lt_simple_compile_test_code="int some_variable = 0;"
8144
8145 # Code to be used in simple link tests
8146 lt_simple_link_test_code='int main(){return(0);}'
8147
8148
8149
8150
8151
8152
8153
8154 # If no C compiler was specified, use CC.
8155 LTCC=${LTCC-"$CC"}
8156
8157 # If no C compiler flags were specified, use CFLAGS.
8158 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8159
8160 # Allow CC to be a program name with arguments.
8161 compiler=$CC
8162
8163 # Save the default compiler, since it gets overwritten when the other
8164 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8165 compiler_DEFAULT=$CC
8166
8167 # save warnings/boilerplate of simple test code
8168 ac_outfile=conftest.$ac_objext
8169 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8170 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8171 _lt_compiler_boilerplate=`cat conftest.err`
8172 $RM conftest*
8173
8174 ac_outfile=conftest.$ac_objext
8175 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8176 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8177 _lt_linker_boilerplate=`cat conftest.err`
8178 $RM -r conftest*
8179
8180
8181 if test -n "$compiler"; then
8182
8183 lt_prog_compiler_no_builtin_flag=
8184
8185 if test "$GCC" = yes; then
8186 case $cc_basename in
8187 nvcc*)
8188 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8189 *)
8190 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8191 esac
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8194 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8195 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 lt_cv_prog_compiler_rtti_exceptions=no
8199 ac_outfile=conftest.$ac_objext
8200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8201 lt_compiler_flag="-fno-rtti -fno-exceptions"
8202 # Insert the option either (1) after the last *FLAGS variable, or
8203 # (2) before a word containing "conftest.", or (3) at the end.
8204 # Note that $ac_compile itself does not contain backslashes and begins
8205 # with a dollar sign (not a hyphen), so the echo should work correctly.
8206 # The option is referenced via a variable to avoid confusing sed.
8207 lt_compile=`echo "$ac_compile" | $SED \
8208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8210 -e 's:$: $lt_compiler_flag:'`
8211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8212 (eval "$lt_compile" 2>conftest.err)
8213 ac_status=$?
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 if (exit $ac_status) && test -s "$ac_outfile"; then
8217 # The compiler can only warn and ignore the option if not recognized
8218 # So say no if there are warnings other than the usual output.
8219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8222 lt_cv_prog_compiler_rtti_exceptions=yes
8223 fi
8224 fi
8225 $RM conftest*
8226
8227 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8229 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8230
8231 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8232 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8233 else
8234 :
8235 fi
8236
8237 fi
8238
8239
8240
8241
8242
8243
8244 lt_prog_compiler_wl=
8245 lt_prog_compiler_pic=
8246 lt_prog_compiler_static=
8247
8248
8249 if test "$GCC" = yes; then
8250 lt_prog_compiler_wl='-Wl,'
8251 lt_prog_compiler_static='-static'
8252
8253 case $host_os in
8254 aix*)
8255 # All AIX code is PIC.
8256 if test "$host_cpu" = ia64; then
8257 # AIX 5 now supports IA64 processor
8258 lt_prog_compiler_static='-Bstatic'
8259 fi
8260 ;;
8261
8262 amigaos*)
8263 case $host_cpu in
8264 powerpc)
8265 # see comment about AmigaOS4 .so support
8266 lt_prog_compiler_pic='-fPIC'
8267 ;;
8268 m68k)
8269 # FIXME: we need at least 68020 code to build shared libraries, but
8270 # adding the `-m68020' flag to GCC prevents building anything better,
8271 # like `-m68040'.
8272 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8273 ;;
8274 esac
8275 ;;
8276
8277 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8278 # PIC is the default for these OSes.
8279 ;;
8280
8281 mingw* | cygwin* | pw32* | os2* | cegcc*)
8282 # This hack is so that the source file can tell whether it is being
8283 # built for inclusion in a dll (and should export symbols for example).
8284 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8285 # (--disable-auto-import) libraries
8286 lt_prog_compiler_pic='-DDLL_EXPORT'
8287 ;;
8288
8289 darwin* | rhapsody*)
8290 # PIC is the default on this platform
8291 # Common symbols not allowed in MH_DYLIB files
8292 lt_prog_compiler_pic='-fno-common'
8293 ;;
8294
8295 haiku*)
8296 # PIC is the default for Haiku.
8297 # The "-static" flag exists, but is broken.
8298 lt_prog_compiler_static=
8299 ;;
8300
8301 hpux*)
8302 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8303 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8304 # sets the default TLS model and affects inlining.
8305 case $host_cpu in
8306 hppa*64*)
8307 # +Z the default
8308 ;;
8309 *)
8310 lt_prog_compiler_pic='-fPIC'
8311 ;;
8312 esac
8313 ;;
8314
8315 interix[3-9]*)
8316 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8317 # Instead, we relocate shared libraries at runtime.
8318 ;;
8319
8320 msdosdjgpp*)
8321 # Just because we use GCC doesn't mean we suddenly get shared libraries
8322 # on systems that don't support them.
8323 lt_prog_compiler_can_build_shared=no
8324 enable_shared=no
8325 ;;
8326
8327 *nto* | *qnx*)
8328 # QNX uses GNU C++, but need to define -shared option too, otherwise
8329 # it will coredump.
8330 lt_prog_compiler_pic='-fPIC -shared'
8331 ;;
8332
8333 sysv4*MP*)
8334 if test -d /usr/nec; then
8335 lt_prog_compiler_pic=-Kconform_pic
8336 fi
8337 ;;
8338
8339 *)
8340 lt_prog_compiler_pic='-fPIC'
8341 ;;
8342 esac
8343
8344 case $cc_basename in
8345 nvcc*) # Cuda Compiler Driver 2.2
8346 lt_prog_compiler_wl='-Xlinker '
8347 lt_prog_compiler_pic='-Xcompiler -fPIC'
8348 ;;
8349 esac
8350 else
8351 # PORTME Check for flag to pass linker flags through the system compiler.
8352 case $host_os in
8353 aix*)
8354 lt_prog_compiler_wl='-Wl,'
8355 if test "$host_cpu" = ia64; then
8356 # AIX 5 now supports IA64 processor
8357 lt_prog_compiler_static='-Bstatic'
8358 else
8359 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8360 fi
8361 ;;
8362
8363 mingw* | cygwin* | pw32* | os2* | cegcc*)
8364 # This hack is so that the source file can tell whether it is being
8365 # built for inclusion in a dll (and should export symbols for example).
8366 lt_prog_compiler_pic='-DDLL_EXPORT'
8367 ;;
8368
8369 hpux9* | hpux10* | hpux11*)
8370 lt_prog_compiler_wl='-Wl,'
8371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8372 # not for PA HP-UX.
8373 case $host_cpu in
8374 hppa*64*|ia64*)
8375 # +Z the default
8376 ;;
8377 *)
8378 lt_prog_compiler_pic='+Z'
8379 ;;
8380 esac
8381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8382 lt_prog_compiler_static='${wl}-a ${wl}archive'
8383 ;;
8384
8385 irix5* | irix6* | nonstopux*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # PIC (with -KPIC) is the default.
8388 lt_prog_compiler_static='-non_shared'
8389 ;;
8390
8391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8392 case $cc_basename in
8393 # old Intel for x86_64 which still supported -KPIC.
8394 ecc*)
8395 lt_prog_compiler_wl='-Wl,'
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-static'
8398 ;;
8399 # icc used to be incompatible with GCC.
8400 # ICC 10 doesn't accept -KPIC any more.
8401 icc* | ifort*)
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-fPIC'
8404 lt_prog_compiler_static='-static'
8405 ;;
8406 # Lahey Fortran 8.1.
8407 lf95*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_pic='--shared'
8410 lt_prog_compiler_static='--static'
8411 ;;
8412 nagfor*)
8413 # NAG Fortran compiler
8414 lt_prog_compiler_wl='-Wl,-Wl,,'
8415 lt_prog_compiler_pic='-PIC'
8416 lt_prog_compiler_static='-Bstatic'
8417 ;;
8418 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8419 # Portland Group compilers (*not* the Pentium gcc compiler,
8420 # which looks to be a dead project)
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_pic='-fpic'
8423 lt_prog_compiler_static='-Bstatic'
8424 ;;
8425 ccc*)
8426 lt_prog_compiler_wl='-Wl,'
8427 # All Alpha code is PIC.
8428 lt_prog_compiler_static='-non_shared'
8429 ;;
8430 xl* | bgxl* | bgf* | mpixl*)
8431 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_pic='-qpic'
8434 lt_prog_compiler_static='-qstaticlink'
8435 ;;
8436 *)
8437 case `$CC -V 2>&1 | sed 5q` in
8438 *Sun\ F* | *Sun*Fortran*)
8439 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8440 lt_prog_compiler_pic='-KPIC'
8441 lt_prog_compiler_static='-Bstatic'
8442 lt_prog_compiler_wl=''
8443 ;;
8444 *Sun\ C*)
8445 # Sun C 5.9
8446 lt_prog_compiler_pic='-KPIC'
8447 lt_prog_compiler_static='-Bstatic'
8448 lt_prog_compiler_wl='-Wl,'
8449 ;;
8450 esac
8451 ;;
8452 esac
8453 ;;
8454
8455 newsos6)
8456 lt_prog_compiler_pic='-KPIC'
8457 lt_prog_compiler_static='-Bstatic'
8458 ;;
8459
8460 *nto* | *qnx*)
8461 # QNX uses GNU C++, but need to define -shared option too, otherwise
8462 # it will coredump.
8463 lt_prog_compiler_pic='-fPIC -shared'
8464 ;;
8465
8466 osf3* | osf4* | osf5*)
8467 lt_prog_compiler_wl='-Wl,'
8468 # All OSF/1 code is PIC.
8469 lt_prog_compiler_static='-non_shared'
8470 ;;
8471
8472 rdos*)
8473 lt_prog_compiler_static='-non_shared'
8474 ;;
8475
8476 solaris*)
8477 lt_prog_compiler_pic='-KPIC'
8478 lt_prog_compiler_static='-Bstatic'
8479 case $cc_basename in
8480 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8481 lt_prog_compiler_wl='-Qoption ld ';;
8482 *)
8483 lt_prog_compiler_wl='-Wl,';;
8484 esac
8485 ;;
8486
8487 sunos4*)
8488 lt_prog_compiler_wl='-Qoption ld '
8489 lt_prog_compiler_pic='-PIC'
8490 lt_prog_compiler_static='-Bstatic'
8491 ;;
8492
8493 sysv4 | sysv4.2uw2* | sysv4.3*)
8494 lt_prog_compiler_wl='-Wl,'
8495 lt_prog_compiler_pic='-KPIC'
8496 lt_prog_compiler_static='-Bstatic'
8497 ;;
8498
8499 sysv4*MP*)
8500 if test -d /usr/nec ;then
8501 lt_prog_compiler_pic='-Kconform_pic'
8502 lt_prog_compiler_static='-Bstatic'
8503 fi
8504 ;;
8505
8506 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_pic='-KPIC'
8509 lt_prog_compiler_static='-Bstatic'
8510 ;;
8511
8512 unicos*)
8513 lt_prog_compiler_wl='-Wl,'
8514 lt_prog_compiler_can_build_shared=no
8515 ;;
8516
8517 uts4*)
8518 lt_prog_compiler_pic='-pic'
8519 lt_prog_compiler_static='-Bstatic'
8520 ;;
8521
8522 *)
8523 lt_prog_compiler_can_build_shared=no
8524 ;;
8525 esac
8526 fi
8527
8528 case $host_os in
8529 # For platforms which do not support PIC, -DPIC is meaningless:
8530 *djgpp*)
8531 lt_prog_compiler_pic=
8532 ;;
8533 *)
8534 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8535 ;;
8536 esac
8537
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8539 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8540 if ${lt_cv_prog_compiler_pic+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8544 fi
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8546 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8547 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8548
8549 #
8550 # Check to make sure the PIC flag actually works.
8551 #
8552 if test -n "$lt_prog_compiler_pic"; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8554 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8555 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 lt_cv_prog_compiler_pic_works=no
8559 ac_outfile=conftest.$ac_objext
8560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8561 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8562 # Insert the option either (1) after the last *FLAGS variable, or
8563 # (2) before a word containing "conftest.", or (3) at the end.
8564 # Note that $ac_compile itself does not contain backslashes and begins
8565 # with a dollar sign (not a hyphen), so the echo should work correctly.
8566 # The option is referenced via a variable to avoid confusing sed.
8567 lt_compile=`echo "$ac_compile" | $SED \
8568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8570 -e 's:$: $lt_compiler_flag:'`
8571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8572 (eval "$lt_compile" 2>conftest.err)
8573 ac_status=$?
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 if (exit $ac_status) && test -s "$ac_outfile"; then
8577 # The compiler can only warn and ignore the option if not recognized
8578 # So say no if there are warnings other than the usual output.
8579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8582 lt_cv_prog_compiler_pic_works=yes
8583 fi
8584 fi
8585 $RM conftest*
8586
8587 fi
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8589 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8590
8591 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8592 case $lt_prog_compiler_pic in
8593 "" | " "*) ;;
8594 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8595 esac
8596 else
8597 lt_prog_compiler_pic=
8598 lt_prog_compiler_can_build_shared=no
8599 fi
8600
8601 fi
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613 #
8614 # Check to make sure the static flag actually works.
8615 #
8616 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8618 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8619 if ${lt_cv_prog_compiler_static_works+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 lt_cv_prog_compiler_static_works=no
8623 save_LDFLAGS="$LDFLAGS"
8624 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8625 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8626 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8627 # The linker can only warn and ignore the option if not recognized
8628 # So say no if there are warnings
8629 if test -s conftest.err; then
8630 # Append any errors to the config.log.
8631 cat conftest.err 1>&5
8632 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8634 if diff conftest.exp conftest.er2 >/dev/null; then
8635 lt_cv_prog_compiler_static_works=yes
8636 fi
8637 else
8638 lt_cv_prog_compiler_static_works=yes
8639 fi
8640 fi
8641 $RM -r conftest*
8642 LDFLAGS="$save_LDFLAGS"
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8646 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8647
8648 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8649 :
8650 else
8651 lt_prog_compiler_static=
8652 fi
8653
8654
8655
8656
8657
8658
8659
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8661 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8662 if ${lt_cv_prog_compiler_c_o+:} false; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 lt_cv_prog_compiler_c_o=no
8666 $RM -r conftest 2>/dev/null
8667 mkdir conftest
8668 cd conftest
8669 mkdir out
8670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8671
8672 lt_compiler_flag="-o out/conftest2.$ac_objext"
8673 # Insert the option either (1) after the last *FLAGS variable, or
8674 # (2) before a word containing "conftest.", or (3) at the end.
8675 # Note that $ac_compile itself does not contain backslashes and begins
8676 # with a dollar sign (not a hyphen), so the echo should work correctly.
8677 lt_compile=`echo "$ac_compile" | $SED \
8678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8680 -e 's:$: $lt_compiler_flag:'`
8681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8682 (eval "$lt_compile" 2>out/conftest.err)
8683 ac_status=$?
8684 cat out/conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8687 then
8688 # The compiler can only warn and ignore the option if not recognized
8689 # So say no if there are warnings
8690 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8693 lt_cv_prog_compiler_c_o=yes
8694 fi
8695 fi
8696 chmod u+w . 2>&5
8697 $RM conftest*
8698 # SGI C++ compiler will create directory out/ii_files/ for
8699 # template instantiation
8700 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8701 $RM out/* && rmdir out
8702 cd ..
8703 $RM -r conftest
8704 $RM conftest*
8705
8706 fi
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8708 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8709
8710
8711
8712
8713
8714
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8716 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8717 if ${lt_cv_prog_compiler_c_o+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 lt_cv_prog_compiler_c_o=no
8721 $RM -r conftest 2>/dev/null
8722 mkdir conftest
8723 cd conftest
8724 mkdir out
8725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8726
8727 lt_compiler_flag="-o out/conftest2.$ac_objext"
8728 # Insert the option either (1) after the last *FLAGS variable, or
8729 # (2) before a word containing "conftest.", or (3) at the end.
8730 # Note that $ac_compile itself does not contain backslashes and begins
8731 # with a dollar sign (not a hyphen), so the echo should work correctly.
8732 lt_compile=`echo "$ac_compile" | $SED \
8733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735 -e 's:$: $lt_compiler_flag:'`
8736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8737 (eval "$lt_compile" 2>out/conftest.err)
8738 ac_status=$?
8739 cat out/conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8742 then
8743 # The compiler can only warn and ignore the option if not recognized
8744 # So say no if there are warnings
8745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8748 lt_cv_prog_compiler_c_o=yes
8749 fi
8750 fi
8751 chmod u+w . 2>&5
8752 $RM conftest*
8753 # SGI C++ compiler will create directory out/ii_files/ for
8754 # template instantiation
8755 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8756 $RM out/* && rmdir out
8757 cd ..
8758 $RM -r conftest
8759 $RM conftest*
8760
8761 fi
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8763 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8764
8765
8766
8767
8768 hard_links="nottested"
8769 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8770 # do not overwrite the value of need_locks provided by the user
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8772 $as_echo_n "checking if we can lock with hard links... " >&6; }
8773 hard_links=yes
8774 $RM conftest*
8775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8776 touch conftest.a
8777 ln conftest.a conftest.b 2>&5 || hard_links=no
8778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8780 $as_echo "$hard_links" >&6; }
8781 if test "$hard_links" = no; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8783 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8784 need_locks=warn
8785 fi
8786 else
8787 need_locks=no
8788 fi
8789
8790
8791
8792
8793
8794
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8796 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8797
8798 runpath_var=
8799 allow_undefined_flag=
8800 always_export_symbols=no
8801 archive_cmds=
8802 archive_expsym_cmds=
8803 compiler_needs_object=no
8804 enable_shared_with_static_runtimes=no
8805 export_dynamic_flag_spec=
8806 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8807 hardcode_automatic=no
8808 hardcode_direct=no
8809 hardcode_direct_absolute=no
8810 hardcode_libdir_flag_spec=
8811 hardcode_libdir_flag_spec_ld=
8812 hardcode_libdir_separator=
8813 hardcode_minus_L=no
8814 hardcode_shlibpath_var=unsupported
8815 inherit_rpath=no
8816 link_all_deplibs=unknown
8817 module_cmds=
8818 module_expsym_cmds=
8819 old_archive_from_new_cmds=
8820 old_archive_from_expsyms_cmds=
8821 thread_safe_flag_spec=
8822 whole_archive_flag_spec=
8823 # include_expsyms should be a list of space-separated symbols to be *always*
8824 # included in the symbol list
8825 include_expsyms=
8826 # exclude_expsyms can be an extended regexp of symbols to exclude
8827 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8828 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8829 # as well as any symbol that contains `d'.
8830 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8831 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8832 # platforms (ab)use it in PIC code, but their linkers get confused if
8833 # the symbol is explicitly referenced. Since portable code cannot
8834 # rely on this symbol name, it's probably fine to never include it in
8835 # preloaded symbol tables.
8836 # Exclude shared library initialization/finalization symbols.
8837 extract_expsyms_cmds=
8838
8839 case $host_os in
8840 cygwin* | mingw* | pw32* | cegcc*)
8841 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8842 # When not using gcc, we currently assume that we are using
8843 # Microsoft Visual C++.
8844 if test "$GCC" != yes; then
8845 with_gnu_ld=no
8846 fi
8847 ;;
8848 interix*)
8849 # we just hope/assume this is gcc and not c89 (= MSVC++)
8850 with_gnu_ld=yes
8851 ;;
8852 openbsd*)
8853 with_gnu_ld=no
8854 ;;
8855 esac
8856
8857 ld_shlibs=yes
8858
8859 # On some targets, GNU ld is compatible enough with the native linker
8860 # that we're better off using the native interface for both.
8861 lt_use_gnu_ld_interface=no
8862 if test "$with_gnu_ld" = yes; then
8863 case $host_os in
8864 aix*)
8865 # The AIX port of GNU ld has always aspired to compatibility
8866 # with the native linker. However, as the warning in the GNU ld
8867 # block says, versions before 2.19.5* couldn't really create working
8868 # shared libraries, regardless of the interface used.
8869 case `$LD -v 2>&1` in
8870 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8871 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8872 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8873 *)
8874 lt_use_gnu_ld_interface=yes
8875 ;;
8876 esac
8877 ;;
8878 *)
8879 lt_use_gnu_ld_interface=yes
8880 ;;
8881 esac
8882 fi
8883
8884 if test "$lt_use_gnu_ld_interface" = yes; then
8885 # If archive_cmds runs LD, not CC, wlarc should be empty
8886 wlarc='${wl}'
8887
8888 # Set some defaults for GNU ld with shared library support. These
8889 # are reset later if shared libraries are not supported. Putting them
8890 # here allows them to be overridden if necessary.
8891 runpath_var=LD_RUN_PATH
8892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8893 export_dynamic_flag_spec='${wl}--export-dynamic'
8894 # ancient GNU ld didn't support --whole-archive et. al.
8895 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8896 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8897 else
8898 whole_archive_flag_spec=
8899 fi
8900 supports_anon_versioning=no
8901 case `$LD -v 2>&1` in
8902 *GNU\ gold*) supports_anon_versioning=yes ;;
8903 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8904 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8905 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8906 *\ 2.11.*) ;; # other 2.11 versions
8907 *) supports_anon_versioning=yes ;;
8908 esac
8909
8910 # See if GNU ld supports shared libraries.
8911 case $host_os in
8912 aix[3-9]*)
8913 # On AIX/PPC, the GNU linker is very broken
8914 if test "$host_cpu" != ia64; then
8915 ld_shlibs=no
8916 cat <<_LT_EOF 1>&2
8917
8918 *** Warning: the GNU linker, at least up to release 2.19, is reported
8919 *** to be unable to reliably create shared libraries on AIX.
8920 *** Therefore, libtool is disabling shared libraries support. If you
8921 *** really care for shared libraries, you may want to install binutils
8922 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8923 *** You will then need to restart the configuration process.
8924
8925 _LT_EOF
8926 fi
8927 ;;
8928
8929 amigaos*)
8930 case $host_cpu in
8931 powerpc)
8932 # see comment about AmigaOS4 .so support
8933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934 archive_expsym_cmds=''
8935 ;;
8936 m68k)
8937 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)'
8938 hardcode_libdir_flag_spec='-L$libdir'
8939 hardcode_minus_L=yes
8940 ;;
8941 esac
8942 ;;
8943
8944 beos*)
8945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8946 allow_undefined_flag=unsupported
8947 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8948 # support --undefined. This deserves some investigation. FIXME
8949 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950 else
8951 ld_shlibs=no
8952 fi
8953 ;;
8954
8955 cygwin* | mingw* | pw32* | cegcc*)
8956 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8957 # as there is no search path for DLLs.
8958 hardcode_libdir_flag_spec='-L$libdir'
8959 export_dynamic_flag_spec='${wl}--export-all-symbols'
8960 allow_undefined_flag=unsupported
8961 always_export_symbols=no
8962 enable_shared_with_static_runtimes=yes
8963 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8964 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8965
8966 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8968 # If the export-symbols file already is a .def file (1st line
8969 # is EXPORTS), use it as is; otherwise, prepend...
8970 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8971 cp $export_symbols $output_objdir/$soname.def;
8972 else
8973 echo EXPORTS > $output_objdir/$soname.def;
8974 cat $export_symbols >> $output_objdir/$soname.def;
8975 fi~
8976 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8977 else
8978 ld_shlibs=no
8979 fi
8980 ;;
8981
8982 haiku*)
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 link_all_deplibs=yes
8985 ;;
8986
8987 interix[3-9]*)
8988 hardcode_direct=no
8989 hardcode_shlibpath_var=no
8990 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8991 export_dynamic_flag_spec='${wl}-E'
8992 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8993 # Instead, shared libraries are loaded at an image base (0x10000000 by
8994 # default) and relocated if they conflict, which is a slow very memory
8995 # consuming and fragmenting process. To avoid this, we pick a random,
8996 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8997 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8998 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8999 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'
9000 ;;
9001
9002 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9003 tmp_diet=no
9004 if test "$host_os" = linux-dietlibc; then
9005 case $cc_basename in
9006 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9007 esac
9008 fi
9009 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9010 && test "$tmp_diet" = no
9011 then
9012 tmp_addflag=' $pic_flag'
9013 tmp_sharedflag='-shared'
9014 case $cc_basename,$host_cpu in
9015 pgcc*) # Portland Group C compiler
9016 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'
9017 tmp_addflag=' $pic_flag'
9018 ;;
9019 pgf77* | pgf90* | pgf95* | pgfortran*)
9020 # Portland Group f77 and f90 compilers
9021 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'
9022 tmp_addflag=' $pic_flag -Mnomain' ;;
9023 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9024 tmp_addflag=' -i_dynamic' ;;
9025 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9026 tmp_addflag=' -i_dynamic -nofor_main' ;;
9027 ifc* | ifort*) # Intel Fortran compiler
9028 tmp_addflag=' -nofor_main' ;;
9029 lf95*) # Lahey Fortran 8.1
9030 whole_archive_flag_spec=
9031 tmp_sharedflag='--shared' ;;
9032 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9033 tmp_sharedflag='-qmkshrobj'
9034 tmp_addflag= ;;
9035 nvcc*) # Cuda Compiler Driver 2.2
9036 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'
9037 compiler_needs_object=yes
9038 ;;
9039 esac
9040 case `$CC -V 2>&1 | sed 5q` in
9041 *Sun\ C*) # Sun C 5.9
9042 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'
9043 compiler_needs_object=yes
9044 tmp_sharedflag='-G' ;;
9045 *Sun\ F*) # Sun Fortran 8.3
9046 tmp_sharedflag='-G' ;;
9047 esac
9048 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9049
9050 if test "x$supports_anon_versioning" = xyes; then
9051 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9052 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9053 echo "local: *; };" >> $output_objdir/$libname.ver~
9054 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9055 fi
9056
9057 case $cc_basename in
9058 xlf* | bgf* | bgxlf* | mpixlf*)
9059 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9060 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9061 hardcode_libdir_flag_spec=
9062 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9063 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9064 if test "x$supports_anon_versioning" = xyes; then
9065 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9067 echo "local: *; };" >> $output_objdir/$libname.ver~
9068 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9069 fi
9070 ;;
9071 esac
9072 else
9073 ld_shlibs=no
9074 fi
9075 ;;
9076
9077 netbsd*)
9078 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9079 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9080 wlarc=
9081 else
9082 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9083 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9084 fi
9085 ;;
9086
9087 solaris*)
9088 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9089 ld_shlibs=no
9090 cat <<_LT_EOF 1>&2
9091
9092 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9093 *** create shared libraries on Solaris systems. Therefore, libtool
9094 *** is disabling shared libraries support. We urge you to upgrade GNU
9095 *** binutils to release 2.9.1 or newer. Another option is to modify
9096 *** your PATH or compiler configuration so that the native linker is
9097 *** used, and then restart.
9098
9099 _LT_EOF
9100 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9101 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9103 else
9104 ld_shlibs=no
9105 fi
9106 ;;
9107
9108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9109 case `$LD -v 2>&1` in
9110 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9111 ld_shlibs=no
9112 cat <<_LT_EOF 1>&2
9113
9114 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9115 *** reliably create shared libraries on SCO systems. Therefore, libtool
9116 *** is disabling shared libraries support. We urge you to upgrade GNU
9117 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9118 *** your PATH or compiler configuration so that the native linker is
9119 *** used, and then restart.
9120
9121 _LT_EOF
9122 ;;
9123 *)
9124 # For security reasons, it is highly recommended that you always
9125 # use absolute paths for naming shared libraries, and exclude the
9126 # DT_RUNPATH tag from executables and libraries. But doing so
9127 # requires that you compile everything twice, which is a pain.
9128 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9132 else
9133 ld_shlibs=no
9134 fi
9135 ;;
9136 esac
9137 ;;
9138
9139 sunos4*)
9140 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9141 wlarc=
9142 hardcode_direct=yes
9143 hardcode_shlibpath_var=no
9144 ;;
9145
9146 *)
9147 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9150 else
9151 ld_shlibs=no
9152 fi
9153 ;;
9154 esac
9155
9156 if test "$ld_shlibs" = no; then
9157 runpath_var=
9158 hardcode_libdir_flag_spec=
9159 export_dynamic_flag_spec=
9160 whole_archive_flag_spec=
9161 fi
9162 else
9163 # PORTME fill in a description of your system's linker (not GNU ld)
9164 case $host_os in
9165 aix3*)
9166 allow_undefined_flag=unsupported
9167 always_export_symbols=yes
9168 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'
9169 # Note: this linker hardcodes the directories in LIBPATH if there
9170 # are no directories specified by -L.
9171 hardcode_minus_L=yes
9172 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9173 # Neither direct hardcoding nor static linking is supported with a
9174 # broken collect2.
9175 hardcode_direct=unsupported
9176 fi
9177 ;;
9178
9179 aix[4-9]*)
9180 if test "$host_cpu" = ia64; then
9181 # On IA64, the linker does run time linking by default, so we don't
9182 # have to do anything special.
9183 aix_use_runtimelinking=no
9184 exp_sym_flag='-Bexport'
9185 no_entry_flag=""
9186 else
9187 # If we're using GNU nm, then we don't want the "-C" option.
9188 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9189 # Also, AIX nm treats weak defined symbols like other global
9190 # defined symbols, whereas GNU nm marks them as "W".
9191 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9192 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'
9193 else
9194 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'
9195 fi
9196 aix_use_runtimelinking=no
9197
9198 # Test if we are trying to use run time linking or normal
9199 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9200 # need to do runtime linking.
9201 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9202 for ld_flag in $LDFLAGS; do
9203 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9204 aix_use_runtimelinking=yes
9205 break
9206 fi
9207 done
9208 ;;
9209 esac
9210
9211 exp_sym_flag='-bexport'
9212 no_entry_flag='-bnoentry'
9213 fi
9214
9215 # When large executables or shared objects are built, AIX ld can
9216 # have problems creating the table of contents. If linking a library
9217 # or program results in "error TOC overflow" add -mminimal-toc to
9218 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9219 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9220
9221 archive_cmds=''
9222 hardcode_direct=yes
9223 hardcode_direct_absolute=yes
9224 hardcode_libdir_separator=':'
9225 link_all_deplibs=yes
9226 file_list_spec='${wl}-f,'
9227
9228 if test "$GCC" = yes; then
9229 case $host_os in aix4.[012]|aix4.[012].*)
9230 # We only want to do this on AIX 4.2 and lower, the check
9231 # below for broken collect2 doesn't work under 4.3+
9232 collect2name=`${CC} -print-prog-name=collect2`
9233 if test -f "$collect2name" &&
9234 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9235 then
9236 # We have reworked collect2
9237 :
9238 else
9239 # We have old collect2
9240 hardcode_direct=unsupported
9241 # It fails to find uninstalled libraries when the uninstalled
9242 # path is not listed in the libpath. Setting hardcode_minus_L
9243 # to unsupported forces relinking
9244 hardcode_minus_L=yes
9245 hardcode_libdir_flag_spec='-L$libdir'
9246 hardcode_libdir_separator=
9247 fi
9248 ;;
9249 esac
9250 shared_flag='-shared'
9251 if test "$aix_use_runtimelinking" = yes; then
9252 shared_flag="$shared_flag "'${wl}-G'
9253 fi
9254 else
9255 # not using gcc
9256 if test "$host_cpu" = ia64; then
9257 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9258 # chokes on -Wl,-G. The following line is correct:
9259 shared_flag='-G'
9260 else
9261 if test "$aix_use_runtimelinking" = yes; then
9262 shared_flag='${wl}-G'
9263 else
9264 shared_flag='${wl}-bM:SRE'
9265 fi
9266 fi
9267 fi
9268
9269 export_dynamic_flag_spec='${wl}-bexpall'
9270 # It seems that -bexpall does not export symbols beginning with
9271 # underscore (_), so it is better to generate a list of symbols to export.
9272 always_export_symbols=yes
9273 if test "$aix_use_runtimelinking" = yes; then
9274 # Warning - without using the other runtime loading flags (-brtl),
9275 # -berok will link without error, but may produce a broken library.
9276 allow_undefined_flag='-berok'
9277 # Determine the default libpath from the value encoded in an
9278 # empty executable.
9279 if test "${lt_cv_aix_libpath+set}" = set; then
9280 aix_libpath=$lt_cv_aix_libpath
9281 else
9282 if ${lt_cv_aix_libpath_+:} false; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287
9288 int
9289 main ()
9290 {
9291
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 if ac_fn_c_try_link "$LINENO"; then :
9297
9298 lt_aix_libpath_sed='
9299 /Import File Strings/,/^$/ {
9300 /^0/ {
9301 s/^0 *\([^ ]*\) *$/\1/
9302 p
9303 }
9304 }'
9305 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9306 # Check for a 64-bit object if we didn't find anything.
9307 if test -z "$lt_cv_aix_libpath_"; then
9308 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9309 fi
9310 fi
9311 rm -f core conftest.err conftest.$ac_objext \
9312 conftest$ac_exeext conftest.$ac_ext
9313 if test -z "$lt_cv_aix_libpath_"; then
9314 lt_cv_aix_libpath_="/usr/lib:/lib"
9315 fi
9316
9317 fi
9318
9319 aix_libpath=$lt_cv_aix_libpath_
9320 fi
9321
9322 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9323 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"
9324 else
9325 if test "$host_cpu" = ia64; then
9326 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9327 allow_undefined_flag="-z nodefs"
9328 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"
9329 else
9330 # Determine the default libpath from the value encoded in an
9331 # empty executable.
9332 if test "${lt_cv_aix_libpath+set}" = set; then
9333 aix_libpath=$lt_cv_aix_libpath
9334 else
9335 if ${lt_cv_aix_libpath_+:} false; then :
9336 $as_echo_n "(cached) " >&6
9337 else
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340
9341 int
9342 main ()
9343 {
9344
9345 ;
9346 return 0;
9347 }
9348 _ACEOF
9349 if ac_fn_c_try_link "$LINENO"; then :
9350
9351 lt_aix_libpath_sed='
9352 /Import File Strings/,/^$/ {
9353 /^0/ {
9354 s/^0 *\([^ ]*\) *$/\1/
9355 p
9356 }
9357 }'
9358 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9359 # Check for a 64-bit object if we didn't find anything.
9360 if test -z "$lt_cv_aix_libpath_"; then
9361 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9362 fi
9363 fi
9364 rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366 if test -z "$lt_cv_aix_libpath_"; then
9367 lt_cv_aix_libpath_="/usr/lib:/lib"
9368 fi
9369
9370 fi
9371
9372 aix_libpath=$lt_cv_aix_libpath_
9373 fi
9374
9375 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9376 # Warning - without using the other run time loading flags,
9377 # -berok will link without error, but may produce a broken library.
9378 no_undefined_flag=' ${wl}-bernotok'
9379 allow_undefined_flag=' ${wl}-berok'
9380 if test "$with_gnu_ld" = yes; then
9381 # We only use this code for GNU lds that support --whole-archive.
9382 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9383 else
9384 # Exported symbols can be pulled into shared objects from archives
9385 whole_archive_flag_spec='$convenience'
9386 fi
9387 archive_cmds_need_lc=yes
9388 # This is similar to how AIX traditionally builds its shared libraries.
9389 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'
9390 fi
9391 fi
9392 ;;
9393
9394 amigaos*)
9395 case $host_cpu in
9396 powerpc)
9397 # see comment about AmigaOS4 .so support
9398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399 archive_expsym_cmds=''
9400 ;;
9401 m68k)
9402 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)'
9403 hardcode_libdir_flag_spec='-L$libdir'
9404 hardcode_minus_L=yes
9405 ;;
9406 esac
9407 ;;
9408
9409 bsdi[45]*)
9410 export_dynamic_flag_spec=-rdynamic
9411 ;;
9412
9413 cygwin* | mingw* | pw32* | cegcc*)
9414 # When not using gcc, we currently assume that we are using
9415 # Microsoft Visual C++.
9416 # hardcode_libdir_flag_spec is actually meaningless, as there is
9417 # no search path for DLLs.
9418 case $cc_basename in
9419 cl*)
9420 # Native MSVC
9421 hardcode_libdir_flag_spec=' '
9422 allow_undefined_flag=unsupported
9423 always_export_symbols=yes
9424 file_list_spec='@'
9425 # Tell ltmain to make .lib files, not .a files.
9426 libext=lib
9427 # Tell ltmain to make .dll files, not .so files.
9428 shrext_cmds=".dll"
9429 # FIXME: Setting linknames here is a bad hack.
9430 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9431 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9432 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9433 else
9434 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9435 fi~
9436 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9437 linknames='
9438 # The linker will not automatically build a static lib if we build a DLL.
9439 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9440 enable_shared_with_static_runtimes=yes
9441 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9442 # Don't use ranlib
9443 old_postinstall_cmds='chmod 644 $oldlib'
9444 postlink_cmds='lt_outputfile="@OUTPUT@"~
9445 lt_tool_outputfile="@TOOL_OUTPUT@"~
9446 case $lt_outputfile in
9447 *.exe|*.EXE) ;;
9448 *)
9449 lt_outputfile="$lt_outputfile.exe"
9450 lt_tool_outputfile="$lt_tool_outputfile.exe"
9451 ;;
9452 esac~
9453 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9454 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9455 $RM "$lt_outputfile.manifest";
9456 fi'
9457 ;;
9458 *)
9459 # Assume MSVC wrapper
9460 hardcode_libdir_flag_spec=' '
9461 allow_undefined_flag=unsupported
9462 # Tell ltmain to make .lib files, not .a files.
9463 libext=lib
9464 # Tell ltmain to make .dll files, not .so files.
9465 shrext_cmds=".dll"
9466 # FIXME: Setting linknames here is a bad hack.
9467 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9468 # The linker will automatically build a .lib file if we build a DLL.
9469 old_archive_from_new_cmds='true'
9470 # FIXME: Should let the user specify the lib program.
9471 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9472 enable_shared_with_static_runtimes=yes
9473 ;;
9474 esac
9475 ;;
9476
9477 darwin* | rhapsody*)
9478
9479
9480 archive_cmds_need_lc=no
9481 hardcode_direct=no
9482 hardcode_automatic=yes
9483 hardcode_shlibpath_var=unsupported
9484 if test "$lt_cv_ld_force_load" = "yes"; then
9485 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\"`'
9486 else
9487 whole_archive_flag_spec=''
9488 fi
9489 link_all_deplibs=yes
9490 allow_undefined_flag="$_lt_dar_allow_undefined"
9491 case $cc_basename in
9492 ifort*) _lt_dar_can_shared=yes ;;
9493 *) _lt_dar_can_shared=$GCC ;;
9494 esac
9495 if test "$_lt_dar_can_shared" = "yes"; then
9496 output_verbose_link_cmd=func_echo_all
9497 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9498 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9499 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}"
9500 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}"
9501
9502 else
9503 ld_shlibs=no
9504 fi
9505
9506 ;;
9507
9508 dgux*)
9509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510 hardcode_libdir_flag_spec='-L$libdir'
9511 hardcode_shlibpath_var=no
9512 ;;
9513
9514 freebsd1*)
9515 ld_shlibs=no
9516 ;;
9517
9518 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9519 # support. Future versions do this automatically, but an explicit c++rt0.o
9520 # does not break anything, and helps significantly (at the cost of a little
9521 # extra space).
9522 freebsd2.2*)
9523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9524 hardcode_libdir_flag_spec='-R$libdir'
9525 hardcode_direct=yes
9526 hardcode_shlibpath_var=no
9527 ;;
9528
9529 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9530 freebsd2*)
9531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_direct=yes
9533 hardcode_minus_L=yes
9534 hardcode_shlibpath_var=no
9535 ;;
9536
9537 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9538 freebsd* | dragonfly*)
9539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9540 hardcode_libdir_flag_spec='-R$libdir'
9541 hardcode_direct=yes
9542 hardcode_shlibpath_var=no
9543 ;;
9544
9545 hpux9*)
9546 if test "$GCC" = yes; then
9547 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9548 else
9549 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'
9550 fi
9551 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9552 hardcode_libdir_separator=:
9553 hardcode_direct=yes
9554
9555 # hardcode_minus_L: Not really in the search PATH,
9556 # but as the default location of the library.
9557 hardcode_minus_L=yes
9558 export_dynamic_flag_spec='${wl}-E'
9559 ;;
9560
9561 hpux10*)
9562 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9563 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9564 else
9565 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9566 fi
9567 if test "$with_gnu_ld" = no; then
9568 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9569 hardcode_libdir_flag_spec_ld='+b $libdir'
9570 hardcode_libdir_separator=:
9571 hardcode_direct=yes
9572 hardcode_direct_absolute=yes
9573 export_dynamic_flag_spec='${wl}-E'
9574 # hardcode_minus_L: Not really in the search PATH,
9575 # but as the default location of the library.
9576 hardcode_minus_L=yes
9577 fi
9578 ;;
9579
9580 hpux11*)
9581 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9582 case $host_cpu in
9583 hppa*64*)
9584 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9585 ;;
9586 ia64*)
9587 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9588 ;;
9589 *)
9590 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9591 ;;
9592 esac
9593 else
9594 case $host_cpu in
9595 hppa*64*)
9596 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9597 ;;
9598 ia64*)
9599 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9600 ;;
9601 *)
9602
9603 # Older versions of the 11.00 compiler do not understand -b yet
9604 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9606 $as_echo_n "checking if $CC understands -b... " >&6; }
9607 if ${lt_cv_prog_compiler__b+:} false; then :
9608 $as_echo_n "(cached) " >&6
9609 else
9610 lt_cv_prog_compiler__b=no
9611 save_LDFLAGS="$LDFLAGS"
9612 LDFLAGS="$LDFLAGS -b"
9613 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9614 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9615 # The linker can only warn and ignore the option if not recognized
9616 # So say no if there are warnings
9617 if test -s conftest.err; then
9618 # Append any errors to the config.log.
9619 cat conftest.err 1>&5
9620 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9621 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9622 if diff conftest.exp conftest.er2 >/dev/null; then
9623 lt_cv_prog_compiler__b=yes
9624 fi
9625 else
9626 lt_cv_prog_compiler__b=yes
9627 fi
9628 fi
9629 $RM -r conftest*
9630 LDFLAGS="$save_LDFLAGS"
9631
9632 fi
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9634 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9635
9636 if test x"$lt_cv_prog_compiler__b" = xyes; then
9637 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9638 else
9639 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9640 fi
9641
9642 ;;
9643 esac
9644 fi
9645 if test "$with_gnu_ld" = no; then
9646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9647 hardcode_libdir_separator=:
9648
9649 case $host_cpu in
9650 hppa*64*|ia64*)
9651 hardcode_direct=no
9652 hardcode_shlibpath_var=no
9653 ;;
9654 *)
9655 hardcode_direct=yes
9656 hardcode_direct_absolute=yes
9657 export_dynamic_flag_spec='${wl}-E'
9658
9659 # hardcode_minus_L: Not really in the search PATH,
9660 # but as the default location of the library.
9661 hardcode_minus_L=yes
9662 ;;
9663 esac
9664 fi
9665 ;;
9666
9667 irix5* | irix6* | nonstopux*)
9668 if test "$GCC" = yes; then
9669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9670 # Try to use the -exported_symbol ld option, if it does not
9671 # work, assume that -exports_file does not work either and
9672 # implicitly export all symbols.
9673 # This should be the same for all languages, so no per-tag cache variable.
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9675 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9676 if ${lt_cv_irix_exported_symbol+:} false; then :
9677 $as_echo_n "(cached) " >&6
9678 else
9679 save_LDFLAGS="$LDFLAGS"
9680 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9683 int foo (void) { return 0; }
9684 _ACEOF
9685 if ac_fn_c_try_link "$LINENO"; then :
9686 lt_cv_irix_exported_symbol=yes
9687 else
9688 lt_cv_irix_exported_symbol=no
9689 fi
9690 rm -f core conftest.err conftest.$ac_objext \
9691 conftest$ac_exeext conftest.$ac_ext
9692 LDFLAGS="$save_LDFLAGS"
9693 fi
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9695 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9696 if test "$lt_cv_irix_exported_symbol" = yes; then
9697 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9698 fi
9699 else
9700 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'
9701 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'
9702 fi
9703 archive_cmds_need_lc='no'
9704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9705 hardcode_libdir_separator=:
9706 inherit_rpath=yes
9707 link_all_deplibs=yes
9708 ;;
9709
9710 netbsd*)
9711 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9713 else
9714 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9715 fi
9716 hardcode_libdir_flag_spec='-R$libdir'
9717 hardcode_direct=yes
9718 hardcode_shlibpath_var=no
9719 ;;
9720
9721 newsos6)
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_direct=yes
9724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725 hardcode_libdir_separator=:
9726 hardcode_shlibpath_var=no
9727 ;;
9728
9729 *nto* | *qnx*)
9730 ;;
9731
9732 openbsd*)
9733 if test -f /usr/libexec/ld.so; then
9734 hardcode_direct=yes
9735 hardcode_shlibpath_var=no
9736 hardcode_direct_absolute=yes
9737 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9738 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9741 export_dynamic_flag_spec='${wl}-E'
9742 else
9743 case $host_os in
9744 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9746 hardcode_libdir_flag_spec='-R$libdir'
9747 ;;
9748 *)
9749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9751 ;;
9752 esac
9753 fi
9754 else
9755 ld_shlibs=no
9756 fi
9757 ;;
9758
9759 os2*)
9760 hardcode_libdir_flag_spec='-L$libdir'
9761 hardcode_minus_L=yes
9762 allow_undefined_flag=unsupported
9763 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'
9764 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9765 ;;
9766
9767 osf3*)
9768 if test "$GCC" = yes; then
9769 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9770 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'
9771 else
9772 allow_undefined_flag=' -expect_unresolved \*'
9773 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'
9774 fi
9775 archive_cmds_need_lc='no'
9776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9777 hardcode_libdir_separator=:
9778 ;;
9779
9780 osf4* | osf5*) # as osf3* with the addition of -msym flag
9781 if test "$GCC" = yes; then
9782 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9783 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9785 else
9786 allow_undefined_flag=' -expect_unresolved \*'
9787 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'
9788 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~
9789 $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'
9790
9791 # Both c and cxx compiler support -rpath directly
9792 hardcode_libdir_flag_spec='-rpath $libdir'
9793 fi
9794 archive_cmds_need_lc='no'
9795 hardcode_libdir_separator=:
9796 ;;
9797
9798 solaris*)
9799 no_undefined_flag=' -z defs'
9800 if test "$GCC" = yes; then
9801 wlarc='${wl}'
9802 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9804 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9805 else
9806 case `$CC -V 2>&1` in
9807 *"Compilers 5.0"*)
9808 wlarc=''
9809 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9811 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9812 ;;
9813 *)
9814 wlarc='${wl}'
9815 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9816 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9817 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9818 ;;
9819 esac
9820 fi
9821 hardcode_libdir_flag_spec='-R$libdir'
9822 hardcode_shlibpath_var=no
9823 case $host_os in
9824 solaris2.[0-5] | solaris2.[0-5].*) ;;
9825 *)
9826 # The compiler driver will combine and reorder linker options,
9827 # but understands `-z linker_flag'. GCC discards it without `$wl',
9828 # but is careful enough not to reorder.
9829 # Supported since Solaris 2.6 (maybe 2.5.1?)
9830 if test "$GCC" = yes; then
9831 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9832 else
9833 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9834 fi
9835 ;;
9836 esac
9837 link_all_deplibs=yes
9838 ;;
9839
9840 sunos4*)
9841 if test "x$host_vendor" = xsequent; then
9842 # Use $CC to link under sequent, because it throws in some extra .o
9843 # files that make .init and .fini sections work.
9844 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9845 else
9846 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9847 fi
9848 hardcode_libdir_flag_spec='-L$libdir'
9849 hardcode_direct=yes
9850 hardcode_minus_L=yes
9851 hardcode_shlibpath_var=no
9852 ;;
9853
9854 sysv4)
9855 case $host_vendor in
9856 sni)
9857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_direct=yes # is this really true???
9859 ;;
9860 siemens)
9861 ## LD is ld it makes a PLAMLIB
9862 ## CC just makes a GrossModule.
9863 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9864 reload_cmds='$CC -r -o $output$reload_objs'
9865 hardcode_direct=no
9866 ;;
9867 motorola)
9868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9870 ;;
9871 esac
9872 runpath_var='LD_RUN_PATH'
9873 hardcode_shlibpath_var=no
9874 ;;
9875
9876 sysv4.3*)
9877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878 hardcode_shlibpath_var=no
9879 export_dynamic_flag_spec='-Bexport'
9880 ;;
9881
9882 sysv4*MP*)
9883 if test -d /usr/nec; then
9884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9885 hardcode_shlibpath_var=no
9886 runpath_var=LD_RUN_PATH
9887 hardcode_runpath_var=yes
9888 ld_shlibs=yes
9889 fi
9890 ;;
9891
9892 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9893 no_undefined_flag='${wl}-z,text'
9894 archive_cmds_need_lc=no
9895 hardcode_shlibpath_var=no
9896 runpath_var='LD_RUN_PATH'
9897
9898 if test "$GCC" = yes; then
9899 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9900 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9901 else
9902 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9904 fi
9905 ;;
9906
9907 sysv5* | sco3.2v5* | sco5v6*)
9908 # Note: We can NOT use -z defs as we might desire, because we do not
9909 # link with -lc, and that would cause any symbols used from libc to
9910 # always be unresolved, which means just about no library would
9911 # ever link correctly. If we're not using GNU ld we use -z text
9912 # though, which does catch some bad symbols but isn't as heavy-handed
9913 # as -z defs.
9914 no_undefined_flag='${wl}-z,text'
9915 allow_undefined_flag='${wl}-z,nodefs'
9916 archive_cmds_need_lc=no
9917 hardcode_shlibpath_var=no
9918 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9919 hardcode_libdir_separator=':'
9920 link_all_deplibs=yes
9921 export_dynamic_flag_spec='${wl}-Bexport'
9922 runpath_var='LD_RUN_PATH'
9923
9924 if test "$GCC" = yes; then
9925 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9926 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9927 else
9928 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9929 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9930 fi
9931 ;;
9932
9933 uts4*)
9934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935 hardcode_libdir_flag_spec='-L$libdir'
9936 hardcode_shlibpath_var=no
9937 ;;
9938
9939 *)
9940 ld_shlibs=no
9941 ;;
9942 esac
9943
9944 if test x$host_vendor = xsni; then
9945 case $host in
9946 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9947 export_dynamic_flag_spec='${wl}-Blargedynsym'
9948 ;;
9949 esac
9950 fi
9951 fi
9952
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9954 $as_echo "$ld_shlibs" >&6; }
9955 test "$ld_shlibs" = no && can_build_shared=no
9956
9957 with_gnu_ld=$with_gnu_ld
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973 #
9974 # Do we need to explicitly link libc?
9975 #
9976 case "x$archive_cmds_need_lc" in
9977 x|xyes)
9978 # Assume -lc should be added
9979 archive_cmds_need_lc=yes
9980
9981 if test "$enable_shared" = yes && test "$GCC" = yes; then
9982 case $archive_cmds in
9983 *'~'*)
9984 # FIXME: we may have to deal with multi-command sequences.
9985 ;;
9986 '$CC '*)
9987 # Test whether the compiler implicitly links with -lc since on some
9988 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9989 # to ld, don't add -lc before -lgcc.
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9991 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9992 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 $RM conftest*
9996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9997
9998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9999 (eval $ac_compile) 2>&5
10000 ac_status=$?
10001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10002 test $ac_status = 0; } 2>conftest.err; then
10003 soname=conftest
10004 lib=conftest
10005 libobjs=conftest.$ac_objext
10006 deplibs=
10007 wl=$lt_prog_compiler_wl
10008 pic_flag=$lt_prog_compiler_pic
10009 compiler_flags=-v
10010 linker_flags=-v
10011 verstring=
10012 output_objdir=.
10013 libname=conftest
10014 lt_save_allow_undefined_flag=$allow_undefined_flag
10015 allow_undefined_flag=
10016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10017 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10018 ac_status=$?
10019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020 test $ac_status = 0; }
10021 then
10022 lt_cv_archive_cmds_need_lc=no
10023 else
10024 lt_cv_archive_cmds_need_lc=yes
10025 fi
10026 allow_undefined_flag=$lt_save_allow_undefined_flag
10027 else
10028 cat conftest.err 1>&5
10029 fi
10030 $RM conftest*
10031
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10034 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10035 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10036 ;;
10037 esac
10038 fi
10039 ;;
10040 esac
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10199 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10200
10201 if test "$GCC" = yes; then
10202 case $host_os in
10203 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10204 *) lt_awk_arg="/^libraries:/" ;;
10205 esac
10206 case $host_os in
10207 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10208 *) lt_sed_strip_eq="s,=/,/,g" ;;
10209 esac
10210 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10211 case $lt_search_path_spec in
10212 *\;*)
10213 # if the path contains ";" then we assume it to be the separator
10214 # otherwise default to the standard path separator (i.e. ":") - it is
10215 # assumed that no part of a normal pathname contains ";" but that should
10216 # okay in the real world where ";" in dirpaths is itself problematic.
10217 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10218 ;;
10219 *)
10220 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10221 ;;
10222 esac
10223 # Ok, now we have the path, separated by spaces, we can step through it
10224 # and add multilib dir if necessary.
10225 lt_tmp_lt_search_path_spec=
10226 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10227 for lt_sys_path in $lt_search_path_spec; do
10228 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10229 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10230 else
10231 test -d "$lt_sys_path" && \
10232 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10233 fi
10234 done
10235 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10236 BEGIN {RS=" "; FS="/|\n";} {
10237 lt_foo="";
10238 lt_count=0;
10239 for (lt_i = NF; lt_i > 0; lt_i--) {
10240 if ($lt_i != "" && $lt_i != ".") {
10241 if ($lt_i == "..") {
10242 lt_count++;
10243 } else {
10244 if (lt_count == 0) {
10245 lt_foo="/" $lt_i lt_foo;
10246 } else {
10247 lt_count--;
10248 }
10249 }
10250 }
10251 }
10252 if (lt_foo != "") { lt_freq[lt_foo]++; }
10253 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10254 }'`
10255 # AWK program above erroneously prepends '/' to C:/dos/paths
10256 # for these hosts.
10257 case $host_os in
10258 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10259 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10260 esac
10261 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10262 else
10263 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10264 fi
10265 library_names_spec=
10266 libname_spec='lib$name'
10267 soname_spec=
10268 shrext_cmds=".so"
10269 postinstall_cmds=
10270 postuninstall_cmds=
10271 finish_cmds=
10272 finish_eval=
10273 shlibpath_var=
10274 shlibpath_overrides_runpath=unknown
10275 version_type=none
10276 dynamic_linker="$host_os ld.so"
10277 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10278 need_lib_prefix=unknown
10279 hardcode_into_libs=no
10280
10281 # when you set need_version to no, make sure it does not cause -set_version
10282 # flags to be left without arguments
10283 need_version=unknown
10284
10285 case $host_os in
10286 aix3*)
10287 version_type=linux
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10289 shlibpath_var=LIBPATH
10290
10291 # AIX 3 has no versioning support, so we append a major version to the name.
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 ;;
10294
10295 aix[4-9]*)
10296 version_type=linux
10297 need_lib_prefix=no
10298 need_version=no
10299 hardcode_into_libs=yes
10300 if test "$host_cpu" = ia64; then
10301 # AIX 5 supports IA64
10302 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 else
10305 # With GCC up to 2.95.x, collect2 would create an import file
10306 # for dependence libraries. The import file would start with
10307 # the line `#! .'. This would cause the generated library to
10308 # depend on `.', always an invalid library. This was fixed in
10309 # development snapshots of GCC prior to 3.0.
10310 case $host_os in
10311 aix4 | aix4.[01] | aix4.[01].*)
10312 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10313 echo ' yes '
10314 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10315 :
10316 else
10317 can_build_shared=no
10318 fi
10319 ;;
10320 esac
10321 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10322 # soname into executable. Probably we can add versioning support to
10323 # collect2, so additional links can be useful in future.
10324 if test "$aix_use_runtimelinking" = yes; then
10325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10326 # instead of lib<name>.a to let people know that these are not
10327 # typical AIX shared libraries.
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 else
10330 # We preserve .a as extension for shared libraries through AIX4.2
10331 # and later when we are not doing run time linking.
10332 library_names_spec='${libname}${release}.a $libname.a'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 fi
10335 shlibpath_var=LIBPATH
10336 fi
10337 ;;
10338
10339 amigaos*)
10340 case $host_cpu in
10341 powerpc)
10342 # Since July 2007 AmigaOS4 officially supports .so libraries.
10343 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 ;;
10346 m68k)
10347 library_names_spec='$libname.ixlibrary $libname.a'
10348 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10349 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'
10350 ;;
10351 esac
10352 ;;
10353
10354 beos*)
10355 library_names_spec='${libname}${shared_ext}'
10356 dynamic_linker="$host_os ld.so"
10357 shlibpath_var=LIBRARY_PATH
10358 ;;
10359
10360 bsdi[45]*)
10361 version_type=linux
10362 need_version=no
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10368 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10369 # the default ld.so.conf also contains /usr/contrib/lib and
10370 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10371 # libtool to hard-code these into programs
10372 ;;
10373
10374 cygwin* | mingw* | pw32* | cegcc*)
10375 version_type=windows
10376 shrext_cmds=".dll"
10377 need_version=no
10378 need_lib_prefix=no
10379
10380 case $GCC,$cc_basename in
10381 yes,*)
10382 # gcc
10383 library_names_spec='$libname.dll.a'
10384 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10385 postinstall_cmds='base_file=`basename \${file}`~
10386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10387 dldir=$destdir/`dirname \$dlpath`~
10388 test -d \$dldir || mkdir -p \$dldir~
10389 $install_prog $dir/$dlname \$dldir/$dlname~
10390 chmod a+x \$dldir/$dlname~
10391 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10392 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10393 fi'
10394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10395 dlpath=$dir/\$dldll~
10396 $RM \$dlpath'
10397 shlibpath_overrides_runpath=yes
10398
10399 case $host_os in
10400 cygwin*)
10401 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10402 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10403
10404 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10405 ;;
10406 mingw* | cegcc*)
10407 # MinGW DLLs use traditional 'lib' prefix
10408 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10409 ;;
10410 pw32*)
10411 # pw32 DLLs use 'pw' prefix rather than 'lib'
10412 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10413 ;;
10414 esac
10415 dynamic_linker='Win32 ld.exe'
10416 ;;
10417
10418 *,cl*)
10419 # Native MSVC
10420 libname_spec='$name'
10421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10422 library_names_spec='${libname}.dll.lib'
10423
10424 case $build_os in
10425 mingw*)
10426 sys_lib_search_path_spec=
10427 lt_save_ifs=$IFS
10428 IFS=';'
10429 for lt_path in $LIB
10430 do
10431 IFS=$lt_save_ifs
10432 # Let DOS variable expansion print the short 8.3 style file name.
10433 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10434 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10435 done
10436 IFS=$lt_save_ifs
10437 # Convert to MSYS style.
10438 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10439 ;;
10440 cygwin*)
10441 # Convert to unix form, then to dos form, then back to unix form
10442 # but this time dos style (no spaces!) so that the unix form looks
10443 # like /cygdrive/c/PROGRA~1:/cygdr...
10444 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10445 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10446 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10447 ;;
10448 *)
10449 sys_lib_search_path_spec="$LIB"
10450 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10451 # It is most probably a Windows format PATH.
10452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10453 else
10454 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10455 fi
10456 # FIXME: find the short name or the path components, as spaces are
10457 # common. (e.g. "Program Files" -> "PROGRA~1")
10458 ;;
10459 esac
10460
10461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10462 postinstall_cmds='base_file=`basename \${file}`~
10463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10464 dldir=$destdir/`dirname \$dlpath`~
10465 test -d \$dldir || mkdir -p \$dldir~
10466 $install_prog $dir/$dlname \$dldir/$dlname'
10467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10468 dlpath=$dir/\$dldll~
10469 $RM \$dlpath'
10470 shlibpath_overrides_runpath=yes
10471 dynamic_linker='Win32 link.exe'
10472 ;;
10473
10474 *)
10475 # Assume MSVC wrapper
10476 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10477 dynamic_linker='Win32 ld.exe'
10478 ;;
10479 esac
10480 # FIXME: first we should search . and the directory the executable is in
10481 shlibpath_var=PATH
10482 ;;
10483
10484 darwin* | rhapsody*)
10485 dynamic_linker="$host_os dyld"
10486 version_type=darwin
10487 need_lib_prefix=no
10488 need_version=no
10489 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10490 soname_spec='${libname}${release}${major}$shared_ext'
10491 shlibpath_overrides_runpath=yes
10492 shlibpath_var=DYLD_LIBRARY_PATH
10493 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10494
10495 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10496 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10497 ;;
10498
10499 dgux*)
10500 version_type=linux
10501 need_lib_prefix=no
10502 need_version=no
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10504 soname_spec='${libname}${release}${shared_ext}$major'
10505 shlibpath_var=LD_LIBRARY_PATH
10506 ;;
10507
10508 freebsd1*)
10509 dynamic_linker=no
10510 ;;
10511
10512 freebsd* | dragonfly*)
10513 # DragonFly does not have aout. When/if they implement a new
10514 # versioning mechanism, adjust this.
10515 if test -x /usr/bin/objformat; then
10516 objformat=`/usr/bin/objformat`
10517 else
10518 case $host_os in
10519 freebsd[123]*) objformat=aout ;;
10520 *) objformat=elf ;;
10521 esac
10522 fi
10523 version_type=freebsd-$objformat
10524 case $version_type in
10525 freebsd-elf*)
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10527 need_version=no
10528 need_lib_prefix=no
10529 ;;
10530 freebsd-*)
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10532 need_version=yes
10533 ;;
10534 esac
10535 shlibpath_var=LD_LIBRARY_PATH
10536 case $host_os in
10537 freebsd2*)
10538 shlibpath_overrides_runpath=yes
10539 ;;
10540 freebsd3.[01]* | freebsdelf3.[01]*)
10541 shlibpath_overrides_runpath=yes
10542 hardcode_into_libs=yes
10543 ;;
10544 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10545 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10546 shlibpath_overrides_runpath=no
10547 hardcode_into_libs=yes
10548 ;;
10549 *) # from 4.6 on, and DragonFly
10550 shlibpath_overrides_runpath=yes
10551 hardcode_into_libs=yes
10552 ;;
10553 esac
10554 ;;
10555
10556 gnu*)
10557 version_type=linux
10558 need_lib_prefix=no
10559 need_version=no
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10561 soname_spec='${libname}${release}${shared_ext}$major'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 hardcode_into_libs=yes
10564 ;;
10565
10566 haiku*)
10567 version_type=linux
10568 need_lib_prefix=no
10569 need_version=no
10570 dynamic_linker="$host_os runtime_loader"
10571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10572 soname_spec='${libname}${release}${shared_ext}$major'
10573 shlibpath_var=LIBRARY_PATH
10574 shlibpath_overrides_runpath=yes
10575 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10576 hardcode_into_libs=yes
10577 ;;
10578
10579 hpux9* | hpux10* | hpux11*)
10580 # Give a soname corresponding to the major version so that dld.sl refuses to
10581 # link against other versions.
10582 version_type=sunos
10583 need_lib_prefix=no
10584 need_version=no
10585 case $host_cpu in
10586 ia64*)
10587 shrext_cmds='.so'
10588 hardcode_into_libs=yes
10589 dynamic_linker="$host_os dld.so"
10590 shlibpath_var=LD_LIBRARY_PATH
10591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 if test "X$HPUX_IA64_MODE" = X32; then
10595 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10596 else
10597 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10598 fi
10599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10600 ;;
10601 hppa*64*)
10602 shrext_cmds='.sl'
10603 hardcode_into_libs=yes
10604 dynamic_linker="$host_os dld.sl"
10605 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10611 ;;
10612 *)
10613 shrext_cmds='.sl'
10614 dynamic_linker="$host_os dld.sl"
10615 shlibpath_var=SHLIB_PATH
10616 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 ;;
10620 esac
10621 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10622 postinstall_cmds='chmod 555 $lib'
10623 # or fails outright, so override atomically:
10624 install_override_mode=555
10625 ;;
10626
10627 interix[3-9]*)
10628 version_type=linux
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=no
10636 hardcode_into_libs=yes
10637 ;;
10638
10639 irix5* | irix6* | nonstopux*)
10640 case $host_os in
10641 nonstopux*) version_type=nonstopux ;;
10642 *)
10643 if test "$lt_cv_prog_gnu_ld" = yes; then
10644 version_type=linux
10645 else
10646 version_type=irix
10647 fi ;;
10648 esac
10649 need_lib_prefix=no
10650 need_version=no
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10653 case $host_os in
10654 irix5* | nonstopux*)
10655 libsuff= shlibsuff=
10656 ;;
10657 *)
10658 case $LD in # libtool.m4 will add one of these switches to LD
10659 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10660 libsuff= shlibsuff= libmagic=32-bit;;
10661 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10662 libsuff=32 shlibsuff=N32 libmagic=N32;;
10663 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10664 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10665 *) libsuff= shlibsuff= libmagic=never-match;;
10666 esac
10667 ;;
10668 esac
10669 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10670 shlibpath_overrides_runpath=no
10671 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10672 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10673 hardcode_into_libs=yes
10674 ;;
10675
10676 # No shared lib support for Linux oldld, aout, or coff.
10677 linux*oldld* | linux*aout* | linux*coff*)
10678 dynamic_linker=no
10679 ;;
10680
10681 # This must be Linux ELF.
10682 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10683 version_type=linux
10684 need_lib_prefix=no
10685 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10689 shlibpath_var=LD_LIBRARY_PATH
10690 shlibpath_overrides_runpath=no
10691
10692 # Some binutils ld are patched to set DT_RUNPATH
10693 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10694 $as_echo_n "(cached) " >&6
10695 else
10696 lt_cv_shlibpath_overrides_runpath=no
10697 save_LDFLAGS=$LDFLAGS
10698 save_libdir=$libdir
10699 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10700 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703
10704 int
10705 main ()
10706 {
10707
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10714 lt_cv_shlibpath_overrides_runpath=yes
10715 fi
10716 fi
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LDFLAGS=$save_LDFLAGS
10720 libdir=$save_libdir
10721
10722 fi
10723
10724 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10725
10726 # This implies no fast_install, which is unacceptable.
10727 # Some rework will be needed to allow for fast_install
10728 # before this can be enabled.
10729 hardcode_into_libs=yes
10730
10731 # Append ld.so.conf contents to the search path
10732 if test -f /etc/ld.so.conf; then
10733 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' ' '`
10734 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10735 fi
10736
10737 # We used to test for /lib/ld.so.1 and disable shared libraries on
10738 # powerpc, because MkLinux only supported shared libraries with the
10739 # GNU dynamic linker. Since this was broken with cross compilers,
10740 # most powerpc-linux boxes support dynamic linking these days and
10741 # people can always --disable-shared, the test was removed, and we
10742 # assume the GNU/Linux dynamic linker is in use.
10743 dynamic_linker='GNU/Linux ld.so'
10744 ;;
10745
10746 netbsd*)
10747 version_type=sunos
10748 need_lib_prefix=no
10749 need_version=no
10750 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10753 dynamic_linker='NetBSD (a.out) ld.so'
10754 else
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10756 soname_spec='${libname}${release}${shared_ext}$major'
10757 dynamic_linker='NetBSD ld.elf_so'
10758 fi
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=yes
10761 hardcode_into_libs=yes
10762 ;;
10763
10764 newsos6)
10765 version_type=linux
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath=yes
10769 ;;
10770
10771 *nto* | *qnx*)
10772 version_type=qnx
10773 need_lib_prefix=no
10774 need_version=no
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=no
10779 hardcode_into_libs=yes
10780 dynamic_linker='ldqnx.so'
10781 ;;
10782
10783 openbsd*)
10784 version_type=sunos
10785 sys_lib_dlsearch_path_spec="/usr/lib"
10786 need_lib_prefix=no
10787 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10788 case $host_os in
10789 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10790 *) need_version=no ;;
10791 esac
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10796 case $host_os in
10797 openbsd2.[89] | openbsd2.[89].*)
10798 shlibpath_overrides_runpath=no
10799 ;;
10800 *)
10801 shlibpath_overrides_runpath=yes
10802 ;;
10803 esac
10804 else
10805 shlibpath_overrides_runpath=yes
10806 fi
10807 ;;
10808
10809 os2*)
10810 libname_spec='$name'
10811 shrext_cmds=".dll"
10812 need_lib_prefix=no
10813 library_names_spec='$libname${shared_ext} $libname.a'
10814 dynamic_linker='OS/2 ld.exe'
10815 shlibpath_var=LIBPATH
10816 ;;
10817
10818 osf3* | osf4* | osf5*)
10819 version_type=osf
10820 need_lib_prefix=no
10821 need_version=no
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10826 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10827 ;;
10828
10829 rdos*)
10830 dynamic_linker=no
10831 ;;
10832
10833 solaris*)
10834 version_type=linux
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 shlibpath_overrides_runpath=yes
10841 hardcode_into_libs=yes
10842 # ldd complains unless libraries are executable
10843 postinstall_cmds='chmod +x $lib'
10844 ;;
10845
10846 sunos4*)
10847 version_type=sunos
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10849 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10850 shlibpath_var=LD_LIBRARY_PATH
10851 shlibpath_overrides_runpath=yes
10852 if test "$with_gnu_ld" = yes; then
10853 need_lib_prefix=no
10854 fi
10855 need_version=yes
10856 ;;
10857
10858 sysv4 | sysv4.3*)
10859 version_type=linux
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 case $host_vendor in
10864 sni)
10865 shlibpath_overrides_runpath=no
10866 need_lib_prefix=no
10867 runpath_var=LD_RUN_PATH
10868 ;;
10869 siemens)
10870 need_lib_prefix=no
10871 ;;
10872 motorola)
10873 need_lib_prefix=no
10874 need_version=no
10875 shlibpath_overrides_runpath=no
10876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10877 ;;
10878 esac
10879 ;;
10880
10881 sysv4*MP*)
10882 if test -d /usr/nec ;then
10883 version_type=linux
10884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10885 soname_spec='$libname${shared_ext}.$major'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 fi
10888 ;;
10889
10890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10891 version_type=freebsd-elf
10892 need_lib_prefix=no
10893 need_version=no
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=yes
10898 hardcode_into_libs=yes
10899 if test "$with_gnu_ld" = yes; then
10900 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10901 else
10902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10903 case $host_os in
10904 sco3.2v5*)
10905 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10906 ;;
10907 esac
10908 fi
10909 sys_lib_dlsearch_path_spec='/usr/lib'
10910 ;;
10911
10912 tpf*)
10913 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10914 version_type=linux
10915 need_lib_prefix=no
10916 need_version=no
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=no
10920 hardcode_into_libs=yes
10921 ;;
10922
10923 uts4*)
10924 version_type=linux
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 ;;
10929
10930 *)
10931 dynamic_linker=no
10932 ;;
10933 esac
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10935 $as_echo "$dynamic_linker" >&6; }
10936 test "$dynamic_linker" = no && can_build_shared=no
10937
10938 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10939 if test "$GCC" = yes; then
10940 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10941 fi
10942
10943 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10944 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10945 fi
10946 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10947 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10948 fi
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11042 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11043 hardcode_action=
11044 if test -n "$hardcode_libdir_flag_spec" ||
11045 test -n "$runpath_var" ||
11046 test "X$hardcode_automatic" = "Xyes" ; then
11047
11048 # We can hardcode non-existent directories.
11049 if test "$hardcode_direct" != no &&
11050 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11051 # have to relink, otherwise we might link with an installed library
11052 # when we should be linking with a yet-to-be-installed one
11053 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11054 test "$hardcode_minus_L" != no; then
11055 # Linking always hardcodes the temporary library directory.
11056 hardcode_action=relink
11057 else
11058 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11059 hardcode_action=immediate
11060 fi
11061 else
11062 # We cannot hardcode anything, or else we can only hardcode existing
11063 # directories.
11064 hardcode_action=unsupported
11065 fi
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11067 $as_echo "$hardcode_action" >&6; }
11068
11069 if test "$hardcode_action" = relink ||
11070 test "$inherit_rpath" = yes; then
11071 # Fast installation is not supported
11072 enable_fast_install=no
11073 elif test "$shlibpath_overrides_runpath" = yes ||
11074 test "$enable_shared" = no; then
11075 # Fast installation is not necessary
11076 enable_fast_install=needless
11077 fi
11078
11079
11080
11081
11082
11083
11084 if test "x$enable_dlopen" != xyes; then
11085 enable_dlopen=unknown
11086 enable_dlopen_self=unknown
11087 enable_dlopen_self_static=unknown
11088 else
11089 lt_cv_dlopen=no
11090 lt_cv_dlopen_libs=
11091
11092 case $host_os in
11093 beos*)
11094 lt_cv_dlopen="load_add_on"
11095 lt_cv_dlopen_libs=
11096 lt_cv_dlopen_self=yes
11097 ;;
11098
11099 mingw* | pw32* | cegcc*)
11100 lt_cv_dlopen="LoadLibrary"
11101 lt_cv_dlopen_libs=
11102 ;;
11103
11104 cygwin*)
11105 lt_cv_dlopen="dlopen"
11106 lt_cv_dlopen_libs=
11107 ;;
11108
11109 darwin*)
11110 # if libdl is installed we need to link against it
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11112 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11113 if ${ac_cv_lib_dl_dlopen+:} false; then :
11114 $as_echo_n "(cached) " >&6
11115 else
11116 ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-ldl $LIBS"
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11120
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char dlopen ();
11128 int
11129 main ()
11130 {
11131 return dlopen ();
11132 ;
11133 return 0;
11134 }
11135 _ACEOF
11136 if ac_fn_c_try_link "$LINENO"; then :
11137 ac_cv_lib_dl_dlopen=yes
11138 else
11139 ac_cv_lib_dl_dlopen=no
11140 fi
11141 rm -f core conftest.err conftest.$ac_objext \
11142 conftest$ac_exeext conftest.$ac_ext
11143 LIBS=$ac_check_lib_save_LIBS
11144 fi
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11146 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11147 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11149 else
11150
11151 lt_cv_dlopen="dyld"
11152 lt_cv_dlopen_libs=
11153 lt_cv_dlopen_self=yes
11154
11155 fi
11156
11157 ;;
11158
11159 *)
11160 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11161 if test "x$ac_cv_func_shl_load" = xyes; then :
11162 lt_cv_dlopen="shl_load"
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11165 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11166 if ${ac_cv_lib_dld_shl_load+:} false; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 ac_check_lib_save_LIBS=$LIBS
11170 LIBS="-ldld $LIBS"
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173
11174 /* Override any GCC internal prototype to avoid an error.
11175 Use char because int might match the return type of a GCC
11176 builtin and then its argument prototype would still apply. */
11177 #ifdef __cplusplus
11178 extern "C"
11179 #endif
11180 char shl_load ();
11181 int
11182 main ()
11183 {
11184 return shl_load ();
11185 ;
11186 return 0;
11187 }
11188 _ACEOF
11189 if ac_fn_c_try_link "$LINENO"; then :
11190 ac_cv_lib_dld_shl_load=yes
11191 else
11192 ac_cv_lib_dld_shl_load=no
11193 fi
11194 rm -f core conftest.err conftest.$ac_objext \
11195 conftest$ac_exeext conftest.$ac_ext
11196 LIBS=$ac_check_lib_save_LIBS
11197 fi
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11199 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11200 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11201 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11202 else
11203 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11204 if test "x$ac_cv_func_dlopen" = xyes; then :
11205 lt_cv_dlopen="dlopen"
11206 else
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11208 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11209 if ${ac_cv_lib_dl_dlopen+:} false; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 ac_check_lib_save_LIBS=$LIBS
11213 LIBS="-ldl $LIBS"
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11216
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 char dlopen ();
11224 int
11225 main ()
11226 {
11227 return dlopen ();
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 if ac_fn_c_try_link "$LINENO"; then :
11233 ac_cv_lib_dl_dlopen=yes
11234 else
11235 ac_cv_lib_dl_dlopen=no
11236 fi
11237 rm -f core conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext conftest.$ac_ext
11239 LIBS=$ac_check_lib_save_LIBS
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11242 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11243 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11247 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11248 if ${ac_cv_lib_svld_dlopen+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 ac_check_lib_save_LIBS=$LIBS
11252 LIBS="-lsvld $LIBS"
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11255
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 char dlopen ();
11263 int
11264 main ()
11265 {
11266 return dlopen ();
11267 ;
11268 return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272 ac_cv_lib_svld_dlopen=yes
11273 else
11274 ac_cv_lib_svld_dlopen=no
11275 fi
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11281 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11282 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11283 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11284 else
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11286 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11287 if ${ac_cv_lib_dld_dld_link+:} false; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 ac_check_lib_save_LIBS=$LIBS
11291 LIBS="-ldld $LIBS"
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11294
11295 /* Override any GCC internal prototype to avoid an error.
11296 Use char because int might match the return type of a GCC
11297 builtin and then its argument prototype would still apply. */
11298 #ifdef __cplusplus
11299 extern "C"
11300 #endif
11301 char dld_link ();
11302 int
11303 main ()
11304 {
11305 return dld_link ();
11306 ;
11307 return 0;
11308 }
11309 _ACEOF
11310 if ac_fn_c_try_link "$LINENO"; then :
11311 ac_cv_lib_dld_dld_link=yes
11312 else
11313 ac_cv_lib_dld_dld_link=no
11314 fi
11315 rm -f core conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
11317 LIBS=$ac_check_lib_save_LIBS
11318 fi
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11320 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11321 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11322 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11323 fi
11324
11325
11326 fi
11327
11328
11329 fi
11330
11331
11332 fi
11333
11334
11335 fi
11336
11337
11338 fi
11339
11340 ;;
11341 esac
11342
11343 if test "x$lt_cv_dlopen" != xno; then
11344 enable_dlopen=yes
11345 else
11346 enable_dlopen=no
11347 fi
11348
11349 case $lt_cv_dlopen in
11350 dlopen)
11351 save_CPPFLAGS="$CPPFLAGS"
11352 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11353
11354 save_LDFLAGS="$LDFLAGS"
11355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11356
11357 save_LIBS="$LIBS"
11358 LIBS="$lt_cv_dlopen_libs $LIBS"
11359
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11361 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11362 if ${lt_cv_dlopen_self+:} false; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 if test "$cross_compiling" = yes; then :
11366 lt_cv_dlopen_self=cross
11367 else
11368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11369 lt_status=$lt_dlunknown
11370 cat > conftest.$ac_ext <<_LT_EOF
11371 #line $LINENO "configure"
11372 #include "confdefs.h"
11373
11374 #if HAVE_DLFCN_H
11375 #include <dlfcn.h>
11376 #endif
11377
11378 #include <stdio.h>
11379
11380 #ifdef RTLD_GLOBAL
11381 # define LT_DLGLOBAL RTLD_GLOBAL
11382 #else
11383 # ifdef DL_GLOBAL
11384 # define LT_DLGLOBAL DL_GLOBAL
11385 # else
11386 # define LT_DLGLOBAL 0
11387 # endif
11388 #endif
11389
11390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11391 find out it does not work in some platform. */
11392 #ifndef LT_DLLAZY_OR_NOW
11393 # ifdef RTLD_LAZY
11394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11395 # else
11396 # ifdef DL_LAZY
11397 # define LT_DLLAZY_OR_NOW DL_LAZY
11398 # else
11399 # ifdef RTLD_NOW
11400 # define LT_DLLAZY_OR_NOW RTLD_NOW
11401 # else
11402 # ifdef DL_NOW
11403 # define LT_DLLAZY_OR_NOW DL_NOW
11404 # else
11405 # define LT_DLLAZY_OR_NOW 0
11406 # endif
11407 # endif
11408 # endif
11409 # endif
11410 #endif
11411
11412 /* When -fvisbility=hidden is used, assume the code has been annotated
11413 correspondingly for the symbols needed. */
11414 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11415 int fnord () __attribute__((visibility("default")));
11416 #endif
11417
11418 int fnord () { return 42; }
11419 int main ()
11420 {
11421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11422 int status = $lt_dlunknown;
11423
11424 if (self)
11425 {
11426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11427 else
11428 {
11429 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11430 else puts (dlerror ());
11431 }
11432 /* dlclose (self); */
11433 }
11434 else
11435 puts (dlerror ());
11436
11437 return status;
11438 }
11439 _LT_EOF
11440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11441 (eval $ac_link) 2>&5
11442 ac_status=$?
11443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11444 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11445 (./conftest; exit; ) >&5 2>/dev/null
11446 lt_status=$?
11447 case x$lt_status in
11448 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11449 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11450 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11451 esac
11452 else :
11453 # compilation failed
11454 lt_cv_dlopen_self=no
11455 fi
11456 fi
11457 rm -fr conftest*
11458
11459
11460 fi
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11462 $as_echo "$lt_cv_dlopen_self" >&6; }
11463
11464 if test "x$lt_cv_dlopen_self" = xyes; then
11465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11467 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11468 if ${lt_cv_dlopen_self_static+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 if test "$cross_compiling" = yes; then :
11472 lt_cv_dlopen_self_static=cross
11473 else
11474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11475 lt_status=$lt_dlunknown
11476 cat > conftest.$ac_ext <<_LT_EOF
11477 #line $LINENO "configure"
11478 #include "confdefs.h"
11479
11480 #if HAVE_DLFCN_H
11481 #include <dlfcn.h>
11482 #endif
11483
11484 #include <stdio.h>
11485
11486 #ifdef RTLD_GLOBAL
11487 # define LT_DLGLOBAL RTLD_GLOBAL
11488 #else
11489 # ifdef DL_GLOBAL
11490 # define LT_DLGLOBAL DL_GLOBAL
11491 # else
11492 # define LT_DLGLOBAL 0
11493 # endif
11494 #endif
11495
11496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11497 find out it does not work in some platform. */
11498 #ifndef LT_DLLAZY_OR_NOW
11499 # ifdef RTLD_LAZY
11500 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11501 # else
11502 # ifdef DL_LAZY
11503 # define LT_DLLAZY_OR_NOW DL_LAZY
11504 # else
11505 # ifdef RTLD_NOW
11506 # define LT_DLLAZY_OR_NOW RTLD_NOW
11507 # else
11508 # ifdef DL_NOW
11509 # define LT_DLLAZY_OR_NOW DL_NOW
11510 # else
11511 # define LT_DLLAZY_OR_NOW 0
11512 # endif
11513 # endif
11514 # endif
11515 # endif
11516 #endif
11517
11518 /* When -fvisbility=hidden is used, assume the code has been annotated
11519 correspondingly for the symbols needed. */
11520 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11521 int fnord () __attribute__((visibility("default")));
11522 #endif
11523
11524 int fnord () { return 42; }
11525 int main ()
11526 {
11527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11528 int status = $lt_dlunknown;
11529
11530 if (self)
11531 {
11532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11533 else
11534 {
11535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11536 else puts (dlerror ());
11537 }
11538 /* dlclose (self); */
11539 }
11540 else
11541 puts (dlerror ());
11542
11543 return status;
11544 }
11545 _LT_EOF
11546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11547 (eval $ac_link) 2>&5
11548 ac_status=$?
11549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11550 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11551 (./conftest; exit; ) >&5 2>/dev/null
11552 lt_status=$?
11553 case x$lt_status in
11554 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11555 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11556 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11557 esac
11558 else :
11559 # compilation failed
11560 lt_cv_dlopen_self_static=no
11561 fi
11562 fi
11563 rm -fr conftest*
11564
11565
11566 fi
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11568 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11569 fi
11570
11571 CPPFLAGS="$save_CPPFLAGS"
11572 LDFLAGS="$save_LDFLAGS"
11573 LIBS="$save_LIBS"
11574 ;;
11575 esac
11576
11577 case $lt_cv_dlopen_self in
11578 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11579 *) enable_dlopen_self=unknown ;;
11580 esac
11581
11582 case $lt_cv_dlopen_self_static in
11583 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11584 *) enable_dlopen_self_static=unknown ;;
11585 esac
11586 fi
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604 striplib=
11605 old_striplib=
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11607 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11608 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11609 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11610 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11612 $as_echo "yes" >&6; }
11613 else
11614 # FIXME - insert some real tests, host_os isn't really good enough
11615 case $host_os in
11616 darwin*)
11617 if test -n "$STRIP" ; then
11618 striplib="$STRIP -x"
11619 old_striplib="$STRIP -S"
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11621 $as_echo "yes" >&6; }
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624 $as_echo "no" >&6; }
11625 fi
11626 ;;
11627 *)
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11630 ;;
11631 esac
11632 fi
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645 # Report which library types will actually be built
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11647 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11649 $as_echo "$can_build_shared" >&6; }
11650
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11652 $as_echo_n "checking whether to build shared libraries... " >&6; }
11653 test "$can_build_shared" = "no" && enable_shared=no
11654
11655 # On AIX, shared libraries and static libraries use the same namespace, and
11656 # are all built from PIC.
11657 case $host_os in
11658 aix3*)
11659 test "$enable_shared" = yes && enable_static=no
11660 if test -n "$RANLIB"; then
11661 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11662 postinstall_cmds='$RANLIB $lib'
11663 fi
11664 ;;
11665
11666 aix[4-9]*)
11667 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11668 test "$enable_shared" = yes && enable_static=no
11669 fi
11670 ;;
11671 esac
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11673 $as_echo "$enable_shared" >&6; }
11674
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11676 $as_echo_n "checking whether to build static libraries... " >&6; }
11677 # Make sure either enable_shared or enable_static is yes.
11678 test "$enable_shared" = yes || enable_static=yes
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11680 $as_echo "$enable_static" >&6; }
11681
11682
11683
11684
11685 fi
11686 ac_ext=c
11687 ac_cpp='$CPP $CPPFLAGS'
11688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11691
11692 CC="$lt_save_CC"
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706 ac_config_commands="$ac_config_commands libtool"
11707
11708
11709
11710
11711 # Only expand once:
11712
11713
11714
11715 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11728 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11729 if ${ac_cv_prog_cc_c99+:} false; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732 ac_cv_prog_cc_c99=no
11733 ac_save_CC=$CC
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11736 #include <stdarg.h>
11737 #include <stdbool.h>
11738 #include <stdlib.h>
11739 #include <wchar.h>
11740 #include <stdio.h>
11741
11742 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11743 #define debug(...) fprintf (stderr, __VA_ARGS__)
11744 #define showlist(...) puts (#__VA_ARGS__)
11745 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11746 static void
11747 test_varargs_macros (void)
11748 {
11749 int x = 1234;
11750 int y = 5678;
11751 debug ("Flag");
11752 debug ("X = %d\n", x);
11753 showlist (The first, second, and third items.);
11754 report (x>y, "x is %d but y is %d", x, y);
11755 }
11756
11757 // Check long long types.
11758 #define BIG64 18446744073709551615ull
11759 #define BIG32 4294967295ul
11760 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11761 #if !BIG_OK
11762 your preprocessor is broken;
11763 #endif
11764 #if BIG_OK
11765 #else
11766 your preprocessor is broken;
11767 #endif
11768 static long long int bignum = -9223372036854775807LL;
11769 static unsigned long long int ubignum = BIG64;
11770
11771 struct incomplete_array
11772 {
11773 int datasize;
11774 double data[];
11775 };
11776
11777 struct named_init {
11778 int number;
11779 const wchar_t *name;
11780 double average;
11781 };
11782
11783 typedef const char *ccp;
11784
11785 static inline int
11786 test_restrict (ccp restrict text)
11787 {
11788 // See if C++-style comments work.
11789 // Iterate through items via the restricted pointer.
11790 // Also check for declarations in for loops.
11791 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11792 continue;
11793 return 0;
11794 }
11795
11796 // Check varargs and va_copy.
11797 static void
11798 test_varargs (const char *format, ...)
11799 {
11800 va_list args;
11801 va_start (args, format);
11802 va_list args_copy;
11803 va_copy (args_copy, args);
11804
11805 const char *str;
11806 int number;
11807 float fnumber;
11808
11809 while (*format)
11810 {
11811 switch (*format++)
11812 {
11813 case 's': // string
11814 str = va_arg (args_copy, const char *);
11815 break;
11816 case 'd': // int
11817 number = va_arg (args_copy, int);
11818 break;
11819 case 'f': // float
11820 fnumber = va_arg (args_copy, double);
11821 break;
11822 default:
11823 break;
11824 }
11825 }
11826 va_end (args_copy);
11827 va_end (args);
11828 }
11829
11830 int
11831 main ()
11832 {
11833
11834 // Check bool.
11835 _Bool success = false;
11836
11837 // Check restrict.
11838 if (test_restrict ("String literal") == 0)
11839 success = true;
11840 char *restrict newvar = "Another string";
11841
11842 // Check varargs.
11843 test_varargs ("s, d' f .", "string", 65, 34.234);
11844 test_varargs_macros ();
11845
11846 // Check flexible array members.
11847 struct incomplete_array *ia =
11848 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11849 ia->datasize = 10;
11850 for (int i = 0; i < ia->datasize; ++i)
11851 ia->data[i] = i * 1.234;
11852
11853 // Check named initializers.
11854 struct named_init ni = {
11855 .number = 34,
11856 .name = L"Test wide string",
11857 .average = 543.34343,
11858 };
11859
11860 ni.number = 58;
11861
11862 int dynamic_array[ni.number];
11863 dynamic_array[ni.number - 1] = 543;
11864
11865 // work around unused variable warnings
11866 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11867 || dynamic_array[ni.number - 1] != 543);
11868
11869 ;
11870 return 0;
11871 }
11872 _ACEOF
11873 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11874 do
11875 CC="$ac_save_CC $ac_arg"
11876 if ac_fn_c_try_compile "$LINENO"; then :
11877 ac_cv_prog_cc_c99=$ac_arg
11878 fi
11879 rm -f core conftest.err conftest.$ac_objext
11880 test "x$ac_cv_prog_cc_c99" != "xno" && break
11881 done
11882 rm -f conftest.$ac_ext
11883 CC=$ac_save_CC
11884
11885 fi
11886 # AC_CACHE_VAL
11887 case "x$ac_cv_prog_cc_c99" in
11888 x)
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11890 $as_echo "none needed" >&6; } ;;
11891 xno)
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11893 $as_echo "unsupported" >&6; } ;;
11894 *)
11895 CC="$CC $ac_cv_prog_cc_c99"
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11897 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11898 esac
11899 if test "x$ac_cv_prog_cc_c99" != xno; then :
11900
11901 fi
11902
11903
11904
11905
11906 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11907 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11908 CLANGCC="yes"
11909 else
11910 CLANGCC="no"
11911 fi
11912
11913 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11914 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11915 INTELCC="yes"
11916 else
11917 INTELCC="no"
11918 fi
11919
11920 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11921 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11922 SUNCC="yes"
11923 else
11924 SUNCC="no"
11925 fi
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11936 if test -n "$ac_tool_prefix"; then
11937 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11938 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 case $PKG_CONFIG in
11945 [\\/]* | ?:[\\/]*)
11946 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11947 ;;
11948 *)
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11951 do
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 break 2
11959 fi
11960 done
11961 done
11962 IFS=$as_save_IFS
11963
11964 ;;
11965 esac
11966 fi
11967 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11968 if test -n "$PKG_CONFIG"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11970 $as_echo "$PKG_CONFIG" >&6; }
11971 else
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 fi
11975
11976
11977 fi
11978 if test -z "$ac_cv_path_PKG_CONFIG"; then
11979 ac_pt_PKG_CONFIG=$PKG_CONFIG
11980 # Extract the first word of "pkg-config", so it can be a program name with args.
11981 set dummy pkg-config; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983 $as_echo_n "checking for $ac_word... " >&6; }
11984 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 case $ac_pt_PKG_CONFIG in
11988 [\\/]* | ?:[\\/]*)
11989 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11990 ;;
11991 *)
11992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993 for as_dir in $PATH
11994 do
11995 IFS=$as_save_IFS
11996 test -z "$as_dir" && as_dir=.
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11999 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12001 break 2
12002 fi
12003 done
12004 done
12005 IFS=$as_save_IFS
12006
12007 ;;
12008 esac
12009 fi
12010 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12011 if test -n "$ac_pt_PKG_CONFIG"; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12013 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12014 else
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 $as_echo "no" >&6; }
12017 fi
12018
12019 if test "x$ac_pt_PKG_CONFIG" = x; then
12020 PKG_CONFIG=""
12021 else
12022 case $cross_compiling:$ac_tool_warned in
12023 yes:)
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12026 ac_tool_warned=yes ;;
12027 esac
12028 PKG_CONFIG=$ac_pt_PKG_CONFIG
12029 fi
12030 else
12031 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12032 fi
12033
12034 fi
12035 if test -n "$PKG_CONFIG"; then
12036 _pkg_min_version=0.9.0
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12038 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12039 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12041 $as_echo "yes" >&6; }
12042 else
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12045 PKG_CONFIG=""
12046 fi
12047 fi
12048
12049
12050
12051
12052
12053 if test "x$GCC" = xyes ; then
12054 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
12055 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
12056 -Wbad-function-cast -Wformat=2"
12057 case `$CC -dumpversion` in
12058 3.4.* | 4.*)
12059 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
12060 ;;
12061 esac
12062 else
12063 if test "x$SUNCC" = "xyes"; then
12064 CWARNFLAGS="-v"
12065 fi
12066 fi
12067
12068
12069
12070 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
12071
12072
12073
12074
12075 # Check whether --enable-strict-compilation was given.
12076 if test "${enable_strict_compilation+set}" = set; then :
12077 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12078 else
12079 STRICT_COMPILE=no
12080 fi
12081
12082 if test "x$GCC" = xyes ; then
12083 STRICT_CFLAGS="-pedantic -Werror"
12084 # Add -Werror=attributes if supported (gcc 4.2 & later)
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
12086 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
12087 save_CFLAGS="$CFLAGS"
12088 CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
12089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h. */
12091 return 0;
12092 _ACEOF
12093 if ac_fn_c_try_compile "$LINENO"; then :
12094 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12096 $as_echo "yes" >&6; }
12097 else
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099 $as_echo "no" >&6; }
12100 fi
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 CFLAGS="$save_CFLAGS"
12103 elif test "x$SUNCC" = "xyes"; then
12104 STRICT_CFLAGS="-errwarn"
12105 elif test "x$INTELCC" = "xyes"; then
12106 STRICT_CFLAGS="-Werror"
12107 fi
12108 if test "x$STRICT_COMPILE" = "xyes"; then
12109 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12110 fi
12111
12112
12113
12114
12115
12116 cat >>confdefs.h <<_ACEOF
12117 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12118 _ACEOF
12119
12120 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12121 if test "x$PVM" = "x"; then
12122 PVM="0"
12123 fi
12124
12125 cat >>confdefs.h <<_ACEOF
12126 #define PACKAGE_VERSION_MINOR $PVM
12127 _ACEOF
12128
12129 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12130 if test "x$PVP" = "x"; then
12131 PVP="0"
12132 fi
12133
12134 cat >>confdefs.h <<_ACEOF
12135 #define PACKAGE_VERSION_PATCHLEVEL $PVP
12136 _ACEOF
12137
12138
12139
12140 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
12141 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12142 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
12143 echo 'git directory not found: installing possibly empty changelog.' >&2)"
12144
12145
12146
12147
12148 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12149 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12150 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12151 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
12152 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
12153
12154
12155
12156
12157
12158
12159 if test x$APP_MAN_SUFFIX = x ; then
12160 APP_MAN_SUFFIX=1
12161 fi
12162 if test x$APP_MAN_DIR = x ; then
12163 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12164 fi
12165
12166 if test x$LIB_MAN_SUFFIX = x ; then
12167 LIB_MAN_SUFFIX=3
12168 fi
12169 if test x$LIB_MAN_DIR = x ; then
12170 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12171 fi
12172
12173 if test x$FILE_MAN_SUFFIX = x ; then
12174 case $host_os in
12175 solaris*) FILE_MAN_SUFFIX=4 ;;
12176 *) FILE_MAN_SUFFIX=5 ;;
12177 esac
12178 fi
12179 if test x$FILE_MAN_DIR = x ; then
12180 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12181 fi
12182
12183 if test x$MISC_MAN_SUFFIX = x ; then
12184 case $host_os in
12185 solaris*) MISC_MAN_SUFFIX=5 ;;
12186 *) MISC_MAN_SUFFIX=7 ;;
12187 esac
12188 fi
12189 if test x$MISC_MAN_DIR = x ; then
12190 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12191 fi
12192
12193 if test x$DRIVER_MAN_SUFFIX = x ; then
12194 case $host_os in
12195 solaris*) DRIVER_MAN_SUFFIX=7 ;;
12196 *) DRIVER_MAN_SUFFIX=4 ;;
12197 esac
12198 fi
12199 if test x$DRIVER_MAN_DIR = x ; then
12200 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12201 fi
12202
12203 if test x$ADMIN_MAN_SUFFIX = x ; then
12204 case $host_os in
12205 solaris*) ADMIN_MAN_SUFFIX=1m ;;
12206 *) ADMIN_MAN_SUFFIX=8 ;;
12207 esac
12208 fi
12209 if test x$ADMIN_MAN_DIR = x ; then
12210 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12211 fi
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227 XORG_MAN_PAGE="X Version 11"
12228
12229 MAN_SUBSTS="\
12230 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12231 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12232 -e 's|__xservername__|Xorg|g' \
12233 -e 's|__xconfigfile__|xorg.conf|g' \
12234 -e 's|__projectroot__|\$(prefix)|g' \
12235 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
12236 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12237 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12238 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12239 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12240 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12241 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12242
12243
12244
12245 # Check whether --enable-silent-rules was given.
12246 if test "${enable_silent_rules+set}" = set; then :
12247 enableval=$enable_silent_rules;
12248 fi
12249
12250 case $enable_silent_rules in
12251 yes) AM_DEFAULT_VERBOSITY=0;;
12252 no) AM_DEFAULT_VERBOSITY=1;;
12253 *) AM_DEFAULT_VERBOSITY=0;;
12254 esac
12255 AM_BACKSLASH='\'
12256
12257
12258
12259
12260 for ac_prog in cpp
12261 do
12262 # Extract the first word of "$ac_prog", so it can be a program name with args.
12263 set dummy $ac_prog; ac_word=$2
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265 $as_echo_n "checking for $ac_word... " >&6; }
12266 if ${ac_cv_path_RAWCPP+:} false; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 case $RAWCPP in
12270 [\\/]* | ?:[\\/]*)
12271 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
12272 ;;
12273 *)
12274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
12276 for as_dir in $as_dummy
12277 do
12278 IFS=$as_save_IFS
12279 test -z "$as_dir" && as_dir=.
12280 for ac_exec_ext in '' $ac_executable_extensions; do
12281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12282 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284 break 2
12285 fi
12286 done
12287 done
12288 IFS=$as_save_IFS
12289
12290 ;;
12291 esac
12292 fi
12293 RAWCPP=$ac_cv_path_RAWCPP
12294 if test -n "$RAWCPP"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
12296 $as_echo "$RAWCPP" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 fi
12301
12302
12303 test -n "$RAWCPP" && break
12304 done
12305 test -n "$RAWCPP" || RAWCPP="${CPP}"
12306
12307
12308 # Check for flag to avoid builtin definitions - assumes unix is predefined,
12309 # which is not the best choice for supporting other OS'es, but covers most
12310 # of the ones we need for now.
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
12312 $as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315 Does cpp redefine unix ?
12316 _ACEOF
12317 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319 $as_echo "no" >&6; }
12320 else
12321 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12322 RAWCPPFLAGS=-undef
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12324 $as_echo "yes" >&6; }
12325 # under Cygwin unix is still defined even with -undef
12326 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
12327 RAWCPPFLAGS="-undef -ansi"
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
12329 $as_echo "yes, with -ansi" >&6; }
12330 else
12331 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5
12332 fi
12333 fi
12334 rm -f conftest.$ac_ext
12335
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
12337 $as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340 Does cpp preserve "whitespace"?
12341 _ACEOF
12342 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12345 else
12346 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
12347 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12349 $as_echo "yes" >&6; }
12350 else
12351 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5
12352 fi
12353 fi
12354 rm -f conftest.$ac_ext
12355
12356
12357
12358
12359
12360
12361
12362 # Check whether --with-lint was given.
12363 if test "${with_lint+set}" = set; then :
12364 withval=$with_lint; use_lint=$withval
12365 else
12366 use_lint=no
12367 fi
12368
12369
12370 # Obtain platform specific info like program name and options
12371 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
12372 case $host_os in
12373 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12374 lint_name=splint
12375 lint_options="-badflag"
12376 ;;
12377 *freebsd* | *netbsd*)
12378 lint_name=lint
12379 lint_options="-u -b"
12380 ;;
12381 *solaris*)
12382 lint_name=lint
12383 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12384 ;;
12385 esac
12386
12387 # Test for the presence of the program (either guessed by the code or spelled out by the user)
12388 if test "x$use_lint" = x"yes" ; then
12389 # Extract the first word of "$lint_name", so it can be a program name with args.
12390 set dummy $lint_name; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_path_LINT+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 case $LINT in
12397 [\\/]* | ?:[\\/]*)
12398 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12399 ;;
12400 *)
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12403 do
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 break 2
12411 fi
12412 done
12413 done
12414 IFS=$as_save_IFS
12415
12416 ;;
12417 esac
12418 fi
12419 LINT=$ac_cv_path_LINT
12420 if test -n "$LINT"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12422 $as_echo "$LINT" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12426 fi
12427
12428
12429 if test "x$LINT" = "x"; then
12430 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12431 fi
12432 elif test "x$use_lint" = x"no" ; then
12433 if test "x$LINT" != "x"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12435 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12436 fi
12437 else
12438 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12439 fi
12440
12441 # User supplied flags override default flags
12442 if test "x$LINT_FLAGS" != "x"; then
12443 lint_options=$LINT_FLAGS
12444 fi
12445
12446 LINT_FLAGS=$lint_options
12447
12448 if test "x$LINT" != x; then
12449 LINT_TRUE=
12450 LINT_FALSE='#'
12451 else
12452 LINT_TRUE='#'
12453 LINT_FALSE=
12454 fi
12455
12456
12457
12458
12459 # Checks for programs.
12460 # Check for mktemp to prevent security issue noted in Xorg bug #5898
12461 # See https://bugs.freedesktop.org/show_bug.cgi?id=5898 for details.
12462 # Extract the first word of "mktemp", so it can be a program name with args.
12463 set dummy mktemp; ac_word=$2
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465 $as_echo_n "checking for $ac_word... " >&6; }
12466 if ${ac_cv_path_MKTEMP_COMMAND+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 case $MKTEMP_COMMAND in
12470 [\\/]* | ?:[\\/]*)
12471 ac_cv_path_MKTEMP_COMMAND="$MKTEMP_COMMAND" # Let the user override the test with a path.
12472 ;;
12473 *)
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12476 do
12477 IFS=$as_save_IFS
12478 test -z "$as_dir" && as_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12481 ac_cv_path_MKTEMP_COMMAND="$as_dir/$ac_word$ac_exec_ext"
12482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483 break 2
12484 fi
12485 done
12486 done
12487 IFS=$as_save_IFS
12488
12489 ;;
12490 esac
12491 fi
12492 MKTEMP_COMMAND=$ac_cv_path_MKTEMP_COMMAND
12493 if test -n "$MKTEMP_COMMAND"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP_COMMAND" >&5
12495 $as_echo "$MKTEMP_COMMAND" >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12499 fi
12500
12501
12502 if test x$MKTEMP_COMMAND != x; then
12503 HAVE_MKTEMP_COMMAND_TRUE=
12504 HAVE_MKTEMP_COMMAND_FALSE='#'
12505 else
12506 HAVE_MKTEMP_COMMAND_TRUE='#'
12507 HAVE_MKTEMP_COMMAND_FALSE=
12508 fi
12509
12510
12511 #------------------------------------------------------------------------------
12512 # Check for system libraries
12513 #
12514 # AC_SEARCH_LIBS: tests using $LIBS and tests again with each listed library.
12515 # pre-pends the found library to $LIBS.
12516 #
12517 #------------------------------------------------------------------------------
12518 # Function getifaddrs() comes from the C library, Solaris 11 -lsocket, or
12519 # the -lnsl name service library
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
12521 $as_echo_n "checking for library containing getifaddrs... " >&6; }
12522 if ${ac_cv_search_getifaddrs+:} false; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 ac_func_search_save_LIBS=$LIBS
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char getifaddrs ();
12536 int
12537 main ()
12538 {
12539 return getifaddrs ();
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 for ac_lib in '' socket nsl; do
12545 if test -z "$ac_lib"; then
12546 ac_res="none required"
12547 else
12548 ac_res=-l$ac_lib
12549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12550 fi
12551 if ac_fn_c_try_link "$LINENO"; then :
12552 ac_cv_search_getifaddrs=$ac_res
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext
12556 if ${ac_cv_search_getifaddrs+:} false; then :
12557 break
12558 fi
12559 done
12560 if ${ac_cv_search_getifaddrs+:} false; then :
12561
12562 else
12563 ac_cv_search_getifaddrs=no
12564 fi
12565 rm conftest.$ac_ext
12566 LIBS=$ac_func_search_save_LIBS
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
12569 $as_echo "$ac_cv_search_getifaddrs" >&6; }
12570 ac_res=$ac_cv_search_getifaddrs
12571 if test "$ac_res" != no; then :
12572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12573
12574 fi
12575
12576
12577 # Function getspnam() comes from the C library, System V -lsec, UnixWare 7 -lgen
12578 # or Old Linux versions -lshadow
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
12580 $as_echo_n "checking for library containing getspnam... " >&6; }
12581 if ${ac_cv_search_getspnam+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 ac_func_search_save_LIBS=$LIBS
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587
12588 /* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12591 #ifdef __cplusplus
12592 extern "C"
12593 #endif
12594 char getspnam ();
12595 int
12596 main ()
12597 {
12598 return getspnam ();
12599 ;
12600 return 0;
12601 }
12602 _ACEOF
12603 for ac_lib in '' sec gen shadow; do
12604 if test -z "$ac_lib"; then
12605 ac_res="none required"
12606 else
12607 ac_res=-l$ac_lib
12608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12609 fi
12610 if ac_fn_c_try_link "$LINENO"; then :
12611 ac_cv_search_getspnam=$ac_res
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext
12615 if ${ac_cv_search_getspnam+:} false; then :
12616 break
12617 fi
12618 done
12619 if ${ac_cv_search_getspnam+:} false; then :
12620
12621 else
12622 ac_cv_search_getspnam=no
12623 fi
12624 rm conftest.$ac_ext
12625 LIBS=$ac_func_search_save_LIBS
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
12628 $as_echo "$ac_cv_search_getspnam" >&6; }
12629 ac_res=$ac_cv_search_getspnam
12630 if test "$ac_res" != no; then :
12631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12632
12633 fi
12634
12635
12636 # Function setproctitle() is in BSD -lutil or GNU systems -lbsd but N/A on Solaris
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
12638 $as_echo_n "checking for library containing setproctitle... " >&6; }
12639 if ${ac_cv_search_setproctitle+:} false; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12642 ac_func_search_save_LIBS=$LIBS
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12645
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 char setproctitle ();
12653 int
12654 main ()
12655 {
12656 return setproctitle ();
12657 ;
12658 return 0;
12659 }
12660 _ACEOF
12661 for ac_lib in '' util bsd; do
12662 if test -z "$ac_lib"; then
12663 ac_res="none required"
12664 else
12665 ac_res=-l$ac_lib
12666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12667 fi
12668 if ac_fn_c_try_link "$LINENO"; then :
12669 ac_cv_search_setproctitle=$ac_res
12670 fi
12671 rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext
12673 if ${ac_cv_search_setproctitle+:} false; then :
12674 break
12675 fi
12676 done
12677 if ${ac_cv_search_setproctitle+:} false; then :
12678
12679 else
12680 ac_cv_search_setproctitle=no
12681 fi
12682 rm conftest.$ac_ext
12683 LIBS=$ac_func_search_save_LIBS
12684 fi
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
12686 $as_echo "$ac_cv_search_setproctitle" >&6; }
12687 ac_res=$ac_cv_search_setproctitle
12688 if test "$ac_res" != no; then :
12689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12690
12691 fi
12692
12693
12694 # Function setusercontext() is in BSD -lutil but N/A on Solaris or GNU systems
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
12696 $as_echo_n "checking for library containing setusercontext... " >&6; }
12697 if ${ac_cv_search_setusercontext+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 ac_func_search_save_LIBS=$LIBS
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703
12704 /* Override any GCC internal prototype to avoid an error.
12705 Use char because int might match the return type of a GCC
12706 builtin and then its argument prototype would still apply. */
12707 #ifdef __cplusplus
12708 extern "C"
12709 #endif
12710 char setusercontext ();
12711 int
12712 main ()
12713 {
12714 return setusercontext ();
12715 ;
12716 return 0;
12717 }
12718 _ACEOF
12719 for ac_lib in '' util; do
12720 if test -z "$ac_lib"; then
12721 ac_res="none required"
12722 else
12723 ac_res=-l$ac_lib
12724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12725 fi
12726 if ac_fn_c_try_link "$LINENO"; then :
12727 ac_cv_search_setusercontext=$ac_res
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext
12731 if ${ac_cv_search_setusercontext+:} false; then :
12732 break
12733 fi
12734 done
12735 if ${ac_cv_search_setusercontext+:} false; then :
12736
12737 else
12738 ac_cv_search_setusercontext=no
12739 fi
12740 rm conftest.$ac_ext
12741 LIBS=$ac_func_search_save_LIBS
12742 fi
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
12744 $as_echo "$ac_cv_search_setusercontext" >&6; }
12745 ac_res=$ac_cv_search_setusercontext
12746 if test "$ac_res" != no; then :
12747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12748
12749 fi
12750
12751
12752 # Function arc4random() is in BSD standard C or GNU systems -lbsd
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing arc4random" >&5
12754 $as_echo_n "checking for library containing arc4random... " >&6; }
12755 if ${ac_cv_search_arc4random+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 ac_func_search_save_LIBS=$LIBS
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12761
12762 /* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
12765 #ifdef __cplusplus
12766 extern "C"
12767 #endif
12768 char arc4random ();
12769 int
12770 main ()
12771 {
12772 return arc4random ();
12773 ;
12774 return 0;
12775 }
12776 _ACEOF
12777 for ac_lib in '' bsd; do
12778 if test -z "$ac_lib"; then
12779 ac_res="none required"
12780 else
12781 ac_res=-l$ac_lib
12782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12783 fi
12784 if ac_fn_c_try_link "$LINENO"; then :
12785 ac_cv_search_arc4random=$ac_res
12786 fi
12787 rm -f core conftest.err conftest.$ac_objext \
12788 conftest$ac_exeext
12789 if ${ac_cv_search_arc4random+:} false; then :
12790 break
12791 fi
12792 done
12793 if ${ac_cv_search_arc4random+:} false; then :
12794
12795 else
12796 ac_cv_search_arc4random=no
12797 fi
12798 rm conftest.$ac_ext
12799 LIBS=$ac_func_search_save_LIBS
12800 fi
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_arc4random" >&5
12802 $as_echo "$ac_cv_search_arc4random" >&6; }
12803 ac_res=$ac_cv_search_arc4random
12804 if test "$ac_res" != no; then :
12805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12806 HAVE_ARC4RANDOM="yes"
12807 fi
12808
12809
12810 if test x$HAVE_ARC4RANDOM = xyes; then
12811 HAVE_ARC4RANDOM_TRUE=
12812 HAVE_ARC4RANDOM_FALSE='#'
12813 else
12814 HAVE_ARC4RANDOM_TRUE='#'
12815 HAVE_ARC4RANDOM_FALSE=
12816 fi
12817
12818
12819 # Function crypt() comes from the C library or the -lcrypt data encryption library
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12821 $as_echo_n "checking for library containing crypt... " >&6; }
12822 if ${ac_cv_search_crypt+:} false; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 ac_func_search_save_LIBS=$LIBS
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12828
12829 /* Override any GCC internal prototype to avoid an error.
12830 Use char because int might match the return type of a GCC
12831 builtin and then its argument prototype would still apply. */
12832 #ifdef __cplusplus
12833 extern "C"
12834 #endif
12835 char crypt ();
12836 int
12837 main ()
12838 {
12839 return crypt ();
12840 ;
12841 return 0;
12842 }
12843 _ACEOF
12844 for ac_lib in '' crypt; do
12845 if test -z "$ac_lib"; then
12846 ac_res="none required"
12847 else
12848 ac_res=-l$ac_lib
12849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12850 fi
12851 if ac_fn_c_try_link "$LINENO"; then :
12852 ac_cv_search_crypt=$ac_res
12853 fi
12854 rm -f core conftest.err conftest.$ac_objext \
12855 conftest$ac_exeext
12856 if ${ac_cv_search_crypt+:} false; then :
12857 break
12858 fi
12859 done
12860 if ${ac_cv_search_crypt+:} false; then :
12861
12862 else
12863 ac_cv_search_crypt=no
12864 fi
12865 rm conftest.$ac_ext
12866 LIBS=$ac_func_search_save_LIBS
12867 fi
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12869 $as_echo "$ac_cv_search_crypt" >&6; }
12870 ac_res=$ac_cv_search_crypt
12871 if test "$ac_res" != no; then :
12872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12873
12874 fi
12875
12876
12877 # Function dl() comes from the C library or -ldl
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12879 $as_echo_n "checking for library containing dlopen... " >&6; }
12880 if ${ac_cv_search_dlopen+:} false; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 ac_func_search_save_LIBS=$LIBS
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12886
12887 /* Override any GCC internal prototype to avoid an error.
12888 Use char because int might match the return type of a GCC
12889 builtin and then its argument prototype would still apply. */
12890 #ifdef __cplusplus
12891 extern "C"
12892 #endif
12893 char dlopen ();
12894 int
12895 main ()
12896 {
12897 return dlopen ();
12898 ;
12899 return 0;
12900 }
12901 _ACEOF
12902 for ac_lib in '' dl; do
12903 if test -z "$ac_lib"; then
12904 ac_res="none required"
12905 else
12906 ac_res=-l$ac_lib
12907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12908 fi
12909 if ac_fn_c_try_link "$LINENO"; then :
12910 ac_cv_search_dlopen=$ac_res
12911 fi
12912 rm -f core conftest.err conftest.$ac_objext \
12913 conftest$ac_exeext
12914 if ${ac_cv_search_dlopen+:} false; then :
12915 break
12916 fi
12917 done
12918 if ${ac_cv_search_dlopen+:} false; then :
12919
12920 else
12921 ac_cv_search_dlopen=no
12922 fi
12923 rm conftest.$ac_ext
12924 LIBS=$ac_func_search_save_LIBS
12925 fi
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12927 $as_echo "$ac_cv_search_dlopen" >&6; }
12928 ac_res=$ac_cv_search_dlopen
12929 if test "$ac_res" != no; then :
12930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12931
12932 fi
12933
12934 #------------------------------------------------------------------------------
12935
12936 # Checks for header files.
12937 for ac_header in grp.h syslog.h sys/param.h
12938 do :
12939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12940 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12941 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12942 cat >>confdefs.h <<_ACEOF
12943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12944 _ACEOF
12945
12946 fi
12947
12948 done
12949
12950 ac_fn_c_check_decl "$LINENO" "key_setnet" "ac_cv_have_decl_key_setnet" "
12951 #include <rpc/rpc.h>
12952 #include <rpc/key_prot.h>
12953
12954 "
12955 if test "x$ac_cv_have_decl_key_setnet" = xyes; then :
12956
12957 $as_echo "#define HAVE_DECL_KEY_SETNET 1" >>confdefs.h
12958
12959 fi
12960
12961
12962 # Checks for typedefs, structures, and compiler characteristics.
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12964 $as_echo_n "checking return type of signal handlers... " >&6; }
12965 if ${ac_cv_type_signal+:} false; then :
12966 $as_echo_n "(cached) " >&6
12967 else
12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12969 /* end confdefs.h. */
12970 #include <sys/types.h>
12971 #include <signal.h>
12972
12973 int
12974 main ()
12975 {
12976 return *(signal (0, 0)) (0) == 1;
12977 ;
12978 return 0;
12979 }
12980 _ACEOF
12981 if ac_fn_c_try_compile "$LINENO"; then :
12982 ac_cv_type_signal=int
12983 else
12984 ac_cv_type_signal=void
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 fi
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12989 $as_echo "$ac_cv_type_signal" >&6; }
12990
12991 cat >>confdefs.h <<_ACEOF
12992 #define RETSIGTYPE $ac_cv_type_signal
12993 _ACEOF
12994
12995
12996
12997 # Check for system library functions
12998 # Required system libraries have been searched for and are listed in $LIBS
12999 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13000 if test "x$ac_cv_type_pid_t" = xyes; then :
13001
13002 else
13003
13004 cat >>confdefs.h <<_ACEOF
13005 #define pid_t int
13006 _ACEOF
13007
13008 fi
13009
13010 for ac_header in vfork.h
13011 do :
13012 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13013 if test "x$ac_cv_header_vfork_h" = xyes; then :
13014 cat >>confdefs.h <<_ACEOF
13015 #define HAVE_VFORK_H 1
13016 _ACEOF
13017
13018 fi
13019
13020 done
13021
13022 for ac_func in fork vfork
13023 do :
13024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13025 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13026 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13027 cat >>confdefs.h <<_ACEOF
13028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13029 _ACEOF
13030
13031 fi
13032 done
13033
13034 if test "x$ac_cv_func_fork" = xyes; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13036 $as_echo_n "checking for working fork... " >&6; }
13037 if ${ac_cv_func_fork_works+:} false; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 if test "$cross_compiling" = yes; then :
13041 ac_cv_func_fork_works=cross
13042 else
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13045 $ac_includes_default
13046 int
13047 main ()
13048 {
13049
13050 /* By Ruediger Kuhlmann. */
13051 return fork () < 0;
13052
13053 ;
13054 return 0;
13055 }
13056 _ACEOF
13057 if ac_fn_c_try_run "$LINENO"; then :
13058 ac_cv_func_fork_works=yes
13059 else
13060 ac_cv_func_fork_works=no
13061 fi
13062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13063 conftest.$ac_objext conftest.beam conftest.$ac_ext
13064 fi
13065
13066 fi
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13068 $as_echo "$ac_cv_func_fork_works" >&6; }
13069
13070 else
13071 ac_cv_func_fork_works=$ac_cv_func_fork
13072 fi
13073 if test "x$ac_cv_func_fork_works" = xcross; then
13074 case $host in
13075 *-*-amigaos* | *-*-msdosdjgpp*)
13076 # Override, as these systems have only a dummy fork() stub
13077 ac_cv_func_fork_works=no
13078 ;;
13079 *)
13080 ac_cv_func_fork_works=yes
13081 ;;
13082 esac
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13084 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13085 fi
13086 ac_cv_func_vfork_works=$ac_cv_func_vfork
13087 if test "x$ac_cv_func_vfork" = xyes; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13089 $as_echo_n "checking for working vfork... " >&6; }
13090 if ${ac_cv_func_vfork_works+:} false; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13093 if test "$cross_compiling" = yes; then :
13094 ac_cv_func_vfork_works=cross
13095 else
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13098 /* Thanks to Paul Eggert for this test. */
13099 $ac_includes_default
13100 #include <sys/wait.h>
13101 #ifdef HAVE_VFORK_H
13102 # include <vfork.h>
13103 #endif
13104 /* On some sparc systems, changes by the child to local and incoming
13105 argument registers are propagated back to the parent. The compiler
13106 is told about this with #include <vfork.h>, but some compilers
13107 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13108 static variable whose address is put into a register that is
13109 clobbered by the vfork. */
13110 static void
13111 #ifdef __cplusplus
13112 sparc_address_test (int arg)
13113 # else
13114 sparc_address_test (arg) int arg;
13115 #endif
13116 {
13117 static pid_t child;
13118 if (!child) {
13119 child = vfork ();
13120 if (child < 0) {
13121 perror ("vfork");
13122 _exit(2);
13123 }
13124 if (!child) {
13125 arg = getpid();
13126 write(-1, "", 0);
13127 _exit (arg);
13128 }
13129 }
13130 }
13131
13132 int
13133 main ()
13134 {
13135 pid_t parent = getpid ();
13136 pid_t child;
13137
13138 sparc_address_test (0);
13139
13140 child = vfork ();
13141
13142 if (child == 0) {
13143 /* Here is another test for sparc vfork register problems. This
13144 test uses lots of local variables, at least as many local
13145 variables as main has allocated so far including compiler
13146 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13147 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13148 reuse the register of parent for one of the local variables,
13149 since it will think that parent can't possibly be used any more
13150 in this routine. Assigning to the local variable will thus
13151 munge parent in the parent process. */
13152 pid_t
13153 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13154 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13155 /* Convince the compiler that p..p7 are live; otherwise, it might
13156 use the same hardware register for all 8 local variables. */
13157 if (p != p1 || p != p2 || p != p3 || p != p4
13158 || p != p5 || p != p6 || p != p7)
13159 _exit(1);
13160
13161 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13162 from child file descriptors. If the child closes a descriptor
13163 before it execs or exits, this munges the parent's descriptor
13164 as well. Test for this by closing stdout in the child. */
13165 _exit(close(fileno(stdout)) != 0);
13166 } else {
13167 int status;
13168 struct stat st;
13169
13170 while (wait(&status) != child)
13171 ;
13172 return (
13173 /* Was there some problem with vforking? */
13174 child < 0
13175
13176 /* Did the child fail? (This shouldn't happen.) */
13177 || status
13178
13179 /* Did the vfork/compiler bug occur? */
13180 || parent != getpid()
13181
13182 /* Did the file descriptor bug occur? */
13183 || fstat(fileno(stdout), &st) != 0
13184 );
13185 }
13186 }
13187 _ACEOF
13188 if ac_fn_c_try_run "$LINENO"; then :
13189 ac_cv_func_vfork_works=yes
13190 else
13191 ac_cv_func_vfork_works=no
13192 fi
13193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13194 conftest.$ac_objext conftest.beam conftest.$ac_ext
13195 fi
13196
13197 fi
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13199 $as_echo "$ac_cv_func_vfork_works" >&6; }
13200
13201 fi;
13202 if test "x$ac_cv_func_fork_works" = xcross; then
13203 ac_cv_func_vfork_works=$ac_cv_func_vfork
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13205 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13206 fi
13207
13208 if test "x$ac_cv_func_vfork_works" = xyes; then
13209
13210 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13211
13212 else
13213
13214 $as_echo "#define vfork fork" >>confdefs.h
13215
13216 fi
13217 if test "x$ac_cv_func_fork_works" = xyes; then
13218
13219 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13220
13221 fi
13222
13223 for ac_func in daemon sigaction openlog asprintf setproctitle setusercontext \
13224 mkstemp getifaddrs getspnam arc4random
13225 do :
13226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13229 cat >>confdefs.h <<_ACEOF
13230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13231 _ACEOF
13232
13233 fi
13234 done
13235
13236
13237 XDM_CFLAGS="$XDM_CFLAGS"
13238 GREETER_CFLAGS="$GREETER_CFLAGS"
13239 CHOOSER_CFLAGS="$CHOOSER_CFLAGS"
13240
13241 # Find needed libraries for TCP sockets (pre-pended in $LIBS)
13242
13243
13244
13245 case $host_os in
13246 mingw*) unixdef="no" ;;
13247 *) unixdef="yes" ;;
13248 esac
13249 # Check whether --enable-unix-transport was given.
13250 if test "${enable_unix_transport+set}" = set; then :
13251 enableval=$enable_unix_transport; UNIXCONN=$enableval
13252 else
13253 UNIXCONN=$unixdef
13254 fi
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
13257 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
13258 if test "$UNIXCONN" = "yes"; then
13259
13260 $as_echo "#define UNIXCONN 1" >>confdefs.h
13261
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
13264 $as_echo "$UNIXCONN" >&6; }
13265 # Check whether --enable-tcp-transport was given.
13266 if test "${enable_tcp_transport+set}" = set; then :
13267 enableval=$enable_tcp_transport; TCPCONN=$enableval
13268 else
13269 TCPCONN=yes
13270 fi
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
13273 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
13275 $as_echo "$TCPCONN" >&6; }
13276 if test "$TCPCONN" = "yes"; then
13277
13278 $as_echo "#define TCPCONN 1" >>confdefs.h
13279
13280
13281 # SVR4 hides these in libraries other than libc
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13283 $as_echo_n "checking for library containing socket... " >&6; }
13284 if ${ac_cv_search_socket+:} false; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287 ac_func_search_save_LIBS=$LIBS
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13290
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char socket ();
13298 int
13299 main ()
13300 {
13301 return socket ();
13302 ;
13303 return 0;
13304 }
13305 _ACEOF
13306 for ac_lib in '' socket; do
13307 if test -z "$ac_lib"; then
13308 ac_res="none required"
13309 else
13310 ac_res=-l$ac_lib
13311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13312 fi
13313 if ac_fn_c_try_link "$LINENO"; then :
13314 ac_cv_search_socket=$ac_res
13315 fi
13316 rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext
13318 if ${ac_cv_search_socket+:} false; then :
13319 break
13320 fi
13321 done
13322 if ${ac_cv_search_socket+:} false; then :
13323
13324 else
13325 ac_cv_search_socket=no
13326 fi
13327 rm conftest.$ac_ext
13328 LIBS=$ac_func_search_save_LIBS
13329 fi
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13331 $as_echo "$ac_cv_search_socket" >&6; }
13332 ac_res=$ac_cv_search_socket
13333 if test "$ac_res" != no; then :
13334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13335
13336 fi
13337
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13339 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13340 if ${ac_cv_search_gethostbyname+:} false; then :
13341 $as_echo_n "(cached) " >&6
13342 else
13343 ac_func_search_save_LIBS=$LIBS
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13346
13347 /* Override any GCC internal prototype to avoid an error.
13348 Use char because int might match the return type of a GCC
13349 builtin and then its argument prototype would still apply. */
13350 #ifdef __cplusplus
13351 extern "C"
13352 #endif
13353 char gethostbyname ();
13354 int
13355 main ()
13356 {
13357 return gethostbyname ();
13358 ;
13359 return 0;
13360 }
13361 _ACEOF
13362 for ac_lib in '' nsl; do
13363 if test -z "$ac_lib"; then
13364 ac_res="none required"
13365 else
13366 ac_res=-l$ac_lib
13367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13368 fi
13369 if ac_fn_c_try_link "$LINENO"; then :
13370 ac_cv_search_gethostbyname=$ac_res
13371 fi
13372 rm -f core conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext
13374 if ${ac_cv_search_gethostbyname+:} false; then :
13375 break
13376 fi
13377 done
13378 if ${ac_cv_search_gethostbyname+:} false; then :
13379
13380 else
13381 ac_cv_search_gethostbyname=no
13382 fi
13383 rm conftest.$ac_ext
13384 LIBS=$ac_func_search_save_LIBS
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13387 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13388 ac_res=$ac_cv_search_gethostbyname
13389 if test "$ac_res" != no; then :
13390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13391
13392 fi
13393
13394 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
13396 $as_echo_n "checking for main in -lws2_32... " >&6; }
13397 if ${ac_cv_lib_ws2_32_main+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 ac_check_lib_save_LIBS=$LIBS
13401 LIBS="-lws2_32 $LIBS"
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404
13405
13406 int
13407 main ()
13408 {
13409 return main ();
13410 ;
13411 return 0;
13412 }
13413 _ACEOF
13414 if ac_fn_c_try_link "$LINENO"; then :
13415 ac_cv_lib_ws2_32_main=yes
13416 else
13417 ac_cv_lib_ws2_32_main=no
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext \
13420 conftest$ac_exeext conftest.$ac_ext
13421 LIBS=$ac_check_lib_save_LIBS
13422 fi
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
13424 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
13425 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
13426 cat >>confdefs.h <<_ACEOF
13427 #define HAVE_LIBWS2_32 1
13428 _ACEOF
13429
13430 LIBS="-lws2_32 $LIBS"
13431
13432 fi
13433 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
13434
13435 fi
13436
13437 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
13438 # Check whether --enable-ipv6 was given.
13439 if test "${enable_ipv6+set}" = set; then :
13440 enableval=$enable_ipv6; IPV6CONN=$enableval
13441 else
13442 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13443 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13444 IPV6CONN=yes
13445 else
13446 IPV6CONN=no
13447 fi
13448
13449 fi
13450
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
13452 $as_echo_n "checking if IPv6 support should be built... " >&6; }
13453 if test "$IPV6CONN" = "yes"; then
13454
13455 $as_echo "#define IPv6 1" >>confdefs.h
13456
13457 fi
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
13459 $as_echo "$IPV6CONN" >&6; }
13460
13461 # 4.3BSD-Reno added a new member to struct sockaddr_in
13462 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
13463 #include <sys/types.h>
13464 #include <sys/socket.h>
13465 #include <netinet/in.h>
13466
13467 "
13468 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13469
13470 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
13471
13472 fi
13473
13474
13475 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
13476 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13477 $ac_includes_default
13478 #include <sys/socket.h>
13479 "
13480 if test "x$ac_cv_type_socklen_t" = xyes; then :
13481
13482 cat >>confdefs.h <<_ACEOF
13483 #define HAVE_SOCKLEN_T 1
13484 _ACEOF
13485
13486
13487 fi
13488
13489
13490
13491 fi
13492 case $host_os in
13493 solaris*|sco*|sysv4*) localdef="yes" ;;
13494 *) localdef="no" ;;
13495 esac
13496 # Check whether --enable-local-transport was given.
13497 if test "${enable_local_transport+set}" = set; then :
13498 enableval=$enable_local_transport; LOCALCONN=$enableval
13499 else
13500 LOCALCONN=$localdef
13501 fi
13502
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
13504 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
13506 $as_echo "$LOCALCONN" >&6; }
13507 if test "$LOCALCONN" = "yes"; then
13508
13509 $as_echo "#define LOCALCONN 1" >>confdefs.h
13510
13511 fi
13512
13513
13514
13515 # Sets $SECURE_RPC to "yes" or "no" using libraries found above from $LIBS
13516
13517 # Check whether --enable-secure-rpc was given.
13518 if test "${enable_secure_rpc+set}" = set; then :
13519 enableval=$enable_secure_rpc; SECURE_RPC=$enableval
13520 else
13521 SECURE_RPC="try"
13522 fi
13523
13524
13525 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
13526 FOUND_SECURE_RPC="no"
13527 for ac_func in authdes_seccreate authdes_create
13528 do :
13529 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13530 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13531 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13532 cat >>confdefs.h <<_ACEOF
13533 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13534 _ACEOF
13535 FOUND_SECURE_RPC="yes"
13536 fi
13537 done
13538
13539 if test "x$FOUND_SECURE_RPC" = "xno" ; then
13540 if test "x$SECURE_RPC" = "xyes" ; then
13541 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
13542 fi
13543 SECURE_RPC="no"
13544 else
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
13546 $as_echo_n "checking for library containing getsecretkey... " >&6; }
13547 if ${ac_cv_search_getsecretkey+:} false; then :
13548 $as_echo_n "(cached) " >&6
13549 else
13550 ac_func_search_save_LIBS=$LIBS
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553
13554 /* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13557 #ifdef __cplusplus
13558 extern "C"
13559 #endif
13560 char getsecretkey ();
13561 int
13562 main ()
13563 {
13564 return getsecretkey ();
13565 ;
13566 return 0;
13567 }
13568 _ACEOF
13569 for ac_lib in '' rpcsvc; do
13570 if test -z "$ac_lib"; then
13571 ac_res="none required"
13572 else
13573 ac_res=-l$ac_lib
13574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13575 fi
13576 if ac_fn_c_try_link "$LINENO"; then :
13577 ac_cv_search_getsecretkey=$ac_res
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext
13581 if ${ac_cv_search_getsecretkey+:} false; then :
13582 break
13583 fi
13584 done
13585 if ${ac_cv_search_getsecretkey+:} false; then :
13586
13587 else
13588 ac_cv_search_getsecretkey=no
13589 fi
13590 rm conftest.$ac_ext
13591 LIBS=$ac_func_search_save_LIBS
13592 fi
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
13594 $as_echo "$ac_cv_search_getsecretkey" >&6; }
13595 ac_res=$ac_cv_search_getsecretkey
13596 if test "$ac_res" != no; then :
13597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13598
13599 fi
13600
13601 SECURE_RPC="yes"
13602 fi
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
13605 $as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
13606 if test "x$SECURE_RPC" = "xyes" ; then
13607
13608 $as_echo "#define SECURE_RPC 1" >>confdefs.h
13609
13610 fi
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
13612 $as_echo "$SECURE_RPC" >&6; }
13613
13614 if test x$SECURE_RPC = xyes; then
13615 HAS_SECURE_RPC_TRUE=
13616 HAS_SECURE_RPC_FALSE='#'
13617 else
13618 HAS_SECURE_RPC_TRUE='#'
13619 HAS_SECURE_RPC_FALSE=
13620 fi
13621
13622
13623 # Check for pluggable authentication modules (PAM) support
13624
13625 # Check whether --with-pam was given.
13626 if test "${with_pam+set}" = set; then :
13627 withval=$with_pam; USE_PAM=$withval
13628 else
13629 USE_PAM=auto
13630 fi
13631
13632 if test "x$USE_PAM" != "xno" ; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_open_session" >&5
13634 $as_echo_n "checking for library containing pam_open_session... " >&6; }
13635 if ${ac_cv_search_pam_open_session+:} false; then :
13636 $as_echo_n "(cached) " >&6
13637 else
13638 ac_func_search_save_LIBS=$LIBS
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13641
13642 /* Override any GCC internal prototype to avoid an error.
13643 Use char because int might match the return type of a GCC
13644 builtin and then its argument prototype would still apply. */
13645 #ifdef __cplusplus
13646 extern "C"
13647 #endif
13648 char pam_open_session ();
13649 int
13650 main ()
13651 {
13652 return pam_open_session ();
13653 ;
13654 return 0;
13655 }
13656 _ACEOF
13657 for ac_lib in '' pam; do
13658 if test -z "$ac_lib"; then
13659 ac_res="none required"
13660 else
13661 ac_res=-l$ac_lib
13662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13663 fi
13664 if ac_fn_c_try_link "$LINENO"; then :
13665 ac_cv_search_pam_open_session=$ac_res
13666 fi
13667 rm -f core conftest.err conftest.$ac_objext \
13668 conftest$ac_exeext
13669 if ${ac_cv_search_pam_open_session+:} false; then :
13670 break
13671 fi
13672 done
13673 if ${ac_cv_search_pam_open_session+:} false; then :
13674
13675 else
13676 ac_cv_search_pam_open_session=no
13677 fi
13678 rm conftest.$ac_ext
13679 LIBS=$ac_func_search_save_LIBS
13680 fi
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_open_session" >&5
13682 $as_echo "$ac_cv_search_pam_open_session" >&6; }
13683 ac_res=$ac_cv_search_pam_open_session
13684 if test "$ac_res" != no; then :
13685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13686 ac_fn_c_check_func "$LINENO" "pam_open_session" "ac_cv_func_pam_open_session"
13687 if test "x$ac_cv_func_pam_open_session" = xyes; then :
13688
13689 $as_echo "#define USE_PAM 1" >>confdefs.h
13690
13691
13692 fi
13693
13694 else
13695 if test "x$USE_PAM" = "xyes"; then :
13696 as_fn_error $? "PAM support requested, but pam_open_session not found." "$LINENO" 5
13697
13698 fi
13699
13700 fi
13701
13702 fi
13703
13704 # Check for Security-Enhanced Linux (SELinux) support
13705
13706 # Check whether --with-selinux was given.
13707 if test "${with_selinux+set}" = set; then :
13708 withval=$with_selinux; USE_SELINUX=$withval
13709 else
13710 USE_SELINUX=no
13711 fi
13712
13713 if test "x$USE_SELINUX" != "xno" ; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing is_selinux_enabled" >&5
13715 $as_echo_n "checking for library containing is_selinux_enabled... " >&6; }
13716 if ${ac_cv_search_is_selinux_enabled+:} false; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 ac_func_search_save_LIBS=$LIBS
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722
13723 /* Override any GCC internal prototype to avoid an error.
13724 Use char because int might match the return type of a GCC
13725 builtin and then its argument prototype would still apply. */
13726 #ifdef __cplusplus
13727 extern "C"
13728 #endif
13729 char is_selinux_enabled ();
13730 int
13731 main ()
13732 {
13733 return is_selinux_enabled ();
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 for ac_lib in '' selinux; do
13739 if test -z "$ac_lib"; then
13740 ac_res="none required"
13741 else
13742 ac_res=-l$ac_lib
13743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13744 fi
13745 if ac_fn_c_try_link "$LINENO"; then :
13746 ac_cv_search_is_selinux_enabled=$ac_res
13747 fi
13748 rm -f core conftest.err conftest.$ac_objext \
13749 conftest$ac_exeext
13750 if ${ac_cv_search_is_selinux_enabled+:} false; then :
13751 break
13752 fi
13753 done
13754 if ${ac_cv_search_is_selinux_enabled+:} false; then :
13755
13756 else
13757 ac_cv_search_is_selinux_enabled=no
13758 fi
13759 rm conftest.$ac_ext
13760 LIBS=$ac_func_search_save_LIBS
13761 fi
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_is_selinux_enabled" >&5
13763 $as_echo "$ac_cv_search_is_selinux_enabled" >&6; }
13764 ac_res=$ac_cv_search_is_selinux_enabled
13765 if test "$ac_res" != no; then :
13766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13767 ac_fn_c_check_func "$LINENO" "is_selinux_enabled" "ac_cv_func_is_selinux_enabled"
13768 if test "x$ac_cv_func_is_selinux_enabled" = xyes; then :
13769
13770 $as_echo "#define USE_SELINUX 1" >>confdefs.h
13771
13772
13773 fi
13774
13775 else
13776 if test "x$USE_SELINUX" = "xyes"; then :
13777 as_fn_error $? "SELinux support requested, but is_selinux_enabled not found." "$LINENO" 5
13778
13779 fi
13780
13781 fi
13782
13783 fi
13784
13785 # Check whether to install systemd unit files, as suggested in daemon(7).
13786
13787 # Check whether --with-systemdsystemunitdir was given.
13788 if test "${with_systemdsystemunitdir+set}" = set; then :
13789 withval=$with_systemdsystemunitdir;
13790 else
13791 with_systemdsystemunitdir=auto
13792 fi
13793
13794 if test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"; then :
13795
13796 def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
13797
13798 if test "x$def_systemdsystemunitdir" = "x"; then :
13799
13800 if test "x$with_systemdsystemunitdir" = "xyes"; then :
13801
13802 as_fn_error $? "systemd support requested but pkg-config unable to query systemd package" "$LINENO" 5
13803
13804 fi
13805 with_systemdsystemunitdir=no
13806
13807 else
13808
13809 with_systemdsystemunitdir=$def_systemdsystemunitdir
13810
13811 fi
13812
13813 fi
13814 if test "x$with_systemdsystemunitdir" != "xno"; then :
13815
13816 systemdsystemunitdir=$with_systemdsystemunitdir
13817
13818
13819 fi
13820 if test "x$with_systemdsystemunitdir" != "xno"; then
13821 HAVE_SYSTEMD_TRUE=
13822 HAVE_SYSTEMD_FALSE='#'
13823 else
13824 HAVE_SYSTEMD_TRUE='#'
13825 HAVE_SYSTEMD_FALSE=
13826 fi
13827
13828
13829 # FIXME: Find better test for which OS'es use su -m - for now, just try to
13830 # mirror the Imakefile setting of:
13831 # if defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) || defined(FreeBSDArchitecture) || defined(DarwinArchitecture)
13832
13833
13834 case $host_os in
13835 linux*|gnu*|*-gnu)
13836 SU="su"
13837 ;;
13838 darwin*)
13839 SU="su -m"
13840 ;;
13841 *bsd*|dragonfly*)
13842 SU="su -m"
13843 ;;
13844 solaris*|sysv4*)
13845 SU="su"
13846 ;;
13847 *)
13848 SU="su"
13849 ;;
13850 esac
13851
13852
13853 # Define a configure option to locate a special file (/dev/random or /dev/urandom)
13854 # that serves as a random or a pseudorandom number generator
13855
13856 # Check whether --with-random-device was given.
13857 if test "${with_random_device+set}" = set; then :
13858 withval=$with_random_device; USE_DEVICE="$withval"
13859 else
13860 USE_DEVICE="auto"
13861 fi
13862
13863 if test x$USE_DEVICE != xno ; then
13864 if test x$USE_DEVICE = xyes -o x$USE_DEVICE = xauto ; then
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
13866 $as_echo_n "checking for /dev/urandom... " >&6; }
13867 if ${ac_cv_file__dev_urandom+:} false; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 test "$cross_compiling" = yes &&
13871 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13872 if test -r "/dev/urandom"; then
13873 ac_cv_file__dev_urandom=yes
13874 else
13875 ac_cv_file__dev_urandom=no
13876 fi
13877 fi
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
13879 $as_echo "$ac_cv_file__dev_urandom" >&6; }
13880 if test "x$ac_cv_file__dev_urandom" = xyes; then :
13881 DEV_RANDOM=/dev/urandom
13882 else
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
13884 $as_echo_n "checking for /dev/random... " >&6; }
13885 if ${ac_cv_file__dev_random+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 test "$cross_compiling" = yes &&
13889 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13890 if test -r "/dev/random"; then
13891 ac_cv_file__dev_random=yes
13892 else
13893 ac_cv_file__dev_random=no
13894 fi
13895 fi
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
13897 $as_echo "$ac_cv_file__dev_random" >&6; }
13898 if test "x$ac_cv_file__dev_random" = xyes; then :
13899 DEV_RANDOM=/dev/random
13900 else
13901 if test "x$USE_DEVICE" = "xyes"; then :
13902 as_fn_error $? "random device support requested, but no random device was found." "$LINENO" 5
13903
13904 fi
13905
13906 fi
13907
13908
13909 fi
13910
13911 else
13912 # assume the user input is a valid path to a random number generator
13913 DEV_RANDOM=$USE_DEVICE
13914 fi
13915 if test x$DEV_RANDOM != x ; then
13916
13917 cat >>confdefs.h <<_ACEOF
13918 #define DEV_RANDOM "$DEV_RANDOM"
13919 _ACEOF
13920
13921 fi
13922 fi
13923
13924
13925 # FIXME: find out how to check for these things. Note that Kerberos was
13926 # turned off everywhere but on OpenBSD.
13927 if false; then
13928 HAS_KERBEROS_FIVE_TRUE=
13929 HAS_KERBEROS_FIVE_FALSE='#'
13930 else
13931 HAS_KERBEROS_FIVE_TRUE='#'
13932 HAS_KERBEROS_FIVE_FALSE=
13933 fi
13934
13935
13936
13937 # Figure out where everything goes in the filesystem
13938
13939
13940 # Check whether --with-xdmlibdir was given.
13941 if test "${with_xdmlibdir+set}" = set; then :
13942 withval=$with_xdmlibdir; XDMLIBDIR="$withval"
13943 else
13944 XDMLIBDIR="${libdir}/X11/xdm"
13945 fi
13946
13947
13948
13949
13950 # Check whether --with-xdmconfigdir was given.
13951 if test "${with_xdmconfigdir+set}" = set; then :
13952 withval=$with_xdmconfigdir; XDMCONFIGDIR="$withval"
13953 else
13954 XDMCONFIGDIR="${XDMLIBDIR}"
13955 fi
13956
13957
13958
13959
13960 # Check whether --with-xdmscriptdir was given.
13961 if test "${with_xdmscriptdir+set}" = set; then :
13962 withval=$with_xdmscriptdir; XDMSCRIPTDIR="$withval"
13963 else
13964 XDMSCRIPTDIR="${XDMLIBDIR}"
13965 fi
13966
13967
13968
13969
13970 # Check whether --with-logdir was given.
13971 if test "${with_logdir+set}" = set; then :
13972 withval=$with_logdir; XDMLOGDIR="$withval"
13973 else
13974 XDMLOGDIR="/var/log"
13975 fi
13976
13977
13978
13979
13980 # Check whether --with-piddir was given.
13981 if test "${with_piddir+set}" = set; then :
13982 withval=$with_piddir; XDMPIDDIR="$withval"
13983 else
13984 XDMPIDDIR="/var/run"
13985 fi
13986
13987
13988
13989
13990 # Check whether --with-default-vt was given.
13991 if test "${with_default_vt+set}" = set; then :
13992 withval=$with_default_vt; DEFAULTVT="$withval"
13993 else
13994 DEFAULTVT=""
13995 fi
13996
13997
13998
13999
14000 # Check whether --with-config-type was given.
14001 if test "${with_config_type+set}" = set; then :
14002 withval=$with_config_type; SERVERSTYPE="$withval"
14003 else
14004 SERVERSTYPE="ws"
14005 fi
14006
14007
14008
14009 # Ideally we'd just pull out UTMP_FILE & WTMP_FILE from <utmp.h>
14010 # but that's not easy to do in autoconf
14011
14012 # Check whether --with-utmp_file was given.
14013 if test "${with_utmp_file+set}" = set; then :
14014 withval=$with_utmp_file; UTMP_FILE="$withval"
14015 fi
14016
14017 if test "x$UTMP_FILE" = "xyes" ; then
14018 as_fn_error $? "path was not specified to --with-utmp-file" "$LINENO" 5
14019 fi
14020 if test "x$UTMP_FILE" = "x" ; then
14021 for UTMP_FILE in /var/adm/utmpx /var/run/utmp /var/log/utmp /var/adm/utmp /usr/adm/utmp /etc/utmp ; do
14022 as_ac_File=`$as_echo "ac_cv_file_$UTMP_FILE" | $as_tr_sh`
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $UTMP_FILE" >&5
14024 $as_echo_n "checking for $UTMP_FILE... " >&6; }
14025 if eval \${$as_ac_File+:} false; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 test "$cross_compiling" = yes &&
14029 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14030 if test -r "$UTMP_FILE"; then
14031 eval "$as_ac_File=yes"
14032 else
14033 eval "$as_ac_File=no"
14034 fi
14035 fi
14036 eval ac_res=\$$as_ac_File
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14038 $as_echo "$ac_res" >&6; }
14039 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
14040 break
14041 else
14042 UTMP_FILE=""
14043 fi
14044
14045 done
14046 if test "x$UTMP_FILE" = "x" ; then
14047 UTMP_FILE="/var/run/utmp"
14048 fi
14049 fi
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to file listing current logins for sessreg" >&5
14051 $as_echo_n "checking for path to file listing current logins for sessreg... " >&6; }
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UTMP_FILE" >&5
14053 $as_echo "$UTMP_FILE" >&6; }
14054
14055
14056
14057 # Check whether --with-wtmp_file was given.
14058 if test "${with_wtmp_file+set}" = set; then :
14059 withval=$with_wtmp_file; WTMP_FILE="$withval"
14060 fi
14061
14062 if test "x$WTMP_FILE" = "xyes" ; then
14063 as_fn_error $? "path was not specified to --with-wtmp-file" "$LINENO" 5
14064 fi
14065 if test "x$WTMP_FILE" = "x" ; then
14066 for WTMP_FILE in /var/adm/wtmpx /var/log/wtmp /var/adm/wtmp /usr/adm/wtmp /etc/wtmp ; do
14067 as_ac_File=`$as_echo "ac_cv_file_$WTMP_FILE" | $as_tr_sh`
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $WTMP_FILE" >&5
14069 $as_echo_n "checking for $WTMP_FILE... " >&6; }
14070 if eval \${$as_ac_File+:} false; then :
14071 $as_echo_n "(cached) " >&6
14072 else
14073 test "$cross_compiling" = yes &&
14074 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14075 if test -r "$WTMP_FILE"; then
14076 eval "$as_ac_File=yes"
14077 else
14078 eval "$as_ac_File=no"
14079 fi
14080 fi
14081 eval ac_res=\$$as_ac_File
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14083 $as_echo "$ac_res" >&6; }
14084 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
14085 break
14086 else
14087 WTMP_FILE=""
14088 fi
14089
14090 done
14091 if test "x$WTMP_FILE" = "x" ; then
14092 WTMP_FILE="/var/log/wtmp"
14093 fi
14094 fi
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to file listing login history for sessreg" >&5
14096 $as_echo_n "checking for path to file listing login history for sessreg... " >&6; }
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WTMP_FILE" >&5
14098 $as_echo "$WTMP_FILE" >&6; }
14099
14100
14101 case $host_os in
14102 *sco*|*solaris*)
14103 SHELL_CMD="/bin/ksh" ;;
14104 *) SHELL_CMD="/bin/sh" ;;
14105 esac
14106
14107
14108 # Checks for pkg-config packages
14109
14110
14111 pkg_failed=no
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDM" >&5
14113 $as_echo_n "checking for XDM... " >&6; }
14114
14115 if test -n "$XDM_CFLAGS"; then
14116 pkg_cv_XDM_CFLAGS="$XDM_CFLAGS"
14117 elif test -n "$PKG_CONFIG"; then
14118 if test -n "$PKG_CONFIG" && \
14119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau\""; } >&5
14120 ($PKG_CONFIG --exists --print-errors "xmu x11 xau") 2>&5
14121 ac_status=$?
14122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14123 test $ac_status = 0; }; then
14124 pkg_cv_XDM_CFLAGS=`$PKG_CONFIG --cflags "xmu x11 xau" 2>/dev/null`
14125 test "x$?" != "x0" && pkg_failed=yes
14126 else
14127 pkg_failed=yes
14128 fi
14129 else
14130 pkg_failed=untried
14131 fi
14132 if test -n "$XDM_LIBS"; then
14133 pkg_cv_XDM_LIBS="$XDM_LIBS"
14134 elif test -n "$PKG_CONFIG"; then
14135 if test -n "$PKG_CONFIG" && \
14136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau\""; } >&5
14137 ($PKG_CONFIG --exists --print-errors "xmu x11 xau") 2>&5
14138 ac_status=$?
14139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14140 test $ac_status = 0; }; then
14141 pkg_cv_XDM_LIBS=`$PKG_CONFIG --libs "xmu x11 xau" 2>/dev/null`
14142 test "x$?" != "x0" && pkg_failed=yes
14143 else
14144 pkg_failed=yes
14145 fi
14146 else
14147 pkg_failed=untried
14148 fi
14149
14150
14151
14152 if test $pkg_failed = yes; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154 $as_echo "no" >&6; }
14155
14156 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14157 _pkg_short_errors_supported=yes
14158 else
14159 _pkg_short_errors_supported=no
14160 fi
14161 if test $_pkg_short_errors_supported = yes; then
14162 XDM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmu x11 xau" 2>&1`
14163 else
14164 XDM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmu x11 xau" 2>&1`
14165 fi
14166 # Put the nasty error message in config.log where it belongs
14167 echo "$XDM_PKG_ERRORS" >&5
14168
14169 as_fn_error $? "Package requirements (xmu x11 xau) were not met:
14170
14171 $XDM_PKG_ERRORS
14172
14173 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14174 installed software in a non-standard prefix.
14175
14176 Alternatively, you may set the environment variables XDM_CFLAGS
14177 and XDM_LIBS to avoid the need to call pkg-config.
14178 See the pkg-config man page for more details." "$LINENO" 5
14179 elif test $pkg_failed = untried; then
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181 $as_echo "no" >&6; }
14182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14184 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14185 is in your PATH or set the PKG_CONFIG environment variable to the full
14186 path to pkg-config.
14187
14188 Alternatively, you may set the environment variables XDM_CFLAGS
14189 and XDM_LIBS to avoid the need to call pkg-config.
14190 See the pkg-config man page for more details.
14191
14192 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14193 See \`config.log' for more details" "$LINENO" 5; }
14194 else
14195 XDM_CFLAGS=$pkg_cv_XDM_CFLAGS
14196 XDM_LIBS=$pkg_cv_XDM_LIBS
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14198 $as_echo "yes" >&6; }
14199
14200 fi
14201
14202 if test -n "$PKG_CONFIG" && \
14203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
14204 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
14205 ac_status=$?
14206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14207 test $ac_status = 0; }; then
14208
14209
14210 $as_echo "#define USE_XINERAMA 1" >>confdefs.h
14211
14212
14213 pkg_failed=no
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
14215 $as_echo_n "checking for XINERAMA... " >&6; }
14216
14217 if test -n "$XINERAMA_CFLAGS"; then
14218 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
14219 elif test -n "$PKG_CONFIG"; then
14220 if test -n "$PKG_CONFIG" && \
14221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
14222 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
14223 ac_status=$?
14224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }; then
14226 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`
14227 test "x$?" != "x0" && pkg_failed=yes
14228 else
14229 pkg_failed=yes
14230 fi
14231 else
14232 pkg_failed=untried
14233 fi
14234 if test -n "$XINERAMA_LIBS"; then
14235 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
14236 elif test -n "$PKG_CONFIG"; then
14237 if test -n "$PKG_CONFIG" && \
14238 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
14239 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
14240 ac_status=$?
14241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14242 test $ac_status = 0; }; then
14243 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null`
14244 test "x$?" != "x0" && pkg_failed=yes
14245 else
14246 pkg_failed=yes
14247 fi
14248 else
14249 pkg_failed=untried
14250 fi
14251
14252
14253
14254 if test $pkg_failed = yes; then
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256 $as_echo "no" >&6; }
14257
14258 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14259 _pkg_short_errors_supported=yes
14260 else
14261 _pkg_short_errors_supported=no
14262 fi
14263 if test $_pkg_short_errors_supported = yes; then
14264 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama" 2>&1`
14265 else
14266 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama" 2>&1`
14267 fi
14268 # Put the nasty error message in config.log where it belongs
14269 echo "$XINERAMA_PKG_ERRORS" >&5
14270
14271 as_fn_error $? "Package requirements (xinerama) were not met:
14272
14273 $XINERAMA_PKG_ERRORS
14274
14275 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14276 installed software in a non-standard prefix.
14277
14278 Alternatively, you may set the environment variables XINERAMA_CFLAGS
14279 and XINERAMA_LIBS to avoid the need to call pkg-config.
14280 See the pkg-config man page for more details." "$LINENO" 5
14281 elif test $pkg_failed = untried; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 $as_echo "no" >&6; }
14284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14286 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14287 is in your PATH or set the PKG_CONFIG environment variable to the full
14288 path to pkg-config.
14289
14290 Alternatively, you may set the environment variables XINERAMA_CFLAGS
14291 and XINERAMA_LIBS to avoid the need to call pkg-config.
14292 See the pkg-config man page for more details.
14293
14294 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14295 See \`config.log' for more details" "$LINENO" 5; }
14296 else
14297 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
14298 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14300 $as_echo "yes" >&6; }
14301
14302 fi
14303 CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XINERAMA_CFLAGS"
14304 CHOOSER_LIBS="$CHOOSER_LIBS $XINERAMA_LIBS"
14305 GREETER_CFLAGS="$GREETER_CFLAGS $XINERAMA_CFLAGS"
14306 GREETER_LIBS="$GREETER_LIBS $XINERAMA_LIBS"
14307
14308 fi
14309
14310 # Xft text drawing for the greeter screen
14311
14312 # Check whether --with-xft was given.
14313 if test "${with_xft+set}" = set; then :
14314 withval=$with_xft; USE_XFT="$withval"
14315 else
14316 if test -n "$PKG_CONFIG" && \
14317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
14318 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
14319 ac_status=$?
14320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14321 test $ac_status = 0; }; then
14322 USE_XFT="yes"
14323 else
14324 USE_XFT="no"
14325 fi
14326 fi
14327
14328
14329 if test "x$USE_XFT" = "xyes" ; then
14330
14331 pkg_failed=no
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
14333 $as_echo_n "checking for XFT... " >&6; }
14334
14335 if test -n "$XFT_CFLAGS"; then
14336 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
14337 elif test -n "$PKG_CONFIG"; then
14338 if test -n "$PKG_CONFIG" && \
14339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
14340 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
14341 ac_status=$?
14342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343 test $ac_status = 0; }; then
14344 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
14345 test "x$?" != "x0" && pkg_failed=yes
14346 else
14347 pkg_failed=yes
14348 fi
14349 else
14350 pkg_failed=untried
14351 fi
14352 if test -n "$XFT_LIBS"; then
14353 pkg_cv_XFT_LIBS="$XFT_LIBS"
14354 elif test -n "$PKG_CONFIG"; then
14355 if test -n "$PKG_CONFIG" && \
14356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
14357 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
14358 ac_status=$?
14359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14360 test $ac_status = 0; }; then
14361 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
14362 test "x$?" != "x0" && pkg_failed=yes
14363 else
14364 pkg_failed=yes
14365 fi
14366 else
14367 pkg_failed=untried
14368 fi
14369
14370
14371
14372 if test $pkg_failed = yes; then
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14374 $as_echo "no" >&6; }
14375
14376 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14377 _pkg_short_errors_supported=yes
14378 else
14379 _pkg_short_errors_supported=no
14380 fi
14381 if test $_pkg_short_errors_supported = yes; then
14382 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft" 2>&1`
14383 else
14384 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft" 2>&1`
14385 fi
14386 # Put the nasty error message in config.log where it belongs
14387 echo "$XFT_PKG_ERRORS" >&5
14388
14389 as_fn_error $? "Package requirements (xft) were not met:
14390
14391 $XFT_PKG_ERRORS
14392
14393 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14394 installed software in a non-standard prefix.
14395
14396 Alternatively, you may set the environment variables XFT_CFLAGS
14397 and XFT_LIBS to avoid the need to call pkg-config.
14398 See the pkg-config man page for more details." "$LINENO" 5
14399 elif test $pkg_failed = untried; then
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401 $as_echo "no" >&6; }
14402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14404 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14405 is in your PATH or set the PKG_CONFIG environment variable to the full
14406 path to pkg-config.
14407
14408 Alternatively, you may set the environment variables XFT_CFLAGS
14409 and XFT_LIBS to avoid the need to call pkg-config.
14410 See the pkg-config man page for more details.
14411
14412 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14413 See \`config.log' for more details" "$LINENO" 5; }
14414 else
14415 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
14416 XFT_LIBS=$pkg_cv_XFT_LIBS
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14418 $as_echo "yes" >&6; }
14419
14420 fi
14421 GREETER_CFLAGS="$GREETER_CFLAGS $XFT_CFLAGS"
14422 GREETER_LIBS="$GREETER_LIBS $XFT_LIBS"
14423
14424 $as_echo "#define USE_XFT 1" >>confdefs.h
14425
14426 fi
14427
14428 # XPM logos for the greeter screen
14429 # Check whether --enable-xpm-logos was given.
14430 if test "${enable_xpm_logos+set}" = set; then :
14431 enableval=$enable_xpm_logos; USE_XPM="$enableval"
14432 else
14433 if test -n "$PKG_CONFIG" && \
14434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
14435 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
14436 ac_status=$?
14437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14438 test $ac_status = 0; }; then
14439 USE_XPM="yes"
14440 else
14441 USE_XPM="no"
14442 fi
14443 fi
14444
14445 if test "x$USE_XPM" = "xyes" ; then
14446
14447 pkg_failed=no
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
14449 $as_echo_n "checking for XPM... " >&6; }
14450
14451 if test -n "$XPM_CFLAGS"; then
14452 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
14453 elif test -n "$PKG_CONFIG"; then
14454 if test -n "$PKG_CONFIG" && \
14455 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
14456 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
14457 ac_status=$?
14458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14459 test $ac_status = 0; }; then
14460 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null`
14461 test "x$?" != "x0" && pkg_failed=yes
14462 else
14463 pkg_failed=yes
14464 fi
14465 else
14466 pkg_failed=untried
14467 fi
14468 if test -n "$XPM_LIBS"; then
14469 pkg_cv_XPM_LIBS="$XPM_LIBS"
14470 elif test -n "$PKG_CONFIG"; then
14471 if test -n "$PKG_CONFIG" && \
14472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
14473 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
14474 ac_status=$?
14475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14476 test $ac_status = 0; }; then
14477 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null`
14478 test "x$?" != "x0" && pkg_failed=yes
14479 else
14480 pkg_failed=yes
14481 fi
14482 else
14483 pkg_failed=untried
14484 fi
14485
14486
14487
14488 if test $pkg_failed = yes; then
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14491
14492 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14493 _pkg_short_errors_supported=yes
14494 else
14495 _pkg_short_errors_supported=no
14496 fi
14497 if test $_pkg_short_errors_supported = yes; then
14498 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1`
14499 else
14500 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1`
14501 fi
14502 # Put the nasty error message in config.log where it belongs
14503 echo "$XPM_PKG_ERRORS" >&5
14504
14505 as_fn_error $? "Package requirements (xpm) were not met:
14506
14507 $XPM_PKG_ERRORS
14508
14509 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14510 installed software in a non-standard prefix.
14511
14512 Alternatively, you may set the environment variables XPM_CFLAGS
14513 and XPM_LIBS to avoid the need to call pkg-config.
14514 See the pkg-config man page for more details." "$LINENO" 5
14515 elif test $pkg_failed = untried; then
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517 $as_echo "no" >&6; }
14518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14520 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14521 is in your PATH or set the PKG_CONFIG environment variable to the full
14522 path to pkg-config.
14523
14524 Alternatively, you may set the environment variables XPM_CFLAGS
14525 and XPM_LIBS to avoid the need to call pkg-config.
14526 See the pkg-config man page for more details.
14527
14528 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14529 See \`config.log' for more details" "$LINENO" 5; }
14530 else
14531 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
14532 XPM_LIBS=$pkg_cv_XPM_LIBS
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14534 $as_echo "yes" >&6; }
14535
14536 fi
14537 GREETER_CFLAGS="$GREETER_CFLAGS $XPM_CFLAGS"
14538 GREETER_LIBS="$GREETER_LIBS $XPM_LIBS"
14539
14540 $as_echo "#define XPM 1" >>confdefs.h
14541
14542 fi
14543 if test "x$USE_XPM" = "xyes"; then
14544 USE_XPM_TRUE=
14545 USE_XPM_FALSE='#'
14546 else
14547 USE_XPM_TRUE='#'
14548 USE_XPM_FALSE=
14549 fi
14550
14551
14552
14553 # Check whether --with-color-pixmap was given.
14554 if test "${with_color_pixmap+set}" = set; then :
14555 withval=$with_color_pixmap; XDM_PIXMAP="$withval"
14556 else
14557 XDM_PIXMAP="xorg.xpm"
14558 fi
14559
14560
14561 # Check whether --with-bw-pixmap was given.
14562 if test "${with_bw_pixmap+set}" = set; then :
14563 withval=$with_bw_pixmap; XDM_BWPIXMAP="$withval"
14564 else
14565 XDM_BWPIXMAP="xorg-bw.xpm"
14566 fi
14567
14568
14569 # Check whether --with-pixmapdir was given.
14570 if test "${with_pixmapdir+set}" = set; then :
14571 withval=$with_pixmapdir; XDM_PIXMAPDIR="$withval"
14572 else
14573 XDM_PIXMAPDIR='${XDMLIBDIR}/pixmaps'
14574 fi
14575
14576
14577
14578
14579
14580
14581 # Packages used by multiple programs
14582
14583
14584 pkg_failed=no
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDM_TOOLKIT" >&5
14586 $as_echo_n "checking for XDM_TOOLKIT... " >&6; }
14587
14588 if test -n "$XDM_TOOLKIT_CFLAGS"; then
14589 pkg_cv_XDM_TOOLKIT_CFLAGS="$XDM_TOOLKIT_CFLAGS"
14590 elif test -n "$PKG_CONFIG"; then
14591 if test -n "$PKG_CONFIG" && \
14592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
14593 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
14594 ac_status=$?
14595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14596 test $ac_status = 0; }; then
14597 pkg_cv_XDM_TOOLKIT_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
14598 test "x$?" != "x0" && pkg_failed=yes
14599 else
14600 pkg_failed=yes
14601 fi
14602 else
14603 pkg_failed=untried
14604 fi
14605 if test -n "$XDM_TOOLKIT_LIBS"; then
14606 pkg_cv_XDM_TOOLKIT_LIBS="$XDM_TOOLKIT_LIBS"
14607 elif test -n "$PKG_CONFIG"; then
14608 if test -n "$PKG_CONFIG" && \
14609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
14610 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
14611 ac_status=$?
14612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14613 test $ac_status = 0; }; then
14614 pkg_cv_XDM_TOOLKIT_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
14615 test "x$?" != "x0" && pkg_failed=yes
14616 else
14617 pkg_failed=yes
14618 fi
14619 else
14620 pkg_failed=untried
14621 fi
14622
14623
14624
14625 if test $pkg_failed = yes; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627 $as_echo "no" >&6; }
14628
14629 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14630 _pkg_short_errors_supported=yes
14631 else
14632 _pkg_short_errors_supported=no
14633 fi
14634 if test $_pkg_short_errors_supported = yes; then
14635 XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7" 2>&1`
14636 else
14637 XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7" 2>&1`
14638 fi
14639 # Put the nasty error message in config.log where it belongs
14640 echo "$XDM_TOOLKIT_PKG_ERRORS" >&5
14641
14642 as_fn_error $? "Package requirements (xaw7) were not met:
14643
14644 $XDM_TOOLKIT_PKG_ERRORS
14645
14646 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14647 installed software in a non-standard prefix.
14648
14649 Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS
14650 and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config.
14651 See the pkg-config man page for more details." "$LINENO" 5
14652 elif test $pkg_failed = untried; then
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654 $as_echo "no" >&6; }
14655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14657 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14658 is in your PATH or set the PKG_CONFIG environment variable to the full
14659 path to pkg-config.
14660
14661 Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS
14662 and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config.
14663 See the pkg-config man page for more details.
14664
14665 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14666 See \`config.log' for more details" "$LINENO" 5; }
14667 else
14668 XDM_TOOLKIT_CFLAGS=$pkg_cv_XDM_TOOLKIT_CFLAGS
14669 XDM_TOOLKIT_LIBS=$pkg_cv_XDM_TOOLKIT_LIBS
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14671 $as_echo "yes" >&6; }
14672
14673 fi
14674
14675 pkg_failed=no
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMCP" >&5
14677 $as_echo_n "checking for DMCP... " >&6; }
14678
14679 if test -n "$DMCP_CFLAGS"; then
14680 pkg_cv_DMCP_CFLAGS="$DMCP_CFLAGS"
14681 elif test -n "$PKG_CONFIG"; then
14682 if test -n "$PKG_CONFIG" && \
14683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
14684 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
14685 ac_status=$?
14686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14687 test $ac_status = 0; }; then
14688 pkg_cv_DMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
14689 test "x$?" != "x0" && pkg_failed=yes
14690 else
14691 pkg_failed=yes
14692 fi
14693 else
14694 pkg_failed=untried
14695 fi
14696 if test -n "$DMCP_LIBS"; then
14697 pkg_cv_DMCP_LIBS="$DMCP_LIBS"
14698 elif test -n "$PKG_CONFIG"; then
14699 if test -n "$PKG_CONFIG" && \
14700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
14701 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
14702 ac_status=$?
14703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14704 test $ac_status = 0; }; then
14705 pkg_cv_DMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
14706 test "x$?" != "x0" && pkg_failed=yes
14707 else
14708 pkg_failed=yes
14709 fi
14710 else
14711 pkg_failed=untried
14712 fi
14713
14714
14715
14716 if test $pkg_failed = yes; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14718 $as_echo "no" >&6; }
14719
14720 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14721 _pkg_short_errors_supported=yes
14722 else
14723 _pkg_short_errors_supported=no
14724 fi
14725 if test $_pkg_short_errors_supported = yes; then
14726 DMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
14727 else
14728 DMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
14729 fi
14730 # Put the nasty error message in config.log where it belongs
14731 echo "$DMCP_PKG_ERRORS" >&5
14732
14733 as_fn_error $? "Package requirements (xdmcp) were not met:
14734
14735 $DMCP_PKG_ERRORS
14736
14737 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14738 installed software in a non-standard prefix.
14739
14740 Alternatively, you may set the environment variables DMCP_CFLAGS
14741 and DMCP_LIBS to avoid the need to call pkg-config.
14742 See the pkg-config man page for more details." "$LINENO" 5
14743 elif test $pkg_failed = untried; then
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745 $as_echo "no" >&6; }
14746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14748 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14749 is in your PATH or set the PKG_CONFIG environment variable to the full
14750 path to pkg-config.
14751
14752 Alternatively, you may set the environment variables DMCP_CFLAGS
14753 and DMCP_LIBS to avoid the need to call pkg-config.
14754 See the pkg-config man page for more details.
14755
14756 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14757 See \`config.log' for more details" "$LINENO" 5; }
14758 else
14759 DMCP_CFLAGS=$pkg_cv_DMCP_CFLAGS
14760 DMCP_LIBS=$pkg_cv_DMCP_LIBS
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14762 $as_echo "yes" >&6; }
14763
14764 fi
14765
14766 pkg_failed=no
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
14768 $as_echo_n "checking for XLIB... " >&6; }
14769
14770 if test -n "$XLIB_CFLAGS"; then
14771 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
14772 elif test -n "$PKG_CONFIG"; then
14773 if test -n "$PKG_CONFIG" && \
14774 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14775 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
14776 ac_status=$?
14777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14778 test $ac_status = 0; }; then
14779 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
14780 test "x$?" != "x0" && pkg_failed=yes
14781 else
14782 pkg_failed=yes
14783 fi
14784 else
14785 pkg_failed=untried
14786 fi
14787 if test -n "$XLIB_LIBS"; then
14788 pkg_cv_XLIB_LIBS="$XLIB_LIBS"
14789 elif test -n "$PKG_CONFIG"; then
14790 if test -n "$PKG_CONFIG" && \
14791 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14792 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
14793 ac_status=$?
14794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14795 test $ac_status = 0; }; then
14796 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
14797 test "x$?" != "x0" && pkg_failed=yes
14798 else
14799 pkg_failed=yes
14800 fi
14801 else
14802 pkg_failed=untried
14803 fi
14804
14805
14806
14807 if test $pkg_failed = yes; then
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14809 $as_echo "no" >&6; }
14810
14811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14812 _pkg_short_errors_supported=yes
14813 else
14814 _pkg_short_errors_supported=no
14815 fi
14816 if test $_pkg_short_errors_supported = yes; then
14817 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
14818 else
14819 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
14820 fi
14821 # Put the nasty error message in config.log where it belongs
14822 echo "$XLIB_PKG_ERRORS" >&5
14823
14824 as_fn_error $? "Package requirements (x11) were not met:
14825
14826 $XLIB_PKG_ERRORS
14827
14828 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14829 installed software in a non-standard prefix.
14830
14831 Alternatively, you may set the environment variables XLIB_CFLAGS
14832 and XLIB_LIBS to avoid the need to call pkg-config.
14833 See the pkg-config man page for more details." "$LINENO" 5
14834 elif test $pkg_failed = untried; then
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14836 $as_echo "no" >&6; }
14837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14839 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14840 is in your PATH or set the PKG_CONFIG environment variable to the full
14841 path to pkg-config.
14842
14843 Alternatively, you may set the environment variables XLIB_CFLAGS
14844 and XLIB_LIBS to avoid the need to call pkg-config.
14845 See the pkg-config man page for more details.
14846
14847 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14848 See \`config.log' for more details" "$LINENO" 5; }
14849 else
14850 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
14851 XLIB_LIBS=$pkg_cv_XLIB_LIBS
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14853 $as_echo "yes" >&6; }
14854
14855 fi
14856
14857 pkg_failed=no
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTH" >&5
14859 $as_echo_n "checking for AUTH... " >&6; }
14860
14861 if test -n "$AUTH_CFLAGS"; then
14862 pkg_cv_AUTH_CFLAGS="$AUTH_CFLAGS"
14863 elif test -n "$PKG_CONFIG"; then
14864 if test -n "$PKG_CONFIG" && \
14865 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
14866 ($PKG_CONFIG --exists --print-errors "xau") 2>&5
14867 ac_status=$?
14868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14869 test $ac_status = 0; }; then
14870 pkg_cv_AUTH_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null`
14871 test "x$?" != "x0" && pkg_failed=yes
14872 else
14873 pkg_failed=yes
14874 fi
14875 else
14876 pkg_failed=untried
14877 fi
14878 if test -n "$AUTH_LIBS"; then
14879 pkg_cv_AUTH_LIBS="$AUTH_LIBS"
14880 elif test -n "$PKG_CONFIG"; then
14881 if test -n "$PKG_CONFIG" && \
14882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
14883 ($PKG_CONFIG --exists --print-errors "xau") 2>&5
14884 ac_status=$?
14885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14886 test $ac_status = 0; }; then
14887 pkg_cv_AUTH_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null`
14888 test "x$?" != "x0" && pkg_failed=yes
14889 else
14890 pkg_failed=yes
14891 fi
14892 else
14893 pkg_failed=untried
14894 fi
14895
14896
14897
14898 if test $pkg_failed = yes; then
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14900 $as_echo "no" >&6; }
14901
14902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14903 _pkg_short_errors_supported=yes
14904 else
14905 _pkg_short_errors_supported=no
14906 fi
14907 if test $_pkg_short_errors_supported = yes; then
14908 AUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xau" 2>&1`
14909 else
14910 AUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xau" 2>&1`
14911 fi
14912 # Put the nasty error message in config.log where it belongs
14913 echo "$AUTH_PKG_ERRORS" >&5
14914
14915 as_fn_error $? "Package requirements (xau) were not met:
14916
14917 $AUTH_PKG_ERRORS
14918
14919 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14920 installed software in a non-standard prefix.
14921
14922 Alternatively, you may set the environment variables AUTH_CFLAGS
14923 and AUTH_LIBS to avoid the need to call pkg-config.
14924 See the pkg-config man page for more details." "$LINENO" 5
14925 elif test $pkg_failed = untried; then
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14930 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14931 is in your PATH or set the PKG_CONFIG environment variable to the full
14932 path to pkg-config.
14933
14934 Alternatively, you may set the environment variables AUTH_CFLAGS
14935 and AUTH_LIBS to avoid the need to call pkg-config.
14936 See the pkg-config man page for more details.
14937
14938 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14939 See \`config.log' for more details" "$LINENO" 5; }
14940 else
14941 AUTH_CFLAGS=$pkg_cv_AUTH_CFLAGS
14942 AUTH_LIBS=$pkg_cv_AUTH_LIBS
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14944 $as_echo "yes" >&6; }
14945
14946 fi
14947
14948 #
14949 # Greeter
14950 #
14951
14952
14953 pkg_failed=no
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMGREET" >&5
14955 $as_echo_n "checking for XDMGREET... " >&6; }
14956
14957 if test -n "$XDMGREET_CFLAGS"; then
14958 pkg_cv_XDMGREET_CFLAGS="$XDMGREET_CFLAGS"
14959 elif test -n "$PKG_CONFIG"; then
14960 if test -n "$PKG_CONFIG" && \
14961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt x11 xext\""; } >&5
14962 ($PKG_CONFIG --exists --print-errors "xt x11 xext") 2>&5
14963 ac_status=$?
14964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14965 test $ac_status = 0; }; then
14966 pkg_cv_XDMGREET_CFLAGS=`$PKG_CONFIG --cflags "xt x11 xext" 2>/dev/null`
14967 test "x$?" != "x0" && pkg_failed=yes
14968 else
14969 pkg_failed=yes
14970 fi
14971 else
14972 pkg_failed=untried
14973 fi
14974 if test -n "$XDMGREET_LIBS"; then
14975 pkg_cv_XDMGREET_LIBS="$XDMGREET_LIBS"
14976 elif test -n "$PKG_CONFIG"; then
14977 if test -n "$PKG_CONFIG" && \
14978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt x11 xext\""; } >&5
14979 ($PKG_CONFIG --exists --print-errors "xt x11 xext") 2>&5
14980 ac_status=$?
14981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14982 test $ac_status = 0; }; then
14983 pkg_cv_XDMGREET_LIBS=`$PKG_CONFIG --libs "xt x11 xext" 2>/dev/null`
14984 test "x$?" != "x0" && pkg_failed=yes
14985 else
14986 pkg_failed=yes
14987 fi
14988 else
14989 pkg_failed=untried
14990 fi
14991
14992
14993
14994 if test $pkg_failed = yes; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996 $as_echo "no" >&6; }
14997
14998 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14999 _pkg_short_errors_supported=yes
15000 else
15001 _pkg_short_errors_supported=no
15002 fi
15003 if test $_pkg_short_errors_supported = yes; then
15004 XDMGREET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt x11 xext" 2>&1`
15005 else
15006 XDMGREET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt x11 xext" 2>&1`
15007 fi
15008 # Put the nasty error message in config.log where it belongs
15009 echo "$XDMGREET_PKG_ERRORS" >&5
15010
15011 as_fn_error $? "Package requirements (xt x11 xext) were not met:
15012
15013 $XDMGREET_PKG_ERRORS
15014
15015 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15016 installed software in a non-standard prefix.
15017
15018 Alternatively, you may set the environment variables XDMGREET_CFLAGS
15019 and XDMGREET_LIBS to avoid the need to call pkg-config.
15020 See the pkg-config man page for more details." "$LINENO" 5
15021 elif test $pkg_failed = untried; then
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15023 $as_echo "no" >&6; }
15024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15026 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15027 is in your PATH or set the PKG_CONFIG environment variable to the full
15028 path to pkg-config.
15029
15030 Alternatively, you may set the environment variables XDMGREET_CFLAGS
15031 and XDMGREET_LIBS to avoid the need to call pkg-config.
15032 See the pkg-config man page for more details.
15033
15034 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15035 See \`config.log' for more details" "$LINENO" 5; }
15036 else
15037 XDMGREET_CFLAGS=$pkg_cv_XDMGREET_CFLAGS
15038 XDMGREET_LIBS=$pkg_cv_XDMGREET_LIBS
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15040 $as_echo "yes" >&6; }
15041
15042 fi
15043
15044 GREETERLIB="${XDMLIBDIR}/libXdmGreet.so"
15045
15046 prefix_NONE=
15047 exec_prefix_NONE=
15048 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15049 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15050 eval ax_define_dir="\"$GREETERLIB\""
15051 eval ax_define_dir="\"$ax_define_dir\""
15052 DEF_GREETER_LIB="$ax_define_dir"
15053
15054
15055 cat >>confdefs.h <<_ACEOF
15056 #define DEF_GREETER_LIB "$ax_define_dir"
15057 _ACEOF
15058
15059 test "$prefix_NONE" && prefix=NONE
15060 test "$exec_prefix_NONE" && exec_prefix=NONE
15061
15062
15063 XDMGREET_CFLAGS="$XDMGREET_CFLAGS $XDM_TOOLKIT_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $GREETER_CFLAGS $AUTH_CFLAGS"
15064 XDMGREET_LIBS="$XDMGREET_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS $GREETER_LIBS"
15065
15066 #
15067 # XDM
15068 #
15069
15070 XDM_CFLAGS="$XDM_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $AUTH_CFLAGS"
15071 XDM_LIBS="$XDM_LIBS $DMCP_LIBS"
15072
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
15074 $as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
15075 if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
15076 $as_echo_n "(cached) " >&6
15077 else
15078 ac_check_lib_save_LIBS=$LIBS
15079 LIBS="-lXdmcp $DMCP_LIBS $LIBS"
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15082
15083 /* Override any GCC internal prototype to avoid an error.
15084 Use char because int might match the return type of a GCC
15085 builtin and then its argument prototype would still apply. */
15086 #ifdef __cplusplus
15087 extern "C"
15088 #endif
15089 char XdmcpWrap ();
15090 int
15091 main ()
15092 {
15093 return XdmcpWrap ();
15094 ;
15095 return 0;
15096 }
15097 _ACEOF
15098 if ac_fn_c_try_link "$LINENO"; then :
15099 ac_cv_lib_Xdmcp_XdmcpWrap=yes
15100 else
15101 ac_cv_lib_Xdmcp_XdmcpWrap=no
15102 fi
15103 rm -f core conftest.err conftest.$ac_objext \
15104 conftest$ac_exeext conftest.$ac_ext
15105 LIBS=$ac_check_lib_save_LIBS
15106 fi
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
15108 $as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
15109 if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
15110 xdmauth="yes"
15111 else
15112 xdmauth="no"
15113 fi
15114
15115
15116 # Check whether --enable-xdm-auth was given.
15117 if test "${enable_xdm_auth+set}" = set; then :
15118 enableval=$enable_xdm_auth; xdmauth_enable="$enableval"
15119 else
15120 xdmauth_enable="auto"
15121 fi
15122
15123 if test "x$xdmauth_enable" = "xyes" -a "x$xdmauth" = "xno" ; then
15124 as_fn_error $? "XDM-AUTH support requested, but XdmcpWrap not found in libXdmcp." "$LINENO" 5
15125 fi
15126
15127 if test x$xdmauth = xyes -a x$xdmauth_enable != xno; then
15128 HAS_XDM_AUTH_TRUE=
15129 HAS_XDM_AUTH_FALSE='#'
15130 else
15131 HAS_XDM_AUTH_TRUE='#'
15132 HAS_XDM_AUTH_FALSE=
15133 fi
15134
15135
15136
15137
15138
15139 #
15140 # xdmshell
15141 #
15142
15143 # Check whether --enable-xdmshell was given.
15144 if test "${enable_xdmshell+set}" = set; then :
15145 enableval=$enable_xdmshell; INSTALL_XDMSHELL="$enableval"
15146 else
15147 INSTALL_XDMSHELL="no"
15148 fi
15149
15150 if test x$INSTALL_XDMSHELL = xyes; then
15151 INSTALL_XDMSHELL_TRUE=
15152 INSTALL_XDMSHELL_FALSE='#'
15153 else
15154 INSTALL_XDMSHELL_TRUE='#'
15155 INSTALL_XDMSHELL_FALSE=
15156 fi
15157
15158
15159
15160 pkg_failed=no
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5
15162 $as_echo_n "checking for XT... " >&6; }
15163
15164 if test -n "$XT_CFLAGS"; then
15165 pkg_cv_XT_CFLAGS="$XT_CFLAGS"
15166 elif test -n "$PKG_CONFIG"; then
15167 if test -n "$PKG_CONFIG" && \
15168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
15169 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
15170 ac_status=$?
15171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15172 test $ac_status = 0; }; then
15173 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
15174 test "x$?" != "x0" && pkg_failed=yes
15175 else
15176 pkg_failed=yes
15177 fi
15178 else
15179 pkg_failed=untried
15180 fi
15181 if test -n "$XT_LIBS"; then
15182 pkg_cv_XT_LIBS="$XT_LIBS"
15183 elif test -n "$PKG_CONFIG"; then
15184 if test -n "$PKG_CONFIG" && \
15185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
15186 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
15187 ac_status=$?
15188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15189 test $ac_status = 0; }; then
15190 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
15191 test "x$?" != "x0" && pkg_failed=yes
15192 else
15193 pkg_failed=yes
15194 fi
15195 else
15196 pkg_failed=untried
15197 fi
15198
15199
15200
15201 if test $pkg_failed = yes; then
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15203 $as_echo "no" >&6; }
15204
15205 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15206 _pkg_short_errors_supported=yes
15207 else
15208 _pkg_short_errors_supported=no
15209 fi
15210 if test $_pkg_short_errors_supported = yes; then
15211 XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
15212 else
15213 XT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
15214 fi
15215 # Put the nasty error message in config.log where it belongs
15216 echo "$XT_PKG_ERRORS" >&5
15217
15218 as_fn_error $? "Package requirements (xt) were not met:
15219
15220 $XT_PKG_ERRORS
15221
15222 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15223 installed software in a non-standard prefix.
15224
15225 Alternatively, you may set the environment variables XT_CFLAGS
15226 and XT_LIBS to avoid the need to call pkg-config.
15227 See the pkg-config man page for more details." "$LINENO" 5
15228 elif test $pkg_failed = untried; then
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15230 $as_echo "no" >&6; }
15231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15233 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15234 is in your PATH or set the PKG_CONFIG environment variable to the full
15235 path to pkg-config.
15236
15237 Alternatively, you may set the environment variables XT_CFLAGS
15238 and XT_LIBS to avoid the need to call pkg-config.
15239 See the pkg-config man page for more details.
15240
15241 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15242 See \`config.log' for more details" "$LINENO" 5; }
15243 else
15244 XT_CFLAGS=$pkg_cv_XT_CFLAGS
15245 XT_LIBS=$pkg_cv_XT_LIBS
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15247 $as_echo "yes" >&6; }
15248
15249 fi
15250 XDMSHELL_CFLAGS="$XDM_CFLAGS $XDM_TOOLKIT_CFLAGS $AUTH_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $XT_CFLAGS"
15251 XDMSHELL_LIBS="$XDM_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS"
15252
15253
15254
15255
15256 #
15257 # Chooser
15258 #
15259
15260 CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XDM_TOOLKIT_CFLAGS $XLIB_CFLAGS $DMCP_CFLAGS $AUTH_CFLAGS"
15261 CHOOSER_LIBS="$CHOOSER_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS"
15262
15263
15264
15265
15266 # Defaults for X session - should probably be configure --with-* flags
15267 # Currently just trying to mirror what defaults were set in Imake
15268
15269 # -DDEF_SERVER_LINE=":0 local $(DEF_SERVER) :0"
15270 if test -z "$DEF_SERVER" ; then
15271 DEF_SERVER="${bindir}/X"
15272 fi
15273 if test -z "$DEF_SERVER_LINE" ; then
15274 DEF_SERVER_LINE=":0 local ${DEF_SERVER} :0"
15275 fi
15276
15277 prefix_NONE=
15278 exec_prefix_NONE=
15279 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15280 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15281 eval ax_define_dir="\"$DEF_SERVER_LINE\""
15282 eval ax_define_dir="\"$ax_define_dir\""
15283 DEF_SERVER_LINE="$ax_define_dir"
15284
15285
15286 cat >>confdefs.h <<_ACEOF
15287 #define DEF_SERVER_LINE "$ax_define_dir"
15288 _ACEOF
15289
15290 test "$prefix_NONE" && prefix=NONE
15291 test "$exec_prefix_NONE" && exec_prefix=NONE
15292
15293
15294 # -DXRDB_PROGRAM="$(BINDIR)/xrdb"
15295
15296 # Check whether --with-xrdb was given.
15297 if test "${with_xrdb+set}" = set; then :
15298 withval=$with_xrdb; XRDB=$withval
15299 else
15300 XRDB=${bindir}/xrdb
15301 fi
15302
15303
15304 prefix_NONE=
15305 exec_prefix_NONE=
15306 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15307 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15308 eval ax_define_dir="\"$XRDB\""
15309 eval ax_define_dir="\"$ax_define_dir\""
15310 XRDB_PROGRAM="$ax_define_dir"
15311
15312
15313 cat >>confdefs.h <<_ACEOF
15314 #define XRDB_PROGRAM "$ax_define_dir"
15315 _ACEOF
15316
15317 test "$prefix_NONE" && prefix=NONE
15318 test "$exec_prefix_NONE" && exec_prefix=NONE
15319
15320
15321 # -DDEF_SESSION="$(BINDIR)/xterm -ls"
15322
15323 # Check whether --with-default-session was given.
15324 if test "${with_default_session+set}" = set; then :
15325 withval=$with_default_session; DEF_SESSION=$withval
15326 else
15327 DEF_SESSION="${bindir}/xterm -ls"
15328 fi
15329
15330
15331 prefix_NONE=
15332 exec_prefix_NONE=
15333 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15334 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15335 eval ax_define_dir="\"$DEF_SESSION\""
15336 eval ax_define_dir="\"$ax_define_dir\""
15337 DEF_SESSION="$ax_define_dir"
15338
15339
15340 cat >>confdefs.h <<_ACEOF
15341 #define DEF_SESSION "$ax_define_dir"
15342 _ACEOF
15343
15344 test "$prefix_NONE" && prefix=NONE
15345 test "$exec_prefix_NONE" && exec_prefix=NONE
15346
15347
15348 # -DDEF_USER_PATH="$(DEF_USER_PATH)"
15349 # Default values taken from DefaultUserPath setting in the
15350 # old Imake *.cf files for each platform
15351 if test -z "$DEF_USER_PATH" ; then
15352 case $host_os in
15353 dragonfly*)
15354 DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/local/bin"
15355 ;;
15356 freebsd*)
15357 DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/gnu/bin:/usr/local/bin"
15358 ;;
15359 netbsd*)
15360 DEF_USER_PATH="/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${bindir}"
15361 ;;
15362 openbsd*|bsdi*)
15363 DEF_USER_PATH="/bin:/usr/bin:/usr/local/bin:${bindir}"
15364 ;;
15365 solaris*)
15366 DEF_USER_PATH="/usr/bin:${bindir}"
15367 ;;
15368 *)
15369 DEF_USER_PATH="/bin:/usr/bin:${bindir}:/usr/ucb"
15370 ;;
15371 esac
15372 fi
15373
15374 prefix_NONE=
15375 exec_prefix_NONE=
15376 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15377 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15378 eval ax_define_dir="\"$DEF_USER_PATH\""
15379 eval ax_define_dir="\"$ax_define_dir\""
15380 DEF_USER_PATH="$ax_define_dir"
15381
15382
15383 cat >>confdefs.h <<_ACEOF
15384 #define DEF_USER_PATH "$ax_define_dir"
15385 _ACEOF
15386
15387 test "$prefix_NONE" && prefix=NONE
15388 test "$exec_prefix_NONE" && exec_prefix=NONE
15389
15390
15391 # -DDEF_SYSTEM_PATH="$(DEF_SYSTEM_PATH)"
15392 # Default values taken from DefaultSystemPath setting in the
15393 # old Imake *.cf files for each platform
15394 if test -z "$DEF_SYSTEM_PATH" ; then
15395 case $host_os in
15396 freebsd*|dragonfly*)
15397 DEF_SYSTEM_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}"
15398 ;;
15399 netbsd*|openbsd*|bsdi*)
15400 DEF_SYSTEM_PATH="/sbin:/usr/sbin:/bin:/usr/bin:${bindir}"
15401 ;;
15402 solaris*)
15403 DEF_SYSTEM_PATH="/sbin:/usr/sbin:/usr/bin:${bindir}"
15404 ;;
15405 *)
15406 DEF_SYSTEM_PATH="/etc:/bin:/usr/bin:${bindir}:/usr/ucb"
15407 ;;
15408 esac
15409 fi
15410
15411 prefix_NONE=
15412 exec_prefix_NONE=
15413 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15414 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15415 eval ax_define_dir="\"$DEF_SYSTEM_PATH\""
15416 eval ax_define_dir="\"$ax_define_dir\""
15417 DEF_SYSTEM_PATH="$ax_define_dir"
15418
15419
15420 cat >>confdefs.h <<_ACEOF
15421 #define DEF_SYSTEM_PATH "$ax_define_dir"
15422 _ACEOF
15423
15424 test "$prefix_NONE" && prefix=NONE
15425 test "$exec_prefix_NONE" && exec_prefix=NONE
15426
15427
15428 # -DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)"
15429 if test -z "$BOURNE_SHELL" ; then
15430 BOURNE_SHELL=/bin/sh
15431 fi
15432
15433 prefix_NONE=
15434 exec_prefix_NONE=
15435 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15436 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15437 eval ax_define_dir="\"$BOURNE_SHELL\""
15438 eval ax_define_dir="\"$ax_define_dir\""
15439 DEF_SYSTEM_SHELL="$ax_define_dir"
15440
15441
15442 cat >>confdefs.h <<_ACEOF
15443 #define DEF_SYSTEM_SHELL "$ax_define_dir"
15444 _ACEOF
15445
15446 test "$prefix_NONE" && prefix=NONE
15447 test "$exec_prefix_NONE" && exec_prefix=NONE
15448
15449
15450 # -DDEF_FAILSAFE_CLIENT="$(BINDIR)/xterm"
15451
15452
15453 prefix_NONE=
15454 exec_prefix_NONE=
15455 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15456 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15457 eval ax_define_dir="\"$bindir/xterm\""
15458 eval ax_define_dir="\"$ax_define_dir\""
15459 DEF_FAILSAFE_CLIENT="$ax_define_dir"
15460
15461
15462 cat >>confdefs.h <<_ACEOF
15463 #define DEF_FAILSAFE_CLIENT "$ax_define_dir"
15464 _ACEOF
15465
15466 test "$prefix_NONE" && prefix=NONE
15467 test "$exec_prefix_NONE" && exec_prefix=NONE
15468
15469
15470 # -DDEF_XDM_CONFIG="$(XDMDIR)/xdm-config"
15471
15472
15473 prefix_NONE=
15474 exec_prefix_NONE=
15475 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15476 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15477 eval ax_define_dir="\"$XDMCONFIGDIR/xdm-config\""
15478 eval ax_define_dir="\"$ax_define_dir\""
15479 DEF_XDM_CONFIG="$ax_define_dir"
15480
15481
15482 cat >>confdefs.h <<_ACEOF
15483 #define DEF_XDM_CONFIG "$ax_define_dir"
15484 _ACEOF
15485
15486 test "$prefix_NONE" && prefix=NONE
15487 test "$exec_prefix_NONE" && exec_prefix=NONE
15488
15489
15490 # -DDEF_CHOOSER="$(CHOOSERPATH)"
15491
15492
15493 prefix_NONE=
15494 exec_prefix_NONE=
15495 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15496 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15497 eval ax_define_dir="\"$XDMLIBDIR/chooser\""
15498 eval ax_define_dir="\"$ax_define_dir\""
15499 DEF_CHOOSER="$ax_define_dir"
15500
15501
15502 cat >>confdefs.h <<_ACEOF
15503 #define DEF_CHOOSER "$ax_define_dir"
15504 _ACEOF
15505
15506 test "$prefix_NONE" && prefix=NONE
15507 test "$exec_prefix_NONE" && exec_prefix=NONE
15508
15509
15510 # -DDEF_AUTH_DIR="$(XDMDIR)"
15511
15512
15513 # Check whether --with-authdir was given.
15514 if test "${with_authdir+set}" = set; then :
15515 withval=$with_authdir; XDMXAUTHDIR="$withval"
15516 else
15517 XDMXAUTHDIR="/var/lib/xdm"
15518 fi
15519
15520
15521
15522
15523 prefix_NONE=
15524 exec_prefix_NONE=
15525 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15526 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15527 eval ax_define_dir="\"$XDMXAUTHDIR\""
15528 eval ax_define_dir="\"$ax_define_dir\""
15529 DEF_AUTH_DIR="$ax_define_dir"
15530
15531
15532 cat >>confdefs.h <<_ACEOF
15533 #define DEF_AUTH_DIR "$ax_define_dir"
15534 _ACEOF
15535
15536 test "$prefix_NONE" && prefix=NONE
15537 test "$exec_prefix_NONE" && exec_prefix=NONE
15538
15539
15540 # -DDEF_GREETER_LIB="$(XDMDIR)/libXdmGreet.so"
15541
15542
15543 prefix_NONE=
15544 exec_prefix_NONE=
15545 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15546 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15547 eval ax_define_dir="\"$XDMLIBDIR/libXdmGreet.so\""
15548 eval ax_define_dir="\"$ax_define_dir\""
15549 DEF_GREETER_LIB="$ax_define_dir"
15550
15551
15552 cat >>confdefs.h <<_ACEOF
15553 #define DEF_GREETER_LIB "$ax_define_dir"
15554 _ACEOF
15555
15556 test "$prefix_NONE" && prefix=NONE
15557 test "$exec_prefix_NONE" && exec_prefix=NONE
15558
15559
15560
15561 pkg_failed=no
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
15563 $as_echo_n "checking for APPDEFS... " >&6; }
15564
15565 if test -n "$APPDEFS_CFLAGS"; then
15566 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
15567 elif test -n "$PKG_CONFIG"; then
15568 if test -n "$PKG_CONFIG" && \
15569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
15570 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
15571 ac_status=$?
15572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15573 test $ac_status = 0; }; then
15574 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
15575 test "x$?" != "x0" && pkg_failed=yes
15576 else
15577 pkg_failed=yes
15578 fi
15579 else
15580 pkg_failed=untried
15581 fi
15582 if test -n "$APPDEFS_LIBS"; then
15583 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
15584 elif test -n "$PKG_CONFIG"; then
15585 if test -n "$PKG_CONFIG" && \
15586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
15587 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
15588 ac_status=$?
15589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15590 test $ac_status = 0; }; then
15591 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
15592 test "x$?" != "x0" && pkg_failed=yes
15593 else
15594 pkg_failed=yes
15595 fi
15596 else
15597 pkg_failed=untried
15598 fi
15599
15600
15601
15602 if test $pkg_failed = yes; then
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15604 $as_echo "no" >&6; }
15605
15606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15607 _pkg_short_errors_supported=yes
15608 else
15609 _pkg_short_errors_supported=no
15610 fi
15611 if test $_pkg_short_errors_supported = yes; then
15612 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
15613 else
15614 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
15615 fi
15616 # Put the nasty error message in config.log where it belongs
15617 echo "$APPDEFS_PKG_ERRORS" >&5
15618
15619 as_fn_error $? "Package requirements (xt) were not met:
15620
15621 $APPDEFS_PKG_ERRORS
15622
15623 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15624 installed software in a non-standard prefix.
15625
15626 Alternatively, you may set the environment variables APPDEFS_CFLAGS
15627 and APPDEFS_LIBS to avoid the need to call pkg-config.
15628 See the pkg-config man page for more details." "$LINENO" 5
15629 elif test $pkg_failed = untried; then
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15631 $as_echo "no" >&6; }
15632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15634 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15635 is in your PATH or set the PKG_CONFIG environment variable to the full
15636 path to pkg-config.
15637
15638 Alternatively, you may set the environment variables APPDEFS_CFLAGS
15639 and APPDEFS_LIBS to avoid the need to call pkg-config.
15640 See the pkg-config man page for more details.
15641
15642 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15643 See \`config.log' for more details" "$LINENO" 5; }
15644 else
15645 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
15646 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15648 $as_echo "yes" >&6; }
15649
15650 fi
15651 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
15652
15653 # Check whether --with-appdefaultdir was given.
15654 if test "${with_appdefaultdir+set}" = set; then :
15655 withval=$with_appdefaultdir; appdefaultdir="$withval"
15656 else
15657 appdefaultdir="${xt_appdefaultdir}"
15658 fi
15659
15660
15661
15662
15663
15664 ac_config_files="$ac_config_files Makefile app-defaults/Makefile chooser/Makefile config/Makefile greeter/Makefile include/Makefile man/Makefile xdm/Makefile xdmshell/Makefile"
15665
15666 cat >confcache <<\_ACEOF
15667 # This file is a shell script that caches the results of configure
15668 # tests run on this system so they can be shared between configure
15669 # scripts and configure runs, see configure's option --config-cache.
15670 # It is not useful on other systems. If it contains results you don't
15671 # want to keep, you may remove or edit it.
15672 #
15673 # config.status only pays attention to the cache file if you give it
15674 # the --recheck option to rerun configure.
15675 #
15676 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15677 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15678 # following values.
15679
15680 _ACEOF
15681
15682 # The following way of writing the cache mishandles newlines in values,
15683 # but we know of no workaround that is simple, portable, and efficient.
15684 # So, we kill variables containing newlines.
15685 # Ultrix sh set writes to stderr and can't be redirected directly,
15686 # and sets the high bit in the cache file unless we assign to the vars.
15687 (
15688 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15689 eval ac_val=\$$ac_var
15690 case $ac_val in #(
15691 *${as_nl}*)
15692 case $ac_var in #(
15693 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15695 esac
15696 case $ac_var in #(
15697 _ | IFS | as_nl) ;; #(
15698 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15699 *) { eval $ac_var=; unset $ac_var;} ;;
15700 esac ;;
15701 esac
15702 done
15703
15704 (set) 2>&1 |
15705 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15706 *${as_nl}ac_space=\ *)
15707 # `set' does not quote correctly, so add quotes: double-quote
15708 # substitution turns \\\\ into \\, and sed turns \\ into \.
15709 sed -n \
15710 "s/'/'\\\\''/g;
15711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15712 ;; #(
15713 *)
15714 # `set' quotes correctly as required by POSIX, so do not add quotes.
15715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15716 ;;
15717 esac |
15718 sort
15719 ) |
15720 sed '
15721 /^ac_cv_env_/b end
15722 t clear
15723 :clear
15724 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15725 t end
15726 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15727 :end' >>confcache
15728 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15729 if test -w "$cache_file"; then
15730 if test "x$cache_file" != "x/dev/null"; then
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15732 $as_echo "$as_me: updating cache $cache_file" >&6;}
15733 if test ! -f "$cache_file" || test -h "$cache_file"; then
15734 cat confcache >"$cache_file"
15735 else
15736 case $cache_file in #(
15737 */* | ?:*)
15738 mv -f confcache "$cache_file"$$ &&
15739 mv -f "$cache_file"$$ "$cache_file" ;; #(
15740 *)
15741 mv -f confcache "$cache_file" ;;
15742 esac
15743 fi
15744 fi
15745 else
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15747 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15748 fi
15749 fi
15750 rm -f confcache
15751
15752 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15753 # Let make expand exec_prefix.
15754 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15755
15756 DEFS=-DHAVE_CONFIG_H
15757
15758 ac_libobjs=
15759 ac_ltlibobjs=
15760 U=
15761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15762 # 1. Remove the extension, and $U if already installed.
15763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15764 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15766 # will be set to the directory where LIBOBJS objects are built.
15767 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15768 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15769 done
15770 LIBOBJS=$ac_libobjs
15771
15772 LTLIBOBJS=$ac_ltlibobjs
15773
15774
15775 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15776 as_fn_error $? "conditional \"AMDEP\" was never defined.
15777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15778 fi
15779 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15780 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15782 fi
15783 if test -n "$EXEEXT"; then
15784 am__EXEEXT_TRUE=
15785 am__EXEEXT_FALSE='#'
15786 else
15787 am__EXEEXT_TRUE='#'
15788 am__EXEEXT_FALSE=
15789 fi
15790
15791 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15792 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15794 fi
15795 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
15796 as_fn_error $? "conditional \"LINT\" was never defined.
15797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15798 fi
15799 if test -z "${HAVE_MKTEMP_COMMAND_TRUE}" && test -z "${HAVE_MKTEMP_COMMAND_FALSE}"; then
15800 as_fn_error $? "conditional \"HAVE_MKTEMP_COMMAND\" was never defined.
15801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15802 fi
15803 if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then
15804 as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined.
15805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15806 fi
15807 if test -z "${HAS_SECURE_RPC_TRUE}" && test -z "${HAS_SECURE_RPC_FALSE}"; then
15808 as_fn_error $? "conditional \"HAS_SECURE_RPC\" was never defined.
15809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15810 fi
15811 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
15812 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
15813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15814 fi
15815 if test -z "${HAS_KERBEROS_FIVE_TRUE}" && test -z "${HAS_KERBEROS_FIVE_FALSE}"; then
15816 as_fn_error $? "conditional \"HAS_KERBEROS_FIVE\" was never defined.
15817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15818 fi
15819 if test -z "${USE_XPM_TRUE}" && test -z "${USE_XPM_FALSE}"; then
15820 as_fn_error $? "conditional \"USE_XPM\" was never defined.
15821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15822 fi
15823 if test -z "${HAS_XDM_AUTH_TRUE}" && test -z "${HAS_XDM_AUTH_FALSE}"; then
15824 as_fn_error $? "conditional \"HAS_XDM_AUTH\" was never defined.
15825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15826 fi
15827 if test -z "${INSTALL_XDMSHELL_TRUE}" && test -z "${INSTALL_XDMSHELL_FALSE}"; then
15828 as_fn_error $? "conditional \"INSTALL_XDMSHELL\" was never defined.
15829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15830 fi
15831
15832 : "${CONFIG_STATUS=./config.status}"
15833 ac_write_fail=0
15834 ac_clean_files_save=$ac_clean_files
15835 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15837 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15838 as_write_fail=0
15839 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15840 #! $SHELL
15841 # Generated by $as_me.
15842 # Run this file to recreate the current configuration.
15843 # Compiler output produced by configure, useful for debugging
15844 # configure, is in config.log if it exists.
15845
15846 debug=false
15847 ac_cs_recheck=false
15848 ac_cs_silent=false
15849
15850 SHELL=\${CONFIG_SHELL-$SHELL}
15851 export SHELL
15852 _ASEOF
15853 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15854 ## -------------------- ##
15855 ## M4sh Initialization. ##
15856 ## -------------------- ##
15857
15858 # Be more Bourne compatible
15859 DUALCASE=1; export DUALCASE # for MKS sh
15860 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15861 emulate sh
15862 NULLCMD=:
15863 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15864 # is contrary to our usage. Disable this feature.
15865 alias -g '${1+"$@"}'='"$@"'
15866 setopt NO_GLOB_SUBST
15867 else
15868 case `(set -o) 2>/dev/null` in #(
15869 *posix*) :
15870 set -o posix ;; #(
15871 *) :
15872 ;;
15873 esac
15874 fi
15875
15876
15877 as_nl='
15878 '
15879 export as_nl
15880 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15881 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15882 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15883 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15884 # Prefer a ksh shell builtin over an external printf program on Solaris,
15885 # but without wasting forks for bash or zsh.
15886 if test -z "$BASH_VERSION$ZSH_VERSION" \
15887 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15888 as_echo='print -r --'
15889 as_echo_n='print -rn --'
15890 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15891 as_echo='printf %s\n'
15892 as_echo_n='printf %s'
15893 else
15894 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15895 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15896 as_echo_n='/usr/ucb/echo -n'
15897 else
15898 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15899 as_echo_n_body='eval
15900 arg=$1;
15901 case $arg in #(
15902 *"$as_nl"*)
15903 expr "X$arg" : "X\\(.*\\)$as_nl";
15904 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15905 esac;
15906 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15907 '
15908 export as_echo_n_body
15909 as_echo_n='sh -c $as_echo_n_body as_echo'
15910 fi
15911 export as_echo_body
15912 as_echo='sh -c $as_echo_body as_echo'
15913 fi
15914
15915 # The user is always right.
15916 if test "${PATH_SEPARATOR+set}" != set; then
15917 PATH_SEPARATOR=:
15918 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15919 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15920 PATH_SEPARATOR=';'
15921 }
15922 fi
15923
15924
15925 # IFS
15926 # We need space, tab and new line, in precisely that order. Quoting is
15927 # there to prevent editors from complaining about space-tab.
15928 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15929 # splitting by setting IFS to empty value.)
15930 IFS=" "" $as_nl"
15931
15932 # Find who we are. Look in the path if we contain no directory separator.
15933 as_myself=
15934 case $0 in #((
15935 *[\\/]* ) as_myself=$0 ;;
15936 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15937 for as_dir in $PATH
15938 do
15939 IFS=$as_save_IFS
15940 test -z "$as_dir" && as_dir=.
15941 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15942 done
15943 IFS=$as_save_IFS
15944
15945 ;;
15946 esac
15947 # We did not find ourselves, most probably we were run as `sh COMMAND'
15948 # in which case we are not to be found in the path.
15949 if test "x$as_myself" = x; then
15950 as_myself=$0
15951 fi
15952 if test ! -f "$as_myself"; then
15953 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15954 exit 1
15955 fi
15956
15957 # Unset variables that we do not need and which cause bugs (e.g. in
15958 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15959 # suppresses any "Segmentation fault" message there. '((' could
15960 # trigger a bug in pdksh 5.2.14.
15961 for as_var in BASH_ENV ENV MAIL MAILPATH
15962 do eval test x\${$as_var+set} = xset \
15963 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15964 done
15965 PS1='$ '
15966 PS2='> '
15967 PS4='+ '
15968
15969 # NLS nuisances.
15970 LC_ALL=C
15971 export LC_ALL
15972 LANGUAGE=C
15973 export LANGUAGE
15974
15975 # CDPATH.
15976 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15977
15978
15979 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15980 # ----------------------------------------
15981 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15982 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15983 # script with STATUS, using 1 if that was 0.
15984 as_fn_error ()
15985 {
15986 as_status=$1; test $as_status -eq 0 && as_status=1
15987 if test "$4"; then
15988 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15989 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15990 fi
15991 $as_echo "$as_me: error: $2" >&2
15992 as_fn_exit $as_status
15993 } # as_fn_error
15994
15995
15996 # as_fn_set_status STATUS
15997 # -----------------------
15998 # Set $? to STATUS, without forking.
15999 as_fn_set_status ()
16000 {
16001 return $1
16002 } # as_fn_set_status
16003
16004 # as_fn_exit STATUS
16005 # -----------------
16006 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16007 as_fn_exit ()
16008 {
16009 set +e
16010 as_fn_set_status $1
16011 exit $1
16012 } # as_fn_exit
16013
16014 # as_fn_unset VAR
16015 # ---------------
16016 # Portably unset VAR.
16017 as_fn_unset ()
16018 {
16019 { eval $1=; unset $1;}
16020 }
16021 as_unset=as_fn_unset
16022 # as_fn_append VAR VALUE
16023 # ----------------------
16024 # Append the text in VALUE to the end of the definition contained in VAR. Take
16025 # advantage of any shell optimizations that allow amortized linear growth over
16026 # repeated appends, instead of the typical quadratic growth present in naive
16027 # implementations.
16028 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16029 eval 'as_fn_append ()
16030 {
16031 eval $1+=\$2
16032 }'
16033 else
16034 as_fn_append ()
16035 {
16036 eval $1=\$$1\$2
16037 }
16038 fi # as_fn_append
16039
16040 # as_fn_arith ARG...
16041 # ------------------
16042 # Perform arithmetic evaluation on the ARGs, and store the result in the
16043 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16044 # must be portable across $(()) and expr.
16045 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16046 eval 'as_fn_arith ()
16047 {
16048 as_val=$(( $* ))
16049 }'
16050 else
16051 as_fn_arith ()
16052 {
16053 as_val=`expr "$@" || test $? -eq 1`
16054 }
16055 fi # as_fn_arith
16056
16057
16058 if expr a : '\(a\)' >/dev/null 2>&1 &&
16059 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16060 as_expr=expr
16061 else
16062 as_expr=false
16063 fi
16064
16065 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16066 as_basename=basename
16067 else
16068 as_basename=false
16069 fi
16070
16071 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16072 as_dirname=dirname
16073 else
16074 as_dirname=false
16075 fi
16076
16077 as_me=`$as_basename -- "$0" ||
16078 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16079 X"$0" : 'X\(//\)$' \| \
16080 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16081 $as_echo X/"$0" |
16082 sed '/^.*\/\([^/][^/]*\)\/*$/{
16083 s//\1/
16084 q
16085 }
16086 /^X\/\(\/\/\)$/{
16087 s//\1/
16088 q
16089 }
16090 /^X\/\(\/\).*/{
16091 s//\1/
16092 q
16093 }
16094 s/.*/./; q'`
16095
16096 # Avoid depending upon Character Ranges.
16097 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16098 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16099 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16100 as_cr_digits='0123456789'
16101 as_cr_alnum=$as_cr_Letters$as_cr_digits
16102
16103 ECHO_C= ECHO_N= ECHO_T=
16104 case `echo -n x` in #(((((
16105 -n*)
16106 case `echo 'xy\c'` in
16107 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16108 xy) ECHO_C='\c';;
16109 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16110 ECHO_T=' ';;
16111 esac;;
16112 *)
16113 ECHO_N='-n';;
16114 esac
16115
16116 rm -f conf$$ conf$$.exe conf$$.file
16117 if test -d conf$$.dir; then
16118 rm -f conf$$.dir/conf$$.file
16119 else
16120 rm -f conf$$.dir
16121 mkdir conf$$.dir 2>/dev/null
16122 fi
16123 if (echo >conf$$.file) 2>/dev/null; then
16124 if ln -s conf$$.file conf$$ 2>/dev/null; then
16125 as_ln_s='ln -s'
16126 # ... but there are two gotchas:
16127 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16128 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16129 # In both cases, we have to default to `cp -p'.
16130 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16131 as_ln_s='cp -p'
16132 elif ln conf$$.file conf$$ 2>/dev/null; then
16133 as_ln_s=ln
16134 else
16135 as_ln_s='cp -p'
16136 fi
16137 else
16138 as_ln_s='cp -p'
16139 fi
16140 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16141 rmdir conf$$.dir 2>/dev/null
16142
16143
16144 # as_fn_mkdir_p
16145 # -------------
16146 # Create "$as_dir" as a directory, including parents if necessary.
16147 as_fn_mkdir_p ()
16148 {
16149
16150 case $as_dir in #(
16151 -*) as_dir=./$as_dir;;
16152 esac
16153 test -d "$as_dir" || eval $as_mkdir_p || {
16154 as_dirs=
16155 while :; do
16156 case $as_dir in #(
16157 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16158 *) as_qdir=$as_dir;;
16159 esac
16160 as_dirs="'$as_qdir' $as_dirs"
16161 as_dir=`$as_dirname -- "$as_dir" ||
16162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16163 X"$as_dir" : 'X\(//\)[^/]' \| \
16164 X"$as_dir" : 'X\(//\)$' \| \
16165 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16166 $as_echo X"$as_dir" |
16167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16168 s//\1/
16169 q
16170 }
16171 /^X\(\/\/\)[^/].*/{
16172 s//\1/
16173 q
16174 }
16175 /^X\(\/\/\)$/{
16176 s//\1/
16177 q
16178 }
16179 /^X\(\/\).*/{
16180 s//\1/
16181 q
16182 }
16183 s/.*/./; q'`
16184 test -d "$as_dir" && break
16185 done
16186 test -z "$as_dirs" || eval "mkdir $as_dirs"
16187 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16188
16189
16190 } # as_fn_mkdir_p
16191 if mkdir -p . 2>/dev/null; then
16192 as_mkdir_p='mkdir -p "$as_dir"'
16193 else
16194 test -d ./-p && rmdir ./-p
16195 as_mkdir_p=false
16196 fi
16197
16198 if test -x / >/dev/null 2>&1; then
16199 as_test_x='test -x'
16200 else
16201 if ls -dL / >/dev/null 2>&1; then
16202 as_ls_L_option=L
16203 else
16204 as_ls_L_option=
16205 fi
16206 as_test_x='
16207 eval sh -c '\''
16208 if test -d "$1"; then
16209 test -d "$1/.";
16210 else
16211 case $1 in #(
16212 -*)set "./$1";;
16213 esac;
16214 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16215 ???[sx]*):;;*)false;;esac;fi
16216 '\'' sh
16217 '
16218 fi
16219 as_executable_p=$as_test_x
16220
16221 # Sed expression to map a string onto a valid CPP name.
16222 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16223
16224 # Sed expression to map a string onto a valid variable name.
16225 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16226
16227
16228 exec 6>&1
16229 ## ----------------------------------- ##
16230 ## Main body of $CONFIG_STATUS script. ##
16231 ## ----------------------------------- ##
16232 _ASEOF
16233 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16234
16235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236 # Save the log message, to keep $0 and so on meaningful, and to
16237 # report actual input values of CONFIG_FILES etc. instead of their
16238 # values after options handling.
16239 ac_log="
16240 This file was extended by xdm $as_me 1.1.11, which was
16241 generated by GNU Autoconf 2.68. Invocation command line was
16242
16243 CONFIG_FILES = $CONFIG_FILES
16244 CONFIG_HEADERS = $CONFIG_HEADERS
16245 CONFIG_LINKS = $CONFIG_LINKS
16246 CONFIG_COMMANDS = $CONFIG_COMMANDS
16247 $ $0 $@
16248
16249 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16250 "
16251
16252 _ACEOF
16253
16254 case $ac_config_files in *"
16255 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16256 esac
16257
16258 case $ac_config_headers in *"
16259 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16260 esac
16261
16262
16263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16264 # Files that config.status was made for.
16265 config_files="$ac_config_files"
16266 config_headers="$ac_config_headers"
16267 config_commands="$ac_config_commands"
16268
16269 _ACEOF
16270
16271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16272 ac_cs_usage="\
16273 \`$as_me' instantiates files and other configuration actions
16274 from templates according to the current configuration. Unless the files
16275 and actions are specified as TAGs, all are instantiated by default.
16276
16277 Usage: $0 [OPTION]... [TAG]...
16278
16279 -h, --help print this help, then exit
16280 -V, --version print version number and configuration settings, then exit
16281 --config print configuration, then exit
16282 -q, --quiet, --silent
16283 do not print progress messages
16284 -d, --debug don't remove temporary files
16285 --recheck update $as_me by reconfiguring in the same conditions
16286 --file=FILE[:TEMPLATE]
16287 instantiate the configuration file FILE
16288 --header=FILE[:TEMPLATE]
16289 instantiate the configuration header FILE
16290
16291 Configuration files:
16292 $config_files
16293
16294 Configuration headers:
16295 $config_headers
16296
16297 Configuration commands:
16298 $config_commands
16299
16300 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
16301
16302 _ACEOF
16303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16304 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16305 ac_cs_version="\\
16306 xdm config.status 1.1.11
16307 configured by $0, generated by GNU Autoconf 2.68,
16308 with options \\"\$ac_cs_config\\"
16309
16310 Copyright (C) 2010 Free Software Foundation, Inc.
16311 This config.status script is free software; the Free Software Foundation
16312 gives unlimited permission to copy, distribute and modify it."
16313
16314 ac_pwd='$ac_pwd'
16315 srcdir='$srcdir'
16316 INSTALL='$INSTALL'
16317 MKDIR_P='$MKDIR_P'
16318 AWK='$AWK'
16319 test -n "\$AWK" || AWK=awk
16320 _ACEOF
16321
16322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16323 # The default lists apply if the user does not specify any file.
16324 ac_need_defaults=:
16325 while test $# != 0
16326 do
16327 case $1 in
16328 --*=?*)
16329 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16330 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16331 ac_shift=:
16332 ;;
16333 --*=)
16334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16335 ac_optarg=
16336 ac_shift=:
16337 ;;
16338 *)
16339 ac_option=$1
16340 ac_optarg=$2
16341 ac_shift=shift
16342 ;;
16343 esac
16344
16345 case $ac_option in
16346 # Handling of the options.
16347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16348 ac_cs_recheck=: ;;
16349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16350 $as_echo "$ac_cs_version"; exit ;;
16351 --config | --confi | --conf | --con | --co | --c )
16352 $as_echo "$ac_cs_config"; exit ;;
16353 --debug | --debu | --deb | --de | --d | -d )
16354 debug=: ;;
16355 --file | --fil | --fi | --f )
16356 $ac_shift
16357 case $ac_optarg in
16358 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16359 '') as_fn_error $? "missing file argument" ;;
16360 esac
16361 as_fn_append CONFIG_FILES " '$ac_optarg'"
16362 ac_need_defaults=false;;
16363 --header | --heade | --head | --hea )
16364 $ac_shift
16365 case $ac_optarg in
16366 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16367 esac
16368 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16369 ac_need_defaults=false;;
16370 --he | --h)
16371 # Conflict between --help and --header
16372 as_fn_error $? "ambiguous option: \`$1'
16373 Try \`$0 --help' for more information.";;
16374 --help | --hel | -h )
16375 $as_echo "$ac_cs_usage"; exit ;;
16376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16377 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16378 ac_cs_silent=: ;;
16379
16380 # This is an error.
16381 -*) as_fn_error $? "unrecognized option: \`$1'
16382 Try \`$0 --help' for more information." ;;
16383
16384 *) as_fn_append ac_config_targets " $1"
16385 ac_need_defaults=false ;;
16386
16387 esac
16388 shift
16389 done
16390
16391 ac_configure_extra_args=
16392
16393 if $ac_cs_silent; then
16394 exec 6>/dev/null
16395 ac_configure_extra_args="$ac_configure_extra_args --silent"
16396 fi
16397
16398 _ACEOF
16399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16400 if \$ac_cs_recheck; then
16401 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16402 shift
16403 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16404 CONFIG_SHELL='$SHELL'
16405 export CONFIG_SHELL
16406 exec "\$@"
16407 fi
16408
16409 _ACEOF
16410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16411 exec 5>>config.log
16412 {
16413 echo
16414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16415 ## Running $as_me. ##
16416 _ASBOX
16417 $as_echo "$ac_log"
16418 } >&5
16419
16420 _ACEOF
16421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16422 #
16423 # INIT-COMMANDS
16424 #
16425 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16426
16427
16428 # The HP-UX ksh and POSIX shell print the target directory to stdout
16429 # if CDPATH is set.
16430 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16431
16432 sed_quote_subst='$sed_quote_subst'
16433 double_quote_subst='$double_quote_subst'
16434 delay_variable_subst='$delay_variable_subst'
16435 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16436 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16437 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16438 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16439 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16440 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16441 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16442 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16443 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16444 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16445 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16446 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16447 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16448 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16449 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16450 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16451 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16452 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16453 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16454 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16455 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16456 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16457 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16458 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16459 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16460 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16461 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16462 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16463 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16464 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16465 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16466 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16467 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16468 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16469 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16470 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16471 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16472 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16473 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16474 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16475 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16476 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16477 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16478 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16479 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16480 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16481 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16482 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16483 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16484 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16485 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16486 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16487 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16488 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16489 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16490 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"`'
16491 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16492 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16493 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16494 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16495 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16496 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16497 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16498 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16499 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16500 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16501 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16502 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16503 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16504 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16505 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16506 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16507 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16508 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16509 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16510 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16511 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16512 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16513 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16514 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16515 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16516 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16517 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16518 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16519 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16520 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16521 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16522 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16523 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16524 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16525 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16526 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16527 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16528 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16529 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16530 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16531 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16532 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16533 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16534 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16535 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16536 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16537 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16538 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16539 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16540 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16541 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16542 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16543 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16544 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16545 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16546 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16547 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16548 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16549 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16550 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16551 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16552 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16553 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16554 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16555 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16556 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16557 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16558 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16559 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16560 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16561 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16562 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16563 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16564 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16565
16566 LTCC='$LTCC'
16567 LTCFLAGS='$LTCFLAGS'
16568 compiler='$compiler_DEFAULT'
16569
16570 # A function that is used when there is no print builtin or printf.
16571 func_fallback_echo ()
16572 {
16573 eval 'cat <<_LTECHO_EOF
16574 \$1
16575 _LTECHO_EOF'
16576 }
16577
16578 # Quote evaled strings.
16579 for var in SHELL \
16580 ECHO \
16581 SED \
16582 GREP \
16583 EGREP \
16584 FGREP \
16585 LD \
16586 NM \
16587 LN_S \
16588 lt_SP2NL \
16589 lt_NL2SP \
16590 reload_flag \
16591 OBJDUMP \
16592 deplibs_check_method \
16593 file_magic_cmd \
16594 file_magic_glob \
16595 want_nocaseglob \
16596 DLLTOOL \
16597 sharedlib_from_linklib_cmd \
16598 AR \
16599 AR_FLAGS \
16600 archiver_list_spec \
16601 STRIP \
16602 RANLIB \
16603 CC \
16604 CFLAGS \
16605 compiler \
16606 lt_cv_sys_global_symbol_pipe \
16607 lt_cv_sys_global_symbol_to_cdecl \
16608 lt_cv_sys_global_symbol_to_c_name_address \
16609 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16610 nm_file_list_spec \
16611 lt_prog_compiler_no_builtin_flag \
16612 lt_prog_compiler_pic \
16613 lt_prog_compiler_wl \
16614 lt_prog_compiler_static \
16615 lt_cv_prog_compiler_c_o \
16616 need_locks \
16617 MANIFEST_TOOL \
16618 DSYMUTIL \
16619 NMEDIT \
16620 LIPO \
16621 OTOOL \
16622 OTOOL64 \
16623 shrext_cmds \
16624 export_dynamic_flag_spec \
16625 whole_archive_flag_spec \
16626 compiler_needs_object \
16627 with_gnu_ld \
16628 allow_undefined_flag \
16629 no_undefined_flag \
16630 hardcode_libdir_flag_spec \
16631 hardcode_libdir_flag_spec_ld \
16632 hardcode_libdir_separator \
16633 exclude_expsyms \
16634 include_expsyms \
16635 file_list_spec \
16636 variables_saved_for_relink \
16637 libname_spec \
16638 library_names_spec \
16639 soname_spec \
16640 install_override_mode \
16641 finish_eval \
16642 old_striplib \
16643 striplib; do
16644 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16645 *[\\\\\\\`\\"\\\$]*)
16646 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16647 ;;
16648 *)
16649 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16650 ;;
16651 esac
16652 done
16653
16654 # Double-quote double-evaled strings.
16655 for var in reload_cmds \
16656 old_postinstall_cmds \
16657 old_postuninstall_cmds \
16658 old_archive_cmds \
16659 extract_expsyms_cmds \
16660 old_archive_from_new_cmds \
16661 old_archive_from_expsyms_cmds \
16662 archive_cmds \
16663 archive_expsym_cmds \
16664 module_cmds \
16665 module_expsym_cmds \
16666 export_symbols_cmds \
16667 prelink_cmds \
16668 postlink_cmds \
16669 postinstall_cmds \
16670 postuninstall_cmds \
16671 finish_cmds \
16672 sys_lib_search_path_spec \
16673 sys_lib_dlsearch_path_spec; do
16674 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16675 *[\\\\\\\`\\"\\\$]*)
16676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16677 ;;
16678 *)
16679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16680 ;;
16681 esac
16682 done
16683
16684 ac_aux_dir='$ac_aux_dir'
16685 xsi_shell='$xsi_shell'
16686 lt_shell_append='$lt_shell_append'
16687
16688 # See if we are running on zsh, and set the options which allow our
16689 # commands through without removal of \ escapes INIT.
16690 if test -n "\${ZSH_VERSION+set}" ; then
16691 setopt NO_GLOB_SUBST
16692 fi
16693
16694
16695 PACKAGE='$PACKAGE'
16696 VERSION='$VERSION'
16697 TIMESTAMP='$TIMESTAMP'
16698 RM='$RM'
16699 ofile='$ofile'
16700
16701
16702
16703
16704 _ACEOF
16705
16706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16707
16708 # Handling of arguments.
16709 for ac_config_target in $ac_config_targets
16710 do
16711 case $ac_config_target in
16712 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16713 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16714 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16715 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16716 "app-defaults/Makefile") CONFIG_FILES="$CONFIG_FILES app-defaults/Makefile" ;;
16717 "chooser/Makefile") CONFIG_FILES="$CONFIG_FILES chooser/Makefile" ;;
16718 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
16719 "greeter/Makefile") CONFIG_FILES="$CONFIG_FILES greeter/Makefile" ;;
16720 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16721 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16722 "xdm/Makefile") CONFIG_FILES="$CONFIG_FILES xdm/Makefile" ;;
16723 "xdmshell/Makefile") CONFIG_FILES="$CONFIG_FILES xdmshell/Makefile" ;;
16724
16725 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16726 esac
16727 done
16728
16729
16730 # If the user did not use the arguments to specify the items to instantiate,
16731 # then the envvar interface is used. Set only those that are not.
16732 # We use the long form for the default assignment because of an extremely
16733 # bizarre bug on SunOS 4.1.3.
16734 if $ac_need_defaults; then
16735 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16736 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16737 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16738 fi
16739
16740 # Have a temporary directory for convenience. Make it in the build tree
16741 # simply because there is no reason against having it here, and in addition,
16742 # creating and moving files from /tmp can sometimes cause problems.
16743 # Hook for its removal unless debugging.
16744 # Note that there is a small window in which the directory will not be cleaned:
16745 # after its creation but before its name has been assigned to `$tmp'.
16746 $debug ||
16747 {
16748 tmp= ac_tmp=
16749 trap 'exit_status=$?
16750 : "${ac_tmp:=$tmp}"
16751 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16752 ' 0
16753 trap 'as_fn_exit 1' 1 2 13 15
16754 }
16755 # Create a (secure) tmp directory for tmp files.
16756
16757 {
16758 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16759 test -d "$tmp"
16760 } ||
16761 {
16762 tmp=./conf$$-$RANDOM
16763 (umask 077 && mkdir "$tmp")
16764 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16765 ac_tmp=$tmp
16766
16767 # Set up the scripts for CONFIG_FILES section.
16768 # No need to generate them if there are no CONFIG_FILES.
16769 # This happens for instance with `./config.status config.h'.
16770 if test -n "$CONFIG_FILES"; then
16771
16772
16773 ac_cr=`echo X | tr X '\015'`
16774 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16775 # But we know of no other shell where ac_cr would be empty at this
16776 # point, so we can use a bashism as a fallback.
16777 if test "x$ac_cr" = x; then
16778 eval ac_cr=\$\'\\r\'
16779 fi
16780 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16781 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16782 ac_cs_awk_cr='\\r'
16783 else
16784 ac_cs_awk_cr=$ac_cr
16785 fi
16786
16787 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16788 _ACEOF
16789
16790
16791 {
16792 echo "cat >conf$$subs.awk <<_ACEOF" &&
16793 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16794 echo "_ACEOF"
16795 } >conf$$subs.sh ||
16796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16797 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16798 ac_delim='%!_!# '
16799 for ac_last_try in false false false false false :; do
16800 . ./conf$$subs.sh ||
16801 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16802
16803 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16804 if test $ac_delim_n = $ac_delim_num; then
16805 break
16806 elif $ac_last_try; then
16807 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16808 else
16809 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16810 fi
16811 done
16812 rm -f conf$$subs.sh
16813
16814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16815 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16816 _ACEOF
16817 sed -n '
16818 h
16819 s/^/S["/; s/!.*/"]=/
16820 p
16821 g
16822 s/^[^!]*!//
16823 :repl
16824 t repl
16825 s/'"$ac_delim"'$//
16826 t delim
16827 :nl
16828 h
16829 s/\(.\{148\}\)..*/\1/
16830 t more1
16831 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16832 p
16833 n
16834 b repl
16835 :more1
16836 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16837 p
16838 g
16839 s/.\{148\}//
16840 t nl
16841 :delim
16842 h
16843 s/\(.\{148\}\)..*/\1/
16844 t more2
16845 s/["\\]/\\&/g; s/^/"/; s/$/"/
16846 p
16847 b
16848 :more2
16849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16850 p
16851 g
16852 s/.\{148\}//
16853 t delim
16854 ' <conf$$subs.awk | sed '
16855 /^[^""]/{
16856 N
16857 s/\n//
16858 }
16859 ' >>$CONFIG_STATUS || ac_write_fail=1
16860 rm -f conf$$subs.awk
16861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16862 _ACAWK
16863 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16864 for (key in S) S_is_set[key] = 1
16865 FS = ""
16866
16867 }
16868 {
16869 line = $ 0
16870 nfields = split(line, field, "@")
16871 substed = 0
16872 len = length(field[1])
16873 for (i = 2; i < nfields; i++) {
16874 key = field[i]
16875 keylen = length(key)
16876 if (S_is_set[key]) {
16877 value = S[key]
16878 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16879 len += length(value) + length(field[++i])
16880 substed = 1
16881 } else
16882 len += 1 + keylen
16883 }
16884
16885 print line
16886 }
16887
16888 _ACAWK
16889 _ACEOF
16890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16891 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16892 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16893 else
16894 cat
16895 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16896 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16897 _ACEOF
16898
16899 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16900 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16901 # trailing colons and then remove the whole line if VPATH becomes empty
16902 # (actually we leave an empty line to preserve line numbers).
16903 if test "x$srcdir" = x.; then
16904 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16905 h
16906 s///
16907 s/^/:/
16908 s/[ ]*$/:/
16909 s/:\$(srcdir):/:/g
16910 s/:\${srcdir}:/:/g
16911 s/:@srcdir@:/:/g
16912 s/^:*//
16913 s/:*$//
16914 x
16915 s/\(=[ ]*\).*/\1/
16916 G
16917 s/\n//
16918 s/^[^=]*=[ ]*$//
16919 }'
16920 fi
16921
16922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16923 fi # test -n "$CONFIG_FILES"
16924
16925 # Set up the scripts for CONFIG_HEADERS section.
16926 # No need to generate them if there are no CONFIG_HEADERS.
16927 # This happens for instance with `./config.status Makefile'.
16928 if test -n "$CONFIG_HEADERS"; then
16929 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16930 BEGIN {
16931 _ACEOF
16932
16933 # Transform confdefs.h into an awk script `defines.awk', embedded as
16934 # here-document in config.status, that substitutes the proper values into
16935 # config.h.in to produce config.h.
16936
16937 # Create a delimiter string that does not exist in confdefs.h, to ease
16938 # handling of long lines.
16939 ac_delim='%!_!# '
16940 for ac_last_try in false false :; do
16941 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16942 if test -z "$ac_tt"; then
16943 break
16944 elif $ac_last_try; then
16945 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16946 else
16947 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16948 fi
16949 done
16950
16951 # For the awk script, D is an array of macro values keyed by name,
16952 # likewise P contains macro parameters if any. Preserve backslash
16953 # newline sequences.
16954
16955 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16956 sed -n '
16957 s/.\{148\}/&'"$ac_delim"'/g
16958 t rset
16959 :rset
16960 s/^[ ]*#[ ]*define[ ][ ]*/ /
16961 t def
16962 d
16963 :def
16964 s/\\$//
16965 t bsnl
16966 s/["\\]/\\&/g
16967 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16968 D["\1"]=" \3"/p
16969 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16970 d
16971 :bsnl
16972 s/["\\]/\\&/g
16973 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16974 D["\1"]=" \3\\\\\\n"\\/p
16975 t cont
16976 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16977 t cont
16978 d
16979 :cont
16980 n
16981 s/.\{148\}/&'"$ac_delim"'/g
16982 t clear
16983 :clear
16984 s/\\$//
16985 t bsnlc
16986 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16987 d
16988 :bsnlc
16989 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16990 b cont
16991 ' <confdefs.h | sed '
16992 s/'"$ac_delim"'/"\\\
16993 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16994
16995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16996 for (key in D) D_is_set[key] = 1
16997 FS = ""
16998 }
16999 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17000 line = \$ 0
17001 split(line, arg, " ")
17002 if (arg[1] == "#") {
17003 defundef = arg[2]
17004 mac1 = arg[3]
17005 } else {
17006 defundef = substr(arg[1], 2)
17007 mac1 = arg[2]
17008 }
17009 split(mac1, mac2, "(") #)
17010 macro = mac2[1]
17011 prefix = substr(line, 1, index(line, defundef) - 1)
17012 if (D_is_set[macro]) {
17013 # Preserve the white space surrounding the "#".
17014 print prefix "define", macro P[macro] D[macro]
17015 next
17016 } else {
17017 # Replace #undef with comments. This is necessary, for example,
17018 # in the case of _POSIX_SOURCE, which is predefined and required
17019 # on some systems where configure will not decide to define it.
17020 if (defundef == "undef") {
17021 print "/*", prefix defundef, macro, "*/"
17022 next
17023 }
17024 }
17025 }
17026 { print }
17027 _ACAWK
17028 _ACEOF
17029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17030 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17031 fi # test -n "$CONFIG_HEADERS"
17032
17033
17034 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17035 shift
17036 for ac_tag
17037 do
17038 case $ac_tag in
17039 :[FHLC]) ac_mode=$ac_tag; continue;;
17040 esac
17041 case $ac_mode$ac_tag in
17042 :[FHL]*:*);;
17043 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17044 :[FH]-) ac_tag=-:-;;
17045 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17046 esac
17047 ac_save_IFS=$IFS
17048 IFS=:
17049 set x $ac_tag
17050 IFS=$ac_save_IFS
17051 shift
17052 ac_file=$1
17053 shift
17054
17055 case $ac_mode in
17056 :L) ac_source=$1;;
17057 :[FH])
17058 ac_file_inputs=
17059 for ac_f
17060 do
17061 case $ac_f in
17062 -) ac_f="$ac_tmp/stdin";;
17063 *) # Look for the file first in the build tree, then in the source tree
17064 # (if the path is not absolute). The absolute path cannot be DOS-style,
17065 # because $ac_f cannot contain `:'.
17066 test -f "$ac_f" ||
17067 case $ac_f in
17068 [\\/$]*) false;;
17069 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17070 esac ||
17071 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17072 esac
17073 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17074 as_fn_append ac_file_inputs " '$ac_f'"
17075 done
17076
17077 # Let's still pretend it is `configure' which instantiates (i.e., don't
17078 # use $as_me), people would be surprised to read:
17079 # /* config.h. Generated by config.status. */
17080 configure_input='Generated from '`
17081 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17082 `' by configure.'
17083 if test x"$ac_file" != x-; then
17084 configure_input="$ac_file. $configure_input"
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17086 $as_echo "$as_me: creating $ac_file" >&6;}
17087 fi
17088 # Neutralize special characters interpreted by sed in replacement strings.
17089 case $configure_input in #(
17090 *\&* | *\|* | *\\* )
17091 ac_sed_conf_input=`$as_echo "$configure_input" |
17092 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17093 *) ac_sed_conf_input=$configure_input;;
17094 esac
17095
17096 case $ac_tag in
17097 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17099 esac
17100 ;;
17101 esac
17102
17103 ac_dir=`$as_dirname -- "$ac_file" ||
17104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17105 X"$ac_file" : 'X\(//\)[^/]' \| \
17106 X"$ac_file" : 'X\(//\)$' \| \
17107 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17108 $as_echo X"$ac_file" |
17109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17110 s//\1/
17111 q
17112 }
17113 /^X\(\/\/\)[^/].*/{
17114 s//\1/
17115 q
17116 }
17117 /^X\(\/\/\)$/{
17118 s//\1/
17119 q
17120 }
17121 /^X\(\/\).*/{
17122 s//\1/
17123 q
17124 }
17125 s/.*/./; q'`
17126 as_dir="$ac_dir"; as_fn_mkdir_p
17127 ac_builddir=.
17128
17129 case "$ac_dir" in
17130 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17131 *)
17132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17133 # A ".." for each directory in $ac_dir_suffix.
17134 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17135 case $ac_top_builddir_sub in
17136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17138 esac ;;
17139 esac
17140 ac_abs_top_builddir=$ac_pwd
17141 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17142 # for backward compatibility:
17143 ac_top_builddir=$ac_top_build_prefix
17144
17145 case $srcdir in
17146 .) # We are building in place.
17147 ac_srcdir=.
17148 ac_top_srcdir=$ac_top_builddir_sub
17149 ac_abs_top_srcdir=$ac_pwd ;;
17150 [\\/]* | ?:[\\/]* ) # Absolute name.
17151 ac_srcdir=$srcdir$ac_dir_suffix;
17152 ac_top_srcdir=$srcdir
17153 ac_abs_top_srcdir=$srcdir ;;
17154 *) # Relative name.
17155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17156 ac_top_srcdir=$ac_top_build_prefix$srcdir
17157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17158 esac
17159 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17160
17161
17162 case $ac_mode in
17163 :F)
17164 #
17165 # CONFIG_FILE
17166 #
17167
17168 case $INSTALL in
17169 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17170 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17171 esac
17172 ac_MKDIR_P=$MKDIR_P
17173 case $MKDIR_P in
17174 [\\/$]* | ?:[\\/]* ) ;;
17175 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17176 esac
17177 _ACEOF
17178
17179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17180 # If the template does not know about datarootdir, expand it.
17181 # FIXME: This hack should be removed a few years after 2.60.
17182 ac_datarootdir_hack=; ac_datarootdir_seen=
17183 ac_sed_dataroot='
17184 /datarootdir/ {
17185 p
17186 q
17187 }
17188 /@datadir@/p
17189 /@docdir@/p
17190 /@infodir@/p
17191 /@localedir@/p
17192 /@mandir@/p'
17193 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17194 *datarootdir*) ac_datarootdir_seen=yes;;
17195 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17197 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17198 _ACEOF
17199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17200 ac_datarootdir_hack='
17201 s&@datadir@&$datadir&g
17202 s&@docdir@&$docdir&g
17203 s&@infodir@&$infodir&g
17204 s&@localedir@&$localedir&g
17205 s&@mandir@&$mandir&g
17206 s&\\\${datarootdir}&$datarootdir&g' ;;
17207 esac
17208 _ACEOF
17209
17210 # Neutralize VPATH when `$srcdir' = `.'.
17211 # Shell code in configure.ac might set extrasub.
17212 # FIXME: do we really want to maintain this feature?
17213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17214 ac_sed_extra="$ac_vpsub
17215 $extrasub
17216 _ACEOF
17217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17218 :t
17219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17220 s|@configure_input@|$ac_sed_conf_input|;t t
17221 s&@top_builddir@&$ac_top_builddir_sub&;t t
17222 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17223 s&@srcdir@&$ac_srcdir&;t t
17224 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17225 s&@top_srcdir@&$ac_top_srcdir&;t t
17226 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17227 s&@builddir@&$ac_builddir&;t t
17228 s&@abs_builddir@&$ac_abs_builddir&;t t
17229 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17230 s&@INSTALL@&$ac_INSTALL&;t t
17231 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17232 $ac_datarootdir_hack
17233 "
17234 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17235 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17236
17237 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17238 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17239 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17240 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17242 which seems to be undefined. Please make sure it is defined" >&5
17243 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17244 which seems to be undefined. Please make sure it is defined" >&2;}
17245
17246 rm -f "$ac_tmp/stdin"
17247 case $ac_file in
17248 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17249 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17250 esac \
17251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17252 ;;
17253 :H)
17254 #
17255 # CONFIG_HEADER
17256 #
17257 if test x"$ac_file" != x-; then
17258 {
17259 $as_echo "/* $configure_input */" \
17260 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17261 } >"$ac_tmp/config.h" \
17262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17263 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17265 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17266 else
17267 rm -f "$ac_file"
17268 mv "$ac_tmp/config.h" "$ac_file" \
17269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17270 fi
17271 else
17272 $as_echo "/* $configure_input */" \
17273 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17274 || as_fn_error $? "could not create -" "$LINENO" 5
17275 fi
17276 # Compute "$ac_file"'s index in $config_headers.
17277 _am_arg="$ac_file"
17278 _am_stamp_count=1
17279 for _am_header in $config_headers :; do
17280 case $_am_header in
17281 $_am_arg | $_am_arg:* )
17282 break ;;
17283 * )
17284 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17285 esac
17286 done
17287 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17288 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17289 X"$_am_arg" : 'X\(//\)[^/]' \| \
17290 X"$_am_arg" : 'X\(//\)$' \| \
17291 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17292 $as_echo X"$_am_arg" |
17293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17294 s//\1/
17295 q
17296 }
17297 /^X\(\/\/\)[^/].*/{
17298 s//\1/
17299 q
17300 }
17301 /^X\(\/\/\)$/{
17302 s//\1/
17303 q
17304 }
17305 /^X\(\/\).*/{
17306 s//\1/
17307 q
17308 }
17309 s/.*/./; q'`/stamp-h$_am_stamp_count
17310 ;;
17311
17312 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17313 $as_echo "$as_me: executing $ac_file commands" >&6;}
17314 ;;
17315 esac
17316
17317
17318 case $ac_file$ac_mode in
17319 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17320 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17321 # are listed without --file. Let's play safe and only enable the eval
17322 # if we detect the quoting.
17323 case $CONFIG_FILES in
17324 *\'*) eval set x "$CONFIG_FILES" ;;
17325 *) set x $CONFIG_FILES ;;
17326 esac
17327 shift
17328 for mf
17329 do
17330 # Strip MF so we end up with the name of the file.
17331 mf=`echo "$mf" | sed -e 's/:.*$//'`
17332 # Check whether this is an Automake generated Makefile or not.
17333 # We used to match only the files named `Makefile.in', but
17334 # some people rename them; so instead we look at the file content.
17335 # Grep'ing the first line is not enough: some people post-process
17336 # each Makefile.in and add a new line on top of each file to say so.
17337 # Grep'ing the whole file is not good either: AIX grep has a line
17338 # limit of 2048, but all sed's we know have understand at least 4000.
17339 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17340 dirpart=`$as_dirname -- "$mf" ||
17341 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17342 X"$mf" : 'X\(//\)[^/]' \| \
17343 X"$mf" : 'X\(//\)$' \| \
17344 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17345 $as_echo X"$mf" |
17346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17347 s//\1/
17348 q
17349 }
17350 /^X\(\/\/\)[^/].*/{
17351 s//\1/
17352 q
17353 }
17354 /^X\(\/\/\)$/{
17355 s//\1/
17356 q
17357 }
17358 /^X\(\/\).*/{
17359 s//\1/
17360 q
17361 }
17362 s/.*/./; q'`
17363 else
17364 continue
17365 fi
17366 # Extract the definition of DEPDIR, am__include, and am__quote
17367 # from the Makefile without running `make'.
17368 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17369 test -z "$DEPDIR" && continue
17370 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17371 test -z "am__include" && continue
17372 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17373 # When using ansi2knr, U may be empty or an underscore; expand it
17374 U=`sed -n 's/^U = //p' < "$mf"`
17375 # Find all dependency output files, they are included files with
17376 # $(DEPDIR) in their names. We invoke sed twice because it is the
17377 # simplest approach to changing $(DEPDIR) to its actual value in the
17378 # expansion.
17379 for file in `sed -n "
17380 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17381 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17382 # Make sure the directory exists.
17383 test -f "$dirpart/$file" && continue
17384 fdir=`$as_dirname -- "$file" ||
17385 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17386 X"$file" : 'X\(//\)[^/]' \| \
17387 X"$file" : 'X\(//\)$' \| \
17388 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17389 $as_echo X"$file" |
17390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17391 s//\1/
17392 q
17393 }
17394 /^X\(\/\/\)[^/].*/{
17395 s//\1/
17396 q
17397 }
17398 /^X\(\/\/\)$/{
17399 s//\1/
17400 q
17401 }
17402 /^X\(\/\).*/{
17403 s//\1/
17404 q
17405 }
17406 s/.*/./; q'`
17407 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17408 # echo "creating $dirpart/$file"
17409 echo '# dummy' > "$dirpart/$file"
17410 done
17411 done
17412 }
17413 ;;
17414 "libtool":C)
17415
17416 # See if we are running on zsh, and set the options which allow our
17417 # commands through without removal of \ escapes.
17418 if test -n "${ZSH_VERSION+set}" ; then
17419 setopt NO_GLOB_SUBST
17420 fi
17421
17422 cfgfile="${ofile}T"
17423 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17424 $RM "$cfgfile"
17425
17426 cat <<_LT_EOF >> "$cfgfile"
17427 #! $SHELL
17428
17429 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17430 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17432 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17433 #
17434 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17435 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17436 # Inc.
17437 # Written by Gordon Matzigkeit, 1996
17438 #
17439 # This file is part of GNU Libtool.
17440 #
17441 # GNU Libtool is free software; you can redistribute it and/or
17442 # modify it under the terms of the GNU General Public License as
17443 # published by the Free Software Foundation; either version 2 of
17444 # the License, or (at your option) any later version.
17445 #
17446 # As a special exception to the GNU General Public License,
17447 # if you distribute this file as part of a program or library that
17448 # is built using GNU Libtool, you may include this file under the
17449 # same distribution terms that you use for the rest of that program.
17450 #
17451 # GNU Libtool is distributed in the hope that it will be useful,
17452 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17453 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17454 # GNU General Public License for more details.
17455 #
17456 # You should have received a copy of the GNU General Public License
17457 # along with GNU Libtool; see the file COPYING. If not, a copy
17458 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17459 # obtained by writing to the Free Software Foundation, Inc.,
17460 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17461
17462
17463 # The names of the tagged configurations supported by this script.
17464 available_tags=""
17465
17466 # ### BEGIN LIBTOOL CONFIG
17467
17468 # Whether or not to build static libraries.
17469 build_old_libs=$enable_static
17470
17471 # Which release of libtool.m4 was used?
17472 macro_version=$macro_version
17473 macro_revision=$macro_revision
17474
17475 # Whether or not to build shared libraries.
17476 build_libtool_libs=$enable_shared
17477
17478 # What type of objects to build.
17479 pic_mode=$pic_mode
17480
17481 # Whether or not to optimize for fast installation.
17482 fast_install=$enable_fast_install
17483
17484 # Shell to use when invoking shell scripts.
17485 SHELL=$lt_SHELL
17486
17487 # An echo program that protects backslashes.
17488 ECHO=$lt_ECHO
17489
17490 # The host system.
17491 host_alias=$host_alias
17492 host=$host
17493 host_os=$host_os
17494
17495 # The build system.
17496 build_alias=$build_alias
17497 build=$build
17498 build_os=$build_os
17499
17500 # A sed program that does not truncate output.
17501 SED=$lt_SED
17502
17503 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17504 Xsed="\$SED -e 1s/^X//"
17505
17506 # A grep program that handles long lines.
17507 GREP=$lt_GREP
17508
17509 # An ERE matcher.
17510 EGREP=$lt_EGREP
17511
17512 # A literal string matcher.
17513 FGREP=$lt_FGREP
17514
17515 # A BSD- or MS-compatible name lister.
17516 NM=$lt_NM
17517
17518 # Whether we need soft or hard links.
17519 LN_S=$lt_LN_S
17520
17521 # What is the maximum length of a command?
17522 max_cmd_len=$max_cmd_len
17523
17524 # Object file suffix (normally "o").
17525 objext=$ac_objext
17526
17527 # Executable file suffix (normally "").
17528 exeext=$exeext
17529
17530 # whether the shell understands "unset".
17531 lt_unset=$lt_unset
17532
17533 # turn spaces into newlines.
17534 SP2NL=$lt_lt_SP2NL
17535
17536 # turn newlines into spaces.
17537 NL2SP=$lt_lt_NL2SP
17538
17539 # convert \$build file names to \$host format.
17540 to_host_file_cmd=$lt_cv_to_host_file_cmd
17541
17542 # convert \$build files to toolchain format.
17543 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17544
17545 # An object symbol dumper.
17546 OBJDUMP=$lt_OBJDUMP
17547
17548 # Method to check whether dependent libraries are shared objects.
17549 deplibs_check_method=$lt_deplibs_check_method
17550
17551 # Command to use when deplibs_check_method = "file_magic".
17552 file_magic_cmd=$lt_file_magic_cmd
17553
17554 # How to find potential files when deplibs_check_method = "file_magic".
17555 file_magic_glob=$lt_file_magic_glob
17556
17557 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17558 want_nocaseglob=$lt_want_nocaseglob
17559
17560 # DLL creation program.
17561 DLLTOOL=$lt_DLLTOOL
17562
17563 # Command to associate shared and link libraries.
17564 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17565
17566 # The archiver.
17567 AR=$lt_AR
17568
17569 # Flags to create an archive.
17570 AR_FLAGS=$lt_AR_FLAGS
17571
17572 # How to feed a file listing to the archiver.
17573 archiver_list_spec=$lt_archiver_list_spec
17574
17575 # A symbol stripping program.
17576 STRIP=$lt_STRIP
17577
17578 # Commands used to install an old-style archive.
17579 RANLIB=$lt_RANLIB
17580 old_postinstall_cmds=$lt_old_postinstall_cmds
17581 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17582
17583 # Whether to use a lock for old archive extraction.
17584 lock_old_archive_extraction=$lock_old_archive_extraction
17585
17586 # A C compiler.
17587 LTCC=$lt_CC
17588
17589 # LTCC compiler flags.
17590 LTCFLAGS=$lt_CFLAGS
17591
17592 # Take the output of nm and produce a listing of raw symbols and C names.
17593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17594
17595 # Transform the output of nm in a proper C declaration.
17596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17597
17598 # Transform the output of nm in a C name address pair.
17599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17600
17601 # Transform the output of nm in a C name address pair when lib prefix is needed.
17602 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17603
17604 # Specify filename containing input files for \$NM.
17605 nm_file_list_spec=$lt_nm_file_list_spec
17606
17607 # The root where to search for dependent libraries,and in which our libraries should be installed.
17608 lt_sysroot=$lt_sysroot
17609
17610 # The name of the directory that contains temporary libtool files.
17611 objdir=$objdir
17612
17613 # Used to examine libraries when file_magic_cmd begins with "file".
17614 MAGIC_CMD=$MAGIC_CMD
17615
17616 # Must we lock files when doing compilation?
17617 need_locks=$lt_need_locks
17618
17619 # Manifest tool.
17620 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17621
17622 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17623 DSYMUTIL=$lt_DSYMUTIL
17624
17625 # Tool to change global to local symbols on Mac OS X.
17626 NMEDIT=$lt_NMEDIT
17627
17628 # Tool to manipulate fat objects and archives on Mac OS X.
17629 LIPO=$lt_LIPO
17630
17631 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17632 OTOOL=$lt_OTOOL
17633
17634 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17635 OTOOL64=$lt_OTOOL64
17636
17637 # Old archive suffix (normally "a").
17638 libext=$libext
17639
17640 # Shared library suffix (normally ".so").
17641 shrext_cmds=$lt_shrext_cmds
17642
17643 # The commands to extract the exported symbol list from a shared archive.
17644 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17645
17646 # Variables whose values should be saved in libtool wrapper scripts and
17647 # restored at link time.
17648 variables_saved_for_relink=$lt_variables_saved_for_relink
17649
17650 # Do we need the "lib" prefix for modules?
17651 need_lib_prefix=$need_lib_prefix
17652
17653 # Do we need a version for libraries?
17654 need_version=$need_version
17655
17656 # Library versioning type.
17657 version_type=$version_type
17658
17659 # Shared library runtime path variable.
17660 runpath_var=$runpath_var
17661
17662 # Shared library path variable.
17663 shlibpath_var=$shlibpath_var
17664
17665 # Is shlibpath searched before the hard-coded library search path?
17666 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17667
17668 # Format of library name prefix.
17669 libname_spec=$lt_libname_spec
17670
17671 # List of archive names. First name is the real one, the rest are links.
17672 # The last name is the one that the linker finds with -lNAME
17673 library_names_spec=$lt_library_names_spec
17674
17675 # The coded name of the library, if different from the real name.
17676 soname_spec=$lt_soname_spec
17677
17678 # Permission mode override for installation of shared libraries.
17679 install_override_mode=$lt_install_override_mode
17680
17681 # Command to use after installation of a shared archive.
17682 postinstall_cmds=$lt_postinstall_cmds
17683
17684 # Command to use after uninstallation of a shared archive.
17685 postuninstall_cmds=$lt_postuninstall_cmds
17686
17687 # Commands used to finish a libtool library installation in a directory.
17688 finish_cmds=$lt_finish_cmds
17689
17690 # As "finish_cmds", except a single script fragment to be evaled but
17691 # not shown.
17692 finish_eval=$lt_finish_eval
17693
17694 # Whether we should hardcode library paths into libraries.
17695 hardcode_into_libs=$hardcode_into_libs
17696
17697 # Compile-time system search path for libraries.
17698 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17699
17700 # Run-time system search path for libraries.
17701 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17702
17703 # Whether dlopen is supported.
17704 dlopen_support=$enable_dlopen
17705
17706 # Whether dlopen of programs is supported.
17707 dlopen_self=$enable_dlopen_self
17708
17709 # Whether dlopen of statically linked programs is supported.
17710 dlopen_self_static=$enable_dlopen_self_static
17711
17712 # Commands to strip libraries.
17713 old_striplib=$lt_old_striplib
17714 striplib=$lt_striplib
17715
17716
17717 # The linker used to build libraries.
17718 LD=$lt_LD
17719
17720 # How to create reloadable object files.
17721 reload_flag=$lt_reload_flag
17722 reload_cmds=$lt_reload_cmds
17723
17724 # Commands used to build an old-style archive.
17725 old_archive_cmds=$lt_old_archive_cmds
17726
17727 # A language specific compiler.
17728 CC=$lt_compiler
17729
17730 # Is the compiler the GNU compiler?
17731 with_gcc=$GCC
17732
17733 # Compiler flag to turn off builtin functions.
17734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17735
17736 # Additional compiler flags for building library objects.
17737 pic_flag=$lt_lt_prog_compiler_pic
17738
17739 # How to pass a linker flag through the compiler.
17740 wl=$lt_lt_prog_compiler_wl
17741
17742 # Compiler flag to prevent dynamic linking.
17743 link_static_flag=$lt_lt_prog_compiler_static
17744
17745 # Does compiler simultaneously support -c and -o options?
17746 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17747
17748 # Whether or not to add -lc for building shared libraries.
17749 build_libtool_need_lc=$archive_cmds_need_lc
17750
17751 # Whether or not to disallow shared libs when runtime libs are static.
17752 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17753
17754 # Compiler flag to allow reflexive dlopens.
17755 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17756
17757 # Compiler flag to generate shared objects directly from archives.
17758 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17759
17760 # Whether the compiler copes with passing no objects directly.
17761 compiler_needs_object=$lt_compiler_needs_object
17762
17763 # Create an old-style archive from a shared archive.
17764 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17765
17766 # Create a temporary old-style archive to link instead of a shared archive.
17767 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17768
17769 # Commands used to build a shared archive.
17770 archive_cmds=$lt_archive_cmds
17771 archive_expsym_cmds=$lt_archive_expsym_cmds
17772
17773 # Commands used to build a loadable module if different from building
17774 # a shared archive.
17775 module_cmds=$lt_module_cmds
17776 module_expsym_cmds=$lt_module_expsym_cmds
17777
17778 # Whether we are building with GNU ld or not.
17779 with_gnu_ld=$lt_with_gnu_ld
17780
17781 # Flag that allows shared libraries with undefined symbols to be built.
17782 allow_undefined_flag=$lt_allow_undefined_flag
17783
17784 # Flag that enforces no undefined symbols.
17785 no_undefined_flag=$lt_no_undefined_flag
17786
17787 # Flag to hardcode \$libdir into a binary during linking.
17788 # This must work even if \$libdir does not exist
17789 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17790
17791 # If ld is used when linking, flag to hardcode \$libdir into a binary
17792 # during linking. This must work even if \$libdir does not exist.
17793 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17794
17795 # Whether we need a single "-rpath" flag with a separated argument.
17796 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17797
17798 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17799 # DIR into the resulting binary.
17800 hardcode_direct=$hardcode_direct
17801
17802 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17803 # DIR into the resulting binary and the resulting library dependency is
17804 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17805 # library is relocated.
17806 hardcode_direct_absolute=$hardcode_direct_absolute
17807
17808 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17809 # into the resulting binary.
17810 hardcode_minus_L=$hardcode_minus_L
17811
17812 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17813 # into the resulting binary.
17814 hardcode_shlibpath_var=$hardcode_shlibpath_var
17815
17816 # Set to "yes" if building a shared library automatically hardcodes DIR
17817 # into the library and all subsequent libraries and executables linked
17818 # against it.
17819 hardcode_automatic=$hardcode_automatic
17820
17821 # Set to yes if linker adds runtime paths of dependent libraries
17822 # to runtime path list.
17823 inherit_rpath=$inherit_rpath
17824
17825 # Whether libtool must link a program against all its dependency libraries.
17826 link_all_deplibs=$link_all_deplibs
17827
17828 # Set to "yes" if exported symbols are required.
17829 always_export_symbols=$always_export_symbols
17830
17831 # The commands to list exported symbols.
17832 export_symbols_cmds=$lt_export_symbols_cmds
17833
17834 # Symbols that should not be listed in the preloaded symbols.
17835 exclude_expsyms=$lt_exclude_expsyms
17836
17837 # Symbols that must always be exported.
17838 include_expsyms=$lt_include_expsyms
17839
17840 # Commands necessary for linking programs (against libraries) with templates.
17841 prelink_cmds=$lt_prelink_cmds
17842
17843 # Commands necessary for finishing linking programs.
17844 postlink_cmds=$lt_postlink_cmds
17845
17846 # Specify filename containing input files.
17847 file_list_spec=$lt_file_list_spec
17848
17849 # How to hardcode a shared library path into an executable.
17850 hardcode_action=$hardcode_action
17851
17852 # ### END LIBTOOL CONFIG
17853
17854 _LT_EOF
17855
17856 case $host_os in
17857 aix3*)
17858 cat <<\_LT_EOF >> "$cfgfile"
17859 # AIX sometimes has problems with the GCC collect2 program. For some
17860 # reason, if we set the COLLECT_NAMES environment variable, the problems
17861 # vanish in a puff of smoke.
17862 if test "X${COLLECT_NAMES+set}" != Xset; then
17863 COLLECT_NAMES=
17864 export COLLECT_NAMES
17865 fi
17866 _LT_EOF
17867 ;;
17868 esac
17869
17870
17871 ltmain="$ac_aux_dir/ltmain.sh"
17872
17873
17874 # We use sed instead of cat because bash on DJGPP gets confused if
17875 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17876 # text mode, it properly converts lines to CR/LF. This bash problem
17877 # is reportedly fixed, but why not run on old versions too?
17878 sed '$q' "$ltmain" >> "$cfgfile" \
17879 || (rm -f "$cfgfile"; exit 1)
17880
17881 if test x"$xsi_shell" = xyes; then
17882 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17883 func_dirname ()\
17884 {\
17885 \ case ${1} in\
17886 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17887 \ * ) func_dirname_result="${3}" ;;\
17888 \ esac\
17889 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17890 && mv -f "$cfgfile.tmp" "$cfgfile" \
17891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17892 test 0 -eq $? || _lt_function_replace_fail=:
17893
17894
17895 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17896 func_basename ()\
17897 {\
17898 \ func_basename_result="${1##*/}"\
17899 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17900 && mv -f "$cfgfile.tmp" "$cfgfile" \
17901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17902 test 0 -eq $? || _lt_function_replace_fail=:
17903
17904
17905 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17906 func_dirname_and_basename ()\
17907 {\
17908 \ case ${1} in\
17909 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17910 \ * ) func_dirname_result="${3}" ;;\
17911 \ esac\
17912 \ func_basename_result="${1##*/}"\
17913 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17914 && mv -f "$cfgfile.tmp" "$cfgfile" \
17915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17916 test 0 -eq $? || _lt_function_replace_fail=:
17917
17918
17919 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17920 func_stripname ()\
17921 {\
17922 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17923 \ # positional parameters, so assign one to ordinary parameter first.\
17924 \ func_stripname_result=${3}\
17925 \ func_stripname_result=${func_stripname_result#"${1}"}\
17926 \ func_stripname_result=${func_stripname_result%"${2}"}\
17927 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17928 && mv -f "$cfgfile.tmp" "$cfgfile" \
17929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17930 test 0 -eq $? || _lt_function_replace_fail=:
17931
17932
17933 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17934 func_split_long_opt ()\
17935 {\
17936 \ func_split_long_opt_name=${1%%=*}\
17937 \ func_split_long_opt_arg=${1#*=}\
17938 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17939 && mv -f "$cfgfile.tmp" "$cfgfile" \
17940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17941 test 0 -eq $? || _lt_function_replace_fail=:
17942
17943
17944 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17945 func_split_short_opt ()\
17946 {\
17947 \ func_split_short_opt_arg=${1#??}\
17948 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17949 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17950 && mv -f "$cfgfile.tmp" "$cfgfile" \
17951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17952 test 0 -eq $? || _lt_function_replace_fail=:
17953
17954
17955 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17956 func_lo2o ()\
17957 {\
17958 \ case ${1} in\
17959 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17960 \ *) func_lo2o_result=${1} ;;\
17961 \ esac\
17962 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17963 && mv -f "$cfgfile.tmp" "$cfgfile" \
17964 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17965 test 0 -eq $? || _lt_function_replace_fail=:
17966
17967
17968 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17969 func_xform ()\
17970 {\
17971 func_xform_result=${1%.*}.lo\
17972 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17973 && mv -f "$cfgfile.tmp" "$cfgfile" \
17974 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17975 test 0 -eq $? || _lt_function_replace_fail=:
17976
17977
17978 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17979 func_arith ()\
17980 {\
17981 func_arith_result=$(( $* ))\
17982 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17983 && mv -f "$cfgfile.tmp" "$cfgfile" \
17984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17985 test 0 -eq $? || _lt_function_replace_fail=:
17986
17987
17988 sed -e '/^func_len ()$/,/^} # func_len /c\
17989 func_len ()\
17990 {\
17991 func_len_result=${#1}\
17992 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17993 && mv -f "$cfgfile.tmp" "$cfgfile" \
17994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17995 test 0 -eq $? || _lt_function_replace_fail=:
17996
17997 fi
17998
17999 if test x"$lt_shell_append" = xyes; then
18000 sed -e '/^func_append ()$/,/^} # func_append /c\
18001 func_append ()\
18002 {\
18003 eval "${1}+=\\${2}"\
18004 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18005 && mv -f "$cfgfile.tmp" "$cfgfile" \
18006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18007 test 0 -eq $? || _lt_function_replace_fail=:
18008
18009
18010 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18011 func_append_quoted ()\
18012 {\
18013 \ func_quote_for_eval "${2}"\
18014 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18015 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18016 && mv -f "$cfgfile.tmp" "$cfgfile" \
18017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18018 test 0 -eq $? || _lt_function_replace_fail=:
18019
18020
18021 # Save a `func_append' function call where possible by direct use of '+='
18022 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18023 && mv -f "$cfgfile.tmp" "$cfgfile" \
18024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18025 test 0 -eq $? || _lt_function_replace_fail=:
18026 else
18027 # Save a `func_append' function call even when '+=' is not available
18028 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18029 && mv -f "$cfgfile.tmp" "$cfgfile" \
18030 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18031 test 0 -eq $? || _lt_function_replace_fail=:
18032 fi
18033
18034 if test x"$_lt_function_replace_fail" = x":"; then
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18036 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18037 fi
18038
18039
18040 mv -f "$cfgfile" "$ofile" ||
18041 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18042 chmod +x "$ofile"
18043
18044 ;;
18045
18046 esac
18047 done # for ac_tag
18048
18049
18050 as_fn_exit 0
18051 _ACEOF
18052 ac_clean_files=$ac_clean_files_save
18053
18054 test $ac_write_fail = 0 ||
18055 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18056
18057
18058 # configure is writing to config.log, and then calls config.status.
18059 # config.status does its own redirection, appending to config.log.
18060 # Unfortunately, on DOS this fails, as config.log is still kept open
18061 # by configure, so config.status won't be able to write to it; its
18062 # output is simply discarded. So we exec the FD to /dev/null,
18063 # effectively closing config.log, so it can be properly (re)opened and
18064 # appended to by config.status. When coming back to configure, we
18065 # need to make the FD available again.
18066 if test "$no_create" != yes; then
18067 ac_cs_success=:
18068 ac_config_status_args=
18069 test "$silent" = yes &&
18070 ac_config_status_args="$ac_config_status_args --quiet"
18071 exec 5>/dev/null
18072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18073 exec 5>>config.log
18074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18075 # would make configure fail if this is the last instruction.
18076 $ac_cs_success || as_fn_exit 1
18077 fi
18078 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18080 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18081 fi
18082
18083