Cleanup spec
[profile/ivi/pam.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="conf/pam_conv1/pam_conv_y.y"
751 ac_default_prefix=/usr
752 # Factoring default headers for most tests.
753 ac_includes_default="\
754 #include <stdio.h>
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
757 #endif
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
760 #endif
761 #ifdef STDC_HEADERS
762 # include <stdlib.h>
763 # include <stddef.h>
764 #else
765 # ifdef HAVE_STDLIB_H
766 #  include <stdlib.h>
767 # endif
768 #endif
769 #ifdef HAVE_STRING_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771 #  include <memory.h>
772 # endif
773 # include <string.h>
774 #endif
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
777 #endif
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
780 #endif
781 #ifdef HAVE_STDINT_H
782 # include <stdint.h>
783 #endif
784 #ifdef HAVE_UNISTD_H
785 # include <unistd.h>
786 #endif"
787
788 gt_needs=
789 ac_subst_vars='LTLIBOBJS
790 HAVE_KEY_MANAGEMENT_FALSE
791 HAVE_KEY_MANAGEMENT_TRUE
792 HAVE_KEY_MANAGEMENT
793 POSUB
794 LTLIBINTL
795 LIBINTL
796 INTLLIBS
797 LTLIBICONV
798 LIBICONV
799 INTL_MACOSX_LIBS
800 XGETTEXT_EXTRA_OPTIONS
801 MSGMERGE
802 XGETTEXT_015
803 XGETTEXT
804 GMSGFMT_015
805 MSGFMT_015
806 GMSGFMT
807 MSGFMT
808 GETTEXT_MACRO_VERSION
809 USE_NLS
810 ENABLE_GENERATE_PDF_FALSE
811 ENABLE_GENERATE_PDF_TRUE
812 ENABLE_REGENERATE_MAN_FALSE
813 ENABLE_REGENERATE_MAN_TRUE
814 FO2PDF
815 BROWSER
816 XMLCATALOG
817 XML_CATALOG_FILE
818 XMLLINT
819 XSLTPROC
820 HAVE_UNSHARE_FALSE
821 HAVE_UNSHARE_TRUE
822 LIBOBJS
823 HAVE_LIBSELINUX_FALSE
824 HAVE_LIBSELINUX_TRUE
825 LIBSELINUX
826 NIS_LIBS
827 NIS_CFLAGS
828 libtirpc_LIBS
829 libtirpc_CFLAGS
830 PKG_CONFIG
831 HAVE_LIBDB_FALSE
832 HAVE_LIBDB_TRUE
833 LIBDB
834 LIBCRYPT
835 HAVE_AUDIT_TTY_STATUS_FALSE
836 HAVE_AUDIT_TTY_STATUS_TRUE
837 LIBAUDIT
838 HAVE_LIBCRACK_FALSE
839 HAVE_LIBCRACK_TRUE
840 LIBCRACK
841 LIBDL
842 pam_xauth_path
843 SCONFIGDIR
844 SECUREDIR
845 LIBPRELUDE_CONFIG_PREFIX
846 LIBPRELUDE_PREFIX
847 LIBPRELUDE_LIBS
848 LIBPRELUDE_LDFLAGS
849 LIBPRELUDE_PTHREAD_CFLAGS
850 LIBPRELUDE_CFLAGS
851 LIBPRELUDE_CONFIG
852 PIE_LDFLAGS
853 PIE_CFLAGS
854 libc_cv_fpie
855 HAVE_VERSIONING_FALSE
856 HAVE_VERSIONING_TRUE
857 BUILD_LDFLAGS
858 BUILD_CFLAGS
859 CC_FOR_BUILD
860 pam_cv_ld_O1
861 pam_cv_ld_no_undefined
862 pam_cv_ld_as_needed
863 OTOOL64
864 OTOOL
865 LIPO
866 NMEDIT
867 DSYMUTIL
868 lt_ECHO
869 RANLIB
870 AR
871 OBJDUMP
872 NM
873 ac_ct_DUMPBIN
874 DUMPBIN
875 LD
876 FGREP
877 SED
878 LIBTOOL
879 LN_S
880 LEXLIB
881 LEX_OUTPUT_ROOT
882 LEX
883 YFLAGS
884 YACC
885 EGREP
886 GREP
887 CPP
888 am__fastdepCC_FALSE
889 am__fastdepCC_TRUE
890 CCDEPMODE
891 AMDEPBACKSLASH
892 AMDEP_FALSE
893 AMDEP_TRUE
894 am__quote
895 am__include
896 DEPDIR
897 OBJEXT
898 EXEEXT
899 ac_ct_CC
900 CPPFLAGS
901 LDFLAGS
902 CFLAGS
903 CC
904 STATIC_MODULES_FALSE
905 STATIC_MODULES_TRUE
906 host_os
907 host_vendor
908 host_cpu
909 host
910 build_os
911 build_vendor
912 build_cpu
913 build
914 am__untar
915 am__tar
916 AMTAR
917 am__leading_dot
918 SET_MAKE
919 AWK
920 mkdir_p
921 MKDIR_P
922 INSTALL_STRIP_PROGRAM
923 STRIP
924 install_sh
925 MAKEINFO
926 AUTOHEADER
927 AUTOMAKE
928 AUTOCONF
929 ACLOCAL
930 VERSION
931 PACKAGE
932 CYGPATH_W
933 am__isrc
934 INSTALL_DATA
935 INSTALL_SCRIPT
936 INSTALL_PROGRAM
937 target_alias
938 host_alias
939 build_alias
940 LIBS
941 ECHO_T
942 ECHO_N
943 ECHO_C
944 DEFS
945 mandir
946 localedir
947 libdir
948 psdir
949 pdfdir
950 dvidir
951 htmldir
952 infodir
953 docdir
954 oldincludedir
955 includedir
956 localstatedir
957 sharedstatedir
958 sysconfdir
959 datadir
960 datarootdir
961 libexecdir
962 sbindir
963 bindir
964 program_transform_name
965 prefix
966 exec_prefix
967 PACKAGE_BUGREPORT
968 PACKAGE_STRING
969 PACKAGE_VERSION
970 PACKAGE_TARNAME
971 PACKAGE_NAME
972 PATH_SEPARATOR
973 SHELL'
974 ac_subst_files=''
975 ac_user_opts='
976 enable_option_checking
977 enable_static_modules
978 enable_static
979 enable_shared
980 enable_dependency_tracking
981 with_pic
982 enable_fast_install
983 with_gnu_ld
984 enable_libtool_lock
985 enable_largefile
986 enable_pie
987 enable_prelude
988 with_libprelude_prefix
989 enable_debug
990 enable_securedir
991 enable_isadir
992 enable_sconfigdir
993 enable_pamlocking
994 enable_read_both_confs
995 enable_lckpwdf
996 with_mailspool
997 with_xauth
998 enable_cracklib
999 enable_audit
1000 with_randomdev
1001 enable_db
1002 with_db_uniquename
1003 enable_nis
1004 enable_selinux
1005 enable_regenerate_docu
1006 with_xml_catalog
1007 enable_nls
1008 enable_rpath
1009 with_libiconv_prefix
1010 with_libintl_prefix
1011 '
1012       ac_precious_vars='build_alias
1013 host_alias
1014 target_alias
1015 CC
1016 CFLAGS
1017 LDFLAGS
1018 LIBS
1019 CPPFLAGS
1020 CPP
1021 YACC
1022 YFLAGS
1023 PKG_CONFIG
1024 libtirpc_CFLAGS
1025 libtirpc_LIBS'
1026
1027
1028 # Initialize some variables set by options.
1029 ac_init_help=
1030 ac_init_version=false
1031 ac_unrecognized_opts=
1032 ac_unrecognized_sep=
1033 # The variables have the same names as the options, with
1034 # dashes changed to underlines.
1035 cache_file=/dev/null
1036 exec_prefix=NONE
1037 no_create=
1038 no_recursion=
1039 prefix=NONE
1040 program_prefix=NONE
1041 program_suffix=NONE
1042 program_transform_name=s,x,x,
1043 silent=
1044 site=
1045 srcdir=
1046 verbose=
1047 x_includes=NONE
1048 x_libraries=NONE
1049
1050 # Installation directory options.
1051 # These are left unexpanded so users can "make install exec_prefix=/foo"
1052 # and all the variables that are supposed to be based on exec_prefix
1053 # by default will actually change.
1054 # Use braces instead of parens because sh, perl, etc. also accept them.
1055 # (The list follows the same order as the GNU Coding Standards.)
1056 bindir='${exec_prefix}/bin'
1057 sbindir='${exec_prefix}/sbin'
1058 libexecdir='${exec_prefix}/libexec'
1059 datarootdir='${prefix}/share'
1060 datadir='${datarootdir}'
1061 sysconfdir='${prefix}/etc'
1062 sharedstatedir='${prefix}/com'
1063 localstatedir='${prefix}/var'
1064 includedir='${prefix}/include'
1065 oldincludedir='/usr/include'
1066 docdir='${datarootdir}/doc/${PACKAGE}'
1067 infodir='${datarootdir}/info'
1068 htmldir='${docdir}'
1069 dvidir='${docdir}'
1070 pdfdir='${docdir}'
1071 psdir='${docdir}'
1072 libdir='${exec_prefix}/lib'
1073 localedir='${datarootdir}/locale'
1074 mandir='${datarootdir}/man'
1075
1076 ac_prev=
1077 ac_dashdash=
1078 for ac_option
1079 do
1080   # If the previous option needs an argument, assign it.
1081   if test -n "$ac_prev"; then
1082     eval $ac_prev=\$ac_option
1083     ac_prev=
1084     continue
1085   fi
1086
1087   case $ac_option in
1088   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1089   *)    ac_optarg=yes ;;
1090   esac
1091
1092   # Accept the important Cygnus configure options, so we can diagnose typos.
1093
1094   case $ac_dashdash$ac_option in
1095   --)
1096     ac_dashdash=yes ;;
1097
1098   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1099     ac_prev=bindir ;;
1100   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1101     bindir=$ac_optarg ;;
1102
1103   -build | --build | --buil | --bui | --bu)
1104     ac_prev=build_alias ;;
1105   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1106     build_alias=$ac_optarg ;;
1107
1108   -cache-file | --cache-file | --cache-fil | --cache-fi \
1109   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1110     ac_prev=cache_file ;;
1111   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1112   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1113     cache_file=$ac_optarg ;;
1114
1115   --config-cache | -C)
1116     cache_file=config.cache ;;
1117
1118   -datadir | --datadir | --datadi | --datad)
1119     ac_prev=datadir ;;
1120   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1121     datadir=$ac_optarg ;;
1122
1123   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1124   | --dataroo | --dataro | --datar)
1125     ac_prev=datarootdir ;;
1126   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1127   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1128     datarootdir=$ac_optarg ;;
1129
1130   -disable-* | --disable-*)
1131     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1135    { (exit 1); exit 1; }; }
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "enable_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval enable_$ac_useropt=no ;;
1146
1147   -docdir | --docdir | --docdi | --doc | --do)
1148     ac_prev=docdir ;;
1149   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1150     docdir=$ac_optarg ;;
1151
1152   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1153     ac_prev=dvidir ;;
1154   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1155     dvidir=$ac_optarg ;;
1156
1157   -enable-* | --enable-*)
1158     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1162    { (exit 1); exit 1; }; }
1163     ac_useropt_orig=$ac_useropt
1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165     case $ac_user_opts in
1166       *"
1167 "enable_$ac_useropt"
1168 "*) ;;
1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1170          ac_unrecognized_sep=', ';;
1171     esac
1172     eval enable_$ac_useropt=\$ac_optarg ;;
1173
1174   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1175   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1176   | --exec | --exe | --ex)
1177     ac_prev=exec_prefix ;;
1178   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1179   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1180   | --exec=* | --exe=* | --ex=*)
1181     exec_prefix=$ac_optarg ;;
1182
1183   -gas | --gas | --ga | --g)
1184     # Obsolete; use --with-gas.
1185     with_gas=yes ;;
1186
1187   -help | --help | --hel | --he | -h)
1188     ac_init_help=long ;;
1189   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1190     ac_init_help=recursive ;;
1191   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1192     ac_init_help=short ;;
1193
1194   -host | --host | --hos | --ho)
1195     ac_prev=host_alias ;;
1196   -host=* | --host=* | --hos=* | --ho=*)
1197     host_alias=$ac_optarg ;;
1198
1199   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1200     ac_prev=htmldir ;;
1201   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1202   | --ht=*)
1203     htmldir=$ac_optarg ;;
1204
1205   -includedir | --includedir | --includedi | --included | --include \
1206   | --includ | --inclu | --incl | --inc)
1207     ac_prev=includedir ;;
1208   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1209   | --includ=* | --inclu=* | --incl=* | --inc=*)
1210     includedir=$ac_optarg ;;
1211
1212   -infodir | --infodir | --infodi | --infod | --info | --inf)
1213     ac_prev=infodir ;;
1214   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1215     infodir=$ac_optarg ;;
1216
1217   -libdir | --libdir | --libdi | --libd)
1218     ac_prev=libdir ;;
1219   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1220     libdir=$ac_optarg ;;
1221
1222   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1223   | --libexe | --libex | --libe)
1224     ac_prev=libexecdir ;;
1225   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1226   | --libexe=* | --libex=* | --libe=*)
1227     libexecdir=$ac_optarg ;;
1228
1229   -localedir | --localedir | --localedi | --localed | --locale)
1230     ac_prev=localedir ;;
1231   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1232     localedir=$ac_optarg ;;
1233
1234   -localstatedir | --localstatedir | --localstatedi | --localstated \
1235   | --localstate | --localstat | --localsta | --localst | --locals)
1236     ac_prev=localstatedir ;;
1237   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1238   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1239     localstatedir=$ac_optarg ;;
1240
1241   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1242     ac_prev=mandir ;;
1243   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1244     mandir=$ac_optarg ;;
1245
1246   -nfp | --nfp | --nf)
1247     # Obsolete; use --without-fp.
1248     with_fp=no ;;
1249
1250   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1251   | --no-cr | --no-c | -n)
1252     no_create=yes ;;
1253
1254   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1255   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1256     no_recursion=yes ;;
1257
1258   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1259   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1260   | --oldin | --oldi | --old | --ol | --o)
1261     ac_prev=oldincludedir ;;
1262   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1263   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1264   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1265     oldincludedir=$ac_optarg ;;
1266
1267   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1268     ac_prev=prefix ;;
1269   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1270     prefix=$ac_optarg ;;
1271
1272   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1273   | --program-pre | --program-pr | --program-p)
1274     ac_prev=program_prefix ;;
1275   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1276   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1277     program_prefix=$ac_optarg ;;
1278
1279   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1280   | --program-suf | --program-su | --program-s)
1281     ac_prev=program_suffix ;;
1282   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1283   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1284     program_suffix=$ac_optarg ;;
1285
1286   -program-transform-name | --program-transform-name \
1287   | --program-transform-nam | --program-transform-na \
1288   | --program-transform-n | --program-transform- \
1289   | --program-transform | --program-transfor \
1290   | --program-transfo | --program-transf \
1291   | --program-trans | --program-tran \
1292   | --progr-tra | --program-tr | --program-t)
1293     ac_prev=program_transform_name ;;
1294   -program-transform-name=* | --program-transform-name=* \
1295   | --program-transform-nam=* | --program-transform-na=* \
1296   | --program-transform-n=* | --program-transform-=* \
1297   | --program-transform=* | --program-transfor=* \
1298   | --program-transfo=* | --program-transf=* \
1299   | --program-trans=* | --program-tran=* \
1300   | --progr-tra=* | --program-tr=* | --program-t=*)
1301     program_transform_name=$ac_optarg ;;
1302
1303   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1304     ac_prev=pdfdir ;;
1305   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1306     pdfdir=$ac_optarg ;;
1307
1308   -psdir | --psdir | --psdi | --psd | --ps)
1309     ac_prev=psdir ;;
1310   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1311     psdir=$ac_optarg ;;
1312
1313   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314   | -silent | --silent | --silen | --sile | --sil)
1315     silent=yes ;;
1316
1317   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1318     ac_prev=sbindir ;;
1319   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1320   | --sbi=* | --sb=*)
1321     sbindir=$ac_optarg ;;
1322
1323   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1324   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1325   | --sharedst | --shareds | --shared | --share | --shar \
1326   | --sha | --sh)
1327     ac_prev=sharedstatedir ;;
1328   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1329   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1330   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1331   | --sha=* | --sh=*)
1332     sharedstatedir=$ac_optarg ;;
1333
1334   -site | --site | --sit)
1335     ac_prev=site ;;
1336   -site=* | --site=* | --sit=*)
1337     site=$ac_optarg ;;
1338
1339   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1340     ac_prev=srcdir ;;
1341   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1342     srcdir=$ac_optarg ;;
1343
1344   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1345   | --syscon | --sysco | --sysc | --sys | --sy)
1346     ac_prev=sysconfdir ;;
1347   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1348   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1349     sysconfdir=$ac_optarg ;;
1350
1351   -target | --target | --targe | --targ | --tar | --ta | --t)
1352     ac_prev=target_alias ;;
1353   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1354     target_alias=$ac_optarg ;;
1355
1356   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1357     verbose=yes ;;
1358
1359   -version | --version | --versio | --versi | --vers | -V)
1360     ac_init_version=: ;;
1361
1362   -with-* | --with-*)
1363     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1364     # Reject names that are not valid shell variable names.
1365     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1367    { (exit 1); exit 1; }; }
1368     ac_useropt_orig=$ac_useropt
1369     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1370     case $ac_user_opts in
1371       *"
1372 "with_$ac_useropt"
1373 "*) ;;
1374       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1375          ac_unrecognized_sep=', ';;
1376     esac
1377     eval with_$ac_useropt=\$ac_optarg ;;
1378
1379   -without-* | --without-*)
1380     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1381     # Reject names that are not valid shell variable names.
1382     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1383       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1384    { (exit 1); exit 1; }; }
1385     ac_useropt_orig=$ac_useropt
1386     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1387     case $ac_user_opts in
1388       *"
1389 "with_$ac_useropt"
1390 "*) ;;
1391       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1392          ac_unrecognized_sep=', ';;
1393     esac
1394     eval with_$ac_useropt=no ;;
1395
1396   --x)
1397     # Obsolete; use --with-x.
1398     with_x=yes ;;
1399
1400   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1401   | --x-incl | --x-inc | --x-in | --x-i)
1402     ac_prev=x_includes ;;
1403   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1404   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1405     x_includes=$ac_optarg ;;
1406
1407   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1408   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1409     ac_prev=x_libraries ;;
1410   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1411   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1412     x_libraries=$ac_optarg ;;
1413
1414   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1415 Try \`$0 --help' for more information." >&2
1416    { (exit 1); exit 1; }; }
1417     ;;
1418
1419   *=*)
1420     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1421     # Reject names that are not valid shell variable names.
1422     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1423       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1424    { (exit 1); exit 1; }; }
1425     eval $ac_envvar=\$ac_optarg
1426     export $ac_envvar ;;
1427
1428   *)
1429     # FIXME: should be removed in autoconf 3.0.
1430     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1431     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1432       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1433     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1434     ;;
1435
1436   esac
1437 done
1438
1439 if test -n "$ac_prev"; then
1440   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1441   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1442    { (exit 1); exit 1; }; }
1443 fi
1444
1445 if test -n "$ac_unrecognized_opts"; then
1446   case $enable_option_checking in
1447     no) ;;
1448     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1449    { (exit 1); exit 1; }; } ;;
1450     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1451   esac
1452 fi
1453
1454 # Check all directory arguments for consistency.
1455 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1456                 datadir sysconfdir sharedstatedir localstatedir includedir \
1457                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1458                 libdir localedir mandir
1459 do
1460   eval ac_val=\$$ac_var
1461   # Remove trailing slashes.
1462   case $ac_val in
1463     */ )
1464       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1465       eval $ac_var=\$ac_val;;
1466   esac
1467   # Be sure to have absolute directory names.
1468   case $ac_val in
1469     [\\/$]* | ?:[\\/]* )  continue;;
1470     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1471   esac
1472   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1473    { (exit 1); exit 1; }; }
1474 done
1475
1476 # There might be people who depend on the old broken behavior: `$host'
1477 # used to hold the argument of --host etc.
1478 # FIXME: To remove some day.
1479 build=$build_alias
1480 host=$host_alias
1481 target=$target_alias
1482
1483 # FIXME: To remove some day.
1484 if test "x$host_alias" != x; then
1485   if test "x$build_alias" = x; then
1486     cross_compiling=maybe
1487     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1488     If a cross compiler is detected then cross compile mode will be used." >&2
1489   elif test "x$build_alias" != "x$host_alias"; then
1490     cross_compiling=yes
1491   fi
1492 fi
1493
1494 ac_tool_prefix=
1495 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1496
1497 test "$silent" = yes && exec 6>/dev/null
1498
1499
1500 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1501 ac_ls_di=`ls -di .` &&
1502 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1503   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1504    { (exit 1); exit 1; }; }
1505 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1506   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1507    { (exit 1); exit 1; }; }
1508
1509
1510 # Find the source files, if location was not specified.
1511 if test -z "$srcdir"; then
1512   ac_srcdir_defaulted=yes
1513   # Try the directory containing this script, then the parent directory.
1514   ac_confdir=`$as_dirname -- "$as_myself" ||
1515 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1516          X"$as_myself" : 'X\(//\)[^/]' \| \
1517          X"$as_myself" : 'X\(//\)$' \| \
1518          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1519 $as_echo X"$as_myself" |
1520     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1521             s//\1/
1522             q
1523           }
1524           /^X\(\/\/\)[^/].*/{
1525             s//\1/
1526             q
1527           }
1528           /^X\(\/\/\)$/{
1529             s//\1/
1530             q
1531           }
1532           /^X\(\/\).*/{
1533             s//\1/
1534             q
1535           }
1536           s/.*/./; q'`
1537   srcdir=$ac_confdir
1538   if test ! -r "$srcdir/$ac_unique_file"; then
1539     srcdir=..
1540   fi
1541 else
1542   ac_srcdir_defaulted=no
1543 fi
1544 if test ! -r "$srcdir/$ac_unique_file"; then
1545   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1546   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1547    { (exit 1); exit 1; }; }
1548 fi
1549 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1550 ac_abs_confdir=`(
1551         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1552    { (exit 1); exit 1; }; }
1553         pwd)`
1554 # When building in place, set srcdir=.
1555 if test "$ac_abs_confdir" = "$ac_pwd"; then
1556   srcdir=.
1557 fi
1558 # Remove unnecessary trailing slashes from srcdir.
1559 # Double slashes in file names in object file debugging info
1560 # mess up M-x gdb in Emacs.
1561 case $srcdir in
1562 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1563 esac
1564 for ac_var in $ac_precious_vars; do
1565   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1566   eval ac_env_${ac_var}_value=\$${ac_var}
1567   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1568   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1569 done
1570
1571 #
1572 # Report the --help message.
1573 #
1574 if test "$ac_init_help" = "long"; then
1575   # Omit some internal or obsolete options to make the list less imposing.
1576   # This message is too long to be a string in the A/UX 3.1 sh.
1577   cat <<_ACEOF
1578 \`configure' configures this package to adapt to many kinds of systems.
1579
1580 Usage: $0 [OPTION]... [VAR=VALUE]...
1581
1582 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1583 VAR=VALUE.  See below for descriptions of some of the useful variables.
1584
1585 Defaults for the options are specified in brackets.
1586
1587 Configuration:
1588   -h, --help              display this help and exit
1589       --help=short        display options specific to this package
1590       --help=recursive    display the short help of all the included packages
1591   -V, --version           display version information and exit
1592   -q, --quiet, --silent   do not print \`checking...' messages
1593       --cache-file=FILE   cache test results in FILE [disabled]
1594   -C, --config-cache      alias for \`--cache-file=config.cache'
1595   -n, --no-create         do not create output files
1596       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1597
1598 Installation directories:
1599   --prefix=PREFIX         install architecture-independent files in PREFIX
1600                           [$ac_default_prefix]
1601   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1602                           [PREFIX]
1603
1604 By default, \`make install' will install all the files in
1605 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1606 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1607 for instance \`--prefix=\$HOME'.
1608
1609 For better control, use the options below.
1610
1611 Fine tuning of the installation directories:
1612   --bindir=DIR            user executables [EPREFIX/bin]
1613   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1614   --libexecdir=DIR        program executables [EPREFIX/libexec]
1615   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1616   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1617   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1618   --libdir=DIR            object code libraries [EPREFIX/lib]
1619   --includedir=DIR        C header files [PREFIX/include]
1620   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1621   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1622   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1623   --infodir=DIR           info documentation [DATAROOTDIR/info]
1624   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1625   --mandir=DIR            man documentation [DATAROOTDIR/man]
1626   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1627   --htmldir=DIR           html documentation [DOCDIR]
1628   --dvidir=DIR            dvi documentation [DOCDIR]
1629   --pdfdir=DIR            pdf documentation [DOCDIR]
1630   --psdir=DIR             ps documentation [DOCDIR]
1631 _ACEOF
1632
1633   cat <<\_ACEOF
1634
1635 Program names:
1636   --program-prefix=PREFIX            prepend PREFIX to installed program names
1637   --program-suffix=SUFFIX            append SUFFIX to installed program names
1638   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1639
1640 System types:
1641   --build=BUILD     configure for building on BUILD [guessed]
1642   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1643 _ACEOF
1644 fi
1645
1646 if test -n "$ac_init_help"; then
1647
1648   cat <<\_ACEOF
1649
1650 Optional Features:
1651   --disable-option-checking  ignore unrecognized --enable/--with options
1652   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1653   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1654   --enable-static-modules do not make the modules dynamically loadable
1655   --enable-static[=PKGS]  build static libraries [default=yes]
1656   --enable-shared[=PKGS]  build shared libraries [default=no]
1657   --disable-dependency-tracking  speeds up one-time build
1658   --enable-dependency-tracking   do not reject slow dependency extractors
1659   --enable-fast-install[=PKGS]
1660                           optimize for fast installation [default=yes]
1661   --disable-libtool-lock  avoid locking (might break parallel builds)
1662   --disable-largefile     omit support for large files
1663   --disable-pie           disable position-independent executeables (PIE)
1664   --disable-prelude       do not use prelude
1665   --enable-debug          specify you are building with debugging on
1666   --enable-securedir=DIR  path to location of PAMs [default=$libdir/security]
1667   --enable-isadir=DIR     path to arch-specific module files
1668                           [default=../../(basename of $libdir)/security]
1669   --enable-sconfigdir=DIR path to module conf files
1670                           [default=$sysconfdir/security]
1671   --enable-pamlocking     configure libpam to observe a global authentication
1672                           lock
1673   --enable-read-both-confs
1674                           read both /etc/pam.d and /etc/pam.conf files
1675   --disable-lckpwdf       do not use the lckpwdf function
1676   --disable-cracklib      do not use cracklib
1677   --disable-audit         do not enable audit support
1678   --enable-db=(db|ndbm|yes|no)
1679                           Default behavior 'yes', which is to check for libdb
1680                           first, followed by ndbm. Use 'no' to disable db
1681                           support.
1682   -disable-nis            Disable building NIS/YP support in pam_unix and
1683                           pam_access
1684   --disable-selinux       do not use SELinux
1685   --disable-regenerate-docu
1686                           Don't re-build documentation from XML souces
1687   --disable-nls           do not use Native Language Support
1688   --disable-rpath         do not hardcode runtime library paths
1689
1690 Optional Packages:
1691   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1692   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1693   --with-pic              try to use only PIC/non-PIC objects [default=use
1694                           both]
1695   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1696   --with-libprelude-prefix=PFX
1697                           Prefix where libprelude is installed (optional)
1698   --with-mailspool        path to mail spool directory
1699                           default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail
1700   --with-xauth            additional path to check for xauth when it is called from pam_xauth
1701                           added to the default of /usr/X11R6/bin/xauth, /usr/bin/xauth, /usr/bin/X11/xauth
1702   --with-randomdev=(<path>|yes|no)
1703                           use specified random device instead of /dev/urandom
1704                           or 'no' to disable
1705   --with-db-uniquename=extension
1706                           Unique name for db libraries and functions.
1707   --with-xml-catalog=CATALOG
1708                           path to xml catalog to use
1709   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1710   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1711   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1712   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1713   --without-libintl-prefix     don't search for libintl in includedir and libdir
1714
1715 Some influential environment variables:
1716   CC          C compiler command
1717   CFLAGS      C compiler flags
1718   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1719               nonstandard directory <lib dir>
1720   LIBS        libraries to pass to the linker, e.g. -l<library>
1721   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1722               you have headers in a nonstandard directory <include dir>
1723   CPP         C preprocessor
1724   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1725               the first program found out of: `bison -y', `byacc', `yacc'.
1726   YFLAGS      The list of arguments that will be passed by default to $YACC.
1727               This script will default YFLAGS to the empty string to avoid a
1728               default value of `-d' given by some make applications.
1729   PKG_CONFIG  path to pkg-config utility
1730   libtirpc_CFLAGS
1731               C compiler flags for libtirpc, overriding pkg-config
1732   libtirpc_LIBS
1733               linker flags for libtirpc, overriding pkg-config
1734
1735 Use these variables to override the choices made by `configure' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1737
1738 _ACEOF
1739 ac_status=$?
1740 fi
1741
1742 if test "$ac_init_help" = "recursive"; then
1743   # If there are subdirs, report their specific --help.
1744   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1745     test -d "$ac_dir" ||
1746       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1747       continue
1748     ac_builddir=.
1749
1750 case "$ac_dir" in
1751 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 *)
1753   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1754   # A ".." for each directory in $ac_dir_suffix.
1755   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1756   case $ac_top_builddir_sub in
1757   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1758   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1759   esac ;;
1760 esac
1761 ac_abs_top_builddir=$ac_pwd
1762 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1763 # for backward compatibility:
1764 ac_top_builddir=$ac_top_build_prefix
1765
1766 case $srcdir in
1767   .)  # We are building in place.
1768     ac_srcdir=.
1769     ac_top_srcdir=$ac_top_builddir_sub
1770     ac_abs_top_srcdir=$ac_pwd ;;
1771   [\\/]* | ?:[\\/]* )  # Absolute name.
1772     ac_srcdir=$srcdir$ac_dir_suffix;
1773     ac_top_srcdir=$srcdir
1774     ac_abs_top_srcdir=$srcdir ;;
1775   *) # Relative name.
1776     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1777     ac_top_srcdir=$ac_top_build_prefix$srcdir
1778     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1779 esac
1780 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1781
1782     cd "$ac_dir" || { ac_status=$?; continue; }
1783     # Check for guested configure.
1784     if test -f "$ac_srcdir/configure.gnu"; then
1785       echo &&
1786       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1787     elif test -f "$ac_srcdir/configure"; then
1788       echo &&
1789       $SHELL "$ac_srcdir/configure" --help=recursive
1790     else
1791       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1792     fi || ac_status=$?
1793     cd "$ac_pwd" || { ac_status=$?; break; }
1794   done
1795 fi
1796
1797 test -n "$ac_init_help" && exit $ac_status
1798 if $ac_init_version; then
1799   cat <<\_ACEOF
1800 configure
1801 generated by GNU Autoconf 2.63
1802
1803 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1804 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1807 _ACEOF
1808   exit
1809 fi
1810 cat >config.log <<_ACEOF
1811 This file contains any messages produced by compilers while
1812 running configure, to aid debugging if configure makes a mistake.
1813
1814 It was created by $as_me, which was
1815 generated by GNU Autoconf 2.63.  Invocation command line was
1816
1817   $ $0 $@
1818
1819 _ACEOF
1820 exec 5>>config.log
1821 {
1822 cat <<_ASUNAME
1823 ## --------- ##
1824 ## Platform. ##
1825 ## --------- ##
1826
1827 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1828 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1829 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1830 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1831 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1832
1833 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1834 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1835
1836 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1837 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1838 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1839 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1840 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1841 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1842 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1843
1844 _ASUNAME
1845
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849   IFS=$as_save_IFS
1850   test -z "$as_dir" && as_dir=.
1851   $as_echo "PATH: $as_dir"
1852 done
1853 IFS=$as_save_IFS
1854
1855 } >&5
1856
1857 cat >&5 <<_ACEOF
1858
1859
1860 ## ----------- ##
1861 ## Core tests. ##
1862 ## ----------- ##
1863
1864 _ACEOF
1865
1866
1867 # Keep a trace of the command line.
1868 # Strip out --no-create and --no-recursion so they do not pile up.
1869 # Strip out --silent because we don't want to record it for future runs.
1870 # Also quote any args containing shell meta-characters.
1871 # Make two passes to allow for proper duplicate-argument suppression.
1872 ac_configure_args=
1873 ac_configure_args0=
1874 ac_configure_args1=
1875 ac_must_keep_next=false
1876 for ac_pass in 1 2
1877 do
1878   for ac_arg
1879   do
1880     case $ac_arg in
1881     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1882     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1883     | -silent | --silent | --silen | --sile | --sil)
1884       continue ;;
1885     *\'*)
1886       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1887     esac
1888     case $ac_pass in
1889     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1890     2)
1891       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1892       if test $ac_must_keep_next = true; then
1893         ac_must_keep_next=false # Got value, back to normal.
1894       else
1895         case $ac_arg in
1896           *=* | --config-cache | -C | -disable-* | --disable-* \
1897           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1898           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1899           | -with-* | --with-* | -without-* | --without-* | --x)
1900             case "$ac_configure_args0 " in
1901               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1902             esac
1903             ;;
1904           -* ) ac_must_keep_next=true ;;
1905         esac
1906       fi
1907       ac_configure_args="$ac_configure_args '$ac_arg'"
1908       ;;
1909     esac
1910   done
1911 done
1912 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1913 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1914
1915 # When interrupted or exit'd, cleanup temporary files, and complete
1916 # config.log.  We remove comments because anyway the quotes in there
1917 # would cause problems or look ugly.
1918 # WARNING: Use '\'' to represent an apostrophe within the trap.
1919 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1920 trap 'exit_status=$?
1921   # Save into config.log some information that might help in debugging.
1922   {
1923     echo
1924
1925     cat <<\_ASBOX
1926 ## ---------------- ##
1927 ## Cache variables. ##
1928 ## ---------------- ##
1929 _ASBOX
1930     echo
1931     # The following way of writing the cache mishandles newlines in values,
1932 (
1933   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1934     eval ac_val=\$$ac_var
1935     case $ac_val in #(
1936     *${as_nl}*)
1937       case $ac_var in #(
1938       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1939 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1940       esac
1941       case $ac_var in #(
1942       _ | IFS | as_nl) ;; #(
1943       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1944       *) $as_unset $ac_var ;;
1945       esac ;;
1946     esac
1947   done
1948   (set) 2>&1 |
1949     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1950     *${as_nl}ac_space=\ *)
1951       sed -n \
1952         "s/'\''/'\''\\\\'\'''\''/g;
1953           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1954       ;; #(
1955     *)
1956       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1957       ;;
1958     esac |
1959     sort
1960 )
1961     echo
1962
1963     cat <<\_ASBOX
1964 ## ----------------- ##
1965 ## Output variables. ##
1966 ## ----------------- ##
1967 _ASBOX
1968     echo
1969     for ac_var in $ac_subst_vars
1970     do
1971       eval ac_val=\$$ac_var
1972       case $ac_val in
1973       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1974       esac
1975       $as_echo "$ac_var='\''$ac_val'\''"
1976     done | sort
1977     echo
1978
1979     if test -n "$ac_subst_files"; then
1980       cat <<\_ASBOX
1981 ## ------------------- ##
1982 ## File substitutions. ##
1983 ## ------------------- ##
1984 _ASBOX
1985       echo
1986       for ac_var in $ac_subst_files
1987       do
1988         eval ac_val=\$$ac_var
1989         case $ac_val in
1990         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991         esac
1992         $as_echo "$ac_var='\''$ac_val'\''"
1993       done | sort
1994       echo
1995     fi
1996
1997     if test -s confdefs.h; then
1998       cat <<\_ASBOX
1999 ## ----------- ##
2000 ## confdefs.h. ##
2001 ## ----------- ##
2002 _ASBOX
2003       echo
2004       cat confdefs.h
2005       echo
2006     fi
2007     test "$ac_signal" != 0 &&
2008       $as_echo "$as_me: caught signal $ac_signal"
2009     $as_echo "$as_me: exit $exit_status"
2010   } >&5
2011   rm -f core *.core core.conftest.* &&
2012     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2013     exit $exit_status
2014 ' 0
2015 for ac_signal in 1 2 13 15; do
2016   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2017 done
2018 ac_signal=0
2019
2020 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2021 rm -f -r conftest* confdefs.h
2022
2023 # Predefined preprocessor variables.
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_NAME "$PACKAGE_NAME"
2027 _ACEOF
2028
2029
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2032 _ACEOF
2033
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2037 _ACEOF
2038
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_STRING "$PACKAGE_STRING"
2042 _ACEOF
2043
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2047 _ACEOF
2048
2049
2050 # Let the site file select an alternate cache file if it wants to.
2051 # Prefer an explicitly selected file to automatically selected ones.
2052 ac_site_file1=NONE
2053 ac_site_file2=NONE
2054 if test -n "$CONFIG_SITE"; then
2055   ac_site_file1=$CONFIG_SITE
2056 elif test "x$prefix" != xNONE; then
2057   ac_site_file1=$prefix/share/config.site
2058   ac_site_file2=$prefix/etc/config.site
2059 else
2060   ac_site_file1=$ac_default_prefix/share/config.site
2061   ac_site_file2=$ac_default_prefix/etc/config.site
2062 fi
2063 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2064 do
2065   test "x$ac_site_file" = xNONE && continue
2066   if test -r "$ac_site_file"; then
2067     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2068 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2069     sed 's/^/| /' "$ac_site_file" >&5
2070     . "$ac_site_file"
2071   fi
2072 done
2073
2074 if test -r "$cache_file"; then
2075   # Some versions of bash will fail to source /dev/null (special
2076   # files actually), so we avoid doing that.
2077   if test -f "$cache_file"; then
2078     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2079 $as_echo "$as_me: loading cache $cache_file" >&6;}
2080     case $cache_file in
2081       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082       *)                      . "./$cache_file";;
2083     esac
2084   fi
2085 else
2086   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2087 $as_echo "$as_me: creating cache $cache_file" >&6;}
2088   >$cache_file
2089 fi
2090
2091 gt_needs="$gt_needs "
2092 # Check that the precious variables saved in the cache have kept the same
2093 # value.
2094 ac_cache_corrupted=false
2095 for ac_var in $ac_precious_vars; do
2096   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2097   eval ac_new_set=\$ac_env_${ac_var}_set
2098   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2099   eval ac_new_val=\$ac_env_${ac_var}_value
2100   case $ac_old_set,$ac_new_set in
2101     set,)
2102       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2103 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2104       ac_cache_corrupted=: ;;
2105     ,set)
2106       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2107 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2108       ac_cache_corrupted=: ;;
2109     ,);;
2110     *)
2111       if test "x$ac_old_val" != "x$ac_new_val"; then
2112         # differences in whitespace do not lead to failure.
2113         ac_old_val_w=`echo x $ac_old_val`
2114         ac_new_val_w=`echo x $ac_new_val`
2115         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2116           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2117 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2118           ac_cache_corrupted=:
2119         else
2120           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2121 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2122           eval $ac_var=\$ac_old_val
2123         fi
2124         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2125 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2126         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2127 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2128       fi;;
2129   esac
2130   # Pass precious variables to config.status.
2131   if test "$ac_new_set" = set; then
2132     case $ac_new_val in
2133     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2134     *) ac_arg=$ac_var=$ac_new_val ;;
2135     esac
2136     case " $ac_configure_args " in
2137       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2138       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2139     esac
2140   fi
2141 done
2142 if $ac_cache_corrupted; then
2143   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2145   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2146 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2147   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2148 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2149    { (exit 1); exit 1; }; }
2150 fi
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168 ac_ext=c
2169 ac_cpp='$CPP $CPPFLAGS'
2170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173
2174
2175
2176 am__api_version='1.10'
2177
2178 ac_aux_dir=
2179 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2180   if test -f "$ac_dir/install-sh"; then
2181     ac_aux_dir=$ac_dir
2182     ac_install_sh="$ac_aux_dir/install-sh -c"
2183     break
2184   elif test -f "$ac_dir/install.sh"; then
2185     ac_aux_dir=$ac_dir
2186     ac_install_sh="$ac_aux_dir/install.sh -c"
2187     break
2188   elif test -f "$ac_dir/shtool"; then
2189     ac_aux_dir=$ac_dir
2190     ac_install_sh="$ac_aux_dir/shtool install -c"
2191     break
2192   fi
2193 done
2194 if test -z "$ac_aux_dir"; then
2195   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2196 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2197    { (exit 1); exit 1; }; }
2198 fi
2199
2200 # These three variables are undocumented and unsupported,
2201 # and are intended to be withdrawn in a future Autoconf release.
2202 # They can cause serious problems if a builder's source tree is in a directory
2203 # whose full name contains unusual characters.
2204 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2205 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2206 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2207
2208
2209 # Find a good install program.  We prefer a C program (faster),
2210 # so one script is as good as another.  But avoid the broken or
2211 # incompatible versions:
2212 # SysV /etc/install, /usr/sbin/install
2213 # SunOS /usr/etc/install
2214 # IRIX /sbin/install
2215 # AIX /bin/install
2216 # AmigaOS /C/install, which installs bootblocks on floppy discs
2217 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2218 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2219 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2220 # OS/2's system install, which has a completely different semantic
2221 # ./install, which can be erroneously created by make from ./install.sh.
2222 # Reject install programs that cannot install multiple files.
2223 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2224 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2225 if test -z "$INSTALL"; then
2226 if test "${ac_cv_path_install+set}" = set; then
2227   $as_echo_n "(cached) " >&6
2228 else
2229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232   IFS=$as_save_IFS
2233   test -z "$as_dir" && as_dir=.
2234   # Account for people who put trailing slashes in PATH elements.
2235 case $as_dir/ in
2236   ./ | .// | /cC/* | \
2237   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2238   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2239   /usr/ucb/* ) ;;
2240   *)
2241     # OSF1 and SCO ODT 3.0 have their own names for install.
2242     # Don't use installbsd from OSF since it installs stuff as root
2243     # by default.
2244     for ac_prog in ginstall scoinst install; do
2245       for ac_exec_ext in '' $ac_executable_extensions; do
2246         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2247           if test $ac_prog = install &&
2248             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249             # AIX install.  It has an incompatible calling convention.
2250             :
2251           elif test $ac_prog = install &&
2252             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2253             # program-specific install script used by HP pwplus--don't use.
2254             :
2255           else
2256             rm -rf conftest.one conftest.two conftest.dir
2257             echo one > conftest.one
2258             echo two > conftest.two
2259             mkdir conftest.dir
2260             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2261               test -s conftest.one && test -s conftest.two &&
2262               test -s conftest.dir/conftest.one &&
2263               test -s conftest.dir/conftest.two
2264             then
2265               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2266               break 3
2267             fi
2268           fi
2269         fi
2270       done
2271     done
2272     ;;
2273 esac
2274
2275 done
2276 IFS=$as_save_IFS
2277
2278 rm -rf conftest.one conftest.two conftest.dir
2279
2280 fi
2281   if test "${ac_cv_path_install+set}" = set; then
2282     INSTALL=$ac_cv_path_install
2283   else
2284     # As a last resort, use the slow shell script.  Don't cache a
2285     # value for INSTALL within a source directory, because that will
2286     # break other packages using the cache if that directory is
2287     # removed, or if the value is a relative name.
2288     INSTALL=$ac_install_sh
2289   fi
2290 fi
2291 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2292 $as_echo "$INSTALL" >&6; }
2293
2294 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2295 # It thinks the first close brace ends the variable substitution.
2296 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2297
2298 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2299
2300 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2301
2302 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2303 $as_echo_n "checking whether build environment is sane... " >&6; }
2304 # Just in case
2305 sleep 1
2306 echo timestamp > conftest.file
2307 # Do `set' in a subshell so we don't clobber the current shell's
2308 # arguments.  Must try -L first in case configure is actually a
2309 # symlink; some systems play weird games with the mod time of symlinks
2310 # (eg FreeBSD returns the mod time of the symlink's containing
2311 # directory).
2312 if (
2313    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2314    if test "$*" = "X"; then
2315       # -L didn't work.
2316       set X `ls -t $srcdir/configure conftest.file`
2317    fi
2318    rm -f conftest.file
2319    if test "$*" != "X $srcdir/configure conftest.file" \
2320       && test "$*" != "X conftest.file $srcdir/configure"; then
2321
2322       # If neither matched, then we have a broken ls.  This can happen
2323       # if, for instance, CONFIG_SHELL is bash and it inherits a
2324       # broken ls alias from the environment.  This has actually
2325       # happened.  Such a system could not be considered "sane".
2326       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2327 alias in your environment" >&5
2328 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2329 alias in your environment" >&2;}
2330    { (exit 1); exit 1; }; }
2331    fi
2332
2333    test "$2" = conftest.file
2334    )
2335 then
2336    # Ok.
2337    :
2338 else
2339    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2340 Check your system clock" >&5
2341 $as_echo "$as_me: error: newly created file is older than distributed files!
2342 Check your system clock" >&2;}
2343    { (exit 1); exit 1; }; }
2344 fi
2345 { $as_echo "$as_me:$LINENO: result: yes" >&5
2346 $as_echo "yes" >&6; }
2347 test "$program_prefix" != NONE &&
2348   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2349 # Use a double $ so make ignores it.
2350 test "$program_suffix" != NONE &&
2351   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2352 # Double any \ or $.
2353 # By default was `s,x,x', remove it if useless.
2354 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2355 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2356
2357 # expand $ac_aux_dir to an absolute path
2358 am_aux_dir=`cd $ac_aux_dir && pwd`
2359
2360 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2361 # Use eval to expand $SHELL
2362 if eval "$MISSING --run true"; then
2363   am_missing_run="$MISSING --run "
2364 else
2365   am_missing_run=
2366   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2367 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2368 fi
2369
2370 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2371 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2372 if test -z "$MKDIR_P"; then
2373   if test "${ac_cv_path_mkdir+set}" = set; then
2374   $as_echo_n "(cached) " >&6
2375 else
2376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2378 do
2379   IFS=$as_save_IFS
2380   test -z "$as_dir" && as_dir=.
2381   for ac_prog in mkdir gmkdir; do
2382          for ac_exec_ext in '' $ac_executable_extensions; do
2383            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2384            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2385              'mkdir (GNU coreutils) '* | \
2386              'mkdir (coreutils) '* | \
2387              'mkdir (fileutils) '4.1*)
2388                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2389                break 3;;
2390            esac
2391          done
2392        done
2393 done
2394 IFS=$as_save_IFS
2395
2396 fi
2397
2398   if test "${ac_cv_path_mkdir+set}" = set; then
2399     MKDIR_P="$ac_cv_path_mkdir -p"
2400   else
2401     # As a last resort, use the slow shell script.  Don't cache a
2402     # value for MKDIR_P within a source directory, because that will
2403     # break other packages using the cache if that directory is
2404     # removed, or if the value is a relative name.
2405     test -d ./--version && rmdir ./--version
2406     MKDIR_P="$ac_install_sh -d"
2407   fi
2408 fi
2409 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2410 $as_echo "$MKDIR_P" >&6; }
2411
2412 mkdir_p="$MKDIR_P"
2413 case $mkdir_p in
2414   [\\/$]* | ?:[\\/]*) ;;
2415   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2416 esac
2417
2418 for ac_prog in gawk mawk nawk awk
2419 do
2420   # Extract the first word of "$ac_prog", so it can be a program name with args.
2421 set dummy $ac_prog; ac_word=$2
2422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if test "${ac_cv_prog_AWK+set}" = set; then
2425   $as_echo_n "(cached) " >&6
2426 else
2427   if test -n "$AWK"; then
2428   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433   IFS=$as_save_IFS
2434   test -z "$as_dir" && as_dir=.
2435   for ac_exec_ext in '' $ac_executable_extensions; do
2436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437     ac_cv_prog_AWK="$ac_prog"
2438     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439     break 2
2440   fi
2441 done
2442 done
2443 IFS=$as_save_IFS
2444
2445 fi
2446 fi
2447 AWK=$ac_cv_prog_AWK
2448 if test -n "$AWK"; then
2449   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2450 $as_echo "$AWK" >&6; }
2451 else
2452   { $as_echo "$as_me:$LINENO: result: no" >&5
2453 $as_echo "no" >&6; }
2454 fi
2455
2456
2457   test -n "$AWK" && break
2458 done
2459
2460 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2461 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2462 set x ${MAKE-make}
2463 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2464 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2465   $as_echo_n "(cached) " >&6
2466 else
2467   cat >conftest.make <<\_ACEOF
2468 SHELL = /bin/sh
2469 all:
2470         @echo '@@@%%%=$(MAKE)=@@@%%%'
2471 _ACEOF
2472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2473 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2474   *@@@%%%=?*=@@@%%%*)
2475     eval ac_cv_prog_make_${ac_make}_set=yes;;
2476   *)
2477     eval ac_cv_prog_make_${ac_make}_set=no;;
2478 esac
2479 rm -f conftest.make
2480 fi
2481 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2482   { $as_echo "$as_me:$LINENO: result: yes" >&5
2483 $as_echo "yes" >&6; }
2484   SET_MAKE=
2485 else
2486   { $as_echo "$as_me:$LINENO: result: no" >&5
2487 $as_echo "no" >&6; }
2488   SET_MAKE="MAKE=${MAKE-make}"
2489 fi
2490
2491 rm -rf .tst 2>/dev/null
2492 mkdir .tst 2>/dev/null
2493 if test -d .tst; then
2494   am__leading_dot=.
2495 else
2496   am__leading_dot=_
2497 fi
2498 rmdir .tst 2>/dev/null
2499
2500 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2501   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2502   # is not polluted with repeated "-I."
2503   am__isrc=' -I$(srcdir)'
2504   # test to see if srcdir already configured
2505   if test -f $srcdir/config.status; then
2506     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2507 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2508    { (exit 1); exit 1; }; }
2509   fi
2510 fi
2511
2512 # test whether we have cygpath
2513 if test -z "$CYGPATH_W"; then
2514   if (cygpath --version) >/dev/null 2>/dev/null; then
2515     CYGPATH_W='cygpath -w'
2516   else
2517     CYGPATH_W=echo
2518   fi
2519 fi
2520
2521
2522 # Define the identity of the package.
2523  PACKAGE="Linux-PAM"
2524  VERSION=1.1.5
2525
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE "$PACKAGE"
2529 _ACEOF
2530
2531
2532 cat >>confdefs.h <<_ACEOF
2533 #define VERSION "$VERSION"
2534 _ACEOF
2535
2536 # Some tools Automake needs.
2537
2538 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2539
2540
2541 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2542
2543
2544 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2545
2546
2547 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2548
2549
2550 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2551
2552 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2553
2554 # Installed binaries are usually stripped using `strip' when the user
2555 # run `make install-strip'.  However `strip' might not be the right
2556 # tool to use in cross-compilation environments, therefore Automake
2557 # will honor the `STRIP' environment variable to overrule this program.
2558 if test "$cross_compiling" != no; then
2559   if test -n "$ac_tool_prefix"; then
2560   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}strip; ac_word=$2
2562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if test "${ac_cv_prog_STRIP+set}" = set; then
2565   $as_echo_n "(cached) " >&6
2566 else
2567   if test -n "$STRIP"; then
2568   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573   IFS=$as_save_IFS
2574   test -z "$as_dir" && as_dir=.
2575   for ac_exec_ext in '' $ac_executable_extensions; do
2576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2578     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579     break 2
2580   fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 STRIP=$ac_cv_prog_STRIP
2588 if test -n "$STRIP"; then
2589   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2590 $as_echo "$STRIP" >&6; }
2591 else
2592   { $as_echo "$as_me:$LINENO: result: no" >&5
2593 $as_echo "no" >&6; }
2594 fi
2595
2596
2597 fi
2598 if test -z "$ac_cv_prog_STRIP"; then
2599   ac_ct_STRIP=$STRIP
2600   # Extract the first word of "strip", so it can be a program name with args.
2601 set dummy strip; ac_word=$2
2602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2605   $as_echo_n "(cached) " >&6
2606 else
2607   if test -n "$ac_ct_STRIP"; then
2608   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615   for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_ac_ct_STRIP="strip"
2618     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2628 if test -n "$ac_ct_STRIP"; then
2629   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2630 $as_echo "$ac_ct_STRIP" >&6; }
2631 else
2632   { $as_echo "$as_me:$LINENO: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636   if test "x$ac_ct_STRIP" = x; then
2637     STRIP=":"
2638   else
2639     case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2644 esac
2645     STRIP=$ac_ct_STRIP
2646   fi
2647 else
2648   STRIP="$ac_cv_prog_STRIP"
2649 fi
2650
2651 fi
2652 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2653
2654 # We need awk for the "check" target.  The system "awk" is bad on
2655 # some platforms.
2656 # Always define AMTAR for backward compatibility.
2657
2658 AMTAR=${AMTAR-"${am_missing_run}tar"}
2659
2660 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2661
2662
2663
2664
2665
2666
2667 ac_config_headers="$ac_config_headers config.h"
2668
2669
2670 # Make sure we can run config.sub.
2671 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2672   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2673 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2674    { (exit 1); exit 1; }; }
2675
2676 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2677 $as_echo_n "checking build system type... " >&6; }
2678 if test "${ac_cv_build+set}" = set; then
2679   $as_echo_n "(cached) " >&6
2680 else
2681   ac_build_alias=$build_alias
2682 test "x$ac_build_alias" = x &&
2683   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2684 test "x$ac_build_alias" = x &&
2685   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2686 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2687    { (exit 1); exit 1; }; }
2688 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2689   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2690 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2691    { (exit 1); exit 1; }; }
2692
2693 fi
2694 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2695 $as_echo "$ac_cv_build" >&6; }
2696 case $ac_cv_build in
2697 *-*-*) ;;
2698 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2699 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2700    { (exit 1); exit 1; }; };;
2701 esac
2702 build=$ac_cv_build
2703 ac_save_IFS=$IFS; IFS='-'
2704 set x $ac_cv_build
2705 shift
2706 build_cpu=$1
2707 build_vendor=$2
2708 shift; shift
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2711 build_os=$*
2712 IFS=$ac_save_IFS
2713 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2714
2715
2716 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2717 $as_echo_n "checking host system type... " >&6; }
2718 if test "${ac_cv_host+set}" = set; then
2719   $as_echo_n "(cached) " >&6
2720 else
2721   if test "x$host_alias" = x; then
2722   ac_cv_host=$ac_cv_build
2723 else
2724   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2725     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2726 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2727    { (exit 1); exit 1; }; }
2728 fi
2729
2730 fi
2731 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2732 $as_echo "$ac_cv_host" >&6; }
2733 case $ac_cv_host in
2734 *-*-*) ;;
2735 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2736 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2737    { (exit 1); exit 1; }; };;
2738 esac
2739 host=$ac_cv_host
2740 ac_save_IFS=$IFS; IFS='-'
2741 set x $ac_cv_host
2742 shift
2743 host_cpu=$1
2744 host_vendor=$2
2745 shift; shift
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2748 host_os=$*
2749 IFS=$ac_save_IFS
2750 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2751
2752
2753
2754
2755
2756
2757
2758
2759 test "${prefix}" = "NONE" && prefix="/usr"
2760 if test ${prefix} = '/usr'
2761 then
2762         if test ${sysconfdir} = '${prefix}/etc'
2763         then
2764                 sysconfdir="/etc"
2765         fi
2766         if test ${libdir} = '${exec_prefix}/lib'
2767         then
2768                 case "`uname -m`" in
2769                     x86_64|ppc64|s390x|sparc64)
2770                         libdir="/lib64" ;;
2771                     *)
2772                         libdir="/lib" ;;
2773                 esac
2774         fi
2775         if test ${sbindir} = '${exec_prefix}/sbin'
2776         then
2777                 sbindir="/sbin"
2778         fi
2779         if test ${mandir} = '${prefix}/man'
2780         then
2781                 mandir='${prefix}/share/man'
2782         fi
2783         if test ${includedir} = '${prefix}/include'
2784         then
2785                 includedir="${prefix}/include/security"
2786         fi
2787
2788         if test ${localstatedir} = '${prefix}/var'
2789         then
2790                 localstatedir="/var"
2791         fi
2792
2793 fi
2794
2795 # Check whether --enable-static-modules was given.
2796 if test "${enable_static_modules+set}" = set; then
2797   enableval=$enable_static_modules; STATIC_MODULES=$enableval
2798 else
2799   STATIC_MODULES=no
2800 fi
2801
2802 if test "$STATIC_MODULES" != "no" ; then
2803         CFLAGS="$CFLAGS -DPAM_STATIC"
2804         # Check whether --enable-static was given.
2805 if test "${enable_static+set}" = set; then
2806   enableval=$enable_static; p=${PACKAGE-default}
2807     case $enableval in
2808     yes) enable_static=yes ;;
2809     no) enable_static=no ;;
2810     *)
2811      enable_static=no
2812       # Look at the argument we got.  We use all the common list separators.
2813       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2814       for pkg in $enableval; do
2815         IFS="$lt_save_ifs"
2816         if test "X$pkg" = "X$p"; then
2817           enable_static=yes
2818         fi
2819       done
2820       IFS="$lt_save_ifs"
2821       ;;
2822     esac
2823 else
2824   enable_static=yes
2825 fi
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835         # Check whether --enable-shared was given.
2836 if test "${enable_shared+set}" = set; then
2837   enableval=$enable_shared; p=${PACKAGE-default}
2838     case $enableval in
2839     yes) enable_shared=yes ;;
2840     no) enable_shared=no ;;
2841     *)
2842       enable_shared=no
2843       # Look at the argument we got.  We use all the common list separators.
2844       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2845       for pkg in $enableval; do
2846         IFS="$lt_save_ifs"
2847         if test "X$pkg" = "X$p"; then
2848           enable_shared=yes
2849         fi
2850       done
2851       IFS="$lt_save_ifs"
2852       ;;
2853     esac
2854 else
2855   enable_shared=no
2856 fi
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866 else
2867 # per default don't build static libraries
2868         # Check whether --enable-static was given.
2869 if test "${enable_static+set}" = set; then
2870   enableval=$enable_static; p=${PACKAGE-default}
2871     case $enableval in
2872     yes) enable_static=yes ;;
2873     no) enable_static=no ;;
2874     *)
2875      enable_static=no
2876       # Look at the argument we got.  We use all the common list separators.
2877       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2878       for pkg in $enableval; do
2879         IFS="$lt_save_ifs"
2880         if test "X$pkg" = "X$p"; then
2881           enable_static=yes
2882         fi
2883       done
2884       IFS="$lt_save_ifs"
2885       ;;
2886     esac
2887 else
2888   enable_static=no
2889 fi
2890
2891
2892
2893
2894
2895
2896         # Check whether --enable-shared was given.
2897 if test "${enable_shared+set}" = set; then
2898   enableval=$enable_shared; p=${PACKAGE-default}
2899     case $enableval in
2900     yes) enable_shared=yes ;;
2901     no) enable_shared=no ;;
2902     *)
2903       enable_shared=no
2904       # Look at the argument we got.  We use all the common list separators.
2905       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2906       for pkg in $enableval; do
2907         IFS="$lt_save_ifs"
2908         if test "X$pkg" = "X$p"; then
2909           enable_shared=yes
2910         fi
2911       done
2912       IFS="$lt_save_ifs"
2913       ;;
2914     esac
2915 else
2916   enable_shared=yes
2917 fi
2918
2919
2920
2921
2922
2923
2924 fi
2925  if test "$STATIC_MODULES" != "no"; then
2926   STATIC_MODULES_TRUE=
2927   STATIC_MODULES_FALSE='#'
2928 else
2929   STATIC_MODULES_TRUE='#'
2930   STATIC_MODULES_FALSE=
2931 fi
2932
2933
2934 DEPDIR="${am__leading_dot}deps"
2935
2936 ac_config_commands="$ac_config_commands depfiles"
2937
2938
2939 am_make=${MAKE-make}
2940 cat > confinc << 'END'
2941 am__doit:
2942         @echo done
2943 .PHONY: am__doit
2944 END
2945 # If we don't find an include directive, just comment out the code.
2946 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2947 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2948 am__include="#"
2949 am__quote=
2950 _am_result=none
2951 # First try GNU make style include.
2952 echo "include confinc" > confmf
2953 # We grep out `Entering directory' and `Leaving directory'
2954 # messages which can occur if `w' ends up in MAKEFLAGS.
2955 # In particular we don't look at `^make:' because GNU make might
2956 # be invoked under some other name (usually "gmake"), in which
2957 # case it prints its new name instead of `make'.
2958 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2959    am__include=include
2960    am__quote=
2961    _am_result=GNU
2962 fi
2963 # Now try BSD make style include.
2964 if test "$am__include" = "#"; then
2965    echo '.include "confinc"' > confmf
2966    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2967       am__include=.include
2968       am__quote="\""
2969       _am_result=BSD
2970    fi
2971 fi
2972
2973
2974 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2975 $as_echo "$_am_result" >&6; }
2976 rm -f confinc confmf
2977
2978 # Check whether --enable-dependency-tracking was given.
2979 if test "${enable_dependency_tracking+set}" = set; then
2980   enableval=$enable_dependency_tracking;
2981 fi
2982
2983 if test "x$enable_dependency_tracking" != xno; then
2984   am_depcomp="$ac_aux_dir/depcomp"
2985   AMDEPBACKSLASH='\'
2986 fi
2987  if test "x$enable_dependency_tracking" != xno; then
2988   AMDEP_TRUE=
2989   AMDEP_FALSE='#'
2990 else
2991   AMDEP_TRUE='#'
2992   AMDEP_FALSE=
2993 fi
2994
2995
2996 ac_ext=c
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001 if test -n "$ac_tool_prefix"; then
3002   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_CC+set}" = set; then
3007   $as_echo_n "(cached) " >&6
3008 else
3009   if test -n "$CC"; then
3010   ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015   IFS=$as_save_IFS
3016   test -z "$as_dir" && as_dir=.
3017   for ac_exec_ext in '' $ac_executable_extensions; do
3018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3020     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021     break 2
3022   fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3033 else
3034   { $as_echo "$as_me:$LINENO: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039 fi
3040 if test -z "$ac_cv_prog_CC"; then
3041   ac_ct_CC=$CC
3042   # Extract the first word of "gcc", so it can be a program name with args.
3043 set dummy gcc; ac_word=$2
3044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047   $as_echo_n "(cached) " >&6
3048 else
3049   if test -n "$ac_ct_CC"; then
3050   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055   IFS=$as_save_IFS
3056   test -z "$as_dir" && as_dir=.
3057   for ac_exec_ext in '' $ac_executable_extensions; do
3058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059     ac_cv_prog_ac_ct_CC="gcc"
3060     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061     break 2
3062   fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072 $as_echo "$ac_ct_CC" >&6; }
3073 else
3074   { $as_echo "$as_me:$LINENO: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078   if test "x$ac_ct_CC" = x; then
3079     CC=""
3080   else
3081     case $cross_compiling:$ac_tool_warned in
3082 yes:)
3083 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085 ac_tool_warned=yes ;;
3086 esac
3087     CC=$ac_ct_CC
3088   fi
3089 else
3090   CC="$ac_cv_prog_CC"
3091 fi
3092
3093 if test -z "$CC"; then
3094           if test -n "$ac_tool_prefix"; then
3095     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3096 set dummy ${ac_tool_prefix}cc; ac_word=$2
3097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_CC+set}" = set; then
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$CC"; then
3103   ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110   for ac_exec_ext in '' $ac_executable_extensions; do
3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112     ac_cv_prog_CC="${ac_tool_prefix}cc"
3113     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117 done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127   { $as_echo "$as_me:$LINENO: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132   fi
3133 fi
3134 if test -z "$CC"; then
3135   # Extract the first word of "cc", so it can be a program name with args.
3136 set dummy cc; ac_word=$2
3137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if test "${ac_cv_prog_CC+set}" = set; then
3140   $as_echo_n "(cached) " >&6
3141 else
3142   if test -n "$CC"; then
3143   ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145   ac_prog_rejected=no
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151   for ac_exec_ext in '' $ac_executable_extensions; do
3152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3154        ac_prog_rejected=yes
3155        continue
3156      fi
3157     ac_cv_prog_CC="cc"
3158     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 if test $ac_prog_rejected = yes; then
3166   # We found a bogon in the path, so make sure we never use it.
3167   set dummy $ac_cv_prog_CC
3168   shift
3169   if test $# != 0; then
3170     # We chose a different compiler from the bogus one.
3171     # However, it has the same basename, so the bogon will be chosen
3172     # first if we set CC to just the basename; use the full file name.
3173     shift
3174     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3175   fi
3176 fi
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184   { $as_echo "$as_me:$LINENO: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 fi
3190 if test -z "$CC"; then
3191   if test -n "$ac_tool_prefix"; then
3192   for ac_prog in cl.exe
3193   do
3194     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_CC+set}" = set; then
3199   $as_echo_n "(cached) " >&6
3200 else
3201   if test -n "$CC"; then
3202   ac_cv_prog_CC="$CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207   IFS=$as_save_IFS
3208   test -z "$as_dir" && as_dir=.
3209   for ac_exec_ext in '' $ac_executable_extensions; do
3210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3212     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213     break 2
3214   fi
3215 done
3216 done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3225 else
3226   { $as_echo "$as_me:$LINENO: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230
3231     test -n "$CC" && break
3232   done
3233 fi
3234 if test -z "$CC"; then
3235   ac_ct_CC=$CC
3236   for ac_prog in cl.exe
3237 do
3238   # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3243   $as_echo_n "(cached) " >&6
3244 else
3245   if test -n "$ac_ct_CC"; then
3246   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3250 do
3251   IFS=$as_save_IFS
3252   test -z "$as_dir" && as_dir=.
3253   for ac_exec_ext in '' $ac_executable_extensions; do
3254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255     ac_cv_prog_ac_ct_CC="$ac_prog"
3256     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257     break 2
3258   fi
3259 done
3260 done
3261 IFS=$as_save_IFS
3262
3263 fi
3264 fi
3265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3266 if test -n "$ac_ct_CC"; then
3267   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3268 $as_echo "$ac_ct_CC" >&6; }
3269 else
3270   { $as_echo "$as_me:$LINENO: result: no" >&5
3271 $as_echo "no" >&6; }
3272 fi
3273
3274
3275   test -n "$ac_ct_CC" && break
3276 done
3277
3278   if test "x$ac_ct_CC" = x; then
3279     CC=""
3280   else
3281     case $cross_compiling:$ac_tool_warned in
3282 yes:)
3283 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3285 ac_tool_warned=yes ;;
3286 esac
3287     CC=$ac_ct_CC
3288   fi
3289 fi
3290
3291 fi
3292
3293
3294 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3297 See \`config.log' for more details." >&5
3298 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3299 See \`config.log' for more details." >&2;}
3300    { (exit 1); exit 1; }; }; }
3301
3302 # Provide some information about the compiler.
3303 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3304 set X $ac_compile
3305 ac_compiler=$2
3306 { (ac_try="$ac_compiler --version >&5"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312 $as_echo "$ac_try_echo") >&5
3313   (eval "$ac_compiler --version >&5") 2>&5
3314   ac_status=$?
3315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }
3317 { (ac_try="$ac_compiler -v >&5"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323 $as_echo "$ac_try_echo") >&5
3324   (eval "$ac_compiler -v >&5") 2>&5
3325   ac_status=$?
3326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); }
3328 { (ac_try="$ac_compiler -V >&5"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334 $as_echo "$ac_try_echo") >&5
3335   (eval "$ac_compiler -V >&5") 2>&5
3336   ac_status=$?
3337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); }
3339
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346
3347 int
3348 main ()
3349 {
3350
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 ac_clean_files_save=$ac_clean_files
3356 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3357 # Try to create an executable without -o first, disregard a.out.
3358 # It will help us diagnose broken compilers, and finding out an intuition
3359 # of exeext.
3360 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3361 $as_echo_n "checking for C compiler default output file name... " >&6; }
3362 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3363
3364 # The possible output files:
3365 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3366
3367 ac_rmfiles=
3368 for ac_file in $ac_files
3369 do
3370   case $ac_file in
3371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3372     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3373   esac
3374 done
3375 rm -f $ac_rmfiles
3376
3377 if { (ac_try="$ac_link_default"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383 $as_echo "$ac_try_echo") >&5
3384   (eval "$ac_link_default") 2>&5
3385   ac_status=$?
3386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }; then
3388   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3389 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3390 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3391 # so that the user can short-circuit this test for compilers unknown to
3392 # Autoconf.
3393 for ac_file in $ac_files ''
3394 do
3395   test -f "$ac_file" || continue
3396   case $ac_file in
3397     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3398         ;;
3399     [ab].out )
3400         # We found the default executable, but exeext='' is most
3401         # certainly right.
3402         break;;
3403     *.* )
3404         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3405         then :; else
3406            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407         fi
3408         # We set ac_cv_exeext here because the later test for it is not
3409         # safe: cross compilers may not add the suffix if given an `-o'
3410         # argument, so we may need to know it at that point already.
3411         # Even if this section looks crufty: it has the advantage of
3412         # actually working.
3413         break;;
3414     * )
3415         break;;
3416   esac
3417 done
3418 test "$ac_cv_exeext" = no && ac_cv_exeext=
3419
3420 else
3421   ac_file=''
3422 fi
3423
3424 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3425 $as_echo "$ac_file" >&6; }
3426 if test -z "$ac_file"; then
3427   $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3433 See \`config.log' for more details." >&5
3434 $as_echo "$as_me: error: C compiler cannot create executables
3435 See \`config.log' for more details." >&2;}
3436    { (exit 77); exit 77; }; }; }
3437 fi
3438
3439 ac_exeext=$ac_cv_exeext
3440
3441 # Check that the compiler produces executables we can run.  If not, either
3442 # the compiler is broken, or we cross compile.
3443 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3444 $as_echo_n "checking whether the C compiler works... " >&6; }
3445 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3446 # If not cross compiling, check that we can run a simple program.
3447 if test "$cross_compiling" != yes; then
3448   if { ac_try='./$ac_file'
3449   { (case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3454 $as_echo "$ac_try_echo") >&5
3455   (eval "$ac_try") 2>&5
3456   ac_status=$?
3457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); }; }; then
3459     cross_compiling=no
3460   else
3461     if test "$cross_compiling" = maybe; then
3462         cross_compiling=yes
3463     else
3464         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3467 If you meant to cross compile, use \`--host'.
3468 See \`config.log' for more details." >&5
3469 $as_echo "$as_me: error: cannot run C compiled programs.
3470 If you meant to cross compile, use \`--host'.
3471 See \`config.log' for more details." >&2;}
3472    { (exit 1); exit 1; }; }; }
3473     fi
3474   fi
3475 fi
3476 { $as_echo "$as_me:$LINENO: result: yes" >&5
3477 $as_echo "yes" >&6; }
3478
3479 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3480 ac_clean_files=$ac_clean_files_save
3481 # Check that the compiler produces executables we can run.  If not, either
3482 # the compiler is broken, or we cross compile.
3483 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3484 $as_echo_n "checking whether we are cross compiling... " >&6; }
3485 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3486 $as_echo "$cross_compiling" >&6; }
3487
3488 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3489 $as_echo_n "checking for suffix of executables... " >&6; }
3490 if { (ac_try="$ac_link"
3491 case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496 $as_echo "$ac_try_echo") >&5
3497   (eval "$ac_link") 2>&5
3498   ac_status=$?
3499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); }; then
3501   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3502 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3503 # work properly (i.e., refer to `conftest.exe'), while it won't with
3504 # `rm'.
3505 for ac_file in conftest.exe conftest conftest.*; do
3506   test -f "$ac_file" || continue
3507   case $ac_file in
3508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3509     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510           break;;
3511     * ) break;;
3512   esac
3513 done
3514 else
3515   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3518 See \`config.log' for more details." >&5
3519 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3520 See \`config.log' for more details." >&2;}
3521    { (exit 1); exit 1; }; }; }
3522 fi
3523
3524 rm -f conftest$ac_cv_exeext
3525 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3526 $as_echo "$ac_cv_exeext" >&6; }
3527
3528 rm -f conftest.$ac_ext
3529 EXEEXT=$ac_cv_exeext
3530 ac_exeext=$EXEEXT
3531 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3532 $as_echo_n "checking for suffix of object files... " >&6; }
3533 if test "${ac_cv_objext+set}" = set; then
3534   $as_echo_n "(cached) " >&6
3535 else
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546
3547   ;
3548   return 0;
3549 }
3550 _ACEOF
3551 rm -f conftest.o conftest.obj
3552 if { (ac_try="$ac_compile"
3553 case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558 $as_echo "$ac_try_echo") >&5
3559   (eval "$ac_compile") 2>&5
3560   ac_status=$?
3561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); }; then
3563   for ac_file in conftest.o conftest.obj conftest.*; do
3564   test -f "$ac_file" || continue;
3565   case $ac_file in
3566     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3567     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3568        break;;
3569   esac
3570 done
3571 else
3572   $as_echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3578 See \`config.log' for more details." >&5
3579 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3580 See \`config.log' for more details." >&2;}
3581    { (exit 1); exit 1; }; }; }
3582 fi
3583
3584 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3585 fi
3586 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3587 $as_echo "$ac_cv_objext" >&6; }
3588 OBJEXT=$ac_cv_objext
3589 ac_objext=$OBJEXT
3590 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3591 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3592 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3593   $as_echo_n "(cached) " >&6
3594 else
3595   cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601
3602 int
3603 main ()
3604 {
3605 #ifndef __GNUC__
3606        choke me
3607 #endif
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621   (eval "$ac_compile") 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } && {
3628          test -z "$ac_c_werror_flag" ||
3629          test ! -s conftest.err
3630        } && test -s conftest.$ac_objext; then
3631   ac_compiler_gnu=yes
3632 else
3633   $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636         ac_compiler_gnu=no
3637 fi
3638
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3641
3642 fi
3643 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3644 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3645 if test $ac_compiler_gnu = yes; then
3646   GCC=yes
3647 else
3648   GCC=
3649 fi
3650 ac_test_CFLAGS=${CFLAGS+set}
3651 ac_save_CFLAGS=$CFLAGS
3652 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3653 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3654 if test "${ac_cv_prog_cc_g+set}" = set; then
3655   $as_echo_n "(cached) " >&6
3656 else
3657   ac_save_c_werror_flag=$ac_c_werror_flag
3658    ac_c_werror_flag=yes
3659    ac_cv_prog_cc_g=no
3660    CFLAGS="-g"
3661    cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667
3668 int
3669 main ()
3670 {
3671
3672   ;
3673   return 0;
3674 }
3675 _ACEOF
3676 rm -f conftest.$ac_objext
3677 if { (ac_try="$ac_compile"
3678 case "(($ac_try" in
3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680   *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3683 $as_echo "$ac_try_echo") >&5
3684   (eval "$ac_compile") 2>conftest.er1
3685   ac_status=$?
3686   grep -v '^ *+' conftest.er1 >conftest.err
3687   rm -f conftest.er1
3688   cat conftest.err >&5
3689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); } && {
3691          test -z "$ac_c_werror_flag" ||
3692          test ! -s conftest.err
3693        } && test -s conftest.$ac_objext; then
3694   ac_cv_prog_cc_g=yes
3695 else
3696   $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699         CFLAGS=""
3700       cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h.  */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h.  */
3706
3707 int
3708 main ()
3709 {
3710
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 rm -f conftest.$ac_objext
3716 if { (ac_try="$ac_compile"
3717 case "(($ac_try" in
3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719   *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3722 $as_echo "$ac_try_echo") >&5
3723   (eval "$ac_compile") 2>conftest.er1
3724   ac_status=$?
3725   grep -v '^ *+' conftest.er1 >conftest.err
3726   rm -f conftest.er1
3727   cat conftest.err >&5
3728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } && {
3730          test -z "$ac_c_werror_flag" ||
3731          test ! -s conftest.err
3732        } && test -s conftest.$ac_objext; then
3733   :
3734 else
3735   $as_echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738         ac_c_werror_flag=$ac_save_c_werror_flag
3739          CFLAGS="-g"
3740          cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h.  */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h.  */
3746
3747 int
3748 main ()
3749 {
3750
3751   ;
3752   return 0;
3753 }
3754 _ACEOF
3755 rm -f conftest.$ac_objext
3756 if { (ac_try="$ac_compile"
3757 case "(($ac_try" in
3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759   *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3762 $as_echo "$ac_try_echo") >&5
3763   (eval "$ac_compile") 2>conftest.er1
3764   ac_status=$?
3765   grep -v '^ *+' conftest.er1 >conftest.err
3766   rm -f conftest.er1
3767   cat conftest.err >&5
3768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } && {
3770          test -z "$ac_c_werror_flag" ||
3771          test ! -s conftest.err
3772        } && test -s conftest.$ac_objext; then
3773   ac_cv_prog_cc_g=yes
3774 else
3775   $as_echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778
3779 fi
3780
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 fi
3783
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 fi
3786
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788    ac_c_werror_flag=$ac_save_c_werror_flag
3789 fi
3790 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3791 $as_echo "$ac_cv_prog_cc_g" >&6; }
3792 if test "$ac_test_CFLAGS" = set; then
3793   CFLAGS=$ac_save_CFLAGS
3794 elif test $ac_cv_prog_cc_g = yes; then
3795   if test "$GCC" = yes; then
3796     CFLAGS="-g -O2"
3797   else
3798     CFLAGS="-g"
3799   fi
3800 else
3801   if test "$GCC" = yes; then
3802     CFLAGS="-O2"
3803   else
3804     CFLAGS=
3805   fi
3806 fi
3807 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3808 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3809 if test "${ac_cv_prog_cc_c89+set}" = set; then
3810   $as_echo_n "(cached) " >&6
3811 else
3812   ac_cv_prog_cc_c89=no
3813 ac_save_CC=$CC
3814 cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <stdarg.h>
3821 #include <stdio.h>
3822 #include <sys/types.h>
3823 #include <sys/stat.h>
3824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3825 struct buf { int x; };
3826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3827 static char *e (p, i)
3828      char **p;
3829      int i;
3830 {
3831   return p[i];
3832 }
3833 static char *f (char * (*g) (char **, int), char **p, ...)
3834 {
3835   char *s;
3836   va_list v;
3837   va_start (v,p);
3838   s = g (p, va_arg (v,int));
3839   va_end (v);
3840   return s;
3841 }
3842
3843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3844    function prototypes and stuff, but not '\xHH' hex character constants.
3845    These don't provoke an error unfortunately, instead are silently treated
3846    as 'x'.  The following induces an error, until -std is added to get
3847    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3848    array size at least.  It's necessary to write '\x00'==0 to get something
3849    that's true only with -std.  */
3850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3851
3852 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3853    inside strings and character constants.  */
3854 #define FOO(x) 'x'
3855 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3856
3857 int test (int i, double x);
3858 struct s1 {int (*f) (int a);};
3859 struct s2 {int (*f) (double a);};
3860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3861 int argc;
3862 char **argv;
3863 int
3864 main ()
3865 {
3866 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3867   ;
3868   return 0;
3869 }
3870 _ACEOF
3871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3872         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3873 do
3874   CC="$ac_save_CC $ac_arg"
3875   rm -f conftest.$ac_objext
3876 if { (ac_try="$ac_compile"
3877 case "(($ac_try" in
3878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879   *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3882 $as_echo "$ac_try_echo") >&5
3883   (eval "$ac_compile") 2>conftest.er1
3884   ac_status=$?
3885   grep -v '^ *+' conftest.er1 >conftest.err
3886   rm -f conftest.er1
3887   cat conftest.err >&5
3888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); } && {
3890          test -z "$ac_c_werror_flag" ||
3891          test ! -s conftest.err
3892        } && test -s conftest.$ac_objext; then
3893   ac_cv_prog_cc_c89=$ac_arg
3894 else
3895   $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898
3899 fi
3900
3901 rm -f core conftest.err conftest.$ac_objext
3902   test "x$ac_cv_prog_cc_c89" != "xno" && break
3903 done
3904 rm -f conftest.$ac_ext
3905 CC=$ac_save_CC
3906
3907 fi
3908 # AC_CACHE_VAL
3909 case "x$ac_cv_prog_cc_c89" in
3910   x)
3911     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3912 $as_echo "none needed" >&6; } ;;
3913   xno)
3914     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3915 $as_echo "unsupported" >&6; } ;;
3916   *)
3917     CC="$CC $ac_cv_prog_cc_c89"
3918     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3919 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3920 esac
3921
3922
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928
3929 depcc="$CC"   am_compiler_list=
3930
3931 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3932 $as_echo_n "checking dependency style of $depcc... " >&6; }
3933 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3934   $as_echo_n "(cached) " >&6
3935 else
3936   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3937   # We make a subdir and do the tests there.  Otherwise we can end up
3938   # making bogus files that we don't know about and never remove.  For
3939   # instance it was reported that on HP-UX the gcc test will end up
3940   # making a dummy file named `D' -- because `-MD' means `put the output
3941   # in D'.
3942   mkdir conftest.dir
3943   # Copy depcomp to subdir because otherwise we won't find it if we're
3944   # using a relative directory.
3945   cp "$am_depcomp" conftest.dir
3946   cd conftest.dir
3947   # We will build objects and dependencies in a subdirectory because
3948   # it helps to detect inapplicable dependency modes.  For instance
3949   # both Tru64's cc and ICC support -MD to output dependencies as a
3950   # side effect of compilation, but ICC will put the dependencies in
3951   # the current directory while Tru64 will put them in the object
3952   # directory.
3953   mkdir sub
3954
3955   am_cv_CC_dependencies_compiler_type=none
3956   if test "$am_compiler_list" = ""; then
3957      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3958   fi
3959   for depmode in $am_compiler_list; do
3960     # Setup a source with many dependencies, because some compilers
3961     # like to wrap large dependency lists on column 80 (with \), and
3962     # we should not choose a depcomp mode which is confused by this.
3963     #
3964     # We need to recreate these files for each test, as the compiler may
3965     # overwrite some of them when testing with obscure command lines.
3966     # This happens at least with the AIX C compiler.
3967     : > sub/conftest.c
3968     for i in 1 2 3 4 5 6; do
3969       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3970       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3971       # Solaris 8's {/usr,}/bin/sh.
3972       touch sub/conftst$i.h
3973     done
3974     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3975
3976     case $depmode in
3977     nosideeffect)
3978       # after this tag, mechanisms are not by side-effect, so they'll
3979       # only be used when explicitly requested
3980       if test "x$enable_dependency_tracking" = xyes; then
3981         continue
3982       else
3983         break
3984       fi
3985       ;;
3986     none) break ;;
3987     esac
3988     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3989     # mode.  It turns out that the SunPro C++ compiler does not properly
3990     # handle `-M -o', and we need to detect this.
3991     if depmode=$depmode \
3992        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3993        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3994        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3995          >/dev/null 2>conftest.err &&
3996        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3997        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3998        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3999        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4000       # icc doesn't choke on unknown options, it will just issue warnings
4001       # or remarks (even with -Werror).  So we grep stderr for any message
4002       # that says an option was ignored or not supported.
4003       # When given -MP, icc 7.0 and 7.1 complain thusly:
4004       #   icc: Command line warning: ignoring option '-M'; no argument required
4005       # The diagnosis changed in icc 8.0:
4006       #   icc: Command line remark: option '-MP' not supported
4007       if (grep 'ignoring option' conftest.err ||
4008           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4009         am_cv_CC_dependencies_compiler_type=$depmode
4010         break
4011       fi
4012     fi
4013   done
4014
4015   cd ..
4016   rm -rf conftest.dir
4017 else
4018   am_cv_CC_dependencies_compiler_type=none
4019 fi
4020
4021 fi
4022 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4023 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4024 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4025
4026  if
4027   test "x$enable_dependency_tracking" != xno \
4028   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4029   am__fastdepCC_TRUE=
4030   am__fastdepCC_FALSE='#'
4031 else
4032   am__fastdepCC_TRUE='#'
4033   am__fastdepCC_FALSE=
4034 fi
4035
4036
4037
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4045 # On Suns, sometimes $CPP names a directory.
4046 if test -n "$CPP" && test -d "$CPP"; then
4047   CPP=
4048 fi
4049 if test -z "$CPP"; then
4050   if test "${ac_cv_prog_CPP+set}" = set; then
4051   $as_echo_n "(cached) " >&6
4052 else
4053       # Double quotes because CPP needs to be expanded
4054     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4055     do
4056       ac_preproc_ok=false
4057 for ac_c_preproc_warn_flag in '' yes
4058 do
4059   # Use a header file that comes with gcc, so configuring glibc
4060   # with a fresh cross-compiler works.
4061   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4062   # <limits.h> exists even on freestanding compilers.
4063   # On the NeXT, cc -E runs the code through the compiler's parser,
4064   # not just through cpp. "Syntax error" is here to catch this case.
4065   cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071 #ifdef __STDC__
4072 # include <limits.h>
4073 #else
4074 # include <assert.h>
4075 #endif
4076                      Syntax error
4077 _ACEOF
4078 if { (ac_try="$ac_cpp conftest.$ac_ext"
4079 case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4084 $as_echo "$ac_try_echo") >&5
4085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4086   ac_status=$?
4087   grep -v '^ *+' conftest.er1 >conftest.err
4088   rm -f conftest.er1
4089   cat conftest.err >&5
4090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); } >/dev/null && {
4092          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4093          test ! -s conftest.err
4094        }; then
4095   :
4096 else
4097   $as_echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100   # Broken: fails on valid input.
4101 continue
4102 fi
4103
4104 rm -f conftest.err conftest.$ac_ext
4105
4106   # OK, works on sane cases.  Now check whether nonexistent headers
4107   # can be detected and how.
4108   cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114 #include <ac_nonexistent.h>
4115 _ACEOF
4116 if { (ac_try="$ac_cpp conftest.$ac_ext"
4117 case "(($ac_try" in
4118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119   *) ac_try_echo=$ac_try;;
4120 esac
4121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4122 $as_echo "$ac_try_echo") >&5
4123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4124   ac_status=$?
4125   grep -v '^ *+' conftest.er1 >conftest.err
4126   rm -f conftest.er1
4127   cat conftest.err >&5
4128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); } >/dev/null && {
4130          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4131          test ! -s conftest.err
4132        }; then
4133   # Broken: success on invalid input.
4134 continue
4135 else
4136   $as_echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4138
4139   # Passes both tests.
4140 ac_preproc_ok=:
4141 break
4142 fi
4143
4144 rm -f conftest.err conftest.$ac_ext
4145
4146 done
4147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4148 rm -f conftest.err conftest.$ac_ext
4149 if $ac_preproc_ok; then
4150   break
4151 fi
4152
4153     done
4154     ac_cv_prog_CPP=$CPP
4155
4156 fi
4157   CPP=$ac_cv_prog_CPP
4158 else
4159   ac_cv_prog_CPP=$CPP
4160 fi
4161 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4162 $as_echo "$CPP" >&6; }
4163 ac_preproc_ok=false
4164 for ac_c_preproc_warn_flag in '' yes
4165 do
4166   # Use a header file that comes with gcc, so configuring glibc
4167   # with a fresh cross-compiler works.
4168   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4169   # <limits.h> exists even on freestanding compilers.
4170   # On the NeXT, cc -E runs the code through the compiler's parser,
4171   # not just through cpp. "Syntax error" is here to catch this case.
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178 #ifdef __STDC__
4179 # include <limits.h>
4180 #else
4181 # include <assert.h>
4182 #endif
4183                      Syntax error
4184 _ACEOF
4185 if { (ac_try="$ac_cpp conftest.$ac_ext"
4186 case "(($ac_try" in
4187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188   *) ac_try_echo=$ac_try;;
4189 esac
4190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4191 $as_echo "$ac_try_echo") >&5
4192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4193   ac_status=$?
4194   grep -v '^ *+' conftest.er1 >conftest.err
4195   rm -f conftest.er1
4196   cat conftest.err >&5
4197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } >/dev/null && {
4199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4200          test ! -s conftest.err
4201        }; then
4202   :
4203 else
4204   $as_echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207   # Broken: fails on valid input.
4208 continue
4209 fi
4210
4211 rm -f conftest.err conftest.$ac_ext
4212
4213   # OK, works on sane cases.  Now check whether nonexistent headers
4214   # can be detected and how.
4215   cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h.  */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h.  */
4221 #include <ac_nonexistent.h>
4222 _ACEOF
4223 if { (ac_try="$ac_cpp conftest.$ac_ext"
4224 case "(($ac_try" in
4225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226   *) ac_try_echo=$ac_try;;
4227 esac
4228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4229 $as_echo "$ac_try_echo") >&5
4230   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4231   ac_status=$?
4232   grep -v '^ *+' conftest.er1 >conftest.err
4233   rm -f conftest.er1
4234   cat conftest.err >&5
4235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); } >/dev/null && {
4237          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4238          test ! -s conftest.err
4239        }; then
4240   # Broken: success on invalid input.
4241 continue
4242 else
4243   $as_echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246   # Passes both tests.
4247 ac_preproc_ok=:
4248 break
4249 fi
4250
4251 rm -f conftest.err conftest.$ac_ext
4252
4253 done
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.err conftest.$ac_ext
4256 if $ac_preproc_ok; then
4257   :
4258 else
4259   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4261 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4262 See \`config.log' for more details." >&5
4263 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4264 See \`config.log' for more details." >&2;}
4265    { (exit 1); exit 1; }; }; }
4266 fi
4267
4268 ac_ext=c
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274
4275 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4276 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4277 if test "${ac_cv_path_GREP+set}" = set; then
4278   $as_echo_n "(cached) " >&6
4279 else
4280   if test -z "$GREP"; then
4281   ac_path_GREP_found=false
4282   # Loop through the user's path and test for each of PROGNAME-LIST
4283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288   for ac_prog in grep ggrep; do
4289     for ac_exec_ext in '' $ac_executable_extensions; do
4290       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4291       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4292 # Check for GNU ac_path_GREP and select it if it is found.
4293   # Check for GNU $ac_path_GREP
4294 case `"$ac_path_GREP" --version 2>&1` in
4295 *GNU*)
4296   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4297 *)
4298   ac_count=0
4299   $as_echo_n 0123456789 >"conftest.in"
4300   while :
4301   do
4302     cat "conftest.in" "conftest.in" >"conftest.tmp"
4303     mv "conftest.tmp" "conftest.in"
4304     cp "conftest.in" "conftest.nl"
4305     $as_echo 'GREP' >> "conftest.nl"
4306     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308     ac_count=`expr $ac_count + 1`
4309     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4310       # Best one so far, save it but keep looking for a better one
4311       ac_cv_path_GREP="$ac_path_GREP"
4312       ac_path_GREP_max=$ac_count
4313     fi
4314     # 10*(2^10) chars as input seems more than enough
4315     test $ac_count -gt 10 && break
4316   done
4317   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4318 esac
4319
4320       $ac_path_GREP_found && break 3
4321     done
4322   done
4323 done
4324 IFS=$as_save_IFS
4325   if test -z "$ac_cv_path_GREP"; then
4326     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4327 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4328    { (exit 1); exit 1; }; }
4329   fi
4330 else
4331   ac_cv_path_GREP=$GREP
4332 fi
4333
4334 fi
4335 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4336 $as_echo "$ac_cv_path_GREP" >&6; }
4337  GREP="$ac_cv_path_GREP"
4338
4339
4340 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4341 $as_echo_n "checking for egrep... " >&6; }
4342 if test "${ac_cv_path_EGREP+set}" = set; then
4343   $as_echo_n "(cached) " >&6
4344 else
4345   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4346    then ac_cv_path_EGREP="$GREP -E"
4347    else
4348      if test -z "$EGREP"; then
4349   ac_path_EGREP_found=false
4350   # Loop through the user's path and test for each of PROGNAME-LIST
4351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356   for ac_prog in egrep; do
4357     for ac_exec_ext in '' $ac_executable_extensions; do
4358       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4359       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4360 # Check for GNU ac_path_EGREP and select it if it is found.
4361   # Check for GNU $ac_path_EGREP
4362 case `"$ac_path_EGREP" --version 2>&1` in
4363 *GNU*)
4364   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4365 *)
4366   ac_count=0
4367   $as_echo_n 0123456789 >"conftest.in"
4368   while :
4369   do
4370     cat "conftest.in" "conftest.in" >"conftest.tmp"
4371     mv "conftest.tmp" "conftest.in"
4372     cp "conftest.in" "conftest.nl"
4373     $as_echo 'EGREP' >> "conftest.nl"
4374     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376     ac_count=`expr $ac_count + 1`
4377     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4378       # Best one so far, save it but keep looking for a better one
4379       ac_cv_path_EGREP="$ac_path_EGREP"
4380       ac_path_EGREP_max=$ac_count
4381     fi
4382     # 10*(2^10) chars as input seems more than enough
4383     test $ac_count -gt 10 && break
4384   done
4385   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4386 esac
4387
4388       $ac_path_EGREP_found && break 3
4389     done
4390   done
4391 done
4392 IFS=$as_save_IFS
4393   if test -z "$ac_cv_path_EGREP"; then
4394     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4395 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4396    { (exit 1); exit 1; }; }
4397   fi
4398 else
4399   ac_cv_path_EGREP=$EGREP
4400 fi
4401
4402    fi
4403 fi
4404 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4405 $as_echo "$ac_cv_path_EGREP" >&6; }
4406  EGREP="$ac_cv_path_EGREP"
4407
4408
4409 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4410 $as_echo_n "checking for ANSI C header files... " >&6; }
4411 if test "${ac_cv_header_stdc+set}" = set; then
4412   $as_echo_n "(cached) " >&6
4413 else
4414   cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h.  */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h.  */
4420 #include <stdlib.h>
4421 #include <stdarg.h>
4422 #include <string.h>
4423 #include <float.h>
4424
4425 int
4426 main ()
4427 {
4428
4429   ;
4430   return 0;
4431 }
4432 _ACEOF
4433 rm -f conftest.$ac_objext
4434 if { (ac_try="$ac_compile"
4435 case "(($ac_try" in
4436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437   *) ac_try_echo=$ac_try;;
4438 esac
4439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4440 $as_echo "$ac_try_echo") >&5
4441   (eval "$ac_compile") 2>conftest.er1
4442   ac_status=$?
4443   grep -v '^ *+' conftest.er1 >conftest.err
4444   rm -f conftest.er1
4445   cat conftest.err >&5
4446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); } && {
4448          test -z "$ac_c_werror_flag" ||
4449          test ! -s conftest.err
4450        } && test -s conftest.$ac_objext; then
4451   ac_cv_header_stdc=yes
4452 else
4453   $as_echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456         ac_cv_header_stdc=no
4457 fi
4458
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460
4461 if test $ac_cv_header_stdc = yes; then
4462   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4463   cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h.  */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h.  */
4469 #include <string.h>
4470
4471 _ACEOF
4472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473   $EGREP "memchr" >/dev/null 2>&1; then
4474   :
4475 else
4476   ac_cv_header_stdc=no
4477 fi
4478 rm -f conftest*
4479
4480 fi
4481
4482 if test $ac_cv_header_stdc = yes; then
4483   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4484   cat >conftest.$ac_ext <<_ACEOF
4485 /* confdefs.h.  */
4486 _ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h.  */
4490 #include <stdlib.h>
4491
4492 _ACEOF
4493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4494   $EGREP "free" >/dev/null 2>&1; then
4495   :
4496 else
4497   ac_cv_header_stdc=no
4498 fi
4499 rm -f conftest*
4500
4501 fi
4502
4503 if test $ac_cv_header_stdc = yes; then
4504   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4505   if test "$cross_compiling" = yes; then
4506   :
4507 else
4508   cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h.  */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h.  */
4514 #include <ctype.h>
4515 #include <stdlib.h>
4516 #if ((' ' & 0x0FF) == 0x020)
4517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4519 #else
4520 # define ISLOWER(c) \
4521                    (('a' <= (c) && (c) <= 'i') \
4522                      || ('j' <= (c) && (c) <= 'r') \
4523                      || ('s' <= (c) && (c) <= 'z'))
4524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4525 #endif
4526
4527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4528 int
4529 main ()
4530 {
4531   int i;
4532   for (i = 0; i < 256; i++)
4533     if (XOR (islower (i), ISLOWER (i))
4534         || toupper (i) != TOUPPER (i))
4535       return 2;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest$ac_exeext
4540 if { (ac_try="$ac_link"
4541 case "(($ac_try" in
4542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543   *) ac_try_echo=$ac_try;;
4544 esac
4545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4546 $as_echo "$ac_try_echo") >&5
4547   (eval "$ac_link") 2>&5
4548   ac_status=$?
4549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4551   { (case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4556 $as_echo "$ac_try_echo") >&5
4557   (eval "$ac_try") 2>&5
4558   ac_status=$?
4559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   :
4562 else
4563   $as_echo "$as_me: program exited with status $ac_status" >&5
4564 $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567 ( exit $ac_status )
4568 ac_cv_header_stdc=no
4569 fi
4570 rm -rf conftest.dSYM
4571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572 fi
4573
4574
4575 fi
4576 fi
4577 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4578 $as_echo "$ac_cv_header_stdc" >&6; }
4579 if test $ac_cv_header_stdc = yes; then
4580
4581 cat >>confdefs.h <<\_ACEOF
4582 #define STDC_HEADERS 1
4583 _ACEOF
4584
4585 fi
4586
4587 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4598                   inttypes.h stdint.h unistd.h
4599 do
4600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4601 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4602 $as_echo_n "checking for $ac_header... " >&6; }
4603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4604   $as_echo_n "(cached) " >&6
4605 else
4606   cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h.  */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h.  */
4612 $ac_includes_default
4613
4614 #include <$ac_header>
4615 _ACEOF
4616 rm -f conftest.$ac_objext
4617 if { (ac_try="$ac_compile"
4618 case "(($ac_try" in
4619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620   *) ac_try_echo=$ac_try;;
4621 esac
4622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4623 $as_echo "$ac_try_echo") >&5
4624   (eval "$ac_compile") 2>conftest.er1
4625   ac_status=$?
4626   grep -v '^ *+' conftest.er1 >conftest.err
4627   rm -f conftest.er1
4628   cat conftest.err >&5
4629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); } && {
4631          test -z "$ac_c_werror_flag" ||
4632          test ! -s conftest.err
4633        } && test -s conftest.$ac_objext; then
4634   eval "$as_ac_Header=yes"
4635 else
4636   $as_echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639         eval "$as_ac_Header=no"
4640 fi
4641
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 fi
4644 ac_res=`eval 'as_val=${'$as_ac_Header'}
4645                  $as_echo "$as_val"'`
4646                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4647 $as_echo "$ac_res" >&6; }
4648 as_val=`eval 'as_val=${'$as_ac_Header'}
4649                  $as_echo "$as_val"'`
4650    if test "x$as_val" = x""yes; then
4651   cat >>confdefs.h <<_ACEOF
4652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4653 _ACEOF
4654
4655 fi
4656
4657 done
4658
4659
4660
4661   if test "${ac_cv_header_minix_config_h+set}" = set; then
4662   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4663 $as_echo_n "checking for minix/config.h... " >&6; }
4664 if test "${ac_cv_header_minix_config_h+set}" = set; then
4665   $as_echo_n "(cached) " >&6
4666 fi
4667 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4668 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4669 else
4670   # Is the header compilable?
4671 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4672 $as_echo_n "checking minix/config.h usability... " >&6; }
4673 cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h.  */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h.  */
4679 $ac_includes_default
4680 #include <minix/config.h>
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (ac_try="$ac_compile"
4684 case "(($ac_try" in
4685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686   *) ac_try_echo=$ac_try;;
4687 esac
4688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4689 $as_echo "$ac_try_echo") >&5
4690   (eval "$ac_compile") 2>conftest.er1
4691   ac_status=$?
4692   grep -v '^ *+' conftest.er1 >conftest.err
4693   rm -f conftest.er1
4694   cat conftest.err >&5
4695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); } && {
4697          test -z "$ac_c_werror_flag" ||
4698          test ! -s conftest.err
4699        } && test -s conftest.$ac_objext; then
4700   ac_header_compiler=yes
4701 else
4702   $as_echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705         ac_header_compiler=no
4706 fi
4707
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4710 $as_echo "$ac_header_compiler" >&6; }
4711
4712 # Is the header present?
4713 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4714 $as_echo_n "checking minix/config.h presence... " >&6; }
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h.  */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h.  */
4721 #include <minix/config.h>
4722 _ACEOF
4723 if { (ac_try="$ac_cpp conftest.$ac_ext"
4724 case "(($ac_try" in
4725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726   *) ac_try_echo=$ac_try;;
4727 esac
4728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4729 $as_echo "$ac_try_echo") >&5
4730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4731   ac_status=$?
4732   grep -v '^ *+' conftest.er1 >conftest.err
4733   rm -f conftest.er1
4734   cat conftest.err >&5
4735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } >/dev/null && {
4737          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4738          test ! -s conftest.err
4739        }; then
4740   ac_header_preproc=yes
4741 else
4742   $as_echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4744
4745   ac_header_preproc=no
4746 fi
4747
4748 rm -f conftest.err conftest.$ac_ext
4749 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4750 $as_echo "$ac_header_preproc" >&6; }
4751
4752 # So?  What about this header?
4753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4754   yes:no: )
4755     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4756 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4757     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4758 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4759     ac_header_preproc=yes
4760     ;;
4761   no:yes:* )
4762     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4763 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4764     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4765 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4766     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4767 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4768     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4769 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4770     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4771 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4772     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4773 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4774
4775     ;;
4776 esac
4777 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4778 $as_echo_n "checking for minix/config.h... " >&6; }
4779 if test "${ac_cv_header_minix_config_h+set}" = set; then
4780   $as_echo_n "(cached) " >&6
4781 else
4782   ac_cv_header_minix_config_h=$ac_header_preproc
4783 fi
4784 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4785 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4786
4787 fi
4788 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4789   MINIX=yes
4790 else
4791   MINIX=
4792 fi
4793
4794
4795   if test "$MINIX" = yes; then
4796
4797 cat >>confdefs.h <<\_ACEOF
4798 #define _POSIX_SOURCE 1
4799 _ACEOF
4800
4801
4802 cat >>confdefs.h <<\_ACEOF
4803 #define _POSIX_1_SOURCE 2
4804 _ACEOF
4805
4806
4807 cat >>confdefs.h <<\_ACEOF
4808 #define _MINIX 1
4809 _ACEOF
4810
4811   fi
4812
4813
4814
4815   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4816 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4817 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4818   $as_echo_n "(cached) " >&6
4819 else
4820   cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h.  */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h.  */
4826
4827 #         define __EXTENSIONS__ 1
4828           $ac_includes_default
4829 int
4830 main ()
4831 {
4832
4833   ;
4834   return 0;
4835 }
4836 _ACEOF
4837 rm -f conftest.$ac_objext
4838 if { (ac_try="$ac_compile"
4839 case "(($ac_try" in
4840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841   *) ac_try_echo=$ac_try;;
4842 esac
4843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4844 $as_echo "$ac_try_echo") >&5
4845   (eval "$ac_compile") 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } && {
4852          test -z "$ac_c_werror_flag" ||
4853          test ! -s conftest.err
4854        } && test -s conftest.$ac_objext; then
4855   ac_cv_safe_to_define___extensions__=yes
4856 else
4857   $as_echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860         ac_cv_safe_to_define___extensions__=no
4861 fi
4862
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 fi
4865 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4866 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4867   test $ac_cv_safe_to_define___extensions__ = yes &&
4868     cat >>confdefs.h <<\_ACEOF
4869 #define __EXTENSIONS__ 1
4870 _ACEOF
4871
4872   cat >>confdefs.h <<\_ACEOF
4873 #define _ALL_SOURCE 1
4874 _ACEOF
4875
4876   cat >>confdefs.h <<\_ACEOF
4877 #define _GNU_SOURCE 1
4878 _ACEOF
4879
4880   cat >>confdefs.h <<\_ACEOF
4881 #define _POSIX_PTHREAD_SEMANTICS 1
4882 _ACEOF
4883
4884   cat >>confdefs.h <<\_ACEOF
4885 #define _TANDEM_SOURCE 1
4886 _ACEOF
4887
4888
4889 ac_ext=c
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894 if test -n "$ac_tool_prefix"; then
4895   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_CC+set}" = set; then
4900   $as_echo_n "(cached) " >&6
4901 else
4902   if test -n "$CC"; then
4903   ac_cv_prog_CC="$CC" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4913     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 CC=$ac_cv_prog_CC
4923 if test -n "$CC"; then
4924   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4925 $as_echo "$CC" >&6; }
4926 else
4927   { $as_echo "$as_me:$LINENO: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931
4932 fi
4933 if test -z "$ac_cv_prog_CC"; then
4934   ac_ct_CC=$CC
4935   # Extract the first word of "gcc", so it can be a program name with args.
4936 set dummy gcc; ac_word=$2
4937 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4940   $as_echo_n "(cached) " >&6
4941 else
4942   if test -n "$ac_ct_CC"; then
4943   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948   IFS=$as_save_IFS
4949   test -z "$as_dir" && as_dir=.
4950   for ac_exec_ext in '' $ac_executable_extensions; do
4951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952     ac_cv_prog_ac_ct_CC="gcc"
4953     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954     break 2
4955   fi
4956 done
4957 done
4958 IFS=$as_save_IFS
4959
4960 fi
4961 fi
4962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4963 if test -n "$ac_ct_CC"; then
4964   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4965 $as_echo "$ac_ct_CC" >&6; }
4966 else
4967   { $as_echo "$as_me:$LINENO: result: no" >&5
4968 $as_echo "no" >&6; }
4969 fi
4970
4971   if test "x$ac_ct_CC" = x; then
4972     CC=""
4973   else
4974     case $cross_compiling:$ac_tool_warned in
4975 yes:)
4976 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4978 ac_tool_warned=yes ;;
4979 esac
4980     CC=$ac_ct_CC
4981   fi
4982 else
4983   CC="$ac_cv_prog_CC"
4984 fi
4985
4986 if test -z "$CC"; then
4987           if test -n "$ac_tool_prefix"; then
4988     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4989 set dummy ${ac_tool_prefix}cc; ac_word=$2
4990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_prog_CC+set}" = set; then
4993   $as_echo_n "(cached) " >&6
4994 else
4995   if test -n "$CC"; then
4996   ac_cv_prog_CC="$CC" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003   for ac_exec_ext in '' $ac_executable_extensions; do
5004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005     ac_cv_prog_CC="${ac_tool_prefix}cc"
5006     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 fi
5014 fi
5015 CC=$ac_cv_prog_CC
5016 if test -n "$CC"; then
5017   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5018 $as_echo "$CC" >&6; }
5019 else
5020   { $as_echo "$as_me:$LINENO: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023
5024
5025   fi
5026 fi
5027 if test -z "$CC"; then
5028   # Extract the first word of "cc", so it can be a program name with args.
5029 set dummy cc; ac_word=$2
5030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_prog_CC+set}" = set; then
5033   $as_echo_n "(cached) " >&6
5034 else
5035   if test -n "$CC"; then
5036   ac_cv_prog_CC="$CC" # Let the user override the test.
5037 else
5038   ac_prog_rejected=no
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044   for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5047        ac_prog_rejected=yes
5048        continue
5049      fi
5050     ac_cv_prog_CC="cc"
5051     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052     break 2
5053   fi
5054 done
5055 done
5056 IFS=$as_save_IFS
5057
5058 if test $ac_prog_rejected = yes; then
5059   # We found a bogon in the path, so make sure we never use it.
5060   set dummy $ac_cv_prog_CC
5061   shift
5062   if test $# != 0; then
5063     # We chose a different compiler from the bogus one.
5064     # However, it has the same basename, so the bogon will be chosen
5065     # first if we set CC to just the basename; use the full file name.
5066     shift
5067     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5068   fi
5069 fi
5070 fi
5071 fi
5072 CC=$ac_cv_prog_CC
5073 if test -n "$CC"; then
5074   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5075 $as_echo "$CC" >&6; }
5076 else
5077   { $as_echo "$as_me:$LINENO: result: no" >&5
5078 $as_echo "no" >&6; }
5079 fi
5080
5081
5082 fi
5083 if test -z "$CC"; then
5084   if test -n "$ac_tool_prefix"; then
5085   for ac_prog in cl.exe
5086   do
5087     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5089 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_prog_CC+set}" = set; then
5092   $as_echo_n "(cached) " >&6
5093 else
5094   if test -n "$CC"; then
5095   ac_cv_prog_CC="$CC" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102   for ac_exec_ext in '' $ac_executable_extensions; do
5103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5105     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106     break 2
5107   fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 CC=$ac_cv_prog_CC
5115 if test -n "$CC"; then
5116   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5117 $as_echo "$CC" >&6; }
5118 else
5119   { $as_echo "$as_me:$LINENO: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123
5124     test -n "$CC" && break
5125   done
5126 fi
5127 if test -z "$CC"; then
5128   ac_ct_CC=$CC
5129   for ac_prog in cl.exe
5130 do
5131   # Extract the first word of "$ac_prog", so it can be a program name with args.
5132 set dummy $ac_prog; ac_word=$2
5133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5136   $as_echo_n "(cached) " >&6
5137 else
5138   if test -n "$ac_ct_CC"; then
5139   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144   IFS=$as_save_IFS
5145   test -z "$as_dir" && as_dir=.
5146   for ac_exec_ext in '' $ac_executable_extensions; do
5147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148     ac_cv_prog_ac_ct_CC="$ac_prog"
5149     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150     break 2
5151   fi
5152 done
5153 done
5154 IFS=$as_save_IFS
5155
5156 fi
5157 fi
5158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5159 if test -n "$ac_ct_CC"; then
5160   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5161 $as_echo "$ac_ct_CC" >&6; }
5162 else
5163   { $as_echo "$as_me:$LINENO: result: no" >&5
5164 $as_echo "no" >&6; }
5165 fi
5166
5167
5168   test -n "$ac_ct_CC" && break
5169 done
5170
5171   if test "x$ac_ct_CC" = x; then
5172     CC=""
5173   else
5174     case $cross_compiling:$ac_tool_warned in
5175 yes:)
5176 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned=yes ;;
5179 esac
5180     CC=$ac_ct_CC
5181   fi
5182 fi
5183
5184 fi
5185
5186
5187 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5189 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5190 See \`config.log' for more details." >&5
5191 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5192 See \`config.log' for more details." >&2;}
5193    { (exit 1); exit 1; }; }; }
5194
5195 # Provide some information about the compiler.
5196 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5197 set X $ac_compile
5198 ac_compiler=$2
5199 { (ac_try="$ac_compiler --version >&5"
5200 case "(($ac_try" in
5201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202   *) ac_try_echo=$ac_try;;
5203 esac
5204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205 $as_echo "$ac_try_echo") >&5
5206   (eval "$ac_compiler --version >&5") 2>&5
5207   ac_status=$?
5208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }
5210 { (ac_try="$ac_compiler -v >&5"
5211 case "(($ac_try" in
5212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213   *) ac_try_echo=$ac_try;;
5214 esac
5215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5216 $as_echo "$ac_try_echo") >&5
5217   (eval "$ac_compiler -v >&5") 2>&5
5218   ac_status=$?
5219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); }
5221 { (ac_try="$ac_compiler -V >&5"
5222 case "(($ac_try" in
5223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224   *) ac_try_echo=$ac_try;;
5225 esac
5226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5227 $as_echo "$ac_try_echo") >&5
5228   (eval "$ac_compiler -V >&5") 2>&5
5229   ac_status=$?
5230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); }
5232
5233 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5234 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5235 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5236   $as_echo_n "(cached) " >&6
5237 else
5238   cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244
5245 int
5246 main ()
5247 {
5248 #ifndef __GNUC__
5249        choke me
5250 #endif
5251
5252   ;
5253   return 0;
5254 }
5255 _ACEOF
5256 rm -f conftest.$ac_objext
5257 if { (ac_try="$ac_compile"
5258 case "(($ac_try" in
5259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260   *) ac_try_echo=$ac_try;;
5261 esac
5262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5263 $as_echo "$ac_try_echo") >&5
5264   (eval "$ac_compile") 2>conftest.er1
5265   ac_status=$?
5266   grep -v '^ *+' conftest.er1 >conftest.err
5267   rm -f conftest.er1
5268   cat conftest.err >&5
5269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); } && {
5271          test -z "$ac_c_werror_flag" ||
5272          test ! -s conftest.err
5273        } && test -s conftest.$ac_objext; then
5274   ac_compiler_gnu=yes
5275 else
5276   $as_echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279         ac_compiler_gnu=no
5280 fi
5281
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5284
5285 fi
5286 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5287 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5288 if test $ac_compiler_gnu = yes; then
5289   GCC=yes
5290 else
5291   GCC=
5292 fi
5293 ac_test_CFLAGS=${CFLAGS+set}
5294 ac_save_CFLAGS=$CFLAGS
5295 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5296 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5297 if test "${ac_cv_prog_cc_g+set}" = set; then
5298   $as_echo_n "(cached) " >&6
5299 else
5300   ac_save_c_werror_flag=$ac_c_werror_flag
5301    ac_c_werror_flag=yes
5302    ac_cv_prog_cc_g=no
5303    CFLAGS="-g"
5304    cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h.  */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h.  */
5310
5311 int
5312 main ()
5313 {
5314
5315   ;
5316   return 0;
5317 }
5318 _ACEOF
5319 rm -f conftest.$ac_objext
5320 if { (ac_try="$ac_compile"
5321 case "(($ac_try" in
5322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323   *) ac_try_echo=$ac_try;;
5324 esac
5325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5326 $as_echo "$ac_try_echo") >&5
5327   (eval "$ac_compile") 2>conftest.er1
5328   ac_status=$?
5329   grep -v '^ *+' conftest.er1 >conftest.err
5330   rm -f conftest.er1
5331   cat conftest.err >&5
5332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); } && {
5334          test -z "$ac_c_werror_flag" ||
5335          test ! -s conftest.err
5336        } && test -s conftest.$ac_objext; then
5337   ac_cv_prog_cc_g=yes
5338 else
5339   $as_echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342         CFLAGS=""
5343       cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h.  */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h.  */
5349
5350 int
5351 main ()
5352 {
5353
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (ac_try="$ac_compile"
5360 case "(($ac_try" in
5361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362   *) ac_try_echo=$ac_try;;
5363 esac
5364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365 $as_echo "$ac_try_echo") >&5
5366   (eval "$ac_compile") 2>conftest.er1
5367   ac_status=$?
5368   grep -v '^ *+' conftest.er1 >conftest.err
5369   rm -f conftest.er1
5370   cat conftest.err >&5
5371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); } && {
5373          test -z "$ac_c_werror_flag" ||
5374          test ! -s conftest.err
5375        } && test -s conftest.$ac_objext; then
5376   :
5377 else
5378   $as_echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381         ac_c_werror_flag=$ac_save_c_werror_flag
5382          CFLAGS="-g"
5383          cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h.  */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h.  */
5389
5390 int
5391 main ()
5392 {
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5400 case "(($ac_try" in
5401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402   *) ac_try_echo=$ac_try;;
5403 esac
5404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5405 $as_echo "$ac_try_echo") >&5
5406   (eval "$ac_compile") 2>conftest.er1
5407   ac_status=$?
5408   grep -v '^ *+' conftest.er1 >conftest.err
5409   rm -f conftest.er1
5410   cat conftest.err >&5
5411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); } && {
5413          test -z "$ac_c_werror_flag" ||
5414          test ! -s conftest.err
5415        } && test -s conftest.$ac_objext; then
5416   ac_cv_prog_cc_g=yes
5417 else
5418   $as_echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421
5422 fi
5423
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 fi
5426
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 fi
5429
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431    ac_c_werror_flag=$ac_save_c_werror_flag
5432 fi
5433 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5434 $as_echo "$ac_cv_prog_cc_g" >&6; }
5435 if test "$ac_test_CFLAGS" = set; then
5436   CFLAGS=$ac_save_CFLAGS
5437 elif test $ac_cv_prog_cc_g = yes; then
5438   if test "$GCC" = yes; then
5439     CFLAGS="-g -O2"
5440   else
5441     CFLAGS="-g"
5442   fi
5443 else
5444   if test "$GCC" = yes; then
5445     CFLAGS="-O2"
5446   else
5447     CFLAGS=
5448   fi
5449 fi
5450 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5451 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5452 if test "${ac_cv_prog_cc_c89+set}" = set; then
5453   $as_echo_n "(cached) " >&6
5454 else
5455   ac_cv_prog_cc_c89=no
5456 ac_save_CC=$CC
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h.  */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h.  */
5463 #include <stdarg.h>
5464 #include <stdio.h>
5465 #include <sys/types.h>
5466 #include <sys/stat.h>
5467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5468 struct buf { int x; };
5469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5470 static char *e (p, i)
5471      char **p;
5472      int i;
5473 {
5474   return p[i];
5475 }
5476 static char *f (char * (*g) (char **, int), char **p, ...)
5477 {
5478   char *s;
5479   va_list v;
5480   va_start (v,p);
5481   s = g (p, va_arg (v,int));
5482   va_end (v);
5483   return s;
5484 }
5485
5486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5487    function prototypes and stuff, but not '\xHH' hex character constants.
5488    These don't provoke an error unfortunately, instead are silently treated
5489    as 'x'.  The following induces an error, until -std is added to get
5490    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5491    array size at least.  It's necessary to write '\x00'==0 to get something
5492    that's true only with -std.  */
5493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5494
5495 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5496    inside strings and character constants.  */
5497 #define FOO(x) 'x'
5498 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5499
5500 int test (int i, double x);
5501 struct s1 {int (*f) (int a);};
5502 struct s2 {int (*f) (double a);};
5503 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5504 int argc;
5505 char **argv;
5506 int
5507 main ()
5508 {
5509 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5510   ;
5511   return 0;
5512 }
5513 _ACEOF
5514 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5515         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5516 do
5517   CC="$ac_save_CC $ac_arg"
5518   rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5520 case "(($ac_try" in
5521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522   *) ac_try_echo=$ac_try;;
5523 esac
5524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5525 $as_echo "$ac_try_echo") >&5
5526   (eval "$ac_compile") 2>conftest.er1
5527   ac_status=$?
5528   grep -v '^ *+' conftest.er1 >conftest.err
5529   rm -f conftest.er1
5530   cat conftest.err >&5
5531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } && {
5533          test -z "$ac_c_werror_flag" ||
5534          test ! -s conftest.err
5535        } && test -s conftest.$ac_objext; then
5536   ac_cv_prog_cc_c89=$ac_arg
5537 else
5538   $as_echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541
5542 fi
5543
5544 rm -f core conftest.err conftest.$ac_objext
5545   test "x$ac_cv_prog_cc_c89" != "xno" && break
5546 done
5547 rm -f conftest.$ac_ext
5548 CC=$ac_save_CC
5549
5550 fi
5551 # AC_CACHE_VAL
5552 case "x$ac_cv_prog_cc_c89" in
5553   x)
5554     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5555 $as_echo "none needed" >&6; } ;;
5556   xno)
5557     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5558 $as_echo "unsupported" >&6; } ;;
5559   *)
5560     CC="$CC $ac_cv_prog_cc_c89"
5561     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5562 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5563 esac
5564
5565
5566 ac_ext=c
5567 ac_cpp='$CPP $CPPFLAGS'
5568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5571
5572 depcc="$CC"   am_compiler_list=
5573
5574 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5575 $as_echo_n "checking dependency style of $depcc... " >&6; }
5576 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5577   $as_echo_n "(cached) " >&6
5578 else
5579   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5580   # We make a subdir and do the tests there.  Otherwise we can end up
5581   # making bogus files that we don't know about and never remove.  For
5582   # instance it was reported that on HP-UX the gcc test will end up
5583   # making a dummy file named `D' -- because `-MD' means `put the output
5584   # in D'.
5585   mkdir conftest.dir
5586   # Copy depcomp to subdir because otherwise we won't find it if we're
5587   # using a relative directory.
5588   cp "$am_depcomp" conftest.dir
5589   cd conftest.dir
5590   # We will build objects and dependencies in a subdirectory because
5591   # it helps to detect inapplicable dependency modes.  For instance
5592   # both Tru64's cc and ICC support -MD to output dependencies as a
5593   # side effect of compilation, but ICC will put the dependencies in
5594   # the current directory while Tru64 will put them in the object
5595   # directory.
5596   mkdir sub
5597
5598   am_cv_CC_dependencies_compiler_type=none
5599   if test "$am_compiler_list" = ""; then
5600      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5601   fi
5602   for depmode in $am_compiler_list; do
5603     # Setup a source with many dependencies, because some compilers
5604     # like to wrap large dependency lists on column 80 (with \), and
5605     # we should not choose a depcomp mode which is confused by this.
5606     #
5607     # We need to recreate these files for each test, as the compiler may
5608     # overwrite some of them when testing with obscure command lines.
5609     # This happens at least with the AIX C compiler.
5610     : > sub/conftest.c
5611     for i in 1 2 3 4 5 6; do
5612       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5613       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5614       # Solaris 8's {/usr,}/bin/sh.
5615       touch sub/conftst$i.h
5616     done
5617     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5618
5619     case $depmode in
5620     nosideeffect)
5621       # after this tag, mechanisms are not by side-effect, so they'll
5622       # only be used when explicitly requested
5623       if test "x$enable_dependency_tracking" = xyes; then
5624         continue
5625       else
5626         break
5627       fi
5628       ;;
5629     none) break ;;
5630     esac
5631     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5632     # mode.  It turns out that the SunPro C++ compiler does not properly
5633     # handle `-M -o', and we need to detect this.
5634     if depmode=$depmode \
5635        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5636        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5637        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5638          >/dev/null 2>conftest.err &&
5639        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5640        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5641        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5642        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5643       # icc doesn't choke on unknown options, it will just issue warnings
5644       # or remarks (even with -Werror).  So we grep stderr for any message
5645       # that says an option was ignored or not supported.
5646       # When given -MP, icc 7.0 and 7.1 complain thusly:
5647       #   icc: Command line warning: ignoring option '-M'; no argument required
5648       # The diagnosis changed in icc 8.0:
5649       #   icc: Command line remark: option '-MP' not supported
5650       if (grep 'ignoring option' conftest.err ||
5651           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5652         am_cv_CC_dependencies_compiler_type=$depmode
5653         break
5654       fi
5655     fi
5656   done
5657
5658   cd ..
5659   rm -rf conftest.dir
5660 else
5661   am_cv_CC_dependencies_compiler_type=none
5662 fi
5663
5664 fi
5665 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5666 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5667 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5668
5669  if
5670   test "x$enable_dependency_tracking" != xno \
5671   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5672   am__fastdepCC_TRUE=
5673   am__fastdepCC_FALSE='#'
5674 else
5675   am__fastdepCC_TRUE='#'
5676   am__fastdepCC_FALSE=
5677 fi
5678
5679
5680 for ac_prog in 'bison -y' byacc
5681 do
5682   # Extract the first word of "$ac_prog", so it can be a program name with args.
5683 set dummy $ac_prog; ac_word=$2
5684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 $as_echo_n "checking for $ac_word... " >&6; }
5686 if test "${ac_cv_prog_YACC+set}" = set; then
5687   $as_echo_n "(cached) " >&6
5688 else
5689   if test -n "$YACC"; then
5690   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695   IFS=$as_save_IFS
5696   test -z "$as_dir" && as_dir=.
5697   for ac_exec_ext in '' $ac_executable_extensions; do
5698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5699     ac_cv_prog_YACC="$ac_prog"
5700     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701     break 2
5702   fi
5703 done
5704 done
5705 IFS=$as_save_IFS
5706
5707 fi
5708 fi
5709 YACC=$ac_cv_prog_YACC
5710 if test -n "$YACC"; then
5711   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
5712 $as_echo "$YACC" >&6; }
5713 else
5714   { $as_echo "$as_me:$LINENO: result: no" >&5
5715 $as_echo "no" >&6; }
5716 fi
5717
5718
5719   test -n "$YACC" && break
5720 done
5721 test -n "$YACC" || YACC="yacc"
5722
5723 for ac_prog in flex lex
5724 do
5725   # Extract the first word of "$ac_prog", so it can be a program name with args.
5726 set dummy $ac_prog; ac_word=$2
5727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if test "${ac_cv_prog_LEX+set}" = set; then
5730   $as_echo_n "(cached) " >&6
5731 else
5732   if test -n "$LEX"; then
5733   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740   for ac_exec_ext in '' $ac_executable_extensions; do
5741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742     ac_cv_prog_LEX="$ac_prog"
5743     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747 done
5748 IFS=$as_save_IFS
5749
5750 fi
5751 fi
5752 LEX=$ac_cv_prog_LEX
5753 if test -n "$LEX"; then
5754   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
5755 $as_echo "$LEX" >&6; }
5756 else
5757   { $as_echo "$as_me:$LINENO: result: no" >&5
5758 $as_echo "no" >&6; }
5759 fi
5760
5761
5762   test -n "$LEX" && break
5763 done
5764 test -n "$LEX" || LEX=":"
5765
5766 if test "x$LEX" != "x:"; then
5767   cat >conftest.l <<_ACEOF
5768 %%
5769 a { ECHO; }
5770 b { REJECT; }
5771 c { yymore (); }
5772 d { yyless (1); }
5773 e { yyless (input () != 0); }
5774 f { unput (yytext[0]); }
5775 . { BEGIN INITIAL; }
5776 %%
5777 #ifdef YYTEXT_POINTER
5778 extern char *yytext;
5779 #endif
5780 int
5781 main (void)
5782 {
5783   return ! yylex () + ! yywrap ();
5784 }
5785 _ACEOF
5786 { (ac_try="$LEX conftest.l"
5787 case "(($ac_try" in
5788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789   *) ac_try_echo=$ac_try;;
5790 esac
5791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5792 $as_echo "$ac_try_echo") >&5
5793   (eval "$LEX conftest.l") 2>&5
5794   ac_status=$?
5795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); }
5797 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
5798 $as_echo_n "checking lex output file root... " >&6; }
5799 if test "${ac_cv_prog_lex_root+set}" = set; then
5800   $as_echo_n "(cached) " >&6
5801 else
5802
5803 if test -f lex.yy.c; then
5804   ac_cv_prog_lex_root=lex.yy
5805 elif test -f lexyy.c; then
5806   ac_cv_prog_lex_root=lexyy
5807 else
5808   { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5809 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5810    { (exit 1); exit 1; }; }
5811 fi
5812 fi
5813 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5814 $as_echo "$ac_cv_prog_lex_root" >&6; }
5815 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5816
5817 if test -z "${LEXLIB+set}"; then
5818   { $as_echo "$as_me:$LINENO: checking lex library" >&5
5819 $as_echo_n "checking lex library... " >&6; }
5820 if test "${ac_cv_lib_lex+set}" = set; then
5821   $as_echo_n "(cached) " >&6
5822 else
5823
5824     ac_save_LIBS=$LIBS
5825     ac_cv_lib_lex='none needed'
5826     for ac_lib in '' -lfl -ll; do
5827       LIBS="$ac_lib $ac_save_LIBS"
5828       cat >conftest.$ac_ext <<_ACEOF
5829 `cat $LEX_OUTPUT_ROOT.c`
5830 _ACEOF
5831 rm -f conftest.$ac_objext conftest$ac_exeext
5832 if { (ac_try="$ac_link"
5833 case "(($ac_try" in
5834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835   *) ac_try_echo=$ac_try;;
5836 esac
5837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5838 $as_echo "$ac_try_echo") >&5
5839   (eval "$ac_link") 2>conftest.er1
5840   ac_status=$?
5841   grep -v '^ *+' conftest.er1 >conftest.err
5842   rm -f conftest.er1
5843   cat conftest.err >&5
5844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); } && {
5846          test -z "$ac_c_werror_flag" ||
5847          test ! -s conftest.err
5848        } && test -s conftest$ac_exeext && {
5849          test "$cross_compiling" = yes ||
5850          $as_test_x conftest$ac_exeext
5851        }; then
5852   ac_cv_lib_lex=$ac_lib
5853 else
5854   $as_echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857
5858 fi
5859
5860 rm -rf conftest.dSYM
5861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5862       conftest$ac_exeext conftest.$ac_ext
5863       test "$ac_cv_lib_lex" != 'none needed' && break
5864     done
5865     LIBS=$ac_save_LIBS
5866
5867 fi
5868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5869 $as_echo "$ac_cv_lib_lex" >&6; }
5870   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5871 fi
5872
5873
5874 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5875 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5876 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5877   $as_echo_n "(cached) " >&6
5878 else
5879   # POSIX says lex can declare yytext either as a pointer or an array; the
5880 # default is implementation-dependent.  Figure out which it is, since
5881 # not all implementations provide the %pointer and %array declarations.
5882 ac_cv_prog_lex_yytext_pointer=no
5883 ac_save_LIBS=$LIBS
5884 LIBS="$LEXLIB $ac_save_LIBS"
5885 cat >conftest.$ac_ext <<_ACEOF
5886 #define YYTEXT_POINTER 1
5887 `cat $LEX_OUTPUT_ROOT.c`
5888 _ACEOF
5889 rm -f conftest.$ac_objext conftest$ac_exeext
5890 if { (ac_try="$ac_link"
5891 case "(($ac_try" in
5892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893   *) ac_try_echo=$ac_try;;
5894 esac
5895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5896 $as_echo "$ac_try_echo") >&5
5897   (eval "$ac_link") 2>conftest.er1
5898   ac_status=$?
5899   grep -v '^ *+' conftest.er1 >conftest.err
5900   rm -f conftest.er1
5901   cat conftest.err >&5
5902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } && {
5904          test -z "$ac_c_werror_flag" ||
5905          test ! -s conftest.err
5906        } && test -s conftest$ac_exeext && {
5907          test "$cross_compiling" = yes ||
5908          $as_test_x conftest$ac_exeext
5909        }; then
5910   ac_cv_prog_lex_yytext_pointer=yes
5911 else
5912   $as_echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5914
5915
5916 fi
5917
5918 rm -rf conftest.dSYM
5919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5920       conftest$ac_exeext conftest.$ac_ext
5921 LIBS=$ac_save_LIBS
5922
5923 fi
5924 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5925 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5926 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5927
5928 cat >>confdefs.h <<\_ACEOF
5929 #define YYTEXT_POINTER 1
5930 _ACEOF
5931
5932 fi
5933 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5934
5935 fi
5936 if test "$LEX" = :; then
5937   LEX=${am_missing_run}flex
5938 fi
5939 # Find a good install program.  We prefer a C program (faster),
5940 # so one script is as good as another.  But avoid the broken or
5941 # incompatible versions:
5942 # SysV /etc/install, /usr/sbin/install
5943 # SunOS /usr/etc/install
5944 # IRIX /sbin/install
5945 # AIX /bin/install
5946 # AmigaOS /C/install, which installs bootblocks on floppy discs
5947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5950 # OS/2's system install, which has a completely different semantic
5951 # ./install, which can be erroneously created by make from ./install.sh.
5952 # Reject install programs that cannot install multiple files.
5953 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5954 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5955 if test -z "$INSTALL"; then
5956 if test "${ac_cv_path_install+set}" = set; then
5957   $as_echo_n "(cached) " >&6
5958 else
5959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962   IFS=$as_save_IFS
5963   test -z "$as_dir" && as_dir=.
5964   # Account for people who put trailing slashes in PATH elements.
5965 case $as_dir/ in
5966   ./ | .// | /cC/* | \
5967   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5968   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5969   /usr/ucb/* ) ;;
5970   *)
5971     # OSF1 and SCO ODT 3.0 have their own names for install.
5972     # Don't use installbsd from OSF since it installs stuff as root
5973     # by default.
5974     for ac_prog in ginstall scoinst install; do
5975       for ac_exec_ext in '' $ac_executable_extensions; do
5976         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5977           if test $ac_prog = install &&
5978             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5979             # AIX install.  It has an incompatible calling convention.
5980             :
5981           elif test $ac_prog = install &&
5982             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5983             # program-specific install script used by HP pwplus--don't use.
5984             :
5985           else
5986             rm -rf conftest.one conftest.two conftest.dir
5987             echo one > conftest.one
5988             echo two > conftest.two
5989             mkdir conftest.dir
5990             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5991               test -s conftest.one && test -s conftest.two &&
5992               test -s conftest.dir/conftest.one &&
5993               test -s conftest.dir/conftest.two
5994             then
5995               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5996               break 3
5997             fi
5998           fi
5999         fi
6000       done
6001     done
6002     ;;
6003 esac
6004
6005 done
6006 IFS=$as_save_IFS
6007
6008 rm -rf conftest.one conftest.two conftest.dir
6009
6010 fi
6011   if test "${ac_cv_path_install+set}" = set; then
6012     INSTALL=$ac_cv_path_install
6013   else
6014     # As a last resort, use the slow shell script.  Don't cache a
6015     # value for INSTALL within a source directory, because that will
6016     # break other packages using the cache if that directory is
6017     # removed, or if the value is a relative name.
6018     INSTALL=$ac_install_sh
6019   fi
6020 fi
6021 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6022 $as_echo "$INSTALL" >&6; }
6023
6024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6025 # It thinks the first close brace ends the variable substitution.
6026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6027
6028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6029
6030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6031
6032 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6033 $as_echo_n "checking whether ln -s works... " >&6; }
6034 LN_S=$as_ln_s
6035 if test "$LN_S" = "ln -s"; then
6036   { $as_echo "$as_me:$LINENO: result: yes" >&5
6037 $as_echo "yes" >&6; }
6038 else
6039   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6040 $as_echo "no, using $LN_S" >&6; }
6041 fi
6042
6043 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6044 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6045 set x ${MAKE-make}
6046 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6047 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6048   $as_echo_n "(cached) " >&6
6049 else
6050   cat >conftest.make <<\_ACEOF
6051 SHELL = /bin/sh
6052 all:
6053         @echo '@@@%%%=$(MAKE)=@@@%%%'
6054 _ACEOF
6055 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6056 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6057   *@@@%%%=?*=@@@%%%*)
6058     eval ac_cv_prog_make_${ac_make}_set=yes;;
6059   *)
6060     eval ac_cv_prog_make_${ac_make}_set=no;;
6061 esac
6062 rm -f conftest.make
6063 fi
6064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6065   { $as_echo "$as_me:$LINENO: result: yes" >&5
6066 $as_echo "yes" >&6; }
6067   SET_MAKE=
6068 else
6069   { $as_echo "$as_me:$LINENO: result: no" >&5
6070 $as_echo "no" >&6; }
6071   SET_MAKE="MAKE=${MAKE-make}"
6072 fi
6073
6074 case `pwd` in
6075   *\ * | *\     *)
6076     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6077 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6078 esac
6079
6080
6081
6082 macro_version='2.2.6'
6083 macro_revision='1.3012'
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097 ltmain="$ac_aux_dir/ltmain.sh"
6098
6099 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6100 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6101 if test "${ac_cv_path_SED+set}" = set; then
6102   $as_echo_n "(cached) " >&6
6103 else
6104             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6105      for ac_i in 1 2 3 4 5 6 7; do
6106        ac_script="$ac_script$as_nl$ac_script"
6107      done
6108      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6109      $as_unset ac_script || ac_script=
6110      if test -z "$SED"; then
6111   ac_path_SED_found=false
6112   # Loop through the user's path and test for each of PROGNAME-LIST
6113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116   IFS=$as_save_IFS
6117   test -z "$as_dir" && as_dir=.
6118   for ac_prog in sed gsed; do
6119     for ac_exec_ext in '' $ac_executable_extensions; do
6120       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6121       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6122 # Check for GNU ac_path_SED and select it if it is found.
6123   # Check for GNU $ac_path_SED
6124 case `"$ac_path_SED" --version 2>&1` in
6125 *GNU*)
6126   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6127 *)
6128   ac_count=0
6129   $as_echo_n 0123456789 >"conftest.in"
6130   while :
6131   do
6132     cat "conftest.in" "conftest.in" >"conftest.tmp"
6133     mv "conftest.tmp" "conftest.in"
6134     cp "conftest.in" "conftest.nl"
6135     $as_echo '' >> "conftest.nl"
6136     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6137     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6138     ac_count=`expr $ac_count + 1`
6139     if test $ac_count -gt ${ac_path_SED_max-0}; then
6140       # Best one so far, save it but keep looking for a better one
6141       ac_cv_path_SED="$ac_path_SED"
6142       ac_path_SED_max=$ac_count
6143     fi
6144     # 10*(2^10) chars as input seems more than enough
6145     test $ac_count -gt 10 && break
6146   done
6147   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6148 esac
6149
6150       $ac_path_SED_found && break 3
6151     done
6152   done
6153 done
6154 IFS=$as_save_IFS
6155   if test -z "$ac_cv_path_SED"; then
6156     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6157 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6158    { (exit 1); exit 1; }; }
6159   fi
6160 else
6161   ac_cv_path_SED=$SED
6162 fi
6163
6164 fi
6165 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6166 $as_echo "$ac_cv_path_SED" >&6; }
6167  SED="$ac_cv_path_SED"
6168   rm -f conftest.sed
6169
6170 test -z "$SED" && SED=sed
6171 Xsed="$SED -e 1s/^X//"
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6184 $as_echo_n "checking for fgrep... " >&6; }
6185 if test "${ac_cv_path_FGREP+set}" = set; then
6186   $as_echo_n "(cached) " >&6
6187 else
6188   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6189    then ac_cv_path_FGREP="$GREP -F"
6190    else
6191      if test -z "$FGREP"; then
6192   ac_path_FGREP_found=false
6193   # Loop through the user's path and test for each of PROGNAME-LIST
6194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199   for ac_prog in fgrep; do
6200     for ac_exec_ext in '' $ac_executable_extensions; do
6201       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6202       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6203 # Check for GNU ac_path_FGREP and select it if it is found.
6204   # Check for GNU $ac_path_FGREP
6205 case `"$ac_path_FGREP" --version 2>&1` in
6206 *GNU*)
6207   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6208 *)
6209   ac_count=0
6210   $as_echo_n 0123456789 >"conftest.in"
6211   while :
6212   do
6213     cat "conftest.in" "conftest.in" >"conftest.tmp"
6214     mv "conftest.tmp" "conftest.in"
6215     cp "conftest.in" "conftest.nl"
6216     $as_echo 'FGREP' >> "conftest.nl"
6217     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6219     ac_count=`expr $ac_count + 1`
6220     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6221       # Best one so far, save it but keep looking for a better one
6222       ac_cv_path_FGREP="$ac_path_FGREP"
6223       ac_path_FGREP_max=$ac_count
6224     fi
6225     # 10*(2^10) chars as input seems more than enough
6226     test $ac_count -gt 10 && break
6227   done
6228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6229 esac
6230
6231       $ac_path_FGREP_found && break 3
6232     done
6233   done
6234 done
6235 IFS=$as_save_IFS
6236   if test -z "$ac_cv_path_FGREP"; then
6237     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6238 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6239    { (exit 1); exit 1; }; }
6240   fi
6241 else
6242   ac_cv_path_FGREP=$FGREP
6243 fi
6244
6245    fi
6246 fi
6247 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6248 $as_echo "$ac_cv_path_FGREP" >&6; }
6249  FGREP="$ac_cv_path_FGREP"
6250
6251
6252 test -z "$GREP" && GREP=grep
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272 # Check whether --with-gnu-ld was given.
6273 if test "${with_gnu_ld+set}" = set; then
6274   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6275 else
6276   with_gnu_ld=no
6277 fi
6278
6279 ac_prog=ld
6280 if test "$GCC" = yes; then
6281   # Check if gcc -print-prog-name=ld gives a path.
6282   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6283 $as_echo_n "checking for ld used by $CC... " >&6; }
6284   case $host in
6285   *-*-mingw*)
6286     # gcc leaves a trailing carriage return which upsets mingw
6287     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6288   *)
6289     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6290   esac
6291   case $ac_prog in
6292     # Accept absolute paths.
6293     [\\/]* | ?:[\\/]*)
6294       re_direlt='/[^/][^/]*/\.\./'
6295       # Canonicalize the pathname of ld
6296       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6297       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6298         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6299       done
6300       test -z "$LD" && LD="$ac_prog"
6301       ;;
6302   "")
6303     # If it fails, then pretend we aren't using GCC.
6304     ac_prog=ld
6305     ;;
6306   *)
6307     # If it is relative, then search for the first ld in PATH.
6308     with_gnu_ld=unknown
6309     ;;
6310   esac
6311 elif test "$with_gnu_ld" = yes; then
6312   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6313 $as_echo_n "checking for GNU ld... " >&6; }
6314 else
6315   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6316 $as_echo_n "checking for non-GNU ld... " >&6; }
6317 fi
6318 if test "${lt_cv_path_LD+set}" = set; then
6319   $as_echo_n "(cached) " >&6
6320 else
6321   if test -z "$LD"; then
6322   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6323   for ac_dir in $PATH; do
6324     IFS="$lt_save_ifs"
6325     test -z "$ac_dir" && ac_dir=.
6326     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6327       lt_cv_path_LD="$ac_dir/$ac_prog"
6328       # Check to see if the program is GNU ld.  I'd rather use --version,
6329       # but apparently some variants of GNU ld only accept -v.
6330       # Break only if it was the GNU/non-GNU ld that we prefer.
6331       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6332       *GNU* | *'with BFD'*)
6333         test "$with_gnu_ld" != no && break
6334         ;;
6335       *)
6336         test "$with_gnu_ld" != yes && break
6337         ;;
6338       esac
6339     fi
6340   done
6341   IFS="$lt_save_ifs"
6342 else
6343   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6344 fi
6345 fi
6346
6347 LD="$lt_cv_path_LD"
6348 if test -n "$LD"; then
6349   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6350 $as_echo "$LD" >&6; }
6351 else
6352   { $as_echo "$as_me:$LINENO: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6356 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6357    { (exit 1); exit 1; }; }
6358 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6359 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6361   $as_echo_n "(cached) " >&6
6362 else
6363   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6364 case `$LD -v 2>&1 </dev/null` in
6365 *GNU* | *'with BFD'*)
6366   lt_cv_prog_gnu_ld=yes
6367   ;;
6368 *)
6369   lt_cv_prog_gnu_ld=no
6370   ;;
6371 esac
6372 fi
6373 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6374 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6375 with_gnu_ld=$lt_cv_prog_gnu_ld
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6386 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6387 if test "${lt_cv_path_NM+set}" = set; then
6388   $as_echo_n "(cached) " >&6
6389 else
6390   if test -n "$NM"; then
6391   # Let the user override the test.
6392   lt_cv_path_NM="$NM"
6393 else
6394   lt_nm_to_check="${ac_tool_prefix}nm"
6395   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6396     lt_nm_to_check="$lt_nm_to_check nm"
6397   fi
6398   for lt_tmp_nm in $lt_nm_to_check; do
6399     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6400     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6401       IFS="$lt_save_ifs"
6402       test -z "$ac_dir" && ac_dir=.
6403       tmp_nm="$ac_dir/$lt_tmp_nm"
6404       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6405         # Check to see if the nm accepts a BSD-compat flag.
6406         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6407         #   nm: unknown option "B" ignored
6408         # Tru64's nm complains that /dev/null is an invalid object file
6409         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6410         */dev/null* | *'Invalid file or object type'*)
6411           lt_cv_path_NM="$tmp_nm -B"
6412           break
6413           ;;
6414         *)
6415           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6416           */dev/null*)
6417             lt_cv_path_NM="$tmp_nm -p"
6418             break
6419             ;;
6420           *)
6421             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6422             continue # so that we can try to find one that supports BSD flags
6423             ;;
6424           esac
6425           ;;
6426         esac
6427       fi
6428     done
6429     IFS="$lt_save_ifs"
6430   done
6431   : ${lt_cv_path_NM=no}
6432 fi
6433 fi
6434 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6435 $as_echo "$lt_cv_path_NM" >&6; }
6436 if test "$lt_cv_path_NM" != "no"; then
6437   NM="$lt_cv_path_NM"
6438 else
6439   # Didn't find any BSD compatible name lister, look for dumpbin.
6440   if test -n "$ac_tool_prefix"; then
6441   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6442   do
6443     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6448   $as_echo_n "(cached) " >&6
6449 else
6450   if test -n "$DUMPBIN"; then
6451   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458   for ac_exec_ext in '' $ac_executable_extensions; do
6459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6461     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 DUMPBIN=$ac_cv_prog_DUMPBIN
6471 if test -n "$DUMPBIN"; then
6472   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6473 $as_echo "$DUMPBIN" >&6; }
6474 else
6475   { $as_echo "$as_me:$LINENO: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479
6480     test -n "$DUMPBIN" && break
6481   done
6482 fi
6483 if test -z "$DUMPBIN"; then
6484   ac_ct_DUMPBIN=$DUMPBIN
6485   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6486 do
6487   # Extract the first word of "$ac_prog", so it can be a program name with args.
6488 set dummy $ac_prog; ac_word=$2
6489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6492   $as_echo_n "(cached) " >&6
6493 else
6494   if test -n "$ac_ct_DUMPBIN"; then
6495   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502   for ac_exec_ext in '' $ac_executable_extensions; do
6503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6505     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6515 if test -n "$ac_ct_DUMPBIN"; then
6516   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6517 $as_echo "$ac_ct_DUMPBIN" >&6; }
6518 else
6519   { $as_echo "$as_me:$LINENO: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522
6523
6524   test -n "$ac_ct_DUMPBIN" && break
6525 done
6526
6527   if test "x$ac_ct_DUMPBIN" = x; then
6528     DUMPBIN=":"
6529   else
6530     case $cross_compiling:$ac_tool_warned in
6531 yes:)
6532 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534 ac_tool_warned=yes ;;
6535 esac
6536     DUMPBIN=$ac_ct_DUMPBIN
6537   fi
6538 fi
6539
6540
6541   if test "$DUMPBIN" != ":"; then
6542     NM="$DUMPBIN"
6543   fi
6544 fi
6545 test -z "$NM" && NM=nm
6546
6547
6548
6549
6550
6551
6552 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6553 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6554 if test "${lt_cv_nm_interface+set}" = set; then
6555   $as_echo_n "(cached) " >&6
6556 else
6557   lt_cv_nm_interface="BSD nm"
6558   echo "int some_variable = 0;" > conftest.$ac_ext
6559   (eval echo "\"\$as_me:6559: $ac_compile\"" >&5)
6560   (eval "$ac_compile" 2>conftest.err)
6561   cat conftest.err >&5
6562   (eval echo "\"\$as_me:6562: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6563   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6564   cat conftest.err >&5
6565   (eval echo "\"\$as_me:6565: output\"" >&5)
6566   cat conftest.out >&5
6567   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6568     lt_cv_nm_interface="MS dumpbin"
6569   fi
6570   rm -f conftest*
6571 fi
6572 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6573 $as_echo "$lt_cv_nm_interface" >&6; }
6574
6575 # find the maximum length of command line arguments
6576 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6577 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6578 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6579   $as_echo_n "(cached) " >&6
6580 else
6581     i=0
6582   teststring="ABCD"
6583
6584   case $build_os in
6585   msdosdjgpp*)
6586     # On DJGPP, this test can blow up pretty badly due to problems in libc
6587     # (any single argument exceeding 2000 bytes causes a buffer overrun
6588     # during glob expansion).  Even if it were fixed, the result of this
6589     # check would be larger than it should be.
6590     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6591     ;;
6592
6593   gnu*)
6594     # Under GNU Hurd, this test is not required because there is
6595     # no limit to the length of command line arguments.
6596     # Libtool will interpret -1 as no limit whatsoever
6597     lt_cv_sys_max_cmd_len=-1;
6598     ;;
6599
6600   cygwin* | mingw* | cegcc*)
6601     # On Win9x/ME, this test blows up -- it succeeds, but takes
6602     # about 5 minutes as the teststring grows exponentially.
6603     # Worse, since 9x/ME are not pre-emptively multitasking,
6604     # you end up with a "frozen" computer, even though with patience
6605     # the test eventually succeeds (with a max line length of 256k).
6606     # Instead, let's just punt: use the minimum linelength reported by
6607     # all of the supported platforms: 8192 (on NT/2K/XP).
6608     lt_cv_sys_max_cmd_len=8192;
6609     ;;
6610
6611   amigaos*)
6612     # On AmigaOS with pdksh, this test takes hours, literally.
6613     # So we just punt and use a minimum line length of 8192.
6614     lt_cv_sys_max_cmd_len=8192;
6615     ;;
6616
6617   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6618     # This has been around since 386BSD, at least.  Likely further.
6619     if test -x /sbin/sysctl; then
6620       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6621     elif test -x /usr/sbin/sysctl; then
6622       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6623     else
6624       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6625     fi
6626     # And add a safety zone
6627     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6628     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6629     ;;
6630
6631   interix*)
6632     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6633     lt_cv_sys_max_cmd_len=196608
6634     ;;
6635
6636   osf*)
6637     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6638     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6639     # nice to cause kernel panics so lets avoid the loop below.
6640     # First set a reasonable default.
6641     lt_cv_sys_max_cmd_len=16384
6642     #
6643     if test -x /sbin/sysconfig; then
6644       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6645         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6646       esac
6647     fi
6648     ;;
6649   sco3.2v5*)
6650     lt_cv_sys_max_cmd_len=102400
6651     ;;
6652   sysv5* | sco5v6* | sysv4.2uw2*)
6653     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6654     if test -n "$kargmax"; then
6655       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6656     else
6657       lt_cv_sys_max_cmd_len=32768
6658     fi
6659     ;;
6660   *)
6661     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6662     if test -n "$lt_cv_sys_max_cmd_len"; then
6663       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6664       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6665     else
6666       # Make teststring a little bigger before we do anything with it.
6667       # a 1K string should be a reasonable start.
6668       for i in 1 2 3 4 5 6 7 8 ; do
6669         teststring=$teststring$teststring
6670       done
6671       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6672       # If test is not a shell built-in, we'll probably end up computing a
6673       # maximum length that is only half of the actual maximum length, but
6674       # we can't tell.
6675       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6676                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6677               test $i != 17 # 1/2 MB should be enough
6678       do
6679         i=`expr $i + 1`
6680         teststring=$teststring$teststring
6681       done
6682       # Only check the string length outside the loop.
6683       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6684       teststring=
6685       # Add a significant safety factor because C++ compilers can tack on
6686       # massive amounts of additional arguments before passing them to the
6687       # linker.  It appears as though 1/2 is a usable value.
6688       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6689     fi
6690     ;;
6691   esac
6692
6693 fi
6694
6695 if test -n $lt_cv_sys_max_cmd_len ; then
6696   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6697 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6698 else
6699   { $as_echo "$as_me:$LINENO: result: none" >&5
6700 $as_echo "none" >&6; }
6701 fi
6702 max_cmd_len=$lt_cv_sys_max_cmd_len
6703
6704
6705
6706
6707
6708
6709 : ${CP="cp -f"}
6710 : ${MV="mv -f"}
6711 : ${RM="rm -f"}
6712
6713 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6714 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6715 # Try some XSI features
6716 xsi_shell=no
6717 ( _lt_dummy="a/b/c"
6718   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6719       = c,a/b,, \
6720     && eval 'test $(( 1 + 1 )) -eq 2 \
6721     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6722   && xsi_shell=yes
6723 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6724 $as_echo "$xsi_shell" >&6; }
6725
6726
6727 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6728 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6729 lt_shell_append=no
6730 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6731     >/dev/null 2>&1 \
6732   && lt_shell_append=yes
6733 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6734 $as_echo "$lt_shell_append" >&6; }
6735
6736
6737 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6738   lt_unset=unset
6739 else
6740   lt_unset=false
6741 fi
6742
6743
6744
6745
6746
6747 # test EBCDIC or ASCII
6748 case `echo X|tr X '\101'` in
6749  A) # ASCII based system
6750     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6751   lt_SP2NL='tr \040 \012'
6752   lt_NL2SP='tr \015\012 \040\040'
6753   ;;
6754  *) # EBCDIC based system
6755   lt_SP2NL='tr \100 \n'
6756   lt_NL2SP='tr \r\n \100\100'
6757   ;;
6758 esac
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6769 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6770 if test "${lt_cv_ld_reload_flag+set}" = set; then
6771   $as_echo_n "(cached) " >&6
6772 else
6773   lt_cv_ld_reload_flag='-r'
6774 fi
6775 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6776 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6777 reload_flag=$lt_cv_ld_reload_flag
6778 case $reload_flag in
6779 "" | " "*) ;;
6780 *) reload_flag=" $reload_flag" ;;
6781 esac
6782 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6783 case $host_os in
6784   darwin*)
6785     if test "$GCC" = yes; then
6786       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6787     else
6788       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6789     fi
6790     ;;
6791 esac
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801 if test -n "$ac_tool_prefix"; then
6802   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6803 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6807   $as_echo_n "(cached) " >&6
6808 else
6809   if test -n "$OBJDUMP"; then
6810   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815   IFS=$as_save_IFS
6816   test -z "$as_dir" && as_dir=.
6817   for ac_exec_ext in '' $ac_executable_extensions; do
6818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6820     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821     break 2
6822   fi
6823 done
6824 done
6825 IFS=$as_save_IFS
6826
6827 fi
6828 fi
6829 OBJDUMP=$ac_cv_prog_OBJDUMP
6830 if test -n "$OBJDUMP"; then
6831   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6832 $as_echo "$OBJDUMP" >&6; }
6833 else
6834   { $as_echo "$as_me:$LINENO: result: no" >&5
6835 $as_echo "no" >&6; }
6836 fi
6837
6838
6839 fi
6840 if test -z "$ac_cv_prog_OBJDUMP"; then
6841   ac_ct_OBJDUMP=$OBJDUMP
6842   # Extract the first word of "objdump", so it can be a program name with args.
6843 set dummy objdump; ac_word=$2
6844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6847   $as_echo_n "(cached) " >&6
6848 else
6849   if test -n "$ac_ct_OBJDUMP"; then
6850   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6851 else
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6854 do
6855   IFS=$as_save_IFS
6856   test -z "$as_dir" && as_dir=.
6857   for ac_exec_ext in '' $ac_executable_extensions; do
6858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6859     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6860     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861     break 2
6862   fi
6863 done
6864 done
6865 IFS=$as_save_IFS
6866
6867 fi
6868 fi
6869 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6870 if test -n "$ac_ct_OBJDUMP"; then
6871   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6872 $as_echo "$ac_ct_OBJDUMP" >&6; }
6873 else
6874   { $as_echo "$as_me:$LINENO: result: no" >&5
6875 $as_echo "no" >&6; }
6876 fi
6877
6878   if test "x$ac_ct_OBJDUMP" = x; then
6879     OBJDUMP="false"
6880   else
6881     case $cross_compiling:$ac_tool_warned in
6882 yes:)
6883 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6885 ac_tool_warned=yes ;;
6886 esac
6887     OBJDUMP=$ac_ct_OBJDUMP
6888   fi
6889 else
6890   OBJDUMP="$ac_cv_prog_OBJDUMP"
6891 fi
6892
6893 test -z "$OBJDUMP" && OBJDUMP=objdump
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6904 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6905 if test "${lt_cv_deplibs_check_method+set}" = set; then
6906   $as_echo_n "(cached) " >&6
6907 else
6908   lt_cv_file_magic_cmd='$MAGIC_CMD'
6909 lt_cv_file_magic_test_file=
6910 lt_cv_deplibs_check_method='unknown'
6911 # Need to set the preceding variable on all platforms that support
6912 # interlibrary dependencies.
6913 # 'none' -- dependencies not supported.
6914 # `unknown' -- same as none, but documents that we really don't know.
6915 # 'pass_all' -- all dependencies passed with no checks.
6916 # 'test_compile' -- check by making test program.
6917 # 'file_magic [[regex]]' -- check by looking for files in library path
6918 # which responds to the $file_magic_cmd with a given extended regex.
6919 # If you have `file' or equivalent on your system and you're not sure
6920 # whether `pass_all' will *always* work, you probably want this one.
6921
6922 case $host_os in
6923 aix[4-9]*)
6924   lt_cv_deplibs_check_method=pass_all
6925   ;;
6926
6927 beos*)
6928   lt_cv_deplibs_check_method=pass_all
6929   ;;
6930
6931 bsdi[45]*)
6932   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6933   lt_cv_file_magic_cmd='/usr/bin/file -L'
6934   lt_cv_file_magic_test_file=/shlib/libc.so
6935   ;;
6936
6937 cygwin*)
6938   # func_win32_libid is a shell function defined in ltmain.sh
6939   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6940   lt_cv_file_magic_cmd='func_win32_libid'
6941   ;;
6942
6943 mingw* | pw32*)
6944   # Base MSYS/MinGW do not provide the 'file' command needed by
6945   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6946   # unless we find 'file', for example because we are cross-compiling.
6947   if ( file / ) >/dev/null 2>&1; then
6948     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6949     lt_cv_file_magic_cmd='func_win32_libid'
6950   else
6951     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6952     lt_cv_file_magic_cmd='$OBJDUMP -f'
6953   fi
6954   ;;
6955
6956 cegcc)
6957   # use the weaker test based on 'objdump'. See mingw*.
6958   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6959   lt_cv_file_magic_cmd='$OBJDUMP -f'
6960   ;;
6961
6962 darwin* | rhapsody*)
6963   lt_cv_deplibs_check_method=pass_all
6964   ;;
6965
6966 freebsd* | dragonfly*)
6967   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6968     case $host_cpu in
6969     i*86 )
6970       # Not sure whether the presence of OpenBSD here was a mistake.
6971       # Let's accept both of them until this is cleared up.
6972       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6973       lt_cv_file_magic_cmd=/usr/bin/file
6974       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6975       ;;
6976     esac
6977   else
6978     lt_cv_deplibs_check_method=pass_all
6979   fi
6980   ;;
6981
6982 gnu*)
6983   lt_cv_deplibs_check_method=pass_all
6984   ;;
6985
6986 hpux10.20* | hpux11*)
6987   lt_cv_file_magic_cmd=/usr/bin/file
6988   case $host_cpu in
6989   ia64*)
6990     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6991     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6992     ;;
6993   hppa*64*)
6994     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6995     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6996     ;;
6997   *)
6998     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6999     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7000     ;;
7001   esac
7002   ;;
7003
7004 interix[3-9]*)
7005   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7006   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7007   ;;
7008
7009 irix5* | irix6* | nonstopux*)
7010   case $LD in
7011   *-32|*"-32 ") libmagic=32-bit;;
7012   *-n32|*"-n32 ") libmagic=N32;;
7013   *-64|*"-64 ") libmagic=64-bit;;
7014   *) libmagic=never-match;;
7015   esac
7016   lt_cv_deplibs_check_method=pass_all
7017   ;;
7018
7019 # This must be Linux ELF.
7020 linux* | k*bsd*-gnu)
7021   lt_cv_deplibs_check_method=pass_all
7022   ;;
7023
7024 netbsd*)
7025   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7026     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7027   else
7028     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7029   fi
7030   ;;
7031
7032 newos6*)
7033   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7034   lt_cv_file_magic_cmd=/usr/bin/file
7035   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7036   ;;
7037
7038 *nto* | *qnx*)
7039   lt_cv_deplibs_check_method=pass_all
7040   ;;
7041
7042 openbsd*)
7043   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7044     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7045   else
7046     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7047   fi
7048   ;;
7049
7050 osf3* | osf4* | osf5*)
7051   lt_cv_deplibs_check_method=pass_all
7052   ;;
7053
7054 rdos*)
7055   lt_cv_deplibs_check_method=pass_all
7056   ;;
7057
7058 solaris*)
7059   lt_cv_deplibs_check_method=pass_all
7060   ;;
7061
7062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7063   lt_cv_deplibs_check_method=pass_all
7064   ;;
7065
7066 sysv4 | sysv4.3*)
7067   case $host_vendor in
7068   motorola)
7069     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]'
7070     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7071     ;;
7072   ncr)
7073     lt_cv_deplibs_check_method=pass_all
7074     ;;
7075   sequent)
7076     lt_cv_file_magic_cmd='/bin/file'
7077     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7078     ;;
7079   sni)
7080     lt_cv_file_magic_cmd='/bin/file'
7081     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7082     lt_cv_file_magic_test_file=/lib/libc.so
7083     ;;
7084   siemens)
7085     lt_cv_deplibs_check_method=pass_all
7086     ;;
7087   pc)
7088     lt_cv_deplibs_check_method=pass_all
7089     ;;
7090   esac
7091   ;;
7092
7093 tpf*)
7094   lt_cv_deplibs_check_method=pass_all
7095   ;;
7096 esac
7097
7098 fi
7099 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7100 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7101 file_magic_cmd=$lt_cv_file_magic_cmd
7102 deplibs_check_method=$lt_cv_deplibs_check_method
7103 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116 if test -n "$ac_tool_prefix"; then
7117   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ar; ac_word=$2
7119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_AR+set}" = set; then
7122   $as_echo_n "(cached) " >&6
7123 else
7124   if test -n "$AR"; then
7125   ac_cv_prog_AR="$AR" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132   for ac_exec_ext in '' $ac_executable_extensions; do
7133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134     ac_cv_prog_AR="${ac_tool_prefix}ar"
7135     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 AR=$ac_cv_prog_AR
7145 if test -n "$AR"; then
7146   { $as_echo "$as_me:$LINENO: result: $AR" >&5
7147 $as_echo "$AR" >&6; }
7148 else
7149   { $as_echo "$as_me:$LINENO: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153
7154 fi
7155 if test -z "$ac_cv_prog_AR"; then
7156   ac_ct_AR=$AR
7157   # Extract the first word of "ar", so it can be a program name with args.
7158 set dummy ar; ac_word=$2
7159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7162   $as_echo_n "(cached) " >&6
7163 else
7164   if test -n "$ac_ct_AR"; then
7165   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172   for ac_exec_ext in '' $ac_executable_extensions; do
7173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174     ac_cv_prog_ac_ct_AR="ar"
7175     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7185 if test -n "$ac_ct_AR"; then
7186   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7187 $as_echo "$ac_ct_AR" >&6; }
7188 else
7189   { $as_echo "$as_me:$LINENO: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193   if test "x$ac_ct_AR" = x; then
7194     AR="false"
7195   else
7196     case $cross_compiling:$ac_tool_warned in
7197 yes:)
7198 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned=yes ;;
7201 esac
7202     AR=$ac_ct_AR
7203   fi
7204 else
7205   AR="$ac_cv_prog_AR"
7206 fi
7207
7208 test -z "$AR" && AR=ar
7209 test -z "$AR_FLAGS" && AR_FLAGS=cru
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221 if test -n "$ac_tool_prefix"; then
7222   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}strip; ac_word=$2
7224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if test "${ac_cv_prog_STRIP+set}" = set; then
7227   $as_echo_n "(cached) " >&6
7228 else
7229   if test -n "$STRIP"; then
7230   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237   for ac_exec_ext in '' $ac_executable_extensions; do
7238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7240     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244 done
7245 IFS=$as_save_IFS
7246
7247 fi
7248 fi
7249 STRIP=$ac_cv_prog_STRIP
7250 if test -n "$STRIP"; then
7251   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7252 $as_echo "$STRIP" >&6; }
7253 else
7254   { $as_echo "$as_me:$LINENO: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258
7259 fi
7260 if test -z "$ac_cv_prog_STRIP"; then
7261   ac_ct_STRIP=$STRIP
7262   # Extract the first word of "strip", so it can be a program name with args.
7263 set dummy strip; ac_word=$2
7264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7267   $as_echo_n "(cached) " >&6
7268 else
7269   if test -n "$ac_ct_STRIP"; then
7270   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277   for ac_exec_ext in '' $ac_executable_extensions; do
7278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7279     ac_cv_prog_ac_ct_STRIP="strip"
7280     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287 fi
7288 fi
7289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7290 if test -n "$ac_ct_STRIP"; then
7291   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7292 $as_echo "$ac_ct_STRIP" >&6; }
7293 else
7294   { $as_echo "$as_me:$LINENO: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7297
7298   if test "x$ac_ct_STRIP" = x; then
7299     STRIP=":"
7300   else
7301     case $cross_compiling:$ac_tool_warned in
7302 yes:)
7303 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7306 esac
7307     STRIP=$ac_ct_STRIP
7308   fi
7309 else
7310   STRIP="$ac_cv_prog_STRIP"
7311 fi
7312
7313 test -z "$STRIP" && STRIP=:
7314
7315
7316
7317
7318
7319
7320 if test -n "$ac_tool_prefix"; then
7321   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7322 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if test "${ac_cv_prog_RANLIB+set}" = set; then
7326   $as_echo_n "(cached) " >&6
7327 else
7328   if test -n "$RANLIB"; then
7329   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336   for ac_exec_ext in '' $ac_executable_extensions; do
7337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7339     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 RANLIB=$ac_cv_prog_RANLIB
7349 if test -n "$RANLIB"; then
7350   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7351 $as_echo "$RANLIB" >&6; }
7352 else
7353   { $as_echo "$as_me:$LINENO: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357
7358 fi
7359 if test -z "$ac_cv_prog_RANLIB"; then
7360   ac_ct_RANLIB=$RANLIB
7361   # Extract the first word of "ranlib", so it can be a program name with args.
7362 set dummy ranlib; ac_word=$2
7363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7366   $as_echo_n "(cached) " >&6
7367 else
7368   if test -n "$ac_ct_RANLIB"; then
7369   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376   for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_prog_ac_ct_RANLIB="ranlib"
7379     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383 done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7389 if test -n "$ac_ct_RANLIB"; then
7390   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7391 $as_echo "$ac_ct_RANLIB" >&6; }
7392 else
7393   { $as_echo "$as_me:$LINENO: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397   if test "x$ac_ct_RANLIB" = x; then
7398     RANLIB=":"
7399   else
7400     case $cross_compiling:$ac_tool_warned in
7401 yes:)
7402 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7404 ac_tool_warned=yes ;;
7405 esac
7406     RANLIB=$ac_ct_RANLIB
7407   fi
7408 else
7409   RANLIB="$ac_cv_prog_RANLIB"
7410 fi
7411
7412 test -z "$RANLIB" && RANLIB=:
7413
7414
7415
7416
7417
7418
7419 # Determine commands to create old-style static archives.
7420 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7421 old_postinstall_cmds='chmod 644 $oldlib'
7422 old_postuninstall_cmds=
7423
7424 if test -n "$RANLIB"; then
7425   case $host_os in
7426   openbsd*)
7427     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7428     ;;
7429   *)
7430     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7431     ;;
7432   esac
7433   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7434 fi
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469 # If no C compiler was specified, use CC.
7470 LTCC=${LTCC-"$CC"}
7471
7472 # If no C compiler flags were specified, use CFLAGS.
7473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7474
7475 # Allow CC to be a program name with arguments.
7476 compiler=$CC
7477
7478
7479 # Check for command to grab the raw symbol name followed by C symbol from nm.
7480 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7481 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7482 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7483   $as_echo_n "(cached) " >&6
7484 else
7485
7486 # These are sane defaults that work on at least a few old systems.
7487 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7488
7489 # Character class describing NM global symbol codes.
7490 symcode='[BCDEGRST]'
7491
7492 # Regexp to match symbols that can be accessed directly from C.
7493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7494
7495 # Define system-specific variables.
7496 case $host_os in
7497 aix*)
7498   symcode='[BCDT]'
7499   ;;
7500 cygwin* | mingw* | pw32* | cegcc*)
7501   symcode='[ABCDGISTW]'
7502   ;;
7503 hpux*)
7504   if test "$host_cpu" = ia64; then
7505     symcode='[ABCDEGRST]'
7506   fi
7507   ;;
7508 irix* | nonstopux*)
7509   symcode='[BCDEGRST]'
7510   ;;
7511 osf*)
7512   symcode='[BCDEGQRST]'
7513   ;;
7514 solaris*)
7515   symcode='[BDRT]'
7516   ;;
7517 sco3.2v5*)
7518   symcode='[DT]'
7519   ;;
7520 sysv4.2uw2*)
7521   symcode='[DT]'
7522   ;;
7523 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7524   symcode='[ABDT]'
7525   ;;
7526 sysv4)
7527   symcode='[DFNSTU]'
7528   ;;
7529 esac
7530
7531 # If we're using GNU nm, then use its standard symbol codes.
7532 case `$NM -V 2>&1` in
7533 *GNU* | *'with BFD'*)
7534   symcode='[ABCDGIRSTW]' ;;
7535 esac
7536
7537 # Transform an extracted symbol line into a proper C declaration.
7538 # Some systems (esp. on ia64) link data and code symbols differently,
7539 # so use this general approach.
7540 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7541
7542 # Transform an extracted symbol line into symbol name and symbol address
7543 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7544 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'"
7545
7546 # Handle CRLF in mingw tool chain
7547 opt_cr=
7548 case $build_os in
7549 mingw*)
7550   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7551   ;;
7552 esac
7553
7554 # Try without a prefix underscore, then with it.
7555 for ac_symprfx in "" "_"; do
7556
7557   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7558   symxfrm="\\1 $ac_symprfx\\2 \\2"
7559
7560   # Write the raw and C identifiers.
7561   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7562     # Fake it for dumpbin and say T for any non-static function
7563     # and D for any global variable.
7564     # Also find C++ and __fastcall symbols from MSVC++,
7565     # which start with @ or ?.
7566     lt_cv_sys_global_symbol_pipe="$AWK '"\
7567 "     {last_section=section; section=\$ 3};"\
7568 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7569 "     \$ 0!~/External *\|/{next};"\
7570 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7571 "     {if(hide[section]) next};"\
7572 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7573 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7574 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7575 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7576 "     ' prfx=^$ac_symprfx"
7577   else
7578     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7579   fi
7580
7581   # Check to see that the pipe works correctly.
7582   pipe_works=no
7583
7584   rm -f conftest*
7585   cat > conftest.$ac_ext <<_LT_EOF
7586 #ifdef __cplusplus
7587 extern "C" {
7588 #endif
7589 char nm_test_var;
7590 void nm_test_func(void);
7591 void nm_test_func(void){}
7592 #ifdef __cplusplus
7593 }
7594 #endif
7595 int main(){nm_test_var='a';nm_test_func();return(0);}
7596 _LT_EOF
7597
7598   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599   (eval $ac_compile) 2>&5
7600   ac_status=$?
7601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); }; then
7603     # Now try to grab the symbols.
7604     nlist=conftest.nm
7605     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7606   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7607   ac_status=$?
7608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); } && test -s "$nlist"; then
7610       # Try sorting and uniquifying the output.
7611       if sort "$nlist" | uniq > "$nlist"T; then
7612         mv -f "$nlist"T "$nlist"
7613       else
7614         rm -f "$nlist"T
7615       fi
7616
7617       # Make sure that we snagged all the symbols we need.
7618       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7619         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7620           cat <<_LT_EOF > conftest.$ac_ext
7621 #ifdef __cplusplus
7622 extern "C" {
7623 #endif
7624
7625 _LT_EOF
7626           # Now generate the symbol file.
7627           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7628
7629           cat <<_LT_EOF >> conftest.$ac_ext
7630
7631 /* The mapping between symbol names and symbols.  */
7632 const struct {
7633   const char *name;
7634   void       *address;
7635 }
7636 lt__PROGRAM__LTX_preloaded_symbols[] =
7637 {
7638   { "@PROGRAM@", (void *) 0 },
7639 _LT_EOF
7640           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7641           cat <<\_LT_EOF >> conftest.$ac_ext
7642   {0, (void *) 0}
7643 };
7644
7645 /* This works around a problem in FreeBSD linker */
7646 #ifdef FREEBSD_WORKAROUND
7647 static const void *lt_preloaded_setup() {
7648   return lt__PROGRAM__LTX_preloaded_symbols;
7649 }
7650 #endif
7651
7652 #ifdef __cplusplus
7653 }
7654 #endif
7655 _LT_EOF
7656           # Now try linking the two files.
7657           mv conftest.$ac_objext conftstm.$ac_objext
7658           lt_save_LIBS="$LIBS"
7659           lt_save_CFLAGS="$CFLAGS"
7660           LIBS="conftstm.$ac_objext"
7661           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7662           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663   (eval $ac_link) 2>&5
7664   ac_status=$?
7665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7667             pipe_works=yes
7668           fi
7669           LIBS="$lt_save_LIBS"
7670           CFLAGS="$lt_save_CFLAGS"
7671         else
7672           echo "cannot find nm_test_func in $nlist" >&5
7673         fi
7674       else
7675         echo "cannot find nm_test_var in $nlist" >&5
7676       fi
7677     else
7678       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7679     fi
7680   else
7681     echo "$progname: failed program was:" >&5
7682     cat conftest.$ac_ext >&5
7683   fi
7684   rm -rf conftest* conftst*
7685
7686   # Do not use the global_symbol_pipe unless it works.
7687   if test "$pipe_works" = yes; then
7688     break
7689   else
7690     lt_cv_sys_global_symbol_pipe=
7691   fi
7692 done
7693
7694 fi
7695
7696 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7697   lt_cv_sys_global_symbol_to_cdecl=
7698 fi
7699 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7700   { $as_echo "$as_me:$LINENO: result: failed" >&5
7701 $as_echo "failed" >&6; }
7702 else
7703   { $as_echo "$as_me:$LINENO: result: ok" >&5
7704 $as_echo "ok" >&6; }
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728 # Check whether --enable-libtool-lock was given.
7729 if test "${enable_libtool_lock+set}" = set; then
7730   enableval=$enable_libtool_lock;
7731 fi
7732
7733 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7734
7735 # Some flags need to be propagated to the compiler or linker for good
7736 # libtool support.
7737 case $host in
7738 ia64-*-hpux*)
7739   # Find out which ABI we are using.
7740   echo 'int i;' > conftest.$ac_ext
7741   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742   (eval $ac_compile) 2>&5
7743   ac_status=$?
7744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; then
7746     case `/usr/bin/file conftest.$ac_objext` in
7747       *ELF-32*)
7748         HPUX_IA64_MODE="32"
7749         ;;
7750       *ELF-64*)
7751         HPUX_IA64_MODE="64"
7752         ;;
7753     esac
7754   fi
7755   rm -rf conftest*
7756   ;;
7757 *-*-irix6*)
7758   # Find out which ABI we are using.
7759   echo '#line 7759 "configure"' > conftest.$ac_ext
7760   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761   (eval $ac_compile) 2>&5
7762   ac_status=$?
7763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); }; then
7765     if test "$lt_cv_prog_gnu_ld" = yes; then
7766       case `/usr/bin/file conftest.$ac_objext` in
7767         *32-bit*)
7768           LD="${LD-ld} -melf32bsmip"
7769           ;;
7770         *N32*)
7771           LD="${LD-ld} -melf32bmipn32"
7772           ;;
7773         *64-bit*)
7774           LD="${LD-ld} -melf64bmip"
7775         ;;
7776       esac
7777     else
7778       case `/usr/bin/file conftest.$ac_objext` in
7779         *32-bit*)
7780           LD="${LD-ld} -32"
7781           ;;
7782         *N32*)
7783           LD="${LD-ld} -n32"
7784           ;;
7785         *64-bit*)
7786           LD="${LD-ld} -64"
7787           ;;
7788       esac
7789     fi
7790   fi
7791   rm -rf conftest*
7792   ;;
7793
7794 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7795 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7796   # Find out which ABI we are using.
7797   echo 'int i;' > conftest.$ac_ext
7798   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7799   (eval $ac_compile) 2>&5
7800   ac_status=$?
7801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); }; then
7803     case `/usr/bin/file conftest.o` in
7804       *32-bit*)
7805         case $host in
7806           x86_64-*kfreebsd*-gnu)
7807             LD="${LD-ld} -m elf_i386_fbsd"
7808             ;;
7809           x86_64-*linux*)
7810             LD="${LD-ld} -m elf_i386"
7811             ;;
7812           ppc64-*linux*|powerpc64-*linux*)
7813             LD="${LD-ld} -m elf32ppclinux"
7814             ;;
7815           s390x-*linux*)
7816             LD="${LD-ld} -m elf_s390"
7817             ;;
7818           sparc64-*linux*)
7819             LD="${LD-ld} -m elf32_sparc"
7820             ;;
7821         esac
7822         ;;
7823       *64-bit*)
7824         case $host in
7825           x86_64-*kfreebsd*-gnu)
7826             LD="${LD-ld} -m elf_x86_64_fbsd"
7827             ;;
7828           x86_64-*linux*)
7829             LD="${LD-ld} -m elf_x86_64"
7830             ;;
7831           ppc*-*linux*|powerpc*-*linux*)
7832             LD="${LD-ld} -m elf64ppc"
7833             ;;
7834           s390*-*linux*|s390*-*tpf*)
7835             LD="${LD-ld} -m elf64_s390"
7836             ;;
7837           sparc*-*linux*)
7838             LD="${LD-ld} -m elf64_sparc"
7839             ;;
7840         esac
7841         ;;
7842     esac
7843   fi
7844   rm -rf conftest*
7845   ;;
7846
7847 *-*-sco3.2v5*)
7848   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7849   SAVE_CFLAGS="$CFLAGS"
7850   CFLAGS="$CFLAGS -belf"
7851   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7852 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7853 if test "${lt_cv_cc_needs_belf+set}" = set; then
7854   $as_echo_n "(cached) " >&6
7855 else
7856   ac_ext=c
7857 ac_cpp='$CPP $CPPFLAGS'
7858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7861
7862      cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h.  */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h.  */
7868
7869 int
7870 main ()
7871 {
7872
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext conftest$ac_exeext
7878 if { (ac_try="$ac_link"
7879 case "(($ac_try" in
7880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881   *) ac_try_echo=$ac_try;;
7882 esac
7883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7884 $as_echo "$ac_try_echo") >&5
7885   (eval "$ac_link") 2>conftest.er1
7886   ac_status=$?
7887   grep -v '^ *+' conftest.er1 >conftest.err
7888   rm -f conftest.er1
7889   cat conftest.err >&5
7890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); } && {
7892          test -z "$ac_c_werror_flag" ||
7893          test ! -s conftest.err
7894        } && test -s conftest$ac_exeext && {
7895          test "$cross_compiling" = yes ||
7896          $as_test_x conftest$ac_exeext
7897        }; then
7898   lt_cv_cc_needs_belf=yes
7899 else
7900   $as_echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7902
7903         lt_cv_cc_needs_belf=no
7904 fi
7905
7906 rm -rf conftest.dSYM
7907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7908       conftest$ac_exeext conftest.$ac_ext
7909      ac_ext=c
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7914
7915 fi
7916 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7917 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7918   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7919     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7920     CFLAGS="$SAVE_CFLAGS"
7921   fi
7922   ;;
7923 sparc*-*solaris*)
7924   # Find out which ABI we are using.
7925   echo 'int i;' > conftest.$ac_ext
7926   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7927   (eval $ac_compile) 2>&5
7928   ac_status=$?
7929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; then
7931     case `/usr/bin/file conftest.o` in
7932     *64-bit*)
7933       case $lt_cv_prog_gnu_ld in
7934       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7935       *)
7936         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7937           LD="${LD-ld} -64"
7938         fi
7939         ;;
7940       esac
7941       ;;
7942     esac
7943   fi
7944   rm -rf conftest*
7945   ;;
7946 esac
7947
7948 need_locks="$enable_libtool_lock"
7949
7950
7951   case $host_os in
7952     rhapsody* | darwin*)
7953     if test -n "$ac_tool_prefix"; then
7954   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7959   $as_echo_n "(cached) " >&6
7960 else
7961   if test -n "$DSYMUTIL"; then
7962   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967   IFS=$as_save_IFS
7968   test -z "$as_dir" && as_dir=.
7969   for ac_exec_ext in '' $ac_executable_extensions; do
7970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7972     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973     break 2
7974   fi
7975 done
7976 done
7977 IFS=$as_save_IFS
7978
7979 fi
7980 fi
7981 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7982 if test -n "$DSYMUTIL"; then
7983   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7984 $as_echo "$DSYMUTIL" >&6; }
7985 else
7986   { $as_echo "$as_me:$LINENO: result: no" >&5
7987 $as_echo "no" >&6; }
7988 fi
7989
7990
7991 fi
7992 if test -z "$ac_cv_prog_DSYMUTIL"; then
7993   ac_ct_DSYMUTIL=$DSYMUTIL
7994   # Extract the first word of "dsymutil", so it can be a program name with args.
7995 set dummy dsymutil; ac_word=$2
7996 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7999   $as_echo_n "(cached) " >&6
8000 else
8001   if test -n "$ac_ct_DSYMUTIL"; then
8002   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007   IFS=$as_save_IFS
8008   test -z "$as_dir" && as_dir=.
8009   for ac_exec_ext in '' $ac_executable_extensions; do
8010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8012     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013     break 2
8014   fi
8015 done
8016 done
8017 IFS=$as_save_IFS
8018
8019 fi
8020 fi
8021 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8022 if test -n "$ac_ct_DSYMUTIL"; then
8023   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8024 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8025 else
8026   { $as_echo "$as_me:$LINENO: result: no" >&5
8027 $as_echo "no" >&6; }
8028 fi
8029
8030   if test "x$ac_ct_DSYMUTIL" = x; then
8031     DSYMUTIL=":"
8032   else
8033     case $cross_compiling:$ac_tool_warned in
8034 yes:)
8035 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8037 ac_tool_warned=yes ;;
8038 esac
8039     DSYMUTIL=$ac_ct_DSYMUTIL
8040   fi
8041 else
8042   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8043 fi
8044
8045     if test -n "$ac_tool_prefix"; then
8046   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8047 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8051   $as_echo_n "(cached) " >&6
8052 else
8053   if test -n "$NMEDIT"; then
8054   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059   IFS=$as_save_IFS
8060   test -z "$as_dir" && as_dir=.
8061   for ac_exec_ext in '' $ac_executable_extensions; do
8062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8064     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065     break 2
8066   fi
8067 done
8068 done
8069 IFS=$as_save_IFS
8070
8071 fi
8072 fi
8073 NMEDIT=$ac_cv_prog_NMEDIT
8074 if test -n "$NMEDIT"; then
8075   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8076 $as_echo "$NMEDIT" >&6; }
8077 else
8078   { $as_echo "$as_me:$LINENO: result: no" >&5
8079 $as_echo "no" >&6; }
8080 fi
8081
8082
8083 fi
8084 if test -z "$ac_cv_prog_NMEDIT"; then
8085   ac_ct_NMEDIT=$NMEDIT
8086   # Extract the first word of "nmedit", so it can be a program name with args.
8087 set dummy nmedit; ac_word=$2
8088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8091   $as_echo_n "(cached) " >&6
8092 else
8093   if test -n "$ac_ct_NMEDIT"; then
8094   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099   IFS=$as_save_IFS
8100   test -z "$as_dir" && as_dir=.
8101   for ac_exec_ext in '' $ac_executable_extensions; do
8102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8103     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8104     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105     break 2
8106   fi
8107 done
8108 done
8109 IFS=$as_save_IFS
8110
8111 fi
8112 fi
8113 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8114 if test -n "$ac_ct_NMEDIT"; then
8115   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8116 $as_echo "$ac_ct_NMEDIT" >&6; }
8117 else
8118   { $as_echo "$as_me:$LINENO: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122   if test "x$ac_ct_NMEDIT" = x; then
8123     NMEDIT=":"
8124   else
8125     case $cross_compiling:$ac_tool_warned in
8126 yes:)
8127 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8129 ac_tool_warned=yes ;;
8130 esac
8131     NMEDIT=$ac_ct_NMEDIT
8132   fi
8133 else
8134   NMEDIT="$ac_cv_prog_NMEDIT"
8135 fi
8136
8137     if test -n "$ac_tool_prefix"; then
8138   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8139 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8140 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if test "${ac_cv_prog_LIPO+set}" = set; then
8143   $as_echo_n "(cached) " >&6
8144 else
8145   if test -n "$LIPO"; then
8146   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8147 else
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8150 do
8151   IFS=$as_save_IFS
8152   test -z "$as_dir" && as_dir=.
8153   for ac_exec_ext in '' $ac_executable_extensions; do
8154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8155     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8156     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8157     break 2
8158   fi
8159 done
8160 done
8161 IFS=$as_save_IFS
8162
8163 fi
8164 fi
8165 LIPO=$ac_cv_prog_LIPO
8166 if test -n "$LIPO"; then
8167   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8168 $as_echo "$LIPO" >&6; }
8169 else
8170   { $as_echo "$as_me:$LINENO: result: no" >&5
8171 $as_echo "no" >&6; }
8172 fi
8173
8174
8175 fi
8176 if test -z "$ac_cv_prog_LIPO"; then
8177   ac_ct_LIPO=$LIPO
8178   # Extract the first word of "lipo", so it can be a program name with args.
8179 set dummy lipo; ac_word=$2
8180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8183   $as_echo_n "(cached) " >&6
8184 else
8185   if test -n "$ac_ct_LIPO"; then
8186   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8190 do
8191   IFS=$as_save_IFS
8192   test -z "$as_dir" && as_dir=.
8193   for ac_exec_ext in '' $ac_executable_extensions; do
8194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195     ac_cv_prog_ac_ct_LIPO="lipo"
8196     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197     break 2
8198   fi
8199 done
8200 done
8201 IFS=$as_save_IFS
8202
8203 fi
8204 fi
8205 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8206 if test -n "$ac_ct_LIPO"; then
8207   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8208 $as_echo "$ac_ct_LIPO" >&6; }
8209 else
8210   { $as_echo "$as_me:$LINENO: result: no" >&5
8211 $as_echo "no" >&6; }
8212 fi
8213
8214   if test "x$ac_ct_LIPO" = x; then
8215     LIPO=":"
8216   else
8217     case $cross_compiling:$ac_tool_warned in
8218 yes:)
8219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8221 ac_tool_warned=yes ;;
8222 esac
8223     LIPO=$ac_ct_LIPO
8224   fi
8225 else
8226   LIPO="$ac_cv_prog_LIPO"
8227 fi
8228
8229     if test -n "$ac_tool_prefix"; then
8230   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8231 set dummy ${ac_tool_prefix}otool; ac_word=$2
8232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if test "${ac_cv_prog_OTOOL+set}" = set; then
8235   $as_echo_n "(cached) " >&6
8236 else
8237   if test -n "$OTOOL"; then
8238   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243   IFS=$as_save_IFS
8244   test -z "$as_dir" && as_dir=.
8245   for ac_exec_ext in '' $ac_executable_extensions; do
8246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8247     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8248     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8249     break 2
8250   fi
8251 done
8252 done
8253 IFS=$as_save_IFS
8254
8255 fi
8256 fi
8257 OTOOL=$ac_cv_prog_OTOOL
8258 if test -n "$OTOOL"; then
8259   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8260 $as_echo "$OTOOL" >&6; }
8261 else
8262   { $as_echo "$as_me:$LINENO: result: no" >&5
8263 $as_echo "no" >&6; }
8264 fi
8265
8266
8267 fi
8268 if test -z "$ac_cv_prog_OTOOL"; then
8269   ac_ct_OTOOL=$OTOOL
8270   # Extract the first word of "otool", so it can be a program name with args.
8271 set dummy otool; ac_word=$2
8272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8275   $as_echo_n "(cached) " >&6
8276 else
8277   if test -n "$ac_ct_OTOOL"; then
8278   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283   IFS=$as_save_IFS
8284   test -z "$as_dir" && as_dir=.
8285   for ac_exec_ext in '' $ac_executable_extensions; do
8286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287     ac_cv_prog_ac_ct_OTOOL="otool"
8288     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289     break 2
8290   fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8294
8295 fi
8296 fi
8297 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8298 if test -n "$ac_ct_OTOOL"; then
8299   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8300 $as_echo "$ac_ct_OTOOL" >&6; }
8301 else
8302   { $as_echo "$as_me:$LINENO: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305
8306   if test "x$ac_ct_OTOOL" = x; then
8307     OTOOL=":"
8308   else
8309     case $cross_compiling:$ac_tool_warned in
8310 yes:)
8311 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8313 ac_tool_warned=yes ;;
8314 esac
8315     OTOOL=$ac_ct_OTOOL
8316   fi
8317 else
8318   OTOOL="$ac_cv_prog_OTOOL"
8319 fi
8320
8321     if test -n "$ac_tool_prefix"; then
8322   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8323 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8327   $as_echo_n "(cached) " >&6
8328 else
8329   if test -n "$OTOOL64"; then
8330   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335   IFS=$as_save_IFS
8336   test -z "$as_dir" && as_dir=.
8337   for ac_exec_ext in '' $ac_executable_extensions; do
8338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8339     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8340     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8341     break 2
8342   fi
8343 done
8344 done
8345 IFS=$as_save_IFS
8346
8347 fi
8348 fi
8349 OTOOL64=$ac_cv_prog_OTOOL64
8350 if test -n "$OTOOL64"; then
8351   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8352 $as_echo "$OTOOL64" >&6; }
8353 else
8354   { $as_echo "$as_me:$LINENO: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357
8358
8359 fi
8360 if test -z "$ac_cv_prog_OTOOL64"; then
8361   ac_ct_OTOOL64=$OTOOL64
8362   # Extract the first word of "otool64", so it can be a program name with args.
8363 set dummy otool64; ac_word=$2
8364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8367   $as_echo_n "(cached) " >&6
8368 else
8369   if test -n "$ac_ct_OTOOL64"; then
8370   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375   IFS=$as_save_IFS
8376   test -z "$as_dir" && as_dir=.
8377   for ac_exec_ext in '' $ac_executable_extensions; do
8378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379     ac_cv_prog_ac_ct_OTOOL64="otool64"
8380     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381     break 2
8382   fi
8383 done
8384 done
8385 IFS=$as_save_IFS
8386
8387 fi
8388 fi
8389 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8390 if test -n "$ac_ct_OTOOL64"; then
8391   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8392 $as_echo "$ac_ct_OTOOL64" >&6; }
8393 else
8394   { $as_echo "$as_me:$LINENO: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397
8398   if test "x$ac_ct_OTOOL64" = x; then
8399     OTOOL64=":"
8400   else
8401     case $cross_compiling:$ac_tool_warned in
8402 yes:)
8403 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8405 ac_tool_warned=yes ;;
8406 esac
8407     OTOOL64=$ac_ct_OTOOL64
8408   fi
8409 else
8410   OTOOL64="$ac_cv_prog_OTOOL64"
8411 fi
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8440 $as_echo_n "checking for -single_module linker flag... " >&6; }
8441 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8442   $as_echo_n "(cached) " >&6
8443 else
8444   lt_cv_apple_cc_single_mod=no
8445       if test -z "${LT_MULTI_MODULE}"; then
8446         # By default we will add the -single_module flag. You can override
8447         # by either setting the environment variable LT_MULTI_MODULE
8448         # non-empty at configure time, or by adding -multi_module to the
8449         # link flags.
8450         rm -rf libconftest.dylib*
8451         echo "int foo(void){return 1;}" > conftest.c
8452         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8453 -dynamiclib -Wl,-single_module conftest.c" >&5
8454         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8455           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8456         _lt_result=$?
8457         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8458           lt_cv_apple_cc_single_mod=yes
8459         else
8460           cat conftest.err >&5
8461         fi
8462         rm -rf libconftest.dylib*
8463         rm -f conftest.*
8464       fi
8465 fi
8466 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8467 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8468     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8469 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8470 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8471   $as_echo_n "(cached) " >&6
8472 else
8473   lt_cv_ld_exported_symbols_list=no
8474       save_LDFLAGS=$LDFLAGS
8475       echo "_main" > conftest.sym
8476       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8477       cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h.  */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h.  */
8483
8484 int
8485 main ()
8486 {
8487
8488   ;
8489   return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8494 case "(($ac_try" in
8495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496   *) ac_try_echo=$ac_try;;
8497 esac
8498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8499 $as_echo "$ac_try_echo") >&5
8500   (eval "$ac_link") 2>conftest.er1
8501   ac_status=$?
8502   grep -v '^ *+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } && {
8507          test -z "$ac_c_werror_flag" ||
8508          test ! -s conftest.err
8509        } && test -s conftest$ac_exeext && {
8510          test "$cross_compiling" = yes ||
8511          $as_test_x conftest$ac_exeext
8512        }; then
8513   lt_cv_ld_exported_symbols_list=yes
8514 else
8515   $as_echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518         lt_cv_ld_exported_symbols_list=no
8519 fi
8520
8521 rm -rf conftest.dSYM
8522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8523       conftest$ac_exeext conftest.$ac_ext
8524         LDFLAGS="$save_LDFLAGS"
8525
8526 fi
8527 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8528 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8529     case $host_os in
8530     rhapsody* | darwin1.[012])
8531       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8532     darwin1.*)
8533       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8534     darwin*) # darwin 5.x on
8535       # if running on 10.5 or later, the deployment target defaults
8536       # to the OS version, if on x86, and 10.4, the deployment
8537       # target defaults to 10.4. Don't you love it?
8538       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8539         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8540           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8541         10.[012]*)
8542           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8543         10.*)
8544           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8545       esac
8546     ;;
8547   esac
8548     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8549       _lt_dar_single_mod='$single_module'
8550     fi
8551     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8552       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8553     else
8554       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8555     fi
8556     if test "$DSYMUTIL" != ":"; then
8557       _lt_dsymutil='~$DSYMUTIL $lib || :'
8558     else
8559       _lt_dsymutil=
8560     fi
8561     ;;
8562   esac
8563
8564
8565 for ac_header in dlfcn.h
8566 do
8567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8569 $as_echo_n "checking for $ac_header... " >&6; }
8570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8571   $as_echo_n "(cached) " >&6
8572 else
8573   cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579 $ac_includes_default
8580
8581 #include <$ac_header>
8582 _ACEOF
8583 rm -f conftest.$ac_objext
8584 if { (ac_try="$ac_compile"
8585 case "(($ac_try" in
8586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587   *) ac_try_echo=$ac_try;;
8588 esac
8589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8590 $as_echo "$ac_try_echo") >&5
8591   (eval "$ac_compile") 2>conftest.er1
8592   ac_status=$?
8593   grep -v '^ *+' conftest.er1 >conftest.err
8594   rm -f conftest.er1
8595   cat conftest.err >&5
8596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); } && {
8598          test -z "$ac_c_werror_flag" ||
8599          test ! -s conftest.err
8600        } && test -s conftest.$ac_objext; then
8601   eval "$as_ac_Header=yes"
8602 else
8603   $as_echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606         eval "$as_ac_Header=no"
8607 fi
8608
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 fi
8611 ac_res=`eval 'as_val=${'$as_ac_Header'}
8612                  $as_echo "$as_val"'`
8613                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8614 $as_echo "$ac_res" >&6; }
8615 as_val=`eval 'as_val=${'$as_ac_Header'}
8616                  $as_echo "$as_val"'`
8617    if test "x$as_val" = x""yes; then
8618   cat >>confdefs.h <<_ACEOF
8619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8620 _ACEOF
8621
8622 fi
8623
8624 done
8625
8626
8627
8628 # Set options
8629
8630
8631
8632         enable_dlopen=no
8633
8634
8635   enable_win32_dll=no
8636
8637
8638
8639
8640
8641 # Check whether --with-pic was given.
8642 if test "${with_pic+set}" = set; then
8643   withval=$with_pic; pic_mode="$withval"
8644 else
8645   pic_mode=default
8646 fi
8647
8648
8649 test -z "$pic_mode" && pic_mode=default
8650
8651
8652
8653
8654
8655
8656
8657   # Check whether --enable-fast-install was given.
8658 if test "${enable_fast_install+set}" = set; then
8659   enableval=$enable_fast_install; p=${PACKAGE-default}
8660     case $enableval in
8661     yes) enable_fast_install=yes ;;
8662     no) enable_fast_install=no ;;
8663     *)
8664       enable_fast_install=no
8665       # Look at the argument we got.  We use all the common list separators.
8666       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8667       for pkg in $enableval; do
8668         IFS="$lt_save_ifs"
8669         if test "X$pkg" = "X$p"; then
8670           enable_fast_install=yes
8671         fi
8672       done
8673       IFS="$lt_save_ifs"
8674       ;;
8675     esac
8676 else
8677   enable_fast_install=yes
8678 fi
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690 # This can be used to rebuild libtool when needed
8691 LIBTOOL_DEPS="$ltmain"
8692
8693 # Always use our own libtool.
8694 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720 test -z "$LN_S" && LN_S="ln -s"
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735 if test -n "${ZSH_VERSION+set}" ; then
8736    setopt NO_GLOB_SUBST
8737 fi
8738
8739 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8740 $as_echo_n "checking for objdir... " >&6; }
8741 if test "${lt_cv_objdir+set}" = set; then
8742   $as_echo_n "(cached) " >&6
8743 else
8744   rm -f .libs 2>/dev/null
8745 mkdir .libs 2>/dev/null
8746 if test -d .libs; then
8747   lt_cv_objdir=.libs
8748 else
8749   # MS-DOS does not allow filenames that begin with a dot.
8750   lt_cv_objdir=_libs
8751 fi
8752 rmdir .libs 2>/dev/null
8753 fi
8754 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8755 $as_echo "$lt_cv_objdir" >&6; }
8756 objdir=$lt_cv_objdir
8757
8758
8759
8760
8761
8762 cat >>confdefs.h <<_ACEOF
8763 #define LT_OBJDIR "$lt_cv_objdir/"
8764 _ACEOF
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782 case $host_os in
8783 aix3*)
8784   # AIX sometimes has problems with the GCC collect2 program.  For some
8785   # reason, if we set the COLLECT_NAMES environment variable, the problems
8786   # vanish in a puff of smoke.
8787   if test "X${COLLECT_NAMES+set}" != Xset; then
8788     COLLECT_NAMES=
8789     export COLLECT_NAMES
8790   fi
8791   ;;
8792 esac
8793
8794 # Sed substitution that helps us do robust quoting.  It backslashifies
8795 # metacharacters that are still active within double-quoted strings.
8796 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8797
8798 # Same as above, but do not quote variable references.
8799 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8800
8801 # Sed substitution to delay expansion of an escaped shell variable in a
8802 # double_quote_subst'ed string.
8803 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8804
8805 # Sed substitution to delay expansion of an escaped single quote.
8806 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8807
8808 # Sed substitution to avoid accidental globbing in evaled expressions
8809 no_glob_subst='s/\*/\\\*/g'
8810
8811 # Global variables:
8812 ofile=libtool
8813 can_build_shared=yes
8814
8815 # All known linkers require a `.a' archive for static linking (except MSVC,
8816 # which needs '.lib').
8817 libext=a
8818
8819 with_gnu_ld="$lt_cv_prog_gnu_ld"
8820
8821 old_CC="$CC"
8822 old_CFLAGS="$CFLAGS"
8823
8824 # Set sane defaults for various variables
8825 test -z "$CC" && CC=cc
8826 test -z "$LTCC" && LTCC=$CC
8827 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8828 test -z "$LD" && LD=ld
8829 test -z "$ac_objext" && ac_objext=o
8830
8831 for cc_temp in $compiler""; do
8832   case $cc_temp in
8833     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8834     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8835     \-*) ;;
8836     *) break;;
8837   esac
8838 done
8839 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8840
8841
8842 # Only perform the check for file, if the check method requires it
8843 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8844 case $deplibs_check_method in
8845 file_magic*)
8846   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8847     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8848 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8849 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8850   $as_echo_n "(cached) " >&6
8851 else
8852   case $MAGIC_CMD in
8853 [\\/*] |  ?:[\\/]*)
8854   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8855   ;;
8856 *)
8857   lt_save_MAGIC_CMD="$MAGIC_CMD"
8858   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8859   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8860   for ac_dir in $ac_dummy; do
8861     IFS="$lt_save_ifs"
8862     test -z "$ac_dir" && ac_dir=.
8863     if test -f $ac_dir/${ac_tool_prefix}file; then
8864       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8865       if test -n "$file_magic_test_file"; then
8866         case $deplibs_check_method in
8867         "file_magic "*)
8868           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8869           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8870           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8871             $EGREP "$file_magic_regex" > /dev/null; then
8872             :
8873           else
8874             cat <<_LT_EOF 1>&2
8875
8876 *** Warning: the command libtool uses to detect shared libraries,
8877 *** $file_magic_cmd, produces output that libtool cannot recognize.
8878 *** The result is that libtool may fail to recognize shared libraries
8879 *** as such.  This will affect the creation of libtool libraries that
8880 *** depend on shared libraries, but programs linked with such libtool
8881 *** libraries will work regardless of this problem.  Nevertheless, you
8882 *** may want to report the problem to your system manager and/or to
8883 *** bug-libtool@gnu.org
8884
8885 _LT_EOF
8886           fi ;;
8887         esac
8888       fi
8889       break
8890     fi
8891   done
8892   IFS="$lt_save_ifs"
8893   MAGIC_CMD="$lt_save_MAGIC_CMD"
8894   ;;
8895 esac
8896 fi
8897
8898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8899 if test -n "$MAGIC_CMD"; then
8900   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8901 $as_echo "$MAGIC_CMD" >&6; }
8902 else
8903   { $as_echo "$as_me:$LINENO: result: no" >&5
8904 $as_echo "no" >&6; }
8905 fi
8906
8907
8908
8909
8910
8911 if test -z "$lt_cv_path_MAGIC_CMD"; then
8912   if test -n "$ac_tool_prefix"; then
8913     { $as_echo "$as_me:$LINENO: checking for file" >&5
8914 $as_echo_n "checking for file... " >&6; }
8915 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8916   $as_echo_n "(cached) " >&6
8917 else
8918   case $MAGIC_CMD in
8919 [\\/*] |  ?:[\\/]*)
8920   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8921   ;;
8922 *)
8923   lt_save_MAGIC_CMD="$MAGIC_CMD"
8924   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8925   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8926   for ac_dir in $ac_dummy; do
8927     IFS="$lt_save_ifs"
8928     test -z "$ac_dir" && ac_dir=.
8929     if test -f $ac_dir/file; then
8930       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8931       if test -n "$file_magic_test_file"; then
8932         case $deplibs_check_method in
8933         "file_magic "*)
8934           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8935           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8936           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8937             $EGREP "$file_magic_regex" > /dev/null; then
8938             :
8939           else
8940             cat <<_LT_EOF 1>&2
8941
8942 *** Warning: the command libtool uses to detect shared libraries,
8943 *** $file_magic_cmd, produces output that libtool cannot recognize.
8944 *** The result is that libtool may fail to recognize shared libraries
8945 *** as such.  This will affect the creation of libtool libraries that
8946 *** depend on shared libraries, but programs linked with such libtool
8947 *** libraries will work regardless of this problem.  Nevertheless, you
8948 *** may want to report the problem to your system manager and/or to
8949 *** bug-libtool@gnu.org
8950
8951 _LT_EOF
8952           fi ;;
8953         esac
8954       fi
8955       break
8956     fi
8957   done
8958   IFS="$lt_save_ifs"
8959   MAGIC_CMD="$lt_save_MAGIC_CMD"
8960   ;;
8961 esac
8962 fi
8963
8964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8965 if test -n "$MAGIC_CMD"; then
8966   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8967 $as_echo "$MAGIC_CMD" >&6; }
8968 else
8969   { $as_echo "$as_me:$LINENO: result: no" >&5
8970 $as_echo "no" >&6; }
8971 fi
8972
8973
8974   else
8975     MAGIC_CMD=:
8976   fi
8977 fi
8978
8979   fi
8980   ;;
8981 esac
8982
8983 # Use C for the default configuration in the libtool script
8984
8985 lt_save_CC="$CC"
8986 ac_ext=c
8987 ac_cpp='$CPP $CPPFLAGS'
8988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8991
8992
8993 # Source file extension for C test sources.
8994 ac_ext=c
8995
8996 # Object file extension for compiled C test sources.
8997 objext=o
8998 objext=$objext
8999
9000 # Code to be used in simple compile tests
9001 lt_simple_compile_test_code="int some_variable = 0;"
9002
9003 # Code to be used in simple link tests
9004 lt_simple_link_test_code='int main(){return(0);}'
9005
9006
9007
9008
9009
9010
9011
9012 # If no C compiler was specified, use CC.
9013 LTCC=${LTCC-"$CC"}
9014
9015 # If no C compiler flags were specified, use CFLAGS.
9016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9017
9018 # Allow CC to be a program name with arguments.
9019 compiler=$CC
9020
9021 # Save the default compiler, since it gets overwritten when the other
9022 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9023 compiler_DEFAULT=$CC
9024
9025 # save warnings/boilerplate of simple test code
9026 ac_outfile=conftest.$ac_objext
9027 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9028 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9029 _lt_compiler_boilerplate=`cat conftest.err`
9030 $RM conftest*
9031
9032 ac_outfile=conftest.$ac_objext
9033 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9034 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9035 _lt_linker_boilerplate=`cat conftest.err`
9036 $RM -r conftest*
9037
9038
9039 ## CAVEAT EMPTOR:
9040 ## There is no encapsulation within the following macros, do not change
9041 ## the running order or otherwise move them around unless you know exactly
9042 ## what you are doing...
9043 if test -n "$compiler"; then
9044
9045 lt_prog_compiler_no_builtin_flag=
9046
9047 if test "$GCC" = yes; then
9048   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9049
9050   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9051 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9052 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9053   $as_echo_n "(cached) " >&6
9054 else
9055   lt_cv_prog_compiler_rtti_exceptions=no
9056    ac_outfile=conftest.$ac_objext
9057    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9058    lt_compiler_flag="-fno-rtti -fno-exceptions"
9059    # Insert the option either (1) after the last *FLAGS variable, or
9060    # (2) before a word containing "conftest.", or (3) at the end.
9061    # Note that $ac_compile itself does not contain backslashes and begins
9062    # with a dollar sign (not a hyphen), so the echo should work correctly.
9063    # The option is referenced via a variable to avoid confusing sed.
9064    lt_compile=`echo "$ac_compile" | $SED \
9065    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9067    -e 's:$: $lt_compiler_flag:'`
9068    (eval echo "\"\$as_me:9068: $lt_compile\"" >&5)
9069    (eval "$lt_compile" 2>conftest.err)
9070    ac_status=$?
9071    cat conftest.err >&5
9072    echo "$as_me:9072: \$? = $ac_status" >&5
9073    if (exit $ac_status) && test -s "$ac_outfile"; then
9074      # The compiler can only warn and ignore the option if not recognized
9075      # So say no if there are warnings other than the usual output.
9076      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9077      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9078      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9079        lt_cv_prog_compiler_rtti_exceptions=yes
9080      fi
9081    fi
9082    $RM conftest*
9083
9084 fi
9085 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9086 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9087
9088 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9089     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9090 else
9091     :
9092 fi
9093
9094 fi
9095
9096
9097
9098
9099
9100
9101   lt_prog_compiler_wl=
9102 lt_prog_compiler_pic=
9103 lt_prog_compiler_static=
9104
9105 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9106 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9107
9108   if test "$GCC" = yes; then
9109     lt_prog_compiler_wl='-Wl,'
9110     lt_prog_compiler_static='-static'
9111
9112     case $host_os in
9113       aix*)
9114       # All AIX code is PIC.
9115       if test "$host_cpu" = ia64; then
9116         # AIX 5 now supports IA64 processor
9117         lt_prog_compiler_static='-Bstatic'
9118       fi
9119       ;;
9120
9121     amigaos*)
9122       case $host_cpu in
9123       powerpc)
9124             # see comment about AmigaOS4 .so support
9125             lt_prog_compiler_pic='-fPIC'
9126         ;;
9127       m68k)
9128             # FIXME: we need at least 68020 code to build shared libraries, but
9129             # adding the `-m68020' flag to GCC prevents building anything better,
9130             # like `-m68040'.
9131             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9132         ;;
9133       esac
9134       ;;
9135
9136     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9137       # PIC is the default for these OSes.
9138       ;;
9139
9140     mingw* | cygwin* | pw32* | os2* | cegcc*)
9141       # This hack is so that the source file can tell whether it is being
9142       # built for inclusion in a dll (and should export symbols for example).
9143       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9144       # (--disable-auto-import) libraries
9145       lt_prog_compiler_pic='-DDLL_EXPORT'
9146       ;;
9147
9148     darwin* | rhapsody*)
9149       # PIC is the default on this platform
9150       # Common symbols not allowed in MH_DYLIB files
9151       lt_prog_compiler_pic='-fno-common'
9152       ;;
9153
9154     hpux*)
9155       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9156       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9157       # sets the default TLS model and affects inlining.
9158       case $host_cpu in
9159       hppa*64*)
9160         # +Z the default
9161         ;;
9162       *)
9163         lt_prog_compiler_pic='-fPIC'
9164         ;;
9165       esac
9166       ;;
9167
9168     interix[3-9]*)
9169       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9170       # Instead, we relocate shared libraries at runtime.
9171       ;;
9172
9173     msdosdjgpp*)
9174       # Just because we use GCC doesn't mean we suddenly get shared libraries
9175       # on systems that don't support them.
9176       lt_prog_compiler_can_build_shared=no
9177       enable_shared=no
9178       ;;
9179
9180     *nto* | *qnx*)
9181       # QNX uses GNU C++, but need to define -shared option too, otherwise
9182       # it will coredump.
9183       lt_prog_compiler_pic='-fPIC -shared'
9184       ;;
9185
9186     sysv4*MP*)
9187       if test -d /usr/nec; then
9188         lt_prog_compiler_pic=-Kconform_pic
9189       fi
9190       ;;
9191
9192     *)
9193       lt_prog_compiler_pic='-fPIC'
9194       ;;
9195     esac
9196   else
9197     # PORTME Check for flag to pass linker flags through the system compiler.
9198     case $host_os in
9199     aix*)
9200       lt_prog_compiler_wl='-Wl,'
9201       if test "$host_cpu" = ia64; then
9202         # AIX 5 now supports IA64 processor
9203         lt_prog_compiler_static='-Bstatic'
9204       else
9205         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9206       fi
9207       ;;
9208
9209     mingw* | cygwin* | pw32* | os2* | cegcc*)
9210       # This hack is so that the source file can tell whether it is being
9211       # built for inclusion in a dll (and should export symbols for example).
9212       lt_prog_compiler_pic='-DDLL_EXPORT'
9213       ;;
9214
9215     hpux9* | hpux10* | hpux11*)
9216       lt_prog_compiler_wl='-Wl,'
9217       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9218       # not for PA HP-UX.
9219       case $host_cpu in
9220       hppa*64*|ia64*)
9221         # +Z the default
9222         ;;
9223       *)
9224         lt_prog_compiler_pic='+Z'
9225         ;;
9226       esac
9227       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9228       lt_prog_compiler_static='${wl}-a ${wl}archive'
9229       ;;
9230
9231     irix5* | irix6* | nonstopux*)
9232       lt_prog_compiler_wl='-Wl,'
9233       # PIC (with -KPIC) is the default.
9234       lt_prog_compiler_static='-non_shared'
9235       ;;
9236
9237     linux* | k*bsd*-gnu)
9238       case $cc_basename in
9239       # old Intel for x86_64 which still supported -KPIC.
9240       ecc*)
9241         lt_prog_compiler_wl='-Wl,'
9242         lt_prog_compiler_pic='-KPIC'
9243         lt_prog_compiler_static='-static'
9244         ;;
9245       # icc used to be incompatible with GCC.
9246       # ICC 10 doesn't accept -KPIC any more.
9247       icc* | ifort*)
9248         lt_prog_compiler_wl='-Wl,'
9249         lt_prog_compiler_pic='-fPIC'
9250         lt_prog_compiler_static='-static'
9251         ;;
9252       # Lahey Fortran 8.1.
9253       lf95*)
9254         lt_prog_compiler_wl='-Wl,'
9255         lt_prog_compiler_pic='--shared'
9256         lt_prog_compiler_static='--static'
9257         ;;
9258       pgcc* | pgf77* | pgf90* | pgf95*)
9259         # Portland Group compilers (*not* the Pentium gcc compiler,
9260         # which looks to be a dead project)
9261         lt_prog_compiler_wl='-Wl,'
9262         lt_prog_compiler_pic='-fpic'
9263         lt_prog_compiler_static='-Bstatic'
9264         ;;
9265       ccc*)
9266         lt_prog_compiler_wl='-Wl,'
9267         # All Alpha code is PIC.
9268         lt_prog_compiler_static='-non_shared'
9269         ;;
9270       xl*)
9271         # IBM XL C 8.0/Fortran 10.1 on PPC
9272         lt_prog_compiler_wl='-Wl,'
9273         lt_prog_compiler_pic='-qpic'
9274         lt_prog_compiler_static='-qstaticlink'
9275         ;;
9276       *)
9277         case `$CC -V 2>&1 | sed 5q` in
9278         *Sun\ C*)
9279           # Sun C 5.9
9280           lt_prog_compiler_pic='-KPIC'
9281           lt_prog_compiler_static='-Bstatic'
9282           lt_prog_compiler_wl='-Wl,'
9283           ;;
9284         *Sun\ F*)
9285           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9286           lt_prog_compiler_pic='-KPIC'
9287           lt_prog_compiler_static='-Bstatic'
9288           lt_prog_compiler_wl=''
9289           ;;
9290         esac
9291         ;;
9292       esac
9293       ;;
9294
9295     newsos6)
9296       lt_prog_compiler_pic='-KPIC'
9297       lt_prog_compiler_static='-Bstatic'
9298       ;;
9299
9300     *nto* | *qnx*)
9301       # QNX uses GNU C++, but need to define -shared option too, otherwise
9302       # it will coredump.
9303       lt_prog_compiler_pic='-fPIC -shared'
9304       ;;
9305
9306     osf3* | osf4* | osf5*)
9307       lt_prog_compiler_wl='-Wl,'
9308       # All OSF/1 code is PIC.
9309       lt_prog_compiler_static='-non_shared'
9310       ;;
9311
9312     rdos*)
9313       lt_prog_compiler_static='-non_shared'
9314       ;;
9315
9316     solaris*)
9317       lt_prog_compiler_pic='-KPIC'
9318       lt_prog_compiler_static='-Bstatic'
9319       case $cc_basename in
9320       f77* | f90* | f95*)
9321         lt_prog_compiler_wl='-Qoption ld ';;
9322       *)
9323         lt_prog_compiler_wl='-Wl,';;
9324       esac
9325       ;;
9326
9327     sunos4*)
9328       lt_prog_compiler_wl='-Qoption ld '
9329       lt_prog_compiler_pic='-PIC'
9330       lt_prog_compiler_static='-Bstatic'
9331       ;;
9332
9333     sysv4 | sysv4.2uw2* | sysv4.3*)
9334       lt_prog_compiler_wl='-Wl,'
9335       lt_prog_compiler_pic='-KPIC'
9336       lt_prog_compiler_static='-Bstatic'
9337       ;;
9338
9339     sysv4*MP*)
9340       if test -d /usr/nec ;then
9341         lt_prog_compiler_pic='-Kconform_pic'
9342         lt_prog_compiler_static='-Bstatic'
9343       fi
9344       ;;
9345
9346     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9347       lt_prog_compiler_wl='-Wl,'
9348       lt_prog_compiler_pic='-KPIC'
9349       lt_prog_compiler_static='-Bstatic'
9350       ;;
9351
9352     unicos*)
9353       lt_prog_compiler_wl='-Wl,'
9354       lt_prog_compiler_can_build_shared=no
9355       ;;
9356
9357     uts4*)
9358       lt_prog_compiler_pic='-pic'
9359       lt_prog_compiler_static='-Bstatic'
9360       ;;
9361
9362     *)
9363       lt_prog_compiler_can_build_shared=no
9364       ;;
9365     esac
9366   fi
9367
9368 case $host_os in
9369   # For platforms which do not support PIC, -DPIC is meaningless:
9370   *djgpp*)
9371     lt_prog_compiler_pic=
9372     ;;
9373   *)
9374     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9375     ;;
9376 esac
9377 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9378 $as_echo "$lt_prog_compiler_pic" >&6; }
9379
9380
9381
9382
9383
9384
9385 #
9386 # Check to make sure the PIC flag actually works.
9387 #
9388 if test -n "$lt_prog_compiler_pic"; then
9389   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9390 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9391 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9392   $as_echo_n "(cached) " >&6
9393 else
9394   lt_cv_prog_compiler_pic_works=no
9395    ac_outfile=conftest.$ac_objext
9396    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9397    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9398    # Insert the option either (1) after the last *FLAGS variable, or
9399    # (2) before a word containing "conftest.", or (3) at the end.
9400    # Note that $ac_compile itself does not contain backslashes and begins
9401    # with a dollar sign (not a hyphen), so the echo should work correctly.
9402    # The option is referenced via a variable to avoid confusing sed.
9403    lt_compile=`echo "$ac_compile" | $SED \
9404    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9405    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9406    -e 's:$: $lt_compiler_flag:'`
9407    (eval echo "\"\$as_me:9407: $lt_compile\"" >&5)
9408    (eval "$lt_compile" 2>conftest.err)
9409    ac_status=$?
9410    cat conftest.err >&5
9411    echo "$as_me:9411: \$? = $ac_status" >&5
9412    if (exit $ac_status) && test -s "$ac_outfile"; then
9413      # The compiler can only warn and ignore the option if not recognized
9414      # So say no if there are warnings other than the usual output.
9415      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9416      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9417      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9418        lt_cv_prog_compiler_pic_works=yes
9419      fi
9420    fi
9421    $RM conftest*
9422
9423 fi
9424 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9425 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9426
9427 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9428     case $lt_prog_compiler_pic in
9429      "" | " "*) ;;
9430      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9431      esac
9432 else
9433     lt_prog_compiler_pic=
9434      lt_prog_compiler_can_build_shared=no
9435 fi
9436
9437 fi
9438
9439
9440
9441
9442
9443
9444 #
9445 # Check to make sure the static flag actually works.
9446 #
9447 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9448 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9449 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9450 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9451   $as_echo_n "(cached) " >&6
9452 else
9453   lt_cv_prog_compiler_static_works=no
9454    save_LDFLAGS="$LDFLAGS"
9455    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9456    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9457    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9458      # The linker can only warn and ignore the option if not recognized
9459      # So say no if there are warnings
9460      if test -s conftest.err; then
9461        # Append any errors to the config.log.
9462        cat conftest.err 1>&5
9463        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9464        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9465        if diff conftest.exp conftest.er2 >/dev/null; then
9466          lt_cv_prog_compiler_static_works=yes
9467        fi
9468      else
9469        lt_cv_prog_compiler_static_works=yes
9470      fi
9471    fi
9472    $RM -r conftest*
9473    LDFLAGS="$save_LDFLAGS"
9474
9475 fi
9476 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9477 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9478
9479 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9480     :
9481 else
9482     lt_prog_compiler_static=
9483 fi
9484
9485
9486
9487
9488
9489
9490
9491   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9492 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9493 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9494   $as_echo_n "(cached) " >&6
9495 else
9496   lt_cv_prog_compiler_c_o=no
9497    $RM -r conftest 2>/dev/null
9498    mkdir conftest
9499    cd conftest
9500    mkdir out
9501    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9502
9503    lt_compiler_flag="-o out/conftest2.$ac_objext"
9504    # Insert the option either (1) after the last *FLAGS variable, or
9505    # (2) before a word containing "conftest.", or (3) at the end.
9506    # Note that $ac_compile itself does not contain backslashes and begins
9507    # with a dollar sign (not a hyphen), so the echo should work correctly.
9508    lt_compile=`echo "$ac_compile" | $SED \
9509    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9510    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9511    -e 's:$: $lt_compiler_flag:'`
9512    (eval echo "\"\$as_me:9512: $lt_compile\"" >&5)
9513    (eval "$lt_compile" 2>out/conftest.err)
9514    ac_status=$?
9515    cat out/conftest.err >&5
9516    echo "$as_me:9516: \$? = $ac_status" >&5
9517    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9518    then
9519      # The compiler can only warn and ignore the option if not recognized
9520      # So say no if there are warnings
9521      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9522      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9523      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9524        lt_cv_prog_compiler_c_o=yes
9525      fi
9526    fi
9527    chmod u+w . 2>&5
9528    $RM conftest*
9529    # SGI C++ compiler will create directory out/ii_files/ for
9530    # template instantiation
9531    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9532    $RM out/* && rmdir out
9533    cd ..
9534    $RM -r conftest
9535    $RM conftest*
9536
9537 fi
9538 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9539 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9540
9541
9542
9543
9544
9545
9546   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9548 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9549   $as_echo_n "(cached) " >&6
9550 else
9551   lt_cv_prog_compiler_c_o=no
9552    $RM -r conftest 2>/dev/null
9553    mkdir conftest
9554    cd conftest
9555    mkdir out
9556    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9557
9558    lt_compiler_flag="-o out/conftest2.$ac_objext"
9559    # Insert the option either (1) after the last *FLAGS variable, or
9560    # (2) before a word containing "conftest.", or (3) at the end.
9561    # Note that $ac_compile itself does not contain backslashes and begins
9562    # with a dollar sign (not a hyphen), so the echo should work correctly.
9563    lt_compile=`echo "$ac_compile" | $SED \
9564    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9565    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9566    -e 's:$: $lt_compiler_flag:'`
9567    (eval echo "\"\$as_me:9567: $lt_compile\"" >&5)
9568    (eval "$lt_compile" 2>out/conftest.err)
9569    ac_status=$?
9570    cat out/conftest.err >&5
9571    echo "$as_me:9571: \$? = $ac_status" >&5
9572    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9573    then
9574      # The compiler can only warn and ignore the option if not recognized
9575      # So say no if there are warnings
9576      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9577      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9578      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9579        lt_cv_prog_compiler_c_o=yes
9580      fi
9581    fi
9582    chmod u+w . 2>&5
9583    $RM conftest*
9584    # SGI C++ compiler will create directory out/ii_files/ for
9585    # template instantiation
9586    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9587    $RM out/* && rmdir out
9588    cd ..
9589    $RM -r conftest
9590    $RM conftest*
9591
9592 fi
9593 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9594 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9595
9596
9597
9598
9599 hard_links="nottested"
9600 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9601   # do not overwrite the value of need_locks provided by the user
9602   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9603 $as_echo_n "checking if we can lock with hard links... " >&6; }
9604   hard_links=yes
9605   $RM conftest*
9606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9607   touch conftest.a
9608   ln conftest.a conftest.b 2>&5 || hard_links=no
9609   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9610   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9611 $as_echo "$hard_links" >&6; }
9612   if test "$hard_links" = no; then
9613     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9614 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9615     need_locks=warn
9616   fi
9617 else
9618   need_locks=no
9619 fi
9620
9621
9622
9623
9624
9625
9626   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9627 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9628
9629   runpath_var=
9630   allow_undefined_flag=
9631   always_export_symbols=no
9632   archive_cmds=
9633   archive_expsym_cmds=
9634   compiler_needs_object=no
9635   enable_shared_with_static_runtimes=no
9636   export_dynamic_flag_spec=
9637   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9638   hardcode_automatic=no
9639   hardcode_direct=no
9640   hardcode_direct_absolute=no
9641   hardcode_libdir_flag_spec=
9642   hardcode_libdir_flag_spec_ld=
9643   hardcode_libdir_separator=
9644   hardcode_minus_L=no
9645   hardcode_shlibpath_var=unsupported
9646   inherit_rpath=no
9647   link_all_deplibs=unknown
9648   module_cmds=
9649   module_expsym_cmds=
9650   old_archive_from_new_cmds=
9651   old_archive_from_expsyms_cmds=
9652   thread_safe_flag_spec=
9653   whole_archive_flag_spec=
9654   # include_expsyms should be a list of space-separated symbols to be *always*
9655   # included in the symbol list
9656   include_expsyms=
9657   # exclude_expsyms can be an extended regexp of symbols to exclude
9658   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9659   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9660   # as well as any symbol that contains `d'.
9661   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9662   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9663   # platforms (ab)use it in PIC code, but their linkers get confused if
9664   # the symbol is explicitly referenced.  Since portable code cannot
9665   # rely on this symbol name, it's probably fine to never include it in
9666   # preloaded symbol tables.
9667   # Exclude shared library initialization/finalization symbols.
9668   extract_expsyms_cmds=
9669
9670   case $host_os in
9671   cygwin* | mingw* | pw32* | cegcc*)
9672     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9673     # When not using gcc, we currently assume that we are using
9674     # Microsoft Visual C++.
9675     if test "$GCC" != yes; then
9676       with_gnu_ld=no
9677     fi
9678     ;;
9679   interix*)
9680     # we just hope/assume this is gcc and not c89 (= MSVC++)
9681     with_gnu_ld=yes
9682     ;;
9683   openbsd*)
9684     with_gnu_ld=no
9685     ;;
9686   esac
9687
9688   ld_shlibs=yes
9689   if test "$with_gnu_ld" = yes; then
9690     # If archive_cmds runs LD, not CC, wlarc should be empty
9691     wlarc='${wl}'
9692
9693     # Set some defaults for GNU ld with shared library support. These
9694     # are reset later if shared libraries are not supported. Putting them
9695     # here allows them to be overridden if necessary.
9696     runpath_var=LD_RUN_PATH
9697     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9698     export_dynamic_flag_spec='${wl}--export-dynamic'
9699     # ancient GNU ld didn't support --whole-archive et. al.
9700     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9701       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9702     else
9703       whole_archive_flag_spec=
9704     fi
9705     supports_anon_versioning=no
9706     case `$LD -v 2>&1` in
9707       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9708       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9709       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9710       *\ 2.11.*) ;; # other 2.11 versions
9711       *) supports_anon_versioning=yes ;;
9712     esac
9713
9714     # See if GNU ld supports shared libraries.
9715     case $host_os in
9716     aix[3-9]*)
9717       # On AIX/PPC, the GNU linker is very broken
9718       if test "$host_cpu" != ia64; then
9719         ld_shlibs=no
9720         cat <<_LT_EOF 1>&2
9721
9722 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9723 *** to be unable to reliably create shared libraries on AIX.
9724 *** Therefore, libtool is disabling shared libraries support.  If you
9725 *** really care for shared libraries, you may want to modify your PATH
9726 *** so that a non-GNU linker is found, and then restart.
9727
9728 _LT_EOF
9729       fi
9730       ;;
9731
9732     amigaos*)
9733       case $host_cpu in
9734       powerpc)
9735             # see comment about AmigaOS4 .so support
9736             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9737             archive_expsym_cmds=''
9738         ;;
9739       m68k)
9740             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)'
9741             hardcode_libdir_flag_spec='-L$libdir'
9742             hardcode_minus_L=yes
9743         ;;
9744       esac
9745       ;;
9746
9747     beos*)
9748       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9749         allow_undefined_flag=unsupported
9750         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9751         # support --undefined.  This deserves some investigation.  FIXME
9752         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9753       else
9754         ld_shlibs=no
9755       fi
9756       ;;
9757
9758     cygwin* | mingw* | pw32* | cegcc*)
9759       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9760       # as there is no search path for DLLs.
9761       hardcode_libdir_flag_spec='-L$libdir'
9762       allow_undefined_flag=unsupported
9763       always_export_symbols=no
9764       enable_shared_with_static_runtimes=yes
9765       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9766
9767       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9768         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9769         # If the export-symbols file already is a .def file (1st line
9770         # is EXPORTS), use it as is; otherwise, prepend...
9771         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9772           cp $export_symbols $output_objdir/$soname.def;
9773         else
9774           echo EXPORTS > $output_objdir/$soname.def;
9775           cat $export_symbols >> $output_objdir/$soname.def;
9776         fi~
9777         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9778       else
9779         ld_shlibs=no
9780       fi
9781       ;;
9782
9783     interix[3-9]*)
9784       hardcode_direct=no
9785       hardcode_shlibpath_var=no
9786       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9787       export_dynamic_flag_spec='${wl}-E'
9788       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9789       # Instead, shared libraries are loaded at an image base (0x10000000 by
9790       # default) and relocated if they conflict, which is a slow very memory
9791       # consuming and fragmenting process.  To avoid this, we pick a random,
9792       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9793       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9794       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9795       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'
9796       ;;
9797
9798     gnu* | linux* | tpf* | k*bsd*-gnu)
9799       tmp_diet=no
9800       if test "$host_os" = linux-dietlibc; then
9801         case $cc_basename in
9802           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9803         esac
9804       fi
9805       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9806          && test "$tmp_diet" = no
9807       then
9808         tmp_addflag=
9809         tmp_sharedflag='-shared'
9810         case $cc_basename,$host_cpu in
9811         pgcc*)                          # Portland Group C compiler
9812           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9813           tmp_addflag=' $pic_flag'
9814           ;;
9815         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9816           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9817           tmp_addflag=' $pic_flag -Mnomain' ;;
9818         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9819           tmp_addflag=' -i_dynamic' ;;
9820         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9821           tmp_addflag=' -i_dynamic -nofor_main' ;;
9822         ifc* | ifort*)                  # Intel Fortran compiler
9823           tmp_addflag=' -nofor_main' ;;
9824         lf95*)                          # Lahey Fortran 8.1
9825           whole_archive_flag_spec=
9826           tmp_sharedflag='--shared' ;;
9827         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9828           tmp_sharedflag='-qmkshrobj'
9829           tmp_addflag= ;;
9830         esac
9831         case `$CC -V 2>&1 | sed 5q` in
9832         *Sun\ C*)                       # Sun C 5.9
9833           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9834           compiler_needs_object=yes
9835           tmp_sharedflag='-G' ;;
9836         *Sun\ F*)                       # Sun Fortran 8.3
9837           tmp_sharedflag='-G' ;;
9838         esac
9839         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9840
9841         if test "x$supports_anon_versioning" = xyes; then
9842           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9843             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9844             echo "local: *; };" >> $output_objdir/$libname.ver~
9845             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9846         fi
9847
9848         case $cc_basename in
9849         xlf*)
9850           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9851           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9852           hardcode_libdir_flag_spec=
9853           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9854           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9855           if test "x$supports_anon_versioning" = xyes; then
9856             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9857               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9858               echo "local: *; };" >> $output_objdir/$libname.ver~
9859               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9860           fi
9861           ;;
9862         esac
9863       else
9864         ld_shlibs=no
9865       fi
9866       ;;
9867
9868     netbsd*)
9869       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9870         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9871         wlarc=
9872       else
9873         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9874         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9875       fi
9876       ;;
9877
9878     solaris*)
9879       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9880         ld_shlibs=no
9881         cat <<_LT_EOF 1>&2
9882
9883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9884 *** create shared libraries on Solaris systems.  Therefore, libtool
9885 *** is disabling shared libraries support.  We urge you to upgrade GNU
9886 *** binutils to release 2.9.1 or newer.  Another option is to modify
9887 *** your PATH or compiler configuration so that the native linker is
9888 *** used, and then restart.
9889
9890 _LT_EOF
9891       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9892         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9893         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9894       else
9895         ld_shlibs=no
9896       fi
9897       ;;
9898
9899     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9900       case `$LD -v 2>&1` in
9901         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9902         ld_shlibs=no
9903         cat <<_LT_EOF 1>&2
9904
9905 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9906 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9907 *** is disabling shared libraries support.  We urge you to upgrade GNU
9908 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9909 *** your PATH or compiler configuration so that the native linker is
9910 *** used, and then restart.
9911
9912 _LT_EOF
9913         ;;
9914         *)
9915           # For security reasons, it is highly recommended that you always
9916           # use absolute paths for naming shared libraries, and exclude the
9917           # DT_RUNPATH tag from executables and libraries.  But doing so
9918           # requires that you compile everything twice, which is a pain.
9919           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9920             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9921             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9922             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9923           else
9924             ld_shlibs=no
9925           fi
9926         ;;
9927       esac
9928       ;;
9929
9930     sunos4*)
9931       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9932       wlarc=
9933       hardcode_direct=yes
9934       hardcode_shlibpath_var=no
9935       ;;
9936
9937     *)
9938       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9939         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9940         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9941       else
9942         ld_shlibs=no
9943       fi
9944       ;;
9945     esac
9946
9947     if test "$ld_shlibs" = no; then
9948       runpath_var=
9949       hardcode_libdir_flag_spec=
9950       export_dynamic_flag_spec=
9951       whole_archive_flag_spec=
9952     fi
9953   else
9954     # PORTME fill in a description of your system's linker (not GNU ld)
9955     case $host_os in
9956     aix3*)
9957       allow_undefined_flag=unsupported
9958       always_export_symbols=yes
9959       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'
9960       # Note: this linker hardcodes the directories in LIBPATH if there
9961       # are no directories specified by -L.
9962       hardcode_minus_L=yes
9963       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9964         # Neither direct hardcoding nor static linking is supported with a
9965         # broken collect2.
9966         hardcode_direct=unsupported
9967       fi
9968       ;;
9969
9970     aix[4-9]*)
9971       if test "$host_cpu" = ia64; then
9972         # On IA64, the linker does run time linking by default, so we don't
9973         # have to do anything special.
9974         aix_use_runtimelinking=no
9975         exp_sym_flag='-Bexport'
9976         no_entry_flag=""
9977       else
9978         # If we're using GNU nm, then we don't want the "-C" option.
9979         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9980         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9981           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9982         else
9983           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'
9984         fi
9985         aix_use_runtimelinking=no
9986
9987         # Test if we are trying to use run time linking or normal
9988         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9989         # need to do runtime linking.
9990         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9991           for ld_flag in $LDFLAGS; do
9992           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9993             aix_use_runtimelinking=yes
9994             break
9995           fi
9996           done
9997           ;;
9998         esac
9999
10000         exp_sym_flag='-bexport'
10001         no_entry_flag='-bnoentry'
10002       fi
10003
10004       # When large executables or shared objects are built, AIX ld can
10005       # have problems creating the table of contents.  If linking a library
10006       # or program results in "error TOC overflow" add -mminimal-toc to
10007       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10008       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10009
10010       archive_cmds=''
10011       hardcode_direct=yes
10012       hardcode_direct_absolute=yes
10013       hardcode_libdir_separator=':'
10014       link_all_deplibs=yes
10015       file_list_spec='${wl}-f,'
10016
10017       if test "$GCC" = yes; then
10018         case $host_os in aix4.[012]|aix4.[012].*)
10019         # We only want to do this on AIX 4.2 and lower, the check
10020         # below for broken collect2 doesn't work under 4.3+
10021           collect2name=`${CC} -print-prog-name=collect2`
10022           if test -f "$collect2name" &&
10023            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10024           then
10025           # We have reworked collect2
10026           :
10027           else
10028           # We have old collect2
10029           hardcode_direct=unsupported
10030           # It fails to find uninstalled libraries when the uninstalled
10031           # path is not listed in the libpath.  Setting hardcode_minus_L
10032           # to unsupported forces relinking
10033           hardcode_minus_L=yes
10034           hardcode_libdir_flag_spec='-L$libdir'
10035           hardcode_libdir_separator=
10036           fi
10037           ;;
10038         esac
10039         shared_flag='-shared'
10040         if test "$aix_use_runtimelinking" = yes; then
10041           shared_flag="$shared_flag "'${wl}-G'
10042         fi
10043       else
10044         # not using gcc
10045         if test "$host_cpu" = ia64; then
10046         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10047         # chokes on -Wl,-G. The following line is correct:
10048           shared_flag='-G'
10049         else
10050           if test "$aix_use_runtimelinking" = yes; then
10051             shared_flag='${wl}-G'
10052           else
10053             shared_flag='${wl}-bM:SRE'
10054           fi
10055         fi
10056       fi
10057
10058       export_dynamic_flag_spec='${wl}-bexpall'
10059       # It seems that -bexpall does not export symbols beginning with
10060       # underscore (_), so it is better to generate a list of symbols to export.
10061       always_export_symbols=yes
10062       if test "$aix_use_runtimelinking" = yes; then
10063         # Warning - without using the other runtime loading flags (-brtl),
10064         # -berok will link without error, but may produce a broken library.
10065         allow_undefined_flag='-berok'
10066         # Determine the default libpath from the value encoded in an
10067         # empty executable.
10068         cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074
10075 int
10076 main ()
10077 {
10078
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (ac_try="$ac_link"
10085 case "(($ac_try" in
10086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087   *) ac_try_echo=$ac_try;;
10088 esac
10089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10090 $as_echo "$ac_try_echo") >&5
10091   (eval "$ac_link") 2>conftest.er1
10092   ac_status=$?
10093   grep -v '^ *+' conftest.er1 >conftest.err
10094   rm -f conftest.er1
10095   cat conftest.err >&5
10096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } && {
10098          test -z "$ac_c_werror_flag" ||
10099          test ! -s conftest.err
10100        } && test -s conftest$ac_exeext && {
10101          test "$cross_compiling" = yes ||
10102          $as_test_x conftest$ac_exeext
10103        }; then
10104
10105 lt_aix_libpath_sed='
10106     /Import File Strings/,/^$/ {
10107         /^0/ {
10108             s/^0  *\(.*\)$/\1/
10109             p
10110         }
10111     }'
10112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10113 # Check for a 64-bit object if we didn't find anything.
10114 if test -z "$aix_libpath"; then
10115   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10116 fi
10117 else
10118   $as_echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10120
10121
10122 fi
10123
10124 rm -rf conftest.dSYM
10125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10126       conftest$ac_exeext conftest.$ac_ext
10127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10128
10129         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10130         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10131       else
10132         if test "$host_cpu" = ia64; then
10133           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10134           allow_undefined_flag="-z nodefs"
10135           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"
10136         else
10137          # Determine the default libpath from the value encoded in an
10138          # empty executable.
10139          cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h.  */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h.  */
10145
10146 int
10147 main ()
10148 {
10149
10150   ;
10151   return 0;
10152 }
10153 _ACEOF
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158   *) ac_try_echo=$ac_try;;
10159 esac
10160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10161 $as_echo "$ac_try_echo") >&5
10162   (eval "$ac_link") 2>conftest.er1
10163   ac_status=$?
10164   grep -v '^ *+' conftest.er1 >conftest.err
10165   rm -f conftest.er1
10166   cat conftest.err >&5
10167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); } && {
10169          test -z "$ac_c_werror_flag" ||
10170          test ! -s conftest.err
10171        } && test -s conftest$ac_exeext && {
10172          test "$cross_compiling" = yes ||
10173          $as_test_x conftest$ac_exeext
10174        }; then
10175
10176 lt_aix_libpath_sed='
10177     /Import File Strings/,/^$/ {
10178         /^0/ {
10179             s/^0  *\(.*\)$/\1/
10180             p
10181         }
10182     }'
10183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10184 # Check for a 64-bit object if we didn't find anything.
10185 if test -z "$aix_libpath"; then
10186   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10187 fi
10188 else
10189   $as_echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10191
10192
10193 fi
10194
10195 rm -rf conftest.dSYM
10196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10197       conftest$ac_exeext conftest.$ac_ext
10198 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10199
10200          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10201           # Warning - without using the other run time loading flags,
10202           # -berok will link without error, but may produce a broken library.
10203           no_undefined_flag=' ${wl}-bernotok'
10204           allow_undefined_flag=' ${wl}-berok'
10205           # Exported symbols can be pulled into shared objects from archives
10206           whole_archive_flag_spec='$convenience'
10207           archive_cmds_need_lc=yes
10208           # This is similar to how AIX traditionally builds its shared libraries.
10209           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'
10210         fi
10211       fi
10212       ;;
10213
10214     amigaos*)
10215       case $host_cpu in
10216       powerpc)
10217             # see comment about AmigaOS4 .so support
10218             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219             archive_expsym_cmds=''
10220         ;;
10221       m68k)
10222             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)'
10223             hardcode_libdir_flag_spec='-L$libdir'
10224             hardcode_minus_L=yes
10225         ;;
10226       esac
10227       ;;
10228
10229     bsdi[45]*)
10230       export_dynamic_flag_spec=-rdynamic
10231       ;;
10232
10233     cygwin* | mingw* | pw32* | cegcc*)
10234       # When not using gcc, we currently assume that we are using
10235       # Microsoft Visual C++.
10236       # hardcode_libdir_flag_spec is actually meaningless, as there is
10237       # no search path for DLLs.
10238       hardcode_libdir_flag_spec=' '
10239       allow_undefined_flag=unsupported
10240       # Tell ltmain to make .lib files, not .a files.
10241       libext=lib
10242       # Tell ltmain to make .dll files, not .so files.
10243       shrext_cmds=".dll"
10244       # FIXME: Setting linknames here is a bad hack.
10245       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10246       # The linker will automatically build a .lib file if we build a DLL.
10247       old_archive_from_new_cmds='true'
10248       # FIXME: Should let the user specify the lib program.
10249       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10250       fix_srcfile_path='`cygpath -w "$srcfile"`'
10251       enable_shared_with_static_runtimes=yes
10252       ;;
10253
10254     darwin* | rhapsody*)
10255
10256
10257   archive_cmds_need_lc=no
10258   hardcode_direct=no
10259   hardcode_automatic=yes
10260   hardcode_shlibpath_var=unsupported
10261   whole_archive_flag_spec=''
10262   link_all_deplibs=yes
10263   allow_undefined_flag="$_lt_dar_allow_undefined"
10264   case $cc_basename in
10265      ifort*) _lt_dar_can_shared=yes ;;
10266      *) _lt_dar_can_shared=$GCC ;;
10267   esac
10268   if test "$_lt_dar_can_shared" = "yes"; then
10269     output_verbose_link_cmd=echo
10270     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10271     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10272     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}"
10273     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}"
10274
10275   else
10276   ld_shlibs=no
10277   fi
10278
10279       ;;
10280
10281     dgux*)
10282       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10283       hardcode_libdir_flag_spec='-L$libdir'
10284       hardcode_shlibpath_var=no
10285       ;;
10286
10287     freebsd1*)
10288       ld_shlibs=no
10289       ;;
10290
10291     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10292     # support.  Future versions do this automatically, but an explicit c++rt0.o
10293     # does not break anything, and helps significantly (at the cost of a little
10294     # extra space).
10295     freebsd2.2*)
10296       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10297       hardcode_libdir_flag_spec='-R$libdir'
10298       hardcode_direct=yes
10299       hardcode_shlibpath_var=no
10300       ;;
10301
10302     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10303     freebsd2*)
10304       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10305       hardcode_direct=yes
10306       hardcode_minus_L=yes
10307       hardcode_shlibpath_var=no
10308       ;;
10309
10310     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10311     freebsd* | dragonfly*)
10312       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10313       hardcode_libdir_flag_spec='-R$libdir'
10314       hardcode_direct=yes
10315       hardcode_shlibpath_var=no
10316       ;;
10317
10318     hpux9*)
10319       if test "$GCC" = yes; then
10320         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10321       else
10322         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'
10323       fi
10324       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10325       hardcode_libdir_separator=:
10326       hardcode_direct=yes
10327
10328       # hardcode_minus_L: Not really in the search PATH,
10329       # but as the default location of the library.
10330       hardcode_minus_L=yes
10331       export_dynamic_flag_spec='${wl}-E'
10332       ;;
10333
10334     hpux10*)
10335       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10336         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10337       else
10338         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10339       fi
10340       if test "$with_gnu_ld" = no; then
10341         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10342         hardcode_libdir_flag_spec_ld='+b $libdir'
10343         hardcode_libdir_separator=:
10344         hardcode_direct=yes
10345         hardcode_direct_absolute=yes
10346         export_dynamic_flag_spec='${wl}-E'
10347         # hardcode_minus_L: Not really in the search PATH,
10348         # but as the default location of the library.
10349         hardcode_minus_L=yes
10350       fi
10351       ;;
10352
10353     hpux11*)
10354       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10355         case $host_cpu in
10356         hppa*64*)
10357           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10358           ;;
10359         ia64*)
10360           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10361           ;;
10362         *)
10363           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10364           ;;
10365         esac
10366       else
10367         case $host_cpu in
10368         hppa*64*)
10369           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10370           ;;
10371         ia64*)
10372           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10373           ;;
10374         *)
10375           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10376           ;;
10377         esac
10378       fi
10379       if test "$with_gnu_ld" = no; then
10380         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10381         hardcode_libdir_separator=:
10382
10383         case $host_cpu in
10384         hppa*64*|ia64*)
10385           hardcode_direct=no
10386           hardcode_shlibpath_var=no
10387           ;;
10388         *)
10389           hardcode_direct=yes
10390           hardcode_direct_absolute=yes
10391           export_dynamic_flag_spec='${wl}-E'
10392
10393           # hardcode_minus_L: Not really in the search PATH,
10394           # but as the default location of the library.
10395           hardcode_minus_L=yes
10396           ;;
10397         esac
10398       fi
10399       ;;
10400
10401     irix5* | irix6* | nonstopux*)
10402       if test "$GCC" = yes; then
10403         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10404         # Try to use the -exported_symbol ld option, if it does not
10405         # work, assume that -exports_file does not work either and
10406         # implicitly export all symbols.
10407         save_LDFLAGS="$LDFLAGS"
10408         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10409         cat >conftest.$ac_ext <<_ACEOF
10410 int foo(void) {}
10411 _ACEOF
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (ac_try="$ac_link"
10414 case "(($ac_try" in
10415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10416   *) ac_try_echo=$ac_try;;
10417 esac
10418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10419 $as_echo "$ac_try_echo") >&5
10420   (eval "$ac_link") 2>conftest.er1
10421   ac_status=$?
10422   grep -v '^ *+' conftest.er1 >conftest.err
10423   rm -f conftest.er1
10424   cat conftest.err >&5
10425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } && {
10427          test -z "$ac_c_werror_flag" ||
10428          test ! -s conftest.err
10429        } && test -s conftest$ac_exeext && {
10430          test "$cross_compiling" = yes ||
10431          $as_test_x conftest$ac_exeext
10432        }; then
10433   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10434
10435 else
10436   $as_echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439
10440 fi
10441
10442 rm -rf conftest.dSYM
10443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10444       conftest$ac_exeext conftest.$ac_ext
10445         LDFLAGS="$save_LDFLAGS"
10446       else
10447         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10448         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10449       fi
10450       archive_cmds_need_lc='no'
10451       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10452       hardcode_libdir_separator=:
10453       inherit_rpath=yes
10454       link_all_deplibs=yes
10455       ;;
10456
10457     netbsd*)
10458       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10459         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10460       else
10461         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10462       fi
10463       hardcode_libdir_flag_spec='-R$libdir'
10464       hardcode_direct=yes
10465       hardcode_shlibpath_var=no
10466       ;;
10467
10468     newsos6)
10469       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10470       hardcode_direct=yes
10471       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10472       hardcode_libdir_separator=:
10473       hardcode_shlibpath_var=no
10474       ;;
10475
10476     *nto* | *qnx*)
10477       ;;
10478
10479     openbsd*)
10480       if test -f /usr/libexec/ld.so; then
10481         hardcode_direct=yes
10482         hardcode_shlibpath_var=no
10483         hardcode_direct_absolute=yes
10484         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10485           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10486           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10487           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10488           export_dynamic_flag_spec='${wl}-E'
10489         else
10490           case $host_os in
10491            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10492              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10493              hardcode_libdir_flag_spec='-R$libdir'
10494              ;;
10495            *)
10496              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10497              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10498              ;;
10499           esac
10500         fi
10501       else
10502         ld_shlibs=no
10503       fi
10504       ;;
10505
10506     os2*)
10507       hardcode_libdir_flag_spec='-L$libdir'
10508       hardcode_minus_L=yes
10509       allow_undefined_flag=unsupported
10510       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'
10511       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10512       ;;
10513
10514     osf3*)
10515       if test "$GCC" = yes; then
10516         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10517         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10518       else
10519         allow_undefined_flag=' -expect_unresolved \*'
10520         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10521       fi
10522       archive_cmds_need_lc='no'
10523       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10524       hardcode_libdir_separator=:
10525       ;;
10526
10527     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10528       if test "$GCC" = yes; then
10529         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10530         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10531         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10532       else
10533         allow_undefined_flag=' -expect_unresolved \*'
10534         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10535         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~
10536         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10537
10538         # Both c and cxx compiler support -rpath directly
10539         hardcode_libdir_flag_spec='-rpath $libdir'
10540       fi
10541       archive_cmds_need_lc='no'
10542       hardcode_libdir_separator=:
10543       ;;
10544
10545     solaris*)
10546       no_undefined_flag=' -z defs'
10547       if test "$GCC" = yes; then
10548         wlarc='${wl}'
10549         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10550         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10551           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10552       else
10553         case `$CC -V 2>&1` in
10554         *"Compilers 5.0"*)
10555           wlarc=''
10556           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10558           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10559           ;;
10560         *)
10561           wlarc='${wl}'
10562           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10563           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10564           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10565           ;;
10566         esac
10567       fi
10568       hardcode_libdir_flag_spec='-R$libdir'
10569       hardcode_shlibpath_var=no
10570       case $host_os in
10571       solaris2.[0-5] | solaris2.[0-5].*) ;;
10572       *)
10573         # The compiler driver will combine and reorder linker options,
10574         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10575         # but is careful enough not to reorder.
10576         # Supported since Solaris 2.6 (maybe 2.5.1?)
10577         if test "$GCC" = yes; then
10578           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10579         else
10580           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10581         fi
10582         ;;
10583       esac
10584       link_all_deplibs=yes
10585       ;;
10586
10587     sunos4*)
10588       if test "x$host_vendor" = xsequent; then
10589         # Use $CC to link under sequent, because it throws in some extra .o
10590         # files that make .init and .fini sections work.
10591         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10592       else
10593         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10594       fi
10595       hardcode_libdir_flag_spec='-L$libdir'
10596       hardcode_direct=yes
10597       hardcode_minus_L=yes
10598       hardcode_shlibpath_var=no
10599       ;;
10600
10601     sysv4)
10602       case $host_vendor in
10603         sni)
10604           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10605           hardcode_direct=yes # is this really true???
10606         ;;
10607         siemens)
10608           ## LD is ld it makes a PLAMLIB
10609           ## CC just makes a GrossModule.
10610           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10611           reload_cmds='$CC -r -o $output$reload_objs'
10612           hardcode_direct=no
10613         ;;
10614         motorola)
10615           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10616           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10617         ;;
10618       esac
10619       runpath_var='LD_RUN_PATH'
10620       hardcode_shlibpath_var=no
10621       ;;
10622
10623     sysv4.3*)
10624       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625       hardcode_shlibpath_var=no
10626       export_dynamic_flag_spec='-Bexport'
10627       ;;
10628
10629     sysv4*MP*)
10630       if test -d /usr/nec; then
10631         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632         hardcode_shlibpath_var=no
10633         runpath_var=LD_RUN_PATH
10634         hardcode_runpath_var=yes
10635         ld_shlibs=yes
10636       fi
10637       ;;
10638
10639     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10640       no_undefined_flag='${wl}-z,text'
10641       archive_cmds_need_lc=no
10642       hardcode_shlibpath_var=no
10643       runpath_var='LD_RUN_PATH'
10644
10645       if test "$GCC" = yes; then
10646         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648       else
10649         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651       fi
10652       ;;
10653
10654     sysv5* | sco3.2v5* | sco5v6*)
10655       # Note: We can NOT use -z defs as we might desire, because we do not
10656       # link with -lc, and that would cause any symbols used from libc to
10657       # always be unresolved, which means just about no library would
10658       # ever link correctly.  If we're not using GNU ld we use -z text
10659       # though, which does catch some bad symbols but isn't as heavy-handed
10660       # as -z defs.
10661       no_undefined_flag='${wl}-z,text'
10662       allow_undefined_flag='${wl}-z,nodefs'
10663       archive_cmds_need_lc=no
10664       hardcode_shlibpath_var=no
10665       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10666       hardcode_libdir_separator=':'
10667       link_all_deplibs=yes
10668       export_dynamic_flag_spec='${wl}-Bexport'
10669       runpath_var='LD_RUN_PATH'
10670
10671       if test "$GCC" = yes; then
10672         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10674       else
10675         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10677       fi
10678       ;;
10679
10680     uts4*)
10681       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10682       hardcode_libdir_flag_spec='-L$libdir'
10683       hardcode_shlibpath_var=no
10684       ;;
10685
10686     *)
10687       ld_shlibs=no
10688       ;;
10689     esac
10690
10691     if test x$host_vendor = xsni; then
10692       case $host in
10693       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10694         export_dynamic_flag_spec='${wl}-Blargedynsym'
10695         ;;
10696       esac
10697     fi
10698   fi
10699
10700 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10701 $as_echo "$ld_shlibs" >&6; }
10702 test "$ld_shlibs" = no && can_build_shared=no
10703
10704 with_gnu_ld=$with_gnu_ld
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720 #
10721 # Do we need to explicitly link libc?
10722 #
10723 case "x$archive_cmds_need_lc" in
10724 x|xyes)
10725   # Assume -lc should be added
10726   archive_cmds_need_lc=yes
10727
10728   if test "$enable_shared" = yes && test "$GCC" = yes; then
10729     case $archive_cmds in
10730     *'~'*)
10731       # FIXME: we may have to deal with multi-command sequences.
10732       ;;
10733     '$CC '*)
10734       # Test whether the compiler implicitly links with -lc since on some
10735       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10736       # to ld, don't add -lc before -lgcc.
10737       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10738 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10739       $RM conftest*
10740       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10741
10742       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10743   (eval $ac_compile) 2>&5
10744   ac_status=$?
10745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } 2>conftest.err; then
10747         soname=conftest
10748         lib=conftest
10749         libobjs=conftest.$ac_objext
10750         deplibs=
10751         wl=$lt_prog_compiler_wl
10752         pic_flag=$lt_prog_compiler_pic
10753         compiler_flags=-v
10754         linker_flags=-v
10755         verstring=
10756         output_objdir=.
10757         libname=conftest
10758         lt_save_allow_undefined_flag=$allow_undefined_flag
10759         allow_undefined_flag=
10760         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10761   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10762   ac_status=$?
10763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }
10765         then
10766           archive_cmds_need_lc=no
10767         else
10768           archive_cmds_need_lc=yes
10769         fi
10770         allow_undefined_flag=$lt_save_allow_undefined_flag
10771       else
10772         cat conftest.err 1>&5
10773       fi
10774       $RM conftest*
10775       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10776 $as_echo "$archive_cmds_need_lc" >&6; }
10777       ;;
10778     esac
10779   fi
10780   ;;
10781 esac
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10940 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10941
10942 if test "$GCC" = yes; then
10943   case $host_os in
10944     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10945     *) lt_awk_arg="/^libraries:/" ;;
10946   esac
10947   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10948   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10949     # if the path contains ";" then we assume it to be the separator
10950     # otherwise default to the standard path separator (i.e. ":") - it is
10951     # assumed that no part of a normal pathname contains ";" but that should
10952     # okay in the real world where ";" in dirpaths is itself problematic.
10953     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10954   else
10955     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10956   fi
10957   # Ok, now we have the path, separated by spaces, we can step through it
10958   # and add multilib dir if necessary.
10959   lt_tmp_lt_search_path_spec=
10960   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10961   for lt_sys_path in $lt_search_path_spec; do
10962     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10963       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10964     else
10965       test -d "$lt_sys_path" && \
10966         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10967     fi
10968   done
10969   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10970 BEGIN {RS=" "; FS="/|\n";} {
10971   lt_foo="";
10972   lt_count=0;
10973   for (lt_i = NF; lt_i > 0; lt_i--) {
10974     if ($lt_i != "" && $lt_i != ".") {
10975       if ($lt_i == "..") {
10976         lt_count++;
10977       } else {
10978         if (lt_count == 0) {
10979           lt_foo="/" $lt_i lt_foo;
10980         } else {
10981           lt_count--;
10982         }
10983       }
10984     }
10985   }
10986   if (lt_foo != "") { lt_freq[lt_foo]++; }
10987   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10988 }'`
10989   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10990 else
10991   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10992 fi
10993 library_names_spec=
10994 libname_spec='lib$name'
10995 soname_spec=
10996 shrext_cmds=".so"
10997 postinstall_cmds=
10998 postuninstall_cmds=
10999 finish_cmds=
11000 finish_eval=
11001 shlibpath_var=
11002 shlibpath_overrides_runpath=unknown
11003 version_type=none
11004 dynamic_linker="$host_os ld.so"
11005 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11006 need_lib_prefix=unknown
11007 hardcode_into_libs=no
11008
11009 # when you set need_version to no, make sure it does not cause -set_version
11010 # flags to be left without arguments
11011 need_version=unknown
11012
11013 case $host_os in
11014 aix3*)
11015   version_type=linux
11016   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11017   shlibpath_var=LIBPATH
11018
11019   # AIX 3 has no versioning support, so we append a major version to the name.
11020   soname_spec='${libname}${release}${shared_ext}$major'
11021   ;;
11022
11023 aix[4-9]*)
11024   version_type=linux
11025   need_lib_prefix=no
11026   need_version=no
11027   hardcode_into_libs=yes
11028   if test "$host_cpu" = ia64; then
11029     # AIX 5 supports IA64
11030     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11031     shlibpath_var=LD_LIBRARY_PATH
11032   else
11033     # With GCC up to 2.95.x, collect2 would create an import file
11034     # for dependence libraries.  The import file would start with
11035     # the line `#! .'.  This would cause the generated library to
11036     # depend on `.', always an invalid library.  This was fixed in
11037     # development snapshots of GCC prior to 3.0.
11038     case $host_os in
11039       aix4 | aix4.[01] | aix4.[01].*)
11040       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11041            echo ' yes '
11042            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11043         :
11044       else
11045         can_build_shared=no
11046       fi
11047       ;;
11048     esac
11049     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11050     # soname into executable. Probably we can add versioning support to
11051     # collect2, so additional links can be useful in future.
11052     if test "$aix_use_runtimelinking" = yes; then
11053       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11054       # instead of lib<name>.a to let people know that these are not
11055       # typical AIX shared libraries.
11056       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057     else
11058       # We preserve .a as extension for shared libraries through AIX4.2
11059       # and later when we are not doing run time linking.
11060       library_names_spec='${libname}${release}.a $libname.a'
11061       soname_spec='${libname}${release}${shared_ext}$major'
11062     fi
11063     shlibpath_var=LIBPATH
11064   fi
11065   ;;
11066
11067 amigaos*)
11068   case $host_cpu in
11069   powerpc)
11070     # Since July 2007 AmigaOS4 officially supports .so libraries.
11071     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11073     ;;
11074   m68k)
11075     library_names_spec='$libname.ixlibrary $libname.a'
11076     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11077     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
11078     ;;
11079   esac
11080   ;;
11081
11082 beos*)
11083   library_names_spec='${libname}${shared_ext}'
11084   dynamic_linker="$host_os ld.so"
11085   shlibpath_var=LIBRARY_PATH
11086   ;;
11087
11088 bsdi[45]*)
11089   version_type=linux
11090   need_version=no
11091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092   soname_spec='${libname}${release}${shared_ext}$major'
11093   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11094   shlibpath_var=LD_LIBRARY_PATH
11095   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11096   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11097   # the default ld.so.conf also contains /usr/contrib/lib and
11098   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11099   # libtool to hard-code these into programs
11100   ;;
11101
11102 cygwin* | mingw* | pw32* | cegcc*)
11103   version_type=windows
11104   shrext_cmds=".dll"
11105   need_version=no
11106   need_lib_prefix=no
11107
11108   case $GCC,$host_os in
11109   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11110     library_names_spec='$libname.dll.a'
11111     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11112     postinstall_cmds='base_file=`basename \${file}`~
11113       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11114       dldir=$destdir/`dirname \$dlpath`~
11115       test -d \$dldir || mkdir -p \$dldir~
11116       $install_prog $dir/$dlname \$dldir/$dlname~
11117       chmod a+x \$dldir/$dlname~
11118       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11119         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11120       fi'
11121     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11122       dlpath=$dir/\$dldll~
11123        $RM \$dlpath'
11124     shlibpath_overrides_runpath=yes
11125
11126     case $host_os in
11127     cygwin*)
11128       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11129       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11130       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11131       ;;
11132     mingw* | cegcc*)
11133       # MinGW DLLs use traditional 'lib' prefix
11134       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11135       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11136       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11137         # It is most probably a Windows format PATH printed by
11138         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11139         # path with ; separators, and with drive letters. We can handle the
11140         # drive letters (cygwin fileutils understands them), so leave them,
11141         # especially as we might pass files found there to a mingw objdump,
11142         # which wouldn't understand a cygwinified path. Ahh.
11143         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11144       else
11145         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11146       fi
11147       ;;
11148     pw32*)
11149       # pw32 DLLs use 'pw' prefix rather than 'lib'
11150       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11151       ;;
11152     esac
11153     ;;
11154
11155   *)
11156     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11157     ;;
11158   esac
11159   dynamic_linker='Win32 ld.exe'
11160   # FIXME: first we should search . and the directory the executable is in
11161   shlibpath_var=PATH
11162   ;;
11163
11164 darwin* | rhapsody*)
11165   dynamic_linker="$host_os dyld"
11166   version_type=darwin
11167   need_lib_prefix=no
11168   need_version=no
11169   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11170   soname_spec='${libname}${release}${major}$shared_ext'
11171   shlibpath_overrides_runpath=yes
11172   shlibpath_var=DYLD_LIBRARY_PATH
11173   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11174
11175   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11176   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11177   ;;
11178
11179 dgux*)
11180   version_type=linux
11181   need_lib_prefix=no
11182   need_version=no
11183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11184   soname_spec='${libname}${release}${shared_ext}$major'
11185   shlibpath_var=LD_LIBRARY_PATH
11186   ;;
11187
11188 freebsd1*)
11189   dynamic_linker=no
11190   ;;
11191
11192 freebsd* | dragonfly*)
11193   # DragonFly does not have aout.  When/if they implement a new
11194   # versioning mechanism, adjust this.
11195   if test -x /usr/bin/objformat; then
11196     objformat=`/usr/bin/objformat`
11197   else
11198     case $host_os in
11199     freebsd[123]*) objformat=aout ;;
11200     *) objformat=elf ;;
11201     esac
11202   fi
11203   version_type=freebsd-$objformat
11204   case $version_type in
11205     freebsd-elf*)
11206       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11207       need_version=no
11208       need_lib_prefix=no
11209       ;;
11210     freebsd-*)
11211       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11212       need_version=yes
11213       ;;
11214   esac
11215   shlibpath_var=LD_LIBRARY_PATH
11216   case $host_os in
11217   freebsd2*)
11218     shlibpath_overrides_runpath=yes
11219     ;;
11220   freebsd3.[01]* | freebsdelf3.[01]*)
11221     shlibpath_overrides_runpath=yes
11222     hardcode_into_libs=yes
11223     ;;
11224   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11225   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11226     shlibpath_overrides_runpath=no
11227     hardcode_into_libs=yes
11228     ;;
11229   *) # from 4.6 on, and DragonFly
11230     shlibpath_overrides_runpath=yes
11231     hardcode_into_libs=yes
11232     ;;
11233   esac
11234   ;;
11235
11236 gnu*)
11237   version_type=linux
11238   need_lib_prefix=no
11239   need_version=no
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11241   soname_spec='${libname}${release}${shared_ext}$major'
11242   shlibpath_var=LD_LIBRARY_PATH
11243   hardcode_into_libs=yes
11244   ;;
11245
11246 hpux9* | hpux10* | hpux11*)
11247   # Give a soname corresponding to the major version so that dld.sl refuses to
11248   # link against other versions.
11249   version_type=sunos
11250   need_lib_prefix=no
11251   need_version=no
11252   case $host_cpu in
11253   ia64*)
11254     shrext_cmds='.so'
11255     hardcode_into_libs=yes
11256     dynamic_linker="$host_os dld.so"
11257     shlibpath_var=LD_LIBRARY_PATH
11258     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260     soname_spec='${libname}${release}${shared_ext}$major'
11261     if test "X$HPUX_IA64_MODE" = X32; then
11262       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11263     else
11264       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11265     fi
11266     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11267     ;;
11268   hppa*64*)
11269     shrext_cmds='.sl'
11270     hardcode_into_libs=yes
11271     dynamic_linker="$host_os dld.sl"
11272     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11273     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275     soname_spec='${libname}${release}${shared_ext}$major'
11276     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11277     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11278     ;;
11279   *)
11280     shrext_cmds='.sl'
11281     dynamic_linker="$host_os dld.sl"
11282     shlibpath_var=SHLIB_PATH
11283     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285     soname_spec='${libname}${release}${shared_ext}$major'
11286     ;;
11287   esac
11288   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11289   postinstall_cmds='chmod 555 $lib'
11290   ;;
11291
11292 interix[3-9]*)
11293   version_type=linux
11294   need_lib_prefix=no
11295   need_version=no
11296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11297   soname_spec='${libname}${release}${shared_ext}$major'
11298   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11299   shlibpath_var=LD_LIBRARY_PATH
11300   shlibpath_overrides_runpath=no
11301   hardcode_into_libs=yes
11302   ;;
11303
11304 irix5* | irix6* | nonstopux*)
11305   case $host_os in
11306     nonstopux*) version_type=nonstopux ;;
11307     *)
11308         if test "$lt_cv_prog_gnu_ld" = yes; then
11309                 version_type=linux
11310         else
11311                 version_type=irix
11312         fi ;;
11313   esac
11314   need_lib_prefix=no
11315   need_version=no
11316   soname_spec='${libname}${release}${shared_ext}$major'
11317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11318   case $host_os in
11319   irix5* | nonstopux*)
11320     libsuff= shlibsuff=
11321     ;;
11322   *)
11323     case $LD in # libtool.m4 will add one of these switches to LD
11324     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11325       libsuff= shlibsuff= libmagic=32-bit;;
11326     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11327       libsuff=32 shlibsuff=N32 libmagic=N32;;
11328     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11329       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11330     *) libsuff= shlibsuff= libmagic=never-match;;
11331     esac
11332     ;;
11333   esac
11334   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11335   shlibpath_overrides_runpath=no
11336   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11337   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11338   hardcode_into_libs=yes
11339   ;;
11340
11341 # No shared lib support for Linux oldld, aout, or coff.
11342 linux*oldld* | linux*aout* | linux*coff*)
11343   dynamic_linker=no
11344   ;;
11345
11346 # This must be Linux ELF.
11347 linux* | k*bsd*-gnu)
11348   version_type=linux
11349   need_lib_prefix=no
11350   need_version=no
11351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352   soname_spec='${libname}${release}${shared_ext}$major'
11353   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11354   shlibpath_var=LD_LIBRARY_PATH
11355   shlibpath_overrides_runpath=no
11356   # Some binutils ld are patched to set DT_RUNPATH
11357   save_LDFLAGS=$LDFLAGS
11358   save_libdir=$libdir
11359   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11360        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11361   cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h.  */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h.  */
11367
11368 int
11369 main ()
11370 {
11371
11372   ;
11373   return 0;
11374 }
11375 _ACEOF
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (ac_try="$ac_link"
11378 case "(($ac_try" in
11379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380   *) ac_try_echo=$ac_try;;
11381 esac
11382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11383 $as_echo "$ac_try_echo") >&5
11384   (eval "$ac_link") 2>conftest.er1
11385   ac_status=$?
11386   grep -v '^ *+' conftest.er1 >conftest.err
11387   rm -f conftest.er1
11388   cat conftest.err >&5
11389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); } && {
11391          test -z "$ac_c_werror_flag" ||
11392          test ! -s conftest.err
11393        } && test -s conftest$ac_exeext && {
11394          test "$cross_compiling" = yes ||
11395          $as_test_x conftest$ac_exeext
11396        }; then
11397   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11398   shlibpath_overrides_runpath=yes
11399 fi
11400
11401 else
11402   $as_echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405
11406 fi
11407
11408 rm -rf conftest.dSYM
11409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11410       conftest$ac_exeext conftest.$ac_ext
11411   LDFLAGS=$save_LDFLAGS
11412   libdir=$save_libdir
11413
11414   # This implies no fast_install, which is unacceptable.
11415   # Some rework will be needed to allow for fast_install
11416   # before this can be enabled.
11417   hardcode_into_libs=yes
11418
11419   # Append ld.so.conf contents to the search path
11420   if test -f /etc/ld.so.conf; then
11421     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;/^$/d' | tr '\n' ' '`
11422     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11423   fi
11424
11425   # We used to test for /lib/ld.so.1 and disable shared libraries on
11426   # powerpc, because MkLinux only supported shared libraries with the
11427   # GNU dynamic linker.  Since this was broken with cross compilers,
11428   # most powerpc-linux boxes support dynamic linking these days and
11429   # people can always --disable-shared, the test was removed, and we
11430   # assume the GNU/Linux dynamic linker is in use.
11431   dynamic_linker='GNU/Linux ld.so'
11432   ;;
11433
11434 netbsd*)
11435   version_type=sunos
11436   need_lib_prefix=no
11437   need_version=no
11438   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11440     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11441     dynamic_linker='NetBSD (a.out) ld.so'
11442   else
11443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11444     soname_spec='${libname}${release}${shared_ext}$major'
11445     dynamic_linker='NetBSD ld.elf_so'
11446   fi
11447   shlibpath_var=LD_LIBRARY_PATH
11448   shlibpath_overrides_runpath=yes
11449   hardcode_into_libs=yes
11450   ;;
11451
11452 newsos6)
11453   version_type=linux
11454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455   shlibpath_var=LD_LIBRARY_PATH
11456   shlibpath_overrides_runpath=yes
11457   ;;
11458
11459 *nto* | *qnx*)
11460   version_type=qnx
11461   need_lib_prefix=no
11462   need_version=no
11463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464   soname_spec='${libname}${release}${shared_ext}$major'
11465   shlibpath_var=LD_LIBRARY_PATH
11466   shlibpath_overrides_runpath=no
11467   hardcode_into_libs=yes
11468   dynamic_linker='ldqnx.so'
11469   ;;
11470
11471 openbsd*)
11472   version_type=sunos
11473   sys_lib_dlsearch_path_spec="/usr/lib"
11474   need_lib_prefix=no
11475   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11476   case $host_os in
11477     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11478     *)                          need_version=no  ;;
11479   esac
11480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11481   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11482   shlibpath_var=LD_LIBRARY_PATH
11483   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11484     case $host_os in
11485       openbsd2.[89] | openbsd2.[89].*)
11486         shlibpath_overrides_runpath=no
11487         ;;
11488       *)
11489         shlibpath_overrides_runpath=yes
11490         ;;
11491       esac
11492   else
11493     shlibpath_overrides_runpath=yes
11494   fi
11495   ;;
11496
11497 os2*)
11498   libname_spec='$name'
11499   shrext_cmds=".dll"
11500   need_lib_prefix=no
11501   library_names_spec='$libname${shared_ext} $libname.a'
11502   dynamic_linker='OS/2 ld.exe'
11503   shlibpath_var=LIBPATH
11504   ;;
11505
11506 osf3* | osf4* | osf5*)
11507   version_type=osf
11508   need_lib_prefix=no
11509   need_version=no
11510   soname_spec='${libname}${release}${shared_ext}$major'
11511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512   shlibpath_var=LD_LIBRARY_PATH
11513   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11514   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11515   ;;
11516
11517 rdos*)
11518   dynamic_linker=no
11519   ;;
11520
11521 solaris*)
11522   version_type=linux
11523   need_lib_prefix=no
11524   need_version=no
11525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526   soname_spec='${libname}${release}${shared_ext}$major'
11527   shlibpath_var=LD_LIBRARY_PATH
11528   shlibpath_overrides_runpath=yes
11529   hardcode_into_libs=yes
11530   # ldd complains unless libraries are executable
11531   postinstall_cmds='chmod +x $lib'
11532   ;;
11533
11534 sunos4*)
11535   version_type=sunos
11536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11537   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11538   shlibpath_var=LD_LIBRARY_PATH
11539   shlibpath_overrides_runpath=yes
11540   if test "$with_gnu_ld" = yes; then
11541     need_lib_prefix=no
11542   fi
11543   need_version=yes
11544   ;;
11545
11546 sysv4 | sysv4.3*)
11547   version_type=linux
11548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549   soname_spec='${libname}${release}${shared_ext}$major'
11550   shlibpath_var=LD_LIBRARY_PATH
11551   case $host_vendor in
11552     sni)
11553       shlibpath_overrides_runpath=no
11554       need_lib_prefix=no
11555       runpath_var=LD_RUN_PATH
11556       ;;
11557     siemens)
11558       need_lib_prefix=no
11559       ;;
11560     motorola)
11561       need_lib_prefix=no
11562       need_version=no
11563       shlibpath_overrides_runpath=no
11564       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11565       ;;
11566   esac
11567   ;;
11568
11569 sysv4*MP*)
11570   if test -d /usr/nec ;then
11571     version_type=linux
11572     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11573     soname_spec='$libname${shared_ext}.$major'
11574     shlibpath_var=LD_LIBRARY_PATH
11575   fi
11576   ;;
11577
11578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11579   version_type=freebsd-elf
11580   need_lib_prefix=no
11581   need_version=no
11582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11583   soname_spec='${libname}${release}${shared_ext}$major'
11584   shlibpath_var=LD_LIBRARY_PATH
11585   shlibpath_overrides_runpath=yes
11586   hardcode_into_libs=yes
11587   if test "$with_gnu_ld" = yes; then
11588     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11589   else
11590     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11591     case $host_os in
11592       sco3.2v5*)
11593         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11594         ;;
11595     esac
11596   fi
11597   sys_lib_dlsearch_path_spec='/usr/lib'
11598   ;;
11599
11600 tpf*)
11601   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11602   version_type=linux
11603   need_lib_prefix=no
11604   need_version=no
11605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606   shlibpath_var=LD_LIBRARY_PATH
11607   shlibpath_overrides_runpath=no
11608   hardcode_into_libs=yes
11609   ;;
11610
11611 uts4*)
11612   version_type=linux
11613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11614   soname_spec='${libname}${release}${shared_ext}$major'
11615   shlibpath_var=LD_LIBRARY_PATH
11616   ;;
11617
11618 *)
11619   dynamic_linker=no
11620   ;;
11621 esac
11622 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11623 $as_echo "$dynamic_linker" >&6; }
11624 test "$dynamic_linker" = no && can_build_shared=no
11625
11626 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11627 if test "$GCC" = yes; then
11628   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11629 fi
11630
11631 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11632   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11633 fi
11634 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11635   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11636 fi
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11725 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11726 hardcode_action=
11727 if test -n "$hardcode_libdir_flag_spec" ||
11728    test -n "$runpath_var" ||
11729    test "X$hardcode_automatic" = "Xyes" ; then
11730
11731   # We can hardcode non-existent directories.
11732   if test "$hardcode_direct" != no &&
11733      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11734      # have to relink, otherwise we might link with an installed library
11735      # when we should be linking with a yet-to-be-installed one
11736      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11737      test "$hardcode_minus_L" != no; then
11738     # Linking always hardcodes the temporary library directory.
11739     hardcode_action=relink
11740   else
11741     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11742     hardcode_action=immediate
11743   fi
11744 else
11745   # We cannot hardcode anything, or else we can only hardcode existing
11746   # directories.
11747   hardcode_action=unsupported
11748 fi
11749 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11750 $as_echo "$hardcode_action" >&6; }
11751
11752 if test "$hardcode_action" = relink ||
11753    test "$inherit_rpath" = yes; then
11754   # Fast installation is not supported
11755   enable_fast_install=no
11756 elif test "$shlibpath_overrides_runpath" = yes ||
11757      test "$enable_shared" = no; then
11758   # Fast installation is not necessary
11759   enable_fast_install=needless
11760 fi
11761
11762
11763
11764
11765
11766
11767   if test "x$enable_dlopen" != xyes; then
11768   enable_dlopen=unknown
11769   enable_dlopen_self=unknown
11770   enable_dlopen_self_static=unknown
11771 else
11772   lt_cv_dlopen=no
11773   lt_cv_dlopen_libs=
11774
11775   case $host_os in
11776   beos*)
11777     lt_cv_dlopen="load_add_on"
11778     lt_cv_dlopen_libs=
11779     lt_cv_dlopen_self=yes
11780     ;;
11781
11782   mingw* | pw32* | cegcc*)
11783     lt_cv_dlopen="LoadLibrary"
11784     lt_cv_dlopen_libs=
11785     ;;
11786
11787   cygwin*)
11788     lt_cv_dlopen="dlopen"
11789     lt_cv_dlopen_libs=
11790     ;;
11791
11792   darwin*)
11793   # if libdl is installed we need to link against it
11794     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11795 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11797   $as_echo_n "(cached) " >&6
11798 else
11799   ac_check_lib_save_LIBS=$LIBS
11800 LIBS="-ldl  $LIBS"
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807
11808 /* Override any GCC internal prototype to avoid an error.
11809    Use char because int might match the return type of a GCC
11810    builtin and then its argument prototype would still apply.  */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 char dlopen ();
11815 int
11816 main ()
11817 {
11818 return dlopen ();
11819   ;
11820   return 0;
11821 }
11822 _ACEOF
11823 rm -f conftest.$ac_objext conftest$ac_exeext
11824 if { (ac_try="$ac_link"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11830 $as_echo "$ac_try_echo") >&5
11831   (eval "$ac_link") 2>conftest.er1
11832   ac_status=$?
11833   grep -v '^ *+' conftest.er1 >conftest.err
11834   rm -f conftest.er1
11835   cat conftest.err >&5
11836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } && {
11838          test -z "$ac_c_werror_flag" ||
11839          test ! -s conftest.err
11840        } && test -s conftest$ac_exeext && {
11841          test "$cross_compiling" = yes ||
11842          $as_test_x conftest$ac_exeext
11843        }; then
11844   ac_cv_lib_dl_dlopen=yes
11845 else
11846   $as_echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849         ac_cv_lib_dl_dlopen=no
11850 fi
11851
11852 rm -rf conftest.dSYM
11853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11854       conftest$ac_exeext conftest.$ac_ext
11855 LIBS=$ac_check_lib_save_LIBS
11856 fi
11857 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11858 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11859 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11860   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11861 else
11862
11863     lt_cv_dlopen="dyld"
11864     lt_cv_dlopen_libs=
11865     lt_cv_dlopen_self=yes
11866
11867 fi
11868
11869     ;;
11870
11871   *)
11872     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11873 $as_echo_n "checking for shl_load... " >&6; }
11874 if test "${ac_cv_func_shl_load+set}" = set; then
11875   $as_echo_n "(cached) " >&6
11876 else
11877   cat >conftest.$ac_ext <<_ACEOF
11878 /* confdefs.h.  */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h.  */
11883 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11885 #define shl_load innocuous_shl_load
11886
11887 /* System header to define __stub macros and hopefully few prototypes,
11888     which can conflict with char shl_load (); below.
11889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11890     <limits.h> exists even on freestanding compilers.  */
11891
11892 #ifdef __STDC__
11893 # include <limits.h>
11894 #else
11895 # include <assert.h>
11896 #endif
11897
11898 #undef shl_load
11899
11900 /* Override any GCC internal prototype to avoid an error.
11901    Use char because int might match the return type of a GCC
11902    builtin and then its argument prototype would still apply.  */
11903 #ifdef __cplusplus
11904 extern "C"
11905 #endif
11906 char shl_load ();
11907 /* The GNU C library defines this for functions which it implements
11908     to always fail with ENOSYS.  Some functions are actually named
11909     something starting with __ and the normal name is an alias.  */
11910 #if defined __stub_shl_load || defined __stub___shl_load
11911 choke me
11912 #endif
11913
11914 int
11915 main ()
11916 {
11917 return shl_load ();
11918   ;
11919   return 0;
11920 }
11921 _ACEOF
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (ac_try="$ac_link"
11924 case "(($ac_try" in
11925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926   *) ac_try_echo=$ac_try;;
11927 esac
11928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11929 $as_echo "$ac_try_echo") >&5
11930   (eval "$ac_link") 2>conftest.er1
11931   ac_status=$?
11932   grep -v '^ *+' conftest.er1 >conftest.err
11933   rm -f conftest.er1
11934   cat conftest.err >&5
11935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); } && {
11937          test -z "$ac_c_werror_flag" ||
11938          test ! -s conftest.err
11939        } && test -s conftest$ac_exeext && {
11940          test "$cross_compiling" = yes ||
11941          $as_test_x conftest$ac_exeext
11942        }; then
11943   ac_cv_func_shl_load=yes
11944 else
11945   $as_echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11947
11948         ac_cv_func_shl_load=no
11949 fi
11950
11951 rm -rf conftest.dSYM
11952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11953       conftest$ac_exeext conftest.$ac_ext
11954 fi
11955 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11956 $as_echo "$ac_cv_func_shl_load" >&6; }
11957 if test "x$ac_cv_func_shl_load" = x""yes; then
11958   lt_cv_dlopen="shl_load"
11959 else
11960   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11961 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11962 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11963   $as_echo_n "(cached) " >&6
11964 else
11965   ac_check_lib_save_LIBS=$LIBS
11966 LIBS="-ldld  $LIBS"
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h.  */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h.  */
11973
11974 /* Override any GCC internal prototype to avoid an error.
11975    Use char because int might match the return type of a GCC
11976    builtin and then its argument prototype would still apply.  */
11977 #ifdef __cplusplus
11978 extern "C"
11979 #endif
11980 char shl_load ();
11981 int
11982 main ()
11983 {
11984 return shl_load ();
11985   ;
11986   return 0;
11987 }
11988 _ACEOF
11989 rm -f conftest.$ac_objext conftest$ac_exeext
11990 if { (ac_try="$ac_link"
11991 case "(($ac_try" in
11992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993   *) ac_try_echo=$ac_try;;
11994 esac
11995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11996 $as_echo "$ac_try_echo") >&5
11997   (eval "$ac_link") 2>conftest.er1
11998   ac_status=$?
11999   grep -v '^ *+' conftest.er1 >conftest.err
12000   rm -f conftest.er1
12001   cat conftest.err >&5
12002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); } && {
12004          test -z "$ac_c_werror_flag" ||
12005          test ! -s conftest.err
12006        } && test -s conftest$ac_exeext && {
12007          test "$cross_compiling" = yes ||
12008          $as_test_x conftest$ac_exeext
12009        }; then
12010   ac_cv_lib_dld_shl_load=yes
12011 else
12012   $as_echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015         ac_cv_lib_dld_shl_load=no
12016 fi
12017
12018 rm -rf conftest.dSYM
12019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12020       conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12022 fi
12023 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12024 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12025 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12026   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12027 else
12028   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12029 $as_echo_n "checking for dlopen... " >&6; }
12030 if test "${ac_cv_func_dlopen+set}" = set; then
12031   $as_echo_n "(cached) " >&6
12032 else
12033   cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h.  */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h.  */
12039 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12041 #define dlopen innocuous_dlopen
12042
12043 /* System header to define __stub macros and hopefully few prototypes,
12044     which can conflict with char dlopen (); below.
12045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12046     <limits.h> exists even on freestanding compilers.  */
12047
12048 #ifdef __STDC__
12049 # include <limits.h>
12050 #else
12051 # include <assert.h>
12052 #endif
12053
12054 #undef dlopen
12055
12056 /* Override any GCC internal prototype to avoid an error.
12057    Use char because int might match the return type of a GCC
12058    builtin and then its argument prototype would still apply.  */
12059 #ifdef __cplusplus
12060 extern "C"
12061 #endif
12062 char dlopen ();
12063 /* The GNU C library defines this for functions which it implements
12064     to always fail with ENOSYS.  Some functions are actually named
12065     something starting with __ and the normal name is an alias.  */
12066 #if defined __stub_dlopen || defined __stub___dlopen
12067 choke me
12068 #endif
12069
12070 int
12071 main ()
12072 {
12073 return dlopen ();
12074   ;
12075   return 0;
12076 }
12077 _ACEOF
12078 rm -f conftest.$ac_objext conftest$ac_exeext
12079 if { (ac_try="$ac_link"
12080 case "(($ac_try" in
12081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082   *) ac_try_echo=$ac_try;;
12083 esac
12084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12085 $as_echo "$ac_try_echo") >&5
12086   (eval "$ac_link") 2>conftest.er1
12087   ac_status=$?
12088   grep -v '^ *+' conftest.er1 >conftest.err
12089   rm -f conftest.er1
12090   cat conftest.err >&5
12091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); } && {
12093          test -z "$ac_c_werror_flag" ||
12094          test ! -s conftest.err
12095        } && test -s conftest$ac_exeext && {
12096          test "$cross_compiling" = yes ||
12097          $as_test_x conftest$ac_exeext
12098        }; then
12099   ac_cv_func_dlopen=yes
12100 else
12101   $as_echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12103
12104         ac_cv_func_dlopen=no
12105 fi
12106
12107 rm -rf conftest.dSYM
12108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12109       conftest$ac_exeext conftest.$ac_ext
12110 fi
12111 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12112 $as_echo "$ac_cv_func_dlopen" >&6; }
12113 if test "x$ac_cv_func_dlopen" = x""yes; then
12114   lt_cv_dlopen="dlopen"
12115 else
12116   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12117 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12118 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12119   $as_echo_n "(cached) " >&6
12120 else
12121   ac_check_lib_save_LIBS=$LIBS
12122 LIBS="-ldl  $LIBS"
12123 cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h.  */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h.  */
12129
12130 /* Override any GCC internal prototype to avoid an error.
12131    Use char because int might match the return type of a GCC
12132    builtin and then its argument prototype would still apply.  */
12133 #ifdef __cplusplus
12134 extern "C"
12135 #endif
12136 char dlopen ();
12137 int
12138 main ()
12139 {
12140 return dlopen ();
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (ac_try="$ac_link"
12147 case "(($ac_try" in
12148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149   *) ac_try_echo=$ac_try;;
12150 esac
12151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12152 $as_echo "$ac_try_echo") >&5
12153   (eval "$ac_link") 2>conftest.er1
12154   ac_status=$?
12155   grep -v '^ *+' conftest.er1 >conftest.err
12156   rm -f conftest.er1
12157   cat conftest.err >&5
12158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } && {
12160          test -z "$ac_c_werror_flag" ||
12161          test ! -s conftest.err
12162        } && test -s conftest$ac_exeext && {
12163          test "$cross_compiling" = yes ||
12164          $as_test_x conftest$ac_exeext
12165        }; then
12166   ac_cv_lib_dl_dlopen=yes
12167 else
12168   $as_echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171         ac_cv_lib_dl_dlopen=no
12172 fi
12173
12174 rm -rf conftest.dSYM
12175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12176       conftest$ac_exeext conftest.$ac_ext
12177 LIBS=$ac_check_lib_save_LIBS
12178 fi
12179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12181 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12182   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12183 else
12184   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12185 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12186 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12187   $as_echo_n "(cached) " >&6
12188 else
12189   ac_check_lib_save_LIBS=$LIBS
12190 LIBS="-lsvld  $LIBS"
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h.  */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h.  */
12197
12198 /* Override any GCC internal prototype to avoid an error.
12199    Use char because int might match the return type of a GCC
12200    builtin and then its argument prototype would still apply.  */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 char dlopen ();
12205 int
12206 main ()
12207 {
12208 return dlopen ();
12209   ;
12210   return 0;
12211 }
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (ac_try="$ac_link"
12215 case "(($ac_try" in
12216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217   *) ac_try_echo=$ac_try;;
12218 esac
12219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12220 $as_echo "$ac_try_echo") >&5
12221   (eval "$ac_link") 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } && {
12228          test -z "$ac_c_werror_flag" ||
12229          test ! -s conftest.err
12230        } && test -s conftest$ac_exeext && {
12231          test "$cross_compiling" = yes ||
12232          $as_test_x conftest$ac_exeext
12233        }; then
12234   ac_cv_lib_svld_dlopen=yes
12235 else
12236   $as_echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239         ac_cv_lib_svld_dlopen=no
12240 fi
12241
12242 rm -rf conftest.dSYM
12243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12244       conftest$ac_exeext conftest.$ac_ext
12245 LIBS=$ac_check_lib_save_LIBS
12246 fi
12247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12248 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12249 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12250   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12251 else
12252   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12253 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12254 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12255   $as_echo_n "(cached) " >&6
12256 else
12257   ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-ldld  $LIBS"
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h.  */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h.  */
12265
12266 /* Override any GCC internal prototype to avoid an error.
12267    Use char because int might match the return type of a GCC
12268    builtin and then its argument prototype would still apply.  */
12269 #ifdef __cplusplus
12270 extern "C"
12271 #endif
12272 char dld_link ();
12273 int
12274 main ()
12275 {
12276 return dld_link ();
12277   ;
12278   return 0;
12279 }
12280 _ACEOF
12281 rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (ac_try="$ac_link"
12283 case "(($ac_try" in
12284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285   *) ac_try_echo=$ac_try;;
12286 esac
12287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12288 $as_echo "$ac_try_echo") >&5
12289   (eval "$ac_link") 2>conftest.er1
12290   ac_status=$?
12291   grep -v '^ *+' conftest.er1 >conftest.err
12292   rm -f conftest.er1
12293   cat conftest.err >&5
12294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); } && {
12296          test -z "$ac_c_werror_flag" ||
12297          test ! -s conftest.err
12298        } && test -s conftest$ac_exeext && {
12299          test "$cross_compiling" = yes ||
12300          $as_test_x conftest$ac_exeext
12301        }; then
12302   ac_cv_lib_dld_dld_link=yes
12303 else
12304   $as_echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12306
12307         ac_cv_lib_dld_dld_link=no
12308 fi
12309
12310 rm -rf conftest.dSYM
12311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12312       conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_lib_save_LIBS
12314 fi
12315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12316 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12317 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12318   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12319 fi
12320
12321
12322 fi
12323
12324
12325 fi
12326
12327
12328 fi
12329
12330
12331 fi
12332
12333
12334 fi
12335
12336     ;;
12337   esac
12338
12339   if test "x$lt_cv_dlopen" != xno; then
12340     enable_dlopen=yes
12341   else
12342     enable_dlopen=no
12343   fi
12344
12345   case $lt_cv_dlopen in
12346   dlopen)
12347     save_CPPFLAGS="$CPPFLAGS"
12348     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12349
12350     save_LDFLAGS="$LDFLAGS"
12351     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12352
12353     save_LIBS="$LIBS"
12354     LIBS="$lt_cv_dlopen_libs $LIBS"
12355
12356     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12357 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12358 if test "${lt_cv_dlopen_self+set}" = set; then
12359   $as_echo_n "(cached) " >&6
12360 else
12361           if test "$cross_compiling" = yes; then :
12362   lt_cv_dlopen_self=cross
12363 else
12364   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12365   lt_status=$lt_dlunknown
12366   cat > conftest.$ac_ext <<_LT_EOF
12367 #line 12367 "configure"
12368 #include "confdefs.h"
12369
12370 #if HAVE_DLFCN_H
12371 #include <dlfcn.h>
12372 #endif
12373
12374 #include <stdio.h>
12375
12376 #ifdef RTLD_GLOBAL
12377 #  define LT_DLGLOBAL           RTLD_GLOBAL
12378 #else
12379 #  ifdef DL_GLOBAL
12380 #    define LT_DLGLOBAL         DL_GLOBAL
12381 #  else
12382 #    define LT_DLGLOBAL         0
12383 #  endif
12384 #endif
12385
12386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12387    find out it does not work in some platform. */
12388 #ifndef LT_DLLAZY_OR_NOW
12389 #  ifdef RTLD_LAZY
12390 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12391 #  else
12392 #    ifdef DL_LAZY
12393 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12394 #    else
12395 #      ifdef RTLD_NOW
12396 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12397 #      else
12398 #        ifdef DL_NOW
12399 #          define LT_DLLAZY_OR_NOW      DL_NOW
12400 #        else
12401 #          define LT_DLLAZY_OR_NOW      0
12402 #        endif
12403 #      endif
12404 #    endif
12405 #  endif
12406 #endif
12407
12408 void fnord() { int i=42;}
12409 int main ()
12410 {
12411   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12412   int status = $lt_dlunknown;
12413
12414   if (self)
12415     {
12416       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12417       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12418       /* dlclose (self); */
12419     }
12420   else
12421     puts (dlerror ());
12422
12423   return status;
12424 }
12425 _LT_EOF
12426   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12427   (eval $ac_link) 2>&5
12428   ac_status=$?
12429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12431     (./conftest; exit; ) >&5 2>/dev/null
12432     lt_status=$?
12433     case x$lt_status in
12434       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12435       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12436       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12437     esac
12438   else :
12439     # compilation failed
12440     lt_cv_dlopen_self=no
12441   fi
12442 fi
12443 rm -fr conftest*
12444
12445
12446 fi
12447 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12448 $as_echo "$lt_cv_dlopen_self" >&6; }
12449
12450     if test "x$lt_cv_dlopen_self" = xyes; then
12451       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12452       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12453 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12454 if test "${lt_cv_dlopen_self_static+set}" = set; then
12455   $as_echo_n "(cached) " >&6
12456 else
12457           if test "$cross_compiling" = yes; then :
12458   lt_cv_dlopen_self_static=cross
12459 else
12460   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12461   lt_status=$lt_dlunknown
12462   cat > conftest.$ac_ext <<_LT_EOF
12463 #line 12463 "configure"
12464 #include "confdefs.h"
12465
12466 #if HAVE_DLFCN_H
12467 #include <dlfcn.h>
12468 #endif
12469
12470 #include <stdio.h>
12471
12472 #ifdef RTLD_GLOBAL
12473 #  define LT_DLGLOBAL           RTLD_GLOBAL
12474 #else
12475 #  ifdef DL_GLOBAL
12476 #    define LT_DLGLOBAL         DL_GLOBAL
12477 #  else
12478 #    define LT_DLGLOBAL         0
12479 #  endif
12480 #endif
12481
12482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12483    find out it does not work in some platform. */
12484 #ifndef LT_DLLAZY_OR_NOW
12485 #  ifdef RTLD_LAZY
12486 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12487 #  else
12488 #    ifdef DL_LAZY
12489 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12490 #    else
12491 #      ifdef RTLD_NOW
12492 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12493 #      else
12494 #        ifdef DL_NOW
12495 #          define LT_DLLAZY_OR_NOW      DL_NOW
12496 #        else
12497 #          define LT_DLLAZY_OR_NOW      0
12498 #        endif
12499 #      endif
12500 #    endif
12501 #  endif
12502 #endif
12503
12504 void fnord() { int i=42;}
12505 int main ()
12506 {
12507   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12508   int status = $lt_dlunknown;
12509
12510   if (self)
12511     {
12512       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12513       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12514       /* dlclose (self); */
12515     }
12516   else
12517     puts (dlerror ());
12518
12519   return status;
12520 }
12521 _LT_EOF
12522   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523   (eval $ac_link) 2>&5
12524   ac_status=$?
12525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12527     (./conftest; exit; ) >&5 2>/dev/null
12528     lt_status=$?
12529     case x$lt_status in
12530       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12531       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12532       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12533     esac
12534   else :
12535     # compilation failed
12536     lt_cv_dlopen_self_static=no
12537   fi
12538 fi
12539 rm -fr conftest*
12540
12541
12542 fi
12543 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12544 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12545     fi
12546
12547     CPPFLAGS="$save_CPPFLAGS"
12548     LDFLAGS="$save_LDFLAGS"
12549     LIBS="$save_LIBS"
12550     ;;
12551   esac
12552
12553   case $lt_cv_dlopen_self in
12554   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12555   *) enable_dlopen_self=unknown ;;
12556   esac
12557
12558   case $lt_cv_dlopen_self_static in
12559   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12560   *) enable_dlopen_self_static=unknown ;;
12561   esac
12562 fi
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580 striplib=
12581 old_striplib=
12582 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12583 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12584 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12585   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12586   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12587   { $as_echo "$as_me:$LINENO: result: yes" >&5
12588 $as_echo "yes" >&6; }
12589 else
12590 # FIXME - insert some real tests, host_os isn't really good enough
12591   case $host_os in
12592   darwin*)
12593     if test -n "$STRIP" ; then
12594       striplib="$STRIP -x"
12595       old_striplib="$STRIP -S"
12596       { $as_echo "$as_me:$LINENO: result: yes" >&5
12597 $as_echo "yes" >&6; }
12598     else
12599       { $as_echo "$as_me:$LINENO: result: no" >&5
12600 $as_echo "no" >&6; }
12601     fi
12602     ;;
12603   *)
12604     { $as_echo "$as_me:$LINENO: result: no" >&5
12605 $as_echo "no" >&6; }
12606     ;;
12607   esac
12608 fi
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621   # Report which library types will actually be built
12622   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12623 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12624   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12625 $as_echo "$can_build_shared" >&6; }
12626
12627   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12628 $as_echo_n "checking whether to build shared libraries... " >&6; }
12629   test "$can_build_shared" = "no" && enable_shared=no
12630
12631   # On AIX, shared libraries and static libraries use the same namespace, and
12632   # are all built from PIC.
12633   case $host_os in
12634   aix3*)
12635     test "$enable_shared" = yes && enable_static=no
12636     if test -n "$RANLIB"; then
12637       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12638       postinstall_cmds='$RANLIB $lib'
12639     fi
12640     ;;
12641
12642   aix[4-9]*)
12643     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12644       test "$enable_shared" = yes && enable_static=no
12645     fi
12646     ;;
12647   esac
12648   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12649 $as_echo "$enable_shared" >&6; }
12650
12651   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12652 $as_echo_n "checking whether to build static libraries... " >&6; }
12653   # Make sure either enable_shared or enable_static is yes.
12654   test "$enable_shared" = yes || enable_static=yes
12655   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12656 $as_echo "$enable_static" >&6; }
12657
12658
12659
12660
12661 fi
12662 ac_ext=c
12663 ac_cpp='$CPP $CPPFLAGS'
12664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12667
12668 CC="$lt_save_CC"
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682         ac_config_commands="$ac_config_commands libtool"
12683
12684
12685
12686
12687 # Only expand once:
12688
12689
12690 if test "x$CC" != xcc; then
12691   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12692 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12693 else
12694   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12695 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12696 fi
12697 set dummy $CC; ac_cc=`$as_echo "$2" |
12698                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12699 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12700   $as_echo_n "(cached) " >&6
12701 else
12702   cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h.  */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h.  */
12708
12709 int
12710 main ()
12711 {
12712
12713   ;
12714   return 0;
12715 }
12716 _ACEOF
12717 # Make sure it works both with $CC and with simple cc.
12718 # We do the test twice because some compilers refuse to overwrite an
12719 # existing .o file with -o, though they will create one.
12720 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12721 rm -f conftest2.*
12722 if { (case "(($ac_try" in
12723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724   *) ac_try_echo=$ac_try;;
12725 esac
12726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12727 $as_echo "$ac_try_echo") >&5
12728   (eval "$ac_try") 2>&5
12729   ac_status=$?
12730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); } &&
12732    test -f conftest2.$ac_objext && { (case "(($ac_try" in
12733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734   *) ac_try_echo=$ac_try;;
12735 esac
12736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12737 $as_echo "$ac_try_echo") >&5
12738   (eval "$ac_try") 2>&5
12739   ac_status=$?
12740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); };
12742 then
12743   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12744   if test "x$CC" != xcc; then
12745     # Test first that cc exists at all.
12746     if { ac_try='cc -c conftest.$ac_ext >&5'
12747   { (case "(($ac_try" in
12748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749   *) ac_try_echo=$ac_try;;
12750 esac
12751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12752 $as_echo "$ac_try_echo") >&5
12753   (eval "$ac_try") 2>&5
12754   ac_status=$?
12755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); }; }; then
12757       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12758       rm -f conftest2.*
12759       if { (case "(($ac_try" in
12760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761   *) ac_try_echo=$ac_try;;
12762 esac
12763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12764 $as_echo "$ac_try_echo") >&5
12765   (eval "$ac_try") 2>&5
12766   ac_status=$?
12767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); } &&
12769          test -f conftest2.$ac_objext && { (case "(($ac_try" in
12770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771   *) ac_try_echo=$ac_try;;
12772 esac
12773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12774 $as_echo "$ac_try_echo") >&5
12775   (eval "$ac_try") 2>&5
12776   ac_status=$?
12777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778   (exit $ac_status); };
12779       then
12780         # cc works too.
12781         :
12782       else
12783         # cc exists but doesn't like -o.
12784         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12785       fi
12786     fi
12787   fi
12788 else
12789   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12790 fi
12791 rm -f core conftest*
12792
12793 fi
12794 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12795   { $as_echo "$as_me:$LINENO: result: yes" >&5
12796 $as_echo "yes" >&6; }
12797 else
12798   { $as_echo "$as_me:$LINENO: result: no" >&5
12799 $as_echo "no" >&6; }
12800
12801 cat >>confdefs.h <<\_ACEOF
12802 #define NO_MINUS_C_MINUS_O 1
12803 _ACEOF
12804
12805 fi
12806
12807 # FIXME: we rely on the cache variable name because
12808 # there is no other way.
12809 set dummy $CC
12810 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12811 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
12812    # Losing compiler, so override with the script.
12813    # FIXME: It is wrong to rewrite CC.
12814    # But if we don't then we get into trouble of one sort or another.
12815    # A longer-term fix would be to have automake use am__CC in this case,
12816    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12817    CC="$am_aux_dir/compile $CC"
12818 fi
12819
12820
12821
12822     { $as_echo "$as_me:$LINENO: checking whether ld supports --as-needed" >&5
12823 $as_echo_n "checking whether ld supports --as-needed... " >&6; }
12824 if test "${pam_cv_ld_as_needed+set}" = set; then
12825   $as_echo_n "(cached) " >&6
12826 else
12827        cat > conftest.c <<EOF
12828 int main (void) { return 0; }
12829 EOF
12830      if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
12831                                  -o conftest.o conftest.c
12832                                  -Wl,--as-needed 1>&5'
12833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834   (eval $ac_try) 2>&5
12835   ac_status=$?
12836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); }; }
12838   then
12839     pam_cv_ld_as_needed=yes
12840     LDFLAGS="$LDFLAGS -Wl,--as-needed"
12841   else
12842     pam_cv_ld_as_needed=no
12843   fi
12844   rm -f conftest*
12845 fi
12846 { $as_echo "$as_me:$LINENO: result: $pam_cv_ld_as_needed" >&5
12847 $as_echo "$pam_cv_ld_as_needed" >&6; }
12848
12849
12850
12851
12852     { $as_echo "$as_me:$LINENO: checking whether ld supports --no-undefined" >&5
12853 $as_echo_n "checking whether ld supports --no-undefined... " >&6; }
12854 if test "${pam_cv_ld_no_undefined+set}" = set; then
12855   $as_echo_n "(cached) " >&6
12856 else
12857        cat > conftest.c <<EOF
12858 int main (void) { return 0; }
12859 EOF
12860      if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
12861                                  -o conftest.o conftest.c
12862                                  -Wl,--no-undefined 1>&5'
12863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864   (eval $ac_try) 2>&5
12865   ac_status=$?
12866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); }; }
12868   then
12869     pam_cv_ld_no_undefined=yes
12870     LDFLAGS="$LDFLAGS -Wl,--no-undefined"
12871   else
12872     pam_cv_ld_no_undefined=no
12873   fi
12874   rm -f conftest*
12875 fi
12876 { $as_echo "$as_me:$LINENO: result: $pam_cv_ld_no_undefined" >&5
12877 $as_echo "$pam_cv_ld_no_undefined" >&6; }
12878
12879
12880
12881
12882     { $as_echo "$as_me:$LINENO: checking whether ld supports -O1" >&5
12883 $as_echo_n "checking whether ld supports -O1... " >&6; }
12884 if test "${pam_cv_ld_O1+set}" = set; then
12885   $as_echo_n "(cached) " >&6
12886 else
12887        cat > conftest.c <<EOF
12888 int main (void) { return 0; }
12889 EOF
12890      if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
12891                                  -o conftest.o conftest.c
12892                                  -Wl,-O1 1>&5'
12893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894   (eval $ac_try) 2>&5
12895   ac_status=$?
12896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); }; }
12898   then
12899     pam_cv_ld_O1=yes
12900     LDFLAGS="$LDFLAGS -Wl,-O1"
12901   else
12902     pam_cv_ld_O1=no
12903   fi
12904   rm -f conftest*
12905 fi
12906 { $as_echo "$as_me:$LINENO: result: $pam_cv_ld_O1" >&5
12907 $as_echo "$pam_cv_ld_O1" >&6; }
12908
12909
12910
12911
12912 # Check whether --enable-largefile was given.
12913 if test "${enable_largefile+set}" = set; then
12914   enableval=$enable_largefile;
12915 fi
12916
12917 if test "$enable_largefile" != no; then
12918
12919   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
12920 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12921 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12922   $as_echo_n "(cached) " >&6
12923 else
12924   ac_cv_sys_largefile_CC=no
12925      if test "$GCC" != yes; then
12926        ac_save_CC=$CC
12927        while :; do
12928          # IRIX 6.2 and later do not support large files by default,
12929          # so use the C compiler's -n32 option if that helps.
12930          cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936 #include <sys/types.h>
12937  /* Check that off_t can represent 2**63 - 1 correctly.
12938     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12939     since some C++ compilers masquerading as C compilers
12940     incorrectly reject 9223372036854775807.  */
12941 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12942   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12943                        && LARGE_OFF_T % 2147483647 == 1)
12944                       ? 1 : -1];
12945 int
12946 main ()
12947 {
12948
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953          rm -f conftest.$ac_objext
12954 if { (ac_try="$ac_compile"
12955 case "(($ac_try" in
12956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957   *) ac_try_echo=$ac_try;;
12958 esac
12959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12960 $as_echo "$ac_try_echo") >&5
12961   (eval "$ac_compile") 2>conftest.er1
12962   ac_status=$?
12963   grep -v '^ *+' conftest.er1 >conftest.err
12964   rm -f conftest.er1
12965   cat conftest.err >&5
12966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } && {
12968          test -z "$ac_c_werror_flag" ||
12969          test ! -s conftest.err
12970        } && test -s conftest.$ac_objext; then
12971   break
12972 else
12973   $as_echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12975
12976
12977 fi
12978
12979 rm -f core conftest.err conftest.$ac_objext
12980          CC="$CC -n32"
12981          rm -f conftest.$ac_objext
12982 if { (ac_try="$ac_compile"
12983 case "(($ac_try" in
12984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985   *) ac_try_echo=$ac_try;;
12986 esac
12987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12988 $as_echo "$ac_try_echo") >&5
12989   (eval "$ac_compile") 2>conftest.er1
12990   ac_status=$?
12991   grep -v '^ *+' conftest.er1 >conftest.err
12992   rm -f conftest.er1
12993   cat conftest.err >&5
12994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } && {
12996          test -z "$ac_c_werror_flag" ||
12997          test ! -s conftest.err
12998        } && test -s conftest.$ac_objext; then
12999   ac_cv_sys_largefile_CC=' -n32'; break
13000 else
13001   $as_echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13003
13004
13005 fi
13006
13007 rm -f core conftest.err conftest.$ac_objext
13008          break
13009        done
13010        CC=$ac_save_CC
13011        rm -f conftest.$ac_ext
13012     fi
13013 fi
13014 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
13015 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13016   if test "$ac_cv_sys_largefile_CC" != no; then
13017     CC=$CC$ac_cv_sys_largefile_CC
13018   fi
13019
13020   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13021 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13022 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13023   $as_echo_n "(cached) " >&6
13024 else
13025   while :; do
13026   cat >conftest.$ac_ext <<_ACEOF
13027 /* confdefs.h.  */
13028 _ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h.  */
13032 #include <sys/types.h>
13033  /* Check that off_t can represent 2**63 - 1 correctly.
13034     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13035     since some C++ compilers masquerading as C compilers
13036     incorrectly reject 9223372036854775807.  */
13037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13038   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13039                        && LARGE_OFF_T % 2147483647 == 1)
13040                       ? 1 : -1];
13041 int
13042 main ()
13043 {
13044
13045   ;
13046   return 0;
13047 }
13048 _ACEOF
13049 rm -f conftest.$ac_objext
13050 if { (ac_try="$ac_compile"
13051 case "(($ac_try" in
13052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053   *) ac_try_echo=$ac_try;;
13054 esac
13055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13056 $as_echo "$ac_try_echo") >&5
13057   (eval "$ac_compile") 2>conftest.er1
13058   ac_status=$?
13059   grep -v '^ *+' conftest.er1 >conftest.err
13060   rm -f conftest.er1
13061   cat conftest.err >&5
13062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); } && {
13064          test -z "$ac_c_werror_flag" ||
13065          test ! -s conftest.err
13066        } && test -s conftest.$ac_objext; then
13067   ac_cv_sys_file_offset_bits=no; break
13068 else
13069   $as_echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13071
13072
13073 fi
13074
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076   cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h.  */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h.  */
13082 #define _FILE_OFFSET_BITS 64
13083 #include <sys/types.h>
13084  /* Check that off_t can represent 2**63 - 1 correctly.
13085     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13086     since some C++ compilers masquerading as C compilers
13087     incorrectly reject 9223372036854775807.  */
13088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13089   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13090                        && LARGE_OFF_T % 2147483647 == 1)
13091                       ? 1 : -1];
13092 int
13093 main ()
13094 {
13095
13096   ;
13097   return 0;
13098 }
13099 _ACEOF
13100 rm -f conftest.$ac_objext
13101 if { (ac_try="$ac_compile"
13102 case "(($ac_try" in
13103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104   *) ac_try_echo=$ac_try;;
13105 esac
13106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13107 $as_echo "$ac_try_echo") >&5
13108   (eval "$ac_compile") 2>conftest.er1
13109   ac_status=$?
13110   grep -v '^ *+' conftest.er1 >conftest.err
13111   rm -f conftest.er1
13112   cat conftest.err >&5
13113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); } && {
13115          test -z "$ac_c_werror_flag" ||
13116          test ! -s conftest.err
13117        } && test -s conftest.$ac_objext; then
13118   ac_cv_sys_file_offset_bits=64; break
13119 else
13120   $as_echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13122
13123
13124 fi
13125
13126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13127   ac_cv_sys_file_offset_bits=unknown
13128   break
13129 done
13130 fi
13131 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
13132 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13133 case $ac_cv_sys_file_offset_bits in #(
13134   no | unknown) ;;
13135   *)
13136 cat >>confdefs.h <<_ACEOF
13137 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13138 _ACEOF
13139 ;;
13140 esac
13141 rm -rf conftest*
13142   if test $ac_cv_sys_file_offset_bits = unknown; then
13143     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
13144 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13145 if test "${ac_cv_sys_large_files+set}" = set; then
13146   $as_echo_n "(cached) " >&6
13147 else
13148   while :; do
13149   cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h.  */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h.  */
13155 #include <sys/types.h>
13156  /* Check that off_t can represent 2**63 - 1 correctly.
13157     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13158     since some C++ compilers masquerading as C compilers
13159     incorrectly reject 9223372036854775807.  */
13160 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13161   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13162                        && LARGE_OFF_T % 2147483647 == 1)
13163                       ? 1 : -1];
13164 int
13165 main ()
13166 {
13167
13168   ;
13169   return 0;
13170 }
13171 _ACEOF
13172 rm -f conftest.$ac_objext
13173 if { (ac_try="$ac_compile"
13174 case "(($ac_try" in
13175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176   *) ac_try_echo=$ac_try;;
13177 esac
13178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13179 $as_echo "$ac_try_echo") >&5
13180   (eval "$ac_compile") 2>conftest.er1
13181   ac_status=$?
13182   grep -v '^ *+' conftest.er1 >conftest.err
13183   rm -f conftest.er1
13184   cat conftest.err >&5
13185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); } && {
13187          test -z "$ac_c_werror_flag" ||
13188          test ! -s conftest.err
13189        } && test -s conftest.$ac_objext; then
13190   ac_cv_sys_large_files=no; break
13191 else
13192   $as_echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13194
13195
13196 fi
13197
13198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199   cat >conftest.$ac_ext <<_ACEOF
13200 /* confdefs.h.  */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h.  */
13205 #define _LARGE_FILES 1
13206 #include <sys/types.h>
13207  /* Check that off_t can represent 2**63 - 1 correctly.
13208     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13209     since some C++ compilers masquerading as C compilers
13210     incorrectly reject 9223372036854775807.  */
13211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13212   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13213                        && LARGE_OFF_T % 2147483647 == 1)
13214                       ? 1 : -1];
13215 int
13216 main ()
13217 {
13218
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 rm -f conftest.$ac_objext
13224 if { (ac_try="$ac_compile"
13225 case "(($ac_try" in
13226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227   *) ac_try_echo=$ac_try;;
13228 esac
13229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13230 $as_echo "$ac_try_echo") >&5
13231   (eval "$ac_compile") 2>conftest.er1
13232   ac_status=$?
13233   grep -v '^ *+' conftest.er1 >conftest.err
13234   rm -f conftest.er1
13235   cat conftest.err >&5
13236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } && {
13238          test -z "$ac_c_werror_flag" ||
13239          test ! -s conftest.err
13240        } && test -s conftest.$ac_objext; then
13241   ac_cv_sys_large_files=1; break
13242 else
13243   $as_echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13245
13246
13247 fi
13248
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250   ac_cv_sys_large_files=unknown
13251   break
13252 done
13253 fi
13254 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
13255 $as_echo "$ac_cv_sys_large_files" >&6; }
13256 case $ac_cv_sys_large_files in #(
13257   no | unknown) ;;
13258   *)
13259 cat >>confdefs.h <<_ACEOF
13260 #define _LARGE_FILES $ac_cv_sys_large_files
13261 _ACEOF
13262 ;;
13263 esac
13264 rm -rf conftest*
13265   fi
13266 fi
13267
13268
13269 if eval "test x$GCC = xyes -a $CC != icc"; then
13270   for flag in \
13271       -W \
13272       -Wall \
13273       -Wbad-function-cast \
13274       -Wcast-align \
13275       -Wcast-qual \
13276       -Wmissing-declarations \
13277       -Wmissing-prototypes \
13278       -Wpointer-arith \
13279       -Wreturn-type \
13280       -Wstrict-prototypes \
13281       -Wwrite-strings \
13282       -Winline \
13283       -Wshadow
13284   do
13285     case "$CFLAGS" in
13286 "$flag" | "$flag "* | *" $flag" | *" $flag "* )
13287   :
13288   ;;
13289 *)
13290    CFLAGS="$CFLAGS $flag"
13291   ;;
13292 esac
13293
13294   done
13295 fi
13296 if eval "test x$CC = xicc"; then
13297   for flag in \
13298       -Wall \
13299       -Wmissing-prototypes \
13300       -Wpointer-arith \
13301       -Wreturn-type \
13302       -Wstrict-prototypes \
13303       -Wwrite-strings \
13304       -Wshadow \
13305       -Wp64 \
13306       -Wdeprecated \
13307       -Wuninitialized \
13308       -Wmain
13309   do
13310     case "$CFLAGS" in
13311 "$flag" | "$flag "* | *" $flag" | *" $flag "* )
13312   :
13313   ;;
13314 *)
13315    CFLAGS="$CFLAGS $flag"
13316   ;;
13317 esac
13318
13319   done
13320 fi
13321
13322 if test "x${CC_FOR_BUILD+set}" != "xset" ; then
13323   if test "x$cross_compiling" = "xyes" ; then
13324     for ac_prog in gcc cc
13325 do
13326   # Extract the first word of "$ac_prog", so it can be a program name with args.
13327 set dummy $ac_prog; ac_word=$2
13328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13329 $as_echo_n "checking for $ac_word... " >&6; }
13330 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
13331   $as_echo_n "(cached) " >&6
13332 else
13333   if test -n "$CC_FOR_BUILD"; then
13334   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13335 else
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13338 do
13339   IFS=$as_save_IFS
13340   test -z "$as_dir" && as_dir=.
13341   for ac_exec_ext in '' $ac_executable_extensions; do
13342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13343     ac_cv_prog_CC_FOR_BUILD="$ac_prog"
13344     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13345     break 2
13346   fi
13347 done
13348 done
13349 IFS=$as_save_IFS
13350
13351 fi
13352 fi
13353 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13354 if test -n "$CC_FOR_BUILD"; then
13355   { $as_echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
13356 $as_echo "$CC_FOR_BUILD" >&6; }
13357 else
13358   { $as_echo "$as_me:$LINENO: result: no" >&5
13359 $as_echo "no" >&6; }
13360 fi
13361
13362
13363   test -n "$CC_FOR_BUILD" && break
13364 done
13365
13366   else
13367     CC_FOR_BUILD=${CC}
13368   fi
13369 fi
13370 { $as_echo "$as_me:$LINENO: checking for CC_FOR_BUILD" >&5
13371 $as_echo_n "checking for CC_FOR_BUILD... " >&6; }
13372 { $as_echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
13373 $as_echo "$CC_FOR_BUILD" >&6; }
13374
13375
13376 if test "x${BUILD_CFLAGS+set}" != "xset" ; then
13377   if test "x$cross_compiling" = "xyes" ; then
13378     BUILD_CFLAGS=
13379   else
13380     BUILD_CFLAGS=${CFLAGS}
13381   fi
13382 fi
13383
13384
13385 if test "x${BUILD_LDFLAGS+set}" != "xset" ; then
13386   if test "x$cross_compiling" = "xyes" ; then
13387     BUILD_LDFLAGS=
13388   else
13389     BUILD_LDFLAGS=${LDFLAGS}
13390   fi
13391 fi
13392
13393
13394
13395 { $as_echo "$as_me:$LINENO: checking for __attribute__" >&5
13396 $as_echo_n "checking for __attribute__... " >&6; }
13397 if test "${ac_cv___attribute__+set}" = set; then
13398   $as_echo_n "(cached) " >&6
13399 else
13400
13401 cat >conftest.$ac_ext <<_ACEOF
13402 /* confdefs.h.  */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h.  */
13407
13408 #include <stdlib.h>
13409 static void foo (void) __attribute__ ((unused));
13410
13411 static void
13412 foo (void)
13413 {
13414   exit(1);
13415 }
13416
13417 int
13418 main ()
13419 {
13420
13421   exit (0);
13422
13423   ;
13424   return 0;
13425 }
13426 _ACEOF
13427 rm -f conftest.$ac_objext
13428 if { (ac_try="$ac_compile"
13429 case "(($ac_try" in
13430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431   *) ac_try_echo=$ac_try;;
13432 esac
13433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13434 $as_echo "$ac_try_echo") >&5
13435   (eval "$ac_compile") 2>conftest.er1
13436   ac_status=$?
13437   grep -v '^ *+' conftest.er1 >conftest.err
13438   rm -f conftest.er1
13439   cat conftest.err >&5
13440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } && {
13442          test -z "$ac_c_werror_flag" ||
13443          test ! -s conftest.err
13444        } && test -s conftest.$ac_objext; then
13445   ac_cv___attribute__=yes
13446 else
13447   $as_echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450         ac_cv___attribute__=no
13451 fi
13452
13453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13454 fi
13455
13456 if test "$ac_cv___attribute__" = "yes"; then
13457
13458 cat >>confdefs.h <<\_ACEOF
13459 #define UNUSED __attribute__ ((unused))
13460 _ACEOF
13461
13462 else
13463   cat >>confdefs.h <<\_ACEOF
13464 #define UNUSED /**/
13465 _ACEOF
13466
13467 fi
13468 { $as_echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
13469 $as_echo "$ac_cv___attribute__" >&6; }
13470
13471
13472 { $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
13473 $as_echo_n "checking for .symver assembler directive... " >&6; }
13474 if test "${libc_cv_asm_symver_directive+set}" = set; then
13475   $as_echo_n "(cached) " >&6
13476 else
13477   cat > conftest.s <<EOF
13478 ${libc_cv_dot_text}
13479 _sym:
13480 .symver _sym,sym@VERS
13481 EOF
13482 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
13483   libc_cv_asm_symver_directive=yes
13484 else
13485   libc_cv_asm_symver_directive=no
13486 fi
13487 rm -f conftest*
13488 fi
13489 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
13490 $as_echo "$libc_cv_asm_symver_directive" >&6; }
13491 { $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5
13492 $as_echo_n "checking for ld --version-script... " >&6; }
13493 if test "${libc_cv_ld_version_script_option+set}" = set; then
13494   $as_echo_n "(cached) " >&6
13495 else
13496   if test $libc_cv_asm_symver_directive = yes; then
13497   cat > conftest.s <<EOF
13498 ${libc_cv_dot_text}
13499 _sym:
13500 .symver _sym,sym@VERS
13501 EOF
13502   cat > conftest.map <<EOF
13503 VERS_1 {
13504         global: sym;
13505 };
13506
13507 VERS_2 {
13508         global: sym;
13509 } VERS_1;
13510 EOF
13511   if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
13512 then
13513     if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
13514                                 -o conftest.so conftest.o
13515                                 -nostartfiles -nostdlib
13516                                 -Wl,--version-script,conftest.map
13517                        1>&5'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; };
13523     then
13524       libc_cv_ld_version_script_option=yes
13525     else
13526       libc_cv_ld_version_script_option=no
13527     fi
13528   else
13529     libc_cv_ld_version_script_option=no
13530   fi
13531 else
13532   libc_cv_ld_version_script_option=no
13533 fi
13534 rm -f conftest*
13535 fi
13536 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
13537 $as_echo "$libc_cv_ld_version_script_option" >&6; }
13538  if test "$libc_cv_ld_version_script_option" = "yes"; then
13539   HAVE_VERSIONING_TRUE=
13540   HAVE_VERSIONING_FALSE='#'
13541 else
13542   HAVE_VERSIONING_TRUE='#'
13543   HAVE_VERSIONING_FALSE=
13544 fi
13545
13546
13547 # Check whether --enable-pie was given.
13548 if test "${enable_pie+set}" = set; then
13549   enableval=$enable_pie; USE_PIE=$enableval
13550 else
13551   USE_PIE=yes
13552 fi
13553
13554
13555 { $as_echo "$as_me:$LINENO: checking for -fpie" >&5
13556 $as_echo_n "checking for -fpie... " >&6; }
13557 if test "${libc_cv_fpie+set}" = set; then
13558   $as_echo_n "(cached) " >&6
13559 else
13560     cat > conftest.c <<EOF
13561 int foo;
13562 main () { return 0;}
13563 EOF
13564   if test "$USE_PIE" = "yes" -a "$CC" != "icc" &&
13565         { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
13566                               -o conftest conftest.c 1>&5'
13567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568   (eval $ac_try) 2>&5
13569   ac_status=$?
13570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); }; }
13572   then
13573     libc_cv_fpie=yes
13574     PIE_CFLAGS="-fpie"
13575     PIE_LDFLAGS="-pie"
13576   else
13577     libc_cv_fpie=no
13578     PIE_CFLAGS=""
13579     PIE_LDFLAGS=""
13580   fi
13581   rm -f conftest*
13582 fi
13583 { $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
13584 $as_echo "$libc_cv_fpie" >&6; }
13585
13586
13587
13588
13589
13590
13591 # Check whether --enable-prelude was given.
13592 if test "${enable_prelude+set}" = set; then
13593   enableval=$enable_prelude; WITH_PRELUDE=$enableval
13594 else
13595   WITH_PRELUDE=yes
13596 fi
13597
13598 if test "$WITH_PRELUDE" == "yes" ; then
13599
13600 # Check whether --with-libprelude-prefix was given.
13601 if test "${with_libprelude_prefix+set}" = set; then
13602   withval=$with_libprelude_prefix; libprelude_config_prefix="$withval"
13603 else
13604   libprelude_config_prefix=""
13605 fi
13606
13607
13608   if test x$libprelude_config_prefix != x ; then
13609      if test x${LIBPRELUDE_CONFIG+set} != xset ; then
13610         LIBPRELUDE_CONFIG=$libprelude_config_prefix/bin/libprelude-config
13611      fi
13612   fi
13613
13614   # Extract the first word of "libprelude-config", so it can be a program name with args.
13615 set dummy libprelude-config; ac_word=$2
13616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13617 $as_echo_n "checking for $ac_word... " >&6; }
13618 if test "${ac_cv_path_LIBPRELUDE_CONFIG+set}" = set; then
13619   $as_echo_n "(cached) " >&6
13620 else
13621   case $LIBPRELUDE_CONFIG in
13622   [\\/]* | ?:[\\/]*)
13623   ac_cv_path_LIBPRELUDE_CONFIG="$LIBPRELUDE_CONFIG" # Let the user override the test with a path.
13624   ;;
13625   *)
13626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13628 do
13629   IFS=$as_save_IFS
13630   test -z "$as_dir" && as_dir=.
13631   for ac_exec_ext in '' $ac_executable_extensions; do
13632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13633     ac_cv_path_LIBPRELUDE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13634     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13635     break 2
13636   fi
13637 done
13638 done
13639 IFS=$as_save_IFS
13640
13641   test -z "$ac_cv_path_LIBPRELUDE_CONFIG" && ac_cv_path_LIBPRELUDE_CONFIG="no"
13642   ;;
13643 esac
13644 fi
13645 LIBPRELUDE_CONFIG=$ac_cv_path_LIBPRELUDE_CONFIG
13646 if test -n "$LIBPRELUDE_CONFIG"; then
13647   { $as_echo "$as_me:$LINENO: result: $LIBPRELUDE_CONFIG" >&5
13648 $as_echo "$LIBPRELUDE_CONFIG" >&6; }
13649 else
13650   { $as_echo "$as_me:$LINENO: result: no" >&5
13651 $as_echo "no" >&6; }
13652 fi
13653
13654
13655   min_libprelude_version=0.9.0
13656   { $as_echo "$as_me:$LINENO: checking for libprelude - version >= $min_libprelude_version" >&5
13657 $as_echo_n "checking for libprelude - version >= $min_libprelude_version... " >&6; }
13658   no_libprelude=""
13659   if test "$LIBPRELUDE_CONFIG" = "no" ; then
13660     no_libprelude=yes
13661   else
13662     LIBPRELUDE_CFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --cflags`
13663     LIBPRELUDE_PTHREAD_CFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --pthread-cflags`
13664     LIBPRELUDE_LDFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --ldflags`
13665     LIBPRELUDE_LIBS=`$LIBPRELUDE_CONFIG $libprelude_config_args --libs`
13666     LIBPRELUDE_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --prefix`
13667     LIBPRELUDE_CONFIG_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --config-prefix`
13668     libprelude_config_version=`$LIBPRELUDE_CONFIG $libprelude_config_args --version`
13669
13670
13671       ac_save_CFLAGS="$CFLAGS"
13672       ac_save_LDFLAGS="$LDFLAGS"
13673       ac_save_LIBS="$LIBS"
13674       CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
13675       LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
13676       LIBS="$LIBS $LIBPRELUDE_LIBS"
13677       rm -f conf.libpreludetest
13678       if test "$cross_compiling" = yes; then
13679   echo $ac_n "cross compiling; assumed OK... $ac_c"
13680 else
13681   cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h.  */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h.  */
13687
13688 #include <stdio.h>
13689 #include <stdlib.h>
13690 #include <string.h>
13691 #include <libprelude/prelude.h>
13692
13693 int
13694 main ()
13695 {
13696     system ("touch conf.libpreludetest");
13697
13698     if( strcmp( prelude_check_version(NULL), "$libprelude_config_version" ) )
13699     {
13700       printf("\n*** 'libprelude-config --version' returned %s, but LIBPRELUDE (%s)\n",
13701              "$libprelude_config_version", prelude_check_version(NULL) );
13702       printf("*** was found! If libprelude-config was correct, then it is best\n");
13703       printf("*** to remove the old version of LIBPRELUDE. You may also be able to fix the error\n");
13704       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13705       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13706       printf("*** required on your system.\n");
13707       printf("*** If libprelude-config was wrong, set the environment variable LIBPRELUDE_CONFIG\n");
13708       printf("*** to point to the correct copy of libprelude-config, and remove the file config.cache\n");
13709       printf("*** before re-running configure\n");
13710     }
13711     else if ( strcmp(prelude_check_version(NULL), LIBPRELUDE_VERSION ) )
13712     {
13713       printf("\n*** LIBPRELUDE header file (version %s) does not match\n", LIBPRELUDE_VERSION);
13714       printf("*** library (version %s)\n", prelude_check_version(NULL) );
13715     }
13716     else
13717     {
13718       if ( prelude_check_version( "$min_libprelude_version" ) )
13719       {
13720         return 0;
13721       }
13722      else
13723       {
13724         printf("no\n*** An old version of LIBPRELUDE (%s) was found.\n",
13725                 prelude_check_version(NULL) );
13726         printf("*** You need a version of LIBPRELUDE newer than %s. The latest version of\n",
13727                "$min_libprelude_version" );
13728         printf("*** LIBPRELUDE is always available from http://www.prelude-ids.org/download/releases.\n");
13729         printf("*** \n");
13730         printf("*** If you have already installed a sufficiently new version, this error\n");
13731         printf("*** probably means that the wrong copy of the libprelude-config shell script is\n");
13732         printf("*** being found. The easiest way to fix this is to remove the old version\n");
13733         printf("*** of LIBPRELUDE, but you can also set the LIBPRELUDE_CONFIG environment to point to the\n");
13734         printf("*** correct copy of libprelude-config. (In this case, you will have to\n");
13735         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13736         printf("*** so that the correct libraries are found at run-time))\n");
13737       }
13738     }
13739   return 1;
13740 }
13741
13742 _ACEOF
13743 rm -f conftest$ac_exeext
13744 if { (ac_try="$ac_link"
13745 case "(($ac_try" in
13746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747   *) ac_try_echo=$ac_try;;
13748 esac
13749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13750 $as_echo "$ac_try_echo") >&5
13751   (eval "$ac_link") 2>&5
13752   ac_status=$?
13753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13755   { (case "(($ac_try" in
13756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757   *) ac_try_echo=$ac_try;;
13758 esac
13759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13760 $as_echo "$ac_try_echo") >&5
13761   (eval "$ac_try") 2>&5
13762   ac_status=$?
13763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; }; then
13765   :
13766 else
13767   $as_echo "$as_me: program exited with status $ac_status" >&5
13768 $as_echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771 ( exit $ac_status )
13772 no_libprelude=yes
13773 fi
13774 rm -rf conftest.dSYM
13775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13776 fi
13777
13778
13779        CFLAGS="$ac_save_CFLAGS"
13780        LIBS="$ac_save_LIBS"
13781        LDFLAGS="$ac_save_LDFLAGS"
13782   fi
13783
13784   if test "x$no_libprelude" = x ; then
13785      { $as_echo "$as_me:$LINENO: result: yes" >&5
13786 $as_echo "yes" >&6; }
13787      :
13788   else
13789      if test -f conf.libpreludetest ; then
13790         :
13791      else
13792         { $as_echo "$as_me:$LINENO: result: no" >&5
13793 $as_echo "no" >&6; }
13794      fi
13795      if test "$LIBPRELUDE_CONFIG" = "no" ; then
13796        echo "*** The libprelude-config script installed by LIBPRELUDE could not be found"
13797        echo "*** If LIBPRELUDE was installed in PREFIX, make sure PREFIX/bin is in"
13798        echo "*** your path, or set the LIBPRELUDE_CONFIG environment variable to the"
13799        echo "*** full path to libprelude-config."
13800      else
13801        if test -f conf.libpreludetest ; then
13802         :
13803        else
13804           echo "*** Could not run libprelude test program, checking why..."
13805           CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
13806           LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
13807           LIBS="$LIBS $LIBPRELUDE_LIBS"
13808           cat >conftest.$ac_ext <<_ACEOF
13809 /* confdefs.h.  */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h.  */
13814
13815 #include <stdio.h>
13816 #include <stdlib.h>
13817 #include <string.h>
13818 #include <libprelude/prelude.h>
13819
13820 int
13821 main ()
13822 {
13823  return !!prelude_check_version(NULL);
13824   ;
13825   return 0;
13826 }
13827 _ACEOF
13828 rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (ac_try="$ac_link"
13830 case "(($ac_try" in
13831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832   *) ac_try_echo=$ac_try;;
13833 esac
13834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13835 $as_echo "$ac_try_echo") >&5
13836   (eval "$ac_link") 2>conftest.er1
13837   ac_status=$?
13838   grep -v '^ *+' conftest.er1 >conftest.err
13839   rm -f conftest.er1
13840   cat conftest.err >&5
13841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); } && {
13843          test -z "$ac_c_werror_flag" ||
13844          test ! -s conftest.err
13845        } && test -s conftest$ac_exeext && {
13846          test "$cross_compiling" = yes ||
13847          $as_test_x conftest$ac_exeext
13848        }; then
13849    echo "*** The test program compiled, but did not run. This usually means"
13850           echo "*** that the run-time linker is not finding LIBPRELUDE or finding the wrong"
13851           echo "*** version of LIBPRELUDE. If it is not finding LIBPRELUDE, you'll need to set your"
13852           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13853           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13854           echo "*** is required on your system"
13855           echo "***"
13856           echo "*** If you have an old version installed, it is best to remove it, although"
13857           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13858           echo "***"
13859 else
13860   $as_echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863          echo "*** The test program failed to compile or link. See the file config.log for the"
13864           echo "*** exact error that occured. This usually means LIBPRELUDE was incorrectly installed"
13865           echo "*** or that you have moved LIBPRELUDE since it was installed. In the latter case, you"
13866           echo "*** may want to edit the libprelude-config script: $LIBPRELUDE_CONFIG"
13867 fi
13868
13869 rm -rf conftest.dSYM
13870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13871       conftest$ac_exeext conftest.$ac_ext
13872           CFLAGS="$ac_save_CFLAGS"
13873           LDFLAGS="$ac_save_LDFLAGS"
13874           LIBS="$ac_save_LIBS"
13875        fi
13876      fi
13877      LIBPRELUDE_CFLAGS=""
13878      LIBPRELUDE_LDFLAGS=""
13879      LIBPRELUDE_LIBS=""
13880      :
13881   fi
13882   rm -f conf.libpreludetest
13883
13884
13885
13886
13887
13888
13889
13890   if test "$LIBPRELUDE_CONFIG" != "no" ; then
13891     LIBPRELUDE_CFLAGS="$LIBPRELUDE_CFLAGS -DPRELUDE=1"
13892   fi
13893 fi
13894
13895 # Check whether --enable-debug was given.
13896 if test "${enable_debug+set}" = set; then
13897   enableval=$enable_debug;
13898 fi
13899
13900
13901 if test x"$enable_debug" = x"yes" ; then
13902
13903 cat >>confdefs.h <<\_ACEOF
13904 #define PAM_DEBUG /**/
13905 _ACEOF
13906
13907 fi
13908
13909 # Check whether --enable-securedir was given.
13910 if test "${enable_securedir+set}" = set; then
13911   enableval=$enable_securedir; SECUREDIR=$enableval
13912 else
13913   SECUREDIR=$libdir/security
13914 fi
13915
13916
13917
13918 # Check whether --enable-isadir was given.
13919 if test "${enable_isadir+set}" = set; then
13920   enableval=$enable_isadir; ISA=$enableval
13921 else
13922   ISA=../../`basename $libdir`/security
13923 fi
13924
13925 unset mylibdirbase
13926
13927 cat >>confdefs.h <<_ACEOF
13928 #define _PAM_ISA "$ISA"
13929 _ACEOF
13930
13931 { $as_echo "$as_me:$LINENO: result: Defining \$ISA to \"$ISA\"" >&5
13932 $as_echo "Defining \$ISA to \"$ISA\"" >&6; }
13933
13934 # Check whether --enable-sconfigdir was given.
13935 if test "${enable_sconfigdir+set}" = set; then
13936   enableval=$enable_sconfigdir; SCONFIGDIR=$enableval
13937 else
13938   SCONFIGDIR=$sysconfdir/security
13939 fi
13940
13941
13942
13943 # Check whether --enable-pamlocking was given.
13944 if test "${enable_pamlocking+set}" = set; then
13945   enableval=$enable_pamlocking;
13946 fi
13947
13948
13949 if test x"$enable_pamlocking" = "xyes"; then
13950
13951 cat >>confdefs.h <<\_ACEOF
13952 #define PAM_LOCKING /**/
13953 _ACEOF
13954
13955 fi
13956
13957 # Check whether --enable-read-both-confs was given.
13958 if test "${enable_read_both_confs+set}" = set; then
13959   enableval=$enable_read_both_confs;
13960 fi
13961
13962
13963 if test x"$enable_read_both_confs" = "xyes"; then
13964
13965 cat >>confdefs.h <<\_ACEOF
13966 #define PAM_READ_BOTH_CONFS /**/
13967 _ACEOF
13968
13969 fi
13970
13971 # Check whether --enable-lckpwdf was given.
13972 if test "${enable_lckpwdf+set}" = set; then
13973   enableval=$enable_lckpwdf; WITH_LCKPWDF=$enableval
13974 else
13975   WITH_LCKPWDF=yes
13976 fi
13977
13978 if test "$WITH_LCKPWDF" == "yes" ; then
13979
13980 cat >>confdefs.h <<\_ACEOF
13981 #define USE_LCKPWDF 1
13982 _ACEOF
13983
13984 fi
13985
13986
13987 for ac_header in paths.h
13988 do
13989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13991   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13992 $as_echo_n "checking for $ac_header... " >&6; }
13993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13994   $as_echo_n "(cached) " >&6
13995 fi
13996 ac_res=`eval 'as_val=${'$as_ac_Header'}
13997                  $as_echo "$as_val"'`
13998                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13999 $as_echo "$ac_res" >&6; }
14000 else
14001   # Is the header compilable?
14002 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14003 $as_echo_n "checking $ac_header usability... " >&6; }
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010 $ac_includes_default
14011 #include <$ac_header>
14012 _ACEOF
14013 rm -f conftest.$ac_objext
14014 if { (ac_try="$ac_compile"
14015 case "(($ac_try" in
14016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017   *) ac_try_echo=$ac_try;;
14018 esac
14019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14020 $as_echo "$ac_try_echo") >&5
14021   (eval "$ac_compile") 2>conftest.er1
14022   ac_status=$?
14023   grep -v '^ *+' conftest.er1 >conftest.err
14024   rm -f conftest.er1
14025   cat conftest.err >&5
14026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); } && {
14028          test -z "$ac_c_werror_flag" ||
14029          test ! -s conftest.err
14030        } && test -s conftest.$ac_objext; then
14031   ac_header_compiler=yes
14032 else
14033   $as_echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036         ac_header_compiler=no
14037 fi
14038
14039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14040 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14041 $as_echo "$ac_header_compiler" >&6; }
14042
14043 # Is the header present?
14044 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14045 $as_echo_n "checking $ac_header presence... " >&6; }
14046 cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h.  */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h.  */
14052 #include <$ac_header>
14053 _ACEOF
14054 if { (ac_try="$ac_cpp conftest.$ac_ext"
14055 case "(($ac_try" in
14056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057   *) ac_try_echo=$ac_try;;
14058 esac
14059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14060 $as_echo "$ac_try_echo") >&5
14061   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14062   ac_status=$?
14063   grep -v '^ *+' conftest.er1 >conftest.err
14064   rm -f conftest.er1
14065   cat conftest.err >&5
14066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); } >/dev/null && {
14068          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14069          test ! -s conftest.err
14070        }; then
14071   ac_header_preproc=yes
14072 else
14073   $as_echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14075
14076   ac_header_preproc=no
14077 fi
14078
14079 rm -f conftest.err conftest.$ac_ext
14080 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14081 $as_echo "$ac_header_preproc" >&6; }
14082
14083 # So?  What about this header?
14084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14085   yes:no: )
14086     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14087 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14089 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14090     ac_header_preproc=yes
14091     ;;
14092   no:yes:* )
14093     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14094 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14096 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14097     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14098 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14099     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14100 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14101     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14102 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14103     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14104 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14105
14106     ;;
14107 esac
14108 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14109 $as_echo_n "checking for $ac_header... " >&6; }
14110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14111   $as_echo_n "(cached) " >&6
14112 else
14113   eval "$as_ac_Header=\$ac_header_preproc"
14114 fi
14115 ac_res=`eval 'as_val=${'$as_ac_Header'}
14116                  $as_echo "$as_val"'`
14117                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14118 $as_echo "$ac_res" >&6; }
14119
14120 fi
14121 as_val=`eval 'as_val=${'$as_ac_Header'}
14122                  $as_echo "$as_val"'`
14123    if test "x$as_val" = x""yes; then
14124   cat >>confdefs.h <<_ACEOF
14125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14126 _ACEOF
14127
14128 fi
14129
14130 done
14131
14132
14133 # Check whether --with-mailspool was given.
14134 if test "${with_mailspool+set}" = set; then
14135   withval=$with_mailspool; with_mailspool=${withval}
14136 fi
14137
14138 if test x$with_mailspool != x ; then
14139         pam_mail_spool="\"$with_mailspool\""
14140 else
14141         if test "$cross_compiling" = yes; then
14142   pam_mail_spool="\"/var/spool/mail\""
14143 else
14144   cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h.  */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h.  */
14150
14151 #include <paths.h>
14152 int main() {
14153 #ifdef _PATH_MAILDIR
14154 exit(0);
14155 #else
14156 exit(1);
14157 #endif
14158 }
14159 _ACEOF
14160 rm -f conftest$ac_exeext
14161 if { (ac_try="$ac_link"
14162 case "(($ac_try" in
14163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164   *) ac_try_echo=$ac_try;;
14165 esac
14166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14167 $as_echo "$ac_try_echo") >&5
14168   (eval "$ac_link") 2>&5
14169   ac_status=$?
14170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14172   { (case "(($ac_try" in
14173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174   *) ac_try_echo=$ac_try;;
14175 esac
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178   (eval "$ac_try") 2>&5
14179   ac_status=$?
14180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); }; }; then
14182   pam_mail_spool="_PATH_MAILDIR"
14183 else
14184   $as_echo "$as_me: program exited with status $ac_status" >&5
14185 $as_echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 ( exit $ac_status )
14189 pam_mail_spool="\"/var/spool/mail\""
14190 fi
14191 rm -rf conftest.dSYM
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14193 fi
14194
14195
14196 fi
14197
14198 cat >>confdefs.h <<_ACEOF
14199 #define PAM_PATH_MAILDIR $pam_mail_spool
14200 _ACEOF
14201
14202
14203
14204 # Check whether --with-xauth was given.
14205 if test "${with_xauth+set}" = set; then
14206   withval=$with_xauth; pam_xauth_path=${withval}
14207 fi
14208
14209 if test x$with_xauth == x ; then
14210         # Extract the first word of "xauth", so it can be a program name with args.
14211 set dummy xauth; ac_word=$2
14212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14213 $as_echo_n "checking for $ac_word... " >&6; }
14214 if test "${ac_cv_path_pam_xauth_path+set}" = set; then
14215   $as_echo_n "(cached) " >&6
14216 else
14217   case $pam_xauth_path in
14218   [\\/]* | ?:[\\/]*)
14219   ac_cv_path_pam_xauth_path="$pam_xauth_path" # Let the user override the test with a path.
14220   ;;
14221   *)
14222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14223 for as_dir in $PATH
14224 do
14225   IFS=$as_save_IFS
14226   test -z "$as_dir" && as_dir=.
14227   for ac_exec_ext in '' $ac_executable_extensions; do
14228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14229     ac_cv_path_pam_xauth_path="$as_dir/$ac_word$ac_exec_ext"
14230     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14231     break 2
14232   fi
14233 done
14234 done
14235 IFS=$as_save_IFS
14236
14237   ;;
14238 esac
14239 fi
14240 pam_xauth_path=$ac_cv_path_pam_xauth_path
14241 if test -n "$pam_xauth_path"; then
14242   { $as_echo "$as_me:$LINENO: result: $pam_xauth_path" >&5
14243 $as_echo "$pam_xauth_path" >&6; }
14244 else
14245   { $as_echo "$as_me:$LINENO: result: no" >&5
14246 $as_echo "no" >&6; }
14247 fi
14248
14249
14250         if test x$pam_xauth_path == x/usr/X11R6/bin/xauth ; then
14251                 unset pam_xauth_path
14252         fi
14253 fi
14254
14255 if test x$pam_xauth_path != x ; then
14256
14257 cat >>confdefs.h <<_ACEOF
14258 #define PAM_PATH_XAUTH "$pam_xauth_path"
14259 _ACEOF
14260
14261 fi
14262
14263 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14264 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14266   $as_echo_n "(cached) " >&6
14267 else
14268   ac_check_lib_save_LIBS=$LIBS
14269 LIBS="-ldl  $LIBS"
14270 cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h.  */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h.  */
14276
14277 /* Override any GCC internal prototype to avoid an error.
14278    Use char because int might match the return type of a GCC
14279    builtin and then its argument prototype would still apply.  */
14280 #ifdef __cplusplus
14281 extern "C"
14282 #endif
14283 char dlopen ();
14284 int
14285 main ()
14286 {
14287 return dlopen ();
14288   ;
14289   return 0;
14290 }
14291 _ACEOF
14292 rm -f conftest.$ac_objext conftest$ac_exeext
14293 if { (ac_try="$ac_link"
14294 case "(($ac_try" in
14295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296   *) ac_try_echo=$ac_try;;
14297 esac
14298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14299 $as_echo "$ac_try_echo") >&5
14300   (eval "$ac_link") 2>conftest.er1
14301   ac_status=$?
14302   grep -v '^ *+' conftest.er1 >conftest.err
14303   rm -f conftest.er1
14304   cat conftest.err >&5
14305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); } && {
14307          test -z "$ac_c_werror_flag" ||
14308          test ! -s conftest.err
14309        } && test -s conftest$ac_exeext && {
14310          test "$cross_compiling" = yes ||
14311          $as_test_x conftest$ac_exeext
14312        }; then
14313   ac_cv_lib_dl_dlopen=yes
14314 else
14315   $as_echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318         ac_cv_lib_dl_dlopen=no
14319 fi
14320
14321 rm -rf conftest.dSYM
14322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14323       conftest$ac_exeext conftest.$ac_ext
14324 LIBS=$ac_check_lib_save_LIBS
14325 fi
14326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14327 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14328 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14329   LIBDL="-ldl"
14330 else
14331   LIBDL=""
14332 fi
14333
14334
14335
14336 # Check for cracklib
14337 # Check whether --enable-cracklib was given.
14338 if test "${enable_cracklib+set}" = set; then
14339   enableval=$enable_cracklib; WITH_CRACKLIB=$enableval
14340 else
14341   WITH_CRACKLIB=yes
14342 fi
14343
14344 if test x"$WITH_CRACKLIB" != xno ; then
14345
14346 for ac_header in crack.h
14347 do
14348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14351 $as_echo_n "checking for $ac_header... " >&6; }
14352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14353   $as_echo_n "(cached) " >&6
14354 fi
14355 ac_res=`eval 'as_val=${'$as_ac_Header'}
14356                  $as_echo "$as_val"'`
14357                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14358 $as_echo "$ac_res" >&6; }
14359 else
14360   # Is the header compilable?
14361 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14362 $as_echo_n "checking $ac_header usability... " >&6; }
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369 $ac_includes_default
14370 #include <$ac_header>
14371 _ACEOF
14372 rm -f conftest.$ac_objext
14373 if { (ac_try="$ac_compile"
14374 case "(($ac_try" in
14375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376   *) ac_try_echo=$ac_try;;
14377 esac
14378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14379 $as_echo "$ac_try_echo") >&5
14380   (eval "$ac_compile") 2>conftest.er1
14381   ac_status=$?
14382   grep -v '^ *+' conftest.er1 >conftest.err
14383   rm -f conftest.er1
14384   cat conftest.err >&5
14385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); } && {
14387          test -z "$ac_c_werror_flag" ||
14388          test ! -s conftest.err
14389        } && test -s conftest.$ac_objext; then
14390   ac_header_compiler=yes
14391 else
14392   $as_echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14394
14395         ac_header_compiler=no
14396 fi
14397
14398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14400 $as_echo "$ac_header_compiler" >&6; }
14401
14402 # Is the header present?
14403 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14404 $as_echo_n "checking $ac_header presence... " >&6; }
14405 cat >conftest.$ac_ext <<_ACEOF
14406 /* confdefs.h.  */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h.  */
14411 #include <$ac_header>
14412 _ACEOF
14413 if { (ac_try="$ac_cpp conftest.$ac_ext"
14414 case "(($ac_try" in
14415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416   *) ac_try_echo=$ac_try;;
14417 esac
14418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14419 $as_echo "$ac_try_echo") >&5
14420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14421   ac_status=$?
14422   grep -v '^ *+' conftest.er1 >conftest.err
14423   rm -f conftest.er1
14424   cat conftest.err >&5
14425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); } >/dev/null && {
14427          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14428          test ! -s conftest.err
14429        }; then
14430   ac_header_preproc=yes
14431 else
14432   $as_echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14434
14435   ac_header_preproc=no
14436 fi
14437
14438 rm -f conftest.err conftest.$ac_ext
14439 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14440 $as_echo "$ac_header_preproc" >&6; }
14441
14442 # So?  What about this header?
14443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14444   yes:no: )
14445     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14446 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14449     ac_header_preproc=yes
14450     ;;
14451   no:yes:* )
14452     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14453 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14454     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14455 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14456     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14457 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14458     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14459 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14460     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14461 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14462     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14463 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14464
14465     ;;
14466 esac
14467 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14468 $as_echo_n "checking for $ac_header... " >&6; }
14469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14470   $as_echo_n "(cached) " >&6
14471 else
14472   eval "$as_ac_Header=\$ac_header_preproc"
14473 fi
14474 ac_res=`eval 'as_val=${'$as_ac_Header'}
14475                  $as_echo "$as_val"'`
14476                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14477 $as_echo "$ac_res" >&6; }
14478
14479 fi
14480 as_val=`eval 'as_val=${'$as_ac_Header'}
14481                  $as_echo "$as_val"'`
14482    if test "x$as_val" = x""yes; then
14483   cat >>confdefs.h <<_ACEOF
14484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14485 _ACEOF
14486  { $as_echo "$as_me:$LINENO: checking for FascistCheck in -lcrack" >&5
14487 $as_echo_n "checking for FascistCheck in -lcrack... " >&6; }
14488 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then
14489   $as_echo_n "(cached) " >&6
14490 else
14491   ac_check_lib_save_LIBS=$LIBS
14492 LIBS="-lcrack  $LIBS"
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499
14500 /* Override any GCC internal prototype to avoid an error.
14501    Use char because int might match the return type of a GCC
14502    builtin and then its argument prototype would still apply.  */
14503 #ifdef __cplusplus
14504 extern "C"
14505 #endif
14506 char FascistCheck ();
14507 int
14508 main ()
14509 {
14510 return FascistCheck ();
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext conftest$ac_exeext
14516 if { (ac_try="$ac_link"
14517 case "(($ac_try" in
14518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519   *) ac_try_echo=$ac_try;;
14520 esac
14521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14522 $as_echo "$ac_try_echo") >&5
14523   (eval "$ac_link") 2>conftest.er1
14524   ac_status=$?
14525   grep -v '^ *+' conftest.er1 >conftest.err
14526   rm -f conftest.er1
14527   cat conftest.err >&5
14528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); } && {
14530          test -z "$ac_c_werror_flag" ||
14531          test ! -s conftest.err
14532        } && test -s conftest$ac_exeext && {
14533          test "$cross_compiling" = yes ||
14534          $as_test_x conftest$ac_exeext
14535        }; then
14536   ac_cv_lib_crack_FascistCheck=yes
14537 else
14538   $as_echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14540
14541         ac_cv_lib_crack_FascistCheck=no
14542 fi
14543
14544 rm -rf conftest.dSYM
14545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14546       conftest$ac_exeext conftest.$ac_ext
14547 LIBS=$ac_check_lib_save_LIBS
14548 fi
14549 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistCheck" >&5
14550 $as_echo "$ac_cv_lib_crack_FascistCheck" >&6; }
14551 if test "x$ac_cv_lib_crack_FascistCheck" = x""yes; then
14552   LIBCRACK="-lcrack"
14553 else
14554   LIBCRACK=""
14555 fi
14556
14557 fi
14558
14559 done
14560
14561 else
14562         LIBCRACK=""
14563 fi
14564
14565  if test ! -z "$LIBCRACK"; then
14566   HAVE_LIBCRACK_TRUE=
14567   HAVE_LIBCRACK_FALSE='#'
14568 else
14569   HAVE_LIBCRACK_TRUE='#'
14570   HAVE_LIBCRACK_FALSE=
14571 fi
14572
14573
14574 # Check whether --enable-audit was given.
14575 if test "${enable_audit+set}" = set; then
14576   enableval=$enable_audit; WITH_LIBAUDIT=$enableval
14577 else
14578   WITH_LIBAUDIT=yes
14579 fi
14580
14581 if test x"$WITH_LIBAUDIT" != xno ; then
14582         if test "${ac_cv_header_libaudit_h+set}" = set; then
14583   { $as_echo "$as_me:$LINENO: checking for libaudit.h" >&5
14584 $as_echo_n "checking for libaudit.h... " >&6; }
14585 if test "${ac_cv_header_libaudit_h+set}" = set; then
14586   $as_echo_n "(cached) " >&6
14587 fi
14588 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaudit_h" >&5
14589 $as_echo "$ac_cv_header_libaudit_h" >&6; }
14590 else
14591   # Is the header compilable?
14592 { $as_echo "$as_me:$LINENO: checking libaudit.h usability" >&5
14593 $as_echo_n "checking libaudit.h usability... " >&6; }
14594 cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h.  */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h.  */
14600 $ac_includes_default
14601 #include <libaudit.h>
14602 _ACEOF
14603 rm -f conftest.$ac_objext
14604 if { (ac_try="$ac_compile"
14605 case "(($ac_try" in
14606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607   *) ac_try_echo=$ac_try;;
14608 esac
14609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14610 $as_echo "$ac_try_echo") >&5
14611   (eval "$ac_compile") 2>conftest.er1
14612   ac_status=$?
14613   grep -v '^ *+' conftest.er1 >conftest.err
14614   rm -f conftest.er1
14615   cat conftest.err >&5
14616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); } && {
14618          test -z "$ac_c_werror_flag" ||
14619          test ! -s conftest.err
14620        } && test -s conftest.$ac_objext; then
14621   ac_header_compiler=yes
14622 else
14623   $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626         ac_header_compiler=no
14627 fi
14628
14629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14630 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14631 $as_echo "$ac_header_compiler" >&6; }
14632
14633 # Is the header present?
14634 { $as_echo "$as_me:$LINENO: checking libaudit.h presence" >&5
14635 $as_echo_n "checking libaudit.h presence... " >&6; }
14636 cat >conftest.$ac_ext <<_ACEOF
14637 /* confdefs.h.  */
14638 _ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h.  */
14642 #include <libaudit.h>
14643 _ACEOF
14644 if { (ac_try="$ac_cpp conftest.$ac_ext"
14645 case "(($ac_try" in
14646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647   *) ac_try_echo=$ac_try;;
14648 esac
14649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14650 $as_echo "$ac_try_echo") >&5
14651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14652   ac_status=$?
14653   grep -v '^ *+' conftest.er1 >conftest.err
14654   rm -f conftest.er1
14655   cat conftest.err >&5
14656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); } >/dev/null && {
14658          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14659          test ! -s conftest.err
14660        }; then
14661   ac_header_preproc=yes
14662 else
14663   $as_echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14665
14666   ac_header_preproc=no
14667 fi
14668
14669 rm -f conftest.err conftest.$ac_ext
14670 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14671 $as_echo "$ac_header_preproc" >&6; }
14672
14673 # So?  What about this header?
14674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14675   yes:no: )
14676     { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: accepted by the compiler, rejected by the preprocessor!" >&5
14677 $as_echo "$as_me: WARNING: libaudit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14678     { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: proceeding with the compiler's result" >&5
14679 $as_echo "$as_me: WARNING: libaudit.h: proceeding with the compiler's result" >&2;}
14680     ac_header_preproc=yes
14681     ;;
14682   no:yes:* )
14683     { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: present but cannot be compiled" >&5
14684 $as_echo "$as_me: WARNING: libaudit.h: present but cannot be compiled" >&2;}
14685     { $as_echo "$as_me:$LINENO: WARNING: libaudit.h:     check for missing prerequisite headers?" >&5
14686 $as_echo "$as_me: WARNING: libaudit.h:     check for missing prerequisite headers?" >&2;}
14687     { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: see the Autoconf documentation" >&5
14688 $as_echo "$as_me: WARNING: libaudit.h: see the Autoconf documentation" >&2;}
14689     { $as_echo "$as_me:$LINENO: WARNING: libaudit.h:     section \"Present But Cannot Be Compiled\"" >&5
14690 $as_echo "$as_me: WARNING: libaudit.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14691     { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: proceeding with the preprocessor's result" >&5
14692 $as_echo "$as_me: WARNING: libaudit.h: proceeding with the preprocessor's result" >&2;}
14693     { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: in the future, the compiler will take precedence" >&5
14694 $as_echo "$as_me: WARNING: libaudit.h: in the future, the compiler will take precedence" >&2;}
14695
14696     ;;
14697 esac
14698 { $as_echo "$as_me:$LINENO: checking for libaudit.h" >&5
14699 $as_echo_n "checking for libaudit.h... " >&6; }
14700 if test "${ac_cv_header_libaudit_h+set}" = set; then
14701   $as_echo_n "(cached) " >&6
14702 else
14703   ac_cv_header_libaudit_h=$ac_header_preproc
14704 fi
14705 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaudit_h" >&5
14706 $as_echo "$ac_cv_header_libaudit_h" >&6; }
14707
14708 fi
14709 if test "x$ac_cv_header_libaudit_h" = x""yes; then
14710   { $as_echo "$as_me:$LINENO: checking for audit_log_acct_message in -laudit" >&5
14711 $as_echo_n "checking for audit_log_acct_message in -laudit... " >&6; }
14712 if test "${ac_cv_lib_audit_audit_log_acct_message+set}" = set; then
14713   $as_echo_n "(cached) " >&6
14714 else
14715   ac_check_lib_save_LIBS=$LIBS
14716 LIBS="-laudit  $LIBS"
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h.  */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h.  */
14723
14724 /* Override any GCC internal prototype to avoid an error.
14725    Use char because int might match the return type of a GCC
14726    builtin and then its argument prototype would still apply.  */
14727 #ifdef __cplusplus
14728 extern "C"
14729 #endif
14730 char audit_log_acct_message ();
14731 int
14732 main ()
14733 {
14734 return audit_log_acct_message ();
14735   ;
14736   return 0;
14737 }
14738 _ACEOF
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (ac_try="$ac_link"
14741 case "(($ac_try" in
14742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743   *) ac_try_echo=$ac_try;;
14744 esac
14745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14746 $as_echo "$ac_try_echo") >&5
14747   (eval "$ac_link") 2>conftest.er1
14748   ac_status=$?
14749   grep -v '^ *+' conftest.er1 >conftest.err
14750   rm -f conftest.er1
14751   cat conftest.err >&5
14752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); } && {
14754          test -z "$ac_c_werror_flag" ||
14755          test ! -s conftest.err
14756        } && test -s conftest$ac_exeext && {
14757          test "$cross_compiling" = yes ||
14758          $as_test_x conftest$ac_exeext
14759        }; then
14760   ac_cv_lib_audit_audit_log_acct_message=yes
14761 else
14762   $as_echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14764
14765         ac_cv_lib_audit_audit_log_acct_message=no
14766 fi
14767
14768 rm -rf conftest.dSYM
14769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14770       conftest$ac_exeext conftest.$ac_ext
14771 LIBS=$ac_check_lib_save_LIBS
14772 fi
14773 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_acct_message" >&5
14774 $as_echo "$ac_cv_lib_audit_audit_log_acct_message" >&6; }
14775 if test "x$ac_cv_lib_audit_audit_log_acct_message" = x""yes; then
14776   LIBAUDIT=-laudit
14777 else
14778   LIBAUDIT=""
14779 fi
14780
14781                { $as_echo "$as_me:$LINENO: checking for struct audit_tty_status" >&5
14782 $as_echo_n "checking for struct audit_tty_status... " >&6; }
14783 if test "${ac_cv_type_struct_audit_tty_status+set}" = set; then
14784   $as_echo_n "(cached) " >&6
14785 else
14786   ac_cv_type_struct_audit_tty_status=no
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h.  */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h.  */
14793 #include <libaudit.h>
14794
14795 int
14796 main ()
14797 {
14798 if (sizeof (struct audit_tty_status))
14799        return 0;
14800   ;
14801   return 0;
14802 }
14803 _ACEOF
14804 rm -f conftest.$ac_objext
14805 if { (ac_try="$ac_compile"
14806 case "(($ac_try" in
14807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808   *) ac_try_echo=$ac_try;;
14809 esac
14810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14811 $as_echo "$ac_try_echo") >&5
14812   (eval "$ac_compile") 2>conftest.er1
14813   ac_status=$?
14814   grep -v '^ *+' conftest.er1 >conftest.err
14815   rm -f conftest.er1
14816   cat conftest.err >&5
14817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); } && {
14819          test -z "$ac_c_werror_flag" ||
14820          test ! -s conftest.err
14821        } && test -s conftest.$ac_objext; then
14822   cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h.  */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h.  */
14828 #include <libaudit.h>
14829
14830 int
14831 main ()
14832 {
14833 if (sizeof ((struct audit_tty_status)))
14834           return 0;
14835   ;
14836   return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext
14840 if { (ac_try="$ac_compile"
14841 case "(($ac_try" in
14842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843   *) ac_try_echo=$ac_try;;
14844 esac
14845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14846 $as_echo "$ac_try_echo") >&5
14847   (eval "$ac_compile") 2>conftest.er1
14848   ac_status=$?
14849   grep -v '^ *+' conftest.er1 >conftest.err
14850   rm -f conftest.er1
14851   cat conftest.err >&5
14852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } && {
14854          test -z "$ac_c_werror_flag" ||
14855          test ! -s conftest.err
14856        } && test -s conftest.$ac_objext; then
14857   :
14858 else
14859   $as_echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14861
14862         ac_cv_type_struct_audit_tty_status=yes
14863 fi
14864
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866 else
14867   $as_echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870
14871 fi
14872
14873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14874 fi
14875 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_audit_tty_status" >&5
14876 $as_echo "$ac_cv_type_struct_audit_tty_status" >&6; }
14877 if test "x$ac_cv_type_struct_audit_tty_status" = x""yes; then
14878   HAVE_AUDIT_TTY_STATUS=yes
14879 else
14880   HAVE_AUDIT_TTY_STATUS=""
14881 fi
14882
14883
14884 fi
14885
14886
14887         if test ! -z "$LIBAUDIT" -a "$ac_cv_header_libaudit_h" != "no" ; then
14888
14889 cat >>confdefs.h <<\_ACEOF
14890 #define HAVE_LIBAUDIT 1
14891 _ACEOF
14892
14893         fi
14894         if test ! -z "$HAVE_AUDIT_TTY_STATUS" ; then
14895
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_AUDIT_TTY_STATUS 1
14898 _ACEOF
14899
14900         fi
14901 else
14902         LIBAUDIT=""
14903 fi
14904
14905  if test "x$HAVE_AUDIT_TTY_STATUS" = xyes; then
14906   HAVE_AUDIT_TTY_STATUS_TRUE=
14907   HAVE_AUDIT_TTY_STATUS_FALSE='#'
14908 else
14909   HAVE_AUDIT_TTY_STATUS_TRUE='#'
14910   HAVE_AUDIT_TTY_STATUS_FALSE=
14911 fi
14912
14913
14914
14915
14916 for ac_header in xcrypt.h crypt.h
14917 do
14918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14920   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14921 $as_echo_n "checking for $ac_header... " >&6; }
14922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14923   $as_echo_n "(cached) " >&6
14924 fi
14925 ac_res=`eval 'as_val=${'$as_ac_Header'}
14926                  $as_echo "$as_val"'`
14927                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14928 $as_echo "$ac_res" >&6; }
14929 else
14930   # Is the header compilable?
14931 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14932 $as_echo_n "checking $ac_header usability... " >&6; }
14933 cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h.  */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h.  */
14939 $ac_includes_default
14940 #include <$ac_header>
14941 _ACEOF
14942 rm -f conftest.$ac_objext
14943 if { (ac_try="$ac_compile"
14944 case "(($ac_try" in
14945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946   *) ac_try_echo=$ac_try;;
14947 esac
14948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14949 $as_echo "$ac_try_echo") >&5
14950   (eval "$ac_compile") 2>conftest.er1
14951   ac_status=$?
14952   grep -v '^ *+' conftest.er1 >conftest.err
14953   rm -f conftest.er1
14954   cat conftest.err >&5
14955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); } && {
14957          test -z "$ac_c_werror_flag" ||
14958          test ! -s conftest.err
14959        } && test -s conftest.$ac_objext; then
14960   ac_header_compiler=yes
14961 else
14962   $as_echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14964
14965         ac_header_compiler=no
14966 fi
14967
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14970 $as_echo "$ac_header_compiler" >&6; }
14971
14972 # Is the header present?
14973 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14974 $as_echo_n "checking $ac_header presence... " >&6; }
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h.  */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h.  */
14981 #include <$ac_header>
14982 _ACEOF
14983 if { (ac_try="$ac_cpp conftest.$ac_ext"
14984 case "(($ac_try" in
14985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986   *) ac_try_echo=$ac_try;;
14987 esac
14988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14989 $as_echo "$ac_try_echo") >&5
14990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14991   ac_status=$?
14992   grep -v '^ *+' conftest.er1 >conftest.err
14993   rm -f conftest.er1
14994   cat conftest.err >&5
14995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); } >/dev/null && {
14997          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14998          test ! -s conftest.err
14999        }; then
15000   ac_header_preproc=yes
15001 else
15002   $as_echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005   ac_header_preproc=no
15006 fi
15007
15008 rm -f conftest.err conftest.$ac_ext
15009 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15010 $as_echo "$ac_header_preproc" >&6; }
15011
15012 # So?  What about this header?
15013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15014   yes:no: )
15015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15016 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15018 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15019     ac_header_preproc=yes
15020     ;;
15021   no:yes:* )
15022     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15023 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15024     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15025 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15026     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15027 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15028     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15029 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15030     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15031 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15032     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15033 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15034
15035     ;;
15036 esac
15037 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15038 $as_echo_n "checking for $ac_header... " >&6; }
15039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15040   $as_echo_n "(cached) " >&6
15041 else
15042   eval "$as_ac_Header=\$ac_header_preproc"
15043 fi
15044 ac_res=`eval 'as_val=${'$as_ac_Header'}
15045                  $as_echo "$as_val"'`
15046                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15047 $as_echo "$ac_res" >&6; }
15048
15049 fi
15050 as_val=`eval 'as_val=${'$as_ac_Header'}
15051                  $as_echo "$as_val"'`
15052    if test "x$as_val" = x""yes; then
15053   cat >>confdefs.h <<_ACEOF
15054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15055 _ACEOF
15056
15057 fi
15058
15059 done
15060
15061 if test "x$ac_cv_header_xcrypt_h" = "xyes"; then
15062   crypt_libs="xcrypt crypt"
15063 else
15064   crypt_libs="crypt"
15065 fi
15066
15067
15068 BACKUP_LIBS=$LIBS
15069 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
15070 $as_echo_n "checking for library containing crypt... " >&6; }
15071 if test "${ac_cv_search_crypt+set}" = set; then
15072   $as_echo_n "(cached) " >&6
15073 else
15074   ac_func_search_save_LIBS=$LIBS
15075 cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081
15082 /* Override any GCC internal prototype to avoid an error.
15083    Use char because int might match the return type of a GCC
15084    builtin and then its argument prototype would still apply.  */
15085 #ifdef __cplusplus
15086 extern "C"
15087 #endif
15088 char crypt ();
15089 int
15090 main ()
15091 {
15092 return crypt ();
15093   ;
15094   return 0;
15095 }
15096 _ACEOF
15097 for ac_lib in '' $crypt_libs; do
15098   if test -z "$ac_lib"; then
15099     ac_res="none required"
15100   else
15101     ac_res=-l$ac_lib
15102     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15103   fi
15104   rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (ac_try="$ac_link"
15106 case "(($ac_try" in
15107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108   *) ac_try_echo=$ac_try;;
15109 esac
15110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15111 $as_echo "$ac_try_echo") >&5
15112   (eval "$ac_link") 2>conftest.er1
15113   ac_status=$?
15114   grep -v '^ *+' conftest.er1 >conftest.err
15115   rm -f conftest.er1
15116   cat conftest.err >&5
15117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } && {
15119          test -z "$ac_c_werror_flag" ||
15120          test ! -s conftest.err
15121        } && test -s conftest$ac_exeext && {
15122          test "$cross_compiling" = yes ||
15123          $as_test_x conftest$ac_exeext
15124        }; then
15125   ac_cv_search_crypt=$ac_res
15126 else
15127   $as_echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15129
15130
15131 fi
15132
15133 rm -rf conftest.dSYM
15134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15135       conftest$ac_exeext
15136   if test "${ac_cv_search_crypt+set}" = set; then
15137   break
15138 fi
15139 done
15140 if test "${ac_cv_search_crypt+set}" = set; then
15141   :
15142 else
15143   ac_cv_search_crypt=no
15144 fi
15145 rm conftest.$ac_ext
15146 LIBS=$ac_func_search_save_LIBS
15147 fi
15148 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
15149 $as_echo "$ac_cv_search_crypt" >&6; }
15150 ac_res=$ac_cv_search_crypt
15151 if test "$ac_res" != no; then
15152   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15153   LIBCRYPT="-l$ac_lib"
15154 else
15155   LIBCRYPT=""
15156 fi
15157
15158
15159
15160 for ac_func in crypt_r crypt_gensalt_r
15161 do
15162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15163 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15164 $as_echo_n "checking for $ac_func... " >&6; }
15165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15166   $as_echo_n "(cached) " >&6
15167 else
15168   cat >conftest.$ac_ext <<_ACEOF
15169 /* confdefs.h.  */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h.  */
15174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15176 #define $ac_func innocuous_$ac_func
15177
15178 /* System header to define __stub macros and hopefully few prototypes,
15179     which can conflict with char $ac_func (); below.
15180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15181     <limits.h> exists even on freestanding compilers.  */
15182
15183 #ifdef __STDC__
15184 # include <limits.h>
15185 #else
15186 # include <assert.h>
15187 #endif
15188
15189 #undef $ac_func
15190
15191 /* Override any GCC internal prototype to avoid an error.
15192    Use char because int might match the return type of a GCC
15193    builtin and then its argument prototype would still apply.  */
15194 #ifdef __cplusplus
15195 extern "C"
15196 #endif
15197 char $ac_func ();
15198 /* The GNU C library defines this for functions which it implements
15199     to always fail with ENOSYS.  Some functions are actually named
15200     something starting with __ and the normal name is an alias.  */
15201 #if defined __stub_$ac_func || defined __stub___$ac_func
15202 choke me
15203 #endif
15204
15205 int
15206 main ()
15207 {
15208 return $ac_func ();
15209   ;
15210   return 0;
15211 }
15212 _ACEOF
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (ac_try="$ac_link"
15215 case "(($ac_try" in
15216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217   *) ac_try_echo=$ac_try;;
15218 esac
15219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15220 $as_echo "$ac_try_echo") >&5
15221   (eval "$ac_link") 2>conftest.er1
15222   ac_status=$?
15223   grep -v '^ *+' conftest.er1 >conftest.err
15224   rm -f conftest.er1
15225   cat conftest.err >&5
15226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); } && {
15228          test -z "$ac_c_werror_flag" ||
15229          test ! -s conftest.err
15230        } && test -s conftest$ac_exeext && {
15231          test "$cross_compiling" = yes ||
15232          $as_test_x conftest$ac_exeext
15233        }; then
15234   eval "$as_ac_var=yes"
15235 else
15236   $as_echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239         eval "$as_ac_var=no"
15240 fi
15241
15242 rm -rf conftest.dSYM
15243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244       conftest$ac_exeext conftest.$ac_ext
15245 fi
15246 ac_res=`eval 'as_val=${'$as_ac_var'}
15247                  $as_echo "$as_val"'`
15248                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15249 $as_echo "$ac_res" >&6; }
15250 as_val=`eval 'as_val=${'$as_ac_var'}
15251                  $as_echo "$as_val"'`
15252    if test "x$as_val" = x""yes; then
15253   cat >>confdefs.h <<_ACEOF
15254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15255 _ACEOF
15256
15257 fi
15258 done
15259
15260 LIBS=$BACKUP_LIBS
15261
15262 if test "$LIBCRYPT" = "-lxcrypt" -a "$ac_cv_header_xcrypt_h" = "yes" ; then
15263
15264 cat >>confdefs.h <<\_ACEOF
15265 #define HAVE_LIBXCRYPT 1
15266 _ACEOF
15267
15268 fi
15269
15270
15271 # Check whether --with-randomdev was given.
15272 if test "${with_randomdev+set}" = set; then
15273   withval=$with_randomdev; opt_randomdev=$withval
15274 fi
15275
15276 if test "$opt_randomdev" = yes -o -z "$opt_randomdev"; then
15277        opt_randomdev="/dev/urandom"
15278 elif test "$opt_randomdev" = no; then
15279        opt_randomdev=
15280 fi
15281 if test -n "$opt_randomdev"; then
15282
15283 cat >>confdefs.h <<_ACEOF
15284 #define PAM_PATH_RANDOMDEV "$opt_randomdev"
15285 _ACEOF
15286
15287 fi
15288
15289 # Check whether --enable-db was given.
15290 if test "${enable_db+set}" = set; then
15291   enableval=$enable_db; WITH_DB=$enableval
15292 else
15293   WITH_DB=yes
15294 fi
15295
15296
15297 # Check whether --with-db-uniquename was given.
15298 if test "${with_db_uniquename+set}" = set; then
15299   withval=$with_db_uniquename;
15300 fi
15301
15302 if test x"$WITH_DB" != xno ; then
15303         if test x"$WITH_DB" = xyes -o x"$WITH_DB" = xdb ; then
15304               old_libs=$LIBS
15305               LIBS="$LIBS -ldb$with_db_uniquename"
15306
15307
15308
15309
15310 for ac_func in db_create$with_db_uniquename db_create dbm_store$with_db_uniquename dbm_store
15311 do
15312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15313 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15314 $as_echo_n "checking for $ac_func... " >&6; }
15315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15316   $as_echo_n "(cached) " >&6
15317 else
15318   cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h.  */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h.  */
15324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15326 #define $ac_func innocuous_$ac_func
15327
15328 /* System header to define __stub macros and hopefully few prototypes,
15329     which can conflict with char $ac_func (); below.
15330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15331     <limits.h> exists even on freestanding compilers.  */
15332
15333 #ifdef __STDC__
15334 # include <limits.h>
15335 #else
15336 # include <assert.h>
15337 #endif
15338
15339 #undef $ac_func
15340
15341 /* Override any GCC internal prototype to avoid an error.
15342    Use char because int might match the return type of a GCC
15343    builtin and then its argument prototype would still apply.  */
15344 #ifdef __cplusplus
15345 extern "C"
15346 #endif
15347 char $ac_func ();
15348 /* The GNU C library defines this for functions which it implements
15349     to always fail with ENOSYS.  Some functions are actually named
15350     something starting with __ and the normal name is an alias.  */
15351 #if defined __stub_$ac_func || defined __stub___$ac_func
15352 choke me
15353 #endif
15354
15355 int
15356 main ()
15357 {
15358 return $ac_func ();
15359   ;
15360   return 0;
15361 }
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367   *) ac_try_echo=$ac_try;;
15368 esac
15369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15370 $as_echo "$ac_try_echo") >&5
15371   (eval "$ac_link") 2>conftest.er1
15372   ac_status=$?
15373   grep -v '^ *+' conftest.er1 >conftest.err
15374   rm -f conftest.er1
15375   cat conftest.err >&5
15376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } && {
15378          test -z "$ac_c_werror_flag" ||
15379          test ! -s conftest.err
15380        } && test -s conftest$ac_exeext && {
15381          test "$cross_compiling" = yes ||
15382          $as_test_x conftest$ac_exeext
15383        }; then
15384   eval "$as_ac_var=yes"
15385 else
15386   $as_echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389         eval "$as_ac_var=no"
15390 fi
15391
15392 rm -rf conftest.dSYM
15393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15394       conftest$ac_exeext conftest.$ac_ext
15395 fi
15396 ac_res=`eval 'as_val=${'$as_ac_var'}
15397                  $as_echo "$as_val"'`
15398                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15399 $as_echo "$ac_res" >&6; }
15400 as_val=`eval 'as_val=${'$as_ac_var'}
15401                  $as_echo "$as_val"'`
15402    if test "x$as_val" = x""yes; then
15403   cat >>confdefs.h <<_ACEOF
15404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15405 _ACEOF
15406  LIBDB="-ldb$with_db_uniquename"; break
15407 fi
15408 done
15409
15410               LIBS=$old_libs
15411         fi
15412         if test -z "$LIBDB" ; then
15413             { $as_echo "$as_me:$LINENO: checking for dbm_store in -lndbm" >&5
15414 $as_echo_n "checking for dbm_store in -lndbm... " >&6; }
15415 if test "${ac_cv_lib_ndbm_dbm_store+set}" = set; then
15416   $as_echo_n "(cached) " >&6
15417 else
15418   ac_check_lib_save_LIBS=$LIBS
15419 LIBS="-lndbm  $LIBS"
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426
15427 /* Override any GCC internal prototype to avoid an error.
15428    Use char because int might match the return type of a GCC
15429    builtin and then its argument prototype would still apply.  */
15430 #ifdef __cplusplus
15431 extern "C"
15432 #endif
15433 char dbm_store ();
15434 int
15435 main ()
15436 {
15437 return dbm_store ();
15438   ;
15439   return 0;
15440 }
15441 _ACEOF
15442 rm -f conftest.$ac_objext conftest$ac_exeext
15443 if { (ac_try="$ac_link"
15444 case "(($ac_try" in
15445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446   *) ac_try_echo=$ac_try;;
15447 esac
15448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15449 $as_echo "$ac_try_echo") >&5
15450   (eval "$ac_link") 2>conftest.er1
15451   ac_status=$?
15452   grep -v '^ *+' conftest.er1 >conftest.err
15453   rm -f conftest.er1
15454   cat conftest.err >&5
15455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } && {
15457          test -z "$ac_c_werror_flag" ||
15458          test ! -s conftest.err
15459        } && test -s conftest$ac_exeext && {
15460          test "$cross_compiling" = yes ||
15461          $as_test_x conftest$ac_exeext
15462        }; then
15463   ac_cv_lib_ndbm_dbm_store=yes
15464 else
15465   $as_echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468         ac_cv_lib_ndbm_dbm_store=no
15469 fi
15470
15471 rm -rf conftest.dSYM
15472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15473       conftest$ac_exeext conftest.$ac_ext
15474 LIBS=$ac_check_lib_save_LIBS
15475 fi
15476 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_store" >&5
15477 $as_echo "$ac_cv_lib_ndbm_dbm_store" >&6; }
15478 if test "x$ac_cv_lib_ndbm_dbm_store" = x""yes; then
15479   LIBDB="-lndbm"
15480 else
15481   LIBDB=""
15482 fi
15483
15484             if test ! -z "$LIBDB" ; then
15485
15486 for ac_header in ndbm.h
15487 do
15488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15490   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15491 $as_echo_n "checking for $ac_header... " >&6; }
15492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15493   $as_echo_n "(cached) " >&6
15494 fi
15495 ac_res=`eval 'as_val=${'$as_ac_Header'}
15496                  $as_echo "$as_val"'`
15497                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15498 $as_echo "$ac_res" >&6; }
15499 else
15500   # Is the header compilable?
15501 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15502 $as_echo_n "checking $ac_header usability... " >&6; }
15503 cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h.  */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h.  */
15509 $ac_includes_default
15510 #include <$ac_header>
15511 _ACEOF
15512 rm -f conftest.$ac_objext
15513 if { (ac_try="$ac_compile"
15514 case "(($ac_try" in
15515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516   *) ac_try_echo=$ac_try;;
15517 esac
15518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519 $as_echo "$ac_try_echo") >&5
15520   (eval "$ac_compile") 2>conftest.er1
15521   ac_status=$?
15522   grep -v '^ *+' conftest.er1 >conftest.err
15523   rm -f conftest.er1
15524   cat conftest.err >&5
15525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); } && {
15527          test -z "$ac_c_werror_flag" ||
15528          test ! -s conftest.err
15529        } && test -s conftest.$ac_objext; then
15530   ac_header_compiler=yes
15531 else
15532   $as_echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15534
15535         ac_header_compiler=no
15536 fi
15537
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15540 $as_echo "$ac_header_compiler" >&6; }
15541
15542 # Is the header present?
15543 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15544 $as_echo_n "checking $ac_header presence... " >&6; }
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h.  */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h.  */
15551 #include <$ac_header>
15552 _ACEOF
15553 if { (ac_try="$ac_cpp conftest.$ac_ext"
15554 case "(($ac_try" in
15555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556   *) ac_try_echo=$ac_try;;
15557 esac
15558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15559 $as_echo "$ac_try_echo") >&5
15560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15561   ac_status=$?
15562   grep -v '^ *+' conftest.er1 >conftest.err
15563   rm -f conftest.er1
15564   cat conftest.err >&5
15565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); } >/dev/null && {
15567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15568          test ! -s conftest.err
15569        }; then
15570   ac_header_preproc=yes
15571 else
15572   $as_echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15574
15575   ac_header_preproc=no
15576 fi
15577
15578 rm -f conftest.err conftest.$ac_ext
15579 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15580 $as_echo "$ac_header_preproc" >&6; }
15581
15582 # So?  What about this header?
15583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15584   yes:no: )
15585     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15586 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15587     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15588 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15589     ac_header_preproc=yes
15590     ;;
15591   no:yes:* )
15592     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15593 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15594     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15595 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15596     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15597 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15598     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15599 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15603 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15604
15605     ;;
15606 esac
15607 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15608 $as_echo_n "checking for $ac_header... " >&6; }
15609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15610   $as_echo_n "(cached) " >&6
15611 else
15612   eval "$as_ac_Header=\$ac_header_preproc"
15613 fi
15614 ac_res=`eval 'as_val=${'$as_ac_Header'}
15615                  $as_echo "$as_val"'`
15616                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15617 $as_echo "$ac_res" >&6; }
15618
15619 fi
15620 as_val=`eval 'as_val=${'$as_ac_Header'}
15621                  $as_echo "$as_val"'`
15622    if test "x$as_val" = x""yes; then
15623   cat >>confdefs.h <<_ACEOF
15624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15625 _ACEOF
15626
15627 fi
15628
15629 done
15630
15631             fi
15632         else
15633
15634 for ac_header in db.h
15635 do
15636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15638   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15639 $as_echo_n "checking for $ac_header... " >&6; }
15640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15641   $as_echo_n "(cached) " >&6
15642 fi
15643 ac_res=`eval 'as_val=${'$as_ac_Header'}
15644                  $as_echo "$as_val"'`
15645                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15646 $as_echo "$ac_res" >&6; }
15647 else
15648   # Is the header compilable?
15649 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15650 $as_echo_n "checking $ac_header usability... " >&6; }
15651 cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h.  */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h.  */
15657 $ac_includes_default
15658 #include <$ac_header>
15659 _ACEOF
15660 rm -f conftest.$ac_objext
15661 if { (ac_try="$ac_compile"
15662 case "(($ac_try" in
15663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664   *) ac_try_echo=$ac_try;;
15665 esac
15666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15667 $as_echo "$ac_try_echo") >&5
15668   (eval "$ac_compile") 2>conftest.er1
15669   ac_status=$?
15670   grep -v '^ *+' conftest.er1 >conftest.err
15671   rm -f conftest.er1
15672   cat conftest.err >&5
15673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); } && {
15675          test -z "$ac_c_werror_flag" ||
15676          test ! -s conftest.err
15677        } && test -s conftest.$ac_objext; then
15678   ac_header_compiler=yes
15679 else
15680   $as_echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15682
15683         ac_header_compiler=no
15684 fi
15685
15686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15688 $as_echo "$ac_header_compiler" >&6; }
15689
15690 # Is the header present?
15691 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15692 $as_echo_n "checking $ac_header presence... " >&6; }
15693 cat >conftest.$ac_ext <<_ACEOF
15694 /* confdefs.h.  */
15695 _ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h.  */
15699 #include <$ac_header>
15700 _ACEOF
15701 if { (ac_try="$ac_cpp conftest.$ac_ext"
15702 case "(($ac_try" in
15703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704   *) ac_try_echo=$ac_try;;
15705 esac
15706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15707 $as_echo "$ac_try_echo") >&5
15708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15709   ac_status=$?
15710   grep -v '^ *+' conftest.er1 >conftest.err
15711   rm -f conftest.er1
15712   cat conftest.err >&5
15713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); } >/dev/null && {
15715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15716          test ! -s conftest.err
15717        }; then
15718   ac_header_preproc=yes
15719 else
15720   $as_echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723   ac_header_preproc=no
15724 fi
15725
15726 rm -f conftest.err conftest.$ac_ext
15727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15728 $as_echo "$ac_header_preproc" >&6; }
15729
15730 # So?  What about this header?
15731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15732   yes:no: )
15733     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15734 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15735     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15737     ac_header_preproc=yes
15738     ;;
15739   no:yes:* )
15740     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15741 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15742     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15743 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15745 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15747 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15748     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15749 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15750     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15751 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15752
15753     ;;
15754 esac
15755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15756 $as_echo_n "checking for $ac_header... " >&6; }
15757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15758   $as_echo_n "(cached) " >&6
15759 else
15760   eval "$as_ac_Header=\$ac_header_preproc"
15761 fi
15762 ac_res=`eval 'as_val=${'$as_ac_Header'}
15763                  $as_echo "$as_val"'`
15764                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15765 $as_echo "$ac_res" >&6; }
15766
15767 fi
15768 as_val=`eval 'as_val=${'$as_ac_Header'}
15769                  $as_echo "$as_val"'`
15770    if test "x$as_val" = x""yes; then
15771   cat >>confdefs.h <<_ACEOF
15772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15773 _ACEOF
15774
15775 fi
15776
15777 done
15778
15779         fi
15780 fi
15781
15782  if test ! -z "$LIBDB"; then
15783   HAVE_LIBDB_TRUE=
15784   HAVE_LIBDB_FALSE='#'
15785 else
15786   HAVE_LIBDB_TRUE='#'
15787   HAVE_LIBDB_FALSE=
15788 fi
15789
15790
15791 # Check whether --enable-nis was given.
15792 if test "${enable_nis+set}" = set; then
15793   enableval=$enable_nis;
15794 fi
15795
15796
15797
15798
15799 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15800         if test -n "$ac_tool_prefix"; then
15801   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15802 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15804 $as_echo_n "checking for $ac_word... " >&6; }
15805 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15806   $as_echo_n "(cached) " >&6
15807 else
15808   case $PKG_CONFIG in
15809   [\\/]* | ?:[\\/]*)
15810   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15811   ;;
15812   *)
15813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15814 for as_dir in $PATH
15815 do
15816   IFS=$as_save_IFS
15817   test -z "$as_dir" && as_dir=.
15818   for ac_exec_ext in '' $ac_executable_extensions; do
15819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15820     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15821     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15822     break 2
15823   fi
15824 done
15825 done
15826 IFS=$as_save_IFS
15827
15828   ;;
15829 esac
15830 fi
15831 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15832 if test -n "$PKG_CONFIG"; then
15833   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
15834 $as_echo "$PKG_CONFIG" >&6; }
15835 else
15836   { $as_echo "$as_me:$LINENO: result: no" >&5
15837 $as_echo "no" >&6; }
15838 fi
15839
15840
15841 fi
15842 if test -z "$ac_cv_path_PKG_CONFIG"; then
15843   ac_pt_PKG_CONFIG=$PKG_CONFIG
15844   # Extract the first word of "pkg-config", so it can be a program name with args.
15845 set dummy pkg-config; ac_word=$2
15846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15847 $as_echo_n "checking for $ac_word... " >&6; }
15848 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
15849   $as_echo_n "(cached) " >&6
15850 else
15851   case $ac_pt_PKG_CONFIG in
15852   [\\/]* | ?:[\\/]*)
15853   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15854   ;;
15855   *)
15856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15857 for as_dir in $PATH
15858 do
15859   IFS=$as_save_IFS
15860   test -z "$as_dir" && as_dir=.
15861   for ac_exec_ext in '' $ac_executable_extensions; do
15862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15863     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15864     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15865     break 2
15866   fi
15867 done
15868 done
15869 IFS=$as_save_IFS
15870
15871   ;;
15872 esac
15873 fi
15874 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15875 if test -n "$ac_pt_PKG_CONFIG"; then
15876   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
15877 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15878 else
15879   { $as_echo "$as_me:$LINENO: result: no" >&5
15880 $as_echo "no" >&6; }
15881 fi
15882
15883   if test "x$ac_pt_PKG_CONFIG" = x; then
15884     PKG_CONFIG=""
15885   else
15886     case $cross_compiling:$ac_tool_warned in
15887 yes:)
15888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
15889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15890 ac_tool_warned=yes ;;
15891 esac
15892     PKG_CONFIG=$ac_pt_PKG_CONFIG
15893   fi
15894 else
15895   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15896 fi
15897
15898 fi
15899 if test -n "$PKG_CONFIG"; then
15900         _pkg_min_version=0.9.0
15901         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
15902 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15903         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15904                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15905 $as_echo "yes" >&6; }
15906         else
15907                 { $as_echo "$as_me:$LINENO: result: no" >&5
15908 $as_echo "no" >&6; }
15909                 PKG_CONFIG=""
15910         fi
15911
15912 fi
15913 if test "x$enable_nis" != "xno"; then
15914
15915   CFLAGS=$old_CFLAGS
15916   LIBS=$old_LIBS
15917
15918
15919 pkg_failed=no
15920 { $as_echo "$as_me:$LINENO: checking for libtirpc" >&5
15921 $as_echo_n "checking for libtirpc... " >&6; }
15922
15923 if test -n "$libtirpc_CFLAGS"; then
15924     pkg_cv_libtirpc_CFLAGS="$libtirpc_CFLAGS"
15925  elif test -n "$PKG_CONFIG"; then
15926     if test -n "$PKG_CONFIG" && \
15927     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libtirpc\"") >&5
15928   ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
15929   ac_status=$?
15930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); }; then
15932   pkg_cv_libtirpc_CFLAGS=`$PKG_CONFIG --cflags "libtirpc" 2>/dev/null`
15933 else
15934   pkg_failed=yes
15935 fi
15936  else
15937     pkg_failed=untried
15938 fi
15939 if test -n "$libtirpc_LIBS"; then
15940     pkg_cv_libtirpc_LIBS="$libtirpc_LIBS"
15941  elif test -n "$PKG_CONFIG"; then
15942     if test -n "$PKG_CONFIG" && \
15943     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libtirpc\"") >&5
15944   ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
15945   ac_status=$?
15946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; then
15948   pkg_cv_libtirpc_LIBS=`$PKG_CONFIG --libs "libtirpc" 2>/dev/null`
15949 else
15950   pkg_failed=yes
15951 fi
15952  else
15953     pkg_failed=untried
15954 fi
15955
15956
15957
15958 if test $pkg_failed = yes; then
15959
15960 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15961         _pkg_short_errors_supported=yes
15962 else
15963         _pkg_short_errors_supported=no
15964 fi
15965         if test $_pkg_short_errors_supported = yes; then
15966                 libtirpc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libtirpc" 2>&1`
15967         else
15968                 libtirpc_PKG_ERRORS=`$PKG_CONFIG --print-errors "libtirpc" 2>&1`
15969         fi
15970         # Put the nasty error message in config.log where it belongs
15971         echo "$libtirpc_PKG_ERRORS" >&5
15972
15973         { $as_echo "$as_me:$LINENO: result: no" >&5
15974 $as_echo "no" >&6; }
15975                 :;
15976 elif test $pkg_failed = untried; then
15977         :;
15978 else
15979         libtirpc_CFLAGS=$pkg_cv_libtirpc_CFLAGS
15980         libtirpc_LIBS=$pkg_cv_libtirpc_LIBS
15981         { $as_echo "$as_me:$LINENO: result: yes" >&5
15982 $as_echo "yes" >&6; }
15983
15984     CFLAGS="$CFLAGS $libtirpc_CFLAGS"
15985     LIBS="$LIBS $libtirpc_LIBS"
15986
15987 fi
15988
15989   { $as_echo "$as_me:$LINENO: checking for library containing yp_get_default_domain" >&5
15990 $as_echo_n "checking for library containing yp_get_default_domain... " >&6; }
15991 if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
15992   $as_echo_n "(cached) " >&6
15993 else
15994   ac_func_search_save_LIBS=$LIBS
15995 cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001
16002 /* Override any GCC internal prototype to avoid an error.
16003    Use char because int might match the return type of a GCC
16004    builtin and then its argument prototype would still apply.  */
16005 #ifdef __cplusplus
16006 extern "C"
16007 #endif
16008 char yp_get_default_domain ();
16009 int
16010 main ()
16011 {
16012 return yp_get_default_domain ();
16013   ;
16014   return 0;
16015 }
16016 _ACEOF
16017 for ac_lib in '' nsl; do
16018   if test -z "$ac_lib"; then
16019     ac_res="none required"
16020   else
16021     ac_res=-l$ac_lib
16022     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16023   fi
16024   rm -f conftest.$ac_objext conftest$ac_exeext
16025 if { (ac_try="$ac_link"
16026 case "(($ac_try" in
16027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028   *) ac_try_echo=$ac_try;;
16029 esac
16030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16031 $as_echo "$ac_try_echo") >&5
16032   (eval "$ac_link") 2>conftest.er1
16033   ac_status=$?
16034   grep -v '^ *+' conftest.er1 >conftest.err
16035   rm -f conftest.er1
16036   cat conftest.err >&5
16037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); } && {
16039          test -z "$ac_c_werror_flag" ||
16040          test ! -s conftest.err
16041        } && test -s conftest$ac_exeext && {
16042          test "$cross_compiling" = yes ||
16043          $as_test_x conftest$ac_exeext
16044        }; then
16045   ac_cv_search_yp_get_default_domain=$ac_res
16046 else
16047   $as_echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16049
16050
16051 fi
16052
16053 rm -rf conftest.dSYM
16054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16055       conftest$ac_exeext
16056   if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
16057   break
16058 fi
16059 done
16060 if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
16061   :
16062 else
16063   ac_cv_search_yp_get_default_domain=no
16064 fi
16065 rm conftest.$ac_ext
16066 LIBS=$ac_func_search_save_LIBS
16067 fi
16068 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_yp_get_default_domain" >&5
16069 $as_echo "$ac_cv_search_yp_get_default_domain" >&6; }
16070 ac_res=$ac_cv_search_yp_get_default_domain
16071 if test "$ac_res" != no; then
16072   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16073
16074 fi
16075
16076
16077
16078
16079
16080
16081
16082
16083 for ac_func in yp_get_default_domain yperr_string yp_master yp_bind yp_match yp_unbind
16084 do
16085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16086 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16087 $as_echo_n "checking for $ac_func... " >&6; }
16088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16089   $as_echo_n "(cached) " >&6
16090 else
16091   cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h.  */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h.  */
16097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16099 #define $ac_func innocuous_$ac_func
16100
16101 /* System header to define __stub macros and hopefully few prototypes,
16102     which can conflict with char $ac_func (); below.
16103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16104     <limits.h> exists even on freestanding compilers.  */
16105
16106 #ifdef __STDC__
16107 # include <limits.h>
16108 #else
16109 # include <assert.h>
16110 #endif
16111
16112 #undef $ac_func
16113
16114 /* Override any GCC internal prototype to avoid an error.
16115    Use char because int might match the return type of a GCC
16116    builtin and then its argument prototype would still apply.  */
16117 #ifdef __cplusplus
16118 extern "C"
16119 #endif
16120 char $ac_func ();
16121 /* The GNU C library defines this for functions which it implements
16122     to always fail with ENOSYS.  Some functions are actually named
16123     something starting with __ and the normal name is an alias.  */
16124 #if defined __stub_$ac_func || defined __stub___$ac_func
16125 choke me
16126 #endif
16127
16128 int
16129 main ()
16130 {
16131 return $ac_func ();
16132   ;
16133   return 0;
16134 }
16135 _ACEOF
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (ac_try="$ac_link"
16138 case "(($ac_try" in
16139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140   *) ac_try_echo=$ac_try;;
16141 esac
16142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16143 $as_echo "$ac_try_echo") >&5
16144   (eval "$ac_link") 2>conftest.er1
16145   ac_status=$?
16146   grep -v '^ *+' conftest.er1 >conftest.err
16147   rm -f conftest.er1
16148   cat conftest.err >&5
16149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); } && {
16151          test -z "$ac_c_werror_flag" ||
16152          test ! -s conftest.err
16153        } && test -s conftest$ac_exeext && {
16154          test "$cross_compiling" = yes ||
16155          $as_test_x conftest$ac_exeext
16156        }; then
16157   eval "$as_ac_var=yes"
16158 else
16159   $as_echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16161
16162         eval "$as_ac_var=no"
16163 fi
16164
16165 rm -rf conftest.dSYM
16166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16167       conftest$ac_exeext conftest.$ac_ext
16168 fi
16169 ac_res=`eval 'as_val=${'$as_ac_var'}
16170                  $as_echo "$as_val"'`
16171                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16172 $as_echo "$ac_res" >&6; }
16173 as_val=`eval 'as_val=${'$as_ac_var'}
16174                  $as_echo "$as_val"'`
16175    if test "x$as_val" = x""yes; then
16176   cat >>confdefs.h <<_ACEOF
16177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16178 _ACEOF
16179
16180 fi
16181 done
16182
16183
16184
16185
16186 for ac_header in rpc/rpc.h rpcsvc/ypclnt.h rpcsvc/yp_prot.h
16187 do
16188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16190   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16191 $as_echo_n "checking for $ac_header... " >&6; }
16192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16193   $as_echo_n "(cached) " >&6
16194 fi
16195 ac_res=`eval 'as_val=${'$as_ac_Header'}
16196                  $as_echo "$as_val"'`
16197                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16198 $as_echo "$ac_res" >&6; }
16199 else
16200   # Is the header compilable?
16201 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16202 $as_echo_n "checking $ac_header usability... " >&6; }
16203 cat >conftest.$ac_ext <<_ACEOF
16204 /* confdefs.h.  */
16205 _ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h.  */
16209 $ac_includes_default
16210 #include <$ac_header>
16211 _ACEOF
16212 rm -f conftest.$ac_objext
16213 if { (ac_try="$ac_compile"
16214 case "(($ac_try" in
16215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216   *) ac_try_echo=$ac_try;;
16217 esac
16218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16219 $as_echo "$ac_try_echo") >&5
16220   (eval "$ac_compile") 2>conftest.er1
16221   ac_status=$?
16222   grep -v '^ *+' conftest.er1 >conftest.err
16223   rm -f conftest.er1
16224   cat conftest.err >&5
16225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); } && {
16227          test -z "$ac_c_werror_flag" ||
16228          test ! -s conftest.err
16229        } && test -s conftest.$ac_objext; then
16230   ac_header_compiler=yes
16231 else
16232   $as_echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16234
16235         ac_header_compiler=no
16236 fi
16237
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16240 $as_echo "$ac_header_compiler" >&6; }
16241
16242 # Is the header present?
16243 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16244 $as_echo_n "checking $ac_header presence... " >&6; }
16245 cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h.  */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h.  */
16251 #include <$ac_header>
16252 _ACEOF
16253 if { (ac_try="$ac_cpp conftest.$ac_ext"
16254 case "(($ac_try" in
16255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256   *) ac_try_echo=$ac_try;;
16257 esac
16258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16259 $as_echo "$ac_try_echo") >&5
16260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16261   ac_status=$?
16262   grep -v '^ *+' conftest.er1 >conftest.err
16263   rm -f conftest.er1
16264   cat conftest.err >&5
16265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); } >/dev/null && {
16267          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16268          test ! -s conftest.err
16269        }; then
16270   ac_header_preproc=yes
16271 else
16272   $as_echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16274
16275   ac_header_preproc=no
16276 fi
16277
16278 rm -f conftest.err conftest.$ac_ext
16279 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16280 $as_echo "$ac_header_preproc" >&6; }
16281
16282 # So?  What about this header?
16283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16284   yes:no: )
16285     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16286 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16287     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16288 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16289     ac_header_preproc=yes
16290     ;;
16291   no:yes:* )
16292     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16293 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16294     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16295 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16296     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16297 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16298     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16299 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16300     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16301 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16302     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16303 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16304
16305     ;;
16306 esac
16307 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16308 $as_echo_n "checking for $ac_header... " >&6; }
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310   $as_echo_n "(cached) " >&6
16311 else
16312   eval "$as_ac_Header=\$ac_header_preproc"
16313 fi
16314 ac_res=`eval 'as_val=${'$as_ac_Header'}
16315                  $as_echo "$as_val"'`
16316                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16317 $as_echo "$ac_res" >&6; }
16318
16319 fi
16320 as_val=`eval 'as_val=${'$as_ac_Header'}
16321                  $as_echo "$as_val"'`
16322    if test "x$as_val" = x""yes; then
16323   cat >>confdefs.h <<_ACEOF
16324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16325 _ACEOF
16326
16327 fi
16328
16329 done
16330
16331   { $as_echo "$as_me:$LINENO: checking whether getrpcport is declared" >&5
16332 $as_echo_n "checking whether getrpcport is declared... " >&6; }
16333 if test "${ac_cv_have_decl_getrpcport+set}" = set; then
16334   $as_echo_n "(cached) " >&6
16335 else
16336   cat >conftest.$ac_ext <<_ACEOF
16337 /* confdefs.h.  */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h.  */
16342
16343     #if HAVE_RPC_RPC_H
16344     # include <rpc/rpc.h>
16345     #endif
16346
16347
16348 int
16349 main ()
16350 {
16351 #ifndef getrpcport
16352   (void) getrpcport;
16353 #endif
16354
16355   ;
16356   return 0;
16357 }
16358 _ACEOF
16359 rm -f conftest.$ac_objext
16360 if { (ac_try="$ac_compile"
16361 case "(($ac_try" in
16362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363   *) ac_try_echo=$ac_try;;
16364 esac
16365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16366 $as_echo "$ac_try_echo") >&5
16367   (eval "$ac_compile") 2>conftest.er1
16368   ac_status=$?
16369   grep -v '^ *+' conftest.er1 >conftest.err
16370   rm -f conftest.er1
16371   cat conftest.err >&5
16372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); } && {
16374          test -z "$ac_c_werror_flag" ||
16375          test ! -s conftest.err
16376        } && test -s conftest.$ac_objext; then
16377   ac_cv_have_decl_getrpcport=yes
16378 else
16379   $as_echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16381
16382         ac_cv_have_decl_getrpcport=no
16383 fi
16384
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 fi
16387 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrpcport" >&5
16388 $as_echo "$ac_cv_have_decl_getrpcport" >&6; }
16389 if test "x$ac_cv_have_decl_getrpcport" = x""yes; then
16390
16391 cat >>confdefs.h <<_ACEOF
16392 #define HAVE_DECL_GETRPCPORT 1
16393 _ACEOF
16394
16395
16396 else
16397   cat >>confdefs.h <<_ACEOF
16398 #define HAVE_DECL_GETRPCPORT 0
16399 _ACEOF
16400
16401
16402 fi
16403
16404
16405
16406   NIS_CFLAGS="${CFLAGS%${old_CFLAGS}}"
16407   NIS_LIBS="${LIBS%${old_LIBS}}"
16408
16409   CFLAGS="$old_CFLAGS"
16410   LIBS="$old_LIBS"
16411
16412 fi
16413
16414
16415
16416
16417
16418 # Check whether --enable-selinux was given.
16419 if test "${enable_selinux+set}" = set; then
16420   enableval=$enable_selinux; WITH_SELINUX=$enableval
16421 else
16422   WITH_SELINUX=yes
16423 fi
16424
16425 if test "$WITH_SELINUX" == "yes" ; then
16426   { $as_echo "$as_me:$LINENO: checking for getfilecon in -lselinux" >&5
16427 $as_echo_n "checking for getfilecon in -lselinux... " >&6; }
16428 if test "${ac_cv_lib_selinux_getfilecon+set}" = set; then
16429   $as_echo_n "(cached) " >&6
16430 else
16431   ac_check_lib_save_LIBS=$LIBS
16432 LIBS="-lselinux  $LIBS"
16433 cat >conftest.$ac_ext <<_ACEOF
16434 /* confdefs.h.  */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h.  */
16439
16440 /* Override any GCC internal prototype to avoid an error.
16441    Use char because int might match the return type of a GCC
16442    builtin and then its argument prototype would still apply.  */
16443 #ifdef __cplusplus
16444 extern "C"
16445 #endif
16446 char getfilecon ();
16447 int
16448 main ()
16449 {
16450 return getfilecon ();
16451   ;
16452   return 0;
16453 }
16454 _ACEOF
16455 rm -f conftest.$ac_objext conftest$ac_exeext
16456 if { (ac_try="$ac_link"
16457 case "(($ac_try" in
16458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459   *) ac_try_echo=$ac_try;;
16460 esac
16461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16462 $as_echo "$ac_try_echo") >&5
16463   (eval "$ac_link") 2>conftest.er1
16464   ac_status=$?
16465   grep -v '^ *+' conftest.er1 >conftest.err
16466   rm -f conftest.er1
16467   cat conftest.err >&5
16468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); } && {
16470          test -z "$ac_c_werror_flag" ||
16471          test ! -s conftest.err
16472        } && test -s conftest$ac_exeext && {
16473          test "$cross_compiling" = yes ||
16474          $as_test_x conftest$ac_exeext
16475        }; then
16476   ac_cv_lib_selinux_getfilecon=yes
16477 else
16478   $as_echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481         ac_cv_lib_selinux_getfilecon=no
16482 fi
16483
16484 rm -rf conftest.dSYM
16485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16486       conftest$ac_exeext conftest.$ac_ext
16487 LIBS=$ac_check_lib_save_LIBS
16488 fi
16489 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getfilecon" >&5
16490 $as_echo "$ac_cv_lib_selinux_getfilecon" >&6; }
16491 if test "x$ac_cv_lib_selinux_getfilecon" = x""yes; then
16492   LIBSELINUX="-lselinux"
16493 else
16494   LIBSELINUX=""
16495 fi
16496
16497 else
16498   LIBSELINUX=""
16499 fi
16500
16501  if test ! -z "$LIBSELINUX"; then
16502   HAVE_LIBSELINUX_TRUE=
16503   HAVE_LIBSELINUX_FALSE='#'
16504 else
16505   HAVE_LIBSELINUX_TRUE='#'
16506   HAVE_LIBSELINUX_FALSE=
16507 fi
16508
16509 if test ! -z "$LIBSELINUX" ; then
16510
16511 cat >>confdefs.h <<\_ACEOF
16512 #define WITH_SELINUX 1
16513 _ACEOF
16514
16515     BACKUP_LIBS=$LIBS
16516     LIBS="$LIBS $LIBSELINUX"
16517
16518 for ac_func in setkeycreatecon
16519 do
16520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16521 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16522 $as_echo_n "checking for $ac_func... " >&6; }
16523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16524   $as_echo_n "(cached) " >&6
16525 else
16526   cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h.  */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h.  */
16532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16534 #define $ac_func innocuous_$ac_func
16535
16536 /* System header to define __stub macros and hopefully few prototypes,
16537     which can conflict with char $ac_func (); below.
16538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16539     <limits.h> exists even on freestanding compilers.  */
16540
16541 #ifdef __STDC__
16542 # include <limits.h>
16543 #else
16544 # include <assert.h>
16545 #endif
16546
16547 #undef $ac_func
16548
16549 /* Override any GCC internal prototype to avoid an error.
16550    Use char because int might match the return type of a GCC
16551    builtin and then its argument prototype would still apply.  */
16552 #ifdef __cplusplus
16553 extern "C"
16554 #endif
16555 char $ac_func ();
16556 /* The GNU C library defines this for functions which it implements
16557     to always fail with ENOSYS.  Some functions are actually named
16558     something starting with __ and the normal name is an alias.  */
16559 #if defined __stub_$ac_func || defined __stub___$ac_func
16560 choke me
16561 #endif
16562
16563 int
16564 main ()
16565 {
16566 return $ac_func ();
16567   ;
16568   return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (ac_try="$ac_link"
16573 case "(($ac_try" in
16574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575   *) ac_try_echo=$ac_try;;
16576 esac
16577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16578 $as_echo "$ac_try_echo") >&5
16579   (eval "$ac_link") 2>conftest.er1
16580   ac_status=$?
16581   grep -v '^ *+' conftest.er1 >conftest.err
16582   rm -f conftest.er1
16583   cat conftest.err >&5
16584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } && {
16586          test -z "$ac_c_werror_flag" ||
16587          test ! -s conftest.err
16588        } && test -s conftest$ac_exeext && {
16589          test "$cross_compiling" = yes ||
16590          $as_test_x conftest$ac_exeext
16591        }; then
16592   eval "$as_ac_var=yes"
16593 else
16594   $as_echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16596
16597         eval "$as_ac_var=no"
16598 fi
16599
16600 rm -rf conftest.dSYM
16601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16602       conftest$ac_exeext conftest.$ac_ext
16603 fi
16604 ac_res=`eval 'as_val=${'$as_ac_var'}
16605                  $as_echo "$as_val"'`
16606                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16607 $as_echo "$ac_res" >&6; }
16608 as_val=`eval 'as_val=${'$as_ac_var'}
16609                  $as_echo "$as_val"'`
16610    if test "x$as_val" = x""yes; then
16611   cat >>confdefs.h <<_ACEOF
16612 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16613 _ACEOF
16614
16615 fi
16616 done
16617
16618
16619 for ac_func in getseuser
16620 do
16621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16623 $as_echo_n "checking for $ac_func... " >&6; }
16624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16625   $as_echo_n "(cached) " >&6
16626 else
16627   cat >conftest.$ac_ext <<_ACEOF
16628 /* confdefs.h.  */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h.  */
16633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16635 #define $ac_func innocuous_$ac_func
16636
16637 /* System header to define __stub macros and hopefully few prototypes,
16638     which can conflict with char $ac_func (); below.
16639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16640     <limits.h> exists even on freestanding compilers.  */
16641
16642 #ifdef __STDC__
16643 # include <limits.h>
16644 #else
16645 # include <assert.h>
16646 #endif
16647
16648 #undef $ac_func
16649
16650 /* Override any GCC internal prototype to avoid an error.
16651    Use char because int might match the return type of a GCC
16652    builtin and then its argument prototype would still apply.  */
16653 #ifdef __cplusplus
16654 extern "C"
16655 #endif
16656 char $ac_func ();
16657 /* The GNU C library defines this for functions which it implements
16658     to always fail with ENOSYS.  Some functions are actually named
16659     something starting with __ and the normal name is an alias.  */
16660 #if defined __stub_$ac_func || defined __stub___$ac_func
16661 choke me
16662 #endif
16663
16664 int
16665 main ()
16666 {
16667 return $ac_func ();
16668   ;
16669   return 0;
16670 }
16671 _ACEOF
16672 rm -f conftest.$ac_objext conftest$ac_exeext
16673 if { (ac_try="$ac_link"
16674 case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16679 $as_echo "$ac_try_echo") >&5
16680   (eval "$ac_link") 2>conftest.er1
16681   ac_status=$?
16682   grep -v '^ *+' conftest.er1 >conftest.err
16683   rm -f conftest.er1
16684   cat conftest.err >&5
16685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); } && {
16687          test -z "$ac_c_werror_flag" ||
16688          test ! -s conftest.err
16689        } && test -s conftest$ac_exeext && {
16690          test "$cross_compiling" = yes ||
16691          $as_test_x conftest$ac_exeext
16692        }; then
16693   eval "$as_ac_var=yes"
16694 else
16695   $as_echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16697
16698         eval "$as_ac_var=no"
16699 fi
16700
16701 rm -rf conftest.dSYM
16702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16703       conftest$ac_exeext conftest.$ac_ext
16704 fi
16705 ac_res=`eval 'as_val=${'$as_ac_var'}
16706                  $as_echo "$as_val"'`
16707                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16708 $as_echo "$ac_res" >&6; }
16709 as_val=`eval 'as_val=${'$as_ac_var'}
16710                  $as_echo "$as_val"'`
16711    if test "x$as_val" = x""yes; then
16712   cat >>confdefs.h <<_ACEOF
16713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16714 _ACEOF
16715
16716 fi
16717 done
16718
16719     LIBS=$BACKUP_LIBS
16720 fi
16721
16722
16723
16724
16725
16726
16727 ac_header_dirent=no
16728 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16729   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16730 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16731 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16733   $as_echo_n "(cached) " >&6
16734 else
16735   cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741 #include <sys/types.h>
16742 #include <$ac_hdr>
16743
16744 int
16745 main ()
16746 {
16747 if ((DIR *) 0)
16748 return 0;
16749   ;
16750   return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext
16754 if { (ac_try="$ac_compile"
16755 case "(($ac_try" in
16756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757   *) ac_try_echo=$ac_try;;
16758 esac
16759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16760 $as_echo "$ac_try_echo") >&5
16761   (eval "$ac_compile") 2>conftest.er1
16762   ac_status=$?
16763   grep -v '^ *+' conftest.er1 >conftest.err
16764   rm -f conftest.er1
16765   cat conftest.err >&5
16766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); } && {
16768          test -z "$ac_c_werror_flag" ||
16769          test ! -s conftest.err
16770        } && test -s conftest.$ac_objext; then
16771   eval "$as_ac_Header=yes"
16772 else
16773   $as_echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16775
16776         eval "$as_ac_Header=no"
16777 fi
16778
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 fi
16781 ac_res=`eval 'as_val=${'$as_ac_Header'}
16782                  $as_echo "$as_val"'`
16783                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16784 $as_echo "$ac_res" >&6; }
16785 as_val=`eval 'as_val=${'$as_ac_Header'}
16786                  $as_echo "$as_val"'`
16787    if test "x$as_val" = x""yes; then
16788   cat >>confdefs.h <<_ACEOF
16789 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16790 _ACEOF
16791
16792 ac_header_dirent=$ac_hdr; break
16793 fi
16794
16795 done
16796 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16797 if test $ac_header_dirent = dirent.h; then
16798   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
16799 $as_echo_n "checking for library containing opendir... " >&6; }
16800 if test "${ac_cv_search_opendir+set}" = set; then
16801   $as_echo_n "(cached) " >&6
16802 else
16803   ac_func_search_save_LIBS=$LIBS
16804 cat >conftest.$ac_ext <<_ACEOF
16805 /* confdefs.h.  */
16806 _ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h.  */
16810
16811 /* Override any GCC internal prototype to avoid an error.
16812    Use char because int might match the return type of a GCC
16813    builtin and then its argument prototype would still apply.  */
16814 #ifdef __cplusplus
16815 extern "C"
16816 #endif
16817 char opendir ();
16818 int
16819 main ()
16820 {
16821 return opendir ();
16822   ;
16823   return 0;
16824 }
16825 _ACEOF
16826 for ac_lib in '' dir; do
16827   if test -z "$ac_lib"; then
16828     ac_res="none required"
16829   else
16830     ac_res=-l$ac_lib
16831     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16832   fi
16833   rm -f conftest.$ac_objext conftest$ac_exeext
16834 if { (ac_try="$ac_link"
16835 case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16840 $as_echo "$ac_try_echo") >&5
16841   (eval "$ac_link") 2>conftest.er1
16842   ac_status=$?
16843   grep -v '^ *+' conftest.er1 >conftest.err
16844   rm -f conftest.er1
16845   cat conftest.err >&5
16846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); } && {
16848          test -z "$ac_c_werror_flag" ||
16849          test ! -s conftest.err
16850        } && test -s conftest$ac_exeext && {
16851          test "$cross_compiling" = yes ||
16852          $as_test_x conftest$ac_exeext
16853        }; then
16854   ac_cv_search_opendir=$ac_res
16855 else
16856   $as_echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16858
16859
16860 fi
16861
16862 rm -rf conftest.dSYM
16863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16864       conftest$ac_exeext
16865   if test "${ac_cv_search_opendir+set}" = set; then
16866   break
16867 fi
16868 done
16869 if test "${ac_cv_search_opendir+set}" = set; then
16870   :
16871 else
16872   ac_cv_search_opendir=no
16873 fi
16874 rm conftest.$ac_ext
16875 LIBS=$ac_func_search_save_LIBS
16876 fi
16877 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16878 $as_echo "$ac_cv_search_opendir" >&6; }
16879 ac_res=$ac_cv_search_opendir
16880 if test "$ac_res" != no; then
16881   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16882
16883 fi
16884
16885 else
16886   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
16887 $as_echo_n "checking for library containing opendir... " >&6; }
16888 if test "${ac_cv_search_opendir+set}" = set; then
16889   $as_echo_n "(cached) " >&6
16890 else
16891   ac_func_search_save_LIBS=$LIBS
16892 cat >conftest.$ac_ext <<_ACEOF
16893 /* confdefs.h.  */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h.  */
16898
16899 /* Override any GCC internal prototype to avoid an error.
16900    Use char because int might match the return type of a GCC
16901    builtin and then its argument prototype would still apply.  */
16902 #ifdef __cplusplus
16903 extern "C"
16904 #endif
16905 char opendir ();
16906 int
16907 main ()
16908 {
16909 return opendir ();
16910   ;
16911   return 0;
16912 }
16913 _ACEOF
16914 for ac_lib in '' x; do
16915   if test -z "$ac_lib"; then
16916     ac_res="none required"
16917   else
16918     ac_res=-l$ac_lib
16919     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16920   fi
16921   rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (ac_try="$ac_link"
16923 case "(($ac_try" in
16924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925   *) ac_try_echo=$ac_try;;
16926 esac
16927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16928 $as_echo "$ac_try_echo") >&5
16929   (eval "$ac_link") 2>conftest.er1
16930   ac_status=$?
16931   grep -v '^ *+' conftest.er1 >conftest.err
16932   rm -f conftest.er1
16933   cat conftest.err >&5
16934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } && {
16936          test -z "$ac_c_werror_flag" ||
16937          test ! -s conftest.err
16938        } && test -s conftest$ac_exeext && {
16939          test "$cross_compiling" = yes ||
16940          $as_test_x conftest$ac_exeext
16941        }; then
16942   ac_cv_search_opendir=$ac_res
16943 else
16944   $as_echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16946
16947
16948 fi
16949
16950 rm -rf conftest.dSYM
16951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16952       conftest$ac_exeext
16953   if test "${ac_cv_search_opendir+set}" = set; then
16954   break
16955 fi
16956 done
16957 if test "${ac_cv_search_opendir+set}" = set; then
16958   :
16959 else
16960   ac_cv_search_opendir=no
16961 fi
16962 rm conftest.$ac_ext
16963 LIBS=$ac_func_search_save_LIBS
16964 fi
16965 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16966 $as_echo "$ac_cv_search_opendir" >&6; }
16967 ac_res=$ac_cv_search_opendir
16968 if test "$ac_res" != no; then
16969   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16970
16971 fi
16972
16973 fi
16974
16975 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16976 $as_echo_n "checking for ANSI C header files... " >&6; }
16977 if test "${ac_cv_header_stdc+set}" = set; then
16978   $as_echo_n "(cached) " >&6
16979 else
16980   cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h.  */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h.  */
16986 #include <stdlib.h>
16987 #include <stdarg.h>
16988 #include <string.h>
16989 #include <float.h>
16990
16991 int
16992 main ()
16993 {
16994
16995   ;
16996   return 0;
16997 }
16998 _ACEOF
16999 rm -f conftest.$ac_objext
17000 if { (ac_try="$ac_compile"
17001 case "(($ac_try" in
17002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003   *) ac_try_echo=$ac_try;;
17004 esac
17005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17006 $as_echo "$ac_try_echo") >&5
17007   (eval "$ac_compile") 2>conftest.er1
17008   ac_status=$?
17009   grep -v '^ *+' conftest.er1 >conftest.err
17010   rm -f conftest.er1
17011   cat conftest.err >&5
17012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); } && {
17014          test -z "$ac_c_werror_flag" ||
17015          test ! -s conftest.err
17016        } && test -s conftest.$ac_objext; then
17017   ac_cv_header_stdc=yes
17018 else
17019   $as_echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17021
17022         ac_cv_header_stdc=no
17023 fi
17024
17025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17026
17027 if test $ac_cv_header_stdc = yes; then
17028   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17029   cat >conftest.$ac_ext <<_ACEOF
17030 /* confdefs.h.  */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h.  */
17035 #include <string.h>
17036
17037 _ACEOF
17038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17039   $EGREP "memchr" >/dev/null 2>&1; then
17040   :
17041 else
17042   ac_cv_header_stdc=no
17043 fi
17044 rm -f conftest*
17045
17046 fi
17047
17048 if test $ac_cv_header_stdc = yes; then
17049   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17050   cat >conftest.$ac_ext <<_ACEOF
17051 /* confdefs.h.  */
17052 _ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h.  */
17056 #include <stdlib.h>
17057
17058 _ACEOF
17059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17060   $EGREP "free" >/dev/null 2>&1; then
17061   :
17062 else
17063   ac_cv_header_stdc=no
17064 fi
17065 rm -f conftest*
17066
17067 fi
17068
17069 if test $ac_cv_header_stdc = yes; then
17070   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17071   if test "$cross_compiling" = yes; then
17072   :
17073 else
17074   cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080 #include <ctype.h>
17081 #include <stdlib.h>
17082 #if ((' ' & 0x0FF) == 0x020)
17083 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17084 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17085 #else
17086 # define ISLOWER(c) \
17087                    (('a' <= (c) && (c) <= 'i') \
17088                      || ('j' <= (c) && (c) <= 'r') \
17089                      || ('s' <= (c) && (c) <= 'z'))
17090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17091 #endif
17092
17093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17094 int
17095 main ()
17096 {
17097   int i;
17098   for (i = 0; i < 256; i++)
17099     if (XOR (islower (i), ISLOWER (i))
17100         || toupper (i) != TOUPPER (i))
17101       return 2;
17102   return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109   *) ac_try_echo=$ac_try;;
17110 esac
17111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17112 $as_echo "$ac_try_echo") >&5
17113   (eval "$ac_link") 2>&5
17114   ac_status=$?
17115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17117   { (case "(($ac_try" in
17118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119   *) ac_try_echo=$ac_try;;
17120 esac
17121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17122 $as_echo "$ac_try_echo") >&5
17123   (eval "$ac_try") 2>&5
17124   ac_status=$?
17125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); }; }; then
17127   :
17128 else
17129   $as_echo "$as_me: program exited with status $ac_status" >&5
17130 $as_echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 ( exit $ac_status )
17134 ac_cv_header_stdc=no
17135 fi
17136 rm -rf conftest.dSYM
17137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17138 fi
17139
17140
17141 fi
17142 fi
17143 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
17144 $as_echo "$ac_cv_header_stdc" >&6; }
17145 if test $ac_cv_header_stdc = yes; then
17146
17147 cat >>confdefs.h <<\_ACEOF
17148 #define STDC_HEADERS 1
17149 _ACEOF
17150
17151 fi
17152
17153 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
17154 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
17155 if test "${ac_cv_header_sys_wait_h+set}" = set; then
17156   $as_echo_n "(cached) " >&6
17157 else
17158   cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h.  */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h.  */
17164 #include <sys/types.h>
17165 #include <sys/wait.h>
17166 #ifndef WEXITSTATUS
17167 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17168 #endif
17169 #ifndef WIFEXITED
17170 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17171 #endif
17172
17173 int
17174 main ()
17175 {
17176   int s;
17177   wait (&s);
17178   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17179   ;
17180   return 0;
17181 }
17182 _ACEOF
17183 rm -f conftest.$ac_objext
17184 if { (ac_try="$ac_compile"
17185 case "(($ac_try" in
17186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187   *) ac_try_echo=$ac_try;;
17188 esac
17189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17190 $as_echo "$ac_try_echo") >&5
17191   (eval "$ac_compile") 2>conftest.er1
17192   ac_status=$?
17193   grep -v '^ *+' conftest.er1 >conftest.err
17194   rm -f conftest.er1
17195   cat conftest.err >&5
17196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); } && {
17198          test -z "$ac_c_werror_flag" ||
17199          test ! -s conftest.err
17200        } && test -s conftest.$ac_objext; then
17201   ac_cv_header_sys_wait_h=yes
17202 else
17203   $as_echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17205
17206         ac_cv_header_sys_wait_h=no
17207 fi
17208
17209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
17212 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
17213 if test $ac_cv_header_sys_wait_h = yes; then
17214
17215 cat >>confdefs.h <<\_ACEOF
17216 #define HAVE_SYS_WAIT_H 1
17217 _ACEOF
17218
17219 fi
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233 for ac_header in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h net/if.h termio.h unistd.h sys/fsuid.h inittypes.h
17234 do
17235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17237   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17238 $as_echo_n "checking for $ac_header... " >&6; }
17239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17240   $as_echo_n "(cached) " >&6
17241 fi
17242 ac_res=`eval 'as_val=${'$as_ac_Header'}
17243                  $as_echo "$as_val"'`
17244                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17245 $as_echo "$ac_res" >&6; }
17246 else
17247   # Is the header compilable?
17248 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17249 $as_echo_n "checking $ac_header usability... " >&6; }
17250 cat >conftest.$ac_ext <<_ACEOF
17251 /* confdefs.h.  */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h.  */
17256 $ac_includes_default
17257 #include <$ac_header>
17258 _ACEOF
17259 rm -f conftest.$ac_objext
17260 if { (ac_try="$ac_compile"
17261 case "(($ac_try" in
17262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263   *) ac_try_echo=$ac_try;;
17264 esac
17265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17266 $as_echo "$ac_try_echo") >&5
17267   (eval "$ac_compile") 2>conftest.er1
17268   ac_status=$?
17269   grep -v '^ *+' conftest.er1 >conftest.err
17270   rm -f conftest.er1
17271   cat conftest.err >&5
17272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273   (exit $ac_status); } && {
17274          test -z "$ac_c_werror_flag" ||
17275          test ! -s conftest.err
17276        } && test -s conftest.$ac_objext; then
17277   ac_header_compiler=yes
17278 else
17279   $as_echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282         ac_header_compiler=no
17283 fi
17284
17285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17286 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17287 $as_echo "$ac_header_compiler" >&6; }
17288
17289 # Is the header present?
17290 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17291 $as_echo_n "checking $ac_header presence... " >&6; }
17292 cat >conftest.$ac_ext <<_ACEOF
17293 /* confdefs.h.  */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h.  */
17298 #include <$ac_header>
17299 _ACEOF
17300 if { (ac_try="$ac_cpp conftest.$ac_ext"
17301 case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17306 $as_echo "$ac_try_echo") >&5
17307   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17308   ac_status=$?
17309   grep -v '^ *+' conftest.er1 >conftest.err
17310   rm -f conftest.er1
17311   cat conftest.err >&5
17312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); } >/dev/null && {
17314          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17315          test ! -s conftest.err
17316        }; then
17317   ac_header_preproc=yes
17318 else
17319   $as_echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322   ac_header_preproc=no
17323 fi
17324
17325 rm -f conftest.err conftest.$ac_ext
17326 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17327 $as_echo "$ac_header_preproc" >&6; }
17328
17329 # So?  What about this header?
17330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17331   yes:no: )
17332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17333 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17334     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17336     ac_header_preproc=yes
17337     ;;
17338   no:yes:* )
17339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17340 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17342 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17344 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17346 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17347     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17349     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17350 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17351
17352     ;;
17353 esac
17354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17355 $as_echo_n "checking for $ac_header... " >&6; }
17356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17357   $as_echo_n "(cached) " >&6
17358 else
17359   eval "$as_ac_Header=\$ac_header_preproc"
17360 fi
17361 ac_res=`eval 'as_val=${'$as_ac_Header'}
17362                  $as_echo "$as_val"'`
17363                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17364 $as_echo "$ac_res" >&6; }
17365
17366 fi
17367 as_val=`eval 'as_val=${'$as_ac_Header'}
17368                  $as_echo "$as_val"'`
17369    if test "x$as_val" = x""yes; then
17370   cat >>confdefs.h <<_ACEOF
17371 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17372 _ACEOF
17373
17374 fi
17375
17376 done
17377
17378
17379
17380
17381
17382 for ac_header in lastlog.h utmp.h utmpx.h
17383 do
17384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17386   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17387 $as_echo_n "checking for $ac_header... " >&6; }
17388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17389   $as_echo_n "(cached) " >&6
17390 fi
17391 ac_res=`eval 'as_val=${'$as_ac_Header'}
17392                  $as_echo "$as_val"'`
17393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17394 $as_echo "$ac_res" >&6; }
17395 else
17396   # Is the header compilable?
17397 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17398 $as_echo_n "checking $ac_header usability... " >&6; }
17399 cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h.  */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h.  */
17405 $ac_includes_default
17406 #include <$ac_header>
17407 _ACEOF
17408 rm -f conftest.$ac_objext
17409 if { (ac_try="$ac_compile"
17410 case "(($ac_try" in
17411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412   *) ac_try_echo=$ac_try;;
17413 esac
17414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17415 $as_echo "$ac_try_echo") >&5
17416   (eval "$ac_compile") 2>conftest.er1
17417   ac_status=$?
17418   grep -v '^ *+' conftest.er1 >conftest.err
17419   rm -f conftest.er1
17420   cat conftest.err >&5
17421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); } && {
17423          test -z "$ac_c_werror_flag" ||
17424          test ! -s conftest.err
17425        } && test -s conftest.$ac_objext; then
17426   ac_header_compiler=yes
17427 else
17428   $as_echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17430
17431         ac_header_compiler=no
17432 fi
17433
17434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17435 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17436 $as_echo "$ac_header_compiler" >&6; }
17437
17438 # Is the header present?
17439 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17440 $as_echo_n "checking $ac_header presence... " >&6; }
17441 cat >conftest.$ac_ext <<_ACEOF
17442 /* confdefs.h.  */
17443 _ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h.  */
17447 #include <$ac_header>
17448 _ACEOF
17449 if { (ac_try="$ac_cpp conftest.$ac_ext"
17450 case "(($ac_try" in
17451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452   *) ac_try_echo=$ac_try;;
17453 esac
17454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17455 $as_echo "$ac_try_echo") >&5
17456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17457   ac_status=$?
17458   grep -v '^ *+' conftest.er1 >conftest.err
17459   rm -f conftest.er1
17460   cat conftest.err >&5
17461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); } >/dev/null && {
17463          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17464          test ! -s conftest.err
17465        }; then
17466   ac_header_preproc=yes
17467 else
17468   $as_echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17470
17471   ac_header_preproc=no
17472 fi
17473
17474 rm -f conftest.err conftest.$ac_ext
17475 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17476 $as_echo "$ac_header_preproc" >&6; }
17477
17478 # So?  What about this header?
17479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17480   yes:no: )
17481     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17482 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17483     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17484 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17485     ac_header_preproc=yes
17486     ;;
17487   no:yes:* )
17488     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17489 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17490     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17491 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17492     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17493 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17494     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17495 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17496     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17497 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17498     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17499 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17500
17501     ;;
17502 esac
17503 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17504 $as_echo_n "checking for $ac_header... " >&6; }
17505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17506   $as_echo_n "(cached) " >&6
17507 else
17508   eval "$as_ac_Header=\$ac_header_preproc"
17509 fi
17510 ac_res=`eval 'as_val=${'$as_ac_Header'}
17511                  $as_echo "$as_val"'`
17512                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17513 $as_echo "$ac_res" >&6; }
17514
17515 fi
17516 as_val=`eval 'as_val=${'$as_ac_Header'}
17517                  $as_echo "$as_val"'`
17518    if test "x$as_val" = x""yes; then
17519   cat >>confdefs.h <<_ACEOF
17520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17521 _ACEOF
17522
17523 fi
17524
17525 done
17526
17527
17528
17529  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17530 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17531 if test "${ac_cv_c_bigendian+set}" = set; then
17532   $as_echo_n "(cached) " >&6
17533 else
17534   ac_cv_c_bigendian=unknown
17535     # See if we're dealing with a universal compiler.
17536     cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h.  */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h.  */
17542 #ifndef __APPLE_CC__
17543                not a universal capable compiler
17544              #endif
17545              typedef int dummy;
17546
17547 _ACEOF
17548 rm -f conftest.$ac_objext
17549 if { (ac_try="$ac_compile"
17550 case "(($ac_try" in
17551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552   *) ac_try_echo=$ac_try;;
17553 esac
17554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17555 $as_echo "$ac_try_echo") >&5
17556   (eval "$ac_compile") 2>conftest.er1
17557   ac_status=$?
17558   grep -v '^ *+' conftest.er1 >conftest.err
17559   rm -f conftest.er1
17560   cat conftest.err >&5
17561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } && {
17563          test -z "$ac_c_werror_flag" ||
17564          test ! -s conftest.err
17565        } && test -s conftest.$ac_objext; then
17566
17567         # Check for potential -arch flags.  It is not universal unless
17568         # there are some -arch flags.  Note that *ppc* also matches
17569         # ppc64.  This check is also rather less than ideal.
17570         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
17571           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
17572         esac
17573 else
17574   $as_echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17576
17577
17578 fi
17579
17580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581     if test $ac_cv_c_bigendian = unknown; then
17582       # See if sys/param.h defines the BYTE_ORDER macro.
17583       cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h.  */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h.  */
17589 #include <sys/types.h>
17590              #include <sys/param.h>
17591
17592 int
17593 main ()
17594 {
17595 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17596                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17597                      && LITTLE_ENDIAN)
17598               bogus endian macros
17599              #endif
17600
17601   ;
17602   return 0;
17603 }
17604 _ACEOF
17605 rm -f conftest.$ac_objext
17606 if { (ac_try="$ac_compile"
17607 case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17612 $as_echo "$ac_try_echo") >&5
17613   (eval "$ac_compile") 2>conftest.er1
17614   ac_status=$?
17615   grep -v '^ *+' conftest.er1 >conftest.err
17616   rm -f conftest.er1
17617   cat conftest.err >&5
17618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } && {
17620          test -z "$ac_c_werror_flag" ||
17621          test ! -s conftest.err
17622        } && test -s conftest.$ac_objext; then
17623   # It does; now see whether it defined to BIG_ENDIAN or not.
17624          cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h.  */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h.  */
17630 #include <sys/types.h>
17631                 #include <sys/param.h>
17632
17633 int
17634 main ()
17635 {
17636 #if BYTE_ORDER != BIG_ENDIAN
17637                  not big endian
17638                 #endif
17639
17640   ;
17641   return 0;
17642 }
17643 _ACEOF
17644 rm -f conftest.$ac_objext
17645 if { (ac_try="$ac_compile"
17646 case "(($ac_try" in
17647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648   *) ac_try_echo=$ac_try;;
17649 esac
17650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17651 $as_echo "$ac_try_echo") >&5
17652   (eval "$ac_compile") 2>conftest.er1
17653   ac_status=$?
17654   grep -v '^ *+' conftest.er1 >conftest.err
17655   rm -f conftest.er1
17656   cat conftest.err >&5
17657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } && {
17659          test -z "$ac_c_werror_flag" ||
17660          test ! -s conftest.err
17661        } && test -s conftest.$ac_objext; then
17662   ac_cv_c_bigendian=yes
17663 else
17664   $as_echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17666
17667         ac_cv_c_bigendian=no
17668 fi
17669
17670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17671 else
17672   $as_echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17674
17675
17676 fi
17677
17678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17679     fi
17680     if test $ac_cv_c_bigendian = unknown; then
17681       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17682       cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 #include <limits.h>
17689
17690 int
17691 main ()
17692 {
17693 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17694               bogus endian macros
17695              #endif
17696
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17708 $as_echo "$ac_try_echo") >&5
17709   (eval "$ac_compile") 2>conftest.er1
17710   ac_status=$?
17711   grep -v '^ *+' conftest.er1 >conftest.err
17712   rm -f conftest.er1
17713   cat conftest.err >&5
17714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } && {
17716          test -z "$ac_c_werror_flag" ||
17717          test ! -s conftest.err
17718        } && test -s conftest.$ac_objext; then
17719   # It does; now see whether it defined to _BIG_ENDIAN or not.
17720          cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h.  */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h.  */
17726 #include <limits.h>
17727
17728 int
17729 main ()
17730 {
17731 #ifndef _BIG_ENDIAN
17732                  not big endian
17733                 #endif
17734
17735   ;
17736   return 0;
17737 }
17738 _ACEOF
17739 rm -f conftest.$ac_objext
17740 if { (ac_try="$ac_compile"
17741 case "(($ac_try" in
17742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743   *) ac_try_echo=$ac_try;;
17744 esac
17745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17746 $as_echo "$ac_try_echo") >&5
17747   (eval "$ac_compile") 2>conftest.er1
17748   ac_status=$?
17749   grep -v '^ *+' conftest.er1 >conftest.err
17750   rm -f conftest.er1
17751   cat conftest.err >&5
17752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); } && {
17754          test -z "$ac_c_werror_flag" ||
17755          test ! -s conftest.err
17756        } && test -s conftest.$ac_objext; then
17757   ac_cv_c_bigendian=yes
17758 else
17759   $as_echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17761
17762         ac_cv_c_bigendian=no
17763 fi
17764
17765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17766 else
17767   $as_echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17769
17770
17771 fi
17772
17773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774     fi
17775     if test $ac_cv_c_bigendian = unknown; then
17776       # Compile a test program.
17777       if test "$cross_compiling" = yes; then
17778   # Try to guess by grepping values from an object file.
17779          cat >conftest.$ac_ext <<_ACEOF
17780 /* confdefs.h.  */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h.  */
17785 short int ascii_mm[] =
17786                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17787                 short int ascii_ii[] =
17788                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17789                 int use_ascii (int i) {
17790                   return ascii_mm[i] + ascii_ii[i];
17791                 }
17792                 short int ebcdic_ii[] =
17793                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17794                 short int ebcdic_mm[] =
17795                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17796                 int use_ebcdic (int i) {
17797                   return ebcdic_mm[i] + ebcdic_ii[i];
17798                 }
17799                 extern int foo;
17800
17801 int
17802 main ()
17803 {
17804 return use_ascii (foo) == use_ebcdic (foo);
17805   ;
17806   return 0;
17807 }
17808 _ACEOF
17809 rm -f conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813   *) ac_try_echo=$ac_try;;
17814 esac
17815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17816 $as_echo "$ac_try_echo") >&5
17817   (eval "$ac_compile") 2>conftest.er1
17818   ac_status=$?
17819   grep -v '^ *+' conftest.er1 >conftest.err
17820   rm -f conftest.er1
17821   cat conftest.err >&5
17822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); } && {
17824          test -z "$ac_c_werror_flag" ||
17825          test ! -s conftest.err
17826        } && test -s conftest.$ac_objext; then
17827   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17828               ac_cv_c_bigendian=yes
17829             fi
17830             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17831               if test "$ac_cv_c_bigendian" = unknown; then
17832                 ac_cv_c_bigendian=no
17833               else
17834                 # finding both strings is unlikely to happen, but who knows?
17835                 ac_cv_c_bigendian=unknown
17836               fi
17837             fi
17838 else
17839   $as_echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17841
17842
17843 fi
17844
17845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17846 else
17847   cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h.  */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h.  */
17853 $ac_includes_default
17854 int
17855 main ()
17856 {
17857
17858              /* Are we little or big endian?  From Harbison&Steele.  */
17859              union
17860              {
17861                long int l;
17862                char c[sizeof (long int)];
17863              } u;
17864              u.l = 1;
17865              return u.c[sizeof (long int) - 1] == 1;
17866
17867   ;
17868   return 0;
17869 }
17870 _ACEOF
17871 rm -f conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875   *) ac_try_echo=$ac_try;;
17876 esac
17877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17878 $as_echo "$ac_try_echo") >&5
17879   (eval "$ac_link") 2>&5
17880   ac_status=$?
17881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17883   { (case "(($ac_try" in
17884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885   *) ac_try_echo=$ac_try;;
17886 esac
17887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17888 $as_echo "$ac_try_echo") >&5
17889   (eval "$ac_try") 2>&5
17890   ac_status=$?
17891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); }; }; then
17893   ac_cv_c_bigendian=no
17894 else
17895   $as_echo "$as_me: program exited with status $ac_status" >&5
17896 $as_echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17898
17899 ( exit $ac_status )
17900 ac_cv_c_bigendian=yes
17901 fi
17902 rm -rf conftest.dSYM
17903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17904 fi
17905
17906
17907     fi
17908 fi
17909 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17910 $as_echo "$ac_cv_c_bigendian" >&6; }
17911  case $ac_cv_c_bigendian in #(
17912    yes)
17913      cat >>confdefs.h <<\_ACEOF
17914 #define WORDS_BIGENDIAN 1
17915 _ACEOF
17916 ;; #(
17917    no)
17918       ;; #(
17919    universal)
17920
17921 cat >>confdefs.h <<\_ACEOF
17922 #define AC_APPLE_UNIVERSAL_BUILD 1
17923 _ACEOF
17924
17925      ;; #(
17926    *)
17927      { { $as_echo "$as_me:$LINENO: error: unknown endianness
17928  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17929 $as_echo "$as_me: error: unknown endianness
17930  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17931    { (exit 1); exit 1; }; } ;;
17932  esac
17933
17934 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17935 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17936 if test "${ac_cv_c_const+set}" = set; then
17937   $as_echo_n "(cached) " >&6
17938 else
17939   cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h.  */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h.  */
17945
17946 int
17947 main ()
17948 {
17949 /* FIXME: Include the comments suggested by Paul. */
17950 #ifndef __cplusplus
17951   /* Ultrix mips cc rejects this.  */
17952   typedef int charset[2];
17953   const charset cs;
17954   /* SunOS 4.1.1 cc rejects this.  */
17955   char const *const *pcpcc;
17956   char **ppc;
17957   /* NEC SVR4.0.2 mips cc rejects this.  */
17958   struct point {int x, y;};
17959   static struct point const zero = {0,0};
17960   /* AIX XL C 1.02.0.0 rejects this.
17961      It does not let you subtract one const X* pointer from another in
17962      an arm of an if-expression whose if-part is not a constant
17963      expression */
17964   const char *g = "string";
17965   pcpcc = &g + (g ? g-g : 0);
17966   /* HPUX 7.0 cc rejects these. */
17967   ++pcpcc;
17968   ppc = (char**) pcpcc;
17969   pcpcc = (char const *const *) ppc;
17970   { /* SCO 3.2v4 cc rejects this.  */
17971     char *t;
17972     char const *s = 0 ? (char *) 0 : (char const *) 0;
17973
17974     *t++ = 0;
17975     if (s) return 0;
17976   }
17977   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17978     int x[] = {25, 17};
17979     const int *foo = &x[0];
17980     ++foo;
17981   }
17982   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17983     typedef const int *iptr;
17984     iptr p = 0;
17985     ++p;
17986   }
17987   { /* AIX XL C 1.02.0.0 rejects this saying
17988        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17989     struct s { int j; const int *ap[3]; };
17990     struct s *b; b->j = 5;
17991   }
17992   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17993     const int foo = 10;
17994     if (!foo) return 0;
17995   }
17996   return !cs[0] && !zero.x;
17997 #endif
17998
17999   ;
18000   return 0;
18001 }
18002 _ACEOF
18003 rm -f conftest.$ac_objext
18004 if { (ac_try="$ac_compile"
18005 case "(($ac_try" in
18006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007   *) ac_try_echo=$ac_try;;
18008 esac
18009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18010 $as_echo "$ac_try_echo") >&5
18011   (eval "$ac_compile") 2>conftest.er1
18012   ac_status=$?
18013   grep -v '^ *+' conftest.er1 >conftest.err
18014   rm -f conftest.er1
18015   cat conftest.err >&5
18016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017   (exit $ac_status); } && {
18018          test -z "$ac_c_werror_flag" ||
18019          test ! -s conftest.err
18020        } && test -s conftest.$ac_objext; then
18021   ac_cv_c_const=yes
18022 else
18023   $as_echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18025
18026         ac_cv_c_const=no
18027 fi
18028
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030 fi
18031 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18032 $as_echo "$ac_cv_c_const" >&6; }
18033 if test $ac_cv_c_const = no; then
18034
18035 cat >>confdefs.h <<\_ACEOF
18036 #define const /**/
18037 _ACEOF
18038
18039 fi
18040
18041 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
18042 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18043 if test "${ac_cv_type_uid_t+set}" = set; then
18044   $as_echo_n "(cached) " >&6
18045 else
18046   cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h.  */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h.  */
18052 #include <sys/types.h>
18053
18054 _ACEOF
18055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18056   $EGREP "uid_t" >/dev/null 2>&1; then
18057   ac_cv_type_uid_t=yes
18058 else
18059   ac_cv_type_uid_t=no
18060 fi
18061 rm -f conftest*
18062
18063 fi
18064 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
18065 $as_echo "$ac_cv_type_uid_t" >&6; }
18066 if test $ac_cv_type_uid_t = no; then
18067
18068 cat >>confdefs.h <<\_ACEOF
18069 #define uid_t int
18070 _ACEOF
18071
18072
18073 cat >>confdefs.h <<\_ACEOF
18074 #define gid_t int
18075 _ACEOF
18076
18077 fi
18078
18079 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
18080 $as_echo_n "checking for off_t... " >&6; }
18081 if test "${ac_cv_type_off_t+set}" = set; then
18082   $as_echo_n "(cached) " >&6
18083 else
18084   ac_cv_type_off_t=no
18085 cat >conftest.$ac_ext <<_ACEOF
18086 /* confdefs.h.  */
18087 _ACEOF
18088 cat confdefs.h >>conftest.$ac_ext
18089 cat >>conftest.$ac_ext <<_ACEOF
18090 /* end confdefs.h.  */
18091 $ac_includes_default
18092 int
18093 main ()
18094 {
18095 if (sizeof (off_t))
18096        return 0;
18097   ;
18098   return 0;
18099 }
18100 _ACEOF
18101 rm -f conftest.$ac_objext
18102 if { (ac_try="$ac_compile"
18103 case "(($ac_try" in
18104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105   *) ac_try_echo=$ac_try;;
18106 esac
18107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18108 $as_echo "$ac_try_echo") >&5
18109   (eval "$ac_compile") 2>conftest.er1
18110   ac_status=$?
18111   grep -v '^ *+' conftest.er1 >conftest.err
18112   rm -f conftest.er1
18113   cat conftest.err >&5
18114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); } && {
18116          test -z "$ac_c_werror_flag" ||
18117          test ! -s conftest.err
18118        } && test -s conftest.$ac_objext; then
18119   cat >conftest.$ac_ext <<_ACEOF
18120 /* confdefs.h.  */
18121 _ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h.  */
18125 $ac_includes_default
18126 int
18127 main ()
18128 {
18129 if (sizeof ((off_t)))
18130           return 0;
18131   ;
18132   return 0;
18133 }
18134 _ACEOF
18135 rm -f conftest.$ac_objext
18136 if { (ac_try="$ac_compile"
18137 case "(($ac_try" in
18138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139   *) ac_try_echo=$ac_try;;
18140 esac
18141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18142 $as_echo "$ac_try_echo") >&5
18143   (eval "$ac_compile") 2>conftest.er1
18144   ac_status=$?
18145   grep -v '^ *+' conftest.er1 >conftest.err
18146   rm -f conftest.er1
18147   cat conftest.err >&5
18148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); } && {
18150          test -z "$ac_c_werror_flag" ||
18151          test ! -s conftest.err
18152        } && test -s conftest.$ac_objext; then
18153   :
18154 else
18155   $as_echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18157
18158         ac_cv_type_off_t=yes
18159 fi
18160
18161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18162 else
18163   $as_echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166
18167 fi
18168
18169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18170 fi
18171 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18172 $as_echo "$ac_cv_type_off_t" >&6; }
18173 if test "x$ac_cv_type_off_t" = x""yes; then
18174   :
18175 else
18176
18177 cat >>confdefs.h <<_ACEOF
18178 #define off_t long int
18179 _ACEOF
18180
18181 fi
18182
18183 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
18184 $as_echo_n "checking for pid_t... " >&6; }
18185 if test "${ac_cv_type_pid_t+set}" = set; then
18186   $as_echo_n "(cached) " >&6
18187 else
18188   ac_cv_type_pid_t=no
18189 cat >conftest.$ac_ext <<_ACEOF
18190 /* confdefs.h.  */
18191 _ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h.  */
18195 $ac_includes_default
18196 int
18197 main ()
18198 {
18199 if (sizeof (pid_t))
18200        return 0;
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext
18206 if { (ac_try="$ac_compile"
18207 case "(($ac_try" in
18208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209   *) ac_try_echo=$ac_try;;
18210 esac
18211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18212 $as_echo "$ac_try_echo") >&5
18213   (eval "$ac_compile") 2>conftest.er1
18214   ac_status=$?
18215   grep -v '^ *+' conftest.er1 >conftest.err
18216   rm -f conftest.er1
18217   cat conftest.err >&5
18218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); } && {
18220          test -z "$ac_c_werror_flag" ||
18221          test ! -s conftest.err
18222        } && test -s conftest.$ac_objext; then
18223   cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h.  */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h.  */
18229 $ac_includes_default
18230 int
18231 main ()
18232 {
18233 if (sizeof ((pid_t)))
18234           return 0;
18235   ;
18236   return 0;
18237 }
18238 _ACEOF
18239 rm -f conftest.$ac_objext
18240 if { (ac_try="$ac_compile"
18241 case "(($ac_try" in
18242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243   *) ac_try_echo=$ac_try;;
18244 esac
18245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18246 $as_echo "$ac_try_echo") >&5
18247   (eval "$ac_compile") 2>conftest.er1
18248   ac_status=$?
18249   grep -v '^ *+' conftest.er1 >conftest.err
18250   rm -f conftest.er1
18251   cat conftest.err >&5
18252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); } && {
18254          test -z "$ac_c_werror_flag" ||
18255          test ! -s conftest.err
18256        } && test -s conftest.$ac_objext; then
18257   :
18258 else
18259   $as_echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18261
18262         ac_cv_type_pid_t=yes
18263 fi
18264
18265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18266 else
18267   $as_echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18269
18270
18271 fi
18272
18273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18274 fi
18275 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18276 $as_echo "$ac_cv_type_pid_t" >&6; }
18277 if test "x$ac_cv_type_pid_t" = x""yes; then
18278   :
18279 else
18280
18281 cat >>confdefs.h <<_ACEOF
18282 #define pid_t int
18283 _ACEOF
18284
18285 fi
18286
18287 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
18288 $as_echo_n "checking for size_t... " >&6; }
18289 if test "${ac_cv_type_size_t+set}" = set; then
18290   $as_echo_n "(cached) " >&6
18291 else
18292   ac_cv_type_size_t=no
18293 cat >conftest.$ac_ext <<_ACEOF
18294 /* confdefs.h.  */
18295 _ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h.  */
18299 $ac_includes_default
18300 int
18301 main ()
18302 {
18303 if (sizeof (size_t))
18304        return 0;
18305   ;
18306   return 0;
18307 }
18308 _ACEOF
18309 rm -f conftest.$ac_objext
18310 if { (ac_try="$ac_compile"
18311 case "(($ac_try" in
18312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313   *) ac_try_echo=$ac_try;;
18314 esac
18315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18316 $as_echo "$ac_try_echo") >&5
18317   (eval "$ac_compile") 2>conftest.er1
18318   ac_status=$?
18319   grep -v '^ *+' conftest.er1 >conftest.err
18320   rm -f conftest.er1
18321   cat conftest.err >&5
18322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); } && {
18324          test -z "$ac_c_werror_flag" ||
18325          test ! -s conftest.err
18326        } && test -s conftest.$ac_objext; then
18327   cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h.  */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h.  */
18333 $ac_includes_default
18334 int
18335 main ()
18336 {
18337 if (sizeof ((size_t)))
18338           return 0;
18339   ;
18340   return 0;
18341 }
18342 _ACEOF
18343 rm -f conftest.$ac_objext
18344 if { (ac_try="$ac_compile"
18345 case "(($ac_try" in
18346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347   *) ac_try_echo=$ac_try;;
18348 esac
18349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18350 $as_echo "$ac_try_echo") >&5
18351   (eval "$ac_compile") 2>conftest.er1
18352   ac_status=$?
18353   grep -v '^ *+' conftest.er1 >conftest.err
18354   rm -f conftest.er1
18355   cat conftest.err >&5
18356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); } && {
18358          test -z "$ac_c_werror_flag" ||
18359          test ! -s conftest.err
18360        } && test -s conftest.$ac_objext; then
18361   :
18362 else
18363   $as_echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18365
18366         ac_cv_type_size_t=yes
18367 fi
18368
18369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18370 else
18371   $as_echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18373
18374
18375 fi
18376
18377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18378 fi
18379 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18380 $as_echo "$ac_cv_type_size_t" >&6; }
18381 if test "x$ac_cv_type_size_t" = x""yes; then
18382   :
18383 else
18384
18385 cat >>confdefs.h <<_ACEOF
18386 #define size_t unsigned int
18387 _ACEOF
18388
18389 fi
18390
18391 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18392 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18393 if test "${ac_cv_header_time+set}" = set; then
18394   $as_echo_n "(cached) " >&6
18395 else
18396   cat >conftest.$ac_ext <<_ACEOF
18397 /* confdefs.h.  */
18398 _ACEOF
18399 cat confdefs.h >>conftest.$ac_ext
18400 cat >>conftest.$ac_ext <<_ACEOF
18401 /* end confdefs.h.  */
18402 #include <sys/types.h>
18403 #include <sys/time.h>
18404 #include <time.h>
18405
18406 int
18407 main ()
18408 {
18409 if ((struct tm *) 0)
18410 return 0;
18411   ;
18412   return 0;
18413 }
18414 _ACEOF
18415 rm -f conftest.$ac_objext
18416 if { (ac_try="$ac_compile"
18417 case "(($ac_try" in
18418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419   *) ac_try_echo=$ac_try;;
18420 esac
18421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18422 $as_echo "$ac_try_echo") >&5
18423   (eval "$ac_compile") 2>conftest.er1
18424   ac_status=$?
18425   grep -v '^ *+' conftest.er1 >conftest.err
18426   rm -f conftest.er1
18427   cat conftest.err >&5
18428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); } && {
18430          test -z "$ac_c_werror_flag" ||
18431          test ! -s conftest.err
18432        } && test -s conftest.$ac_objext; then
18433   ac_cv_header_time=yes
18434 else
18435   $as_echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18437
18438         ac_cv_header_time=no
18439 fi
18440
18441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18442 fi
18443 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18444 $as_echo "$ac_cv_header_time" >&6; }
18445 if test $ac_cv_header_time = yes; then
18446
18447 cat >>confdefs.h <<\_ACEOF
18448 #define TIME_WITH_SYS_TIME 1
18449 _ACEOF
18450
18451 fi
18452
18453 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18454 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18455 if test "${ac_cv_struct_tm+set}" = set; then
18456   $as_echo_n "(cached) " >&6
18457 else
18458   cat >conftest.$ac_ext <<_ACEOF
18459 /* confdefs.h.  */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h.  */
18464 #include <sys/types.h>
18465 #include <time.h>
18466
18467 int
18468 main ()
18469 {
18470 struct tm tm;
18471                                      int *p = &tm.tm_sec;
18472                                      return !p;
18473   ;
18474   return 0;
18475 }
18476 _ACEOF
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481   *) ac_try_echo=$ac_try;;
18482 esac
18483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18484 $as_echo "$ac_try_echo") >&5
18485   (eval "$ac_compile") 2>conftest.er1
18486   ac_status=$?
18487   grep -v '^ *+' conftest.er1 >conftest.err
18488   rm -f conftest.er1
18489   cat conftest.err >&5
18490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); } && {
18492          test -z "$ac_c_werror_flag" ||
18493          test ! -s conftest.err
18494        } && test -s conftest.$ac_objext; then
18495   ac_cv_struct_tm=time.h
18496 else
18497   $as_echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18499
18500         ac_cv_struct_tm=sys/time.h
18501 fi
18502
18503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 fi
18505 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18506 $as_echo "$ac_cv_struct_tm" >&6; }
18507 if test $ac_cv_struct_tm = sys/time.h; then
18508
18509 cat >>confdefs.h <<\_ACEOF
18510 #define TM_IN_SYS_TIME 1
18511 _ACEOF
18512
18513 fi
18514
18515
18516 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
18517 $as_echo_n "checking type of array argument to getgroups... " >&6; }
18518 if test "${ac_cv_type_getgroups+set}" = set; then
18519   $as_echo_n "(cached) " >&6
18520 else
18521   if test "$cross_compiling" = yes; then
18522   ac_cv_type_getgroups=cross
18523 else
18524   cat >conftest.$ac_ext <<_ACEOF
18525 /* confdefs.h.  */
18526 _ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h.  */
18530 /* Thanks to Mike Rendell for this test.  */
18531 $ac_includes_default
18532 #define NGID 256
18533 #undef MAX
18534 #define MAX(x, y) ((x) > (y) ? (x) : (y))
18535
18536 int
18537 main ()
18538 {
18539   gid_t gidset[NGID];
18540   int i, n;
18541   union { gid_t gval; long int lval; }  val;
18542
18543   val.lval = -1;
18544   for (i = 0; i < NGID; i++)
18545     gidset[i] = val.gval;
18546   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
18547                  gidset);
18548   /* Exit non-zero if getgroups seems to require an array of ints.  This
18549      happens when gid_t is short int but getgroups modifies an array
18550      of ints.  */
18551   return n > 0 && gidset[n] != val.gval;
18552 }
18553 _ACEOF
18554 rm -f conftest$ac_exeext
18555 if { (ac_try="$ac_link"
18556 case "(($ac_try" in
18557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558   *) ac_try_echo=$ac_try;;
18559 esac
18560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18561 $as_echo "$ac_try_echo") >&5
18562   (eval "$ac_link") 2>&5
18563   ac_status=$?
18564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18566   { (case "(($ac_try" in
18567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568   *) ac_try_echo=$ac_try;;
18569 esac
18570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18571 $as_echo "$ac_try_echo") >&5
18572   (eval "$ac_try") 2>&5
18573   ac_status=$?
18574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); }; }; then
18576   ac_cv_type_getgroups=gid_t
18577 else
18578   $as_echo "$as_me: program exited with status $ac_status" >&5
18579 $as_echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18581
18582 ( exit $ac_status )
18583 ac_cv_type_getgroups=int
18584 fi
18585 rm -rf conftest.dSYM
18586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18587 fi
18588
18589
18590 if test $ac_cv_type_getgroups = cross; then
18591         cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597 #include <unistd.h>
18598
18599 _ACEOF
18600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18601   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
18602   ac_cv_type_getgroups=gid_t
18603 else
18604   ac_cv_type_getgroups=int
18605 fi
18606 rm -f conftest*
18607
18608 fi
18609 fi
18610 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
18611 $as_echo "$ac_cv_type_getgroups" >&6; }
18612
18613 cat >>confdefs.h <<_ACEOF
18614 #define GETGROUPS_T $ac_cv_type_getgroups
18615 _ACEOF
18616
18617
18618 if test $ac_cv_c_compiler_gnu = yes; then
18619     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18620 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
18621 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18622   $as_echo_n "(cached) " >&6
18623 else
18624     ac_pattern="Autoconf.*'x'"
18625   cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h.  */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h.  */
18631 #include <sgtty.h>
18632 Autoconf TIOCGETP
18633 _ACEOF
18634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18635   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18636   ac_cv_prog_gcc_traditional=yes
18637 else
18638   ac_cv_prog_gcc_traditional=no
18639 fi
18640 rm -f conftest*
18641
18642
18643   if test $ac_cv_prog_gcc_traditional = no; then
18644     cat >conftest.$ac_ext <<_ACEOF
18645 /* confdefs.h.  */
18646 _ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h.  */
18650 #include <termio.h>
18651 Autoconf TCGETA
18652 _ACEOF
18653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18654   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18655   ac_cv_prog_gcc_traditional=yes
18656 fi
18657 rm -f conftest*
18658
18659   fi
18660 fi
18661 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18662 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
18663   if test $ac_cv_prog_gcc_traditional = yes; then
18664     CC="$CC -traditional"
18665   fi
18666 fi
18667
18668 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
18669 $as_echo_n "checking for working memcmp... " >&6; }
18670 if test "${ac_cv_func_memcmp_working+set}" = set; then
18671   $as_echo_n "(cached) " >&6
18672 else
18673   if test "$cross_compiling" = yes; then
18674   ac_cv_func_memcmp_working=no
18675 else
18676   cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682 $ac_includes_default
18683 int
18684 main ()
18685 {
18686
18687   /* Some versions of memcmp are not 8-bit clean.  */
18688   char c0 = '\100', c1 = '\200', c2 = '\201';
18689   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
18690     return 1;
18691
18692   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
18693      or more and with at least one buffer not starting on a 4-byte boundary.
18694      William Lewis provided this test program.   */
18695   {
18696     char foo[21];
18697     char bar[21];
18698     int i;
18699     for (i = 0; i < 4; i++)
18700       {
18701         char *a = foo + i;
18702         char *b = bar + i;
18703         strcpy (a, "--------01111111");
18704         strcpy (b, "--------10000000");
18705         if (memcmp (a, b, 16) >= 0)
18706           return 1;
18707       }
18708     return 0;
18709   }
18710
18711   ;
18712   return 0;
18713 }
18714 _ACEOF
18715 rm -f conftest$ac_exeext
18716 if { (ac_try="$ac_link"
18717 case "(($ac_try" in
18718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719   *) ac_try_echo=$ac_try;;
18720 esac
18721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18722 $as_echo "$ac_try_echo") >&5
18723   (eval "$ac_link") 2>&5
18724   ac_status=$?
18725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18727   { (case "(($ac_try" in
18728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729   *) ac_try_echo=$ac_try;;
18730 esac
18731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18732 $as_echo "$ac_try_echo") >&5
18733   (eval "$ac_try") 2>&5
18734   ac_status=$?
18735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); }; }; then
18737   ac_cv_func_memcmp_working=yes
18738 else
18739   $as_echo "$as_me: program exited with status $ac_status" >&5
18740 $as_echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18742
18743 ( exit $ac_status )
18744 ac_cv_func_memcmp_working=no
18745 fi
18746 rm -rf conftest.dSYM
18747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18748 fi
18749
18750
18751 fi
18752 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
18753 $as_echo "$ac_cv_func_memcmp_working" >&6; }
18754 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
18755   *" memcmp.$ac_objext "* ) ;;
18756   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
18757  ;;
18758 esac
18759
18760
18761
18762 for ac_func in vprintf
18763 do
18764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18765 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18766 $as_echo_n "checking for $ac_func... " >&6; }
18767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18768   $as_echo_n "(cached) " >&6
18769 else
18770   cat >conftest.$ac_ext <<_ACEOF
18771 /* confdefs.h.  */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h.  */
18776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18778 #define $ac_func innocuous_$ac_func
18779
18780 /* System header to define __stub macros and hopefully few prototypes,
18781     which can conflict with char $ac_func (); below.
18782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18783     <limits.h> exists even on freestanding compilers.  */
18784
18785 #ifdef __STDC__
18786 # include <limits.h>
18787 #else
18788 # include <assert.h>
18789 #endif
18790
18791 #undef $ac_func
18792
18793 /* Override any GCC internal prototype to avoid an error.
18794    Use char because int might match the return type of a GCC
18795    builtin and then its argument prototype would still apply.  */
18796 #ifdef __cplusplus
18797 extern "C"
18798 #endif
18799 char $ac_func ();
18800 /* The GNU C library defines this for functions which it implements
18801     to always fail with ENOSYS.  Some functions are actually named
18802     something starting with __ and the normal name is an alias.  */
18803 #if defined __stub_$ac_func || defined __stub___$ac_func
18804 choke me
18805 #endif
18806
18807 int
18808 main ()
18809 {
18810 return $ac_func ();
18811   ;
18812   return 0;
18813 }
18814 _ACEOF
18815 rm -f conftest.$ac_objext conftest$ac_exeext
18816 if { (ac_try="$ac_link"
18817 case "(($ac_try" in
18818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819   *) ac_try_echo=$ac_try;;
18820 esac
18821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18822 $as_echo "$ac_try_echo") >&5
18823   (eval "$ac_link") 2>conftest.er1
18824   ac_status=$?
18825   grep -v '^ *+' conftest.er1 >conftest.err
18826   rm -f conftest.er1
18827   cat conftest.err >&5
18828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829   (exit $ac_status); } && {
18830          test -z "$ac_c_werror_flag" ||
18831          test ! -s conftest.err
18832        } && test -s conftest$ac_exeext && {
18833          test "$cross_compiling" = yes ||
18834          $as_test_x conftest$ac_exeext
18835        }; then
18836   eval "$as_ac_var=yes"
18837 else
18838   $as_echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18840
18841         eval "$as_ac_var=no"
18842 fi
18843
18844 rm -rf conftest.dSYM
18845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18846       conftest$ac_exeext conftest.$ac_ext
18847 fi
18848 ac_res=`eval 'as_val=${'$as_ac_var'}
18849                  $as_echo "$as_val"'`
18850                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18851 $as_echo "$ac_res" >&6; }
18852 as_val=`eval 'as_val=${'$as_ac_var'}
18853                  $as_echo "$as_val"'`
18854    if test "x$as_val" = x""yes; then
18855   cat >>confdefs.h <<_ACEOF
18856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18857 _ACEOF
18858
18859 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
18860 $as_echo_n "checking for _doprnt... " >&6; }
18861 if test "${ac_cv_func__doprnt+set}" = set; then
18862   $as_echo_n "(cached) " >&6
18863 else
18864   cat >conftest.$ac_ext <<_ACEOF
18865 /* confdefs.h.  */
18866 _ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h.  */
18870 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
18871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18872 #define _doprnt innocuous__doprnt
18873
18874 /* System header to define __stub macros and hopefully few prototypes,
18875     which can conflict with char _doprnt (); below.
18876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18877     <limits.h> exists even on freestanding compilers.  */
18878
18879 #ifdef __STDC__
18880 # include <limits.h>
18881 #else
18882 # include <assert.h>
18883 #endif
18884
18885 #undef _doprnt
18886
18887 /* Override any GCC internal prototype to avoid an error.
18888    Use char because int might match the return type of a GCC
18889    builtin and then its argument prototype would still apply.  */
18890 #ifdef __cplusplus
18891 extern "C"
18892 #endif
18893 char _doprnt ();
18894 /* The GNU C library defines this for functions which it implements
18895     to always fail with ENOSYS.  Some functions are actually named
18896     something starting with __ and the normal name is an alias.  */
18897 #if defined __stub__doprnt || defined __stub____doprnt
18898 choke me
18899 #endif
18900
18901 int
18902 main ()
18903 {
18904 return _doprnt ();
18905   ;
18906   return 0;
18907 }
18908 _ACEOF
18909 rm -f conftest.$ac_objext conftest$ac_exeext
18910 if { (ac_try="$ac_link"
18911 case "(($ac_try" in
18912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913   *) ac_try_echo=$ac_try;;
18914 esac
18915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18916 $as_echo "$ac_try_echo") >&5
18917   (eval "$ac_link") 2>conftest.er1
18918   ac_status=$?
18919   grep -v '^ *+' conftest.er1 >conftest.err
18920   rm -f conftest.er1
18921   cat conftest.err >&5
18922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); } && {
18924          test -z "$ac_c_werror_flag" ||
18925          test ! -s conftest.err
18926        } && test -s conftest$ac_exeext && {
18927          test "$cross_compiling" = yes ||
18928          $as_test_x conftest$ac_exeext
18929        }; then
18930   ac_cv_func__doprnt=yes
18931 else
18932   $as_echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935         ac_cv_func__doprnt=no
18936 fi
18937
18938 rm -rf conftest.dSYM
18939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18940       conftest$ac_exeext conftest.$ac_ext
18941 fi
18942 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
18943 $as_echo "$ac_cv_func__doprnt" >&6; }
18944 if test "x$ac_cv_func__doprnt" = x""yes; then
18945
18946 cat >>confdefs.h <<\_ACEOF
18947 #define HAVE_DOPRNT 1
18948 _ACEOF
18949
18950 fi
18951
18952 fi
18953 done
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963 for ac_func in fseeko getdomainname gethostname gettimeofday lckpwdf mkdir select
18964 do
18965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18966 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18967 $as_echo_n "checking for $ac_func... " >&6; }
18968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18969   $as_echo_n "(cached) " >&6
18970 else
18971   cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h.  */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h.  */
18977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18979 #define $ac_func innocuous_$ac_func
18980
18981 /* System header to define __stub macros and hopefully few prototypes,
18982     which can conflict with char $ac_func (); below.
18983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18984     <limits.h> exists even on freestanding compilers.  */
18985
18986 #ifdef __STDC__
18987 # include <limits.h>
18988 #else
18989 # include <assert.h>
18990 #endif
18991
18992 #undef $ac_func
18993
18994 /* Override any GCC internal prototype to avoid an error.
18995    Use char because int might match the return type of a GCC
18996    builtin and then its argument prototype would still apply.  */
18997 #ifdef __cplusplus
18998 extern "C"
18999 #endif
19000 char $ac_func ();
19001 /* The GNU C library defines this for functions which it implements
19002     to always fail with ENOSYS.  Some functions are actually named
19003     something starting with __ and the normal name is an alias.  */
19004 #if defined __stub_$ac_func || defined __stub___$ac_func
19005 choke me
19006 #endif
19007
19008 int
19009 main ()
19010 {
19011 return $ac_func ();
19012   ;
19013   return 0;
19014 }
19015 _ACEOF
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19023 $as_echo "$ac_try_echo") >&5
19024   (eval "$ac_link") 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } && {
19031          test -z "$ac_c_werror_flag" ||
19032          test ! -s conftest.err
19033        } && test -s conftest$ac_exeext && {
19034          test "$cross_compiling" = yes ||
19035          $as_test_x conftest$ac_exeext
19036        }; then
19037   eval "$as_ac_var=yes"
19038 else
19039   $as_echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.$ac_ext >&5
19041
19042         eval "$as_ac_var=no"
19043 fi
19044
19045 rm -rf conftest.dSYM
19046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19047       conftest$ac_exeext conftest.$ac_ext
19048 fi
19049 ac_res=`eval 'as_val=${'$as_ac_var'}
19050                  $as_echo "$as_val"'`
19051                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19052 $as_echo "$ac_res" >&6; }
19053 as_val=`eval 'as_val=${'$as_ac_var'}
19054                  $as_echo "$as_val"'`
19055    if test "x$as_val" = x""yes; then
19056   cat >>confdefs.h <<_ACEOF
19057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19058 _ACEOF
19059
19060 fi
19061 done
19062
19063
19064
19065
19066
19067
19068
19069 for ac_func in strcspn strdup strspn strstr strtol uname
19070 do
19071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19072 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19073 $as_echo_n "checking for $ac_func... " >&6; }
19074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19075   $as_echo_n "(cached) " >&6
19076 else
19077   cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h.  */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h.  */
19083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19085 #define $ac_func innocuous_$ac_func
19086
19087 /* System header to define __stub macros and hopefully few prototypes,
19088     which can conflict with char $ac_func (); below.
19089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19090     <limits.h> exists even on freestanding compilers.  */
19091
19092 #ifdef __STDC__
19093 # include <limits.h>
19094 #else
19095 # include <assert.h>
19096 #endif
19097
19098 #undef $ac_func
19099
19100 /* Override any GCC internal prototype to avoid an error.
19101    Use char because int might match the return type of a GCC
19102    builtin and then its argument prototype would still apply.  */
19103 #ifdef __cplusplus
19104 extern "C"
19105 #endif
19106 char $ac_func ();
19107 /* The GNU C library defines this for functions which it implements
19108     to always fail with ENOSYS.  Some functions are actually named
19109     something starting with __ and the normal name is an alias.  */
19110 #if defined __stub_$ac_func || defined __stub___$ac_func
19111 choke me
19112 #endif
19113
19114 int
19115 main ()
19116 {
19117 return $ac_func ();
19118   ;
19119   return 0;
19120 }
19121 _ACEOF
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (ac_try="$ac_link"
19124 case "(($ac_try" in
19125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126   *) ac_try_echo=$ac_try;;
19127 esac
19128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19129 $as_echo "$ac_try_echo") >&5
19130   (eval "$ac_link") 2>conftest.er1
19131   ac_status=$?
19132   grep -v '^ *+' conftest.er1 >conftest.err
19133   rm -f conftest.er1
19134   cat conftest.err >&5
19135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); } && {
19137          test -z "$ac_c_werror_flag" ||
19138          test ! -s conftest.err
19139        } && test -s conftest$ac_exeext && {
19140          test "$cross_compiling" = yes ||
19141          $as_test_x conftest$ac_exeext
19142        }; then
19143   eval "$as_ac_var=yes"
19144 else
19145   $as_echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19147
19148         eval "$as_ac_var=no"
19149 fi
19150
19151 rm -rf conftest.dSYM
19152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19153       conftest$ac_exeext conftest.$ac_ext
19154 fi
19155 ac_res=`eval 'as_val=${'$as_ac_var'}
19156                  $as_echo "$as_val"'`
19157                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19158 $as_echo "$ac_res" >&6; }
19159 as_val=`eval 'as_val=${'$as_ac_var'}
19160                  $as_echo "$as_val"'`
19161    if test "x$as_val" = x""yes; then
19162   cat >>confdefs.h <<_ACEOF
19163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19164 _ACEOF
19165
19166 fi
19167 done
19168
19169
19170
19171
19172
19173
19174
19175 for ac_func in getutent_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r
19176 do
19177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19178 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19179 $as_echo_n "checking for $ac_func... " >&6; }
19180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19181   $as_echo_n "(cached) " >&6
19182 else
19183   cat >conftest.$ac_ext <<_ACEOF
19184 /* confdefs.h.  */
19185 _ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h.  */
19189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19191 #define $ac_func innocuous_$ac_func
19192
19193 /* System header to define __stub macros and hopefully few prototypes,
19194     which can conflict with char $ac_func (); below.
19195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19196     <limits.h> exists even on freestanding compilers.  */
19197
19198 #ifdef __STDC__
19199 # include <limits.h>
19200 #else
19201 # include <assert.h>
19202 #endif
19203
19204 #undef $ac_func
19205
19206 /* Override any GCC internal prototype to avoid an error.
19207    Use char because int might match the return type of a GCC
19208    builtin and then its argument prototype would still apply.  */
19209 #ifdef __cplusplus
19210 extern "C"
19211 #endif
19212 char $ac_func ();
19213 /* The GNU C library defines this for functions which it implements
19214     to always fail with ENOSYS.  Some functions are actually named
19215     something starting with __ and the normal name is an alias.  */
19216 #if defined __stub_$ac_func || defined __stub___$ac_func
19217 choke me
19218 #endif
19219
19220 int
19221 main ()
19222 {
19223 return $ac_func ();
19224   ;
19225   return 0;
19226 }
19227 _ACEOF
19228 rm -f conftest.$ac_objext conftest$ac_exeext
19229 if { (ac_try="$ac_link"
19230 case "(($ac_try" in
19231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232   *) ac_try_echo=$ac_try;;
19233 esac
19234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19235 $as_echo "$ac_try_echo") >&5
19236   (eval "$ac_link") 2>conftest.er1
19237   ac_status=$?
19238   grep -v '^ *+' conftest.er1 >conftest.err
19239   rm -f conftest.er1
19240   cat conftest.err >&5
19241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); } && {
19243          test -z "$ac_c_werror_flag" ||
19244          test ! -s conftest.err
19245        } && test -s conftest$ac_exeext && {
19246          test "$cross_compiling" = yes ||
19247          $as_test_x conftest$ac_exeext
19248        }; then
19249   eval "$as_ac_var=yes"
19250 else
19251   $as_echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254         eval "$as_ac_var=no"
19255 fi
19256
19257 rm -rf conftest.dSYM
19258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19259       conftest$ac_exeext conftest.$ac_ext
19260 fi
19261 ac_res=`eval 'as_val=${'$as_ac_var'}
19262                  $as_echo "$as_val"'`
19263                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19264 $as_echo "$ac_res" >&6; }
19265 as_val=`eval 'as_val=${'$as_ac_var'}
19266                  $as_echo "$as_val"'`
19267    if test "x$as_val" = x""yes; then
19268   cat >>confdefs.h <<_ACEOF
19269 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19270 _ACEOF
19271
19272 fi
19273 done
19274
19275
19276
19277
19278 for ac_func in getgrouplist getline getdelim
19279 do
19280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19281 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19282 $as_echo_n "checking for $ac_func... " >&6; }
19283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19284   $as_echo_n "(cached) " >&6
19285 else
19286   cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h.  */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h.  */
19292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19294 #define $ac_func innocuous_$ac_func
19295
19296 /* System header to define __stub macros and hopefully few prototypes,
19297     which can conflict with char $ac_func (); below.
19298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19299     <limits.h> exists even on freestanding compilers.  */
19300
19301 #ifdef __STDC__
19302 # include <limits.h>
19303 #else
19304 # include <assert.h>
19305 #endif
19306
19307 #undef $ac_func
19308
19309 /* Override any GCC internal prototype to avoid an error.
19310    Use char because int might match the return type of a GCC
19311    builtin and then its argument prototype would still apply.  */
19312 #ifdef __cplusplus
19313 extern "C"
19314 #endif
19315 char $ac_func ();
19316 /* The GNU C library defines this for functions which it implements
19317     to always fail with ENOSYS.  Some functions are actually named
19318     something starting with __ and the normal name is an alias.  */
19319 #if defined __stub_$ac_func || defined __stub___$ac_func
19320 choke me
19321 #endif
19322
19323 int
19324 main ()
19325 {
19326 return $ac_func ();
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 rm -f conftest.$ac_objext conftest$ac_exeext
19332 if { (ac_try="$ac_link"
19333 case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19338 $as_echo "$ac_try_echo") >&5
19339   (eval "$ac_link") 2>conftest.er1
19340   ac_status=$?
19341   grep -v '^ *+' conftest.er1 >conftest.err
19342   rm -f conftest.er1
19343   cat conftest.err >&5
19344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); } && {
19346          test -z "$ac_c_werror_flag" ||
19347          test ! -s conftest.err
19348        } && test -s conftest$ac_exeext && {
19349          test "$cross_compiling" = yes ||
19350          $as_test_x conftest$ac_exeext
19351        }; then
19352   eval "$as_ac_var=yes"
19353 else
19354   $as_echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19356
19357         eval "$as_ac_var=no"
19358 fi
19359
19360 rm -rf conftest.dSYM
19361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19362       conftest$ac_exeext conftest.$ac_ext
19363 fi
19364 ac_res=`eval 'as_val=${'$as_ac_var'}
19365                  $as_echo "$as_val"'`
19366                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19367 $as_echo "$ac_res" >&6; }
19368 as_val=`eval 'as_val=${'$as_ac_var'}
19369                  $as_echo "$as_val"'`
19370    if test "x$as_val" = x""yes; then
19371   cat >>confdefs.h <<_ACEOF
19372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19373 _ACEOF
19374
19375 fi
19376 done
19377
19378
19379
19380
19381
19382 for ac_func in inet_ntop inet_pton innetgr ruserok_af
19383 do
19384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19385 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19386 $as_echo_n "checking for $ac_func... " >&6; }
19387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19388   $as_echo_n "(cached) " >&6
19389 else
19390   cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h.  */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h.  */
19396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19398 #define $ac_func innocuous_$ac_func
19399
19400 /* System header to define __stub macros and hopefully few prototypes,
19401     which can conflict with char $ac_func (); below.
19402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19403     <limits.h> exists even on freestanding compilers.  */
19404
19405 #ifdef __STDC__
19406 # include <limits.h>
19407 #else
19408 # include <assert.h>
19409 #endif
19410
19411 #undef $ac_func
19412
19413 /* Override any GCC internal prototype to avoid an error.
19414    Use char because int might match the return type of a GCC
19415    builtin and then its argument prototype would still apply.  */
19416 #ifdef __cplusplus
19417 extern "C"
19418 #endif
19419 char $ac_func ();
19420 /* The GNU C library defines this for functions which it implements
19421     to always fail with ENOSYS.  Some functions are actually named
19422     something starting with __ and the normal name is an alias.  */
19423 #if defined __stub_$ac_func || defined __stub___$ac_func
19424 choke me
19425 #endif
19426
19427 int
19428 main ()
19429 {
19430 return $ac_func ();
19431   ;
19432   return 0;
19433 }
19434 _ACEOF
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436 if { (ac_try="$ac_link"
19437 case "(($ac_try" in
19438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439   *) ac_try_echo=$ac_try;;
19440 esac
19441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19442 $as_echo "$ac_try_echo") >&5
19443   (eval "$ac_link") 2>conftest.er1
19444   ac_status=$?
19445   grep -v '^ *+' conftest.er1 >conftest.err
19446   rm -f conftest.er1
19447   cat conftest.err >&5
19448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); } && {
19450          test -z "$ac_c_werror_flag" ||
19451          test ! -s conftest.err
19452        } && test -s conftest$ac_exeext && {
19453          test "$cross_compiling" = yes ||
19454          $as_test_x conftest$ac_exeext
19455        }; then
19456   eval "$as_ac_var=yes"
19457 else
19458   $as_echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19460
19461         eval "$as_ac_var=no"
19462 fi
19463
19464 rm -rf conftest.dSYM
19465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19466       conftest$ac_exeext conftest.$ac_ext
19467 fi
19468 ac_res=`eval 'as_val=${'$as_ac_var'}
19469                  $as_echo "$as_val"'`
19470                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19471 $as_echo "$ac_res" >&6; }
19472 as_val=`eval 'as_val=${'$as_ac_var'}
19473                  $as_echo "$as_val"'`
19474    if test "x$as_val" = x""yes; then
19475   cat >>confdefs.h <<_ACEOF
19476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19477 _ACEOF
19478
19479 fi
19480 done
19481
19482
19483
19484 for ac_func in unshare
19485 do
19486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19487 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19488 $as_echo_n "checking for $ac_func... " >&6; }
19489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19490   $as_echo_n "(cached) " >&6
19491 else
19492   cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h.  */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h.  */
19498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19500 #define $ac_func innocuous_$ac_func
19501
19502 /* System header to define __stub macros and hopefully few prototypes,
19503     which can conflict with char $ac_func (); below.
19504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19505     <limits.h> exists even on freestanding compilers.  */
19506
19507 #ifdef __STDC__
19508 # include <limits.h>
19509 #else
19510 # include <assert.h>
19511 #endif
19512
19513 #undef $ac_func
19514
19515 /* Override any GCC internal prototype to avoid an error.
19516    Use char because int might match the return type of a GCC
19517    builtin and then its argument prototype would still apply.  */
19518 #ifdef __cplusplus
19519 extern "C"
19520 #endif
19521 char $ac_func ();
19522 /* The GNU C library defines this for functions which it implements
19523     to always fail with ENOSYS.  Some functions are actually named
19524     something starting with __ and the normal name is an alias.  */
19525 #if defined __stub_$ac_func || defined __stub___$ac_func
19526 choke me
19527 #endif
19528
19529 int
19530 main ()
19531 {
19532 return $ac_func ();
19533   ;
19534   return 0;
19535 }
19536 _ACEOF
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541   *) ac_try_echo=$ac_try;;
19542 esac
19543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19544 $as_echo "$ac_try_echo") >&5
19545   (eval "$ac_link") 2>conftest.er1
19546   ac_status=$?
19547   grep -v '^ *+' conftest.er1 >conftest.err
19548   rm -f conftest.er1
19549   cat conftest.err >&5
19550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); } && {
19552          test -z "$ac_c_werror_flag" ||
19553          test ! -s conftest.err
19554        } && test -s conftest$ac_exeext && {
19555          test "$cross_compiling" = yes ||
19556          $as_test_x conftest$ac_exeext
19557        }; then
19558   eval "$as_ac_var=yes"
19559 else
19560   $as_echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563         eval "$as_ac_var=no"
19564 fi
19565
19566 rm -rf conftest.dSYM
19567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19568       conftest$ac_exeext conftest.$ac_ext
19569 fi
19570 ac_res=`eval 'as_val=${'$as_ac_var'}
19571                  $as_echo "$as_val"'`
19572                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19573 $as_echo "$ac_res" >&6; }
19574 as_val=`eval 'as_val=${'$as_ac_var'}
19575                  $as_echo "$as_val"'`
19576    if test "x$as_val" = x""yes; then
19577   cat >>confdefs.h <<_ACEOF
19578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19579 _ACEOF
19580  UNSHARE=yes
19581 else
19582   UNSHARE=no
19583 fi
19584 done
19585
19586  if test "$UNSHARE" = yes; then
19587   HAVE_UNSHARE_TRUE=
19588   HAVE_UNSHARE_FALSE='#'
19589 else
19590   HAVE_UNSHARE_TRUE='#'
19591   HAVE_UNSHARE_FALSE=
19592 fi
19593
19594
19595 # Check whether --enable-regenerate-docu was given.
19596 if test "${enable_regenerate_docu+set}" = set; then
19597   enableval=$enable_regenerate_docu; enable_docu=$enableval
19598 else
19599   enable_docu=yes
19600 fi
19601
19602 # Extract the first word of "xsltproc", so it can be a program name with args.
19603 set dummy xsltproc; ac_word=$2
19604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19605 $as_echo_n "checking for $ac_word... " >&6; }
19606 if test "${ac_cv_path_XSLTPROC+set}" = set; then
19607   $as_echo_n "(cached) " >&6
19608 else
19609   case $XSLTPROC in
19610   [\\/]* | ?:[\\/]*)
19611   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19612   ;;
19613   *)
19614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19615 for as_dir in $PATH
19616 do
19617   IFS=$as_save_IFS
19618   test -z "$as_dir" && as_dir=.
19619   for ac_exec_ext in '' $ac_executable_extensions; do
19620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19621     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19622     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19623     break 2
19624   fi
19625 done
19626 done
19627 IFS=$as_save_IFS
19628
19629   ;;
19630 esac
19631 fi
19632 XSLTPROC=$ac_cv_path_XSLTPROC
19633 if test -n "$XSLTPROC"; then
19634   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
19635 $as_echo "$XSLTPROC" >&6; }
19636 else
19637   { $as_echo "$as_me:$LINENO: result: no" >&5
19638 $as_echo "no" >&6; }
19639 fi
19640
19641
19642 if test -z "$XSLTPROC"; then
19643      enable_docu=no
19644 fi
19645 # Extract the first word of "xmllint", so it can be a program name with args.
19646 set dummy xmllint; ac_word=$2
19647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19648 $as_echo_n "checking for $ac_word... " >&6; }
19649 if test "${ac_cv_path_XMLLINT+set}" = set; then
19650   $as_echo_n "(cached) " >&6
19651 else
19652   case $XMLLINT in
19653   [\\/]* | ?:[\\/]*)
19654   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
19655   ;;
19656   *)
19657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19658 for as_dir in $PATH
19659 do
19660   IFS=$as_save_IFS
19661   test -z "$as_dir" && as_dir=.
19662   for ac_exec_ext in '' $ac_executable_extensions; do
19663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19664     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
19665     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19666     break 2
19667   fi
19668 done
19669 done
19670 IFS=$as_save_IFS
19671
19672   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/bin/true"
19673   ;;
19674 esac
19675 fi
19676 XMLLINT=$ac_cv_path_XMLLINT
19677 if test -n "$XMLLINT"; then
19678   { $as_echo "$as_me:$LINENO: result: $XMLLINT" >&5
19679 $as_echo "$XMLLINT" >&6; }
19680 else
19681   { $as_echo "$as_me:$LINENO: result: no" >&5
19682 $as_echo "no" >&6; }
19683 fi
19684
19685
19686
19687   # check for the presence of the XML catalog
19688
19689 # Check whether --with-xml-catalog was given.
19690 if test "${with_xml_catalog+set}" = set; then
19691   withval=$with_xml_catalog;
19692 else
19693   with_xml_catalog=/etc/xml/catalog
19694 fi
19695
19696   jh_found_xmlcatalog=true
19697   XML_CATALOG_FILE="$with_xml_catalog"
19698
19699   { $as_echo "$as_me:$LINENO: checking for XML catalog ($XML_CATALOG_FILE)" >&5
19700 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
19701   if test -f "$XML_CATALOG_FILE"; then
19702     { $as_echo "$as_me:$LINENO: result: found" >&5
19703 $as_echo "found" >&6; }
19704   else
19705     jh_found_xmlcatalog=false
19706     { $as_echo "$as_me:$LINENO: result: not found" >&5
19707 $as_echo "not found" >&6; }
19708   fi
19709
19710   # check for the xmlcatalog program
19711   # Extract the first word of "xmlcatalog", so it can be a program name with args.
19712 set dummy xmlcatalog; ac_word=$2
19713 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19714 $as_echo_n "checking for $ac_word... " >&6; }
19715 if test "${ac_cv_path_XMLCATALOG+set}" = set; then
19716   $as_echo_n "(cached) " >&6
19717 else
19718   case $XMLCATALOG in
19719   [\\/]* | ?:[\\/]*)
19720   ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
19721   ;;
19722   *)
19723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19724 for as_dir in $PATH
19725 do
19726   IFS=$as_save_IFS
19727   test -z "$as_dir" && as_dir=.
19728   for ac_exec_ext in '' $ac_executable_extensions; do
19729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19730     ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
19731     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19732     break 2
19733   fi
19734 done
19735 done
19736 IFS=$as_save_IFS
19737
19738   test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
19739   ;;
19740 esac
19741 fi
19742 XMLCATALOG=$ac_cv_path_XMLCATALOG
19743 if test -n "$XMLCATALOG"; then
19744   { $as_echo "$as_me:$LINENO: result: $XMLCATALOG" >&5
19745 $as_echo "$XMLCATALOG" >&6; }
19746 else
19747   { $as_echo "$as_me:$LINENO: result: no" >&5
19748 $as_echo "no" >&6; }
19749 fi
19750
19751
19752   if test "x$XMLCATALOG" = xno; then
19753     jh_found_xmlcatalog=false
19754   fi
19755
19756   if $jh_found_xmlcatalog; then
19757     :
19758   else
19759     :
19760   fi
19761
19762
19763     { $as_echo "$as_me:$LINENO: checking for DocBook XML DTD V4.4 in XML catalog" >&5
19764 $as_echo_n "checking for DocBook XML DTD V4.4 in XML catalog... " >&6; }
19765   if $jh_found_xmlcatalog && \
19766      { ($as_echo "$as_me:$LINENO: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.4//EN\" >&2") >&5
19767   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.4//EN" >&2) 2>&5
19768   ac_status=$?
19769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); }; then
19771     { $as_echo "$as_me:$LINENO: result: found" >&5
19772 $as_echo "found" >&6; }
19773       else
19774     { $as_echo "$as_me:$LINENO: result: not found" >&5
19775 $as_echo "not found" >&6; }
19776     enable_docu=no
19777   fi
19778
19779
19780     { $as_echo "$as_me:$LINENO: checking for DocBook XSL Stylesheets in XML catalog" >&5
19781 $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; }
19782   if $jh_found_xmlcatalog && \
19783      { ($as_echo "$as_me:$LINENO: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2") >&5
19784   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
19785   ac_status=$?
19786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); }; then
19788     { $as_echo "$as_me:$LINENO: result: found" >&5
19789 $as_echo "found" >&6; }
19790       else
19791     { $as_echo "$as_me:$LINENO: result: not found" >&5
19792 $as_echo "not found" >&6; }
19793     enable_docu=no
19794   fi
19795
19796
19797 # Extract the first word of "w3m", so it can be a program name with args.
19798 set dummy w3m; ac_word=$2
19799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19800 $as_echo_n "checking for $ac_word... " >&6; }
19801 if test "${ac_cv_path_BROWSER+set}" = set; then
19802   $as_echo_n "(cached) " >&6
19803 else
19804   case $BROWSER in
19805   [\\/]* | ?:[\\/]*)
19806   ac_cv_path_BROWSER="$BROWSER" # Let the user override the test with a path.
19807   ;;
19808   *)
19809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19810 for as_dir in $PATH
19811 do
19812   IFS=$as_save_IFS
19813   test -z "$as_dir" && as_dir=.
19814   for ac_exec_ext in '' $ac_executable_extensions; do
19815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19816     ac_cv_path_BROWSER="$as_dir/$ac_word$ac_exec_ext"
19817     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19818     break 2
19819   fi
19820 done
19821 done
19822 IFS=$as_save_IFS
19823
19824   ;;
19825 esac
19826 fi
19827 BROWSER=$ac_cv_path_BROWSER
19828 if test -n "$BROWSER"; then
19829   { $as_echo "$as_me:$LINENO: result: $BROWSER" >&5
19830 $as_echo "$BROWSER" >&6; }
19831 else
19832   { $as_echo "$as_me:$LINENO: result: no" >&5
19833 $as_echo "no" >&6; }
19834 fi
19835
19836
19837 if test ! -z "$BROWSER"; then
19838      BROWSER="$BROWSER -T text/html -dump"
19839 else
19840      enable_docu=no
19841 fi
19842
19843 # Extract the first word of "fop", so it can be a program name with args.
19844 set dummy fop; ac_word=$2
19845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19846 $as_echo_n "checking for $ac_word... " >&6; }
19847 if test "${ac_cv_path_FO2PDF+set}" = set; then
19848   $as_echo_n "(cached) " >&6
19849 else
19850   case $FO2PDF in
19851   [\\/]* | ?:[\\/]*)
19852   ac_cv_path_FO2PDF="$FO2PDF" # Let the user override the test with a path.
19853   ;;
19854   *)
19855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19856 for as_dir in $PATH
19857 do
19858   IFS=$as_save_IFS
19859   test -z "$as_dir" && as_dir=.
19860   for ac_exec_ext in '' $ac_executable_extensions; do
19861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19862     ac_cv_path_FO2PDF="$as_dir/$ac_word$ac_exec_ext"
19863     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19864     break 2
19865   fi
19866 done
19867 done
19868 IFS=$as_save_IFS
19869
19870   ;;
19871 esac
19872 fi
19873 FO2PDF=$ac_cv_path_FO2PDF
19874 if test -n "$FO2PDF"; then
19875   { $as_echo "$as_me:$LINENO: result: $FO2PDF" >&5
19876 $as_echo "$FO2PDF" >&6; }
19877 else
19878   { $as_echo "$as_me:$LINENO: result: no" >&5
19879 $as_echo "no" >&6; }
19880 fi
19881
19882
19883
19884  if test x$enable_docu != xno; then
19885   ENABLE_REGENERATE_MAN_TRUE=
19886   ENABLE_REGENERATE_MAN_FALSE='#'
19887 else
19888   ENABLE_REGENERATE_MAN_TRUE='#'
19889   ENABLE_REGENERATE_MAN_FALSE=
19890 fi
19891
19892  if test ! -z "$FO2PDF"; then
19893   ENABLE_GENERATE_PDF_TRUE=
19894   ENABLE_GENERATE_PDF_FALSE='#'
19895 else
19896   ENABLE_GENERATE_PDF_TRUE='#'
19897   ENABLE_GENERATE_PDF_FALSE=
19898 fi
19899
19900
19901
19902
19903
19904   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
19905 $as_echo_n "checking whether NLS is requested... " >&6; }
19906     # Check whether --enable-nls was given.
19907 if test "${enable_nls+set}" = set; then
19908   enableval=$enable_nls; USE_NLS=$enableval
19909 else
19910   USE_NLS=yes
19911 fi
19912
19913   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
19914 $as_echo "$USE_NLS" >&6; }
19915
19916
19917
19918
19919       GETTEXT_MACRO_VERSION=0.17
19920
19921
19922
19923
19924 # Prepare PATH_SEPARATOR.
19925 # The user is always right.
19926 if test "${PATH_SEPARATOR+set}" != set; then
19927   echo "#! /bin/sh" >conf$$.sh
19928   echo  "exit 0"   >>conf$$.sh
19929   chmod +x conf$$.sh
19930   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19931     PATH_SEPARATOR=';'
19932   else
19933     PATH_SEPARATOR=:
19934   fi
19935   rm -f conf$$.sh
19936 fi
19937
19938 # Find out how to test for executable files. Don't use a zero-byte file,
19939 # as systems may use methods other than mode bits to determine executability.
19940 cat >conf$$.file <<_ASEOF
19941 #! /bin/sh
19942 exit 0
19943 _ASEOF
19944 chmod +x conf$$.file
19945 if test -x conf$$.file >/dev/null 2>&1; then
19946   ac_executable_p="test -x"
19947 else
19948   ac_executable_p="test -f"
19949 fi
19950 rm -f conf$$.file
19951
19952 # Extract the first word of "msgfmt", so it can be a program name with args.
19953 set dummy msgfmt; ac_word=$2
19954 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19955 $as_echo_n "checking for $ac_word... " >&6; }
19956 if test "${ac_cv_path_MSGFMT+set}" = set; then
19957   $as_echo_n "(cached) " >&6
19958 else
19959   case "$MSGFMT" in
19960   [\\/]* | ?:[\\/]*)
19961     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19962     ;;
19963   *)
19964     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
19965     for ac_dir in $PATH; do
19966       IFS="$ac_save_IFS"
19967       test -z "$ac_dir" && ac_dir=.
19968       for ac_exec_ext in '' $ac_executable_extensions; do
19969         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19970           echo "$as_me: trying $ac_dir/$ac_word..." >&5
19971           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
19972      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
19973             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
19974             break 2
19975           fi
19976         fi
19977       done
19978     done
19979     IFS="$ac_save_IFS"
19980   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
19981     ;;
19982 esac
19983 fi
19984 MSGFMT="$ac_cv_path_MSGFMT"
19985 if test "$MSGFMT" != ":"; then
19986   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
19987 $as_echo "$MSGFMT" >&6; }
19988 else
19989   { $as_echo "$as_me:$LINENO: result: no" >&5
19990 $as_echo "no" >&6; }
19991 fi
19992
19993   # Extract the first word of "gmsgfmt", so it can be a program name with args.
19994 set dummy gmsgfmt; ac_word=$2
19995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19996 $as_echo_n "checking for $ac_word... " >&6; }
19997 if test "${ac_cv_path_GMSGFMT+set}" = set; then
19998   $as_echo_n "(cached) " >&6
19999 else
20000   case $GMSGFMT in
20001   [\\/]* | ?:[\\/]*)
20002   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20003   ;;
20004   *)
20005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20006 for as_dir in $PATH
20007 do
20008   IFS=$as_save_IFS
20009   test -z "$as_dir" && as_dir=.
20010   for ac_exec_ext in '' $ac_executable_extensions; do
20011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20012     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20013     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20014     break 2
20015   fi
20016 done
20017 done
20018 IFS=$as_save_IFS
20019
20020   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20021   ;;
20022 esac
20023 fi
20024 GMSGFMT=$ac_cv_path_GMSGFMT
20025 if test -n "$GMSGFMT"; then
20026   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20027 $as_echo "$GMSGFMT" >&6; }
20028 else
20029   { $as_echo "$as_me:$LINENO: result: no" >&5
20030 $as_echo "no" >&6; }
20031 fi
20032
20033
20034
20035     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20036     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
20037     *) MSGFMT_015=$MSGFMT ;;
20038   esac
20039
20040   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20041     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
20042     *) GMSGFMT_015=$GMSGFMT ;;
20043   esac
20044
20045
20046
20047 # Prepare PATH_SEPARATOR.
20048 # The user is always right.
20049 if test "${PATH_SEPARATOR+set}" != set; then
20050   echo "#! /bin/sh" >conf$$.sh
20051   echo  "exit 0"   >>conf$$.sh
20052   chmod +x conf$$.sh
20053   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20054     PATH_SEPARATOR=';'
20055   else
20056     PATH_SEPARATOR=:
20057   fi
20058   rm -f conf$$.sh
20059 fi
20060
20061 # Find out how to test for executable files. Don't use a zero-byte file,
20062 # as systems may use methods other than mode bits to determine executability.
20063 cat >conf$$.file <<_ASEOF
20064 #! /bin/sh
20065 exit 0
20066 _ASEOF
20067 chmod +x conf$$.file
20068 if test -x conf$$.file >/dev/null 2>&1; then
20069   ac_executable_p="test -x"
20070 else
20071   ac_executable_p="test -f"
20072 fi
20073 rm -f conf$$.file
20074
20075 # Extract the first word of "xgettext", so it can be a program name with args.
20076 set dummy xgettext; ac_word=$2
20077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20078 $as_echo_n "checking for $ac_word... " >&6; }
20079 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20080   $as_echo_n "(cached) " >&6
20081 else
20082   case "$XGETTEXT" in
20083   [\\/]* | ?:[\\/]*)
20084     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20085     ;;
20086   *)
20087     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20088     for ac_dir in $PATH; do
20089       IFS="$ac_save_IFS"
20090       test -z "$ac_dir" && ac_dir=.
20091       for ac_exec_ext in '' $ac_executable_extensions; do
20092         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20093           echo "$as_me: trying $ac_dir/$ac_word..." >&5
20094           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
20095      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20096             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20097             break 2
20098           fi
20099         fi
20100       done
20101     done
20102     IFS="$ac_save_IFS"
20103   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20104     ;;
20105 esac
20106 fi
20107 XGETTEXT="$ac_cv_path_XGETTEXT"
20108 if test "$XGETTEXT" != ":"; then
20109   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20110 $as_echo "$XGETTEXT" >&6; }
20111 else
20112   { $as_echo "$as_me:$LINENO: result: no" >&5
20113 $as_echo "no" >&6; }
20114 fi
20115
20116     rm -f messages.po
20117
20118     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20119     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
20120     *) XGETTEXT_015=$XGETTEXT ;;
20121   esac
20122
20123
20124
20125 # Prepare PATH_SEPARATOR.
20126 # The user is always right.
20127 if test "${PATH_SEPARATOR+set}" != set; then
20128   echo "#! /bin/sh" >conf$$.sh
20129   echo  "exit 0"   >>conf$$.sh
20130   chmod +x conf$$.sh
20131   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20132     PATH_SEPARATOR=';'
20133   else
20134     PATH_SEPARATOR=:
20135   fi
20136   rm -f conf$$.sh
20137 fi
20138
20139 # Find out how to test for executable files. Don't use a zero-byte file,
20140 # as systems may use methods other than mode bits to determine executability.
20141 cat >conf$$.file <<_ASEOF
20142 #! /bin/sh
20143 exit 0
20144 _ASEOF
20145 chmod +x conf$$.file
20146 if test -x conf$$.file >/dev/null 2>&1; then
20147   ac_executable_p="test -x"
20148 else
20149   ac_executable_p="test -f"
20150 fi
20151 rm -f conf$$.file
20152
20153 # Extract the first word of "msgmerge", so it can be a program name with args.
20154 set dummy msgmerge; ac_word=$2
20155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20156 $as_echo_n "checking for $ac_word... " >&6; }
20157 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20158   $as_echo_n "(cached) " >&6
20159 else
20160   case "$MSGMERGE" in
20161   [\\/]* | ?:[\\/]*)
20162     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20163     ;;
20164   *)
20165     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20166     for ac_dir in $PATH; do
20167       IFS="$ac_save_IFS"
20168       test -z "$ac_dir" && ac_dir=.
20169       for ac_exec_ext in '' $ac_executable_extensions; do
20170         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20171           echo "$as_me: trying $ac_dir/$ac_word..." >&5
20172           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
20173             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20174             break 2
20175           fi
20176         fi
20177       done
20178     done
20179     IFS="$ac_save_IFS"
20180   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20181     ;;
20182 esac
20183 fi
20184 MSGMERGE="$ac_cv_path_MSGMERGE"
20185 if test "$MSGMERGE" != ":"; then
20186   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20187 $as_echo "$MSGMERGE" >&6; }
20188 else
20189   { $as_echo "$as_me:$LINENO: result: no" >&5
20190 $as_echo "no" >&6; }
20191 fi
20192
20193
20194         test -n "$localedir" || localedir='${datadir}/locale'
20195
20196
20197     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
20198
20199
20200   ac_config_commands="$ac_config_commands po-directories"
20201
20202
20203
20204       if test "X$prefix" = "XNONE"; then
20205     acl_final_prefix="$ac_default_prefix"
20206   else
20207     acl_final_prefix="$prefix"
20208   fi
20209   if test "X$exec_prefix" = "XNONE"; then
20210     acl_final_exec_prefix='${prefix}'
20211   else
20212     acl_final_exec_prefix="$exec_prefix"
20213   fi
20214   acl_save_prefix="$prefix"
20215   prefix="$acl_final_prefix"
20216   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20217   prefix="$acl_save_prefix"
20218
20219
20220 # Check whether --with-gnu-ld was given.
20221 if test "${with_gnu_ld+set}" = set; then
20222   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20223 else
20224   with_gnu_ld=no
20225 fi
20226
20227 # Prepare PATH_SEPARATOR.
20228 # The user is always right.
20229 if test "${PATH_SEPARATOR+set}" != set; then
20230   echo "#! /bin/sh" >conf$$.sh
20231   echo  "exit 0"   >>conf$$.sh
20232   chmod +x conf$$.sh
20233   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20234     PATH_SEPARATOR=';'
20235   else
20236     PATH_SEPARATOR=:
20237   fi
20238   rm -f conf$$.sh
20239 fi
20240 ac_prog=ld
20241 if test "$GCC" = yes; then
20242   # Check if gcc -print-prog-name=ld gives a path.
20243   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
20244 $as_echo_n "checking for ld used by GCC... " >&6; }
20245   case $host in
20246   *-*-mingw*)
20247     # gcc leaves a trailing carriage return which upsets mingw
20248     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20249   *)
20250     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20251   esac
20252   case $ac_prog in
20253     # Accept absolute paths.
20254     [\\/]* | [A-Za-z]:[\\/]*)
20255       re_direlt='/[^/][^/]*/\.\./'
20256       # Canonicalize the path of ld
20257       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20258       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20259         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20260       done
20261       test -z "$LD" && LD="$ac_prog"
20262       ;;
20263   "")
20264     # If it fails, then pretend we aren't using GCC.
20265     ac_prog=ld
20266     ;;
20267   *)
20268     # If it is relative, then search for the first ld in PATH.
20269     with_gnu_ld=unknown
20270     ;;
20271   esac
20272 elif test "$with_gnu_ld" = yes; then
20273   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
20274 $as_echo_n "checking for GNU ld... " >&6; }
20275 else
20276   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20277 $as_echo_n "checking for non-GNU ld... " >&6; }
20278 fi
20279 if test "${acl_cv_path_LD+set}" = set; then
20280   $as_echo_n "(cached) " >&6
20281 else
20282   if test -z "$LD"; then
20283   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20284   for ac_dir in $PATH; do
20285     test -z "$ac_dir" && ac_dir=.
20286     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20287       acl_cv_path_LD="$ac_dir/$ac_prog"
20288       # Check to see if the program is GNU ld.  I'd rather use --version,
20289       # but apparently some GNU ld's only accept -v.
20290       # Break only if it was the GNU/non-GNU ld that we prefer.
20291       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
20292       *GNU* | *'with BFD'*)
20293         test "$with_gnu_ld" != no && break ;;
20294       *)
20295         test "$with_gnu_ld" != yes && break ;;
20296       esac
20297     fi
20298   done
20299   IFS="$ac_save_ifs"
20300 else
20301   acl_cv_path_LD="$LD" # Let the user override the test with a path.
20302 fi
20303 fi
20304
20305 LD="$acl_cv_path_LD"
20306 if test -n "$LD"; then
20307   { $as_echo "$as_me:$LINENO: result: $LD" >&5
20308 $as_echo "$LD" >&6; }
20309 else
20310   { $as_echo "$as_me:$LINENO: result: no" >&5
20311 $as_echo "no" >&6; }
20312 fi
20313 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20314 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20315    { (exit 1); exit 1; }; }
20316 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20317 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20318 if test "${acl_cv_prog_gnu_ld+set}" = set; then
20319   $as_echo_n "(cached) " >&6
20320 else
20321   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20322 case `$LD -v 2>&1 </dev/null` in
20323 *GNU* | *'with BFD'*)
20324   acl_cv_prog_gnu_ld=yes ;;
20325 *)
20326   acl_cv_prog_gnu_ld=no ;;
20327 esac
20328 fi
20329 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20330 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20331 with_gnu_ld=$acl_cv_prog_gnu_ld
20332
20333
20334
20335
20336                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
20337 $as_echo_n "checking for shared library run path origin... " >&6; }
20338 if test "${acl_cv_rpath+set}" = set; then
20339   $as_echo_n "(cached) " >&6
20340 else
20341
20342     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20343     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20344     . ./conftest.sh
20345     rm -f ./conftest.sh
20346     acl_cv_rpath=done
20347
20348 fi
20349 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
20350 $as_echo "$acl_cv_rpath" >&6; }
20351   wl="$acl_cv_wl"
20352   acl_libext="$acl_cv_libext"
20353   acl_shlibext="$acl_cv_shlibext"
20354   acl_libname_spec="$acl_cv_libname_spec"
20355   acl_library_names_spec="$acl_cv_library_names_spec"
20356   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20357   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20358   acl_hardcode_direct="$acl_cv_hardcode_direct"
20359   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20360     # Check whether --enable-rpath was given.
20361 if test "${enable_rpath+set}" = set; then
20362   enableval=$enable_rpath; :
20363 else
20364   enable_rpath=yes
20365 fi
20366
20367
20368
20369                   acl_libdirstem=lib
20370   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20371   if test -n "$searchpath"; then
20372     acl_save_IFS="${IFS=        }"; IFS=":"
20373     for searchdir in $searchpath; do
20374       if test -d "$searchdir"; then
20375         case "$searchdir" in
20376           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20377           *) searchdir=`cd "$searchdir" && pwd`
20378              case "$searchdir" in
20379                */lib64 ) acl_libdirstem=lib64 ;;
20380              esac ;;
20381         esac
20382       fi
20383     done
20384     IFS="$acl_save_IFS"
20385   fi
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395     use_additional=yes
20396
20397   acl_save_prefix="$prefix"
20398   prefix="$acl_final_prefix"
20399   acl_save_exec_prefix="$exec_prefix"
20400   exec_prefix="$acl_final_exec_prefix"
20401
20402     eval additional_includedir=\"$includedir\"
20403     eval additional_libdir=\"$libdir\"
20404
20405   exec_prefix="$acl_save_exec_prefix"
20406   prefix="$acl_save_prefix"
20407
20408
20409 # Check whether --with-libiconv-prefix was given.
20410 if test "${with_libiconv_prefix+set}" = set; then
20411   withval=$with_libiconv_prefix;
20412     if test "X$withval" = "Xno"; then
20413       use_additional=no
20414     else
20415       if test "X$withval" = "X"; then
20416
20417   acl_save_prefix="$prefix"
20418   prefix="$acl_final_prefix"
20419   acl_save_exec_prefix="$exec_prefix"
20420   exec_prefix="$acl_final_exec_prefix"
20421
20422           eval additional_includedir=\"$includedir\"
20423           eval additional_libdir=\"$libdir\"
20424
20425   exec_prefix="$acl_save_exec_prefix"
20426   prefix="$acl_save_prefix"
20427
20428       else
20429         additional_includedir="$withval/include"
20430         additional_libdir="$withval/$acl_libdirstem"
20431       fi
20432     fi
20433
20434 fi
20435
20436       LIBICONV=
20437   LTLIBICONV=
20438   INCICONV=
20439   LIBICONV_PREFIX=
20440   rpathdirs=
20441   ltrpathdirs=
20442   names_already_handled=
20443   names_next_round='iconv '
20444   while test -n "$names_next_round"; do
20445     names_this_round="$names_next_round"
20446     names_next_round=
20447     for name in $names_this_round; do
20448       already_handled=
20449       for n in $names_already_handled; do
20450         if test "$n" = "$name"; then
20451           already_handled=yes
20452           break
20453         fi
20454       done
20455       if test -z "$already_handled"; then
20456         names_already_handled="$names_already_handled $name"
20457                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20458         eval value=\"\$HAVE_LIB$uppername\"
20459         if test -n "$value"; then
20460           if test "$value" = yes; then
20461             eval value=\"\$LIB$uppername\"
20462             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20463             eval value=\"\$LTLIB$uppername\"
20464             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20465           else
20466                                     :
20467           fi
20468         else
20469                               found_dir=
20470           found_la=
20471           found_so=
20472           found_a=
20473           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
20474           if test -n "$acl_shlibext"; then
20475             shrext=".$acl_shlibext"             # typically: shrext=.so
20476           else
20477             shrext=
20478           fi
20479           if test $use_additional = yes; then
20480             dir="$additional_libdir"
20481                                     if test -n "$acl_shlibext"; then
20482               if test -f "$dir/$libname$shrext"; then
20483                 found_dir="$dir"
20484                 found_so="$dir/$libname$shrext"
20485               else
20486                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20487                   ver=`(cd "$dir" && \
20488                         for f in "$libname$shrext".*; do echo "$f"; done \
20489                         | sed -e "s,^$libname$shrext\\\\.,," \
20490                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20491                         | sed 1q ) 2>/dev/null`
20492                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20493                     found_dir="$dir"
20494                     found_so="$dir/$libname$shrext.$ver"
20495                   fi
20496                 else
20497                   eval library_names=\"$acl_library_names_spec\"
20498                   for f in $library_names; do
20499                     if test -f "$dir/$f"; then
20500                       found_dir="$dir"
20501                       found_so="$dir/$f"
20502                       break
20503                     fi
20504                   done
20505                 fi
20506               fi
20507             fi
20508                         if test "X$found_dir" = "X"; then
20509               if test -f "$dir/$libname.$acl_libext"; then
20510                 found_dir="$dir"
20511                 found_a="$dir/$libname.$acl_libext"
20512               fi
20513             fi
20514             if test "X$found_dir" != "X"; then
20515               if test -f "$dir/$libname.la"; then
20516                 found_la="$dir/$libname.la"
20517               fi
20518             fi
20519           fi
20520           if test "X$found_dir" = "X"; then
20521             for x in $LDFLAGS $LTLIBICONV; do
20522
20523   acl_save_prefix="$prefix"
20524   prefix="$acl_final_prefix"
20525   acl_save_exec_prefix="$exec_prefix"
20526   exec_prefix="$acl_final_exec_prefix"
20527   eval x=\"$x\"
20528   exec_prefix="$acl_save_exec_prefix"
20529   prefix="$acl_save_prefix"
20530
20531               case "$x" in
20532                 -L*)
20533                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20534                                     if test -n "$acl_shlibext"; then
20535                     if test -f "$dir/$libname$shrext"; then
20536                       found_dir="$dir"
20537                       found_so="$dir/$libname$shrext"
20538                     else
20539                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20540                         ver=`(cd "$dir" && \
20541                               for f in "$libname$shrext".*; do echo "$f"; done \
20542                               | sed -e "s,^$libname$shrext\\\\.,," \
20543                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20544                               | sed 1q ) 2>/dev/null`
20545                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20546                           found_dir="$dir"
20547                           found_so="$dir/$libname$shrext.$ver"
20548                         fi
20549                       else
20550                         eval library_names=\"$acl_library_names_spec\"
20551                         for f in $library_names; do
20552                           if test -f "$dir/$f"; then
20553                             found_dir="$dir"
20554                             found_so="$dir/$f"
20555                             break
20556                           fi
20557                         done
20558                       fi
20559                     fi
20560                   fi
20561                                     if test "X$found_dir" = "X"; then
20562                     if test -f "$dir/$libname.$acl_libext"; then
20563                       found_dir="$dir"
20564                       found_a="$dir/$libname.$acl_libext"
20565                     fi
20566                   fi
20567                   if test "X$found_dir" != "X"; then
20568                     if test -f "$dir/$libname.la"; then
20569                       found_la="$dir/$libname.la"
20570                     fi
20571                   fi
20572                   ;;
20573               esac
20574               if test "X$found_dir" != "X"; then
20575                 break
20576               fi
20577             done
20578           fi
20579           if test "X$found_dir" != "X"; then
20580                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20581             if test "X$found_so" != "X"; then
20582                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
20583                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20584               else
20585                                                                                 haveit=
20586                 for x in $ltrpathdirs; do
20587                   if test "X$x" = "X$found_dir"; then
20588                     haveit=yes
20589                     break
20590                   fi
20591                 done
20592                 if test -z "$haveit"; then
20593                   ltrpathdirs="$ltrpathdirs $found_dir"
20594                 fi
20595                                 if test "$acl_hardcode_direct" = yes; then
20596                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20597                 else
20598                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20599                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20600                                                             haveit=
20601                     for x in $rpathdirs; do
20602                       if test "X$x" = "X$found_dir"; then
20603                         haveit=yes
20604                         break
20605                       fi
20606                     done
20607                     if test -z "$haveit"; then
20608                       rpathdirs="$rpathdirs $found_dir"
20609                     fi
20610                   else
20611                                                                                 haveit=
20612                     for x in $LDFLAGS $LIBICONV; do
20613
20614   acl_save_prefix="$prefix"
20615   prefix="$acl_final_prefix"
20616   acl_save_exec_prefix="$exec_prefix"
20617   exec_prefix="$acl_final_exec_prefix"
20618   eval x=\"$x\"
20619   exec_prefix="$acl_save_exec_prefix"
20620   prefix="$acl_save_prefix"
20621
20622                       if test "X$x" = "X-L$found_dir"; then
20623                         haveit=yes
20624                         break
20625                       fi
20626                     done
20627                     if test -z "$haveit"; then
20628                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20629                     fi
20630                     if test "$acl_hardcode_minus_L" != no; then
20631                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20632                     else
20633                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20634                     fi
20635                   fi
20636                 fi
20637               fi
20638             else
20639               if test "X$found_a" != "X"; then
20640                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20641               else
20642                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20643               fi
20644             fi
20645                         additional_includedir=
20646             case "$found_dir" in
20647               */$acl_libdirstem | */$acl_libdirstem/)
20648                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20649                 LIBICONV_PREFIX="$basedir"
20650                 additional_includedir="$basedir/include"
20651                 ;;
20652             esac
20653             if test "X$additional_includedir" != "X"; then
20654                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20655                 haveit=
20656                 if test "X$additional_includedir" = "X/usr/local/include"; then
20657                   if test -n "$GCC"; then
20658                     case $host_os in
20659                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20660                     esac
20661                   fi
20662                 fi
20663                 if test -z "$haveit"; then
20664                   for x in $CPPFLAGS $INCICONV; do
20665
20666   acl_save_prefix="$prefix"
20667   prefix="$acl_final_prefix"
20668   acl_save_exec_prefix="$exec_prefix"
20669   exec_prefix="$acl_final_exec_prefix"
20670   eval x=\"$x\"
20671   exec_prefix="$acl_save_exec_prefix"
20672   prefix="$acl_save_prefix"
20673
20674                     if test "X$x" = "X-I$additional_includedir"; then
20675                       haveit=yes
20676                       break
20677                     fi
20678                   done
20679                   if test -z "$haveit"; then
20680                     if test -d "$additional_includedir"; then
20681                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20682                     fi
20683                   fi
20684                 fi
20685               fi
20686             fi
20687                         if test -n "$found_la"; then
20688                                                         save_libdir="$libdir"
20689               case "$found_la" in
20690                 */* | *\\*) . "$found_la" ;;
20691                 *) . "./$found_la" ;;
20692               esac
20693               libdir="$save_libdir"
20694                             for dep in $dependency_libs; do
20695                 case "$dep" in
20696                   -L*)
20697                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20698                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
20699                       haveit=
20700                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
20701                         if test -n "$GCC"; then
20702                           case $host_os in
20703                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20704                           esac
20705                         fi
20706                       fi
20707                       if test -z "$haveit"; then
20708                         haveit=
20709                         for x in $LDFLAGS $LIBICONV; do
20710
20711   acl_save_prefix="$prefix"
20712   prefix="$acl_final_prefix"
20713   acl_save_exec_prefix="$exec_prefix"
20714   exec_prefix="$acl_final_exec_prefix"
20715   eval x=\"$x\"
20716   exec_prefix="$acl_save_exec_prefix"
20717   prefix="$acl_save_prefix"
20718
20719                           if test "X$x" = "X-L$additional_libdir"; then
20720                             haveit=yes
20721                             break
20722                           fi
20723                         done
20724                         if test -z "$haveit"; then
20725                           if test -d "$additional_libdir"; then
20726                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20727                           fi
20728                         fi
20729                         haveit=
20730                         for x in $LDFLAGS $LTLIBICONV; do
20731
20732   acl_save_prefix="$prefix"
20733   prefix="$acl_final_prefix"
20734   acl_save_exec_prefix="$exec_prefix"
20735   exec_prefix="$acl_final_exec_prefix"
20736   eval x=\"$x\"
20737   exec_prefix="$acl_save_exec_prefix"
20738   prefix="$acl_save_prefix"
20739
20740                           if test "X$x" = "X-L$additional_libdir"; then
20741                             haveit=yes
20742                             break
20743                           fi
20744                         done
20745                         if test -z "$haveit"; then
20746                           if test -d "$additional_libdir"; then
20747                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20748                           fi
20749                         fi
20750                       fi
20751                     fi
20752                     ;;
20753                   -R*)
20754                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20755                     if test "$enable_rpath" != no; then
20756                                                                   haveit=
20757                       for x in $rpathdirs; do
20758                         if test "X$x" = "X$dir"; then
20759                           haveit=yes
20760                           break
20761                         fi
20762                       done
20763                       if test -z "$haveit"; then
20764                         rpathdirs="$rpathdirs $dir"
20765                       fi
20766                                                                   haveit=
20767                       for x in $ltrpathdirs; do
20768                         if test "X$x" = "X$dir"; then
20769                           haveit=yes
20770                           break
20771                         fi
20772                       done
20773                       if test -z "$haveit"; then
20774                         ltrpathdirs="$ltrpathdirs $dir"
20775                       fi
20776                     fi
20777                     ;;
20778                   -l*)
20779                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20780                     ;;
20781                   *.la)
20782                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20783                     ;;
20784                   *)
20785                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20786                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20787                     ;;
20788                 esac
20789               done
20790             fi
20791           else
20792                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20793             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20794           fi
20795         fi
20796       fi
20797     done
20798   done
20799   if test "X$rpathdirs" != "X"; then
20800     if test -n "$acl_hardcode_libdir_separator"; then
20801                         alldirs=
20802       for found_dir in $rpathdirs; do
20803         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20804       done
20805             acl_save_libdir="$libdir"
20806       libdir="$alldirs"
20807       eval flag=\"$acl_hardcode_libdir_flag_spec\"
20808       libdir="$acl_save_libdir"
20809       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20810     else
20811             for found_dir in $rpathdirs; do
20812         acl_save_libdir="$libdir"
20813         libdir="$found_dir"
20814         eval flag=\"$acl_hardcode_libdir_flag_spec\"
20815         libdir="$acl_save_libdir"
20816         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20817       done
20818     fi
20819   fi
20820   if test "X$ltrpathdirs" != "X"; then
20821             for found_dir in $ltrpathdirs; do
20822       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20823     done
20824   fi
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
20851 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20852 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
20853   $as_echo_n "(cached) " >&6
20854 else
20855   gt_save_LIBS="$LIBS"
20856      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20857      cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20863 #include <CoreFoundation/CFPreferences.h>
20864 int
20865 main ()
20866 {
20867 CFPreferencesCopyAppValue(NULL, NULL)
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 rm -f conftest.$ac_objext conftest$ac_exeext
20873 if { (ac_try="$ac_link"
20874 case "(($ac_try" in
20875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876   *) ac_try_echo=$ac_try;;
20877 esac
20878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20879 $as_echo "$ac_try_echo") >&5
20880   (eval "$ac_link") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } && {
20887          test -z "$ac_c_werror_flag" ||
20888          test ! -s conftest.err
20889        } && test -s conftest$ac_exeext && {
20890          test "$cross_compiling" = yes ||
20891          $as_test_x conftest$ac_exeext
20892        }; then
20893   gt_cv_func_CFPreferencesCopyAppValue=yes
20894 else
20895   $as_echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20897
20898         gt_cv_func_CFPreferencesCopyAppValue=no
20899 fi
20900
20901 rm -rf conftest.dSYM
20902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20903       conftest$ac_exeext conftest.$ac_ext
20904      LIBS="$gt_save_LIBS"
20905 fi
20906 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20907 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20908   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20909
20910 cat >>confdefs.h <<\_ACEOF
20911 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
20912 _ACEOF
20913
20914   fi
20915     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
20916 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20917 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
20918   $as_echo_n "(cached) " >&6
20919 else
20920   gt_save_LIBS="$LIBS"
20921      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20922      cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928 #include <CoreFoundation/CFLocale.h>
20929 int
20930 main ()
20931 {
20932 CFLocaleCopyCurrent();
20933   ;
20934   return 0;
20935 }
20936 _ACEOF
20937 rm -f conftest.$ac_objext conftest$ac_exeext
20938 if { (ac_try="$ac_link"
20939 case "(($ac_try" in
20940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941   *) ac_try_echo=$ac_try;;
20942 esac
20943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20944 $as_echo "$ac_try_echo") >&5
20945   (eval "$ac_link") 2>conftest.er1
20946   ac_status=$?
20947   grep -v '^ *+' conftest.er1 >conftest.err
20948   rm -f conftest.er1
20949   cat conftest.err >&5
20950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); } && {
20952          test -z "$ac_c_werror_flag" ||
20953          test ! -s conftest.err
20954        } && test -s conftest$ac_exeext && {
20955          test "$cross_compiling" = yes ||
20956          $as_test_x conftest$ac_exeext
20957        }; then
20958   gt_cv_func_CFLocaleCopyCurrent=yes
20959 else
20960   $as_echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20962
20963         gt_cv_func_CFLocaleCopyCurrent=no
20964 fi
20965
20966 rm -rf conftest.dSYM
20967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20968       conftest$ac_exeext conftest.$ac_ext
20969      LIBS="$gt_save_LIBS"
20970 fi
20971 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20972 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20973   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20974
20975 cat >>confdefs.h <<\_ACEOF
20976 #define HAVE_CFLOCALECOPYCURRENT 1
20977 _ACEOF
20978
20979   fi
20980   INTL_MACOSX_LIBS=
20981   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20982     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20983   fi
20984
20985
20986
20987
20988
20989
20990   LIBINTL=
20991   LTLIBINTL=
20992   POSUB=
20993
20994     case " $gt_needs " in
20995     *" need-formatstring-macros "*) gt_api_version=3 ;;
20996     *" need-ngettext "*) gt_api_version=2 ;;
20997     *) gt_api_version=1 ;;
20998   esac
20999   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
21000   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
21001
21002     if test "$USE_NLS" = "yes"; then
21003     gt_use_preinstalled_gnugettext=no
21004
21005
21006         if test $gt_api_version -ge 3; then
21007           gt_revision_test_code='
21008 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
21009 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
21010 #endif
21011 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
21012 '
21013         else
21014           gt_revision_test_code=
21015         fi
21016         if test $gt_api_version -ge 2; then
21017           gt_expression_test_code=' + * ngettext ("", "", 0)'
21018         else
21019           gt_expression_test_code=
21020         fi
21021
21022         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
21023 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21024 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
21025   $as_echo_n "(cached) " >&6
21026 else
21027   cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h.  */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h.  */
21033 #include <libintl.h>
21034 $gt_revision_test_code
21035 extern int _nl_msg_cat_cntr;
21036 extern int *_nl_domain_bindings;
21037 int
21038 main ()
21039 {
21040 bindtextdomain ("", "");
21041 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
21042   ;
21043   return 0;
21044 }
21045 _ACEOF
21046 rm -f conftest.$ac_objext conftest$ac_exeext
21047 if { (ac_try="$ac_link"
21048 case "(($ac_try" in
21049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050   *) ac_try_echo=$ac_try;;
21051 esac
21052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21053 $as_echo "$ac_try_echo") >&5
21054   (eval "$ac_link") 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } && {
21061          test -z "$ac_c_werror_flag" ||
21062          test ! -s conftest.err
21063        } && test -s conftest$ac_exeext && {
21064          test "$cross_compiling" = yes ||
21065          $as_test_x conftest$ac_exeext
21066        }; then
21067   eval "$gt_func_gnugettext_libc=yes"
21068 else
21069   $as_echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21071
21072         eval "$gt_func_gnugettext_libc=no"
21073 fi
21074
21075 rm -rf conftest.dSYM
21076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21077       conftest$ac_exeext conftest.$ac_ext
21078 fi
21079 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
21080                  $as_echo "$as_val"'`
21081                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21082 $as_echo "$ac_res" >&6; }
21083
21084         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
21085
21086
21087
21088
21089
21090           am_save_CPPFLAGS="$CPPFLAGS"
21091
21092   for element in $INCICONV; do
21093     haveit=
21094     for x in $CPPFLAGS; do
21095
21096   acl_save_prefix="$prefix"
21097   prefix="$acl_final_prefix"
21098   acl_save_exec_prefix="$exec_prefix"
21099   exec_prefix="$acl_final_exec_prefix"
21100   eval x=\"$x\"
21101   exec_prefix="$acl_save_exec_prefix"
21102   prefix="$acl_save_prefix"
21103
21104       if test "X$x" = "X$element"; then
21105         haveit=yes
21106         break
21107       fi
21108     done
21109     if test -z "$haveit"; then
21110       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21111     fi
21112   done
21113
21114
21115   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
21116 $as_echo_n "checking for iconv... " >&6; }
21117 if test "${am_cv_func_iconv+set}" = set; then
21118   $as_echo_n "(cached) " >&6
21119 else
21120
21121     am_cv_func_iconv="no, consider installing GNU libiconv"
21122     am_cv_lib_iconv=no
21123     cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h.  */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h.  */
21129 #include <stdlib.h>
21130 #include <iconv.h>
21131 int
21132 main ()
21133 {
21134 iconv_t cd = iconv_open("","");
21135        iconv(cd,NULL,NULL,NULL,NULL);
21136        iconv_close(cd);
21137   ;
21138   return 0;
21139 }
21140 _ACEOF
21141 rm -f conftest.$ac_objext conftest$ac_exeext
21142 if { (ac_try="$ac_link"
21143 case "(($ac_try" in
21144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145   *) ac_try_echo=$ac_try;;
21146 esac
21147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21148 $as_echo "$ac_try_echo") >&5
21149   (eval "$ac_link") 2>conftest.er1
21150   ac_status=$?
21151   grep -v '^ *+' conftest.er1 >conftest.err
21152   rm -f conftest.er1
21153   cat conftest.err >&5
21154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); } && {
21156          test -z "$ac_c_werror_flag" ||
21157          test ! -s conftest.err
21158        } && test -s conftest$ac_exeext && {
21159          test "$cross_compiling" = yes ||
21160          $as_test_x conftest$ac_exeext
21161        }; then
21162   am_cv_func_iconv=yes
21163 else
21164   $as_echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167
21168 fi
21169
21170 rm -rf conftest.dSYM
21171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21172       conftest$ac_exeext conftest.$ac_ext
21173     if test "$am_cv_func_iconv" != yes; then
21174       am_save_LIBS="$LIBS"
21175       LIBS="$LIBS $LIBICONV"
21176       cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h.  */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h.  */
21182 #include <stdlib.h>
21183 #include <iconv.h>
21184 int
21185 main ()
21186 {
21187 iconv_t cd = iconv_open("","");
21188          iconv(cd,NULL,NULL,NULL,NULL);
21189          iconv_close(cd);
21190   ;
21191   return 0;
21192 }
21193 _ACEOF
21194 rm -f conftest.$ac_objext conftest$ac_exeext
21195 if { (ac_try="$ac_link"
21196 case "(($ac_try" in
21197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198   *) ac_try_echo=$ac_try;;
21199 esac
21200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21201 $as_echo "$ac_try_echo") >&5
21202   (eval "$ac_link") 2>conftest.er1
21203   ac_status=$?
21204   grep -v '^ *+' conftest.er1 >conftest.err
21205   rm -f conftest.er1
21206   cat conftest.err >&5
21207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); } && {
21209          test -z "$ac_c_werror_flag" ||
21210          test ! -s conftest.err
21211        } && test -s conftest$ac_exeext && {
21212          test "$cross_compiling" = yes ||
21213          $as_test_x conftest$ac_exeext
21214        }; then
21215   am_cv_lib_iconv=yes
21216         am_cv_func_iconv=yes
21217 else
21218   $as_echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21220
21221
21222 fi
21223
21224 rm -rf conftest.dSYM
21225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21226       conftest$ac_exeext conftest.$ac_ext
21227       LIBS="$am_save_LIBS"
21228     fi
21229
21230 fi
21231 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21232 $as_echo "$am_cv_func_iconv" >&6; }
21233   if test "$am_cv_func_iconv" = yes; then
21234     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
21235 $as_echo_n "checking for working iconv... " >&6; }
21236 if test "${am_cv_func_iconv_works+set}" = set; then
21237   $as_echo_n "(cached) " >&6
21238 else
21239
21240             am_save_LIBS="$LIBS"
21241       if test $am_cv_lib_iconv = yes; then
21242         LIBS="$LIBS $LIBICONV"
21243       fi
21244       if test "$cross_compiling" = yes; then
21245   case "$host_os" in
21246            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
21247            *)            am_cv_func_iconv_works="guessing yes" ;;
21248          esac
21249 else
21250   cat >conftest.$ac_ext <<_ACEOF
21251 /* confdefs.h.  */
21252 _ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h.  */
21256
21257 #include <iconv.h>
21258 #include <string.h>
21259 int main ()
21260 {
21261   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
21262      returns.  */
21263   {
21264     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
21265     if (cd_utf8_to_88591 != (iconv_t)(-1))
21266       {
21267         static const char input[] = "\342\202\254"; /* EURO SIGN */
21268         char buf[10];
21269         const char *inptr = input;
21270         size_t inbytesleft = strlen (input);
21271         char *outptr = buf;
21272         size_t outbytesleft = sizeof (buf);
21273         size_t res = iconv (cd_utf8_to_88591,
21274                             (char **) &inptr, &inbytesleft,
21275                             &outptr, &outbytesleft);
21276         if (res == 0)
21277           return 1;
21278       }
21279   }
21280 #if 0 /* This bug could be worked around by the caller.  */
21281   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
21282   {
21283     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
21284     if (cd_88591_to_utf8 != (iconv_t)(-1))
21285       {
21286         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
21287         char buf[50];
21288         const char *inptr = input;
21289         size_t inbytesleft = strlen (input);
21290         char *outptr = buf;
21291         size_t outbytesleft = sizeof (buf);
21292         size_t res = iconv (cd_88591_to_utf8,
21293                             (char **) &inptr, &inbytesleft,
21294                             &outptr, &outbytesleft);
21295         if ((int)res > 0)
21296           return 1;
21297       }
21298   }
21299 #endif
21300   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
21301      provided.  */
21302   if (/* Try standardized names.  */
21303       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
21304       /* Try IRIX, OSF/1 names.  */
21305       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
21306       /* Try AIX names.  */
21307       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
21308       /* Try HP-UX names.  */
21309       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
21310     return 1;
21311   return 0;
21312 }
21313 _ACEOF
21314 rm -f conftest$ac_exeext
21315 if { (ac_try="$ac_link"
21316 case "(($ac_try" in
21317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318   *) ac_try_echo=$ac_try;;
21319 esac
21320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21321 $as_echo "$ac_try_echo") >&5
21322   (eval "$ac_link") 2>&5
21323   ac_status=$?
21324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21326   { (case "(($ac_try" in
21327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328   *) ac_try_echo=$ac_try;;
21329 esac
21330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21331 $as_echo "$ac_try_echo") >&5
21332   (eval "$ac_try") 2>&5
21333   ac_status=$?
21334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335   (exit $ac_status); }; }; then
21336   am_cv_func_iconv_works=yes
21337 else
21338   $as_echo "$as_me: program exited with status $ac_status" >&5
21339 $as_echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341
21342 ( exit $ac_status )
21343 am_cv_func_iconv_works=no
21344 fi
21345 rm -rf conftest.dSYM
21346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21347 fi
21348
21349
21350       LIBS="$am_save_LIBS"
21351
21352 fi
21353 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
21354 $as_echo "$am_cv_func_iconv_works" >&6; }
21355     case "$am_cv_func_iconv_works" in
21356       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21357       *)   am_func_iconv=yes ;;
21358     esac
21359   else
21360     am_func_iconv=no am_cv_lib_iconv=no
21361   fi
21362   if test "$am_func_iconv" = yes; then
21363
21364 cat >>confdefs.h <<\_ACEOF
21365 #define HAVE_ICONV 1
21366 _ACEOF
21367
21368   fi
21369   if test "$am_cv_lib_iconv" = yes; then
21370     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21371 $as_echo_n "checking how to link with libiconv... " >&6; }
21372     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
21373 $as_echo "$LIBICONV" >&6; }
21374   else
21375             CPPFLAGS="$am_save_CPPFLAGS"
21376     LIBICONV=
21377     LTLIBICONV=
21378   fi
21379
21380
21381
21382
21383
21384
21385
21386
21387     use_additional=yes
21388
21389   acl_save_prefix="$prefix"
21390   prefix="$acl_final_prefix"
21391   acl_save_exec_prefix="$exec_prefix"
21392   exec_prefix="$acl_final_exec_prefix"
21393
21394     eval additional_includedir=\"$includedir\"
21395     eval additional_libdir=\"$libdir\"
21396
21397   exec_prefix="$acl_save_exec_prefix"
21398   prefix="$acl_save_prefix"
21399
21400
21401 # Check whether --with-libintl-prefix was given.
21402 if test "${with_libintl_prefix+set}" = set; then
21403   withval=$with_libintl_prefix;
21404     if test "X$withval" = "Xno"; then
21405       use_additional=no
21406     else
21407       if test "X$withval" = "X"; then
21408
21409   acl_save_prefix="$prefix"
21410   prefix="$acl_final_prefix"
21411   acl_save_exec_prefix="$exec_prefix"
21412   exec_prefix="$acl_final_exec_prefix"
21413
21414           eval additional_includedir=\"$includedir\"
21415           eval additional_libdir=\"$libdir\"
21416
21417   exec_prefix="$acl_save_exec_prefix"
21418   prefix="$acl_save_prefix"
21419
21420       else
21421         additional_includedir="$withval/include"
21422         additional_libdir="$withval/$acl_libdirstem"
21423       fi
21424     fi
21425
21426 fi
21427
21428       LIBINTL=
21429   LTLIBINTL=
21430   INCINTL=
21431   LIBINTL_PREFIX=
21432   rpathdirs=
21433   ltrpathdirs=
21434   names_already_handled=
21435   names_next_round='intl '
21436   while test -n "$names_next_round"; do
21437     names_this_round="$names_next_round"
21438     names_next_round=
21439     for name in $names_this_round; do
21440       already_handled=
21441       for n in $names_already_handled; do
21442         if test "$n" = "$name"; then
21443           already_handled=yes
21444           break
21445         fi
21446       done
21447       if test -z "$already_handled"; then
21448         names_already_handled="$names_already_handled $name"
21449                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21450         eval value=\"\$HAVE_LIB$uppername\"
21451         if test -n "$value"; then
21452           if test "$value" = yes; then
21453             eval value=\"\$LIB$uppername\"
21454             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21455             eval value=\"\$LTLIB$uppername\"
21456             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21457           else
21458                                     :
21459           fi
21460         else
21461                               found_dir=
21462           found_la=
21463           found_so=
21464           found_a=
21465           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
21466           if test -n "$acl_shlibext"; then
21467             shrext=".$acl_shlibext"             # typically: shrext=.so
21468           else
21469             shrext=
21470           fi
21471           if test $use_additional = yes; then
21472             dir="$additional_libdir"
21473                                     if test -n "$acl_shlibext"; then
21474               if test -f "$dir/$libname$shrext"; then
21475                 found_dir="$dir"
21476                 found_so="$dir/$libname$shrext"
21477               else
21478                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21479                   ver=`(cd "$dir" && \
21480                         for f in "$libname$shrext".*; do echo "$f"; done \
21481                         | sed -e "s,^$libname$shrext\\\\.,," \
21482                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21483                         | sed 1q ) 2>/dev/null`
21484                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21485                     found_dir="$dir"
21486                     found_so="$dir/$libname$shrext.$ver"
21487                   fi
21488                 else
21489                   eval library_names=\"$acl_library_names_spec\"
21490                   for f in $library_names; do
21491                     if test -f "$dir/$f"; then
21492                       found_dir="$dir"
21493                       found_so="$dir/$f"
21494                       break
21495                     fi
21496                   done
21497                 fi
21498               fi
21499             fi
21500                         if test "X$found_dir" = "X"; then
21501               if test -f "$dir/$libname.$acl_libext"; then
21502                 found_dir="$dir"
21503                 found_a="$dir/$libname.$acl_libext"
21504               fi
21505             fi
21506             if test "X$found_dir" != "X"; then
21507               if test -f "$dir/$libname.la"; then
21508                 found_la="$dir/$libname.la"
21509               fi
21510             fi
21511           fi
21512           if test "X$found_dir" = "X"; then
21513             for x in $LDFLAGS $LTLIBINTL; do
21514
21515   acl_save_prefix="$prefix"
21516   prefix="$acl_final_prefix"
21517   acl_save_exec_prefix="$exec_prefix"
21518   exec_prefix="$acl_final_exec_prefix"
21519   eval x=\"$x\"
21520   exec_prefix="$acl_save_exec_prefix"
21521   prefix="$acl_save_prefix"
21522
21523               case "$x" in
21524                 -L*)
21525                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21526                                     if test -n "$acl_shlibext"; then
21527                     if test -f "$dir/$libname$shrext"; then
21528                       found_dir="$dir"
21529                       found_so="$dir/$libname$shrext"
21530                     else
21531                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21532                         ver=`(cd "$dir" && \
21533                               for f in "$libname$shrext".*; do echo "$f"; done \
21534                               | sed -e "s,^$libname$shrext\\\\.,," \
21535                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21536                               | sed 1q ) 2>/dev/null`
21537                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21538                           found_dir="$dir"
21539                           found_so="$dir/$libname$shrext.$ver"
21540                         fi
21541                       else
21542                         eval library_names=\"$acl_library_names_spec\"
21543                         for f in $library_names; do
21544                           if test -f "$dir/$f"; then
21545                             found_dir="$dir"
21546                             found_so="$dir/$f"
21547                             break
21548                           fi
21549                         done
21550                       fi
21551                     fi
21552                   fi
21553                                     if test "X$found_dir" = "X"; then
21554                     if test -f "$dir/$libname.$acl_libext"; then
21555                       found_dir="$dir"
21556                       found_a="$dir/$libname.$acl_libext"
21557                     fi
21558                   fi
21559                   if test "X$found_dir" != "X"; then
21560                     if test -f "$dir/$libname.la"; then
21561                       found_la="$dir/$libname.la"
21562                     fi
21563                   fi
21564                   ;;
21565               esac
21566               if test "X$found_dir" != "X"; then
21567                 break
21568               fi
21569             done
21570           fi
21571           if test "X$found_dir" != "X"; then
21572                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21573             if test "X$found_so" != "X"; then
21574                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21575                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21576               else
21577                                                                                 haveit=
21578                 for x in $ltrpathdirs; do
21579                   if test "X$x" = "X$found_dir"; then
21580                     haveit=yes
21581                     break
21582                   fi
21583                 done
21584                 if test -z "$haveit"; then
21585                   ltrpathdirs="$ltrpathdirs $found_dir"
21586                 fi
21587                                 if test "$acl_hardcode_direct" = yes; then
21588                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21589                 else
21590                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21591                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21592                                                             haveit=
21593                     for x in $rpathdirs; do
21594                       if test "X$x" = "X$found_dir"; then
21595                         haveit=yes
21596                         break
21597                       fi
21598                     done
21599                     if test -z "$haveit"; then
21600                       rpathdirs="$rpathdirs $found_dir"
21601                     fi
21602                   else
21603                                                                                 haveit=
21604                     for x in $LDFLAGS $LIBINTL; do
21605
21606   acl_save_prefix="$prefix"
21607   prefix="$acl_final_prefix"
21608   acl_save_exec_prefix="$exec_prefix"
21609   exec_prefix="$acl_final_exec_prefix"
21610   eval x=\"$x\"
21611   exec_prefix="$acl_save_exec_prefix"
21612   prefix="$acl_save_prefix"
21613
21614                       if test "X$x" = "X-L$found_dir"; then
21615                         haveit=yes
21616                         break
21617                       fi
21618                     done
21619                     if test -z "$haveit"; then
21620                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21621                     fi
21622                     if test "$acl_hardcode_minus_L" != no; then
21623                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21624                     else
21625                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21626                     fi
21627                   fi
21628                 fi
21629               fi
21630             else
21631               if test "X$found_a" != "X"; then
21632                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21633               else
21634                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21635               fi
21636             fi
21637                         additional_includedir=
21638             case "$found_dir" in
21639               */$acl_libdirstem | */$acl_libdirstem/)
21640                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21641                 LIBINTL_PREFIX="$basedir"
21642                 additional_includedir="$basedir/include"
21643                 ;;
21644             esac
21645             if test "X$additional_includedir" != "X"; then
21646                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21647                 haveit=
21648                 if test "X$additional_includedir" = "X/usr/local/include"; then
21649                   if test -n "$GCC"; then
21650                     case $host_os in
21651                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21652                     esac
21653                   fi
21654                 fi
21655                 if test -z "$haveit"; then
21656                   for x in $CPPFLAGS $INCINTL; do
21657
21658   acl_save_prefix="$prefix"
21659   prefix="$acl_final_prefix"
21660   acl_save_exec_prefix="$exec_prefix"
21661   exec_prefix="$acl_final_exec_prefix"
21662   eval x=\"$x\"
21663   exec_prefix="$acl_save_exec_prefix"
21664   prefix="$acl_save_prefix"
21665
21666                     if test "X$x" = "X-I$additional_includedir"; then
21667                       haveit=yes
21668                       break
21669                     fi
21670                   done
21671                   if test -z "$haveit"; then
21672                     if test -d "$additional_includedir"; then
21673                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21674                     fi
21675                   fi
21676                 fi
21677               fi
21678             fi
21679                         if test -n "$found_la"; then
21680                                                         save_libdir="$libdir"
21681               case "$found_la" in
21682                 */* | *\\*) . "$found_la" ;;
21683                 *) . "./$found_la" ;;
21684               esac
21685               libdir="$save_libdir"
21686                             for dep in $dependency_libs; do
21687                 case "$dep" in
21688                   -L*)
21689                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21690                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21691                       haveit=
21692                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21693                         if test -n "$GCC"; then
21694                           case $host_os in
21695                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21696                           esac
21697                         fi
21698                       fi
21699                       if test -z "$haveit"; then
21700                         haveit=
21701                         for x in $LDFLAGS $LIBINTL; do
21702
21703   acl_save_prefix="$prefix"
21704   prefix="$acl_final_prefix"
21705   acl_save_exec_prefix="$exec_prefix"
21706   exec_prefix="$acl_final_exec_prefix"
21707   eval x=\"$x\"
21708   exec_prefix="$acl_save_exec_prefix"
21709   prefix="$acl_save_prefix"
21710
21711                           if test "X$x" = "X-L$additional_libdir"; then
21712                             haveit=yes
21713                             break
21714                           fi
21715                         done
21716                         if test -z "$haveit"; then
21717                           if test -d "$additional_libdir"; then
21718                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21719                           fi
21720                         fi
21721                         haveit=
21722                         for x in $LDFLAGS $LTLIBINTL; do
21723
21724   acl_save_prefix="$prefix"
21725   prefix="$acl_final_prefix"
21726   acl_save_exec_prefix="$exec_prefix"
21727   exec_prefix="$acl_final_exec_prefix"
21728   eval x=\"$x\"
21729   exec_prefix="$acl_save_exec_prefix"
21730   prefix="$acl_save_prefix"
21731
21732                           if test "X$x" = "X-L$additional_libdir"; then
21733                             haveit=yes
21734                             break
21735                           fi
21736                         done
21737                         if test -z "$haveit"; then
21738                           if test -d "$additional_libdir"; then
21739                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21740                           fi
21741                         fi
21742                       fi
21743                     fi
21744                     ;;
21745                   -R*)
21746                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21747                     if test "$enable_rpath" != no; then
21748                                                                   haveit=
21749                       for x in $rpathdirs; do
21750                         if test "X$x" = "X$dir"; then
21751                           haveit=yes
21752                           break
21753                         fi
21754                       done
21755                       if test -z "$haveit"; then
21756                         rpathdirs="$rpathdirs $dir"
21757                       fi
21758                                                                   haveit=
21759                       for x in $ltrpathdirs; do
21760                         if test "X$x" = "X$dir"; then
21761                           haveit=yes
21762                           break
21763                         fi
21764                       done
21765                       if test -z "$haveit"; then
21766                         ltrpathdirs="$ltrpathdirs $dir"
21767                       fi
21768                     fi
21769                     ;;
21770                   -l*)
21771                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21772                     ;;
21773                   *.la)
21774                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21775                     ;;
21776                   *)
21777                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21778                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21779                     ;;
21780                 esac
21781               done
21782             fi
21783           else
21784                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21785             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21786           fi
21787         fi
21788       fi
21789     done
21790   done
21791   if test "X$rpathdirs" != "X"; then
21792     if test -n "$acl_hardcode_libdir_separator"; then
21793                         alldirs=
21794       for found_dir in $rpathdirs; do
21795         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21796       done
21797             acl_save_libdir="$libdir"
21798       libdir="$alldirs"
21799       eval flag=\"$acl_hardcode_libdir_flag_spec\"
21800       libdir="$acl_save_libdir"
21801       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21802     else
21803             for found_dir in $rpathdirs; do
21804         acl_save_libdir="$libdir"
21805         libdir="$found_dir"
21806         eval flag=\"$acl_hardcode_libdir_flag_spec\"
21807         libdir="$acl_save_libdir"
21808         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21809       done
21810     fi
21811   fi
21812   if test "X$ltrpathdirs" != "X"; then
21813             for found_dir in $ltrpathdirs; do
21814       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21815     done
21816   fi
21817
21818           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
21819 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21820 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
21821   $as_echo_n "(cached) " >&6
21822 else
21823   gt_save_CPPFLAGS="$CPPFLAGS"
21824             CPPFLAGS="$CPPFLAGS $INCINTL"
21825             gt_save_LIBS="$LIBS"
21826             LIBS="$LIBS $LIBINTL"
21827                         cat >conftest.$ac_ext <<_ACEOF
21828 /* confdefs.h.  */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h.  */
21833 #include <libintl.h>
21834 $gt_revision_test_code
21835 extern int _nl_msg_cat_cntr;
21836 extern
21837 #ifdef __cplusplus
21838 "C"
21839 #endif
21840 const char *_nl_expand_alias (const char *);
21841 int
21842 main ()
21843 {
21844 bindtextdomain ("", "");
21845 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21846   ;
21847   return 0;
21848 }
21849 _ACEOF
21850 rm -f conftest.$ac_objext conftest$ac_exeext
21851 if { (ac_try="$ac_link"
21852 case "(($ac_try" in
21853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854   *) ac_try_echo=$ac_try;;
21855 esac
21856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21857 $as_echo "$ac_try_echo") >&5
21858   (eval "$ac_link") 2>conftest.er1
21859   ac_status=$?
21860   grep -v '^ *+' conftest.er1 >conftest.err
21861   rm -f conftest.er1
21862   cat conftest.err >&5
21863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); } && {
21865          test -z "$ac_c_werror_flag" ||
21866          test ! -s conftest.err
21867        } && test -s conftest$ac_exeext && {
21868          test "$cross_compiling" = yes ||
21869          $as_test_x conftest$ac_exeext
21870        }; then
21871   eval "$gt_func_gnugettext_libintl=yes"
21872 else
21873   $as_echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21875
21876         eval "$gt_func_gnugettext_libintl=no"
21877 fi
21878
21879 rm -rf conftest.dSYM
21880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21881       conftest$ac_exeext conftest.$ac_ext
21882                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
21883               LIBS="$LIBS $LIBICONV"
21884               cat >conftest.$ac_ext <<_ACEOF
21885 /* confdefs.h.  */
21886 _ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h.  */
21890 #include <libintl.h>
21891 $gt_revision_test_code
21892 extern int _nl_msg_cat_cntr;
21893 extern
21894 #ifdef __cplusplus
21895 "C"
21896 #endif
21897 const char *_nl_expand_alias (const char *);
21898 int
21899 main ()
21900 {
21901 bindtextdomain ("", "");
21902 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21903   ;
21904   return 0;
21905 }
21906 _ACEOF
21907 rm -f conftest.$ac_objext conftest$ac_exeext
21908 if { (ac_try="$ac_link"
21909 case "(($ac_try" in
21910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911   *) ac_try_echo=$ac_try;;
21912 esac
21913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21914 $as_echo "$ac_try_echo") >&5
21915   (eval "$ac_link") 2>conftest.er1
21916   ac_status=$?
21917   grep -v '^ *+' conftest.er1 >conftest.err
21918   rm -f conftest.er1
21919   cat conftest.err >&5
21920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } && {
21922          test -z "$ac_c_werror_flag" ||
21923          test ! -s conftest.err
21924        } && test -s conftest$ac_exeext && {
21925          test "$cross_compiling" = yes ||
21926          $as_test_x conftest$ac_exeext
21927        }; then
21928   LIBINTL="$LIBINTL $LIBICONV"
21929                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21930                 eval "$gt_func_gnugettext_libintl=yes"
21931
21932 else
21933   $as_echo "$as_me: failed program was:" >&5
21934 sed 's/^/| /' conftest.$ac_ext >&5
21935
21936
21937 fi
21938
21939 rm -rf conftest.dSYM
21940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21941       conftest$ac_exeext conftest.$ac_ext
21942             fi
21943             CPPFLAGS="$gt_save_CPPFLAGS"
21944             LIBS="$gt_save_LIBS"
21945 fi
21946 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
21947                  $as_echo "$as_val"'`
21948                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21949 $as_echo "$ac_res" >&6; }
21950         fi
21951
21952                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
21953            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
21954                 && test "$PACKAGE" != gettext-runtime \
21955                 && test "$PACKAGE" != gettext-tools; }; then
21956           gt_use_preinstalled_gnugettext=yes
21957         else
21958                     LIBINTL=
21959           LTLIBINTL=
21960           INCINTL=
21961         fi
21962
21963
21964
21965     if test -n "$INTL_MACOSX_LIBS"; then
21966       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21967          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21968                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21969         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21970       fi
21971     fi
21972
21973     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21974        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21975
21976 cat >>confdefs.h <<\_ACEOF
21977 #define ENABLE_NLS 1
21978 _ACEOF
21979
21980     else
21981       USE_NLS=no
21982     fi
21983   fi
21984
21985   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
21986 $as_echo_n "checking whether to use NLS... " >&6; }
21987   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
21988 $as_echo "$USE_NLS" >&6; }
21989   if test "$USE_NLS" = "yes"; then
21990     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
21991 $as_echo_n "checking where the gettext function comes from... " >&6; }
21992     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21993       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
21994         gt_source="external libintl"
21995       else
21996         gt_source="libc"
21997       fi
21998     else
21999       gt_source="included intl directory"
22000     fi
22001     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
22002 $as_echo "$gt_source" >&6; }
22003   fi
22004
22005   if test "$USE_NLS" = "yes"; then
22006
22007     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22008       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22009         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
22010 $as_echo_n "checking how to link with libintl... " >&6; }
22011         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
22012 $as_echo "$LIBINTL" >&6; }
22013
22014   for element in $INCINTL; do
22015     haveit=
22016     for x in $CPPFLAGS; do
22017
22018   acl_save_prefix="$prefix"
22019   prefix="$acl_final_prefix"
22020   acl_save_exec_prefix="$exec_prefix"
22021   exec_prefix="$acl_final_exec_prefix"
22022   eval x=\"$x\"
22023   exec_prefix="$acl_save_exec_prefix"
22024   prefix="$acl_save_prefix"
22025
22026       if test "X$x" = "X$element"; then
22027         haveit=yes
22028         break
22029       fi
22030     done
22031     if test -z "$haveit"; then
22032       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22033     fi
22034   done
22035
22036       fi
22037
22038
22039 cat >>confdefs.h <<\_ACEOF
22040 #define HAVE_GETTEXT 1
22041 _ACEOF
22042
22043
22044 cat >>confdefs.h <<\_ACEOF
22045 #define HAVE_DCGETTEXT 1
22046 _ACEOF
22047
22048     fi
22049
22050         POSUB=po
22051   fi
22052
22053
22054
22055     INTLLIBS="$LIBINTL"
22056
22057
22058
22059
22060
22061
22062
22063 for ac_func in dngettext
22064 do
22065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22066 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22067 $as_echo_n "checking for $ac_func... " >&6; }
22068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22069   $as_echo_n "(cached) " >&6
22070 else
22071   cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h.  */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h.  */
22077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22079 #define $ac_func innocuous_$ac_func
22080
22081 /* System header to define __stub macros and hopefully few prototypes,
22082     which can conflict with char $ac_func (); below.
22083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22084     <limits.h> exists even on freestanding compilers.  */
22085
22086 #ifdef __STDC__
22087 # include <limits.h>
22088 #else
22089 # include <assert.h>
22090 #endif
22091
22092 #undef $ac_func
22093
22094 /* Override any GCC internal prototype to avoid an error.
22095    Use char because int might match the return type of a GCC
22096    builtin and then its argument prototype would still apply.  */
22097 #ifdef __cplusplus
22098 extern "C"
22099 #endif
22100 char $ac_func ();
22101 /* The GNU C library defines this for functions which it implements
22102     to always fail with ENOSYS.  Some functions are actually named
22103     something starting with __ and the normal name is an alias.  */
22104 #if defined __stub_$ac_func || defined __stub___$ac_func
22105 choke me
22106 #endif
22107
22108 int
22109 main ()
22110 {
22111 return $ac_func ();
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext conftest$ac_exeext
22117 if { (ac_try="$ac_link"
22118 case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22123 $as_echo "$ac_try_echo") >&5
22124   (eval "$ac_link") 2>conftest.er1
22125   ac_status=$?
22126   grep -v '^ *+' conftest.er1 >conftest.err
22127   rm -f conftest.er1
22128   cat conftest.err >&5
22129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130   (exit $ac_status); } && {
22131          test -z "$ac_c_werror_flag" ||
22132          test ! -s conftest.err
22133        } && test -s conftest$ac_exeext && {
22134          test "$cross_compiling" = yes ||
22135          $as_test_x conftest$ac_exeext
22136        }; then
22137   eval "$as_ac_var=yes"
22138 else
22139   $as_echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22141
22142         eval "$as_ac_var=no"
22143 fi
22144
22145 rm -rf conftest.dSYM
22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147       conftest$ac_exeext conftest.$ac_ext
22148 fi
22149 ac_res=`eval 'as_val=${'$as_ac_var'}
22150                  $as_echo "$as_val"'`
22151                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22152 $as_echo "$ac_res" >&6; }
22153 as_val=`eval 'as_val=${'$as_ac_var'}
22154                  $as_echo "$as_val"'`
22155    if test "x$as_val" = x""yes; then
22156   cat >>confdefs.h <<_ACEOF
22157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22158 _ACEOF
22159
22160 fi
22161 done
22162
22163
22164
22165
22166
22167 { $as_echo "$as_me:$LINENO: checking whether __NR_keyctl is declared" >&5
22168 $as_echo_n "checking whether __NR_keyctl is declared... " >&6; }
22169 if test "${ac_cv_have_decl___NR_keyctl+set}" = set; then
22170   $as_echo_n "(cached) " >&6
22171 else
22172   cat >conftest.$ac_ext <<_ACEOF
22173 /* confdefs.h.  */
22174 _ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h.  */
22178 #include <sys/syscall.h>
22179
22180 int
22181 main ()
22182 {
22183 #ifndef __NR_keyctl
22184   (void) __NR_keyctl;
22185 #endif
22186
22187   ;
22188   return 0;
22189 }
22190 _ACEOF
22191 rm -f conftest.$ac_objext
22192 if { (ac_try="$ac_compile"
22193 case "(($ac_try" in
22194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195   *) ac_try_echo=$ac_try;;
22196 esac
22197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22198 $as_echo "$ac_try_echo") >&5
22199   (eval "$ac_compile") 2>conftest.er1
22200   ac_status=$?
22201   grep -v '^ *+' conftest.er1 >conftest.err
22202   rm -f conftest.er1
22203   cat conftest.err >&5
22204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); } && {
22206          test -z "$ac_c_werror_flag" ||
22207          test ! -s conftest.err
22208        } && test -s conftest.$ac_objext; then
22209   ac_cv_have_decl___NR_keyctl=yes
22210 else
22211   $as_echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22213
22214         ac_cv_have_decl___NR_keyctl=no
22215 fi
22216
22217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22218 fi
22219 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___NR_keyctl" >&5
22220 $as_echo "$ac_cv_have_decl___NR_keyctl" >&6; }
22221 if test "x$ac_cv_have_decl___NR_keyctl" = x""yes; then
22222   have_key_syscalls=1
22223 else
22224   have_key_syscalls=0
22225 fi
22226
22227 { $as_echo "$as_me:$LINENO: checking whether ENOKEY is declared" >&5
22228 $as_echo_n "checking whether ENOKEY is declared... " >&6; }
22229 if test "${ac_cv_have_decl_ENOKEY+set}" = set; then
22230   $as_echo_n "(cached) " >&6
22231 else
22232   cat >conftest.$ac_ext <<_ACEOF
22233 /* confdefs.h.  */
22234 _ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h.  */
22238 #include <errno.h>
22239
22240 int
22241 main ()
22242 {
22243 #ifndef ENOKEY
22244   (void) ENOKEY;
22245 #endif
22246
22247   ;
22248   return 0;
22249 }
22250 _ACEOF
22251 rm -f conftest.$ac_objext
22252 if { (ac_try="$ac_compile"
22253 case "(($ac_try" in
22254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255   *) ac_try_echo=$ac_try;;
22256 esac
22257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22258 $as_echo "$ac_try_echo") >&5
22259   (eval "$ac_compile") 2>conftest.er1
22260   ac_status=$?
22261   grep -v '^ *+' conftest.er1 >conftest.err
22262   rm -f conftest.er1
22263   cat conftest.err >&5
22264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); } && {
22266          test -z "$ac_c_werror_flag" ||
22267          test ! -s conftest.err
22268        } && test -s conftest.$ac_objext; then
22269   ac_cv_have_decl_ENOKEY=yes
22270 else
22271   $as_echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22273
22274         ac_cv_have_decl_ENOKEY=no
22275 fi
22276
22277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22278 fi
22279 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ENOKEY" >&5
22280 $as_echo "$ac_cv_have_decl_ENOKEY" >&6; }
22281 if test "x$ac_cv_have_decl_ENOKEY" = x""yes; then
22282   have_key_errors=1
22283 else
22284   have_key_errors=0
22285 fi
22286
22287
22288 HAVE_KEY_MANAGEMENT=0
22289 if test $have_key_syscalls$have_key_errors = 11
22290 then
22291         HAVE_KEY_MANAGEMENT=1
22292 fi
22293
22294 if test $HAVE_KEY_MANAGEMENT = 1; then
22295
22296 cat >>confdefs.h <<\_ACEOF
22297 #define HAVE_KEY_MANAGEMENT 1
22298 _ACEOF
22299
22300 fi
22301 HAVE_KEY_MANAGEMENT=$HAVE_KEY_MANAGEMENT
22302
22303
22304  if test "$have_key_syscalls" = 1; then
22305   HAVE_KEY_MANAGEMENT_TRUE=
22306   HAVE_KEY_MANAGEMENT_FALSE='#'
22307 else
22308   HAVE_KEY_MANAGEMENT_TRUE='#'
22309   HAVE_KEY_MANAGEMENT_FALSE=
22310 fi
22311
22312
22313 ac_config_files="$ac_config_files Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile libpam_misc/Makefile conf/Makefile conf/pam_conv1/Makefile po/Makefile.in modules/Makefile modules/pam_access/Makefile modules/pam_cracklib/Makefile modules/pam_debug/Makefile modules/pam_deny/Makefile modules/pam_echo/Makefile modules/pam_env/Makefile modules/pam_faildelay/Makefile modules/pam_filter/Makefile modules/pam_filter/upperLOWER/Makefile modules/pam_ftp/Makefile modules/pam_group/Makefile modules/pam_issue/Makefile modules/pam_keyinit/Makefile modules/pam_lastlog/Makefile modules/pam_limits/Makefile modules/pam_listfile/Makefile modules/pam_localuser/Makefile modules/pam_loginuid/Makefile modules/pam_mail/Makefile modules/pam_mkhomedir/Makefile modules/pam_motd/Makefile modules/pam_namespace/Makefile modules/pam_nologin/Makefile modules/pam_permit/Makefile modules/pam_pwhistory/Makefile modules/pam_rhosts/Makefile modules/pam_rootok/Makefile modules/pam_exec/Makefile modules/pam_securetty/Makefile modules/pam_selinux/Makefile modules/pam_sepermit/Makefile modules/pam_shells/Makefile modules/pam_stress/Makefile modules/pam_succeed_if/Makefile modules/pam_tally/Makefile modules/pam_tally2/Makefile modules/pam_time/Makefile modules/pam_timestamp/Makefile modules/pam_tty_audit/Makefile modules/pam_umask/Makefile modules/pam_unix/Makefile modules/pam_userdb/Makefile modules/pam_warn/Makefile modules/pam_wheel/Makefile modules/pam_xauth/Makefile doc/Makefile doc/specs/Makefile doc/man/Makefile doc/sag/Makefile doc/adg/Makefile doc/mwg/Makefile examples/Makefile tests/Makefile xtests/Makefile"
22314
22315 cat >confcache <<\_ACEOF
22316 # This file is a shell script that caches the results of configure
22317 # tests run on this system so they can be shared between configure
22318 # scripts and configure runs, see configure's option --config-cache.
22319 # It is not useful on other systems.  If it contains results you don't
22320 # want to keep, you may remove or edit it.
22321 #
22322 # config.status only pays attention to the cache file if you give it
22323 # the --recheck option to rerun configure.
22324 #
22325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22327 # following values.
22328
22329 _ACEOF
22330
22331 # The following way of writing the cache mishandles newlines in values,
22332 # but we know of no workaround that is simple, portable, and efficient.
22333 # So, we kill variables containing newlines.
22334 # Ultrix sh set writes to stderr and can't be redirected directly,
22335 # and sets the high bit in the cache file unless we assign to the vars.
22336 (
22337   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22338     eval ac_val=\$$ac_var
22339     case $ac_val in #(
22340     *${as_nl}*)
22341       case $ac_var in #(
22342       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22343 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22344       esac
22345       case $ac_var in #(
22346       _ | IFS | as_nl) ;; #(
22347       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22348       *) $as_unset $ac_var ;;
22349       esac ;;
22350     esac
22351   done
22352
22353   (set) 2>&1 |
22354     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22355     *${as_nl}ac_space=\ *)
22356       # `set' does not quote correctly, so add quotes (double-quote
22357       # substitution turns \\\\ into \\, and sed turns \\ into \).
22358       sed -n \
22359         "s/'/'\\\\''/g;
22360           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22361       ;; #(
22362     *)
22363       # `set' quotes correctly as required by POSIX, so do not add quotes.
22364       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22365       ;;
22366     esac |
22367     sort
22368 ) |
22369   sed '
22370      /^ac_cv_env_/b end
22371      t clear
22372      :clear
22373      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22374      t end
22375      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22376      :end' >>confcache
22377 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22378   if test -w "$cache_file"; then
22379     test "x$cache_file" != "x/dev/null" &&
22380       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22381 $as_echo "$as_me: updating cache $cache_file" >&6;}
22382     cat confcache >$cache_file
22383   else
22384     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22385 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22386   fi
22387 fi
22388 rm -f confcache
22389
22390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22391 # Let make expand exec_prefix.
22392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22393
22394 DEFS=-DHAVE_CONFIG_H
22395
22396 ac_libobjs=
22397 ac_ltlibobjs=
22398 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22399   # 1. Remove the extension, and $U if already installed.
22400   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22401   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22402   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22403   #    will be set to the directory where LIBOBJS objects are built.
22404   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22405   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22406 done
22407 LIBOBJS=$ac_libobjs
22408
22409 LTLIBOBJS=$ac_ltlibobjs
22410
22411
22412 if test -z "${STATIC_MODULES_TRUE}" && test -z "${STATIC_MODULES_FALSE}"; then
22413   { { $as_echo "$as_me:$LINENO: error: conditional \"STATIC_MODULES\" was never defined.
22414 Usually this means the macro was only invoked conditionally." >&5
22415 $as_echo "$as_me: error: conditional \"STATIC_MODULES\" was never defined.
22416 Usually this means the macro was only invoked conditionally." >&2;}
22417    { (exit 1); exit 1; }; }
22418 fi
22419 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22420   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22421 Usually this means the macro was only invoked conditionally." >&5
22422 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22423 Usually this means the macro was only invoked conditionally." >&2;}
22424    { (exit 1); exit 1; }; }
22425 fi
22426 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22427   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22428 Usually this means the macro was only invoked conditionally." >&5
22429 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22430 Usually this means the macro was only invoked conditionally." >&2;}
22431    { (exit 1); exit 1; }; }
22432 fi
22433 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22434   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22435 Usually this means the macro was only invoked conditionally." >&5
22436 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22437 Usually this means the macro was only invoked conditionally." >&2;}
22438    { (exit 1); exit 1; }; }
22439 fi
22440 if test -z "${HAVE_VERSIONING_TRUE}" && test -z "${HAVE_VERSIONING_FALSE}"; then
22441   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_VERSIONING\" was never defined.
22442 Usually this means the macro was only invoked conditionally." >&5
22443 $as_echo "$as_me: error: conditional \"HAVE_VERSIONING\" was never defined.
22444 Usually this means the macro was only invoked conditionally." >&2;}
22445    { (exit 1); exit 1; }; }
22446 fi
22447 if test -z "${HAVE_LIBCRACK_TRUE}" && test -z "${HAVE_LIBCRACK_FALSE}"; then
22448   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBCRACK\" was never defined.
22449 Usually this means the macro was only invoked conditionally." >&5
22450 $as_echo "$as_me: error: conditional \"HAVE_LIBCRACK\" was never defined.
22451 Usually this means the macro was only invoked conditionally." >&2;}
22452    { (exit 1); exit 1; }; }
22453 fi
22454 if test -z "${HAVE_AUDIT_TTY_STATUS_TRUE}" && test -z "${HAVE_AUDIT_TTY_STATUS_FALSE}"; then
22455   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_TTY_STATUS\" was never defined.
22456 Usually this means the macro was only invoked conditionally." >&5
22457 $as_echo "$as_me: error: conditional \"HAVE_AUDIT_TTY_STATUS\" was never defined.
22458 Usually this means the macro was only invoked conditionally." >&2;}
22459    { (exit 1); exit 1; }; }
22460 fi
22461 if test -z "${HAVE_LIBDB_TRUE}" && test -z "${HAVE_LIBDB_FALSE}"; then
22462   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDB\" was never defined.
22463 Usually this means the macro was only invoked conditionally." >&5
22464 $as_echo "$as_me: error: conditional \"HAVE_LIBDB\" was never defined.
22465 Usually this means the macro was only invoked conditionally." >&2;}
22466    { (exit 1); exit 1; }; }
22467 fi
22468 if test -z "${HAVE_LIBSELINUX_TRUE}" && test -z "${HAVE_LIBSELINUX_FALSE}"; then
22469   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSELINUX\" was never defined.
22470 Usually this means the macro was only invoked conditionally." >&5
22471 $as_echo "$as_me: error: conditional \"HAVE_LIBSELINUX\" was never defined.
22472 Usually this means the macro was only invoked conditionally." >&2;}
22473    { (exit 1); exit 1; }; }
22474 fi
22475
22476 if test -z "${HAVE_UNSHARE_TRUE}" && test -z "${HAVE_UNSHARE_FALSE}"; then
22477   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_UNSHARE\" was never defined.
22478 Usually this means the macro was only invoked conditionally." >&5
22479 $as_echo "$as_me: error: conditional \"HAVE_UNSHARE\" was never defined.
22480 Usually this means the macro was only invoked conditionally." >&2;}
22481    { (exit 1); exit 1; }; }
22482 fi
22483 if test -z "${ENABLE_REGENERATE_MAN_TRUE}" && test -z "${ENABLE_REGENERATE_MAN_FALSE}"; then
22484   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_REGENERATE_MAN\" was never defined.
22485 Usually this means the macro was only invoked conditionally." >&5
22486 $as_echo "$as_me: error: conditional \"ENABLE_REGENERATE_MAN\" was never defined.
22487 Usually this means the macro was only invoked conditionally." >&2;}
22488    { (exit 1); exit 1; }; }
22489 fi
22490 if test -z "${ENABLE_GENERATE_PDF_TRUE}" && test -z "${ENABLE_GENERATE_PDF_FALSE}"; then
22491   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GENERATE_PDF\" was never defined.
22492 Usually this means the macro was only invoked conditionally." >&5
22493 $as_echo "$as_me: error: conditional \"ENABLE_GENERATE_PDF\" was never defined.
22494 Usually this means the macro was only invoked conditionally." >&2;}
22495    { (exit 1); exit 1; }; }
22496 fi
22497 if test -z "${HAVE_KEY_MANAGEMENT_TRUE}" && test -z "${HAVE_KEY_MANAGEMENT_FALSE}"; then
22498   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_KEY_MANAGEMENT\" was never defined.
22499 Usually this means the macro was only invoked conditionally." >&5
22500 $as_echo "$as_me: error: conditional \"HAVE_KEY_MANAGEMENT\" was never defined.
22501 Usually this means the macro was only invoked conditionally." >&2;}
22502    { (exit 1); exit 1; }; }
22503 fi
22504
22505 : ${CONFIG_STATUS=./config.status}
22506 ac_write_fail=0
22507 ac_clean_files_save=$ac_clean_files
22508 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22509 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22510 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22511 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22512 #! $SHELL
22513 # Generated by $as_me.
22514 # Run this file to recreate the current configuration.
22515 # Compiler output produced by configure, useful for debugging
22516 # configure, is in config.log if it exists.
22517
22518 debug=false
22519 ac_cs_recheck=false
22520 ac_cs_silent=false
22521 SHELL=\${CONFIG_SHELL-$SHELL}
22522 _ACEOF
22523
22524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22525 ## --------------------- ##
22526 ## M4sh Initialization.  ##
22527 ## --------------------- ##
22528
22529 # Be more Bourne compatible
22530 DUALCASE=1; export DUALCASE # for MKS sh
22531 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22532   emulate sh
22533   NULLCMD=:
22534   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22535   # is contrary to our usage.  Disable this feature.
22536   alias -g '${1+"$@"}'='"$@"'
22537   setopt NO_GLOB_SUBST
22538 else
22539   case `(set -o) 2>/dev/null` in
22540   *posix*) set -o posix ;;
22541 esac
22542
22543 fi
22544
22545
22546
22547
22548 # PATH needs CR
22549 # Avoid depending upon Character Ranges.
22550 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22551 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22552 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22553 as_cr_digits='0123456789'
22554 as_cr_alnum=$as_cr_Letters$as_cr_digits
22555
22556 as_nl='
22557 '
22558 export as_nl
22559 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22560 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22562 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22563 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22564   as_echo='printf %s\n'
22565   as_echo_n='printf %s'
22566 else
22567   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22568     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22569     as_echo_n='/usr/ucb/echo -n'
22570   else
22571     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22572     as_echo_n_body='eval
22573       arg=$1;
22574       case $arg in
22575       *"$as_nl"*)
22576         expr "X$arg" : "X\\(.*\\)$as_nl";
22577         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22578       esac;
22579       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22580     '
22581     export as_echo_n_body
22582     as_echo_n='sh -c $as_echo_n_body as_echo'
22583   fi
22584   export as_echo_body
22585   as_echo='sh -c $as_echo_body as_echo'
22586 fi
22587
22588 # The user is always right.
22589 if test "${PATH_SEPARATOR+set}" != set; then
22590   PATH_SEPARATOR=:
22591   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22592     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22593       PATH_SEPARATOR=';'
22594   }
22595 fi
22596
22597 # Support unset when possible.
22598 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22599   as_unset=unset
22600 else
22601   as_unset=false
22602 fi
22603
22604
22605 # IFS
22606 # We need space, tab and new line, in precisely that order.  Quoting is
22607 # there to prevent editors from complaining about space-tab.
22608 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22609 # splitting by setting IFS to empty value.)
22610 IFS=" ""        $as_nl"
22611
22612 # Find who we are.  Look in the path if we contain no directory separator.
22613 case $0 in
22614   *[\\/]* ) as_myself=$0 ;;
22615   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22616 for as_dir in $PATH
22617 do
22618   IFS=$as_save_IFS
22619   test -z "$as_dir" && as_dir=.
22620   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22621 done
22622 IFS=$as_save_IFS
22623
22624      ;;
22625 esac
22626 # We did not find ourselves, most probably we were run as `sh COMMAND'
22627 # in which case we are not to be found in the path.
22628 if test "x$as_myself" = x; then
22629   as_myself=$0
22630 fi
22631 if test ! -f "$as_myself"; then
22632   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22633   { (exit 1); exit 1; }
22634 fi
22635
22636 # Work around bugs in pre-3.0 UWIN ksh.
22637 for as_var in ENV MAIL MAILPATH
22638 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22639 done
22640 PS1='$ '
22641 PS2='> '
22642 PS4='+ '
22643
22644 # NLS nuisances.
22645 LC_ALL=C
22646 export LC_ALL
22647 LANGUAGE=C
22648 export LANGUAGE
22649
22650 # Required to use basename.
22651 if expr a : '\(a\)' >/dev/null 2>&1 &&
22652    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22653   as_expr=expr
22654 else
22655   as_expr=false
22656 fi
22657
22658 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22659   as_basename=basename
22660 else
22661   as_basename=false
22662 fi
22663
22664
22665 # Name of the executable.
22666 as_me=`$as_basename -- "$0" ||
22667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22668          X"$0" : 'X\(//\)$' \| \
22669          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22670 $as_echo X/"$0" |
22671     sed '/^.*\/\([^/][^/]*\)\/*$/{
22672             s//\1/
22673             q
22674           }
22675           /^X\/\(\/\/\)$/{
22676             s//\1/
22677             q
22678           }
22679           /^X\/\(\/\).*/{
22680             s//\1/
22681             q
22682           }
22683           s/.*/./; q'`
22684
22685 # CDPATH.
22686 $as_unset CDPATH
22687
22688
22689
22690   as_lineno_1=$LINENO
22691   as_lineno_2=$LINENO
22692   test "x$as_lineno_1" != "x$as_lineno_2" &&
22693   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22694
22695   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22696   # uniformly replaced by the line number.  The first 'sed' inserts a
22697   # line-number line after each line using $LINENO; the second 'sed'
22698   # does the real work.  The second script uses 'N' to pair each
22699   # line-number line with the line containing $LINENO, and appends
22700   # trailing '-' during substitution so that $LINENO is not a special
22701   # case at line end.
22702   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22703   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22704   # E. McMahon (1931-1989) for sed's syntax.  :-)
22705   sed -n '
22706     p
22707     /[$]LINENO/=
22708   ' <$as_myself |
22709     sed '
22710       s/[$]LINENO.*/&-/
22711       t lineno
22712       b
22713       :lineno
22714       N
22715       :loop
22716       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22717       t loop
22718       s/-\n.*//
22719     ' >$as_me.lineno &&
22720   chmod +x "$as_me.lineno" ||
22721     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22722    { (exit 1); exit 1; }; }
22723
22724   # Don't try to exec as it changes $[0], causing all sort of problems
22725   # (the dirname of $[0] is not the place where we might find the
22726   # original and so on.  Autoconf is especially sensitive to this).
22727   . "./$as_me.lineno"
22728   # Exit status is that of the last command.
22729   exit
22730 }
22731
22732
22733 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22734   as_dirname=dirname
22735 else
22736   as_dirname=false
22737 fi
22738
22739 ECHO_C= ECHO_N= ECHO_T=
22740 case `echo -n x` in
22741 -n*)
22742   case `echo 'x\c'` in
22743   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22744   *)   ECHO_C='\c';;
22745   esac;;
22746 *)
22747   ECHO_N='-n';;
22748 esac
22749 if expr a : '\(a\)' >/dev/null 2>&1 &&
22750    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22751   as_expr=expr
22752 else
22753   as_expr=false
22754 fi
22755
22756 rm -f conf$$ conf$$.exe conf$$.file
22757 if test -d conf$$.dir; then
22758   rm -f conf$$.dir/conf$$.file
22759 else
22760   rm -f conf$$.dir
22761   mkdir conf$$.dir 2>/dev/null
22762 fi
22763 if (echo >conf$$.file) 2>/dev/null; then
22764   if ln -s conf$$.file conf$$ 2>/dev/null; then
22765     as_ln_s='ln -s'
22766     # ... but there are two gotchas:
22767     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22768     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22769     # In both cases, we have to default to `cp -p'.
22770     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22771       as_ln_s='cp -p'
22772   elif ln conf$$.file conf$$ 2>/dev/null; then
22773     as_ln_s=ln
22774   else
22775     as_ln_s='cp -p'
22776   fi
22777 else
22778   as_ln_s='cp -p'
22779 fi
22780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22781 rmdir conf$$.dir 2>/dev/null
22782
22783 if mkdir -p . 2>/dev/null; then
22784   as_mkdir_p=:
22785 else
22786   test -d ./-p && rmdir ./-p
22787   as_mkdir_p=false
22788 fi
22789
22790 if test -x / >/dev/null 2>&1; then
22791   as_test_x='test -x'
22792 else
22793   if ls -dL / >/dev/null 2>&1; then
22794     as_ls_L_option=L
22795   else
22796     as_ls_L_option=
22797   fi
22798   as_test_x='
22799     eval sh -c '\''
22800       if test -d "$1"; then
22801         test -d "$1/.";
22802       else
22803         case $1 in
22804         -*)set "./$1";;
22805         esac;
22806         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22807         ???[sx]*):;;*)false;;esac;fi
22808     '\'' sh
22809   '
22810 fi
22811 as_executable_p=$as_test_x
22812
22813 # Sed expression to map a string onto a valid CPP name.
22814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22815
22816 # Sed expression to map a string onto a valid variable name.
22817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22818
22819
22820 exec 6>&1
22821
22822 # Save the log message, to keep $[0] and so on meaningful, and to
22823 # report actual input values of CONFIG_FILES etc. instead of their
22824 # values after options handling.
22825 ac_log="
22826 This file was extended by $as_me, which was
22827 generated by GNU Autoconf 2.63.  Invocation command line was
22828
22829   CONFIG_FILES    = $CONFIG_FILES
22830   CONFIG_HEADERS  = $CONFIG_HEADERS
22831   CONFIG_LINKS    = $CONFIG_LINKS
22832   CONFIG_COMMANDS = $CONFIG_COMMANDS
22833   $ $0 $@
22834
22835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22836 "
22837
22838 _ACEOF
22839
22840 case $ac_config_files in *"
22841 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22842 esac
22843
22844 case $ac_config_headers in *"
22845 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22846 esac
22847
22848
22849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22850 # Files that config.status was made for.
22851 config_files="$ac_config_files"
22852 config_headers="$ac_config_headers"
22853 config_commands="$ac_config_commands"
22854
22855 _ACEOF
22856
22857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22858 ac_cs_usage="\
22859 \`$as_me' instantiates files from templates according to the
22860 current configuration.
22861
22862 Usage: $0 [OPTION]... [FILE]...
22863
22864   -h, --help       print this help, then exit
22865   -V, --version    print version number and configuration settings, then exit
22866   -q, --quiet, --silent
22867                    do not print progress messages
22868   -d, --debug      don't remove temporary files
22869       --recheck    update $as_me by reconfiguring in the same conditions
22870       --file=FILE[:TEMPLATE]
22871                    instantiate the configuration file FILE
22872       --header=FILE[:TEMPLATE]
22873                    instantiate the configuration header FILE
22874
22875 Configuration files:
22876 $config_files
22877
22878 Configuration headers:
22879 $config_headers
22880
22881 Configuration commands:
22882 $config_commands
22883
22884 Report bugs to <bug-autoconf@gnu.org>."
22885
22886 _ACEOF
22887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22888 ac_cs_version="\\
22889 config.status
22890 configured by $0, generated by GNU Autoconf 2.63,
22891   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22892
22893 Copyright (C) 2008 Free Software Foundation, Inc.
22894 This config.status script is free software; the Free Software Foundation
22895 gives unlimited permission to copy, distribute and modify it."
22896
22897 ac_pwd='$ac_pwd'
22898 srcdir='$srcdir'
22899 INSTALL='$INSTALL'
22900 MKDIR_P='$MKDIR_P'
22901 AWK='$AWK'
22902 test -n "\$AWK" || AWK=awk
22903 _ACEOF
22904
22905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22906 # The default lists apply if the user does not specify any file.
22907 ac_need_defaults=:
22908 while test $# != 0
22909 do
22910   case $1 in
22911   --*=*)
22912     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22913     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22914     ac_shift=:
22915     ;;
22916   *)
22917     ac_option=$1
22918     ac_optarg=$2
22919     ac_shift=shift
22920     ;;
22921   esac
22922
22923   case $ac_option in
22924   # Handling of the options.
22925   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22926     ac_cs_recheck=: ;;
22927   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22928     $as_echo "$ac_cs_version"; exit ;;
22929   --debug | --debu | --deb | --de | --d | -d )
22930     debug=: ;;
22931   --file | --fil | --fi | --f )
22932     $ac_shift
22933     case $ac_optarg in
22934     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22935     esac
22936     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22937     ac_need_defaults=false;;
22938   --header | --heade | --head | --hea )
22939     $ac_shift
22940     case $ac_optarg in
22941     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22942     esac
22943     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22944     ac_need_defaults=false;;
22945   --he | --h)
22946     # Conflict between --help and --header
22947     { $as_echo "$as_me: error: ambiguous option: $1
22948 Try \`$0 --help' for more information." >&2
22949    { (exit 1); exit 1; }; };;
22950   --help | --hel | -h )
22951     $as_echo "$ac_cs_usage"; exit ;;
22952   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22953   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22954     ac_cs_silent=: ;;
22955
22956   # This is an error.
22957   -*) { $as_echo "$as_me: error: unrecognized option: $1
22958 Try \`$0 --help' for more information." >&2
22959    { (exit 1); exit 1; }; } ;;
22960
22961   *) ac_config_targets="$ac_config_targets $1"
22962      ac_need_defaults=false ;;
22963
22964   esac
22965   shift
22966 done
22967
22968 ac_configure_extra_args=
22969
22970 if $ac_cs_silent; then
22971   exec 6>/dev/null
22972   ac_configure_extra_args="$ac_configure_extra_args --silent"
22973 fi
22974
22975 _ACEOF
22976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22977 if \$ac_cs_recheck; then
22978   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22979   shift
22980   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22981   CONFIG_SHELL='$SHELL'
22982   export CONFIG_SHELL
22983   exec "\$@"
22984 fi
22985
22986 _ACEOF
22987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22988 exec 5>>config.log
22989 {
22990   echo
22991   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22992 ## Running $as_me. ##
22993 _ASBOX
22994   $as_echo "$ac_log"
22995 } >&5
22996
22997 _ACEOF
22998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22999 #
23000 # INIT-COMMANDS
23001 #
23002 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23003
23004
23005 # The HP-UX ksh and POSIX shell print the target directory to stdout
23006 # if CDPATH is set.
23007 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23008
23009 sed_quote_subst='$sed_quote_subst'
23010 double_quote_subst='$double_quote_subst'
23011 delay_variable_subst='$delay_variable_subst'
23012 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23013 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23014 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23015 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23016 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23017 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23018 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23019 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23020 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23021 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23022 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23023 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23024 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23025 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23026 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23027 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23028 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23029 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23030 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23031 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23032 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23033 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23034 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23035 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23036 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23037 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23038 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23039 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23040 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
23041 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23042 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23043 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23044 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23045 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23046 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23047 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23048 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23049 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23050 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23051 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23052 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23053 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23054 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23055 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23056 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
23057 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23058 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23059 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23060 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23061 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23062 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23063 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23064 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23065 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23066 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23067 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23068 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23069 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23070 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23071 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23072 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23073 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23074 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23075 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23076 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23077 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23078 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23079 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23080 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23081 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23082 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23083 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23084 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23085 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23086 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23087 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23088 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23089 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23090 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23091 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23092 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23093 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23094 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23095 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23096 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23097 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23098 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23099 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23100 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23101 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23102 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23103 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23104 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23105 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23106 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23107 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23108 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23109 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23110 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23111 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23112 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23113 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23114 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23115 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23116 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23117 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23118 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23119 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23120 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23121 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23122 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23123 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23124 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23125 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23126 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23127 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23128 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23129 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23130
23131 LTCC='$LTCC'
23132 LTCFLAGS='$LTCFLAGS'
23133 compiler='$compiler_DEFAULT'
23134
23135 # Quote evaled strings.
23136 for var in SED \
23137 GREP \
23138 EGREP \
23139 FGREP \
23140 LD \
23141 NM \
23142 LN_S \
23143 lt_SP2NL \
23144 lt_NL2SP \
23145 reload_flag \
23146 OBJDUMP \
23147 deplibs_check_method \
23148 file_magic_cmd \
23149 AR \
23150 AR_FLAGS \
23151 STRIP \
23152 RANLIB \
23153 CC \
23154 CFLAGS \
23155 compiler \
23156 lt_cv_sys_global_symbol_pipe \
23157 lt_cv_sys_global_symbol_to_cdecl \
23158 lt_cv_sys_global_symbol_to_c_name_address \
23159 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23160 SHELL \
23161 ECHO \
23162 lt_prog_compiler_no_builtin_flag \
23163 lt_prog_compiler_wl \
23164 lt_prog_compiler_pic \
23165 lt_prog_compiler_static \
23166 lt_cv_prog_compiler_c_o \
23167 need_locks \
23168 DSYMUTIL \
23169 NMEDIT \
23170 LIPO \
23171 OTOOL \
23172 OTOOL64 \
23173 shrext_cmds \
23174 export_dynamic_flag_spec \
23175 whole_archive_flag_spec \
23176 compiler_needs_object \
23177 with_gnu_ld \
23178 allow_undefined_flag \
23179 no_undefined_flag \
23180 hardcode_libdir_flag_spec \
23181 hardcode_libdir_flag_spec_ld \
23182 hardcode_libdir_separator \
23183 fix_srcfile_path \
23184 exclude_expsyms \
23185 include_expsyms \
23186 file_list_spec \
23187 variables_saved_for_relink \
23188 libname_spec \
23189 library_names_spec \
23190 soname_spec \
23191 finish_eval \
23192 old_striplib \
23193 striplib; do
23194     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23195     *[\\\\\\\`\\"\\\$]*)
23196       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23197       ;;
23198     *)
23199       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23200       ;;
23201     esac
23202 done
23203
23204 # Double-quote double-evaled strings.
23205 for var in reload_cmds \
23206 old_postinstall_cmds \
23207 old_postuninstall_cmds \
23208 old_archive_cmds \
23209 extract_expsyms_cmds \
23210 old_archive_from_new_cmds \
23211 old_archive_from_expsyms_cmds \
23212 archive_cmds \
23213 archive_expsym_cmds \
23214 module_cmds \
23215 module_expsym_cmds \
23216 export_symbols_cmds \
23217 prelink_cmds \
23218 postinstall_cmds \
23219 postuninstall_cmds \
23220 finish_cmds \
23221 sys_lib_search_path_spec \
23222 sys_lib_dlsearch_path_spec; do
23223     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23224     *[\\\\\\\`\\"\\\$]*)
23225       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23226       ;;
23227     *)
23228       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23229       ;;
23230     esac
23231 done
23232
23233 # Fix-up fallback echo if it was mangled by the above quoting rules.
23234 case \$lt_ECHO in
23235 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23236   ;;
23237 esac
23238
23239 ac_aux_dir='$ac_aux_dir'
23240 xsi_shell='$xsi_shell'
23241 lt_shell_append='$lt_shell_append'
23242
23243 # See if we are running on zsh, and set the options which allow our
23244 # commands through without removal of \ escapes INIT.
23245 if test -n "\${ZSH_VERSION+set}" ; then
23246    setopt NO_GLOB_SUBST
23247 fi
23248
23249
23250     PACKAGE='$PACKAGE'
23251     VERSION='$VERSION'
23252     TIMESTAMP='$TIMESTAMP'
23253     RM='$RM'
23254     ofile='$ofile'
23255
23256
23257
23258 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23259     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23260     # from automake < 1.5.
23261     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23262     # Capture the value of LINGUAS because we need it to compute CATALOGS.
23263     LINGUAS="${LINGUAS-%UNSET%}"
23264
23265
23266 _ACEOF
23267
23268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23269
23270 # Handling of arguments.
23271 for ac_config_target in $ac_config_targets
23272 do
23273   case $ac_config_target in
23274     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23275     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23276     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23277     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23278     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23279     "libpam/Makefile") CONFIG_FILES="$CONFIG_FILES libpam/Makefile" ;;
23280     "libpamc/Makefile") CONFIG_FILES="$CONFIG_FILES libpamc/Makefile" ;;
23281     "libpamc/test/Makefile") CONFIG_FILES="$CONFIG_FILES libpamc/test/Makefile" ;;
23282     "libpam_misc/Makefile") CONFIG_FILES="$CONFIG_FILES libpam_misc/Makefile" ;;
23283     "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
23284     "conf/pam_conv1/Makefile") CONFIG_FILES="$CONFIG_FILES conf/pam_conv1/Makefile" ;;
23285     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23286     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23287     "modules/pam_access/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_access/Makefile" ;;
23288     "modules/pam_cracklib/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_cracklib/Makefile" ;;
23289     "modules/pam_debug/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_debug/Makefile" ;;
23290     "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
23291     "modules/pam_echo/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_echo/Makefile" ;;
23292     "modules/pam_env/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_env/Makefile" ;;
23293     "modules/pam_faildelay/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_faildelay/Makefile" ;;
23294     "modules/pam_filter/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_filter/Makefile" ;;
23295     "modules/pam_filter/upperLOWER/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_filter/upperLOWER/Makefile" ;;
23296     "modules/pam_ftp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_ftp/Makefile" ;;
23297     "modules/pam_group/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_group/Makefile" ;;
23298     "modules/pam_issue/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_issue/Makefile" ;;
23299     "modules/pam_keyinit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_keyinit/Makefile" ;;
23300     "modules/pam_lastlog/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_lastlog/Makefile" ;;
23301     "modules/pam_limits/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_limits/Makefile" ;;
23302     "modules/pam_listfile/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_listfile/Makefile" ;;
23303     "modules/pam_localuser/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_localuser/Makefile" ;;
23304     "modules/pam_loginuid/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_loginuid/Makefile" ;;
23305     "modules/pam_mail/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_mail/Makefile" ;;
23306     "modules/pam_mkhomedir/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_mkhomedir/Makefile" ;;
23307     "modules/pam_motd/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_motd/Makefile" ;;
23308     "modules/pam_namespace/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_namespace/Makefile" ;;
23309     "modules/pam_nologin/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_nologin/Makefile" ;;
23310     "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
23311     "modules/pam_pwhistory/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_pwhistory/Makefile" ;;
23312     "modules/pam_rhosts/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_rhosts/Makefile" ;;
23313     "modules/pam_rootok/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_rootok/Makefile" ;;
23314     "modules/pam_exec/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_exec/Makefile" ;;
23315     "modules/pam_securetty/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_securetty/Makefile" ;;
23316     "modules/pam_selinux/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_selinux/Makefile" ;;
23317     "modules/pam_sepermit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_sepermit/Makefile" ;;
23318     "modules/pam_shells/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_shells/Makefile" ;;
23319     "modules/pam_stress/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_stress/Makefile" ;;
23320     "modules/pam_succeed_if/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_succeed_if/Makefile" ;;
23321     "modules/pam_tally/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_tally/Makefile" ;;
23322     "modules/pam_tally2/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_tally2/Makefile" ;;
23323     "modules/pam_time/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_time/Makefile" ;;
23324     "modules/pam_timestamp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_timestamp/Makefile" ;;
23325     "modules/pam_tty_audit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_tty_audit/Makefile" ;;
23326     "modules/pam_umask/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_umask/Makefile" ;;
23327     "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
23328     "modules/pam_userdb/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_userdb/Makefile" ;;
23329     "modules/pam_warn/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_warn/Makefile" ;;
23330     "modules/pam_wheel/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_wheel/Makefile" ;;
23331     "modules/pam_xauth/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_xauth/Makefile" ;;
23332     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23333     "doc/specs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/specs/Makefile" ;;
23334     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
23335     "doc/sag/Makefile") CONFIG_FILES="$CONFIG_FILES doc/sag/Makefile" ;;
23336     "doc/adg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/adg/Makefile" ;;
23337     "doc/mwg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/mwg/Makefile" ;;
23338     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23339     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23340     "xtests/Makefile") CONFIG_FILES="$CONFIG_FILES xtests/Makefile" ;;
23341
23342   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23343 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23344    { (exit 1); exit 1; }; };;
23345   esac
23346 done
23347
23348
23349 # If the user did not use the arguments to specify the items to instantiate,
23350 # then the envvar interface is used.  Set only those that are not.
23351 # We use the long form for the default assignment because of an extremely
23352 # bizarre bug on SunOS 4.1.3.
23353 if $ac_need_defaults; then
23354   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23355   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23356   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23357 fi
23358
23359 # Have a temporary directory for convenience.  Make it in the build tree
23360 # simply because there is no reason against having it here, and in addition,
23361 # creating and moving files from /tmp can sometimes cause problems.
23362 # Hook for its removal unless debugging.
23363 # Note that there is a small window in which the directory will not be cleaned:
23364 # after its creation but before its name has been assigned to `$tmp'.
23365 $debug ||
23366 {
23367   tmp=
23368   trap 'exit_status=$?
23369   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23370 ' 0
23371   trap '{ (exit 1); exit 1; }' 1 2 13 15
23372 }
23373 # Create a (secure) tmp directory for tmp files.
23374
23375 {
23376   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23377   test -n "$tmp" && test -d "$tmp"
23378 }  ||
23379 {
23380   tmp=./conf$$-$RANDOM
23381   (umask 077 && mkdir "$tmp")
23382 } ||
23383 {
23384    $as_echo "$as_me: cannot create a temporary directory in ." >&2
23385    { (exit 1); exit 1; }
23386 }
23387
23388 # Set up the scripts for CONFIG_FILES section.
23389 # No need to generate them if there are no CONFIG_FILES.
23390 # This happens for instance with `./config.status config.h'.
23391 if test -n "$CONFIG_FILES"; then
23392
23393
23394 ac_cr='\r'
23395 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23396 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23397   ac_cs_awk_cr='\\r'
23398 else
23399   ac_cs_awk_cr=$ac_cr
23400 fi
23401
23402 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23403 _ACEOF
23404
23405
23406 {
23407   echo "cat >conf$$subs.awk <<_ACEOF" &&
23408   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23409   echo "_ACEOF"
23410 } >conf$$subs.sh ||
23411   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23412 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23413    { (exit 1); exit 1; }; }
23414 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23415 ac_delim='%!_!# '
23416 for ac_last_try in false false false false false :; do
23417   . ./conf$$subs.sh ||
23418     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23419 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23420    { (exit 1); exit 1; }; }
23421
23422   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23423   if test $ac_delim_n = $ac_delim_num; then
23424     break
23425   elif $ac_last_try; then
23426     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23427 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23428    { (exit 1); exit 1; }; }
23429   else
23430     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23431   fi
23432 done
23433 rm -f conf$$subs.sh
23434
23435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23436 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23437 _ACEOF
23438 sed -n '
23439 h
23440 s/^/S["/; s/!.*/"]=/
23441 p
23442 g
23443 s/^[^!]*!//
23444 :repl
23445 t repl
23446 s/'"$ac_delim"'$//
23447 t delim
23448 :nl
23449 h
23450 s/\(.\{148\}\).*/\1/
23451 t more1
23452 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23453 p
23454 n
23455 b repl
23456 :more1
23457 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23458 p
23459 g
23460 s/.\{148\}//
23461 t nl
23462 :delim
23463 h
23464 s/\(.\{148\}\).*/\1/
23465 t more2
23466 s/["\\]/\\&/g; s/^/"/; s/$/"/
23467 p
23468 b
23469 :more2
23470 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23471 p
23472 g
23473 s/.\{148\}//
23474 t delim
23475 ' <conf$$subs.awk | sed '
23476 /^[^""]/{
23477   N
23478   s/\n//
23479 }
23480 ' >>$CONFIG_STATUS || ac_write_fail=1
23481 rm -f conf$$subs.awk
23482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23483 _ACAWK
23484 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23485   for (key in S) S_is_set[key] = 1
23486   FS = "\a"
23487
23488 }
23489 {
23490   line = $ 0
23491   nfields = split(line, field, "@")
23492   substed = 0
23493   len = length(field[1])
23494   for (i = 2; i < nfields; i++) {
23495     key = field[i]
23496     keylen = length(key)
23497     if (S_is_set[key]) {
23498       value = S[key]
23499       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23500       len += length(value) + length(field[++i])
23501       substed = 1
23502     } else
23503       len += 1 + keylen
23504   }
23505
23506   print line
23507 }
23508
23509 _ACAWK
23510 _ACEOF
23511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23512 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23513   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23514 else
23515   cat
23516 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23517   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23518 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23519    { (exit 1); exit 1; }; }
23520 _ACEOF
23521
23522 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23523 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23524 # trailing colons and then remove the whole line if VPATH becomes empty
23525 # (actually we leave an empty line to preserve line numbers).
23526 if test "x$srcdir" = x.; then
23527   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23528 s/:*\$(srcdir):*/:/
23529 s/:*\${srcdir}:*/:/
23530 s/:*@srcdir@:*/:/
23531 s/^\([^=]*=[     ]*\):*/\1/
23532 s/:*$//
23533 s/^[^=]*=[       ]*$//
23534 }'
23535 fi
23536
23537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23538 fi # test -n "$CONFIG_FILES"
23539
23540 # Set up the scripts for CONFIG_HEADERS section.
23541 # No need to generate them if there are no CONFIG_HEADERS.
23542 # This happens for instance with `./config.status Makefile'.
23543 if test -n "$CONFIG_HEADERS"; then
23544 cat >"$tmp/defines.awk" <<\_ACAWK ||
23545 BEGIN {
23546 _ACEOF
23547
23548 # Transform confdefs.h into an awk script `defines.awk', embedded as
23549 # here-document in config.status, that substitutes the proper values into
23550 # config.h.in to produce config.h.
23551
23552 # Create a delimiter string that does not exist in confdefs.h, to ease
23553 # handling of long lines.
23554 ac_delim='%!_!# '
23555 for ac_last_try in false false :; do
23556   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23557   if test -z "$ac_t"; then
23558     break
23559   elif $ac_last_try; then
23560     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23561 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23562    { (exit 1); exit 1; }; }
23563   else
23564     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23565   fi
23566 done
23567
23568 # For the awk script, D is an array of macro values keyed by name,
23569 # likewise P contains macro parameters if any.  Preserve backslash
23570 # newline sequences.
23571
23572 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23573 sed -n '
23574 s/.\{148\}/&'"$ac_delim"'/g
23575 t rset
23576 :rset
23577 s/^[     ]*#[    ]*define[       ][      ]*/ /
23578 t def
23579 d
23580 :def
23581 s/\\$//
23582 t bsnl
23583 s/["\\]/\\&/g
23584 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23585 D["\1"]=" \3"/p
23586 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23587 d
23588 :bsnl
23589 s/["\\]/\\&/g
23590 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23591 D["\1"]=" \3\\\\\\n"\\/p
23592 t cont
23593 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23594 t cont
23595 d
23596 :cont
23597 n
23598 s/.\{148\}/&'"$ac_delim"'/g
23599 t clear
23600 :clear
23601 s/\\$//
23602 t bsnlc
23603 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23604 d
23605 :bsnlc
23606 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23607 b cont
23608 ' <confdefs.h | sed '
23609 s/'"$ac_delim"'/"\\\
23610 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23611
23612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23613   for (key in D) D_is_set[key] = 1
23614   FS = "\a"
23615 }
23616 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23617   line = \$ 0
23618   split(line, arg, " ")
23619   if (arg[1] == "#") {
23620     defundef = arg[2]
23621     mac1 = arg[3]
23622   } else {
23623     defundef = substr(arg[1], 2)
23624     mac1 = arg[2]
23625   }
23626   split(mac1, mac2, "(") #)
23627   macro = mac2[1]
23628   prefix = substr(line, 1, index(line, defundef) - 1)
23629   if (D_is_set[macro]) {
23630     # Preserve the white space surrounding the "#".
23631     print prefix "define", macro P[macro] D[macro]
23632     next
23633   } else {
23634     # Replace #undef with comments.  This is necessary, for example,
23635     # in the case of _POSIX_SOURCE, which is predefined and required
23636     # on some systems where configure will not decide to define it.
23637     if (defundef == "undef") {
23638       print "/*", prefix defundef, macro, "*/"
23639       next
23640     }
23641   }
23642 }
23643 { print }
23644 _ACAWK
23645 _ACEOF
23646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23647   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23648 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23649    { (exit 1); exit 1; }; }
23650 fi # test -n "$CONFIG_HEADERS"
23651
23652
23653 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23654 shift
23655 for ac_tag
23656 do
23657   case $ac_tag in
23658   :[FHLC]) ac_mode=$ac_tag; continue;;
23659   esac
23660   case $ac_mode$ac_tag in
23661   :[FHL]*:*);;
23662   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23663 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23664    { (exit 1); exit 1; }; };;
23665   :[FH]-) ac_tag=-:-;;
23666   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23667   esac
23668   ac_save_IFS=$IFS
23669   IFS=:
23670   set x $ac_tag
23671   IFS=$ac_save_IFS
23672   shift
23673   ac_file=$1
23674   shift
23675
23676   case $ac_mode in
23677   :L) ac_source=$1;;
23678   :[FH])
23679     ac_file_inputs=
23680     for ac_f
23681     do
23682       case $ac_f in
23683       -) ac_f="$tmp/stdin";;
23684       *) # Look for the file first in the build tree, then in the source tree
23685          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23686          # because $ac_f cannot contain `:'.
23687          test -f "$ac_f" ||
23688            case $ac_f in
23689            [\\/$]*) false;;
23690            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23691            esac ||
23692            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23693 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23694    { (exit 1); exit 1; }; };;
23695       esac
23696       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23697       ac_file_inputs="$ac_file_inputs '$ac_f'"
23698     done
23699
23700     # Let's still pretend it is `configure' which instantiates (i.e., don't
23701     # use $as_me), people would be surprised to read:
23702     #    /* config.h.  Generated by config.status.  */
23703     configure_input='Generated from '`
23704           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23705         `' by configure.'
23706     if test x"$ac_file" != x-; then
23707       configure_input="$ac_file.  $configure_input"
23708       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23709 $as_echo "$as_me: creating $ac_file" >&6;}
23710     fi
23711     # Neutralize special characters interpreted by sed in replacement strings.
23712     case $configure_input in #(
23713     *\&* | *\|* | *\\* )
23714        ac_sed_conf_input=`$as_echo "$configure_input" |
23715        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23716     *) ac_sed_conf_input=$configure_input;;
23717     esac
23718
23719     case $ac_tag in
23720     *:-:* | *:-) cat >"$tmp/stdin" \
23721       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23722 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23723    { (exit 1); exit 1; }; } ;;
23724     esac
23725     ;;
23726   esac
23727
23728   ac_dir=`$as_dirname -- "$ac_file" ||
23729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23730          X"$ac_file" : 'X\(//\)[^/]' \| \
23731          X"$ac_file" : 'X\(//\)$' \| \
23732          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23733 $as_echo X"$ac_file" |
23734     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23735             s//\1/
23736             q
23737           }
23738           /^X\(\/\/\)[^/].*/{
23739             s//\1/
23740             q
23741           }
23742           /^X\(\/\/\)$/{
23743             s//\1/
23744             q
23745           }
23746           /^X\(\/\).*/{
23747             s//\1/
23748             q
23749           }
23750           s/.*/./; q'`
23751   { as_dir="$ac_dir"
23752   case $as_dir in #(
23753   -*) as_dir=./$as_dir;;
23754   esac
23755   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23756     as_dirs=
23757     while :; do
23758       case $as_dir in #(
23759       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23760       *) as_qdir=$as_dir;;
23761       esac
23762       as_dirs="'$as_qdir' $as_dirs"
23763       as_dir=`$as_dirname -- "$as_dir" ||
23764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23765          X"$as_dir" : 'X\(//\)[^/]' \| \
23766          X"$as_dir" : 'X\(//\)$' \| \
23767          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23768 $as_echo X"$as_dir" |
23769     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23770             s//\1/
23771             q
23772           }
23773           /^X\(\/\/\)[^/].*/{
23774             s//\1/
23775             q
23776           }
23777           /^X\(\/\/\)$/{
23778             s//\1/
23779             q
23780           }
23781           /^X\(\/\).*/{
23782             s//\1/
23783             q
23784           }
23785           s/.*/./; q'`
23786       test -d "$as_dir" && break
23787     done
23788     test -z "$as_dirs" || eval "mkdir $as_dirs"
23789   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23790 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23791    { (exit 1); exit 1; }; }; }
23792   ac_builddir=.
23793
23794 case "$ac_dir" in
23795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23796 *)
23797   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23798   # A ".." for each directory in $ac_dir_suffix.
23799   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23800   case $ac_top_builddir_sub in
23801   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23802   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23803   esac ;;
23804 esac
23805 ac_abs_top_builddir=$ac_pwd
23806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23807 # for backward compatibility:
23808 ac_top_builddir=$ac_top_build_prefix
23809
23810 case $srcdir in
23811   .)  # We are building in place.
23812     ac_srcdir=.
23813     ac_top_srcdir=$ac_top_builddir_sub
23814     ac_abs_top_srcdir=$ac_pwd ;;
23815   [\\/]* | ?:[\\/]* )  # Absolute name.
23816     ac_srcdir=$srcdir$ac_dir_suffix;
23817     ac_top_srcdir=$srcdir
23818     ac_abs_top_srcdir=$srcdir ;;
23819   *) # Relative name.
23820     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23821     ac_top_srcdir=$ac_top_build_prefix$srcdir
23822     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23823 esac
23824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23825
23826
23827   case $ac_mode in
23828   :F)
23829   #
23830   # CONFIG_FILE
23831   #
23832
23833   case $INSTALL in
23834   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23835   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23836   esac
23837   ac_MKDIR_P=$MKDIR_P
23838   case $MKDIR_P in
23839   [\\/$]* | ?:[\\/]* ) ;;
23840   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23841   esac
23842 _ACEOF
23843
23844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23845 # If the template does not know about datarootdir, expand it.
23846 # FIXME: This hack should be removed a few years after 2.60.
23847 ac_datarootdir_hack=; ac_datarootdir_seen=
23848
23849 ac_sed_dataroot='
23850 /datarootdir/ {
23851   p
23852   q
23853 }
23854 /@datadir@/p
23855 /@docdir@/p
23856 /@infodir@/p
23857 /@localedir@/p
23858 /@mandir@/p
23859 '
23860 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23861 *datarootdir*) ac_datarootdir_seen=yes;;
23862 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23863   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23864 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23865 _ACEOF
23866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23867   ac_datarootdir_hack='
23868   s&@datadir@&$datadir&g
23869   s&@docdir@&$docdir&g
23870   s&@infodir@&$infodir&g
23871   s&@localedir@&$localedir&g
23872   s&@mandir@&$mandir&g
23873     s&\\\${datarootdir}&$datarootdir&g' ;;
23874 esac
23875 _ACEOF
23876
23877 # Neutralize VPATH when `$srcdir' = `.'.
23878 # Shell code in configure.ac might set extrasub.
23879 # FIXME: do we really want to maintain this feature?
23880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23881 ac_sed_extra="$ac_vpsub
23882 $extrasub
23883 _ACEOF
23884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23885 :t
23886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23887 s|@configure_input@|$ac_sed_conf_input|;t t
23888 s&@top_builddir@&$ac_top_builddir_sub&;t t
23889 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23890 s&@srcdir@&$ac_srcdir&;t t
23891 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23892 s&@top_srcdir@&$ac_top_srcdir&;t t
23893 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23894 s&@builddir@&$ac_builddir&;t t
23895 s&@abs_builddir@&$ac_abs_builddir&;t t
23896 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23897 s&@INSTALL@&$ac_INSTALL&;t t
23898 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23899 $ac_datarootdir_hack
23900 "
23901 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23902   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23903 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23904    { (exit 1); exit 1; }; }
23905
23906 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23907   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23908   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23909   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23910 which seems to be undefined.  Please make sure it is defined." >&5
23911 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23912 which seems to be undefined.  Please make sure it is defined." >&2;}
23913
23914   rm -f "$tmp/stdin"
23915   case $ac_file in
23916   -) cat "$tmp/out" && rm -f "$tmp/out";;
23917   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23918   esac \
23919   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23920 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23921    { (exit 1); exit 1; }; }
23922  ;;
23923   :H)
23924   #
23925   # CONFIG_HEADER
23926   #
23927   if test x"$ac_file" != x-; then
23928     {
23929       $as_echo "/* $configure_input  */" \
23930       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23931     } >"$tmp/config.h" \
23932       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23933 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23934    { (exit 1); exit 1; }; }
23935     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23936       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23937 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23938     else
23939       rm -f "$ac_file"
23940       mv "$tmp/config.h" "$ac_file" \
23941         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23942 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23943    { (exit 1); exit 1; }; }
23944     fi
23945   else
23946     $as_echo "/* $configure_input  */" \
23947       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23948       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23949 $as_echo "$as_me: error: could not create -" >&2;}
23950    { (exit 1); exit 1; }; }
23951   fi
23952 # Compute "$ac_file"'s index in $config_headers.
23953 _am_arg="$ac_file"
23954 _am_stamp_count=1
23955 for _am_header in $config_headers :; do
23956   case $_am_header in
23957     $_am_arg | $_am_arg:* )
23958       break ;;
23959     * )
23960       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23961   esac
23962 done
23963 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23964 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23965          X"$_am_arg" : 'X\(//\)[^/]' \| \
23966          X"$_am_arg" : 'X\(//\)$' \| \
23967          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23968 $as_echo X"$_am_arg" |
23969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23970             s//\1/
23971             q
23972           }
23973           /^X\(\/\/\)[^/].*/{
23974             s//\1/
23975             q
23976           }
23977           /^X\(\/\/\)$/{
23978             s//\1/
23979             q
23980           }
23981           /^X\(\/\).*/{
23982             s//\1/
23983             q
23984           }
23985           s/.*/./; q'`/stamp-h$_am_stamp_count
23986  ;;
23987
23988   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23989 $as_echo "$as_me: executing $ac_file commands" >&6;}
23990  ;;
23991   esac
23992
23993
23994   case $ac_file$ac_mode in
23995     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23996   # Strip MF so we end up with the name of the file.
23997   mf=`echo "$mf" | sed -e 's/:.*$//'`
23998   # Check whether this is an Automake generated Makefile or not.
23999   # We used to match only the files named `Makefile.in', but
24000   # some people rename them; so instead we look at the file content.
24001   # Grep'ing the first line is not enough: some people post-process
24002   # each Makefile.in and add a new line on top of each file to say so.
24003   # Grep'ing the whole file is not good either: AIX grep has a line
24004   # limit of 2048, but all sed's we know have understand at least 4000.
24005   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24006     dirpart=`$as_dirname -- "$mf" ||
24007 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24008          X"$mf" : 'X\(//\)[^/]' \| \
24009          X"$mf" : 'X\(//\)$' \| \
24010          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24011 $as_echo X"$mf" |
24012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24013             s//\1/
24014             q
24015           }
24016           /^X\(\/\/\)[^/].*/{
24017             s//\1/
24018             q
24019           }
24020           /^X\(\/\/\)$/{
24021             s//\1/
24022             q
24023           }
24024           /^X\(\/\).*/{
24025             s//\1/
24026             q
24027           }
24028           s/.*/./; q'`
24029   else
24030     continue
24031   fi
24032   # Extract the definition of DEPDIR, am__include, and am__quote
24033   # from the Makefile without running `make'.
24034   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24035   test -z "$DEPDIR" && continue
24036   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24037   test -z "am__include" && continue
24038   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24039   # When using ansi2knr, U may be empty or an underscore; expand it
24040   U=`sed -n 's/^U = //p' < "$mf"`
24041   # Find all dependency output files, they are included files with
24042   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24043   # simplest approach to changing $(DEPDIR) to its actual value in the
24044   # expansion.
24045   for file in `sed -n "
24046     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24047        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24048     # Make sure the directory exists.
24049     test -f "$dirpart/$file" && continue
24050     fdir=`$as_dirname -- "$file" ||
24051 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24052          X"$file" : 'X\(//\)[^/]' \| \
24053          X"$file" : 'X\(//\)$' \| \
24054          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24055 $as_echo X"$file" |
24056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24057             s//\1/
24058             q
24059           }
24060           /^X\(\/\/\)[^/].*/{
24061             s//\1/
24062             q
24063           }
24064           /^X\(\/\/\)$/{
24065             s//\1/
24066             q
24067           }
24068           /^X\(\/\).*/{
24069             s//\1/
24070             q
24071           }
24072           s/.*/./; q'`
24073     { as_dir=$dirpart/$fdir
24074   case $as_dir in #(
24075   -*) as_dir=./$as_dir;;
24076   esac
24077   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24078     as_dirs=
24079     while :; do
24080       case $as_dir in #(
24081       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24082       *) as_qdir=$as_dir;;
24083       esac
24084       as_dirs="'$as_qdir' $as_dirs"
24085       as_dir=`$as_dirname -- "$as_dir" ||
24086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24087          X"$as_dir" : 'X\(//\)[^/]' \| \
24088          X"$as_dir" : 'X\(//\)$' \| \
24089          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24090 $as_echo X"$as_dir" |
24091     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24092             s//\1/
24093             q
24094           }
24095           /^X\(\/\/\)[^/].*/{
24096             s//\1/
24097             q
24098           }
24099           /^X\(\/\/\)$/{
24100             s//\1/
24101             q
24102           }
24103           /^X\(\/\).*/{
24104             s//\1/
24105             q
24106           }
24107           s/.*/./; q'`
24108       test -d "$as_dir" && break
24109     done
24110     test -z "$as_dirs" || eval "mkdir $as_dirs"
24111   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24112 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24113    { (exit 1); exit 1; }; }; }
24114     # echo "creating $dirpart/$file"
24115     echo '# dummy' > "$dirpart/$file"
24116   done
24117 done
24118  ;;
24119     "libtool":C)
24120
24121     # See if we are running on zsh, and set the options which allow our
24122     # commands through without removal of \ escapes.
24123     if test -n "${ZSH_VERSION+set}" ; then
24124       setopt NO_GLOB_SUBST
24125     fi
24126
24127     cfgfile="${ofile}T"
24128     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24129     $RM "$cfgfile"
24130
24131     cat <<_LT_EOF >> "$cfgfile"
24132 #! $SHELL
24133
24134 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24135 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24136 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24137 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24138 #
24139 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24140 #                 2006, 2007, 2008 Free Software Foundation, Inc.
24141 #   Written by Gordon Matzigkeit, 1996
24142 #
24143 #   This file is part of GNU Libtool.
24144 #
24145 # GNU Libtool is free software; you can redistribute it and/or
24146 # modify it under the terms of the GNU General Public License as
24147 # published by the Free Software Foundation; either version 2 of
24148 # the License, or (at your option) any later version.
24149 #
24150 # As a special exception to the GNU General Public License,
24151 # if you distribute this file as part of a program or library that
24152 # is built using GNU Libtool, you may include this file under the
24153 # same distribution terms that you use for the rest of that program.
24154 #
24155 # GNU Libtool is distributed in the hope that it will be useful,
24156 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24157 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24158 # GNU General Public License for more details.
24159 #
24160 # You should have received a copy of the GNU General Public License
24161 # along with GNU Libtool; see the file COPYING.  If not, a copy
24162 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24163 # obtained by writing to the Free Software Foundation, Inc.,
24164 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24165
24166
24167 # The names of the tagged configurations supported by this script.
24168 available_tags=""
24169
24170 # ### BEGIN LIBTOOL CONFIG
24171
24172 # Whether or not to build static libraries.
24173 build_old_libs=$enable_static
24174
24175 # Whether or not to build shared libraries.
24176 build_libtool_libs=$enable_shared
24177
24178 # Which release of libtool.m4 was used?
24179 macro_version=$macro_version
24180 macro_revision=$macro_revision
24181
24182 # What type of objects to build.
24183 pic_mode=$pic_mode
24184
24185 # Whether or not to optimize for fast installation.
24186 fast_install=$enable_fast_install
24187
24188 # The host system.
24189 host_alias=$host_alias
24190 host=$host
24191 host_os=$host_os
24192
24193 # The build system.
24194 build_alias=$build_alias
24195 build=$build
24196 build_os=$build_os
24197
24198 # A sed program that does not truncate output.
24199 SED=$lt_SED
24200
24201 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24202 Xsed="\$SED -e 1s/^X//"
24203
24204 # A grep program that handles long lines.
24205 GREP=$lt_GREP
24206
24207 # An ERE matcher.
24208 EGREP=$lt_EGREP
24209
24210 # A literal string matcher.
24211 FGREP=$lt_FGREP
24212
24213 # A BSD- or MS-compatible name lister.
24214 NM=$lt_NM
24215
24216 # Whether we need soft or hard links.
24217 LN_S=$lt_LN_S
24218
24219 # What is the maximum length of a command?
24220 max_cmd_len=$max_cmd_len
24221
24222 # Object file suffix (normally "o").
24223 objext=$ac_objext
24224
24225 # Executable file suffix (normally "").
24226 exeext=$exeext
24227
24228 # whether the shell understands "unset".
24229 lt_unset=$lt_unset
24230
24231 # turn spaces into newlines.
24232 SP2NL=$lt_lt_SP2NL
24233
24234 # turn newlines into spaces.
24235 NL2SP=$lt_lt_NL2SP
24236
24237 # How to create reloadable object files.
24238 reload_flag=$lt_reload_flag
24239 reload_cmds=$lt_reload_cmds
24240
24241 # An object symbol dumper.
24242 OBJDUMP=$lt_OBJDUMP
24243
24244 # Method to check whether dependent libraries are shared objects.
24245 deplibs_check_method=$lt_deplibs_check_method
24246
24247 # Command to use when deplibs_check_method == "file_magic".
24248 file_magic_cmd=$lt_file_magic_cmd
24249
24250 # The archiver.
24251 AR=$lt_AR
24252 AR_FLAGS=$lt_AR_FLAGS
24253
24254 # A symbol stripping program.
24255 STRIP=$lt_STRIP
24256
24257 # Commands used to install an old-style archive.
24258 RANLIB=$lt_RANLIB
24259 old_postinstall_cmds=$lt_old_postinstall_cmds
24260 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24261
24262 # A C compiler.
24263 LTCC=$lt_CC
24264
24265 # LTCC compiler flags.
24266 LTCFLAGS=$lt_CFLAGS
24267
24268 # Take the output of nm and produce a listing of raw symbols and C names.
24269 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24270
24271 # Transform the output of nm in a proper C declaration.
24272 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24273
24274 # Transform the output of nm in a C name address pair.
24275 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24276
24277 # Transform the output of nm in a C name address pair when lib prefix is needed.
24278 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24279
24280 # The name of the directory that contains temporary libtool files.
24281 objdir=$objdir
24282
24283 # Shell to use when invoking shell scripts.
24284 SHELL=$lt_SHELL
24285
24286 # An echo program that does not interpret backslashes.
24287 ECHO=$lt_ECHO
24288
24289 # Used to examine libraries when file_magic_cmd begins with "file".
24290 MAGIC_CMD=$MAGIC_CMD
24291
24292 # Must we lock files when doing compilation?
24293 need_locks=$lt_need_locks
24294
24295 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24296 DSYMUTIL=$lt_DSYMUTIL
24297
24298 # Tool to change global to local symbols on Mac OS X.
24299 NMEDIT=$lt_NMEDIT
24300
24301 # Tool to manipulate fat objects and archives on Mac OS X.
24302 LIPO=$lt_LIPO
24303
24304 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24305 OTOOL=$lt_OTOOL
24306
24307 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24308 OTOOL64=$lt_OTOOL64
24309
24310 # Old archive suffix (normally "a").
24311 libext=$libext
24312
24313 # Shared library suffix (normally ".so").
24314 shrext_cmds=$lt_shrext_cmds
24315
24316 # The commands to extract the exported symbol list from a shared archive.
24317 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24318
24319 # Variables whose values should be saved in libtool wrapper scripts and
24320 # restored at link time.
24321 variables_saved_for_relink=$lt_variables_saved_for_relink
24322
24323 # Do we need the "lib" prefix for modules?
24324 need_lib_prefix=$need_lib_prefix
24325
24326 # Do we need a version for libraries?
24327 need_version=$need_version
24328
24329 # Library versioning type.
24330 version_type=$version_type
24331
24332 # Shared library runtime path variable.
24333 runpath_var=$runpath_var
24334
24335 # Shared library path variable.
24336 shlibpath_var=$shlibpath_var
24337
24338 # Is shlibpath searched before the hard-coded library search path?
24339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24340
24341 # Format of library name prefix.
24342 libname_spec=$lt_libname_spec
24343
24344 # List of archive names.  First name is the real one, the rest are links.
24345 # The last name is the one that the linker finds with -lNAME
24346 library_names_spec=$lt_library_names_spec
24347
24348 # The coded name of the library, if different from the real name.
24349 soname_spec=$lt_soname_spec
24350
24351 # Command to use after installation of a shared archive.
24352 postinstall_cmds=$lt_postinstall_cmds
24353
24354 # Command to use after uninstallation of a shared archive.
24355 postuninstall_cmds=$lt_postuninstall_cmds
24356
24357 # Commands used to finish a libtool library installation in a directory.
24358 finish_cmds=$lt_finish_cmds
24359
24360 # As "finish_cmds", except a single script fragment to be evaled but
24361 # not shown.
24362 finish_eval=$lt_finish_eval
24363
24364 # Whether we should hardcode library paths into libraries.
24365 hardcode_into_libs=$hardcode_into_libs
24366
24367 # Compile-time system search path for libraries.
24368 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24369
24370 # Run-time system search path for libraries.
24371 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24372
24373 # Whether dlopen is supported.
24374 dlopen_support=$enable_dlopen
24375
24376 # Whether dlopen of programs is supported.
24377 dlopen_self=$enable_dlopen_self
24378
24379 # Whether dlopen of statically linked programs is supported.
24380 dlopen_self_static=$enable_dlopen_self_static
24381
24382 # Commands to strip libraries.
24383 old_striplib=$lt_old_striplib
24384 striplib=$lt_striplib
24385
24386
24387 # The linker used to build libraries.
24388 LD=$lt_LD
24389
24390 # Commands used to build an old-style archive.
24391 old_archive_cmds=$lt_old_archive_cmds
24392
24393 # A language specific compiler.
24394 CC=$lt_compiler
24395
24396 # Is the compiler the GNU compiler?
24397 with_gcc=$GCC
24398
24399 # Compiler flag to turn off builtin functions.
24400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24401
24402 # How to pass a linker flag through the compiler.
24403 wl=$lt_lt_prog_compiler_wl
24404
24405 # Additional compiler flags for building library objects.
24406 pic_flag=$lt_lt_prog_compiler_pic
24407
24408 # Compiler flag to prevent dynamic linking.
24409 link_static_flag=$lt_lt_prog_compiler_static
24410
24411 # Does compiler simultaneously support -c and -o options?
24412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24413
24414 # Whether or not to add -lc for building shared libraries.
24415 build_libtool_need_lc=$archive_cmds_need_lc
24416
24417 # Whether or not to disallow shared libs when runtime libs are static.
24418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24419
24420 # Compiler flag to allow reflexive dlopens.
24421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24422
24423 # Compiler flag to generate shared objects directly from archives.
24424 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24425
24426 # Whether the compiler copes with passing no objects directly.
24427 compiler_needs_object=$lt_compiler_needs_object
24428
24429 # Create an old-style archive from a shared archive.
24430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24431
24432 # Create a temporary old-style archive to link instead of a shared archive.
24433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24434
24435 # Commands used to build a shared archive.
24436 archive_cmds=$lt_archive_cmds
24437 archive_expsym_cmds=$lt_archive_expsym_cmds
24438
24439 # Commands used to build a loadable module if different from building
24440 # a shared archive.
24441 module_cmds=$lt_module_cmds
24442 module_expsym_cmds=$lt_module_expsym_cmds
24443
24444 # Whether we are building with GNU ld or not.
24445 with_gnu_ld=$lt_with_gnu_ld
24446
24447 # Flag that allows shared libraries with undefined symbols to be built.
24448 allow_undefined_flag=$lt_allow_undefined_flag
24449
24450 # Flag that enforces no undefined symbols.
24451 no_undefined_flag=$lt_no_undefined_flag
24452
24453 # Flag to hardcode \$libdir into a binary during linking.
24454 # This must work even if \$libdir does not exist
24455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24456
24457 # If ld is used when linking, flag to hardcode \$libdir into a binary
24458 # during linking.  This must work even if \$libdir does not exist.
24459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24460
24461 # Whether we need a single "-rpath" flag with a separated argument.
24462 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24463
24464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24465 # DIR into the resulting binary.
24466 hardcode_direct=$hardcode_direct
24467
24468 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24469 # DIR into the resulting binary and the resulting library dependency is
24470 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24471 # library is relocated.
24472 hardcode_direct_absolute=$hardcode_direct_absolute
24473
24474 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24475 # into the resulting binary.
24476 hardcode_minus_L=$hardcode_minus_L
24477
24478 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24479 # into the resulting binary.
24480 hardcode_shlibpath_var=$hardcode_shlibpath_var
24481
24482 # Set to "yes" if building a shared library automatically hardcodes DIR
24483 # into the library and all subsequent libraries and executables linked
24484 # against it.
24485 hardcode_automatic=$hardcode_automatic
24486
24487 # Set to yes if linker adds runtime paths of dependent libraries
24488 # to runtime path list.
24489 inherit_rpath=$inherit_rpath
24490
24491 # Whether libtool must link a program against all its dependency libraries.
24492 link_all_deplibs=$link_all_deplibs
24493
24494 # Fix the shell variable \$srcfile for the compiler.
24495 fix_srcfile_path=$lt_fix_srcfile_path
24496
24497 # Set to "yes" if exported symbols are required.
24498 always_export_symbols=$always_export_symbols
24499
24500 # The commands to list exported symbols.
24501 export_symbols_cmds=$lt_export_symbols_cmds
24502
24503 # Symbols that should not be listed in the preloaded symbols.
24504 exclude_expsyms=$lt_exclude_expsyms
24505
24506 # Symbols that must always be exported.
24507 include_expsyms=$lt_include_expsyms
24508
24509 # Commands necessary for linking programs (against libraries) with templates.
24510 prelink_cmds=$lt_prelink_cmds
24511
24512 # Specify filename containing input files.
24513 file_list_spec=$lt_file_list_spec
24514
24515 # How to hardcode a shared library path into an executable.
24516 hardcode_action=$hardcode_action
24517
24518 # ### END LIBTOOL CONFIG
24519
24520 _LT_EOF
24521
24522   case $host_os in
24523   aix3*)
24524     cat <<\_LT_EOF >> "$cfgfile"
24525 # AIX sometimes has problems with the GCC collect2 program.  For some
24526 # reason, if we set the COLLECT_NAMES environment variable, the problems
24527 # vanish in a puff of smoke.
24528 if test "X${COLLECT_NAMES+set}" != Xset; then
24529   COLLECT_NAMES=
24530   export COLLECT_NAMES
24531 fi
24532 _LT_EOF
24533     ;;
24534   esac
24535
24536
24537 ltmain="$ac_aux_dir/ltmain.sh"
24538
24539
24540   # We use sed instead of cat because bash on DJGPP gets confused if
24541   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24542   # text mode, it properly converts lines to CR/LF.  This bash problem
24543   # is reportedly fixed, but why not run on old versions too?
24544   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24545     || (rm -f "$cfgfile"; exit 1)
24546
24547   case $xsi_shell in
24548   yes)
24549     cat << \_LT_EOF >> "$cfgfile"
24550
24551 # func_dirname file append nondir_replacement
24552 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
24553 # otherwise set result to NONDIR_REPLACEMENT.
24554 func_dirname ()
24555 {
24556   case ${1} in
24557     */*) func_dirname_result="${1%/*}${2}" ;;
24558     *  ) func_dirname_result="${3}" ;;
24559   esac
24560 }
24561
24562 # func_basename file
24563 func_basename ()
24564 {
24565   func_basename_result="${1##*/}"
24566 }
24567
24568 # func_dirname_and_basename file append nondir_replacement
24569 # perform func_basename and func_dirname in a single function
24570 # call:
24571 #   dirname:  Compute the dirname of FILE.  If nonempty,
24572 #             add APPEND to the result, otherwise set result
24573 #             to NONDIR_REPLACEMENT.
24574 #             value returned in "$func_dirname_result"
24575 #   basename: Compute filename of FILE.
24576 #             value retuned in "$func_basename_result"
24577 # Implementation must be kept synchronized with func_dirname
24578 # and func_basename. For efficiency, we do not delegate to
24579 # those functions but instead duplicate the functionality here.
24580 func_dirname_and_basename ()
24581 {
24582   case ${1} in
24583     */*) func_dirname_result="${1%/*}${2}" ;;
24584     *  ) func_dirname_result="${3}" ;;
24585   esac
24586   func_basename_result="${1##*/}"
24587 }
24588
24589 # func_stripname prefix suffix name
24590 # strip PREFIX and SUFFIX off of NAME.
24591 # PREFIX and SUFFIX must not contain globbing or regex special
24592 # characters, hashes, percent signs, but SUFFIX may contain a leading
24593 # dot (in which case that matches only a dot).
24594 func_stripname ()
24595 {
24596   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24597   # positional parameters, so assign one to ordinary parameter first.
24598   func_stripname_result=${3}
24599   func_stripname_result=${func_stripname_result#"${1}"}
24600   func_stripname_result=${func_stripname_result%"${2}"}
24601 }
24602
24603 # func_opt_split
24604 func_opt_split ()
24605 {
24606   func_opt_split_opt=${1%%=*}
24607   func_opt_split_arg=${1#*=}
24608 }
24609
24610 # func_lo2o object
24611 func_lo2o ()
24612 {
24613   case ${1} in
24614     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24615     *)    func_lo2o_result=${1} ;;
24616   esac
24617 }
24618
24619 # func_xform libobj-or-source
24620 func_xform ()
24621 {
24622   func_xform_result=${1%.*}.lo
24623 }
24624
24625 # func_arith arithmetic-term...
24626 func_arith ()
24627 {
24628   func_arith_result=$(( $* ))
24629 }
24630
24631 # func_len string
24632 # STRING may not start with a hyphen.
24633 func_len ()
24634 {
24635   func_len_result=${#1}
24636 }
24637
24638 _LT_EOF
24639     ;;
24640   *) # Bourne compatible functions.
24641     cat << \_LT_EOF >> "$cfgfile"
24642
24643 # func_dirname file append nondir_replacement
24644 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
24645 # otherwise set result to NONDIR_REPLACEMENT.
24646 func_dirname ()
24647 {
24648   # Extract subdirectory from the argument.
24649   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24650   if test "X$func_dirname_result" = "X${1}"; then
24651     func_dirname_result="${3}"
24652   else
24653     func_dirname_result="$func_dirname_result${2}"
24654   fi
24655 }
24656
24657 # func_basename file
24658 func_basename ()
24659 {
24660   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24661 }
24662
24663
24664 # func_stripname prefix suffix name
24665 # strip PREFIX and SUFFIX off of NAME.
24666 # PREFIX and SUFFIX must not contain globbing or regex special
24667 # characters, hashes, percent signs, but SUFFIX may contain a leading
24668 # dot (in which case that matches only a dot).
24669 # func_strip_suffix prefix name
24670 func_stripname ()
24671 {
24672   case ${2} in
24673     .*) func_stripname_result=`$ECHO "X${3}" \
24674            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24675     *)  func_stripname_result=`$ECHO "X${3}" \
24676            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24677   esac
24678 }
24679
24680 # sed scripts:
24681 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24682 my_sed_long_arg='1s/^-[^=]*=//'
24683
24684 # func_opt_split
24685 func_opt_split ()
24686 {
24687   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24688   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24689 }
24690
24691 # func_lo2o object
24692 func_lo2o ()
24693 {
24694   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24695 }
24696
24697 # func_xform libobj-or-source
24698 func_xform ()
24699 {
24700   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24701 }
24702
24703 # func_arith arithmetic-term...
24704 func_arith ()
24705 {
24706   func_arith_result=`expr "$@"`
24707 }
24708
24709 # func_len string
24710 # STRING may not start with a hyphen.
24711 func_len ()
24712 {
24713   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24714 }
24715
24716 _LT_EOF
24717 esac
24718
24719 case $lt_shell_append in
24720   yes)
24721     cat << \_LT_EOF >> "$cfgfile"
24722
24723 # func_append var value
24724 # Append VALUE to the end of shell variable VAR.
24725 func_append ()
24726 {
24727   eval "$1+=\$2"
24728 }
24729 _LT_EOF
24730     ;;
24731   *)
24732     cat << \_LT_EOF >> "$cfgfile"
24733
24734 # func_append var value
24735 # Append VALUE to the end of shell variable VAR.
24736 func_append ()
24737 {
24738   eval "$1=\$$1\$2"
24739 }
24740
24741 _LT_EOF
24742     ;;
24743   esac
24744
24745
24746   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24747     || (rm -f "$cfgfile"; exit 1)
24748
24749   mv -f "$cfgfile" "$ofile" ||
24750     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24751   chmod +x "$ofile"
24752
24753  ;;
24754     "po-directories":C)
24755     for ac_file in $CONFIG_FILES; do
24756       # Support "outfile[:infile[:infile...]]"
24757       case "$ac_file" in
24758         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24759       esac
24760       # PO directories have a Makefile.in generated from Makefile.in.in.
24761       case "$ac_file" in */Makefile.in)
24762         # Adjust a relative srcdir.
24763         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24764         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24765         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24766         # In autoconf-2.13 it is called $ac_given_srcdir.
24767         # In autoconf-2.50 it is called $srcdir.
24768         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24769         case "$ac_given_srcdir" in
24770           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24771           /*) top_srcdir="$ac_given_srcdir" ;;
24772           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
24773         esac
24774         # Treat a directory as a PO directory if and only if it has a
24775         # POTFILES.in file. This allows packages to have multiple PO
24776         # directories under different names or in different locations.
24777         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24778           rm -f "$ac_dir/POTFILES"
24779           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24780           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24781           POMAKEFILEDEPS="POTFILES.in"
24782           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24783           # on $ac_dir but don't depend on user-specified configuration
24784           # parameters.
24785           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24786             # The LINGUAS file contains the set of available languages.
24787             if test -n "$OBSOLETE_ALL_LINGUAS"; then
24788               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24789             fi
24790             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24791             # Hide the ALL_LINGUAS assigment from automake < 1.5.
24792             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24793             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24794           else
24795             # The set of available languages was given in configure.in.
24796             # Hide the ALL_LINGUAS assigment from automake < 1.5.
24797             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24798           fi
24799           # Compute POFILES
24800           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24801           # Compute UPDATEPOFILES
24802           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24803           # Compute DUMMYPOFILES
24804           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24805           # Compute GMOFILES
24806           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24807           case "$ac_given_srcdir" in
24808             .) srcdirpre= ;;
24809             *) srcdirpre='$(srcdir)/' ;;
24810           esac
24811           POFILES=
24812           UPDATEPOFILES=
24813           DUMMYPOFILES=
24814           GMOFILES=
24815           for lang in $ALL_LINGUAS; do
24816             POFILES="$POFILES $srcdirpre$lang.po"
24817             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24818             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24819             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24820           done
24821           # CATALOGS depends on both $ac_dir and the user's LINGUAS
24822           # environment variable.
24823           INST_LINGUAS=
24824           if test -n "$ALL_LINGUAS"; then
24825             for presentlang in $ALL_LINGUAS; do
24826               useit=no
24827               if test "%UNSET%" != "$LINGUAS"; then
24828                 desiredlanguages="$LINGUAS"
24829               else
24830                 desiredlanguages="$ALL_LINGUAS"
24831               fi
24832               for desiredlang in $desiredlanguages; do
24833                 # Use the presentlang catalog if desiredlang is
24834                 #   a. equal to presentlang, or
24835                 #   b. a variant of presentlang (because in this case,
24836                 #      presentlang can be used as a fallback for messages
24837                 #      which are not translated in the desiredlang catalog).
24838                 case "$desiredlang" in
24839                   "$presentlang"*) useit=yes;;
24840                 esac
24841               done
24842               if test $useit = yes; then
24843                 INST_LINGUAS="$INST_LINGUAS $presentlang"
24844               fi
24845             done
24846           fi
24847           CATALOGS=
24848           if test -n "$INST_LINGUAS"; then
24849             for lang in $INST_LINGUAS; do
24850               CATALOGS="$CATALOGS $lang.gmo"
24851             done
24852           fi
24853           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24854           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24855           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24856             if test -f "$f"; then
24857               case "$f" in
24858                 *.orig | *.bak | *~) ;;
24859                 *) cat "$f" >> "$ac_dir/Makefile" ;;
24860               esac
24861             fi
24862           done
24863         fi
24864         ;;
24865       esac
24866     done ;;
24867
24868   esac
24869 done # for ac_tag
24870
24871
24872 { (exit 0); exit 0; }
24873 _ACEOF
24874 chmod +x $CONFIG_STATUS
24875 ac_clean_files=$ac_clean_files_save
24876
24877 test $ac_write_fail = 0 ||
24878   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24879 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24880    { (exit 1); exit 1; }; }
24881
24882
24883 # configure is writing to config.log, and then calls config.status.
24884 # config.status does its own redirection, appending to config.log.
24885 # Unfortunately, on DOS this fails, as config.log is still kept open
24886 # by configure, so config.status won't be able to write to it; its
24887 # output is simply discarded.  So we exec the FD to /dev/null,
24888 # effectively closing config.log, so it can be properly (re)opened and
24889 # appended to by config.status.  When coming back to configure, we
24890 # need to make the FD available again.
24891 if test "$no_create" != yes; then
24892   ac_cs_success=:
24893   ac_config_status_args=
24894   test "$silent" = yes &&
24895     ac_config_status_args="$ac_config_status_args --quiet"
24896   exec 5>/dev/null
24897   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24898   exec 5>>config.log
24899   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24900   # would make configure fail if this is the last instruction.
24901   $ac_cs_success || { (exit 1); exit 1; }
24902 fi
24903 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24904   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24905 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24906 fi
24907